diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000..11bc6969f --- /dev/null +++ b/.gitignore @@ -0,0 +1,17 @@ +# Generated by Cargo +# will have compiled files and executables +debug/ +target/ + +# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries +# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html +Cargo.lock + +# These are backup files generated by rustfmt +**/*.rs.bk + +# MSVC Windows builds of rustc generate these, which store debugging information +*.pdb + +## any pem Key +*.pem diff --git a/Cargo.toml b/Cargo.toml new file mode 100644 index 000000000..119c4d067 --- /dev/null +++ b/Cargo.toml @@ -0,0 +1,61 @@ +[package] +name = "casper-rust-wasm-sdk" +version = "0.1.0" +edition = "2021" +description = "Casper Rust Wasm Web SDK" +repository = "https://github.com/casper-ecosystem/rustSDK" +license = "Apache-2.0" +readme = "README.md" +homepage = "https://casperlabs.io" +categories = ["development-tools", "wasm", "web-programming"] +keywords = ["casper", "sdk", "rust", "wasm"] +exclude = [ + ".*", + "docs/api-wasm", + "docs/images", + "examples", + "pkg", + "pkg-nodejs", + "tests/**", +] + + +[dependencies] +casper-hashing = { version = "2.0.0", git = "https://github.com/casper-network/casper-node.git", branch = "rustSDK-1.6", default-features = false } +casper-types = { version = "3.0.0", git = "https://github.com/casper-network/casper-node.git", branch = "rustSDK-1.6", default-features = false } +casper-client = { version = "2.0.0", git = "https://github.com/casper-ecosystem/casper-client-rs", branch = "rustSDK-1.6", default-features = false, features = [ + "sdk", +] } +rand = { version = "0.8.5", default-features = false } +wee_alloc = { version = "*", default-features = false, optional = true } +wasm-bindgen = "*" +wasm-bindgen-test = "*" +wasm-bindgen-futures = "*" +js-sys = "*" +gloo-utils = { version = "0.2", default-features = false, features = ["serde"] } +serde = { version = "1.0", default-features = false, features = ["derive"] } +serde_json = "1.0" +once_cell = { version = "1.18.0", default-features = false } +chrono = "0.4" +num-traits = "0.2" +humantime = "2" +thiserror = "=1.0.34" +base16 = "0.2.1" +hex = { version = "0.4.3", default-features = false } +rust_decimal = "1.10" + +[lib] +crate-type = ["cdylib", "rlib"] +name = "casper_rust_wasm_sdk" +path = "src/lib.rs" + +[[bin]] +name = "casper_rust_wasm_sdk" +path = "src/main.rs" +doc = false + +[profile.release] +lto = true + +[dev-dependencies] +sdk-tests = { path = "tests/integration/rust" } diff --git a/LICENSE b/LICENSE new file mode 100644 index 000000000..a93d96287 --- /dev/null +++ b/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright 2022 CasperLabs Holdings AG + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/Makefile b/Makefile new file mode 100644 index 000000000..6327e54dd --- /dev/null +++ b/Makefile @@ -0,0 +1,32 @@ +prepare: + rustup target add wasm32-unknown-unknown + +CURRENT_DIR = . + +# Specify the output directories for web and Node.js targets. +WEB_OUT_DIR = pkg +NODEJS_OUT_DIR = pkg-nodejs + +.PHONY: all web nodejs clean build doc + +pack: web nodejs + +web: + wasm-pack build --target web --release --out-dir $(WEB_OUT_DIR) $(CURRENT_DIR) + +nodejs: + wasm-pack build --target nodejs --release --out-dir $(NODEJS_OUT_DIR) $(CURRENT_DIR) + +clean: + rm -rf $(WEB_OUT_DIR) $(NODEJS_OUT_DIR) + +doc: + cargo doc --package casper-rust-wasm-sdk --no-deps + cp -r target/doc/* docs/api-rust/ + typedoc --out docs/api-wasm pkg/casper_rust_wasm_sdk.d.ts + +build: pack doc + cd examples/frontend/angular/ && npm run build && cd . + cd examples/frontend/react/ && npm run build && cd . + cd examples/desktop/node/ && npx tsc index.ts && cd . + cd examples/desktop/electron && npm run build && cd . diff --git a/README.md b/README.md deleted file mode 100644 index 954bf5890..000000000 --- a/README.md +++ /dev/null @@ -1,2 +0,0 @@ -# rustSDK -Casper Labs Rust SDK diff --git a/docs/README.md b/docs/README.md new file mode 100644 index 000000000..a3c9c2bc3 --- /dev/null +++ b/docs/README.md @@ -0,0 +1,1297 @@ +# Casper Rust/Wasm SDK + +The Rust/Wasm SDK allows developers and users to interact with the Casper Blockchain using Rust or TypeScript. It provides a way to embed the [casper-client-rs](https://github.com/casper-ecosystem/casper-client-rs) into another application without the CLI interface. The SDK exposes a list of types and methods from a subset of the Casper client. + +You can use the Casper Rust/Wasm SDK in two ways: + +- In a Rust application by importing the SDK crate. +- In a Typescript application by importing the SDK Wasm file and the Typescript interfaces. + +This page covers different examples of using the SDK. + +## Install + +
+ Rust Project + +## Rust Project + +Add the SDK as a dependency of your project: + +> Cargo.toml + +```toml +casper-rust-wasm-sdk = { version = "0.1.0", git = "https://github.com/casper-ecosystem/rustSDK.git" } +``` + +## Usage + +> main.rs + +```rust +use casper_rust_wasm_sdk::{types::verbosity::Verbosity, SDK}; + +let sdk = SDK::new( + Some("https://rpc.testnet.casperlabs.io".to_string()), + Some(Verbosity::High) +); +``` + +
+ +
+ Typescript Project + +## Typescript Project + +You can directly use the content of the [pkg folder](pkg/) for a browser project or [pkg-nodejs](pkg-nodejs/) for a Node project. + +Or you can use the [TODO][npm package](https://todo) + +#### Build package with Wasm pack + +If you want to compile the Wasm package from Rust you may need to install `wasm-pack` for ease of use. + +```shell +curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh +``` + +```shell +$ make prepare +$ make pack +``` + +This will create a `pkg` and `pkg-nodejs` containing the Typescript interfaces. You can find more details about building the SDK for Javascript with `wasm-pack` in the [wasm-pack documention](https://rustwasm.github.io/docs/wasm-pack/commands/build.html). + +This folder contains a Wasm binary, a JS wrapper file, Typescript types definitions, and a package.json file that you can load in your project. + +```shell +$ tree pkg +pkg +├── casper_rust_wasm_sdk_bg.wasm +├── casper_rust_wasm_sdk_bg.wasm.d.ts +├── casper_rust_wasm_sdk.d.ts +├── casper_rust_wasm_sdk.js +├── LICENSE +├── package.json +└── README.md +``` + +## Usage + +
+ React + +## Web React + +> package.json + +```json +{ + "name": "my-react-app", + "dependencies": { + // This path is relative + "casper-sdk": "file:pkg", // [TODO] Npm package + ... +} +``` + +The React app needs to load the Wasm file through a dedicated `init()` method as per this example: + +> App.tsx + +```ts +import init, { + SDK, + Verbosity, +} from 'casper-sdk'; + +const node_address = 'https://rpc.testnet.casperlabs.io'; +const verbosity = Verbosity.High; + +function App() { + const [wasm, setWasm] = useState(false); + const fetchWasm = async () => { + await init(); + setWasm(true); + }; + + useEffect(() => { + initApp(); // take care here to initiate app only once and not on every effect + }, []); + + const initApp = async () => { + if (!wasm) { + await fetchWasm(); + }; + + const sdk = new SDK(node_address, verbosity); + console.log(sdk); + ... +} +``` + +#### Frontend React example + +You can look at a very basic example of usage in the [React example app](examples/frontend/react/src/App.tsx). + +```shell +$ cd ./examples/frontend/react +$ npm install +$ npm start +``` + +
+
+ Angular + +## Web Angular + +> package.json + +```json +{ + "name": "my-angular-app", + "dependencies": { + // This path is relative + "casper-sdk": "file:pkg", // [TODO] Npm package + ... +} +``` + +The Angular app needs to load the Wasm file through a dedicated `init()` method as per this example. You can import it into a component through a service but it is advised to import it through a factory with the injection token [APP_INITIALIZER](https://angular.io/api/core/APP_INITIALIZER). + +> wasm.factory.ts + +```js +import init, { SDK, Verbosity } from 'casper-sdk'; + +export const SDK_TOKEN = new InjectionToken() < SDK > 'SDK'; +export const WASM_ASSET_PATH = + new InjectionToken() < string > 'wasm_asset_path'; +export const NODE_ADDRESS = new InjectionToken() < string > 'node_address'; +export const VERBOSITY = new InjectionToken() < Verbosity > 'verbosity'; + +type Params = { + wasm_asset_path: string, + node_address: string, + verbosity: Verbosity, +}; + +export const fetchWasmFactory = async (params: Params): Promise => { + const wasm = await init(params.wasm_asset_path); + return new SDK(params.node_address, params.verbosity); +}; +``` + +> wasm.module.ts + +```ts +import { NgModule } from '@angular/core'; +import { CommonModule } from '@angular/common'; +import { SDK_TOKEN, fetchWasmFactory, provideSafeAsync } from './wasm.factory'; + +const providers = provideSafeAsync(SDK_TOKEN, fetchWasmFactory); + +@NgModule({ + imports: [CommonModule], + providers, +}) +export class WasmModule {} +``` + +You can look at a basic example of factory usage in the [Angular example app](examples/frontend/angular/libs/util/services/wasm/src/lib/wasm.factory.ts). + +Add the SDK Wasm file to the assets of your project with the path parameter being ` wasm_asset_path:'assets/casper_rust_wasm_sdk_bg.wasm'`, Angular will then copy the file from `pkg` in `assets` on build making it available for the fetch Wasm factory. + +> project.json + +```json +"assets": [ + ..., + { + "input": "pkg", + "glob": "casper_rust_wasm_sdk_bg.wasm", + "output": "assets" + } +] +``` + +#### Frontend Angular example + +You can look at a more advanced example of usage in the [Angular example app](examples/frontend/angular/src/app/app.component.ts). + +```shell +$ cd ./examples/frontend/angular +$ npm install +$ npm start +$ npm build +``` + +
+ +
+ Node + +## Desktop Node + +> package.json + +```json +{ + "name": "my-node-app", + "dependencies": { + // This path is relative + "casper-sdk": "file:pkg-nodejs", // [TODO] Npm package + ... +} +``` + +The Node app loads the SDK with `require()`. You can find more details about building the SDK for [Node with wasm-pack](https://rustwasm.github.io/docs/wasm-bindgen/reference/deployment.html#nodejs). +Note that this method requires a version of Node.js with WebAssembly support, which is currently Node 8 and above. + +> index.ts + +```ts +// with require +const casper_sdk = require('casper-sdk'); +const { SDK } = casper_sdk; + +// or with import +import { SDK } from 'casper-sdk'; + +const node_address = 'https://rpc.integration.casperlabs.io'; +const sdk = new SDK(node_address); +console.log(sdk); +``` + +#### Desktop Node example + +You can look at a very basic example of usage in the [Node example app](examples/desktop/node/index.ts). + +```shell +$ cd ./examples/desktop/node +$ npm install +$ npm start +``` + +
+ +
+ +## Usage + +### RPC call examples + +
+ Rust +
+You can find all RPC methods on the [RPC doc](https://casper-ecosystem.github.io/rustSDK/api-rust/casper_rust_wasm_sdk/rpcs/). Below are several examples of RPC methods intended for use on Testnet. + +#### Get deploy by deploy hash + +```rust +use casper_rust_wasm_sdk::types::deploy_hash::DeployHash; + +let deploy_hash = + DeployHash::new("a8778b2e4bd1ad02c168329a1f6f3674513f4d350da1b5f078e058a3422ad0b9") + .unwrap(); + +let finalized_approvals = true; +let get_deploy = sdk + .get_deploy(deploy_hash, Some(finalized_approvals), None, None) + .await; + +let deploy = get_deploy.unwrap().result.deploy; +let deploy_header = deploy.header(); +let timestamp = deploy_header.timestamp(); +println!("{timestamp}"); +``` + +#### Get auction state information + +```rust +let get_auction_info = sdk.get_auction_info(None, None, None).await; + +let auction_state = get_auction_info.unwrap().result.auction_state; +let state_root_hash = auction_state.state_root_hash(); +println!("{:?}", state_root_hash); +let block_height = auction_state.block_height(); +println!("{block_height}"); +``` + +#### Get peers from the network + +```rust +let get_peers = sdk.get_peers(None, None).await; + +let peers = get_peers.unwrap().result.peers; +for peer in &peers { + println!("{:?}", peer) +} +``` + +#### Get the latest block information + +```rust +let get_block = sdk.get_block(None, None, None).await; + +let get_block = sdk.get_block(None, None, None).await; + +let block = get_block.unwrap().result.block.unwrap(); +let block_hash = block.hash(); +println!("{:?}", block_hash); +``` + +You can find more examples by reading [Rust integration tests](./tests/integration/rust/). + +
+ +
+ Typescript +
+You can find all RPC methods on the [RPC doc](https://casper-ecosystem.github.io/rustSDK/api-wasm/classes/SDK.html). Below are several examples of RPC methods intended for use on Testnet. + +#### Get deploy by deploy hash + +```ts +import { Deploy } from 'casper-sdk'; + +const deploy_hash_as_string = + 'a8778b2e4bd1ad02c168329a1f6f3674513f4d350da1b5f078e058a3422ad0b9'; +const finalized_approvals = true; + +const get_deploy_options = sdk.get_deploy_options({ + deploy_hash_as_string, + finalized_approvals, +}); + +const deploy_result = await sdk.get_deploy(get_deploy_options); + +const deploy: Deploy = deploy_result.deploy; +const timestamp = deploy.timestamp(); +const header = deploy.toJson().header; // DeployHeader type not being exposed right now by the SDK you can convert every type to JSON +console.log(timestamp, header); +``` + +#### Get auction state information + +```ts +const get_auction_info = await sdk.get_auction_info(); + +const auction_state = get_auction_info.auction_state; +const state_root_hash = auction_state.state_root_hash.toString(); +const block_height = auction_state.block_height.toString(); +console.log(state_root_hash, block_height); +``` + +#### Get peers from the network + +```ts +const get_peers = await sdk.get_peers(); + +const peers = get_peers.peers; +peers.forEach((peer) => { + console.log(peer); +}); +``` + +#### Get the latest block information + +```ts +const get_block = await sdk.get_block(); + +let block = get_block.block; +let block_hash = block.hash; +console.log(block_hash); +``` + +You can find more examples in the [Angular example app](examples/frontend/angular/src/app/app.component.ts) or in the [React example app](examples/frontend/react/src/App.tsx) or by reading [Puppeteer e2e tests](./tests/e2e/). + +
+ +### More examples + +
+ Deploys and Transfers +
+
+ Making a Transfer + +#### Rust + +```rust +use casper_rust_wasm_sdk::types::deploy_params::{ + deploy_str_params::DeployStrParams, payment_str_params::PaymentStrParams, +}; + +pub const CHAIN_NAME: &str = "integration-test"; +pub const PUBLIC_KEY: &str = + "0169d8d607f3ba04c578140398ceb1bd5296c653f965256bd7097982b9026c5129"; +pub const PAYMENT_AMOUNT: &str = "100000000"; +pub const TRANSFER_AMOUNT: &str = "2500000000"; +pub const TTL: &str = "1h"; +pub const TARGET_ACCOUNT: &str = + "018f2875776bc73e416daf1cf0df270efbb52becf1fc6af6d364d29d61ae23fe44"; + +let deploy_params = DeployStrParams::new( + CHAIN_NAME, + PUBLIC_KEY, // sender account + None, // optional secret key to sign transfer deploy + None, // optional timestamp + Some(TTL.to_string()), // optional TTL +); + +let payment_params = PaymentStrParams::default(); +payment_params.set_payment_amount(PAYMENT_AMOUNT); + +let make_transfer = sdk + .make_transfer( + TRANSFER_AMOUNT, + TARGET_ACCOUNT, // target account + None, // optional transfer_id + deploy_params, + payment_params, + ) + .unwrap(); +println!("{:?}", make_transfer.header().timestamp()); +``` + +#### Typescript + +```ts +import { DeployStrParams, PaymentStrParams, getTimestamp } from 'casper-sdk'; + +const chain_name = 'integration-test'; +const public_key = + '0169d8d607f3ba04c578140398ceb1bd5296c653f965256bd7097982b9026c5129'; +const private_key = undefined; +const timestamp = getTimestamp(); // or Date.now().toString(); // or undefined +const ttl = '1h'; // or undefined +const payment_amount = '100000000'; +const transfer_amount = '2500000000'; +const target_account = + '0187adb3e0f60a983ecc2ddb48d32b3deaa09388ad3bc41e14aeb19959ecc60b54'; + +const deploy_params = new DeployStrParams( + chain_name, + public_key, + private_key, + timestamp, + ttl +); + +const payment_params = new PaymentStrParams(payment_amount); + +const transfer_deploy = sdk.make_transfer( + transfer_amount, + target_account, + undefined, // transfer_id + deploy_params, + payment_params +); +const transfer_deploy_as_json = transfer_deploy.toJson(); +console.log(transfer_deploy_as_json); +``` + +
+ +
+ Transfer +
+Sends a [`Transfer Deploy`] to the network for execution. (Alias for make_transfer + put_deploy) + +#### Rust + +```rust +use casper_rust_wasm_sdk::types::deploy_params::{ + deploy_str_params::DeployStrParams, payment_str_params::PaymentStrParams, +}; + +pub const CHAIN_NAME: &str = "integration-test"; +pub const PUBLIC_KEY: &str = + "0169d8d607f3ba04c578140398ceb1bd5296c653f965256bd7097982b9026c5129"; +pub const PRIVATE_KEY: &str = r#"-----BEGIN PRIVATE KEY----- +-----END PRIVATE KEY-----"#; +pub const PAYMENT_AMOUNT: &str = "100000000"; +pub const TRANSFER_AMOUNT: &str = "2500000000"; +pub const TTL: &str = "1h"; +pub const TARGET_ACCOUNT: &str = + "018f2875776bc73e416daf1cf0df270efbb52becf1fc6af6d364d29d61ae23fe44"; + +let deploy_params = DeployStrParams::new( + CHAIN_NAME, + PUBLIC_KEY, // sender account + Some(PRIVATE_KEY.to_string()), + None, // optional timestamp + Some(TTL.to_string()), // optional TTL +); + +let payment_params = PaymentStrParams::default(); +payment_params.set_payment_amount(PAYMENT_AMOUNT); + +let transfer = sdk + .transfer( + TRANSFER_AMOUNT, + TARGET_ACCOUNT, + None, // optional transfer_id + deploy_params, + payment_params, + None, + None, + ) + .await; +println!("{:?}", transfer.as_ref().unwrap().result.deploy_hash); +``` + +#### Typescript + +```ts +import { DeployStrParams, PaymentStrParams, getTimestamp } from 'casper-sdk'; + +const chain_name = 'casper-net-1'; +const public_key = + '0169d8d607f3ba04c578140398ceb1bd5296c653f965256bd7097982b9026c5129'; +const private_key = `-----BEGIN PRIVATE KEY----- +-----END PRIVATE KEY-----`; +const timestamp = getTimestamp(); // or Date.now().toString(); // or undefined +const ttl = '1h'; // or undefined +const payment_amount = '100000000'; +const transfer_amount = '2500000000'; +const target_account = + '0187adb3e0f60a983ecc2ddb48d32b3deaa09388ad3bc41e14aeb19959ecc60b54'; + +const deploy_params = new DeployStrParams( + chain_name, + public_key, + private_key, + timestamp, + ttl +); + +const payment_params = new PaymentStrParams(payment_amount); + +const transfer_result = await sdk.transfer( + transfer_amount, + target_account, + undefined, // transfer_id + deploy_params, + payment_params +); +const transfer_result_as_json = transfer_result.toJson(); +console.log(transfer_result_as_json); +``` + +
+ +
+ Making a Deploy + +#### Rust + +```rust +use casper_rust_wasm_sdk::types::deploy_params::{ + deploy_str_params::DeployStrParams, payment_str_params::PaymentStrParams, + session_str_params::SessionStrParams, +}; + +pub const CHAIN_NAME: &str = "integration-test"; +pub const PUBLIC_KEY: &str = + "0169d8d607f3ba04c578140398ceb1bd5296c653f965256bd7097982b9026c5129"; +pub const PAYMENT_AMOUNT: &str = "5000000000"; +pub const CONTRACT_HASH: &str = + "hash-5be5b0ef09a7016e11292848d77f539e55791cb07a7012fbc336b1f92a4fe743"; +pub const ENTRY_POINT: &str = "set_variables"; +pub const TTL: &str = "1h"; + +let deploy_params = DeployStrParams::new( + CHAIN_NAME, + PUBLIC_KEY, // sender account + None, // optional secret key to sign deploy + None, // optional timestamp + Some(TTL.to_string()), // optional TTL +); + +let session_params = SessionStrParams::default(); +session_params.set_session_hash(CONTRACT_HASH); +session_params.set_session_entry_point(ENTRY_POINT); + +let payment_params = PaymentStrParams::default(); +payment_params.set_payment_amount(PAYMENT_AMOUNT); + +let deploy = awaitsdk + .make_deploy(deploy_params, session_params, payment_params) + .unwrap(); +println!("{:?}", deploy.header().timestamp()); +``` + +#### Typescript + +```ts +import { + DeployStrParams, + PaymentStrParams, + SessionStrParams, + getTimestamp, +} from 'casper-sdk'; + +const chain_name = 'integration-test'; +const public_key = + '0169d8d607f3ba04c578140398ceb1bd5296c653f965256bd7097982b9026c5129'; +const payment_amount = '5000000000'; +const contract_hash = + 'hash-5be5b0ef09a7016e11292848d77f539e55791cb07a7012fbc336b1f92a4fe743'; + +const deploy_params = new DeployStrParams(chain_name, public_key); + +const session_params = new SessionStrParams(); +session_params.session_hash = contract_hash; +session_params.session_entry_point = 'set_variables'; + +const payment_params = new PaymentStrParams(payment_amount); + +const deploy = sdk.make_deploy(deploy_params, session_params, payment_params); +const deploy_as_json = deploy.toJson(); +console.log(deploy_as_json); +``` + +
+ +
+ Deploy +
+Sends a [`Deploy`] to the network for execution. (Alias for make_deploy + put_deploy) + +#### Rust + +```rust +let sdk = SDK::new( + Some("http://127.0.0.1:11101".to_string()), + Some(Verbosity::High), +); + +use casper_rust_wasm_sdk::types::deploy_params::{ + deploy_str_params::DeployStrParams, payment_str_params::PaymentStrParams, + session_str_params::SessionStrParams, +}; + +pub const CHAIN_NAME: &str = "casper-net-1"; +pub const PUBLIC_KEY: &str = + "0169d8d607f3ba04c578140398ceb1bd5296c653f965256bd7097982b9026c5129"; +pub const PRIVATE_KEY: &str = r#"-----BEGIN PRIVATE KEY----- +-----END PRIVATE KEY-----"#; +pub const PAYMENT_AMOUNT: &str = "5000000000"; +pub const CONTRACT_HASH: &str = + "hash-6646c99b3327954b47035bbc31343d9d96a833a9fc9c8c6d809b29f2482b0abf"; +pub const ENTRY_POINT: &str = "set_variables"; +pub const TTL: &str = "1h"; + +let deploy_params = DeployStrParams::new( + CHAIN_NAME, + PUBLIC_KEY, // sender account + Some(PRIVATE_KEY.to_string()), + None, // optional timestamp + Some(TTL.to_string()), // optional TTL +); + +let session_params = SessionStrParams::default(); +session_params.set_session_hash(CONTRACT_HASH); +session_params.set_session_entry_point(ENTRY_POINT); + +let payment_params = PaymentStrParams::default(); +payment_params.set_payment_amount(PAYMENT_AMOUNT); + +let deploy = sdk + .deploy(deploy_params, session_params, payment_params, None, None) + .await; +println!("{:?}", deploy.as_ref().unwrap().result.deploy_hash); +``` + +#### Typescript + +```ts +import { + DeployStrParams, + PaymentStrParams, + SessionStrParams, + getTimestamp, +} from 'casper-sdk'; + +const chain_name = 'casper-net-1'; +const public_key = + '0169d8d607f3ba04c578140398ceb1bd5296c653f965256bd7097982b9026c5129'; +const private_key = `-----BEGIN PRIVATE KEY----- +-----END PRIVATE KEY-----`; +const payment_amount = '5000000000'; +const contract_hash = + 'hash-5be5b0ef09a7016e11292848d77f539e55791cb07a7012fbc336b1f92a4fe743'; + +const deploy_params = new DeployStrParams(chain_name, public_key, private_key); + +const session_params = new SessionStrParams(); +session_params.session_hash = contract_hash; +session_params.session_entry_point = 'set_variables'; + +const payment_params = new PaymentStrParams(payment_amount); + +const deploy_result = await sdk.deploy( + deploy_params, + session_params, + payment_params +); +const deploy_result_as_json = deploy_result.toJson(); +console.log(deploy_result_as_json); +``` + +
+ +
+ Put Deploy + +#### Rust + +Puts a [`Deploy`] to the network for execution. + +```rust +use casper_rust_wasm_sdk::types::{ + deploy::Deploy, + deploy_params::{ + deploy_str_params::DeployStrParams, payment_str_params::PaymentStrParams, + session_str_params::SessionStrParams, + }, +}; + +pub const CHAIN_NAME: &str = "casper-net-1"; +pub const PUBLIC_KEY: &str = + "0169d8d607f3ba04c578140398ceb1bd5296c653f965256bd7097982b9026c5129"; +pub const PRIVATE_KEY: &str = r#"-----BEGIN PRIVATE KEY----- +-----END PRIVATE KEY-----"#; +pub const PAYMENT_AMOUNT: &str = "5000000000"; +pub const CONTRACT_HASH: &str = + "hash-6646c99b3327954b47035bbc31343d9d96a833a9fc9c8c6d809b29f2482b0abf"; +pub const ENTRY_POINT: &str = "set_variables"; +pub const TTL: &str = "1h"; + +let deploy_params = DeployStrParams::new( + CHAIN_NAME, + PUBLIC_KEY, // sender account + Some(PRIVATE_KEY.to_string()), + None, // optional timestamp + Some(TTL.to_string()), // optional TTL +); + +let session_params = SessionStrParams::default(); +session_params.set_session_hash(CONTRACT_HASH); +session_params.set_session_entry_point(ENTRY_POINT); + +let payment_params = PaymentStrParams::default(); +payment_params.set_payment_amount(PAYMENT_AMOUNT); + +let deploy = + Deploy::with_payment_and_session(deploy_params, session_params, payment_params).unwrap(); + +let put_deploy = sdk.put_deploy(deploy, None, None).await; +println!("{:?}", put_deploy.as_ref().unwrap().result.deploy_hash); +``` + +Puts a [`Transfer Deploy`] to the network for execution. + +```rust +use casper_rust_wasm_sdk::types::{ + deploy::Deploy, + deploy_params::{deploy_str_params::DeployStrParams, payment_str_params::PaymentStrParams}, +}; + +pub const CHAIN_NAME: &str = "casper-net-1"; +pub const PUBLIC_KEY: &str = + "0169d8d607f3ba04c578140398ceb1bd5296c653f965256bd7097982b9026c5129"; +pub const PRIVATE_KEY: &str = r#"-----BEGIN PRIVATE KEY----- +-----END PRIVATE KEY-----"#; +pub const PAYMENT_AMOUNT: &str = "100000000"; +pub const TRANSFER_AMOUNT: &str = "2500000000"; +pub const TARGET_ACCOUNT: &str = + "018f2875776bc73e416daf1cf0df270efbb52becf1fc6af6d364d29d61ae23fe44"; +pub const TTL: &str = "1h"; + +let deploy_params = DeployStrParams::new( + CHAIN_NAME, + PUBLIC_KEY, // sender account + Some(PRIVATE_KEY.to_string()), + None, // optional timestamp + Some(TTL.to_string()), // optional TTL +); + +let payment_params = PaymentStrParams::default(); +payment_params.set_payment_amount(PAYMENT_AMOUNT); + +let transfer_deploy = Deploy::with_transfer( + TRANSFER_AMOUNT, + TARGET_ACCOUNT, + None, + deploy_params, + payment_params, +) +.unwrap(); + +let put_deploy = sdk.put_deploy(transfer_deploy, None, None).await; +println!("{:?}", put_deploy.as_ref().unwrap().result.deploy_hash); +``` + +#### Typescript + +Puts a [`Deploy`] to the network for execution. + +```ts +import { + Deploy, + DeployStrParams, + PaymentStrParams, + SessionStrParams, + getTimestamp, +} from 'casper-sdk'; + +const chain_name = 'casper-net-1'; +const public_key = + '0169d8d607f3ba04c578140398ceb1bd5296c653f965256bd7097982b9026c5129'; +const private_key = `-----BEGIN PRIVATE KEY----- +-----END PRIVATE KEY-----`; +const payment_amount = '5000000000'; +const contract_hash = + 'hash-5be5b0ef09a7016e11292848d77f539e55791cb07a7012fbc336b1f92a4fe743'; +const entry_point = 'set_variables'; + +const deploy_params = new DeployStrParams(chain_name, public_key, private_key); + +const session_params = new SessionStrParams(); +session_params.session_hash = contract_hash; +session_params.session_entry_point = entry_point; + +const payment_params = new PaymentStrParams(payment_amount); + +const deploy = Deploy.withPaymentAndSession( + deploy_params, + session_params, + payment_params +); + +const put_deploy_result = await sdk.put_deploy(deploy); +const put_deploy_result_as_json = put_deploy_result.toJson(); +console.log(put_deploy_result_as_json); +``` + +Puts a [`Transfer Deploy`] to the network for execution. + +```ts +import { + Deploy, + DeployStrParams, + PaymentStrParams, + SessionStrParams, + getTimestamp, +} from 'casper-sdk'; + +const chain_name = 'casper-net-1'; +const public_key = + '0169d8d607f3ba04c578140398ceb1bd5296c653f965256bd7097982b9026c5129'; +const private_key = `-----BEGIN PRIVATE KEY----- +-----END PRIVATE KEY-----`; +const payment_amount = '100000000'; +const transfer_amount = '2500000000'; +const target_account = + '0187adb3e0f60a983ecc2ddb48d32b3deaa09388ad3bc41e14aeb19959ecc60b54'; + +const deploy_params = new DeployStrParams(chain_name, public_key, private_key); + +const payment_params = new PaymentStrParams(payment_amount); + +const transfer_deploy = Deploy.withTransfer( + transfer_amount, + target_account, + undefined, // transfer_id + deploy_params, + payment_params +); + +const put_deploy_result = await sdk.put_deploy(transfer_deploy); +const put_deploy_result_as_json = put_deploy_result.toJson(); +console.log(put_deploy_result_as_json); +``` + +
+ +
+ Sign Deploy + +#### Rust + +```rust +pub const PRIVATE_KEY: &str = ""; +... // same code as 'Making a Deploy' example +let unsigned_deploy = sdk.make_deploy(deploy_params, session_params, payment_params).unwrap(); +let signed_deploy = sdk.sign_deploy(unsigned_deploy, PRIVATE_KEY); +``` + +#### Typescript + +```ts +const private_key = ''; +... // same code as 'Making a Deploy' example +const unsigned_deploy = sdk.make_deploy(deploy_params, session_params, payment_params); +const signed_deploy = unsigned_deploy.sign(private_key); +``` + +
+ +
+ +
+ CEP-78 + +#### Install + +- Rust + +```rust +use casper_rust_wasm_sdk::{ + helpers::json_pretty_print, + types::{ + deploy_hash::DeployHash, + deploy_params::{ + deploy_str_params::DeployStrParams, payment_str_params::PaymentStrParams, + session_str_params::SessionStrParams, + }, + }, +}; + +pub const CHAIN_NAME: &str = "casper-net-1"; +pub const PUBLIC_KEY: &str = + "0169d8d607f3ba04c578140398ceb1bd5296c653f965256bd7097982b9026c5129"; +pub const PRIVATE_KEY: &str = r#"-----BEGIN PRIVATE KEY----- +-----END PRIVATE KEY-----"#; +pub const ARGS_JSON: &str = r#"[ +{"name": "collection_name", "type": "String", "value": "enhanced-nft-1"}, +{"name": "collection_symbol", "type": "String", "value": "ENFT-1"}, +{"name": "total_token_supply", "type": "U64", "value": 10}, +{"name": "ownership_mode", "type": "U8", "value": 0}, +{"name": "nft_kind", "type": "U8", "value": 1}, +{"name": "allow_minting", "type": "Bool", "value": true}, +{"name": "owner_reverse_lookup_mode", "type": "U8", "value": 0}, +{"name": "nft_metadata_kind", "type": "U8", "value": 2}, +{"name": "identifier_mode", "type": "U8", "value": 0}, +{"name": "metadata_mutability", "type": "U8", "value": 0}, +{"name": "events_mode", "type": "U8", "value": 1} +]"#; +pub const PAYMENT_AMOUNT_CONTRACT_CEP78: &str = "300000000000"; +pub const CEP78_CONTRACT: &str = "cep78.wasm"; +pub const DEPLOY_TIME: Duration = time::Duration::from_millis(45000); + +let deploy_params = DeployStrParams::new( + CHAIN_NAME, + PUBLIC_KEY, + Some(PRIVATE_KEY.to_string()), + None, + None, +); + +let payment_params = PaymentStrParams::default(); +payment_params.set_payment_amount(PAYMENT_AMOUNT_CONTRACT_CEP78); + +let session_params = SessionStrParams::default(); +session_params.set_session_args_json(ARGS_JSON); + +let file_path = CEP78_CONTRACT; +let module_bytes = match read_wasm_file(file_path) { + Ok(module_bytes) => module_bytes, + Err(err) => { + return Err(format!("Error reading file {}: {:?}", file_path, err)); + } +}; + +session_params.set_session_bytes(module_bytes.into()); + +let install = sdk + .install(deploy_params, session_params, payment_params, None) + .await; + +let deploy_hash_result = install.as_ref().unwrap().result.deploy_hash; +println!("{:?}", deploy_hash_result); + +println!("wait {:?}", DEPLOY_TIME); +thread::sleep(DEPLOY_TIME); // Let's wait for deployment + +let finalized_approvals = true; +let deploy_hash = DeployHash::from(deploy_hash_result); +let get_deploy = sdk + .get_deploy(deploy_hash, Some(finalized_approvals), None, None) + .await; +let get_deploy = get_deploy.unwrap(); +let result = &get_deploy.result.execution_results.get(0).unwrap().result; +println!("{}", json_pretty_print(result, Some(Verbosity::High))); +``` + +with + +```rust +fn read_wasm_file(file_path: &str) -> Result, io::Error> { + let root_path = Path::new("./wasm/"); + let path = root_path.join(file_path); + let mut file = File::open(path)?; + let mut buffer = Vec::new(); + file.read_to_end(&mut buffer)?; + Ok(buffer) +} +``` + +- Typescript + +```ts +import { + ... + DeployStrParams, + SessionStrParams, + PaymentStrParams, + privateToPublicKey, + Bytes, +} from 'casper-sdk'; + +const chain_name = 'casper-net-1'; + const private_key = `-----BEGIN PRIVATE KEY----- +-----END PRIVATE KEY-----`; +const public_key = privateToPublicKey(private_key); +const deploy_params = new DeployStrParams(chain_name, public_key, private_key); + +const session_params = new SessionStrParams(); +session_params.session_args_json = JSON.stringify([ + {"name": "collection_name", "type": "String", "value": "enhanced-nft-1"}, + {"name": "collection_symbol", "type": "String", "value": "ENFT-1"}, + {"name": "total_token_supply", "type": "U64", "value": 10}, + {"name": "ownership_mode", "type": "U8", "value": 0}, + {"name": "nft_kind", "type": "U8", "value": 1}, + {"name": "allow_minting", "type": "Bool", "value": true}, + {"name": "owner_reverse_lookup_mode", "type": "U8", "value": 0}, + {"name": "nft_metadata_kind", "type": "U8", "value": 2}, + {"name": "identifier_mode", "type": "U8", "value": 0}, + {"name": "metadata_mutability", "type": "U8", "value": 0}, + {"name": "events_mode", "type": "U8", "value": 1} +]); +const payment_amount = '300000000000'; + +const buffer = await loadFile(); +const wasm = buffer && new Uint8Array(buffer); +const wasmBuffer = wasm?.buffer; +if (!wasmBuffer) { + console.error('Failed to read wasm file.'); + return; +} + +session_params.session_bytes = Bytes.fromUint8Array(wasm); + +const install_result = await sdk.install( + deploy_params, + session_params, + payment_amount +); +const install_result_as_json = install_result.toJson(); +console.log(install_result_as_json.deploy_hash); +``` + +with + +```ts +async function loadFile() { + try { + const fileBuffer = await fs.readFile('cep78.wasm'); + return fileBuffer.buffer; // Returns an ArrayBuffer + } catch (error) { + throw new Error('Error reading file: ' + error.message); + } +} +``` + +#### Mint + +- Rust + +```rust +pub const CHAIN_NAME: &str = "casper-net-1"; +pub const PUBLIC_KEY: &str = + "0169d8d607f3ba04c578140398ceb1bd5296c653f965256bd7097982b9026c5129"; +pub const PRIVATE_KEY: &str = r#"-----BEGIN PRIVATE KEY----- + -----END PRIVATE KEY-----"#; +pub const CONTRACT_HASH: &str = + "hash-c12808431d490e2c463c2f968d0a4eaa0f9d57842508d9041aa42e2bd21eb96c"; +pub const ENTRYPOINT_MINT: &str = "mint"; +pub const TOKEN_OWNER: &str = + "account-hash-878985c8c07064e09e67cc349dd21219b8e41942a0adc4bfa378cf0eace32611"; +pub const PAYMENT_AMOUNT: &str = "5000000000"; + +let deploy_params = DeployStrParams::new( + CHAIN_NAME, + PUBLIC_KEY, + Some(PRIVATE_KEY.to_string()), + None, + None, +); +let mut session_params = SessionStrParams::default(); +session_params.set_session_hash(CONTRACT_HASH); +session_params.set_session_entry_point(ENTRYPOINT_MINT); + +let args = Vec::from([ + "token_meta_data:String='test_meta_data'".to_string(), + format!("token_owner:Key='{TOKEN_OWNER}'").to_string(), +]); +session_params.set_session_args(args); + +let payment_params = PaymentStrParams::default(); +payment_params.set_payment_amount(PAYMENT_AMOUNT); +let call_entrypoint = sdk + .call_entrypoint(deploy_params, session_params, payment_params, None) + .await; +let deploy_hash_result = call_entrypoint.as_ref().unwrap().result.deploy_hash; +println!("{:?}", deploy_hash_result); +``` + +- Typescript + +```ts +import { + ... + DeployStrParams, + SessionStrParams, + PaymentStrParams, + privateToPublicKey, + Bytes, +} from 'casper-sdk'; + +const chain_name = 'casper-net-1'; +const private_key = ''; +const public_key = privateToPublicKey(private_key); +const contract_hash = + 'hash-5be5b0ef09a7016e11292848d77f539e55791cb07a7012fbc336b1f92a4fe743'; +const entry_point = 'mint'; +const token_owner = 'account-hash-878985c8c07064e09e67cc349dd21219b8e41942a0adc4bfa378cf0eace32611'; + +const deploy_params = new DeployStrParams(chain_name, public_key, private_key); + +const session_params = new SessionStrParams(); +session_params.session_hash = contract_hash; +session_params.session_entry_point = entry_point; +session_params.session_args_simple = ["token_meta_data:String='test_meta_data'", `token_owner:Key='${token_owner}'`]; + +const call_entrypoint_result = await sdk.call_entrypoint( + deploy_params, + session_params, + payment_amount +); +const call_entrypoint_result_as_json = call_entrypoint_result.toJson(); +console.log(call_entrypoint_result_as_json.deploy_hash); +``` + +
+ +### Desktop Electron demo app + +
+ Example of usage of the SDK in a Desktop application + +
+ +![Casper Electron App](docs/images/get_status-electron.png) + +The Electron based demo app loads the Angular example build. You can use this app on your computer to test every action the SDK can take. + +```shell +$ cd ./examples/desktop/electron +$ npm install +$ npm start +$ npm build +``` + +You can download an alpha version of the app illustrating the SDK here: + +- [Microsoft Windows](examples/desktop/electron/release/Casper%20Setup%201.0.0.exe) +- [GNU/Linux AppImage](examples/desktop/electron/release/Casper-1.0.0.AppImage) +- [GNU/Linux Snap](examples/desktop/electron/release/casper_1.0.0_amd64.snap) +- [Mac][TODO] + +
+ +--- + +
+ +## Rust API + +- [Modules and Structs](https://casper-ecosystem.github.io/rustSDK/api-rust/casper_rust_wasm_sdk/) + +- [Full item list](https://casper-ecosystem.github.io/rustSDK/api-rust/casper_rust_wasm_sdk/all.html) + +### SDK + +- [SDK Struct and methods](https://casper-ecosystem.github.io/rustSDK/api-rust/casper_rust_wasm_sdk/struct.SDK.html) + +### RPC + +- [RPC List](https://casper-ecosystem.github.io/rustSDK/api-rust/casper_rust_wasm_sdk/rpcs/index.html) + +### Deploy Params + +- [Params and Args simple](https://casper-ecosystem.github.io/rustSDK/api-rust/casper_rust_wasm_sdk/types/deploy_params/index.html) + +### Deploy + +- [Deploy Type and static builder](https://casper-ecosystem.github.io/rustSDK/api-rust/casper_rust_wasm_sdk/types/deploy/struct.Deploy.html) + +### Types + +- [Current exposed types](https://casper-ecosystem.github.io/rustSDK/api-rust/casper_rust_wasm_sdk/types/index.html) + +### Helpers functions + +- [Rust helpers](https://casper-ecosystem.github.io/rustSDK/api-rust/casper_rust_wasm_sdk/helpers/index.html) + +## Typescript API + +- [Full item list](https://casper-ecosystem.github.io/rustSDK/api-wasm/index.html) + +### SDK + +- [SDK Struct and methods](https://casper-ecosystem.github.io/rustSDK/api-wasm/classes/SDK.html) + +### RPC Methods + +- [RPC List](https://casper-ecosystem.github.io/rustSDK/api-rust/casper_rust_wasm_sdk/rpcs/index.html) + +### Deploy Params + +- [Params and Args simple](https://casper-ecosystem.github.io/rustSDK/api-rust/casper_rust_wasm_sdk/types/deploy_params/index.html) + +### Deploy + +- [Deploy Type and static builder](https://casper-ecosystem.github.io/rustSDK/api-wasm/classes/Deploy.html) + +### Types + +- [Current exposed types](https://casper-ecosystem.github.io/rustSDK/api-wasm/modules.html) + +### Helpers functions + +- [TS helpers](https://casper-ecosystem.github.io/rustSDK/api-wasm/modules.html) + +## Testing + +Tests are run against NCTL by default or the network configured in corresponding configurations. Tests assume a `secret_key.pem` is either at the root of tests or in `./NCTL/casper-node/utils/nctl/assets/net-1/users/user-1/` from the root (several levels higher than the test). This path can be changed in configuration. +`./NCTL/casper-node/utils/nctl/assets/net-1/users/user-1/` from the root (so levels higher than the test). This path can be changed in configuration. + +- [Rust Integration tests](tests/integration/rust/) can be run with `cargo test -- --test-threads=1 --nocapture` [configured in config](tests/integration/rust/src/config.rs) + +- [Jest/Puppeteer E2E tests](tests/e2e/) can be run with `npm test` [configured with .env](tests/e2e/.env) or [puppeteer config](tests/e2e/puppeteer/config.ts) + +- Unit tests [TODO] + +## Todo + +- Expose more CL Types and Casper Client result Types +- EventStream +- Keygen +- Wallet connect diff --git a/docs/api-rust/casper_rust_wasm_sdk/all.html b/docs/api-rust/casper_rust_wasm_sdk/all.html new file mode 100644 index 000000000..379742cdf --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/all.html @@ -0,0 +1 @@ +List of all items in this crate

List of all items

Structs

Enums

Traits

Functions

\ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/call_entrypoint/index.html b/docs/api-rust/casper_rust_wasm_sdk/call_entrypoint/index.html new file mode 100644 index 000000000..4f3d855a5 --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/call_entrypoint/index.html @@ -0,0 +1 @@ +casper_rust_wasm_sdk::call_entrypoint - Rust
\ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/call_entrypoint/sidebar-items.js b/docs/api-rust/casper_rust_wasm_sdk/call_entrypoint/sidebar-items.js new file mode 100644 index 000000000..5244ce01c --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/call_entrypoint/sidebar-items.js @@ -0,0 +1 @@ +window.SIDEBAR_ITEMS = {}; \ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/deploy/index.html b/docs/api-rust/casper_rust_wasm_sdk/deploy/index.html new file mode 100644 index 000000000..6db54fc8a --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/deploy/index.html @@ -0,0 +1 @@ +casper_rust_wasm_sdk::deploy - Rust
\ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/deploy/sidebar-items.js b/docs/api-rust/casper_rust_wasm_sdk/deploy/sidebar-items.js new file mode 100644 index 000000000..5244ce01c --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/deploy/sidebar-items.js @@ -0,0 +1 @@ +window.SIDEBAR_ITEMS = {}; \ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/helpers/fn.cl_value_to_json.html b/docs/api-rust/casper_rust_wasm_sdk/helpers/fn.cl_value_to_json.html new file mode 100644 index 000000000..f72aa623a --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/helpers/fn.cl_value_to_json.html @@ -0,0 +1,8 @@ +cl_value_to_json in casper_rust_wasm_sdk::helpers - Rust
pub fn cl_value_to_json(cl_value: &CLValue) -> Option<Value>
Expand description

Converts a CLValue to a JSON Value.

+

Arguments

+
    +
  • cl_value - The CLValue to convert.
  • +
+

Returns

+

A JSON Value representing the CLValue data.

+
\ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/helpers/fn.get_current_timestamp.html b/docs/api-rust/casper_rust_wasm_sdk/helpers/fn.get_current_timestamp.html new file mode 100644 index 000000000..3130e9b5d --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/helpers/fn.get_current_timestamp.html @@ -0,0 +1,8 @@ +get_current_timestamp in casper_rust_wasm_sdk::helpers - Rust
pub fn get_current_timestamp(timestamp: Option<String>) -> String
Expand description

Gets the current timestamp.

+

Arguments

+
    +
  • timestamp - An optional timestamp value in milliseconds since the Unix epoch.
  • +
+

Returns

+

A string containing the current timestamp in RFC3339 format.

+
\ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/helpers/fn.get_gas_price_or_default.html b/docs/api-rust/casper_rust_wasm_sdk/helpers/fn.get_gas_price_or_default.html new file mode 100644 index 000000000..eac7a601a --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/helpers/fn.get_gas_price_or_default.html @@ -0,0 +1,8 @@ +get_gas_price_or_default in casper_rust_wasm_sdk::helpers - Rust
pub fn get_gas_price_or_default(gas_price: Option<u64>) -> u64
Expand description

Gets the gas price or returns the default value if not provided.

+

Arguments

+
    +
  • gas_price - An optional gas price value.
  • +
+

Returns

+

The gas price or the default gas price if not provided.

+
\ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/helpers/fn.get_ttl_or_default.html b/docs/api-rust/casper_rust_wasm_sdk/helpers/fn.get_ttl_or_default.html new file mode 100644 index 000000000..fb25092e7 --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/helpers/fn.get_ttl_or_default.html @@ -0,0 +1,8 @@ +get_ttl_or_default in casper_rust_wasm_sdk::helpers - Rust
pub fn get_ttl_or_default(ttl: Option<&str>) -> String
Expand description

Gets the time to live (TTL) value or returns the default value if not provided.

+

Arguments

+
    +
  • ttl - An optional TTL value as a string.
  • +
+

Returns

+

A string containing the TTL value or the default TTL if not provided.

+
\ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/helpers/fn.hex_to_string.html b/docs/api-rust/casper_rust_wasm_sdk/helpers/fn.hex_to_string.html new file mode 100644 index 000000000..efe221126 --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/helpers/fn.hex_to_string.html @@ -0,0 +1,8 @@ +hex_to_string in casper_rust_wasm_sdk::helpers - Rust
pub fn hex_to_string(hex_string: &str) -> String
Expand description

Converts a hexadecimal string to a regular string.

+

Arguments

+
    +
  • hex_string - The hexadecimal string to convert.
  • +
+

Returns

+

A regular string containing the converted value.

+
\ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/helpers/fn.hex_to_uint8_vec.html b/docs/api-rust/casper_rust_wasm_sdk/helpers/fn.hex_to_uint8_vec.html new file mode 100644 index 000000000..62003b6d4 --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/helpers/fn.hex_to_uint8_vec.html @@ -0,0 +1,8 @@ +hex_to_uint8_vec in casper_rust_wasm_sdk::helpers - Rust
pub fn hex_to_uint8_vec(hex_string: &str) -> Vec<u8> 
Expand description

Converts a hexadecimal string to a vector of unsigned 8-bit integers (Uint8Array).

+

Arguments

+
    +
  • hex_string - The hexadecimal string to convert.
  • +
+

Returns

+

A vector of unsigned 8-bit integers (Uint8Array) containing the converted value.

+
\ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/helpers/fn.insert_js_value_arg.html b/docs/api-rust/casper_rust_wasm_sdk/helpers/fn.insert_js_value_arg.html new file mode 100644 index 000000000..46e58b38b --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/helpers/fn.insert_js_value_arg.html @@ -0,0 +1,12 @@ +insert_js_value_arg in casper_rust_wasm_sdk::helpers - Rust
pub fn insert_js_value_arg(
+    args: &mut RuntimeArgs,
+    js_value_arg: JsValue
+) -> &RuntimeArgs
Expand description

Inserts a JavaScript value argument into a RuntimeArgs map.

+

Arguments

+
    +
  • args - The RuntimeArgs map to insert the argument into.
  • +
  • js_value_arg - The JavaScript value argument to insert.
  • +
+

Returns

+

The modified RuntimeArgs map.

+
\ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/helpers/fn.json_pretty_print.html b/docs/api-rust/casper_rust_wasm_sdk/helpers/fn.json_pretty_print.html new file mode 100644 index 000000000..f5b2ece5c --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/helpers/fn.json_pretty_print.html @@ -0,0 +1,10 @@ +json_pretty_print in casper_rust_wasm_sdk::helpers - Rust
pub fn json_pretty_print<T>(value: T, verbosity: Option<Verbosity>) -> Stringwhere
+    T: Serialize,
Expand description

Pretty prints a serializable value as a JSON string.

+

Arguments

+
    +
  • value - The serializable value to pretty print.
  • +
  • verbosity - An optional verbosity level for pretty printing.
  • +
+

Returns

+

A JSON string representing the pretty printed value.

+
\ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/helpers/fn.motes_to_cspr.html b/docs/api-rust/casper_rust_wasm_sdk/helpers/fn.motes_to_cspr.html new file mode 100644 index 000000000..329f4a65d --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/helpers/fn.motes_to_cspr.html @@ -0,0 +1,8 @@ +motes_to_cspr in casper_rust_wasm_sdk::helpers - Rust
pub fn motes_to_cspr(motes: &str) -> String
Expand description

Converts motes to CSPR (Casper tokens).

+

Arguments

+
    +
  • motes - The motes value to convert.
  • +
+

Returns

+

A string representing the CSPR amount.

+
\ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/helpers/fn.parse_timestamp.html b/docs/api-rust/casper_rust_wasm_sdk/helpers/fn.parse_timestamp.html new file mode 100644 index 000000000..39fab415e --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/helpers/fn.parse_timestamp.html @@ -0,0 +1,8 @@ +parse_timestamp in casper_rust_wasm_sdk::helpers - Rust
pub fn parse_timestamp(value: &str) -> Result<Timestamp, SdkError>
Expand description

Parses a timestamp string into a Timestamp object.

+

Arguments

+
    +
  • value - The timestamp string to parse.
  • +
+

Returns

+

A Result containing the parsed Timestamp or an error if parsing fails.

+
\ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/helpers/fn.parse_ttl.html b/docs/api-rust/casper_rust_wasm_sdk/helpers/fn.parse_ttl.html new file mode 100644 index 000000000..c576b5648 --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/helpers/fn.parse_ttl.html @@ -0,0 +1,8 @@ +parse_ttl in casper_rust_wasm_sdk::helpers - Rust
pub fn parse_ttl(value: &str) -> Result<TimeDiff, SdkError>
Expand description

Parses a TTL (time to live) string into a TimeDiff object.

+

Arguments

+
    +
  • value - The TTL string to parse.
  • +
+

Returns

+

A Result containing the parsed TimeDiff or an error if parsing fails.

+
\ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/helpers/fn.public_key_from_private_key.html b/docs/api-rust/casper_rust_wasm_sdk/helpers/fn.public_key_from_private_key.html new file mode 100644 index 000000000..ce90ab37b --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/helpers/fn.public_key_from_private_key.html @@ -0,0 +1,8 @@ +public_key_from_private_key in casper_rust_wasm_sdk::helpers - Rust
pub fn public_key_from_private_key(secret_key: &str) -> Result<String, ErrorExt>
Expand description

Converts a secret key in PEM format to its corresponding public key as a string.

+

Arguments

+
    +
  • secret_key - The secret key in PEM format.
  • +
+

Returns

+

A Result containing the public key as a string or an error if the conversion fails.

+
\ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/helpers/fn.secret_key_from_pem.html b/docs/api-rust/casper_rust_wasm_sdk/helpers/fn.secret_key_from_pem.html new file mode 100644 index 000000000..0f847be2d --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/helpers/fn.secret_key_from_pem.html @@ -0,0 +1,8 @@ +secret_key_from_pem in casper_rust_wasm_sdk::helpers - Rust
pub fn secret_key_from_pem(secret_key: &str) -> Result<SecretKey, ErrorExt>
Expand description

Parses a secret key in PEM format into a SecretKey object.

+

Arguments

+
    +
  • secret_key - The secret key in PEM format.
  • +
+

Returns

+

A Result containing the parsed SecretKey or an error if parsing fails.

+
\ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/helpers/index.html b/docs/api-rust/casper_rust_wasm_sdk/helpers/index.html new file mode 100644 index 000000000..34bd62c4e --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/helpers/index.html @@ -0,0 +1 @@ +casper_rust_wasm_sdk::helpers - Rust

Functions

\ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/helpers/sidebar-items.js b/docs/api-rust/casper_rust_wasm_sdk/helpers/sidebar-items.js new file mode 100644 index 000000000..6fa1c9ecf --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/helpers/sidebar-items.js @@ -0,0 +1 @@ +window.SIDEBAR_ITEMS = {"fn":["cl_value_to_json","get_current_timestamp","get_gas_price_or_default","get_ttl_or_default","hex_to_string","hex_to_uint8_vec","insert_js_value_arg","json_pretty_print","motes_to_cspr","parse_timestamp","parse_ttl","public_key_from_private_key","secret_key_from_pem"]}; \ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/index.html b/docs/api-rust/casper_rust_wasm_sdk/index.html new file mode 100644 index 000000000..2b550967c --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/index.html @@ -0,0 +1 @@ +casper_rust_wasm_sdk - Rust

Modules

Structs

\ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/install/index.html b/docs/api-rust/casper_rust_wasm_sdk/install/index.html new file mode 100644 index 000000000..4bad7c5ad --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/install/index.html @@ -0,0 +1 @@ +casper_rust_wasm_sdk::install - Rust
\ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/install/sidebar-items.js b/docs/api-rust/casper_rust_wasm_sdk/install/sidebar-items.js new file mode 100644 index 000000000..5244ce01c --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/install/sidebar-items.js @@ -0,0 +1 @@ +window.SIDEBAR_ITEMS = {}; \ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/js/externs/index.html b/docs/api-rust/casper_rust_wasm_sdk/js/externs/index.html new file mode 100644 index 000000000..f9f9de2e7 --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/js/externs/index.html @@ -0,0 +1,11 @@ + + + + + Redirection + + +

Redirecting to ../../../casper_rust_wasm_sdk/debug/index.html...

+ + + \ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/query_contract_dict/index.html b/docs/api-rust/casper_rust_wasm_sdk/query_contract_dict/index.html new file mode 100644 index 000000000..4e9a4e53f --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/query_contract_dict/index.html @@ -0,0 +1 @@ +casper_rust_wasm_sdk::query_contract_dict - Rust
\ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/query_contract_dict/sidebar-items.js b/docs/api-rust/casper_rust_wasm_sdk/query_contract_dict/sidebar-items.js new file mode 100644 index 000000000..5244ce01c --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/query_contract_dict/sidebar-items.js @@ -0,0 +1 @@ +window.SIDEBAR_ITEMS = {}; \ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/query_contract_key/index.html b/docs/api-rust/casper_rust_wasm_sdk/query_contract_key/index.html new file mode 100644 index 000000000..41d93c041 --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/query_contract_key/index.html @@ -0,0 +1 @@ +casper_rust_wasm_sdk::query_contract_key - Rust
\ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/query_contract_key/sidebar-items.js b/docs/api-rust/casper_rust_wasm_sdk/query_contract_key/sidebar-items.js new file mode 100644 index 000000000..5244ce01c --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/query_contract_key/sidebar-items.js @@ -0,0 +1 @@ +window.SIDEBAR_ITEMS = {}; \ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/rpcs/get_account/index.html b/docs/api-rust/casper_rust_wasm_sdk/rpcs/get_account/index.html new file mode 100644 index 000000000..af798297a --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/rpcs/get_account/index.html @@ -0,0 +1 @@ +casper_rust_wasm_sdk::rpcs::get_account - Rust
\ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/rpcs/get_account/sidebar-items.js b/docs/api-rust/casper_rust_wasm_sdk/rpcs/get_account/sidebar-items.js new file mode 100644 index 000000000..5244ce01c --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/rpcs/get_account/sidebar-items.js @@ -0,0 +1 @@ +window.SIDEBAR_ITEMS = {}; \ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/rpcs/get_auction_info/index.html b/docs/api-rust/casper_rust_wasm_sdk/rpcs/get_auction_info/index.html new file mode 100644 index 000000000..95ab3b35d --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/rpcs/get_auction_info/index.html @@ -0,0 +1 @@ +casper_rust_wasm_sdk::rpcs::get_auction_info - Rust
\ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/rpcs/get_auction_info/sidebar-items.js b/docs/api-rust/casper_rust_wasm_sdk/rpcs/get_auction_info/sidebar-items.js new file mode 100644 index 000000000..5244ce01c --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/rpcs/get_auction_info/sidebar-items.js @@ -0,0 +1 @@ +window.SIDEBAR_ITEMS = {}; \ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/rpcs/get_balance/enum.GetBalanceInput.html b/docs/api-rust/casper_rust_wasm_sdk/rpcs/get_balance/enum.GetBalanceInput.html new file mode 100644 index 000000000..3df6ad3b5 --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/rpcs/get_balance/enum.GetBalanceInput.html @@ -0,0 +1,23 @@ +GetBalanceInput in casper_rust_wasm_sdk::rpcs::get_balance - Rust
pub enum GetBalanceInput {
+    PurseUref(URef),
+    PurseUrefAsString(String),
+}
Expand description

Enum representing different ways to specify the purse uref.

+

Variants§

§

PurseUref(URef)

§

PurseUrefAsString(String)

Trait Implementations§

source§

impl Clone for GetBalanceInput

source§

fn clone(&self) -> GetBalanceInput

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for GetBalanceInput

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> DynClone for Twhere + T: Clone,

source§

fn __clone_box(&self, _: Private) -> *mut ()

source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/rpcs/get_balance/index.html b/docs/api-rust/casper_rust_wasm_sdk/rpcs/get_balance/index.html new file mode 100644 index 000000000..b2cb79d1e --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/rpcs/get_balance/index.html @@ -0,0 +1 @@ +casper_rust_wasm_sdk::rpcs::get_balance - Rust

Enums

\ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/rpcs/get_balance/sidebar-items.js b/docs/api-rust/casper_rust_wasm_sdk/rpcs/get_balance/sidebar-items.js new file mode 100644 index 000000000..f745c550e --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/rpcs/get_balance/sidebar-items.js @@ -0,0 +1 @@ +window.SIDEBAR_ITEMS = {"enum":["GetBalanceInput"]}; \ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/rpcs/get_block/index.html b/docs/api-rust/casper_rust_wasm_sdk/rpcs/get_block/index.html new file mode 100644 index 000000000..54d6e710e --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/rpcs/get_block/index.html @@ -0,0 +1 @@ +casper_rust_wasm_sdk::rpcs::get_block - Rust
\ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/rpcs/get_block/sidebar-items.js b/docs/api-rust/casper_rust_wasm_sdk/rpcs/get_block/sidebar-items.js new file mode 100644 index 000000000..5244ce01c --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/rpcs/get_block/sidebar-items.js @@ -0,0 +1 @@ +window.SIDEBAR_ITEMS = {}; \ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/rpcs/get_block_transfers/index.html b/docs/api-rust/casper_rust_wasm_sdk/rpcs/get_block_transfers/index.html new file mode 100644 index 000000000..fa45e14d9 --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/rpcs/get_block_transfers/index.html @@ -0,0 +1 @@ +casper_rust_wasm_sdk::rpcs::get_block_transfers - Rust
\ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/rpcs/get_block_transfers/sidebar-items.js b/docs/api-rust/casper_rust_wasm_sdk/rpcs/get_block_transfers/sidebar-items.js new file mode 100644 index 000000000..5244ce01c --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/rpcs/get_block_transfers/sidebar-items.js @@ -0,0 +1 @@ +window.SIDEBAR_ITEMS = {}; \ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/rpcs/get_chainspec/index.html b/docs/api-rust/casper_rust_wasm_sdk/rpcs/get_chainspec/index.html new file mode 100644 index 000000000..ddc5d7115 --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/rpcs/get_chainspec/index.html @@ -0,0 +1 @@ +casper_rust_wasm_sdk::rpcs::get_chainspec - Rust
\ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/rpcs/get_chainspec/sidebar-items.js b/docs/api-rust/casper_rust_wasm_sdk/rpcs/get_chainspec/sidebar-items.js new file mode 100644 index 000000000..5244ce01c --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/rpcs/get_chainspec/sidebar-items.js @@ -0,0 +1 @@ +window.SIDEBAR_ITEMS = {}; \ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/rpcs/get_deploy/index.html b/docs/api-rust/casper_rust_wasm_sdk/rpcs/get_deploy/index.html new file mode 100644 index 000000000..1dc5ccc45 --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/rpcs/get_deploy/index.html @@ -0,0 +1 @@ +casper_rust_wasm_sdk::rpcs::get_deploy - Rust
\ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/rpcs/get_deploy/sidebar-items.js b/docs/api-rust/casper_rust_wasm_sdk/rpcs/get_deploy/sidebar-items.js new file mode 100644 index 000000000..5244ce01c --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/rpcs/get_deploy/sidebar-items.js @@ -0,0 +1 @@ +window.SIDEBAR_ITEMS = {}; \ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/rpcs/get_dictionary_item/enum.DictionaryItemInput.html b/docs/api-rust/casper_rust_wasm_sdk/rpcs/get_dictionary_item/enum.DictionaryItemInput.html new file mode 100644 index 000000000..c3bd59f0a --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/rpcs/get_dictionary_item/enum.DictionaryItemInput.html @@ -0,0 +1,20 @@ +DictionaryItemInput in casper_rust_wasm_sdk::rpcs::get_dictionary_item - Rust
pub enum DictionaryItemInput {
+    Identifier(DictionaryItemIdentifier),
+    Params(DictionaryItemStrParams),
+}

Variants§

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/rpcs/get_dictionary_item/index.html b/docs/api-rust/casper_rust_wasm_sdk/rpcs/get_dictionary_item/index.html new file mode 100644 index 000000000..544385fad --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/rpcs/get_dictionary_item/index.html @@ -0,0 +1 @@ +casper_rust_wasm_sdk::rpcs::get_dictionary_item - Rust

Enums

\ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/rpcs/get_dictionary_item/sidebar-items.js b/docs/api-rust/casper_rust_wasm_sdk/rpcs/get_dictionary_item/sidebar-items.js new file mode 100644 index 000000000..e0ba12987 --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/rpcs/get_dictionary_item/sidebar-items.js @@ -0,0 +1 @@ +window.SIDEBAR_ITEMS = {"enum":["DictionaryItemInput"]}; \ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/rpcs/get_era_info/index.html b/docs/api-rust/casper_rust_wasm_sdk/rpcs/get_era_info/index.html new file mode 100644 index 000000000..3645322c5 --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/rpcs/get_era_info/index.html @@ -0,0 +1 @@ +casper_rust_wasm_sdk::rpcs::get_era_info - Rust
\ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/rpcs/get_era_info/sidebar-items.js b/docs/api-rust/casper_rust_wasm_sdk/rpcs/get_era_info/sidebar-items.js new file mode 100644 index 000000000..5244ce01c --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/rpcs/get_era_info/sidebar-items.js @@ -0,0 +1 @@ +window.SIDEBAR_ITEMS = {}; \ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/rpcs/get_era_summary/index.html b/docs/api-rust/casper_rust_wasm_sdk/rpcs/get_era_summary/index.html new file mode 100644 index 000000000..9a072b360 --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/rpcs/get_era_summary/index.html @@ -0,0 +1 @@ +casper_rust_wasm_sdk::rpcs::get_era_summary - Rust
\ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/rpcs/get_era_summary/sidebar-items.js b/docs/api-rust/casper_rust_wasm_sdk/rpcs/get_era_summary/sidebar-items.js new file mode 100644 index 000000000..5244ce01c --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/rpcs/get_era_summary/sidebar-items.js @@ -0,0 +1 @@ +window.SIDEBAR_ITEMS = {}; \ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/rpcs/get_node_status/index.html b/docs/api-rust/casper_rust_wasm_sdk/rpcs/get_node_status/index.html new file mode 100644 index 000000000..01ab83f4e --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/rpcs/get_node_status/index.html @@ -0,0 +1 @@ +casper_rust_wasm_sdk::rpcs::get_node_status - Rust
\ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/rpcs/get_node_status/sidebar-items.js b/docs/api-rust/casper_rust_wasm_sdk/rpcs/get_node_status/sidebar-items.js new file mode 100644 index 000000000..5244ce01c --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/rpcs/get_node_status/sidebar-items.js @@ -0,0 +1 @@ +window.SIDEBAR_ITEMS = {}; \ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/rpcs/get_peers/index.html b/docs/api-rust/casper_rust_wasm_sdk/rpcs/get_peers/index.html new file mode 100644 index 000000000..37e943244 --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/rpcs/get_peers/index.html @@ -0,0 +1 @@ +casper_rust_wasm_sdk::rpcs::get_peers - Rust
\ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/rpcs/get_peers/sidebar-items.js b/docs/api-rust/casper_rust_wasm_sdk/rpcs/get_peers/sidebar-items.js new file mode 100644 index 000000000..5244ce01c --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/rpcs/get_peers/sidebar-items.js @@ -0,0 +1 @@ +window.SIDEBAR_ITEMS = {}; \ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/rpcs/get_state_root_hash/index.html b/docs/api-rust/casper_rust_wasm_sdk/rpcs/get_state_root_hash/index.html new file mode 100644 index 000000000..4597b224c --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/rpcs/get_state_root_hash/index.html @@ -0,0 +1 @@ +casper_rust_wasm_sdk::rpcs::get_state_root_hash - Rust
\ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/rpcs/get_state_root_hash/sidebar-items.js b/docs/api-rust/casper_rust_wasm_sdk/rpcs/get_state_root_hash/sidebar-items.js new file mode 100644 index 000000000..5244ce01c --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/rpcs/get_state_root_hash/sidebar-items.js @@ -0,0 +1 @@ +window.SIDEBAR_ITEMS = {}; \ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/rpcs/get_validator_changes/index.html b/docs/api-rust/casper_rust_wasm_sdk/rpcs/get_validator_changes/index.html new file mode 100644 index 000000000..21938f783 --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/rpcs/get_validator_changes/index.html @@ -0,0 +1 @@ +casper_rust_wasm_sdk::rpcs::get_validator_changes - Rust
\ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/rpcs/get_validator_changes/sidebar-items.js b/docs/api-rust/casper_rust_wasm_sdk/rpcs/get_validator_changes/sidebar-items.js new file mode 100644 index 000000000..5244ce01c --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/rpcs/get_validator_changes/sidebar-items.js @@ -0,0 +1 @@ +window.SIDEBAR_ITEMS = {}; \ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/rpcs/index.html b/docs/api-rust/casper_rust_wasm_sdk/rpcs/index.html new file mode 100644 index 000000000..9ab3939a6 --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/rpcs/index.html @@ -0,0 +1 @@ +casper_rust_wasm_sdk::rpcs - Rust

Modules

\ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/rpcs/list_rpcs/index.html b/docs/api-rust/casper_rust_wasm_sdk/rpcs/list_rpcs/index.html new file mode 100644 index 000000000..abd7d0ca4 --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/rpcs/list_rpcs/index.html @@ -0,0 +1 @@ +casper_rust_wasm_sdk::rpcs::list_rpcs - Rust
\ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/rpcs/list_rpcs/sidebar-items.js b/docs/api-rust/casper_rust_wasm_sdk/rpcs/list_rpcs/sidebar-items.js new file mode 100644 index 000000000..5244ce01c --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/rpcs/list_rpcs/sidebar-items.js @@ -0,0 +1 @@ +window.SIDEBAR_ITEMS = {}; \ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/rpcs/put_deploy/index.html b/docs/api-rust/casper_rust_wasm_sdk/rpcs/put_deploy/index.html new file mode 100644 index 000000000..3c4fc901e --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/rpcs/put_deploy/index.html @@ -0,0 +1 @@ +casper_rust_wasm_sdk::rpcs::put_deploy - Rust
\ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/rpcs/put_deploy/sidebar-items.js b/docs/api-rust/casper_rust_wasm_sdk/rpcs/put_deploy/sidebar-items.js new file mode 100644 index 000000000..5244ce01c --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/rpcs/put_deploy/sidebar-items.js @@ -0,0 +1 @@ +window.SIDEBAR_ITEMS = {}; \ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/rpcs/query_balance/index.html b/docs/api-rust/casper_rust_wasm_sdk/rpcs/query_balance/index.html new file mode 100644 index 000000000..9096d49a0 --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/rpcs/query_balance/index.html @@ -0,0 +1 @@ +casper_rust_wasm_sdk::rpcs::query_balance - Rust
\ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/rpcs/query_balance/sidebar-items.js b/docs/api-rust/casper_rust_wasm_sdk/rpcs/query_balance/sidebar-items.js new file mode 100644 index 000000000..5244ce01c --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/rpcs/query_balance/sidebar-items.js @@ -0,0 +1 @@ +window.SIDEBAR_ITEMS = {}; \ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/rpcs/query_global_state/enum.KeyIdentifierInput.html b/docs/api-rust/casper_rust_wasm_sdk/rpcs/query_global_state/enum.KeyIdentifierInput.html new file mode 100644 index 000000000..bb7fba523 --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/rpcs/query_global_state/enum.KeyIdentifierInput.html @@ -0,0 +1,23 @@ +KeyIdentifierInput in casper_rust_wasm_sdk::rpcs::query_global_state - Rust
pub enum KeyIdentifierInput {
+    Key(Key),
+    String(String),
+}
Expand description

Enum to represent input for KeyIdentifier.

+

Variants§

§

Key(Key)

§

String(String)

Trait Implementations§

source§

impl Clone for KeyIdentifierInput

source§

fn clone(&self) -> KeyIdentifierInput

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for KeyIdentifierInput

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> DynClone for Twhere + T: Clone,

source§

fn __clone_box(&self, _: Private) -> *mut ()

source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/rpcs/query_global_state/enum.PathIdentifierInput.html b/docs/api-rust/casper_rust_wasm_sdk/rpcs/query_global_state/enum.PathIdentifierInput.html new file mode 100644 index 000000000..aceea831c --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/rpcs/query_global_state/enum.PathIdentifierInput.html @@ -0,0 +1,23 @@ +PathIdentifierInput in casper_rust_wasm_sdk::rpcs::query_global_state - Rust
pub enum PathIdentifierInput {
+    Path(Path),
+    String(String),
+}
Expand description

Enum to represent input for PathIdentifier.

+

Variants§

§

Path(Path)

§

String(String)

Trait Implementations§

source§

impl Clone for PathIdentifierInput

source§

fn clone(&self) -> PathIdentifierInput

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for PathIdentifierInput

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> DynClone for Twhere + T: Clone,

source§

fn __clone_box(&self, _: Private) -> *mut ()

source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/rpcs/query_global_state/index.html b/docs/api-rust/casper_rust_wasm_sdk/rpcs/query_global_state/index.html new file mode 100644 index 000000000..f89d57b60 --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/rpcs/query_global_state/index.html @@ -0,0 +1 @@ +casper_rust_wasm_sdk::rpcs::query_global_state - Rust

Structs

Enums

\ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/rpcs/query_global_state/sidebar-items.js b/docs/api-rust/casper_rust_wasm_sdk/rpcs/query_global_state/sidebar-items.js new file mode 100644 index 000000000..ee64a805b --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/rpcs/query_global_state/sidebar-items.js @@ -0,0 +1 @@ +window.SIDEBAR_ITEMS = {"enum":["KeyIdentifierInput","PathIdentifierInput"],"struct":["QueryGlobalStateOptions","QueryGlobalStateParams","QueryGlobalStateResult"]}; \ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/rpcs/query_global_state/struct.QueryGlobalStateOptions.html b/docs/api-rust/casper_rust_wasm_sdk/rpcs/query_global_state/struct.QueryGlobalStateOptions.html new file mode 100644 index 000000000..c1de7d23d --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/rpcs/query_global_state/struct.QueryGlobalStateOptions.html @@ -0,0 +1,45 @@ +QueryGlobalStateOptions in casper_rust_wasm_sdk::rpcs::query_global_state - Rust
pub struct QueryGlobalStateOptions {
+    pub global_state_identifier: Option<GlobalStateIdentifier>,
+    pub state_root_hash_as_string: Option<String>,
+    pub state_root_hash: Option<Digest>,
+    pub maybe_block_id_as_string: Option<String>,
+    pub key_as_string: Option<String>,
+    pub key: Option<Key>,
+    pub path_as_string: Option<String>,
+    pub path: Option<Path>,
+    pub node_address: Option<String>,
+    pub verbosity: Option<Verbosity>,
+}
Expand description

Options for the query_global_state method.

+

Fields§

§global_state_identifier: Option<GlobalStateIdentifier>§state_root_hash_as_string: Option<String>§state_root_hash: Option<Digest>§maybe_block_id_as_string: Option<String>§key_as_string: Option<String>§key: Option<Key>§path_as_string: Option<String>§path: Option<Path>§node_address: Option<String>§verbosity: Option<Verbosity>

Trait Implementations§

source§

impl Clone for QueryGlobalStateOptions

source§

fn clone(&self) -> QueryGlobalStateOptions

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for QueryGlobalStateOptions

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for QueryGlobalStateOptions

source§

fn default() -> QueryGlobalStateOptions

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for QueryGlobalStateOptions

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl From<QueryGlobalStateOptions> for JsValue

source§

fn from(value: QueryGlobalStateOptions) -> Self

Converts to this type from the input type.
source§

impl FromWasmAbi for QueryGlobalStateOptions

§

type Abi = u32

The wasm ABI type that this converts from when coming back out from the +ABI boundary.
source§

unsafe fn from_abi(js: u32) -> Self

Recover a Self from Self::Abi. Read more
source§

impl IntoWasmAbi for QueryGlobalStateOptions

§

type Abi = u32

The wasm ABI type that this converts into when crossing the ABI +boundary.
source§

fn into_abi(self) -> u32

Convert self into Self::Abi so that it can be sent across the wasm +ABI boundary.
source§

impl LongRefFromWasmAbi for QueryGlobalStateOptions

§

type Abi = u32

Same as RefFromWasmAbi::Abi
§

type Anchor = Ref<'static, QueryGlobalStateOptions>

Same as RefFromWasmAbi::Anchor
source§

unsafe fn long_ref_from_abi(js: Self::Abi) -> Self::Anchor

Same as RefFromWasmAbi::ref_from_abi
source§

impl OptionFromWasmAbi for QueryGlobalStateOptions

source§

fn is_none(abi: &Self::Abi) -> bool

Tests whether the argument is a “none” instance. If so it will be +deserialized as None, and otherwise it will be passed to +FromWasmAbi.
source§

impl OptionIntoWasmAbi for QueryGlobalStateOptions

source§

fn none() -> Self::Abi

Returns an ABI instance indicating “none”, which JS will interpret as +the None branch of this option. Read more
source§

impl RefFromWasmAbi for QueryGlobalStateOptions

§

type Abi = u32

The wasm ABI type references to Self are recovered from.
§

type Anchor = Ref<'static, QueryGlobalStateOptions>

The type that holds the reference to Self for the duration of the +invocation of the function that has an &Self parameter. This is +required to ensure that the lifetimes don’t persist beyond one function +call, and so that they remain anonymous.
source§

unsafe fn ref_from_abi(js: Self::Abi) -> Self::Anchor

Recover a Self::Anchor from Self::Abi. Read more
source§

impl RefMutFromWasmAbi for QueryGlobalStateOptions

§

type Abi = u32

Same as RefFromWasmAbi::Abi
§

type Anchor = RefMut<'static, QueryGlobalStateOptions>

Same as RefFromWasmAbi::Anchor
source§

unsafe fn ref_mut_from_abi(js: Self::Abi) -> Self::Anchor

Same as RefFromWasmAbi::ref_from_abi
source§

impl Serialize for QueryGlobalStateOptions

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl WasmDescribe for QueryGlobalStateOptions

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> DynClone for Twhere + T: Clone,

source§

fn __clone_box(&self, _: Private) -> *mut ()

source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> ReturnWasmAbi for Twhere + T: IntoWasmAbi,

§

type Abi = <T as IntoWasmAbi>::Abi

Same as IntoWasmAbi::Abi
source§

fn return_abi(self) -> <T as ReturnWasmAbi>::Abi

Same as IntoWasmAbi::into_abi, except that it may throw and never +return in the case of Err.
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/rpcs/query_global_state/struct.QueryGlobalStateParams.html b/docs/api-rust/casper_rust_wasm_sdk/rpcs/query_global_state/struct.QueryGlobalStateParams.html new file mode 100644 index 000000000..10f3951c3 --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/rpcs/query_global_state/struct.QueryGlobalStateParams.html @@ -0,0 +1,26 @@ +QueryGlobalStateParams in casper_rust_wasm_sdk::rpcs::query_global_state - Rust
pub struct QueryGlobalStateParams {
+    pub key: KeyIdentifierInput,
+    pub path: Option<PathIdentifierInput>,
+    pub maybe_global_state_identifier: Option<GlobalStateIdentifier>,
+    pub state_root_hash: Option<String>,
+    pub maybe_block_id: Option<String>,
+    pub node_address: Option<String>,
+    pub verbosity: Option<Verbosity>,
+}
Expand description

Struct to store parameters for querying global state.

+

Fields§

§key: KeyIdentifierInput§path: Option<PathIdentifierInput>§maybe_global_state_identifier: Option<GlobalStateIdentifier>§state_root_hash: Option<String>§maybe_block_id: Option<String>§node_address: Option<String>§verbosity: Option<Verbosity>

Trait Implementations§

source§

impl Debug for QueryGlobalStateParams

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/rpcs/query_global_state/struct.QueryGlobalStateResult.html b/docs/api-rust/casper_rust_wasm_sdk/rpcs/query_global_state/struct.QueryGlobalStateResult.html new file mode 100644 index 000000000..3988321a1 --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/rpcs/query_global_state/struct.QueryGlobalStateResult.html @@ -0,0 +1,33 @@ +QueryGlobalStateResult in casper_rust_wasm_sdk::rpcs::query_global_state - Rust
pub struct QueryGlobalStateResult(/* private fields */);

Trait Implementations§

source§

impl Clone for QueryGlobalStateResult

source§

fn clone(&self) -> QueryGlobalStateResult

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for QueryGlobalStateResult

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for QueryGlobalStateResult

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl From<QueryGlobalStateResult> for JsValue

source§

fn from(value: QueryGlobalStateResult) -> Self

Converts to this type from the input type.
source§

impl From<QueryGlobalStateResult> for QueryGlobalStateResult

source§

fn from(result: QueryGlobalStateResult) -> Self

Converts to this type from the input type.
source§

impl From<QueryGlobalStateResult> for QueryGlobalStateResult

source§

fn from(result: _QueryGlobalStateResult) -> Self

Converts to this type from the input type.
source§

impl FromWasmAbi for QueryGlobalStateResult

§

type Abi = u32

The wasm ABI type that this converts from when coming back out from the +ABI boundary.
source§

unsafe fn from_abi(js: u32) -> Self

Recover a Self from Self::Abi. Read more
source§

impl IntoWasmAbi for QueryGlobalStateResult

§

type Abi = u32

The wasm ABI type that this converts into when crossing the ABI +boundary.
source§

fn into_abi(self) -> u32

Convert self into Self::Abi so that it can be sent across the wasm +ABI boundary.
source§

impl LongRefFromWasmAbi for QueryGlobalStateResult

§

type Abi = u32

Same as RefFromWasmAbi::Abi
§

type Anchor = Ref<'static, QueryGlobalStateResult>

Same as RefFromWasmAbi::Anchor
source§

unsafe fn long_ref_from_abi(js: Self::Abi) -> Self::Anchor

Same as RefFromWasmAbi::ref_from_abi
source§

impl OptionFromWasmAbi for QueryGlobalStateResult

source§

fn is_none(abi: &Self::Abi) -> bool

Tests whether the argument is a “none” instance. If so it will be +deserialized as None, and otherwise it will be passed to +FromWasmAbi.
source§

impl OptionIntoWasmAbi for QueryGlobalStateResult

source§

fn none() -> Self::Abi

Returns an ABI instance indicating “none”, which JS will interpret as +the None branch of this option. Read more
source§

impl RefFromWasmAbi for QueryGlobalStateResult

§

type Abi = u32

The wasm ABI type references to Self are recovered from.
§

type Anchor = Ref<'static, QueryGlobalStateResult>

The type that holds the reference to Self for the duration of the +invocation of the function that has an &Self parameter. This is +required to ensure that the lifetimes don’t persist beyond one function +call, and so that they remain anonymous.
source§

unsafe fn ref_from_abi(js: Self::Abi) -> Self::Anchor

Recover a Self::Anchor from Self::Abi. Read more
source§

impl RefMutFromWasmAbi for QueryGlobalStateResult

§

type Abi = u32

Same as RefFromWasmAbi::Abi
§

type Anchor = RefMut<'static, QueryGlobalStateResult>

Same as RefFromWasmAbi::Anchor
source§

unsafe fn ref_mut_from_abi(js: Self::Abi) -> Self::Anchor

Same as RefFromWasmAbi::ref_from_abi
source§

impl Serialize for QueryGlobalStateResult

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl WasmDescribe for QueryGlobalStateResult

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> DynClone for Twhere + T: Clone,

source§

fn __clone_box(&self, _: Private) -> *mut ()

source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> ReturnWasmAbi for Twhere + T: IntoWasmAbi,

§

type Abi = <T as IntoWasmAbi>::Abi

Same as IntoWasmAbi::Abi
source§

fn return_abi(self) -> <T as ReturnWasmAbi>::Abi

Same as IntoWasmAbi::into_abi, except that it may throw and never +return in the case of Err.
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/rpcs/sidebar-items.js b/docs/api-rust/casper_rust_wasm_sdk/rpcs/sidebar-items.js new file mode 100644 index 000000000..cabf862ac --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/rpcs/sidebar-items.js @@ -0,0 +1 @@ +window.SIDEBAR_ITEMS = {"mod":["get_account","get_auction_info","get_balance","get_block","get_block_transfers","get_chainspec","get_deploy","get_dictionary_item","get_era_info","get_era_summary","get_node_status","get_peers","get_state_root_hash","get_validator_changes","list_rpcs","put_deploy","query_balance","query_global_state","speculative_exec"]}; \ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/rpcs/speculative_exec/index.html b/docs/api-rust/casper_rust_wasm_sdk/rpcs/speculative_exec/index.html new file mode 100644 index 000000000..5d1abe01b --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/rpcs/speculative_exec/index.html @@ -0,0 +1 @@ +casper_rust_wasm_sdk::rpcs::speculative_exec - Rust
\ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/rpcs/speculative_exec/sidebar-items.js b/docs/api-rust/casper_rust_wasm_sdk/rpcs/speculative_exec/sidebar-items.js new file mode 100644 index 000000000..5244ce01c --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/rpcs/speculative_exec/sidebar-items.js @@ -0,0 +1 @@ +window.SIDEBAR_ITEMS = {}; \ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/sdk/contract/call_entrypoint/index.html b/docs/api-rust/casper_rust_wasm_sdk/sdk/contract/call_entrypoint/index.html new file mode 100644 index 000000000..0c54d12cc --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/sdk/contract/call_entrypoint/index.html @@ -0,0 +1,11 @@ + + + + + Redirection + + +

Redirecting to ../../../../casper_rust_wasm_sdk/call_entrypoint/index.html...

+ + + \ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/sdk/contract/install/index.html b/docs/api-rust/casper_rust_wasm_sdk/sdk/contract/install/index.html new file mode 100644 index 000000000..e37e0fe89 --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/sdk/contract/install/index.html @@ -0,0 +1,11 @@ + + + + + Redirection + + +

Redirecting to ../../../../casper_rust_wasm_sdk/install/index.html...

+ + + \ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/sdk/contract/query_contract_dict/index.html b/docs/api-rust/casper_rust_wasm_sdk/sdk/contract/query_contract_dict/index.html new file mode 100644 index 000000000..476fd21a0 --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/sdk/contract/query_contract_dict/index.html @@ -0,0 +1,11 @@ + + + + + Redirection + + +

Redirecting to ../../../../casper_rust_wasm_sdk/query_contract_dict/index.html...

+ + + \ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/sdk/contract/query_contract_key/index.html b/docs/api-rust/casper_rust_wasm_sdk/sdk/contract/query_contract_key/index.html new file mode 100644 index 000000000..f253a8067 --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/sdk/contract/query_contract_key/index.html @@ -0,0 +1,11 @@ + + + + + Redirection + + +

Redirecting to ../../../../casper_rust_wasm_sdk/query_contract_key/index.html...

+ + + \ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/sdk/deploy/deploy/index.html b/docs/api-rust/casper_rust_wasm_sdk/sdk/deploy/deploy/index.html new file mode 100644 index 000000000..3e0d797cc --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/sdk/deploy/deploy/index.html @@ -0,0 +1,11 @@ + + + + + Redirection + + +

Redirecting to ../../../../casper_rust_wasm_sdk/deploy/index.html...

+ + + \ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/sdk/deploy/speculative_deploy/index.html b/docs/api-rust/casper_rust_wasm_sdk/sdk/deploy/speculative_deploy/index.html new file mode 100644 index 000000000..0c2ceec73 --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/sdk/deploy/speculative_deploy/index.html @@ -0,0 +1,11 @@ + + + + + Redirection + + +

Redirecting to ../../../../casper_rust_wasm_sdk/speculative_deploy/index.html...

+ + + \ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/sdk/deploy/speculative_transfer/index.html b/docs/api-rust/casper_rust_wasm_sdk/sdk/deploy/speculative_transfer/index.html new file mode 100644 index 000000000..4c8fc8f60 --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/sdk/deploy/speculative_transfer/index.html @@ -0,0 +1,11 @@ + + + + + Redirection + + +

Redirecting to ../../../../casper_rust_wasm_sdk/speculative_transfer/index.html...

+ + + \ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/sdk/deploy/transfer/index.html b/docs/api-rust/casper_rust_wasm_sdk/sdk/deploy/transfer/index.html new file mode 100644 index 000000000..8220e50e9 --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/sdk/deploy/transfer/index.html @@ -0,0 +1,11 @@ + + + + + Redirection + + +

Redirecting to ../../../../casper_rust_wasm_sdk/transfer/index.html...

+ + + \ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/sdk/rpcs/get_account/index.html b/docs/api-rust/casper_rust_wasm_sdk/sdk/rpcs/get_account/index.html new file mode 100644 index 000000000..53138739d --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/sdk/rpcs/get_account/index.html @@ -0,0 +1,11 @@ + + + + + Redirection + + +

Redirecting to ../../../../casper_rust_wasm_sdk/rpcs/get_account/index.html...

+ + + \ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/sdk/rpcs/get_auction_info/index.html b/docs/api-rust/casper_rust_wasm_sdk/sdk/rpcs/get_auction_info/index.html new file mode 100644 index 000000000..fcecba637 --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/sdk/rpcs/get_auction_info/index.html @@ -0,0 +1,11 @@ + + + + + Redirection + + +

Redirecting to ../../../../casper_rust_wasm_sdk/rpcs/get_auction_info/index.html...

+ + + \ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/sdk/rpcs/get_balance/enum.GetBalanceInput.html b/docs/api-rust/casper_rust_wasm_sdk/sdk/rpcs/get_balance/enum.GetBalanceInput.html new file mode 100644 index 000000000..53fe22a15 --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/sdk/rpcs/get_balance/enum.GetBalanceInput.html @@ -0,0 +1,11 @@ + + + + + Redirection + + +

Redirecting to ../../../../casper_rust_wasm_sdk/rpcs/get_balance/enum.GetBalanceInput.html...

+ + + \ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/sdk/rpcs/get_balance/index.html b/docs/api-rust/casper_rust_wasm_sdk/sdk/rpcs/get_balance/index.html new file mode 100644 index 000000000..9cad3a90a --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/sdk/rpcs/get_balance/index.html @@ -0,0 +1,11 @@ + + + + + Redirection + + +

Redirecting to ../../../../casper_rust_wasm_sdk/rpcs/get_balance/index.html...

+ + + \ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/sdk/rpcs/get_block/index.html b/docs/api-rust/casper_rust_wasm_sdk/sdk/rpcs/get_block/index.html new file mode 100644 index 000000000..275a64b62 --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/sdk/rpcs/get_block/index.html @@ -0,0 +1,11 @@ + + + + + Redirection + + +

Redirecting to ../../../../casper_rust_wasm_sdk/rpcs/get_block/index.html...

+ + + \ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/sdk/rpcs/get_block_transfers/index.html b/docs/api-rust/casper_rust_wasm_sdk/sdk/rpcs/get_block_transfers/index.html new file mode 100644 index 000000000..dc44f03db --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/sdk/rpcs/get_block_transfers/index.html @@ -0,0 +1,11 @@ + + + + + Redirection + + +

Redirecting to ../../../../casper_rust_wasm_sdk/rpcs/get_block_transfers/index.html...

+ + + \ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/sdk/rpcs/get_chainspec/index.html b/docs/api-rust/casper_rust_wasm_sdk/sdk/rpcs/get_chainspec/index.html new file mode 100644 index 000000000..fb5fa9dbd --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/sdk/rpcs/get_chainspec/index.html @@ -0,0 +1,11 @@ + + + + + Redirection + + +

Redirecting to ../../../../casper_rust_wasm_sdk/rpcs/get_chainspec/index.html...

+ + + \ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/sdk/rpcs/get_deploy/index.html b/docs/api-rust/casper_rust_wasm_sdk/sdk/rpcs/get_deploy/index.html new file mode 100644 index 000000000..b8cb1c201 --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/sdk/rpcs/get_deploy/index.html @@ -0,0 +1,11 @@ + + + + + Redirection + + +

Redirecting to ../../../../casper_rust_wasm_sdk/rpcs/get_deploy/index.html...

+ + + \ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/sdk/rpcs/get_dictionary_item/enum.DictionaryItemInput.html b/docs/api-rust/casper_rust_wasm_sdk/sdk/rpcs/get_dictionary_item/enum.DictionaryItemInput.html new file mode 100644 index 000000000..4dcc068ae --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/sdk/rpcs/get_dictionary_item/enum.DictionaryItemInput.html @@ -0,0 +1,11 @@ + + + + + Redirection + + +

Redirecting to ../../../../casper_rust_wasm_sdk/rpcs/get_dictionary_item/enum.DictionaryItemInput.html...

+ + + \ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/sdk/rpcs/get_dictionary_item/index.html b/docs/api-rust/casper_rust_wasm_sdk/sdk/rpcs/get_dictionary_item/index.html new file mode 100644 index 000000000..03c4ee50e --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/sdk/rpcs/get_dictionary_item/index.html @@ -0,0 +1,11 @@ + + + + + Redirection + + +

Redirecting to ../../../../casper_rust_wasm_sdk/rpcs/get_dictionary_item/index.html...

+ + + \ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/sdk/rpcs/get_era_info/index.html b/docs/api-rust/casper_rust_wasm_sdk/sdk/rpcs/get_era_info/index.html new file mode 100644 index 000000000..f5e0688bc --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/sdk/rpcs/get_era_info/index.html @@ -0,0 +1,11 @@ + + + + + Redirection + + +

Redirecting to ../../../../casper_rust_wasm_sdk/rpcs/get_era_info/index.html...

+ + + \ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/sdk/rpcs/get_era_summary/index.html b/docs/api-rust/casper_rust_wasm_sdk/sdk/rpcs/get_era_summary/index.html new file mode 100644 index 000000000..8be9d0174 --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/sdk/rpcs/get_era_summary/index.html @@ -0,0 +1,11 @@ + + + + + Redirection + + +

Redirecting to ../../../../casper_rust_wasm_sdk/rpcs/get_era_summary/index.html...

+ + + \ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/sdk/rpcs/get_node_status/index.html b/docs/api-rust/casper_rust_wasm_sdk/sdk/rpcs/get_node_status/index.html new file mode 100644 index 000000000..bcf8e62ac --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/sdk/rpcs/get_node_status/index.html @@ -0,0 +1,11 @@ + + + + + Redirection + + +

Redirecting to ../../../../casper_rust_wasm_sdk/rpcs/get_node_status/index.html...

+ + + \ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/sdk/rpcs/get_peers/index.html b/docs/api-rust/casper_rust_wasm_sdk/sdk/rpcs/get_peers/index.html new file mode 100644 index 000000000..c47f561e1 --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/sdk/rpcs/get_peers/index.html @@ -0,0 +1,11 @@ + + + + + Redirection + + +

Redirecting to ../../../../casper_rust_wasm_sdk/rpcs/get_peers/index.html...

+ + + \ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/sdk/rpcs/get_state_root_hash/index.html b/docs/api-rust/casper_rust_wasm_sdk/sdk/rpcs/get_state_root_hash/index.html new file mode 100644 index 000000000..21effd4d2 --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/sdk/rpcs/get_state_root_hash/index.html @@ -0,0 +1,11 @@ + + + + + Redirection + + +

Redirecting to ../../../../casper_rust_wasm_sdk/rpcs/get_state_root_hash/index.html...

+ + + \ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/sdk/rpcs/get_validator_changes/index.html b/docs/api-rust/casper_rust_wasm_sdk/sdk/rpcs/get_validator_changes/index.html new file mode 100644 index 000000000..e7b0b8698 --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/sdk/rpcs/get_validator_changes/index.html @@ -0,0 +1,11 @@ + + + + + Redirection + + +

Redirecting to ../../../../casper_rust_wasm_sdk/rpcs/get_validator_changes/index.html...

+ + + \ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/sdk/rpcs/index.html b/docs/api-rust/casper_rust_wasm_sdk/sdk/rpcs/index.html new file mode 100644 index 000000000..6fd90f1d4 --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/sdk/rpcs/index.html @@ -0,0 +1,11 @@ + + + + + Redirection + + +

Redirecting to ../../../casper_rust_wasm_sdk/rpcs/index.html...

+ + + \ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/sdk/rpcs/list_rpcs/index.html b/docs/api-rust/casper_rust_wasm_sdk/sdk/rpcs/list_rpcs/index.html new file mode 100644 index 000000000..9b715de9c --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/sdk/rpcs/list_rpcs/index.html @@ -0,0 +1,11 @@ + + + + + Redirection + + +

Redirecting to ../../../../casper_rust_wasm_sdk/rpcs/list_rpcs/index.html...

+ + + \ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/sdk/rpcs/put_deploy/index.html b/docs/api-rust/casper_rust_wasm_sdk/sdk/rpcs/put_deploy/index.html new file mode 100644 index 000000000..85383b394 --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/sdk/rpcs/put_deploy/index.html @@ -0,0 +1,11 @@ + + + + + Redirection + + +

Redirecting to ../../../../casper_rust_wasm_sdk/rpcs/put_deploy/index.html...

+ + + \ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/sdk/rpcs/query_balance/index.html b/docs/api-rust/casper_rust_wasm_sdk/sdk/rpcs/query_balance/index.html new file mode 100644 index 000000000..9f997e389 --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/sdk/rpcs/query_balance/index.html @@ -0,0 +1,11 @@ + + + + + Redirection + + +

Redirecting to ../../../../casper_rust_wasm_sdk/rpcs/query_balance/index.html...

+ + + \ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/sdk/rpcs/query_global_state/enum.KeyIdentifierInput.html b/docs/api-rust/casper_rust_wasm_sdk/sdk/rpcs/query_global_state/enum.KeyIdentifierInput.html new file mode 100644 index 000000000..a62a52a20 --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/sdk/rpcs/query_global_state/enum.KeyIdentifierInput.html @@ -0,0 +1,11 @@ + + + + + Redirection + + +

Redirecting to ../../../../casper_rust_wasm_sdk/rpcs/query_global_state/enum.KeyIdentifierInput.html...

+ + + \ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/sdk/rpcs/query_global_state/enum.PathIdentifierInput.html b/docs/api-rust/casper_rust_wasm_sdk/sdk/rpcs/query_global_state/enum.PathIdentifierInput.html new file mode 100644 index 000000000..ef1c1f763 --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/sdk/rpcs/query_global_state/enum.PathIdentifierInput.html @@ -0,0 +1,11 @@ + + + + + Redirection + + +

Redirecting to ../../../../casper_rust_wasm_sdk/rpcs/query_global_state/enum.PathIdentifierInput.html...

+ + + \ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/sdk/rpcs/query_global_state/index.html b/docs/api-rust/casper_rust_wasm_sdk/sdk/rpcs/query_global_state/index.html new file mode 100644 index 000000000..6a758ba92 --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/sdk/rpcs/query_global_state/index.html @@ -0,0 +1,11 @@ + + + + + Redirection + + +

Redirecting to ../../../../casper_rust_wasm_sdk/rpcs/query_global_state/index.html...

+ + + \ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/sdk/rpcs/query_global_state/struct.QueryGlobalStateOptions.html b/docs/api-rust/casper_rust_wasm_sdk/sdk/rpcs/query_global_state/struct.QueryGlobalStateOptions.html new file mode 100644 index 000000000..68ab75797 --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/sdk/rpcs/query_global_state/struct.QueryGlobalStateOptions.html @@ -0,0 +1,11 @@ + + + + + Redirection + + +

Redirecting to ../../../../casper_rust_wasm_sdk/rpcs/query_global_state/struct.QueryGlobalStateOptions.html...

+ + + \ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/sdk/rpcs/query_global_state/struct.QueryGlobalStateParams.html b/docs/api-rust/casper_rust_wasm_sdk/sdk/rpcs/query_global_state/struct.QueryGlobalStateParams.html new file mode 100644 index 000000000..d9842ad74 --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/sdk/rpcs/query_global_state/struct.QueryGlobalStateParams.html @@ -0,0 +1,11 @@ + + + + + Redirection + + +

Redirecting to ../../../../casper_rust_wasm_sdk/rpcs/query_global_state/struct.QueryGlobalStateParams.html...

+ + + \ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/sdk/rpcs/query_global_state/struct.QueryGlobalStateResult.html b/docs/api-rust/casper_rust_wasm_sdk/sdk/rpcs/query_global_state/struct.QueryGlobalStateResult.html new file mode 100644 index 000000000..48215bbf1 --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/sdk/rpcs/query_global_state/struct.QueryGlobalStateResult.html @@ -0,0 +1,11 @@ + + + + + Redirection + + +

Redirecting to ../../../../casper_rust_wasm_sdk/rpcs/query_global_state/struct.QueryGlobalStateResult.html...

+ + + \ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/sdk/rpcs/speculative_exec/index.html b/docs/api-rust/casper_rust_wasm_sdk/sdk/rpcs/speculative_exec/index.html new file mode 100644 index 000000000..b88d52035 --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/sdk/rpcs/speculative_exec/index.html @@ -0,0 +1,11 @@ + + + + + Redirection + + +

Redirecting to ../../../../casper_rust_wasm_sdk/rpcs/speculative_exec/index.html...

+ + + \ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/sdk/struct.SDK.html b/docs/api-rust/casper_rust_wasm_sdk/sdk/struct.SDK.html new file mode 100644 index 000000000..b96cf9f99 --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/sdk/struct.SDK.html @@ -0,0 +1,11 @@ + + + + + Redirection + + +

Redirecting to ../../casper_rust_wasm_sdk/struct.SDK.html...

+ + + \ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/sidebar-items.js b/docs/api-rust/casper_rust_wasm_sdk/sidebar-items.js new file mode 100644 index 000000000..bd92e9a46 --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/sidebar-items.js @@ -0,0 +1 @@ +window.SIDEBAR_ITEMS = {"mod":["call_entrypoint","debug","deploy","helpers","install","query_contract_dict","query_contract_key","rpcs","speculative_deploy","speculative_transfer","transfer","types"],"struct":["SDK"]}; \ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/speculative_deploy/index.html b/docs/api-rust/casper_rust_wasm_sdk/speculative_deploy/index.html new file mode 100644 index 000000000..610e0b741 --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/speculative_deploy/index.html @@ -0,0 +1 @@ +casper_rust_wasm_sdk::speculative_deploy - Rust
\ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/speculative_deploy/sidebar-items.js b/docs/api-rust/casper_rust_wasm_sdk/speculative_deploy/sidebar-items.js new file mode 100644 index 000000000..5244ce01c --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/speculative_deploy/sidebar-items.js @@ -0,0 +1 @@ +window.SIDEBAR_ITEMS = {}; \ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/speculative_transfer/index.html b/docs/api-rust/casper_rust_wasm_sdk/speculative_transfer/index.html new file mode 100644 index 000000000..35042be6a --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/speculative_transfer/index.html @@ -0,0 +1 @@ +casper_rust_wasm_sdk::speculative_transfer - Rust
\ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/speculative_transfer/sidebar-items.js b/docs/api-rust/casper_rust_wasm_sdk/speculative_transfer/sidebar-items.js new file mode 100644 index 000000000..5244ce01c --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/speculative_transfer/sidebar-items.js @@ -0,0 +1 @@ +window.SIDEBAR_ITEMS = {}; \ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/struct.SDK.html b/docs/api-rust/casper_rust_wasm_sdk/struct.SDK.html new file mode 100644 index 000000000..e84e2ff95 --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/struct.SDK.html @@ -0,0 +1,522 @@ +SDK in casper_rust_wasm_sdk - Rust
pub struct SDK { /* private fields */ }

Implementations§

source§

impl SDK

source

pub async fn deploy( + &self, + deploy_params: DeployStrParams, + session_params: SessionStrParams, + payment_params: PaymentStrParams, + verbosity: Option<Verbosity>, + node_address: Option<String> +) -> Result<SuccessResponse<_PutDeployResult>, SdkError>

Perform a deploy operation.

+
Arguments
+
    +
  • deploy_params - Deploy parameters.
  • +
  • session_params - Session parameters.
  • +
  • payment_params - Payment parameters.
  • +
  • verbosity - An optional verbosity level.
  • +
  • node_address - An optional node address.
  • +
+
Returns
+

A result containing a SuccessResponse or an SdkError.

+
source§

impl SDK

source

pub async fn speculative_deploy( + &self, + deploy_params: DeployStrParams, + session_params: SessionStrParams, + payment_params: PaymentStrParams, + maybe_block_identifier: Option<BlockIdentifier>, + verbosity: Option<Verbosity>, + node_address: Option<String> +) -> Result<SuccessResponse<_SpeculativeExecResult>, SdkError>

This function allows executing a deploy speculatively.

+
Arguments
+
    +
  • deploy_params - Deployment parameters for the deploy.
  • +
  • session_params - Session parameters for the deploy.
  • +
  • payment_params - Payment parameters for the deploy.
  • +
  • maybe_block_identifier - Optional block identifier.
  • +
  • verbosity - Optional verbosity level.
  • +
  • node_address - Optional node address.
  • +
+
Returns
+

A Result containing either a SuccessResponse<SpeculativeExecResult> or a SdkError in case of an error.

+
source§

impl SDK

source

pub async fn speculative_transfer( + &self, + amount: &str, + target_account: &str, + transfer_id: Option<String>, + deploy_params: DeployStrParams, + payment_params: PaymentStrParams, + maybe_block_identifier: Option<BlockIdentifierInput>, + verbosity: Option<Verbosity>, + node_address: Option<String> +) -> Result<SuccessResponse<_SpeculativeExecResult>, SdkError>

Perform a speculative transfer.

+
Arguments
+
    +
  • amount - The amount to transfer.
  • +
  • target_account - The target account.
  • +
  • transfer_id - An optional transfer ID (defaults to a random number).
  • +
  • deploy_params - The deployment parameters.
  • +
  • payment_params - The payment parameters.
  • +
  • maybe_block_identifier - An optional block identifier.
  • +
  • verbosity - The verbosity level for logging (optional).
  • +
  • node_address - The address of the node to connect to (optional).
  • +
+
Returns
+

A Result containing the result of the speculative transfer or a SdkError in case of an error.

+
source§

impl SDK

source

pub async fn transfer( + &self, + amount: &str, + target_account: &str, + transfer_id: Option<String>, + deploy_params: DeployStrParams, + payment_params: PaymentStrParams, + verbosity: Option<Verbosity>, + node_address: Option<String> +) -> Result<SuccessResponse<_PutDeployResult>, SdkError>

Perform a transfer of funds.

+
Arguments
+
    +
  • amount - The amount to transfer.
  • +
  • target_account - The target account.
  • +
  • transfer_id - An optional transfer ID (defaults to a random number).
  • +
  • deploy_params - The deployment parameters.
  • +
  • payment_params - The payment parameters.
  • +
  • verbosity - The verbosity level for logging (optional).
  • +
  • node_address - The address of the node to connect to (optional).
  • +
+
Returns
+

A Result containing the result of the transfer or a SdkError in case of an error.

+
source§

impl SDK

source

pub async fn get_account( + &self, + account_identifier: Option<AccountIdentifier>, + account_identifier_as_string: Option<String>, + maybe_block_identifier: Option<BlockIdentifierInput>, + verbosity: Option<Verbosity>, + node_address: Option<String> +) -> Result<SuccessResponse<_GetAccountResult>, SdkError>

Retrieves account information based on the provided options.

+
Arguments
+
    +
  • account_identifier - An optional AccountIdentifier for specifying the account identifier.
  • +
  • account_identifier_as_string - An optional string representing the account identifier.
  • +
  • maybe_block_identifier - An optional BlockIdentifierInput for specifying a block identifier.
  • +
  • verbosity - An optional Verbosity level for controlling the output verbosity.
  • +
  • node_address - An optional string specifying the node address to use for the request.
  • +
+
Returns
+

A Result containing either a SuccessResponse<_GetAccountResult> or a SdkError in case of an error.

+
Errors
+

Returns a SdkError if there is an error during the retrieval process.

+
source§

impl SDK

source

pub async fn get_auction_info( + &self, + maybe_block_identifier: Option<BlockIdentifierInput>, + verbosity: Option<Verbosity>, + node_address: Option<String> +) -> Result<SuccessResponse<_GetAuctionInfoResult>, SdkError>

Retrieves auction information based on the provided options.

+
Arguments
+
    +
  • maybe_block_identifier - An optional BlockIdentifierInput for specifying a block identifier.
  • +
  • verbosity - An optional Verbosity level for controlling the output verbosity.
  • +
  • node_address - An optional string specifying the node address to use for the request.
  • +
+
Returns
+

A Result containing either a GetAuctionInfoResult or a SdkError in case of an error.

+
Errors
+

Returns a SdkError if there is an error during the retrieval process.

+
source§

impl SDK

source

pub async fn get_balance( + &self, + state_root_hash: impl ToDigest, + purse_uref: GetBalanceInput, + verbosity: Option<Verbosity>, + node_address: Option<String> +) -> Result<SuccessResponse<_GetBalanceResult>, SdkError>

Retrieves balance information based on the provided options.

+
Arguments
+
    +
  • state_root_hash - The state root hash to query for balance information.
  • +
  • purse_uref - The purse uref specifying the purse for which to retrieve the balance.
  • +
  • verbosity - An optional Verbosity level for controlling the output verbosity.
  • +
  • node_address - An optional string specifying the node address to use for the request.
  • +
+
Returns
+

A Result containing either a GetBalanceResult or a SdkError in case of an error.

+
Errors
+

Returns a SdkError if there is an error during the retrieval process.

+
source§

impl SDK

source

pub async fn get_block( + &self, + maybe_block_identifier: Option<BlockIdentifierInput>, + verbosity: Option<Verbosity>, + node_address: Option<String> +) -> Result<SuccessResponse<_GetBlockResult>, SdkError>

Retrieves block information using the provided options.

+
Arguments
+
    +
  • maybe_block_identifier - An optional BlockIdentifierInput specifying the block identifier.
  • +
  • verbosity - An optional Verbosity level for the retrieval.
  • +
  • node_address - An optional node address to target for retrieval.
  • +
+
Returns
+

A Result containing either a GetBlockResult or a SdkError in case of an error.

+
Errors
+

Returns a SdkError if there is an error during the retrieval process.

+
source§

impl SDK

source

pub async fn get_block_transfers( + &self, + maybe_block_identifier: Option<BlockIdentifierInput>, + verbosity: Option<Verbosity>, + node_address: Option<String> +) -> Result<SuccessResponse<_GetBlockTransfersResult>, SdkError>

Retrieves block transfers information based on the provided options.

+
Arguments
+
    +
  • maybe_block_identifier - An optional BlockIdentifierInput specifying the block identifier.
  • +
  • verbosity - An optional Verbosity level for controlling the output verbosity.
  • +
  • node_address - An optional string specifying the node address to use for the request.
  • +
+
Returns
+

A Result containing either a GetBlockTransfersResult or a SdkError in case of an error.

+
Errors
+

Returns a SdkError if there is an error during the retrieval process.

+
source§

impl SDK

Implementations for the SDK struct.

+
source

pub async fn get_chainspec( + &self, + verbosity: Option<Verbosity>, + node_address: Option<String> +) -> Result<SuccessResponse<_GetChainspecResult>, Error>

Asynchronously retrieves the chainspec.

+
Arguments
+
    +
  • verbosity - An optional Verbosity parameter.
  • +
  • node_address - An optional node address as a string.
  • +
+
Returns
+

A Result containing either a GetChainspecResult or a SdkError in case of an error.

+
source§

impl SDK

source

pub async fn get_deploy( + &self, + deploy_hash: DeployHash, + finalized_approvals: Option<bool>, + verbosity: Option<Verbosity>, + node_address: Option<String> +) -> Result<SuccessResponse<_GetDeployResult>, Error>

Retrieves deploy information based on the provided options.

+
Arguments
+
    +
  • deploy_hash - The deploy hash.
  • +
  • finalized_approvals - An optional boolean indicating finalized approvals.
  • +
  • verbosity - An optional verbosity level.
  • +
  • node_address - An optional node address.
  • +
+
Returns
+

A Result containing either a GetDeployResult or an error.

+
source§

impl SDK

source

pub async fn get_dictionary_item( + &self, + state_root_hash: impl ToDigest, + dictionary_item_input: DictionaryItemInput, + verbosity: Option<Verbosity>, + node_address: Option<String> +) -> Result<SuccessResponse<_GetDictionaryItemResult>, SdkError>

Retrieves dictionary item information based on the provided options.

+
Arguments
+
    +
  • state_root_hash - A ToDigest implementation for specifying the state root hash.
  • +
  • dictionary_item - A DictionaryItemInput enum specifying the dictionary item to retrieve.
  • +
  • verbosity - An optional Verbosity level for controlling the output verbosity.
  • +
  • node_address - An optional string specifying the node address to use for the request.
  • +
+
Returns
+

A Result containing either a GetDictionaryItemResult or a SdkError in case of an error.

+
Errors
+

Returns a SdkError if there is an error during the retrieval process.

+
source§

impl SDK

source

pub async fn get_era_info( + &self, + maybe_block_identifier: Option<BlockIdentifierInput>, + verbosity: Option<Verbosity>, + node_address: Option<String> +) -> Result<SuccessResponse<_GetEraInfoResult>, SdkError>

👎Deprecated: prefer ‘get_era_summary’ as it doesn’t require a switch block
source§

impl SDK

source

pub async fn get_era_summary( + &self, + maybe_block_identifier: Option<BlockIdentifierInput>, + verbosity: Option<Verbosity>, + node_address: Option<String> +) -> Result<SuccessResponse<_GetEraSummaryResult>, SdkError>

Retrieves era summary information based on the provided options.

+
Arguments
+
    +
  • maybe_block_identifier - An optional BlockIdentifierInput for specifying a block identifier.
  • +
  • verbosity - An optional Verbosity level for controlling the output verbosity.
  • +
  • node_address - An optional string specifying the node address to use for the request.
  • +
+
Returns
+

A Result containing either a GetEraSummaryResult or a SdkError in case of an error.

+
Errors
+

Returns a SdkError if there is an error during the retrieval process.

+
source§

impl SDK

source

pub async fn get_node_status( + &self, + verbosity: Option<Verbosity>, + node_address: Option<String> +) -> Result<SuccessResponse<_GetNodeStatusResult>, Error>

Retrieves node status information based on the provided options.

+
Arguments
+
    +
  • verbosity - An optional Verbosity level for controlling the output verbosity.
  • +
  • node_address - An optional string specifying the node address to use for the request.
  • +
+
Returns
+

A Result containing either a GetNodeStatusResult or an Error in case of an error.

+
Errors
+

Returns an Error if there is an error during the retrieval process.

+
source§

impl SDK

source

pub async fn get_peers( + &self, + verbosity: Option<Verbosity>, + node_address: Option<String> +) -> Result<SuccessResponse<_GetPeersResult>, Error>

Retrieves peers.

+
Arguments
+
    +
  • verbosity - Optional verbosity level.
  • +
  • node_address - Optional node address.
  • +
+
Returns
+

A Result containing SuccessResponse with _GetPeersResult or an Error if an error occurs.

+
source§

impl SDK

source

pub async fn get_state_root_hash( + &self, + maybe_block_identifier: Option<BlockIdentifierInput>, + verbosity: Option<Verbosity>, + node_address: Option<String> +) -> Result<SuccessResponse<_GetStateRootHashResult>, SdkError>

Retrieves state root hash information based on the provided options.

+
Arguments
+
    +
  • maybe_block_identifier - An optional BlockIdentifierInput for specifying a block identifier.
  • +
  • verbosity - An optional Verbosity level for controlling the output verbosity.
  • +
  • node_address - An optional string specifying the node address to use for the request.
  • +
+
Returns
+

A Result containing either a GetStateRootHashResult or a SdkError in case of an error.

+
Errors
+

Returns a SdkError if there is an error during the retrieval process.

+
source§

impl SDK

source

pub async fn get_validator_changes( + &self, + verbosity: Option<Verbosity>, + node_address: Option<String> +) -> Result<SuccessResponse<_GetValidatorChangesResult>, Error>

Retrieves validator changes based on the provided options.

+
Arguments
+
    +
  • verbosity - An optional Verbosity level for controlling the output verbosity.
  • +
  • node_address - An optional string specifying the node address to use for the request.
  • +
+
Returns
+

A Result containing either a GetValidatorChangesResult or an Error in case of an error.

+
Errors
+

Returns an Error if there is an error during the retrieval process.

+
source§

impl SDK

source

pub async fn list_rpcs( + &self, + verbosity: Option<Verbosity>, + node_address: Option<String> +) -> Result<SuccessResponse<_ListRpcsResult>, Error>

Lists available RPCs based on the provided options.

+
Arguments
+
    +
  • verbosity - An optional Verbosity level for controlling the output verbosity.
  • +
  • node_address - An optional string specifying the node address to use for the request.
  • +
+
Returns
+

A Result containing either a ListRpcsResult or an Error in case of an error.

+
Errors
+

Returns an Error if there is an error during the listing process.

+
source§

impl SDK

source

pub async fn put_deploy( + &self, + deploy: Deploy, + verbosity: Option<Verbosity>, + node_address: Option<String> +) -> Result<SuccessResponse<_PutDeployResult>, Error>

Puts a deploy based on the provided options.

+
Arguments
+
    +
  • deploy - The Deploy object to be sent.
  • +
  • verbosity - An optional Verbosity level for controlling the output verbosity.
  • +
  • node_address - An optional string specifying the node address to use for the request.
  • +
+
Returns
+

A Result containing either a PutDeployResult or an Error in case of an error.

+
Errors
+

Returns an Error if there is an error during the deploy process.

+
source§

impl SDK

source

pub async fn query_balance( + &self, + maybe_global_state_identifier: Option<GlobalStateIdentifier>, + purse_identifier_as_string: Option<String>, + purse_identifier: Option<PurseIdentifier>, + state_root_hash: Option<String>, + maybe_block_id: Option<String>, + verbosity: Option<Verbosity>, + node_address: Option<String> +) -> Result<SuccessResponse<_QueryBalanceResult>, SdkError>

Retrieves balance information based on the provided options.

+
Arguments
+
    +
  • maybe_global_state_identifier - An optional GlobalStateIdentifier for specifying global state.
  • +
  • purse_identifier_as_string - An optional string representing a purse identifier.
  • +
  • purse_identifier - An optional PurseIdentifier.
  • +
  • state_root_hash - An optional string representing a state root hash.
  • +
  • maybe_block_id - An optional string representing a block identifier.
  • +
  • verbosity - An optional Verbosity level for controlling the output verbosity.
  • +
  • node_address - An optional string specifying the node address to use for the request.
  • +
+
Returns
+

A Result containing either a SuccessResponse<_QueryBalanceResult> or a SdkError in case of an error.

+
Errors
+

Returns a SdkError if there is an error during the retrieval process.

+
source§

impl SDK

source

pub fn query_global_state_js_alias_params( + &self, + options: Option<QueryGlobalStateOptions> +) -> Result<QueryGlobalStateParams, SdkError>

Builds parameters for querying global state based on the provided options.

+
Arguments
+
    +
  • options - An optional QueryGlobalStateOptions struct containing retrieval options.
  • +
+
Returns
+

A Result containing either a QueryGlobalStateParams struct or a SdkError in case of an error.

+
source

pub async fn query_global_state( + &self, + query_params: QueryGlobalStateParams +) -> Result<SuccessResponse<_QueryGlobalStateResult>, SdkError>

Retrieves global state information based on the provided parameters.

+
Arguments
+
    +
  • query_params - A QueryGlobalStateParams struct containing query parameters.
  • +
+
Returns
+

A Result containing either a SuccessResponse<_QueryGlobalStateResult> or a SdkError in case of an error.

+
source§

impl SDK

source

pub async fn speculative_exec( + &self, + deploy: Deploy, + maybe_block_identifier: Option<BlockIdentifierInput>, + verbosity: Option<Verbosity>, + node_address: Option<String> +) -> Result<SuccessResponse<_SpeculativeExecResult>, SdkError>

Perform speculative execution.

+
Arguments
+
    +
  • deploy - The deploy to execute.
  • +
  • maybe_block_identifier - The block identifier.
  • +
  • verbosity - The verbosity level for logging.
  • +
  • node_address - The address of the node to connect to.
  • +
+
Returns
+

A Result containing the result of the speculative execution or a SdkError in case of an error.

+
source§

impl SDK

source

pub fn make_deploy( + &self, + deploy_params: DeployStrParams, + session_params: SessionStrParams, + payment_params: PaymentStrParams +) -> Result<_Deploy, SdkError>

Creates a deploy using the provided parameters.

+
Arguments
+
    +
  • deploy_params - The deploy parameters.
  • +
  • session_params - The session parameters.
  • +
  • payment_params - The payment parameters.
  • +
+
Returns
+

A Result containing the created Deploy or a SdkError in case of an error.

+
source§

impl SDK

source

pub fn make_transfer( + &self, + amount: &str, + target_account: &str, + transfer_id: Option<String>, + deploy_params: DeployStrParams, + payment_params: PaymentStrParams +) -> Result<_Deploy, SdkError>

Creates a transfer deploy with the provided parameters.

+
Arguments
+
    +
  • amount - The transfer amount.
  • +
  • target_account - The target account.
  • +
  • transfer_id - Optional transfer identifier.
  • +
  • deploy_params - The deploy parameters.
  • +
  • payment_params - The payment parameters.
  • +
+
Returns
+

A Result containing the created Deploy or a SdkError in case of an error.

+
source§

impl SDK

source

pub fn sign_deploy(&mut self, deploy: _Deploy, secret_key: &str) -> Deploy

Signs a deploy using the provided secret key.

+
Arguments
+
    +
  • deploy - The deploy to sign.
  • +
  • secret_key - The secret key for signing.
  • +
+
Returns
+

The signed Deploy.

+
source§

impl SDK

A set of functions for working with smart contract entry points.

+
source

pub async fn call_entrypoint( + &self, + deploy_params: DeployStrParams, + session_params: SessionStrParams, + payment_params: PaymentStrParams, + node_address: Option<String> +) -> Result<SuccessResponse<_PutDeployResult>, SdkError>

Calls a smart contract entry point with the specified parameters and returns the result.

+
Arguments
+
    +
  • deploy_params - The deploy parameters.
  • +
  • session_params - The session parameters.
  • +
  • payment_params - The payment parameters.
  • +
  • node_address - An optional node address to send the request to.
  • +
+
Returns
+

A Result containing either a PutDeployResult or a SdkError in case of an error.

+
Errors
+

Returns a SdkError if there is an error during the call.

+
source§

impl SDK

A set of functions for installing smart contracts on the blockchain.

+
source

pub async fn install( + &self, + deploy_params: DeployStrParams, + session_params: SessionStrParams, + payment_params: PaymentStrParams, + node_address: Option<String> +) -> Result<SuccessResponse<_PutDeployResult>, SdkError>

Installs a smart contract with the specified parameters and returns the result.

+
Arguments
+
    +
  • deploy_params - The deploy parameters.
  • +
  • session_params - The session parameters.
  • +
  • payment_params - The payment parameters.
  • +
  • node_address - An optional node address to send the request to.
  • +
+
Returns
+

A Result containing either a PutDeployResult or a SdkError in case of an error.

+
Errors
+

Returns a SdkError if there is an error during the installation.

+
source§

impl SDK

source

pub async fn query_contract_dict( + &self, + state_root_hash: impl ToDigest, + dictionary_item: DictionaryItemInput, + verbosity: Option<Verbosity>, + node_address: Option<String> +) -> Result<SuccessResponse<_GetDictionaryItemResult>, SdkError>

Query a contract dictionary item.

+
Arguments
+
    +
  • state_root_hash - State root hash.
  • +
  • dictionary_item - Dictionary item input.
  • +
  • verbosity - Optional verbosity level.
  • +
  • node_address - Optional node address.
  • +
+
Returns
+

A Result containing either a SuccessResponse<GetDictionaryItemResult> or a SdkError in case of an error.

+
source§

impl SDK

source

pub async fn query_contract_key( + &self, + query_params: QueryGlobalStateParams +) -> Result<SuccessResponse<_QueryGlobalStateResult>, SdkError>

Query a contract key.

+
Arguments
+
    +
  • query_params - Query global state parameters.
  • +
+
Returns
+

A Result containing either a SuccessResponse<QueryGlobalStateResult> or a SdkError in case of an error.

+
source§

impl SDK

source

pub fn new(node_address: Option<String>, verbosity: Option<Verbosity>) -> Self

source

pub fn get_node_address(&self, node_address: Option<String>) -> String

source

pub fn set_node_address( + &mut self, + node_address: Option<String> +) -> Result<(), String>

source

pub fn get_verbosity(&self, verbosity: Option<Verbosity>) -> Verbosity

source

pub fn set_verbosity( + &mut self, + verbosity: Option<Verbosity> +) -> Result<(), String>

Trait Implementations§

source§

impl Default for SDK

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl From<SDK> for JsValue

source§

fn from(value: SDK) -> Self

Converts to this type from the input type.
source§

impl FromWasmAbi for SDK

§

type Abi = u32

The wasm ABI type that this converts from when coming back out from the +ABI boundary.
source§

unsafe fn from_abi(js: u32) -> Self

Recover a Self from Self::Abi. Read more
source§

impl IntoWasmAbi for SDK

§

type Abi = u32

The wasm ABI type that this converts into when crossing the ABI +boundary.
source§

fn into_abi(self) -> u32

Convert self into Self::Abi so that it can be sent across the wasm +ABI boundary.
source§

impl LongRefFromWasmAbi for SDK

§

type Abi = u32

Same as RefFromWasmAbi::Abi
§

type Anchor = Ref<'static, SDK>

Same as RefFromWasmAbi::Anchor
source§

unsafe fn long_ref_from_abi(js: Self::Abi) -> Self::Anchor

Same as RefFromWasmAbi::ref_from_abi
source§

impl OptionFromWasmAbi for SDK

source§

fn is_none(abi: &Self::Abi) -> bool

Tests whether the argument is a “none” instance. If so it will be +deserialized as None, and otherwise it will be passed to +FromWasmAbi.
source§

impl OptionIntoWasmAbi for SDK

source§

fn none() -> Self::Abi

Returns an ABI instance indicating “none”, which JS will interpret as +the None branch of this option. Read more
source§

impl RefFromWasmAbi for SDK

§

type Abi = u32

The wasm ABI type references to Self are recovered from.
§

type Anchor = Ref<'static, SDK>

The type that holds the reference to Self for the duration of the +invocation of the function that has an &Self parameter. This is +required to ensure that the lifetimes don’t persist beyond one function +call, and so that they remain anonymous.
source§

unsafe fn ref_from_abi(js: Self::Abi) -> Self::Anchor

Recover a Self::Anchor from Self::Abi. Read more
source§

impl RefMutFromWasmAbi for SDK

§

type Abi = u32

Same as RefFromWasmAbi::Abi
§

type Anchor = RefMut<'static, SDK>

Same as RefFromWasmAbi::Anchor
source§

unsafe fn ref_mut_from_abi(js: Self::Abi) -> Self::Anchor

Same as RefFromWasmAbi::ref_from_abi
source§

impl WasmDescribe for SDK

Auto Trait Implementations§

§

impl RefUnwindSafe for SDK

§

impl Send for SDK

§

impl Sync for SDK

§

impl Unpin for SDK

§

impl UnwindSafe for SDK

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> ReturnWasmAbi for Twhere + T: IntoWasmAbi,

§

type Abi = <T as IntoWasmAbi>::Abi

Same as IntoWasmAbi::Abi
source§

fn return_abi(self) -> <T as ReturnWasmAbi>::Abi

Same as IntoWasmAbi::into_abi, except that it may throw and never +return in the case of Err.
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/transfer/index.html b/docs/api-rust/casper_rust_wasm_sdk/transfer/index.html new file mode 100644 index 000000000..eb351cd75 --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/transfer/index.html @@ -0,0 +1 @@ +casper_rust_wasm_sdk::transfer - Rust
\ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/transfer/sidebar-items.js b/docs/api-rust/casper_rust_wasm_sdk/transfer/sidebar-items.js new file mode 100644 index 000000000..5244ce01c --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/transfer/sidebar-items.js @@ -0,0 +1 @@ +window.SIDEBAR_ITEMS = {}; \ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/types/access_rights/index.html b/docs/api-rust/casper_rust_wasm_sdk/types/access_rights/index.html new file mode 100644 index 000000000..837504578 --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/types/access_rights/index.html @@ -0,0 +1 @@ +casper_rust_wasm_sdk::types::access_rights - Rust

Structs

\ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/types/access_rights/sidebar-items.js b/docs/api-rust/casper_rust_wasm_sdk/types/access_rights/sidebar-items.js new file mode 100644 index 000000000..6b422dd10 --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/types/access_rights/sidebar-items.js @@ -0,0 +1 @@ +window.SIDEBAR_ITEMS = {"struct":["AccessRights"]}; \ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/types/access_rights/struct.AccessRights.html b/docs/api-rust/casper_rust_wasm_sdk/types/access_rights/struct.AccessRights.html new file mode 100644 index 000000000..3b2395ffb --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/types/access_rights/struct.AccessRights.html @@ -0,0 +1,28 @@ +AccessRights in casper_rust_wasm_sdk::types::access_rights - Rust
pub struct AccessRights(/* private fields */);

Implementations§

source§

impl AccessRights

source

pub fn none() -> u8

source

pub fn read() -> u8

source

pub fn write() -> u8

source

pub fn add() -> u8

source

pub fn read_add() -> u8

source

pub fn read_write() -> u8

source

pub fn add_write() -> u8

source

pub fn read_add_write() -> u8

source

pub fn new(access_rights: u8) -> Result<AccessRights, JsValue>

source

pub fn from_bits(read: bool, write: bool, add: bool) -> Self

source

pub fn is_readable(&self) -> bool

source

pub fn is_writeable(&self) -> bool

source

pub fn is_addable(&self) -> bool

source

pub fn is_none(&self) -> bool

Trait Implementations§

source§

impl Debug for AccessRights

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for AccessRights

source§

fn default() -> AccessRights

Returns the “default value” for a type. Read more
source§

impl From<AccessRights> for AccessRights

source§

fn from(access_rights: _AccessRights) -> Self

Converts to this type from the input type.
source§

impl From<AccessRights> for AccessRights

source§

fn from(access_rights: AccessRights) -> Self

Converts to this type from the input type.
source§

impl From<AccessRights> for JsValue

source§

fn from(value: AccessRights) -> Self

Converts to this type from the input type.
source§

impl FromWasmAbi for AccessRights

§

type Abi = u32

The wasm ABI type that this converts from when coming back out from the +ABI boundary.
source§

unsafe fn from_abi(js: u32) -> Self

Recover a Self from Self::Abi. Read more
source§

impl IntoWasmAbi for AccessRights

§

type Abi = u32

The wasm ABI type that this converts into when crossing the ABI +boundary.
source§

fn into_abi(self) -> u32

Convert self into Self::Abi so that it can be sent across the wasm +ABI boundary.
source§

impl LongRefFromWasmAbi for AccessRights

§

type Abi = u32

Same as RefFromWasmAbi::Abi
§

type Anchor = Ref<'static, AccessRights>

Same as RefFromWasmAbi::Anchor
source§

unsafe fn long_ref_from_abi(js: Self::Abi) -> Self::Anchor

Same as RefFromWasmAbi::ref_from_abi
source§

impl OptionFromWasmAbi for AccessRights

source§

fn is_none(abi: &Self::Abi) -> bool

Tests whether the argument is a “none” instance. If so it will be +deserialized as None, and otherwise it will be passed to +FromWasmAbi.
source§

impl OptionIntoWasmAbi for AccessRights

source§

fn none() -> Self::Abi

Returns an ABI instance indicating “none”, which JS will interpret as +the None branch of this option. Read more
source§

impl RefFromWasmAbi for AccessRights

§

type Abi = u32

The wasm ABI type references to Self are recovered from.
§

type Anchor = Ref<'static, AccessRights>

The type that holds the reference to Self for the duration of the +invocation of the function that has an &Self parameter. This is +required to ensure that the lifetimes don’t persist beyond one function +call, and so that they remain anonymous.
source§

unsafe fn ref_from_abi(js: Self::Abi) -> Self::Anchor

Recover a Self::Anchor from Self::Abi. Read more
source§

impl RefMutFromWasmAbi for AccessRights

§

type Abi = u32

Same as RefFromWasmAbi::Abi
§

type Anchor = RefMut<'static, AccessRights>

Same as RefFromWasmAbi::Anchor
source§

unsafe fn ref_mut_from_abi(js: Self::Abi) -> Self::Anchor

Same as RefFromWasmAbi::ref_from_abi
source§

impl WasmDescribe for AccessRights

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> ReturnWasmAbi for Twhere + T: IntoWasmAbi,

§

type Abi = <T as IntoWasmAbi>::Abi

Same as IntoWasmAbi::Abi
source§

fn return_abi(self) -> <T as ReturnWasmAbi>::Abi

Same as IntoWasmAbi::into_abi, except that it may throw and never +return in the case of Err.
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/types/account_hash/index.html b/docs/api-rust/casper_rust_wasm_sdk/types/account_hash/index.html new file mode 100644 index 000000000..83f1edc10 --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/types/account_hash/index.html @@ -0,0 +1 @@ +casper_rust_wasm_sdk::types::account_hash - Rust

Structs

\ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/types/account_hash/sidebar-items.js b/docs/api-rust/casper_rust_wasm_sdk/types/account_hash/sidebar-items.js new file mode 100644 index 000000000..4e0a7f8ae --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/types/account_hash/sidebar-items.js @@ -0,0 +1 @@ +window.SIDEBAR_ITEMS = {"struct":["AccountHash"]}; \ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/types/account_hash/struct.AccountHash.html b/docs/api-rust/casper_rust_wasm_sdk/types/account_hash/struct.AccountHash.html new file mode 100644 index 000000000..67b383027 --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/types/account_hash/struct.AccountHash.html @@ -0,0 +1,36 @@ +AccountHash in casper_rust_wasm_sdk::types::account_hash - Rust
pub struct AccountHash(/* private fields */);

Implementations§

source§

impl AccountHash

source

pub fn new(account_hash_hex_str: &str) -> Result<AccountHash, JsValue>

source

pub fn from_formatted_str(formatted_str: &str) -> Result<AccountHash, JsValue>

source

pub fn from_public_key(public_key: PublicKey) -> AccountHash

source

pub fn to_formatted_string(&self) -> String

source

pub fn from_bytes(bytes: Vec<u8>) -> AccountHash

Trait Implementations§

source§

impl Clone for AccountHash

source§

fn clone(&self) -> AccountHash

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for AccountHash

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for AccountHash

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl From<AccountHash> for AccountHash

source§

fn from(account_hash: _AccountHash) -> Self

Converts to this type from the input type.
source§

impl From<AccountHash> for AccountHash

source§

fn from(account_hash: AccountHash) -> Self

Converts to this type from the input type.
source§

impl From<AccountHash> for AccountIdentifier

source§

fn from(account_hash: AccountHash) -> Self

Converts to this type from the input type.
source§

impl From<AccountHash> for JsValue

source§

fn from(value: AccountHash) -> Self

Converts to this type from the input type.
source§

impl From<AccountHash> for PurseIdentifier

source§

fn from(account_hash: AccountHash) -> Self

Converts to this type from the input type.
source§

impl From<AccountIdentifier> for AccountHash

source§

fn from(account_identifier: AccountIdentifier) -> Self

Converts to this type from the input type.
source§

impl From<PurseIdentifier> for AccountHash

source§

fn from(purse_identifier: PurseIdentifier) -> Self

Converts to this type from the input type.
source§

impl FromBytes for AccountHash

source§

fn from_bytes(bytes: &[u8]) -> Result<(Self, &[u8]), Error>

Deserializes the slice into Self.
source§

fn from_vec(bytes: Vec<u8, Global>) -> Result<(Self, Vec<u8, Global>), Error>

Deserializes the Vec<u8> into Self.
source§

impl FromWasmAbi for AccountHash

§

type Abi = u32

The wasm ABI type that this converts from when coming back out from the +ABI boundary.
source§

unsafe fn from_abi(js: u32) -> Self

Recover a Self from Self::Abi. Read more
source§

impl IntoWasmAbi for AccountHash

§

type Abi = u32

The wasm ABI type that this converts into when crossing the ABI +boundary.
source§

fn into_abi(self) -> u32

Convert self into Self::Abi so that it can be sent across the wasm +ABI boundary.
source§

impl LongRefFromWasmAbi for AccountHash

§

type Abi = u32

Same as RefFromWasmAbi::Abi
§

type Anchor = Ref<'static, AccountHash>

Same as RefFromWasmAbi::Anchor
source§

unsafe fn long_ref_from_abi(js: Self::Abi) -> Self::Anchor

Same as RefFromWasmAbi::ref_from_abi
source§

impl OptionFromWasmAbi for AccountHash

source§

fn is_none(abi: &Self::Abi) -> bool

Tests whether the argument is a “none” instance. If so it will be +deserialized as None, and otherwise it will be passed to +FromWasmAbi.
source§

impl OptionIntoWasmAbi for AccountHash

source§

fn none() -> Self::Abi

Returns an ABI instance indicating “none”, which JS will interpret as +the None branch of this option. Read more
source§

impl RefFromWasmAbi for AccountHash

§

type Abi = u32

The wasm ABI type references to Self are recovered from.
§

type Anchor = Ref<'static, AccountHash>

The type that holds the reference to Self for the duration of the +invocation of the function that has an &Self parameter. This is +required to ensure that the lifetimes don’t persist beyond one function +call, and so that they remain anonymous.
source§

unsafe fn ref_from_abi(js: Self::Abi) -> Self::Anchor

Recover a Self::Anchor from Self::Abi. Read more
source§

impl RefMutFromWasmAbi for AccountHash

§

type Abi = u32

Same as RefFromWasmAbi::Abi
§

type Anchor = RefMut<'static, AccountHash>

Same as RefFromWasmAbi::Anchor
source§

unsafe fn ref_mut_from_abi(js: Self::Abi) -> Self::Anchor

Same as RefFromWasmAbi::ref_from_abi
source§

impl Serialize for AccountHash

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl ToBytes for AccountHash

source§

fn to_bytes(&self) -> Result<Vec<u8>, Error>

Serializes &self to a Vec<u8>.
source§

fn serialized_length(&self) -> usize

Returns the length of the Vec<u8> which would be returned from a successful call to +to_bytes() or into_bytes(). The data is not actually serialized, so this call is +relatively cheap.
source§

fn write_bytes(&self, bytes: &mut Vec<u8>) -> Result<(), Error>

Writes &self into a mutable writer.
source§

fn into_bytes(self) -> Result<Vec<u8, Global>, Error>where + Self: Sized,

Consumes self and serializes to a Vec<u8>.
source§

impl WasmDescribe for AccountHash

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> DynClone for Twhere + T: Clone,

source§

fn __clone_box(&self, _: Private) -> *mut ()

source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> ReturnWasmAbi for Twhere + T: IntoWasmAbi,

§

type Abi = <T as IntoWasmAbi>::Abi

Same as IntoWasmAbi::Abi
source§

fn return_abi(self) -> <T as ReturnWasmAbi>::Abi

Same as IntoWasmAbi::into_abi, except that it may throw and never +return in the case of Err.
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/types/account_identifier/index.html b/docs/api-rust/casper_rust_wasm_sdk/types/account_identifier/index.html new file mode 100644 index 000000000..7d093c33e --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/types/account_identifier/index.html @@ -0,0 +1 @@ +casper_rust_wasm_sdk::types::account_identifier - Rust

Structs

\ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/types/account_identifier/sidebar-items.js b/docs/api-rust/casper_rust_wasm_sdk/types/account_identifier/sidebar-items.js new file mode 100644 index 000000000..9c3cff9a8 --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/types/account_identifier/sidebar-items.js @@ -0,0 +1 @@ +window.SIDEBAR_ITEMS = {"struct":["AccountIdentifier"]}; \ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/types/account_identifier/struct.AccountIdentifier.html b/docs/api-rust/casper_rust_wasm_sdk/types/account_identifier/struct.AccountIdentifier.html new file mode 100644 index 000000000..86fdd0f53 --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/types/account_identifier/struct.AccountIdentifier.html @@ -0,0 +1,35 @@ +AccountIdentifier in casper_rust_wasm_sdk::types::account_identifier - Rust
pub struct AccountIdentifier(/* private fields */);

Implementations§

Trait Implementations§

source§

impl Clone for AccountIdentifier

source§

fn clone(&self) -> AccountIdentifier

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for AccountIdentifier

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for AccountIdentifier

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl From<AccountHash> for AccountIdentifier

source§

fn from(account_hash: AccountHash) -> Self

Converts to this type from the input type.
source§

impl From<AccountIdentifier> for AccountHash

source§

fn from(account_identifier: AccountIdentifier) -> Self

Converts to this type from the input type.
source§

impl From<AccountIdentifier> for AccountIdentifier

source§

fn from(account_identifier: _AccountIdentifier) -> Self

Converts to this type from the input type.
source§

impl From<AccountIdentifier> for AccountIdentifier

source§

fn from(account_identifier: AccountIdentifier) -> Self

Converts to this type from the input type.
source§

impl From<AccountIdentifier> for JsValue

source§

fn from(value: AccountIdentifier) -> Self

Converts to this type from the input type.
source§

impl From<AccountIdentifier> for PublicKey

source§

fn from(account_identifier: AccountIdentifier) -> Self

Converts to this type from the input type.
source§

impl From<PublicKey> for AccountIdentifier

source§

fn from(key: PublicKey) -> Self

Converts to this type from the input type.
source§

impl FromWasmAbi for AccountIdentifier

§

type Abi = u32

The wasm ABI type that this converts from when coming back out from the +ABI boundary.
source§

unsafe fn from_abi(js: u32) -> Self

Recover a Self from Self::Abi. Read more
source§

impl IntoWasmAbi for AccountIdentifier

§

type Abi = u32

The wasm ABI type that this converts into when crossing the ABI +boundary.
source§

fn into_abi(self) -> u32

Convert self into Self::Abi so that it can be sent across the wasm +ABI boundary.
source§

impl LongRefFromWasmAbi for AccountIdentifier

§

type Abi = u32

Same as RefFromWasmAbi::Abi
§

type Anchor = Ref<'static, AccountIdentifier>

Same as RefFromWasmAbi::Anchor
source§

unsafe fn long_ref_from_abi(js: Self::Abi) -> Self::Anchor

Same as RefFromWasmAbi::ref_from_abi
source§

impl OptionFromWasmAbi for AccountIdentifier

source§

fn is_none(abi: &Self::Abi) -> bool

Tests whether the argument is a “none” instance. If so it will be +deserialized as None, and otherwise it will be passed to +FromWasmAbi.
source§

impl OptionIntoWasmAbi for AccountIdentifier

source§

fn none() -> Self::Abi

Returns an ABI instance indicating “none”, which JS will interpret as +the None branch of this option. Read more
source§

impl RefFromWasmAbi for AccountIdentifier

§

type Abi = u32

The wasm ABI type references to Self are recovered from.
§

type Anchor = Ref<'static, AccountIdentifier>

The type that holds the reference to Self for the duration of the +invocation of the function that has an &Self parameter. This is +required to ensure that the lifetimes don’t persist beyond one function +call, and so that they remain anonymous.
source§

unsafe fn ref_from_abi(js: Self::Abi) -> Self::Anchor

Recover a Self::Anchor from Self::Abi. Read more
source§

impl RefMutFromWasmAbi for AccountIdentifier

§

type Abi = u32

Same as RefFromWasmAbi::Abi
§

type Anchor = RefMut<'static, AccountIdentifier>

Same as RefFromWasmAbi::Anchor
source§

unsafe fn ref_mut_from_abi(js: Self::Abi) -> Self::Anchor

Same as RefFromWasmAbi::ref_from_abi
source§

impl Serialize for AccountIdentifier

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl ToString for AccountIdentifier

source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl WasmDescribe for AccountIdentifier

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> DynClone for Twhere + T: Clone,

source§

fn __clone_box(&self, _: Private) -> *mut ()

source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> ReturnWasmAbi for Twhere + T: IntoWasmAbi,

§

type Abi = <T as IntoWasmAbi>::Abi

Same as IntoWasmAbi::Abi
source§

fn return_abi(self) -> <T as ReturnWasmAbi>::Abi

Same as IntoWasmAbi::into_abi, except that it may throw and never +return in the case of Err.
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/types/addr/dictionary_addr/index.html b/docs/api-rust/casper_rust_wasm_sdk/types/addr/dictionary_addr/index.html new file mode 100644 index 000000000..b3f6a0979 --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/types/addr/dictionary_addr/index.html @@ -0,0 +1 @@ +casper_rust_wasm_sdk::types::addr::dictionary_addr - Rust

Structs

\ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/types/addr/dictionary_addr/sidebar-items.js b/docs/api-rust/casper_rust_wasm_sdk/types/addr/dictionary_addr/sidebar-items.js new file mode 100644 index 000000000..f403ca697 --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/types/addr/dictionary_addr/sidebar-items.js @@ -0,0 +1 @@ +window.SIDEBAR_ITEMS = {"struct":["DictionaryAddr"]}; \ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/types/addr/dictionary_addr/struct.DictionaryAddr.html b/docs/api-rust/casper_rust_wasm_sdk/types/addr/dictionary_addr/struct.DictionaryAddr.html new file mode 100644 index 000000000..c8a2bcc63 --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/types/addr/dictionary_addr/struct.DictionaryAddr.html @@ -0,0 +1,28 @@ +DictionaryAddr in casper_rust_wasm_sdk::types::addr::dictionary_addr - Rust
pub struct DictionaryAddr(/* private fields */);

Implementations§

Trait Implementations§

source§

impl From<[u8; 32]> for DictionaryAddr

source§

fn from(dictionary_addr: _DictionaryAddr) -> Self

Converts to this type from the input type.
source§

impl From<DictionaryAddr> for DictionaryAddr

source§

fn from(dictionary_addr: DictionaryAddr) -> Self

Converts to this type from the input type.
source§

impl From<DictionaryAddr> for JsValue

source§

fn from(value: DictionaryAddr) -> Self

Converts to this type from the input type.
source§

impl FromWasmAbi for DictionaryAddr

§

type Abi = u32

The wasm ABI type that this converts from when coming back out from the +ABI boundary.
source§

unsafe fn from_abi(js: u32) -> Self

Recover a Self from Self::Abi. Read more
source§

impl IntoWasmAbi for DictionaryAddr

§

type Abi = u32

The wasm ABI type that this converts into when crossing the ABI +boundary.
source§

fn into_abi(self) -> u32

Convert self into Self::Abi so that it can be sent across the wasm +ABI boundary.
source§

impl LongRefFromWasmAbi for DictionaryAddr

§

type Abi = u32

Same as RefFromWasmAbi::Abi
§

type Anchor = Ref<'static, DictionaryAddr>

Same as RefFromWasmAbi::Anchor
source§

unsafe fn long_ref_from_abi(js: Self::Abi) -> Self::Anchor

Same as RefFromWasmAbi::ref_from_abi
source§

impl OptionFromWasmAbi for DictionaryAddr

source§

fn is_none(abi: &Self::Abi) -> bool

Tests whether the argument is a “none” instance. If so it will be +deserialized as None, and otherwise it will be passed to +FromWasmAbi.
source§

impl OptionIntoWasmAbi for DictionaryAddr

source§

fn none() -> Self::Abi

Returns an ABI instance indicating “none”, which JS will interpret as +the None branch of this option. Read more
source§

impl RefFromWasmAbi for DictionaryAddr

§

type Abi = u32

The wasm ABI type references to Self are recovered from.
§

type Anchor = Ref<'static, DictionaryAddr>

The type that holds the reference to Self for the duration of the +invocation of the function that has an &Self parameter. This is +required to ensure that the lifetimes don’t persist beyond one function +call, and so that they remain anonymous.
source§

unsafe fn ref_from_abi(js: Self::Abi) -> Self::Anchor

Recover a Self::Anchor from Self::Abi. Read more
source§

impl RefMutFromWasmAbi for DictionaryAddr

§

type Abi = u32

Same as RefFromWasmAbi::Abi
§

type Anchor = RefMut<'static, DictionaryAddr>

Same as RefFromWasmAbi::Anchor
source§

unsafe fn ref_mut_from_abi(js: Self::Abi) -> Self::Anchor

Same as RefFromWasmAbi::ref_from_abi
source§

impl WasmDescribe for DictionaryAddr

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> ReturnWasmAbi for Twhere + T: IntoWasmAbi,

§

type Abi = <T as IntoWasmAbi>::Abi

Same as IntoWasmAbi::Abi
source§

fn return_abi(self) -> <T as ReturnWasmAbi>::Abi

Same as IntoWasmAbi::into_abi, except that it may throw and never +return in the case of Err.
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/types/addr/hash_addr/index.html b/docs/api-rust/casper_rust_wasm_sdk/types/addr/hash_addr/index.html new file mode 100644 index 000000000..6031b7101 --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/types/addr/hash_addr/index.html @@ -0,0 +1 @@ +casper_rust_wasm_sdk::types::addr::hash_addr - Rust

Structs

\ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/types/addr/hash_addr/sidebar-items.js b/docs/api-rust/casper_rust_wasm_sdk/types/addr/hash_addr/sidebar-items.js new file mode 100644 index 000000000..d38d1c2e3 --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/types/addr/hash_addr/sidebar-items.js @@ -0,0 +1 @@ +window.SIDEBAR_ITEMS = {"struct":["HashAddr"]}; \ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/types/addr/hash_addr/struct.HashAddr.html b/docs/api-rust/casper_rust_wasm_sdk/types/addr/hash_addr/struct.HashAddr.html new file mode 100644 index 000000000..b4f28408f --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/types/addr/hash_addr/struct.HashAddr.html @@ -0,0 +1,28 @@ +HashAddr in casper_rust_wasm_sdk::types::addr::hash_addr - Rust
pub struct HashAddr(/* private fields */);

Implementations§

Trait Implementations§

source§

impl From<[u8; 32]> for HashAddr

source§

fn from(hash_addr: _HashAddr) -> Self

Converts to this type from the input type.
source§

impl From<HashAddr> for HashAddr

source§

fn from(hash_addr: HashAddr) -> Self

Converts to this type from the input type.
source§

impl From<HashAddr> for JsValue

source§

fn from(value: HashAddr) -> Self

Converts to this type from the input type.
source§

impl FromWasmAbi for HashAddr

§

type Abi = u32

The wasm ABI type that this converts from when coming back out from the +ABI boundary.
source§

unsafe fn from_abi(js: u32) -> Self

Recover a Self from Self::Abi. Read more
source§

impl IntoWasmAbi for HashAddr

§

type Abi = u32

The wasm ABI type that this converts into when crossing the ABI +boundary.
source§

fn into_abi(self) -> u32

Convert self into Self::Abi so that it can be sent across the wasm +ABI boundary.
source§

impl LongRefFromWasmAbi for HashAddr

§

type Abi = u32

Same as RefFromWasmAbi::Abi
§

type Anchor = Ref<'static, HashAddr>

Same as RefFromWasmAbi::Anchor
source§

unsafe fn long_ref_from_abi(js: Self::Abi) -> Self::Anchor

Same as RefFromWasmAbi::ref_from_abi
source§

impl OptionFromWasmAbi for HashAddr

source§

fn is_none(abi: &Self::Abi) -> bool

Tests whether the argument is a “none” instance. If so it will be +deserialized as None, and otherwise it will be passed to +FromWasmAbi.
source§

impl OptionIntoWasmAbi for HashAddr

source§

fn none() -> Self::Abi

Returns an ABI instance indicating “none”, which JS will interpret as +the None branch of this option. Read more
source§

impl RefFromWasmAbi for HashAddr

§

type Abi = u32

The wasm ABI type references to Self are recovered from.
§

type Anchor = Ref<'static, HashAddr>

The type that holds the reference to Self for the duration of the +invocation of the function that has an &Self parameter. This is +required to ensure that the lifetimes don’t persist beyond one function +call, and so that they remain anonymous.
source§

unsafe fn ref_from_abi(js: Self::Abi) -> Self::Anchor

Recover a Self::Anchor from Self::Abi. Read more
source§

impl RefMutFromWasmAbi for HashAddr

§

type Abi = u32

Same as RefFromWasmAbi::Abi
§

type Anchor = RefMut<'static, HashAddr>

Same as RefFromWasmAbi::Anchor
source§

unsafe fn ref_mut_from_abi(js: Self::Abi) -> Self::Anchor

Same as RefFromWasmAbi::ref_from_abi
source§

impl WasmDescribe for HashAddr

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> ReturnWasmAbi for Twhere + T: IntoWasmAbi,

§

type Abi = <T as IntoWasmAbi>::Abi

Same as IntoWasmAbi::Abi
source§

fn return_abi(self) -> <T as ReturnWasmAbi>::Abi

Same as IntoWasmAbi::into_abi, except that it may throw and never +return in the case of Err.
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/types/addr/index.html b/docs/api-rust/casper_rust_wasm_sdk/types/addr/index.html new file mode 100644 index 000000000..9f5d22f45 --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/types/addr/index.html @@ -0,0 +1 @@ +casper_rust_wasm_sdk::types::addr - Rust

Modules

\ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/types/addr/sidebar-items.js b/docs/api-rust/casper_rust_wasm_sdk/types/addr/sidebar-items.js new file mode 100644 index 000000000..d703e1917 --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/types/addr/sidebar-items.js @@ -0,0 +1 @@ +window.SIDEBAR_ITEMS = {"mod":["dictionary_addr","hash_addr","transfer_addr","uref_addr"]}; \ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/types/addr/transfer_addr/fn.from_transfer.html b/docs/api-rust/casper_rust_wasm_sdk/types/addr/transfer_addr/fn.from_transfer.html new file mode 100644 index 000000000..7c770a0cf --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/types/addr/transfer_addr/fn.from_transfer.html @@ -0,0 +1 @@ +from_transfer in casper_rust_wasm_sdk::types::addr::transfer_addr - Rust
pub fn from_transfer(key: Vec<u8>) -> TransferAddr
\ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/types/addr/transfer_addr/index.html b/docs/api-rust/casper_rust_wasm_sdk/types/addr/transfer_addr/index.html new file mode 100644 index 000000000..b75cf2542 --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/types/addr/transfer_addr/index.html @@ -0,0 +1 @@ +casper_rust_wasm_sdk::types::addr::transfer_addr - Rust

Structs

Functions

\ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/types/addr/transfer_addr/sidebar-items.js b/docs/api-rust/casper_rust_wasm_sdk/types/addr/transfer_addr/sidebar-items.js new file mode 100644 index 000000000..274462a75 --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/types/addr/transfer_addr/sidebar-items.js @@ -0,0 +1 @@ +window.SIDEBAR_ITEMS = {"fn":["from_transfer"],"struct":["TransferAddr"]}; \ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/types/addr/transfer_addr/struct.TransferAddr.html b/docs/api-rust/casper_rust_wasm_sdk/types/addr/transfer_addr/struct.TransferAddr.html new file mode 100644 index 000000000..f9337eff8 --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/types/addr/transfer_addr/struct.TransferAddr.html @@ -0,0 +1,28 @@ +TransferAddr in casper_rust_wasm_sdk::types::addr::transfer_addr - Rust
pub struct TransferAddr(/* private fields */);

Implementations§

Trait Implementations§

source§

impl From<TransferAddr> for JsValue

source§

fn from(value: TransferAddr) -> Self

Converts to this type from the input type.
source§

impl From<Vec<u8, Global>> for TransferAddr

source§

fn from(bytes: Vec<u8>) -> Self

Converts to this type from the input type.
source§

impl FromWasmAbi for TransferAddr

§

type Abi = u32

The wasm ABI type that this converts from when coming back out from the +ABI boundary.
source§

unsafe fn from_abi(js: u32) -> Self

Recover a Self from Self::Abi. Read more
source§

impl IntoWasmAbi for TransferAddr

§

type Abi = u32

The wasm ABI type that this converts into when crossing the ABI +boundary.
source§

fn into_abi(self) -> u32

Convert self into Self::Abi so that it can be sent across the wasm +ABI boundary.
source§

impl LongRefFromWasmAbi for TransferAddr

§

type Abi = u32

Same as RefFromWasmAbi::Abi
§

type Anchor = Ref<'static, TransferAddr>

Same as RefFromWasmAbi::Anchor
source§

unsafe fn long_ref_from_abi(js: Self::Abi) -> Self::Anchor

Same as RefFromWasmAbi::ref_from_abi
source§

impl OptionFromWasmAbi for TransferAddr

source§

fn is_none(abi: &Self::Abi) -> bool

Tests whether the argument is a “none” instance. If so it will be +deserialized as None, and otherwise it will be passed to +FromWasmAbi.
source§

impl OptionIntoWasmAbi for TransferAddr

source§

fn none() -> Self::Abi

Returns an ABI instance indicating “none”, which JS will interpret as +the None branch of this option. Read more
source§

impl RefFromWasmAbi for TransferAddr

§

type Abi = u32

The wasm ABI type references to Self are recovered from.
§

type Anchor = Ref<'static, TransferAddr>

The type that holds the reference to Self for the duration of the +invocation of the function that has an &Self parameter. This is +required to ensure that the lifetimes don’t persist beyond one function +call, and so that they remain anonymous.
source§

unsafe fn ref_from_abi(js: Self::Abi) -> Self::Anchor

Recover a Self::Anchor from Self::Abi. Read more
source§

impl RefMutFromWasmAbi for TransferAddr

§

type Abi = u32

Same as RefFromWasmAbi::Abi
§

type Anchor = RefMut<'static, TransferAddr>

Same as RefFromWasmAbi::Anchor
source§

unsafe fn ref_mut_from_abi(js: Self::Abi) -> Self::Anchor

Same as RefFromWasmAbi::ref_from_abi
source§

impl WasmDescribe for TransferAddr

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> ReturnWasmAbi for Twhere + T: IntoWasmAbi,

§

type Abi = <T as IntoWasmAbi>::Abi

Same as IntoWasmAbi::Abi
source§

fn return_abi(self) -> <T as ReturnWasmAbi>::Abi

Same as IntoWasmAbi::into_abi, except that it may throw and never +return in the case of Err.
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/types/addr/uref_addr/index.html b/docs/api-rust/casper_rust_wasm_sdk/types/addr/uref_addr/index.html new file mode 100644 index 000000000..04d1b8aba --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/types/addr/uref_addr/index.html @@ -0,0 +1 @@ +casper_rust_wasm_sdk::types::addr::uref_addr - Rust

Structs

\ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/types/addr/uref_addr/sidebar-items.js b/docs/api-rust/casper_rust_wasm_sdk/types/addr/uref_addr/sidebar-items.js new file mode 100644 index 000000000..5ea929085 --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/types/addr/uref_addr/sidebar-items.js @@ -0,0 +1 @@ +window.SIDEBAR_ITEMS = {"struct":["URefAddr"]}; \ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/types/addr/uref_addr/struct.URefAddr.html b/docs/api-rust/casper_rust_wasm_sdk/types/addr/uref_addr/struct.URefAddr.html new file mode 100644 index 000000000..093856888 --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/types/addr/uref_addr/struct.URefAddr.html @@ -0,0 +1,28 @@ +URefAddr in casper_rust_wasm_sdk::types::addr::uref_addr - Rust
pub struct URefAddr(/* private fields */);

Implementations§

Trait Implementations§

source§

impl From<[u8; 32]> for URefAddr

source§

fn from(uref_addr: _URefAddr) -> Self

Converts to this type from the input type.
source§

impl From<URefAddr> for JsValue

source§

fn from(value: URefAddr) -> Self

Converts to this type from the input type.
source§

impl From<URefAddr> for URefAddr

source§

fn from(uref_addr: URefAddr) -> Self

Converts to this type from the input type.
source§

impl FromWasmAbi for URefAddr

§

type Abi = u32

The wasm ABI type that this converts from when coming back out from the +ABI boundary.
source§

unsafe fn from_abi(js: u32) -> Self

Recover a Self from Self::Abi. Read more
source§

impl IntoWasmAbi for URefAddr

§

type Abi = u32

The wasm ABI type that this converts into when crossing the ABI +boundary.
source§

fn into_abi(self) -> u32

Convert self into Self::Abi so that it can be sent across the wasm +ABI boundary.
source§

impl LongRefFromWasmAbi for URefAddr

§

type Abi = u32

Same as RefFromWasmAbi::Abi
§

type Anchor = Ref<'static, URefAddr>

Same as RefFromWasmAbi::Anchor
source§

unsafe fn long_ref_from_abi(js: Self::Abi) -> Self::Anchor

Same as RefFromWasmAbi::ref_from_abi
source§

impl OptionFromWasmAbi for URefAddr

source§

fn is_none(abi: &Self::Abi) -> bool

Tests whether the argument is a “none” instance. If so it will be +deserialized as None, and otherwise it will be passed to +FromWasmAbi.
source§

impl OptionIntoWasmAbi for URefAddr

source§

fn none() -> Self::Abi

Returns an ABI instance indicating “none”, which JS will interpret as +the None branch of this option. Read more
source§

impl RefFromWasmAbi for URefAddr

§

type Abi = u32

The wasm ABI type references to Self are recovered from.
§

type Anchor = Ref<'static, URefAddr>

The type that holds the reference to Self for the duration of the +invocation of the function that has an &Self parameter. This is +required to ensure that the lifetimes don’t persist beyond one function +call, and so that they remain anonymous.
source§

unsafe fn ref_from_abi(js: Self::Abi) -> Self::Anchor

Recover a Self::Anchor from Self::Abi. Read more
source§

impl RefMutFromWasmAbi for URefAddr

§

type Abi = u32

Same as RefFromWasmAbi::Abi
§

type Anchor = RefMut<'static, URefAddr>

Same as RefFromWasmAbi::Anchor
source§

unsafe fn ref_mut_from_abi(js: Self::Abi) -> Self::Anchor

Same as RefFromWasmAbi::ref_from_abi
source§

impl WasmDescribe for URefAddr

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> ReturnWasmAbi for Twhere + T: IntoWasmAbi,

§

type Abi = <T as IntoWasmAbi>::Abi

Same as IntoWasmAbi::Abi
source§

fn return_abi(self) -> <T as ReturnWasmAbi>::Abi

Same as IntoWasmAbi::into_abi, except that it may throw and never +return in the case of Err.
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/types/block_hash/index.html b/docs/api-rust/casper_rust_wasm_sdk/types/block_hash/index.html new file mode 100644 index 000000000..d792255d5 --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/types/block_hash/index.html @@ -0,0 +1 @@ +casper_rust_wasm_sdk::types::block_hash - Rust

Structs

\ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/types/block_hash/sidebar-items.js b/docs/api-rust/casper_rust_wasm_sdk/types/block_hash/sidebar-items.js new file mode 100644 index 000000000..5db49f882 --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/types/block_hash/sidebar-items.js @@ -0,0 +1 @@ +window.SIDEBAR_ITEMS = {"struct":["BlockHash"]}; \ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/types/block_hash/struct.BlockHash.html b/docs/api-rust/casper_rust_wasm_sdk/types/block_hash/struct.BlockHash.html new file mode 100644 index 000000000..9009dd5c9 --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/types/block_hash/struct.BlockHash.html @@ -0,0 +1,33 @@ +BlockHash in casper_rust_wasm_sdk::types::block_hash - Rust
pub struct BlockHash(/* private fields */);

Implementations§

source§

impl BlockHash

source

pub fn new(block_hash_hex_str: &str) -> Result<BlockHash, JsValue>

source

pub fn from_digest(digest: Digest) -> Result<BlockHash, JsValue>

Trait Implementations§

source§

impl Clone for BlockHash

source§

fn clone(&self) -> BlockHash

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for BlockHash

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for BlockHash

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl From<BlockHash> for BlockHash

source§

fn from(block_hash: BlockHash) -> Self

Converts to this type from the input type.
source§

impl From<BlockHash> for BlockHash

source§

fn from(block_hash: _BlockHash) -> Self

Converts to this type from the input type.
source§

impl From<BlockHash> for JsValue

source§

fn from(value: BlockHash) -> Self

Converts to this type from the input type.
source§

impl From<Digest> for BlockHash

source§

fn from(digest: Digest) -> Self

Converts to this type from the input type.
source§

impl FromWasmAbi for BlockHash

§

type Abi = u32

The wasm ABI type that this converts from when coming back out from the +ABI boundary.
source§

unsafe fn from_abi(js: u32) -> Self

Recover a Self from Self::Abi. Read more
source§

impl IntoWasmAbi for BlockHash

§

type Abi = u32

The wasm ABI type that this converts into when crossing the ABI +boundary.
source§

fn into_abi(self) -> u32

Convert self into Self::Abi so that it can be sent across the wasm +ABI boundary.
source§

impl LongRefFromWasmAbi for BlockHash

§

type Abi = u32

Same as RefFromWasmAbi::Abi
§

type Anchor = Ref<'static, BlockHash>

Same as RefFromWasmAbi::Anchor
source§

unsafe fn long_ref_from_abi(js: Self::Abi) -> Self::Anchor

Same as RefFromWasmAbi::ref_from_abi
source§

impl OptionFromWasmAbi for BlockHash

source§

fn is_none(abi: &Self::Abi) -> bool

Tests whether the argument is a “none” instance. If so it will be +deserialized as None, and otherwise it will be passed to +FromWasmAbi.
source§

impl OptionIntoWasmAbi for BlockHash

source§

fn none() -> Self::Abi

Returns an ABI instance indicating “none”, which JS will interpret as +the None branch of this option. Read more
source§

impl RefFromWasmAbi for BlockHash

§

type Abi = u32

The wasm ABI type references to Self are recovered from.
§

type Anchor = Ref<'static, BlockHash>

The type that holds the reference to Self for the duration of the +invocation of the function that has an &Self parameter. This is +required to ensure that the lifetimes don’t persist beyond one function +call, and so that they remain anonymous.
source§

unsafe fn ref_from_abi(js: Self::Abi) -> Self::Anchor

Recover a Self::Anchor from Self::Abi. Read more
source§

impl RefMutFromWasmAbi for BlockHash

§

type Abi = u32

Same as RefFromWasmAbi::Abi
§

type Anchor = RefMut<'static, BlockHash>

Same as RefFromWasmAbi::Anchor
source§

unsafe fn ref_mut_from_abi(js: Self::Abi) -> Self::Anchor

Same as RefFromWasmAbi::ref_from_abi
source§

impl Serialize for BlockHash

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl ToString for BlockHash

source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl WasmDescribe for BlockHash

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> DynClone for Twhere + T: Clone,

source§

fn __clone_box(&self, _: Private) -> *mut ()

source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> ReturnWasmAbi for Twhere + T: IntoWasmAbi,

§

type Abi = <T as IntoWasmAbi>::Abi

Same as IntoWasmAbi::Abi
source§

fn return_abi(self) -> <T as ReturnWasmAbi>::Abi

Same as IntoWasmAbi::into_abi, except that it may throw and never +return in the case of Err.
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/types/block_identifier/enum.BlockIdentifierInput.html b/docs/api-rust/casper_rust_wasm_sdk/types/block_identifier/enum.BlockIdentifierInput.html new file mode 100644 index 000000000..14cde7366 --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/types/block_identifier/enum.BlockIdentifierInput.html @@ -0,0 +1,22 @@ +BlockIdentifierInput in casper_rust_wasm_sdk::types::block_identifier - Rust
pub enum BlockIdentifierInput {
+    BlockIdentifier(BlockIdentifier),
+    String(String),
+}

Variants§

§

BlockIdentifier(BlockIdentifier)

§

String(String)

Trait Implementations§

source§

impl Clone for BlockIdentifierInput

source§

fn clone(&self) -> BlockIdentifierInput

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for BlockIdentifierInput

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> DynClone for Twhere + T: Clone,

source§

fn __clone_box(&self, _: Private) -> *mut ()

source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/types/block_identifier/index.html b/docs/api-rust/casper_rust_wasm_sdk/types/block_identifier/index.html new file mode 100644 index 000000000..3439e82ce --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/types/block_identifier/index.html @@ -0,0 +1 @@ +casper_rust_wasm_sdk::types::block_identifier - Rust

Structs

Enums

\ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/types/block_identifier/sidebar-items.js b/docs/api-rust/casper_rust_wasm_sdk/types/block_identifier/sidebar-items.js new file mode 100644 index 000000000..e0893244f --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/types/block_identifier/sidebar-items.js @@ -0,0 +1 @@ +window.SIDEBAR_ITEMS = {"enum":["BlockIdentifierInput"],"struct":["BlockIdentifier"]}; \ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/types/block_identifier/struct.BlockIdentifier.html b/docs/api-rust/casper_rust_wasm_sdk/types/block_identifier/struct.BlockIdentifier.html new file mode 100644 index 000000000..150c669d1 --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/types/block_identifier/struct.BlockIdentifier.html @@ -0,0 +1,33 @@ +BlockIdentifier in casper_rust_wasm_sdk::types::block_identifier - Rust
pub struct BlockIdentifier(/* private fields */);

Implementations§

source§

impl BlockIdentifier

source

pub fn new(block_identifier: BlockIdentifier) -> BlockIdentifier

source

pub fn from_hash(hash: BlockHash) -> Self

source

pub fn from_height(height: u64) -> Self

Trait Implementations§

source§

impl Clone for BlockIdentifier

source§

fn clone(&self) -> BlockIdentifier

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for BlockIdentifier

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for BlockIdentifier

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl From<BlockIdentifier> for BlockIdentifier

source§

fn from(block_identifier: BlockIdentifier) -> Self

Converts to this type from the input type.
source§

impl From<BlockIdentifier> for BlockIdentifier

source§

fn from(block_identifier: _BlockIdentifier) -> Self

Converts to this type from the input type.
source§

impl From<BlockIdentifier> for JsValue

source§

fn from(value: BlockIdentifier) -> Self

Converts to this type from the input type.
source§

impl FromWasmAbi for BlockIdentifier

§

type Abi = u32

The wasm ABI type that this converts from when coming back out from the +ABI boundary.
source§

unsafe fn from_abi(js: u32) -> Self

Recover a Self from Self::Abi. Read more
source§

impl IntoWasmAbi for BlockIdentifier

§

type Abi = u32

The wasm ABI type that this converts into when crossing the ABI +boundary.
source§

fn into_abi(self) -> u32

Convert self into Self::Abi so that it can be sent across the wasm +ABI boundary.
source§

impl LongRefFromWasmAbi for BlockIdentifier

§

type Abi = u32

Same as RefFromWasmAbi::Abi
§

type Anchor = Ref<'static, BlockIdentifier>

Same as RefFromWasmAbi::Anchor
source§

unsafe fn long_ref_from_abi(js: Self::Abi) -> Self::Anchor

Same as RefFromWasmAbi::ref_from_abi
source§

impl OptionFromWasmAbi for BlockIdentifier

source§

fn is_none(abi: &Self::Abi) -> bool

Tests whether the argument is a “none” instance. If so it will be +deserialized as None, and otherwise it will be passed to +FromWasmAbi.
source§

impl OptionIntoWasmAbi for BlockIdentifier

source§

fn none() -> Self::Abi

Returns an ABI instance indicating “none”, which JS will interpret as +the None branch of this option. Read more
source§

impl RefFromWasmAbi for BlockIdentifier

§

type Abi = u32

The wasm ABI type references to Self are recovered from.
§

type Anchor = Ref<'static, BlockIdentifier>

The type that holds the reference to Self for the duration of the +invocation of the function that has an &Self parameter. This is +required to ensure that the lifetimes don’t persist beyond one function +call, and so that they remain anonymous.
source§

unsafe fn ref_from_abi(js: Self::Abi) -> Self::Anchor

Recover a Self::Anchor from Self::Abi. Read more
source§

impl RefMutFromWasmAbi for BlockIdentifier

§

type Abi = u32

Same as RefFromWasmAbi::Abi
§

type Anchor = RefMut<'static, BlockIdentifier>

Same as RefFromWasmAbi::Anchor
source§

unsafe fn ref_mut_from_abi(js: Self::Abi) -> Self::Anchor

Same as RefFromWasmAbi::ref_from_abi
source§

impl Serialize for BlockIdentifier

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl WasmDescribe for BlockIdentifier

source§

impl Copy for BlockIdentifier

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> DynClone for Twhere + T: Clone,

source§

fn __clone_box(&self, _: Private) -> *mut ()

source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> ReturnWasmAbi for Twhere + T: IntoWasmAbi,

§

type Abi = <T as IntoWasmAbi>::Abi

Same as IntoWasmAbi::Abi
source§

fn return_abi(self) -> <T as ReturnWasmAbi>::Abi

Same as IntoWasmAbi::into_abi, except that it may throw and never +return in the case of Err.
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/types/cl/bytes/index.html b/docs/api-rust/casper_rust_wasm_sdk/types/cl/bytes/index.html new file mode 100644 index 000000000..0f2d9c0f6 --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/types/cl/bytes/index.html @@ -0,0 +1 @@ +casper_rust_wasm_sdk::types::cl::bytes - Rust

Structs

\ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/types/cl/bytes/sidebar-items.js b/docs/api-rust/casper_rust_wasm_sdk/types/cl/bytes/sidebar-items.js new file mode 100644 index 000000000..08885c580 --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/types/cl/bytes/sidebar-items.js @@ -0,0 +1 @@ +window.SIDEBAR_ITEMS = {"struct":["Bytes"]}; \ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/types/cl/bytes/struct.Bytes.html b/docs/api-rust/casper_rust_wasm_sdk/types/cl/bytes/struct.Bytes.html new file mode 100644 index 000000000..ed0e8aab5 --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/types/cl/bytes/struct.Bytes.html @@ -0,0 +1,1110 @@ +Bytes in casper_rust_wasm_sdk::types::cl::bytes - Rust
pub struct Bytes(/* private fields */);

Implementations§

source§

impl Bytes

source

pub fn new() -> Self

source

pub fn from_uint8_array(uint8_array: Uint8Array) -> Self

Methods from Deref<Target = [u8]>§

1.23.0 · source

pub fn is_ascii(&self) -> bool

Checks if all bytes in this slice are within the ASCII range.

+
source

pub fn as_ascii(&self) -> Option<&[AsciiChar]>

🔬This is a nightly-only experimental API. (ascii_char)

If this slice is_ascii, returns it as a slice of +ASCII characters, otherwise returns None.

+
source

pub unsafe fn as_ascii_unchecked(&self) -> &[AsciiChar]

🔬This is a nightly-only experimental API. (ascii_char)

Converts this slice of bytes into a slice of ASCII characters, +without checking whether they’re valid.

+
Safety
+

Every byte in the slice must be in 0..=127, or else this is UB.

+
1.23.0 · source

pub fn eq_ignore_ascii_case(&self, other: &[u8]) -> bool

Checks that two slices are an ASCII case-insensitive match.

+

Same as to_ascii_lowercase(a) == to_ascii_lowercase(b), +but without allocating and copying temporaries.

+
1.60.0 · source

pub fn escape_ascii(&self) -> EscapeAscii<'_>

Returns an iterator that produces an escaped version of this slice, +treating it as an ASCII string.

+
Examples
+

+let s = b"0\t\r\n'\"\\\x9d";
+let escaped = s.escape_ascii().to_string();
+assert_eq!(escaped, "0\\t\\r\\n\\'\\\"\\\\\\x9d");
+
source

pub fn trim_ascii_start(&self) -> &[u8]

🔬This is a nightly-only experimental API. (byte_slice_trim_ascii)

Returns a byte slice with leading ASCII whitespace bytes removed.

+

‘Whitespace’ refers to the definition used by +u8::is_ascii_whitespace.

+
Examples
+
#![feature(byte_slice_trim_ascii)]
+
+assert_eq!(b" \t hello world\n".trim_ascii_start(), b"hello world\n");
+assert_eq!(b"  ".trim_ascii_start(), b"");
+assert_eq!(b"".trim_ascii_start(), b"");
+
source

pub fn trim_ascii_end(&self) -> &[u8]

🔬This is a nightly-only experimental API. (byte_slice_trim_ascii)

Returns a byte slice with trailing ASCII whitespace bytes removed.

+

‘Whitespace’ refers to the definition used by +u8::is_ascii_whitespace.

+
Examples
+
#![feature(byte_slice_trim_ascii)]
+
+assert_eq!(b"\r hello world\n ".trim_ascii_end(), b"\r hello world");
+assert_eq!(b"  ".trim_ascii_end(), b"");
+assert_eq!(b"".trim_ascii_end(), b"");
+
source

pub fn trim_ascii(&self) -> &[u8]

🔬This is a nightly-only experimental API. (byte_slice_trim_ascii)

Returns a byte slice with leading and trailing ASCII whitespace bytes +removed.

+

‘Whitespace’ refers to the definition used by +u8::is_ascii_whitespace.

+
Examples
+
#![feature(byte_slice_trim_ascii)]
+
+assert_eq!(b"\r hello world\n ".trim_ascii(), b"hello world");
+assert_eq!(b"  ".trim_ascii(), b"");
+assert_eq!(b"".trim_ascii(), b"");
+
source

pub fn as_str(&self) -> &str

🔬This is a nightly-only experimental API. (ascii_char)

Views this slice of ASCII characters as a UTF-8 str.

+
source

pub fn as_bytes(&self) -> &[u8]

🔬This is a nightly-only experimental API. (ascii_char)

Views this slice of ASCII characters as a slice of u8 bytes.

+
1.0.0 · source

pub fn len(&self) -> usize

Returns the number of elements in the slice.

+
Examples
+
let a = [1, 2, 3];
+assert_eq!(a.len(), 3);
+
1.0.0 · source

pub fn is_empty(&self) -> bool

Returns true if the slice has a length of 0.

+
Examples
+
let a = [1, 2, 3];
+assert!(!a.is_empty());
+
1.0.0 · source

pub fn first(&self) -> Option<&T>

Returns the first element of the slice, or None if it is empty.

+
Examples
+
let v = [10, 40, 30];
+assert_eq!(Some(&10), v.first());
+
+let w: &[i32] = &[];
+assert_eq!(None, w.first());
+
1.5.0 · source

pub fn split_first(&self) -> Option<(&T, &[T])>

Returns the first and all the rest of the elements of the slice, or None if it is empty.

+
Examples
+
let x = &[0, 1, 2];
+
+if let Some((first, elements)) = x.split_first() {
+    assert_eq!(first, &0);
+    assert_eq!(elements, &[1, 2]);
+}
+
1.5.0 · source

pub fn split_last(&self) -> Option<(&T, &[T])>

Returns the last and all the rest of the elements of the slice, or None if it is empty.

+
Examples
+
let x = &[0, 1, 2];
+
+if let Some((last, elements)) = x.split_last() {
+    assert_eq!(last, &2);
+    assert_eq!(elements, &[0, 1]);
+}
+
1.0.0 · source

pub fn last(&self) -> Option<&T>

Returns the last element of the slice, or None if it is empty.

+
Examples
+
let v = [10, 40, 30];
+assert_eq!(Some(&30), v.last());
+
+let w: &[i32] = &[];
+assert_eq!(None, w.last());
+
source

pub fn first_chunk<const N: usize>(&self) -> Option<&[T; N]>

🔬This is a nightly-only experimental API. (slice_first_last_chunk)

Returns the first N elements of the slice, or None if it has fewer than N elements.

+
Examples
+
#![feature(slice_first_last_chunk)]
+
+let u = [10, 40, 30];
+assert_eq!(Some(&[10, 40]), u.first_chunk::<2>());
+
+let v: &[i32] = &[10];
+assert_eq!(None, v.first_chunk::<2>());
+
+let w: &[i32] = &[];
+assert_eq!(Some(&[]), w.first_chunk::<0>());
+
source

pub fn split_first_chunk<const N: usize>(&self) -> Option<(&[T; N], &[T])>

🔬This is a nightly-only experimental API. (slice_first_last_chunk)

Returns the first N elements of the slice and the remainder, +or None if it has fewer than N elements.

+
Examples
+
#![feature(slice_first_last_chunk)]
+
+let x = &[0, 1, 2];
+
+if let Some((first, elements)) = x.split_first_chunk::<2>() {
+    assert_eq!(first, &[0, 1]);
+    assert_eq!(elements, &[2]);
+}
+
source

pub fn split_last_chunk<const N: usize>(&self) -> Option<(&[T; N], &[T])>

🔬This is a nightly-only experimental API. (slice_first_last_chunk)

Returns the last N elements of the slice and the remainder, +or None if it has fewer than N elements.

+
Examples
+
#![feature(slice_first_last_chunk)]
+
+let x = &[0, 1, 2];
+
+if let Some((last, elements)) = x.split_last_chunk::<2>() {
+    assert_eq!(last, &[1, 2]);
+    assert_eq!(elements, &[0]);
+}
+
source

pub fn last_chunk<const N: usize>(&self) -> Option<&[T; N]>

🔬This is a nightly-only experimental API. (slice_first_last_chunk)

Returns the last element of the slice, or None if it is empty.

+
Examples
+
#![feature(slice_first_last_chunk)]
+
+let u = [10, 40, 30];
+assert_eq!(Some(&[40, 30]), u.last_chunk::<2>());
+
+let v: &[i32] = &[10];
+assert_eq!(None, v.last_chunk::<2>());
+
+let w: &[i32] = &[];
+assert_eq!(Some(&[]), w.last_chunk::<0>());
+
1.0.0 · source

pub fn get<I>(&self, index: I) -> Option<&<I as SliceIndex<[T]>>::Output>where + I: SliceIndex<[T]>,

Returns a reference to an element or subslice depending on the type of +index.

+
    +
  • If given a position, returns a reference to the element at that +position or None if out of bounds.
  • +
  • If given a range, returns the subslice corresponding to that range, +or None if out of bounds.
  • +
+
Examples
+
let v = [10, 40, 30];
+assert_eq!(Some(&40), v.get(1));
+assert_eq!(Some(&[10, 40][..]), v.get(0..2));
+assert_eq!(None, v.get(3));
+assert_eq!(None, v.get(0..4));
+
1.0.0 · source

pub unsafe fn get_unchecked<I>( + &self, + index: I +) -> &<I as SliceIndex<[T]>>::Outputwhere + I: SliceIndex<[T]>,

Returns a reference to an element or subslice, without doing bounds +checking.

+

For a safe alternative see get.

+
Safety
+

Calling this method with an out-of-bounds index is undefined behavior +even if the resulting reference is not used.

+
Examples
+
let x = &[1, 2, 4];
+
+unsafe {
+    assert_eq!(x.get_unchecked(1), &2);
+}
+
1.0.0 · source

pub fn as_ptr(&self) -> *const T

Returns a raw pointer to the slice’s buffer.

+

The caller must ensure that the slice outlives the pointer this +function returns, or else it will end up pointing to garbage.

+

The caller must also ensure that the memory the pointer (non-transitively) points to +is never written to (except inside an UnsafeCell) using this pointer or any pointer +derived from it. If you need to mutate the contents of the slice, use as_mut_ptr.

+

Modifying the container referenced by this slice may cause its buffer +to be reallocated, which would also make any pointers to it invalid.

+
Examples
+
let x = &[1, 2, 4];
+let x_ptr = x.as_ptr();
+
+unsafe {
+    for i in 0..x.len() {
+        assert_eq!(x.get_unchecked(i), &*x_ptr.add(i));
+    }
+}
+
1.48.0 · source

pub fn as_ptr_range(&self) -> Range<*const T>

Returns the two raw pointers spanning the slice.

+

The returned range is half-open, which means that the end pointer +points one past the last element of the slice. This way, an empty +slice is represented by two equal pointers, and the difference between +the two pointers represents the size of the slice.

+

See as_ptr for warnings on using these pointers. The end pointer +requires extra caution, as it does not point to a valid element in the +slice.

+

This function is useful for interacting with foreign interfaces which +use two pointers to refer to a range of elements in memory, as is +common in C++.

+

It can also be useful to check if a pointer to an element refers to an +element of this slice:

+ +
let a = [1, 2, 3];
+let x = &a[1] as *const _;
+let y = &5 as *const _;
+
+assert!(a.as_ptr_range().contains(&x));
+assert!(!a.as_ptr_range().contains(&y));
+
1.0.0 · source

pub fn iter(&self) -> Iter<'_, T>

Returns an iterator over the slice.

+

The iterator yields all items from start to end.

+
Examples
+
let x = &[1, 2, 4];
+let mut iterator = x.iter();
+
+assert_eq!(iterator.next(), Some(&1));
+assert_eq!(iterator.next(), Some(&2));
+assert_eq!(iterator.next(), Some(&4));
+assert_eq!(iterator.next(), None);
+
1.0.0 · source

pub fn windows(&self, size: usize) -> Windows<'_, T>

Returns an iterator over all contiguous windows of length +size. The windows overlap. If the slice is shorter than +size, the iterator returns no values.

+
Panics
+

Panics if size is 0.

+
Examples
+
let slice = ['r', 'u', 's', 't'];
+let mut iter = slice.windows(2);
+assert_eq!(iter.next().unwrap(), &['r', 'u']);
+assert_eq!(iter.next().unwrap(), &['u', 's']);
+assert_eq!(iter.next().unwrap(), &['s', 't']);
+assert!(iter.next().is_none());
+

If the slice is shorter than size:

+ +
let slice = ['f', 'o', 'o'];
+let mut iter = slice.windows(4);
+assert!(iter.next().is_none());
+

There’s no windows_mut, as that existing would let safe code violate the +“only one &mut at a time to the same thing” rule. However, you can sometimes +use Cell::as_slice_of_cells in +conjunction with windows to accomplish something similar:

+ +
use std::cell::Cell;
+
+let mut array = ['R', 'u', 's', 't', ' ', '2', '0', '1', '5'];
+let slice = &mut array[..];
+let slice_of_cells: &[Cell<char>] = Cell::from_mut(slice).as_slice_of_cells();
+for w in slice_of_cells.windows(3) {
+    Cell::swap(&w[0], &w[2]);
+}
+assert_eq!(array, ['s', 't', ' ', '2', '0', '1', '5', 'u', 'R']);
+
1.0.0 · source

pub fn chunks(&self, chunk_size: usize) -> Chunks<'_, T>

Returns an iterator over chunk_size elements of the slice at a time, starting at the +beginning of the slice.

+

The chunks are slices and do not overlap. If chunk_size does not divide the length of the +slice, then the last chunk will not have length chunk_size.

+

See chunks_exact for a variant of this iterator that returns chunks of always exactly +chunk_size elements, and rchunks for the same iterator but starting at the end of the +slice.

+
Panics
+

Panics if chunk_size is 0.

+
Examples
+
let slice = ['l', 'o', 'r', 'e', 'm'];
+let mut iter = slice.chunks(2);
+assert_eq!(iter.next().unwrap(), &['l', 'o']);
+assert_eq!(iter.next().unwrap(), &['r', 'e']);
+assert_eq!(iter.next().unwrap(), &['m']);
+assert!(iter.next().is_none());
+
1.31.0 · source

pub fn chunks_exact(&self, chunk_size: usize) -> ChunksExact<'_, T>

Returns an iterator over chunk_size elements of the slice at a time, starting at the +beginning of the slice.

+

The chunks are slices and do not overlap. If chunk_size does not divide the length of the +slice, then the last up to chunk_size-1 elements will be omitted and can be retrieved +from the remainder function of the iterator.

+

Due to each chunk having exactly chunk_size elements, the compiler can often optimize the +resulting code better than in the case of chunks.

+

See chunks for a variant of this iterator that also returns the remainder as a smaller +chunk, and rchunks_exact for the same iterator but starting at the end of the slice.

+
Panics
+

Panics if chunk_size is 0.

+
Examples
+
let slice = ['l', 'o', 'r', 'e', 'm'];
+let mut iter = slice.chunks_exact(2);
+assert_eq!(iter.next().unwrap(), &['l', 'o']);
+assert_eq!(iter.next().unwrap(), &['r', 'e']);
+assert!(iter.next().is_none());
+assert_eq!(iter.remainder(), &['m']);
+
source

pub unsafe fn as_chunks_unchecked<const N: usize>(&self) -> &[[T; N]]

🔬This is a nightly-only experimental API. (slice_as_chunks)

Splits the slice into a slice of N-element arrays, +assuming that there’s no remainder.

+
Safety
+

This may only be called when

+
    +
  • The slice splits exactly into N-element chunks (aka self.len() % N == 0).
  • +
  • N != 0.
  • +
+
Examples
+
#![feature(slice_as_chunks)]
+let slice: &[char] = &['l', 'o', 'r', 'e', 'm', '!'];
+let chunks: &[[char; 1]] =
+    // SAFETY: 1-element chunks never have remainder
+    unsafe { slice.as_chunks_unchecked() };
+assert_eq!(chunks, &[['l'], ['o'], ['r'], ['e'], ['m'], ['!']]);
+let chunks: &[[char; 3]] =
+    // SAFETY: The slice length (6) is a multiple of 3
+    unsafe { slice.as_chunks_unchecked() };
+assert_eq!(chunks, &[['l', 'o', 'r'], ['e', 'm', '!']]);
+
+// These would be unsound:
+// let chunks: &[[_; 5]] = slice.as_chunks_unchecked() // The slice length is not a multiple of 5
+// let chunks: &[[_; 0]] = slice.as_chunks_unchecked() // Zero-length chunks are never allowed
+
source

pub fn as_chunks<const N: usize>(&self) -> (&[[T; N]], &[T])

🔬This is a nightly-only experimental API. (slice_as_chunks)

Splits the slice into a slice of N-element arrays, +starting at the beginning of the slice, +and a remainder slice with length strictly less than N.

+
Panics
+

Panics if N is 0. This check will most probably get changed to a compile time +error before this method gets stabilized.

+
Examples
+
#![feature(slice_as_chunks)]
+let slice = ['l', 'o', 'r', 'e', 'm'];
+let (chunks, remainder) = slice.as_chunks();
+assert_eq!(chunks, &[['l', 'o'], ['r', 'e']]);
+assert_eq!(remainder, &['m']);
+

If you expect the slice to be an exact multiple, you can combine +let-else with an empty slice pattern:

+ +
#![feature(slice_as_chunks)]
+let slice = ['R', 'u', 's', 't'];
+let (chunks, []) = slice.as_chunks::<2>() else {
+    panic!("slice didn't have even length")
+};
+assert_eq!(chunks, &[['R', 'u'], ['s', 't']]);
+
source

pub fn as_rchunks<const N: usize>(&self) -> (&[T], &[[T; N]])

🔬This is a nightly-only experimental API. (slice_as_chunks)

Splits the slice into a slice of N-element arrays, +starting at the end of the slice, +and a remainder slice with length strictly less than N.

+
Panics
+

Panics if N is 0. This check will most probably get changed to a compile time +error before this method gets stabilized.

+
Examples
+
#![feature(slice_as_chunks)]
+let slice = ['l', 'o', 'r', 'e', 'm'];
+let (remainder, chunks) = slice.as_rchunks();
+assert_eq!(remainder, &['l']);
+assert_eq!(chunks, &[['o', 'r'], ['e', 'm']]);
+
source

pub fn array_chunks<const N: usize>(&self) -> ArrayChunks<'_, T, N>

🔬This is a nightly-only experimental API. (array_chunks)

Returns an iterator over N elements of the slice at a time, starting at the +beginning of the slice.

+

The chunks are array references and do not overlap. If N does not divide the +length of the slice, then the last up to N-1 elements will be omitted and can be +retrieved from the remainder function of the iterator.

+

This method is the const generic equivalent of chunks_exact.

+
Panics
+

Panics if N is 0. This check will most probably get changed to a compile time +error before this method gets stabilized.

+
Examples
+
#![feature(array_chunks)]
+let slice = ['l', 'o', 'r', 'e', 'm'];
+let mut iter = slice.array_chunks();
+assert_eq!(iter.next().unwrap(), &['l', 'o']);
+assert_eq!(iter.next().unwrap(), &['r', 'e']);
+assert!(iter.next().is_none());
+assert_eq!(iter.remainder(), &['m']);
+
source

pub fn array_windows<const N: usize>(&self) -> ArrayWindows<'_, T, N>

🔬This is a nightly-only experimental API. (array_windows)

Returns an iterator over overlapping windows of N elements of a slice, +starting at the beginning of the slice.

+

This is the const generic equivalent of windows.

+

If N is greater than the size of the slice, it will return no windows.

+
Panics
+

Panics if N is 0. This check will most probably get changed to a compile time +error before this method gets stabilized.

+
Examples
+
#![feature(array_windows)]
+let slice = [0, 1, 2, 3];
+let mut iter = slice.array_windows();
+assert_eq!(iter.next().unwrap(), &[0, 1]);
+assert_eq!(iter.next().unwrap(), &[1, 2]);
+assert_eq!(iter.next().unwrap(), &[2, 3]);
+assert!(iter.next().is_none());
+
1.31.0 · source

pub fn rchunks(&self, chunk_size: usize) -> RChunks<'_, T>

Returns an iterator over chunk_size elements of the slice at a time, starting at the end +of the slice.

+

The chunks are slices and do not overlap. If chunk_size does not divide the length of the +slice, then the last chunk will not have length chunk_size.

+

See rchunks_exact for a variant of this iterator that returns chunks of always exactly +chunk_size elements, and chunks for the same iterator but starting at the beginning +of the slice.

+
Panics
+

Panics if chunk_size is 0.

+
Examples
+
let slice = ['l', 'o', 'r', 'e', 'm'];
+let mut iter = slice.rchunks(2);
+assert_eq!(iter.next().unwrap(), &['e', 'm']);
+assert_eq!(iter.next().unwrap(), &['o', 'r']);
+assert_eq!(iter.next().unwrap(), &['l']);
+assert!(iter.next().is_none());
+
1.31.0 · source

pub fn rchunks_exact(&self, chunk_size: usize) -> RChunksExact<'_, T>

Returns an iterator over chunk_size elements of the slice at a time, starting at the +end of the slice.

+

The chunks are slices and do not overlap. If chunk_size does not divide the length of the +slice, then the last up to chunk_size-1 elements will be omitted and can be retrieved +from the remainder function of the iterator.

+

Due to each chunk having exactly chunk_size elements, the compiler can often optimize the +resulting code better than in the case of rchunks.

+

See rchunks for a variant of this iterator that also returns the remainder as a smaller +chunk, and chunks_exact for the same iterator but starting at the beginning of the +slice.

+
Panics
+

Panics if chunk_size is 0.

+
Examples
+
let slice = ['l', 'o', 'r', 'e', 'm'];
+let mut iter = slice.rchunks_exact(2);
+assert_eq!(iter.next().unwrap(), &['e', 'm']);
+assert_eq!(iter.next().unwrap(), &['o', 'r']);
+assert!(iter.next().is_none());
+assert_eq!(iter.remainder(), &['l']);
+
source

pub fn group_by<F>(&self, pred: F) -> GroupBy<'_, T, F>where + F: FnMut(&T, &T) -> bool,

🔬This is a nightly-only experimental API. (slice_group_by)

Returns an iterator over the slice producing non-overlapping runs +of elements using the predicate to separate them.

+

The predicate is called on two elements following themselves, +it means the predicate is called on slice[0] and slice[1] +then on slice[1] and slice[2] and so on.

+
Examples
+
#![feature(slice_group_by)]
+
+let slice = &[1, 1, 1, 3, 3, 2, 2, 2];
+
+let mut iter = slice.group_by(|a, b| a == b);
+
+assert_eq!(iter.next(), Some(&[1, 1, 1][..]));
+assert_eq!(iter.next(), Some(&[3, 3][..]));
+assert_eq!(iter.next(), Some(&[2, 2, 2][..]));
+assert_eq!(iter.next(), None);
+

This method can be used to extract the sorted subslices:

+ +
#![feature(slice_group_by)]
+
+let slice = &[1, 1, 2, 3, 2, 3, 2, 3, 4];
+
+let mut iter = slice.group_by(|a, b| a <= b);
+
+assert_eq!(iter.next(), Some(&[1, 1, 2, 3][..]));
+assert_eq!(iter.next(), Some(&[2, 3][..]));
+assert_eq!(iter.next(), Some(&[2, 3, 4][..]));
+assert_eq!(iter.next(), None);
+
1.0.0 · source

pub fn split_at(&self, mid: usize) -> (&[T], &[T])

Divides one slice into two at an index.

+

The first will contain all indices from [0, mid) (excluding +the index mid itself) and the second will contain all +indices from [mid, len) (excluding the index len itself).

+
Panics
+

Panics if mid > len.

+
Examples
+
let v = [1, 2, 3, 4, 5, 6];
+
+{
+   let (left, right) = v.split_at(0);
+   assert_eq!(left, []);
+   assert_eq!(right, [1, 2, 3, 4, 5, 6]);
+}
+
+{
+    let (left, right) = v.split_at(2);
+    assert_eq!(left, [1, 2]);
+    assert_eq!(right, [3, 4, 5, 6]);
+}
+
+{
+    let (left, right) = v.split_at(6);
+    assert_eq!(left, [1, 2, 3, 4, 5, 6]);
+    assert_eq!(right, []);
+}
+
source

pub unsafe fn split_at_unchecked(&self, mid: usize) -> (&[T], &[T])

🔬This is a nightly-only experimental API. (slice_split_at_unchecked)

Divides one slice into two at an index, without doing bounds checking.

+

The first will contain all indices from [0, mid) (excluding +the index mid itself) and the second will contain all +indices from [mid, len) (excluding the index len itself).

+

For a safe alternative see split_at.

+
Safety
+

Calling this method with an out-of-bounds index is undefined behavior +even if the resulting reference is not used. The caller has to ensure that +0 <= mid <= self.len().

+
Examples
+
#![feature(slice_split_at_unchecked)]
+
+let v = [1, 2, 3, 4, 5, 6];
+
+unsafe {
+   let (left, right) = v.split_at_unchecked(0);
+   assert_eq!(left, []);
+   assert_eq!(right, [1, 2, 3, 4, 5, 6]);
+}
+
+unsafe {
+    let (left, right) = v.split_at_unchecked(2);
+    assert_eq!(left, [1, 2]);
+    assert_eq!(right, [3, 4, 5, 6]);
+}
+
+unsafe {
+    let (left, right) = v.split_at_unchecked(6);
+    assert_eq!(left, [1, 2, 3, 4, 5, 6]);
+    assert_eq!(right, []);
+}
+
source

pub fn split_array_ref<const N: usize>(&self) -> (&[T; N], &[T])

🔬This is a nightly-only experimental API. (split_array)

Divides one slice into an array and a remainder slice at an index.

+

The array will contain all indices from [0, N) (excluding +the index N itself) and the slice will contain all +indices from [N, len) (excluding the index len itself).

+
Panics
+

Panics if N > len.

+
Examples
+
#![feature(split_array)]
+
+let v = &[1, 2, 3, 4, 5, 6][..];
+
+{
+   let (left, right) = v.split_array_ref::<0>();
+   assert_eq!(left, &[]);
+   assert_eq!(right, [1, 2, 3, 4, 5, 6]);
+}
+
+{
+    let (left, right) = v.split_array_ref::<2>();
+    assert_eq!(left, &[1, 2]);
+    assert_eq!(right, [3, 4, 5, 6]);
+}
+
+{
+    let (left, right) = v.split_array_ref::<6>();
+    assert_eq!(left, &[1, 2, 3, 4, 5, 6]);
+    assert_eq!(right, []);
+}
+
source

pub fn rsplit_array_ref<const N: usize>(&self) -> (&[T], &[T; N])

🔬This is a nightly-only experimental API. (split_array)

Divides one slice into an array and a remainder slice at an index from +the end.

+

The slice will contain all indices from [0, len - N) (excluding +the index len - N itself) and the array will contain all +indices from [len - N, len) (excluding the index len itself).

+
Panics
+

Panics if N > len.

+
Examples
+
#![feature(split_array)]
+
+let v = &[1, 2, 3, 4, 5, 6][..];
+
+{
+   let (left, right) = v.rsplit_array_ref::<0>();
+   assert_eq!(left, [1, 2, 3, 4, 5, 6]);
+   assert_eq!(right, &[]);
+}
+
+{
+    let (left, right) = v.rsplit_array_ref::<2>();
+    assert_eq!(left, [1, 2, 3, 4]);
+    assert_eq!(right, &[5, 6]);
+}
+
+{
+    let (left, right) = v.rsplit_array_ref::<6>();
+    assert_eq!(left, []);
+    assert_eq!(right, &[1, 2, 3, 4, 5, 6]);
+}
+
1.0.0 · source

pub fn split<F>(&self, pred: F) -> Split<'_, T, F>where + F: FnMut(&T) -> bool,

Returns an iterator over subslices separated by elements that match +pred. The matched element is not contained in the subslices.

+
Examples
+
let slice = [10, 40, 33, 20];
+let mut iter = slice.split(|num| num % 3 == 0);
+
+assert_eq!(iter.next().unwrap(), &[10, 40]);
+assert_eq!(iter.next().unwrap(), &[20]);
+assert!(iter.next().is_none());
+

If the first element is matched, an empty slice will be the first item +returned by the iterator. Similarly, if the last element in the slice +is matched, an empty slice will be the last item returned by the +iterator:

+ +
let slice = [10, 40, 33];
+let mut iter = slice.split(|num| num % 3 == 0);
+
+assert_eq!(iter.next().unwrap(), &[10, 40]);
+assert_eq!(iter.next().unwrap(), &[]);
+assert!(iter.next().is_none());
+

If two matched elements are directly adjacent, an empty slice will be +present between them:

+ +
let slice = [10, 6, 33, 20];
+let mut iter = slice.split(|num| num % 3 == 0);
+
+assert_eq!(iter.next().unwrap(), &[10]);
+assert_eq!(iter.next().unwrap(), &[]);
+assert_eq!(iter.next().unwrap(), &[20]);
+assert!(iter.next().is_none());
+
1.51.0 · source

pub fn split_inclusive<F>(&self, pred: F) -> SplitInclusive<'_, T, F>where + F: FnMut(&T) -> bool,

Returns an iterator over subslices separated by elements that match +pred. The matched element is contained in the end of the previous +subslice as a terminator.

+
Examples
+
let slice = [10, 40, 33, 20];
+let mut iter = slice.split_inclusive(|num| num % 3 == 0);
+
+assert_eq!(iter.next().unwrap(), &[10, 40, 33]);
+assert_eq!(iter.next().unwrap(), &[20]);
+assert!(iter.next().is_none());
+

If the last element of the slice is matched, +that element will be considered the terminator of the preceding slice. +That slice will be the last item returned by the iterator.

+ +
let slice = [3, 10, 40, 33];
+let mut iter = slice.split_inclusive(|num| num % 3 == 0);
+
+assert_eq!(iter.next().unwrap(), &[3]);
+assert_eq!(iter.next().unwrap(), &[10, 40, 33]);
+assert!(iter.next().is_none());
+
1.27.0 · source

pub fn rsplit<F>(&self, pred: F) -> RSplit<'_, T, F>where + F: FnMut(&T) -> bool,

Returns an iterator over subslices separated by elements that match +pred, starting at the end of the slice and working backwards. +The matched element is not contained in the subslices.

+
Examples
+
let slice = [11, 22, 33, 0, 44, 55];
+let mut iter = slice.rsplit(|num| *num == 0);
+
+assert_eq!(iter.next().unwrap(), &[44, 55]);
+assert_eq!(iter.next().unwrap(), &[11, 22, 33]);
+assert_eq!(iter.next(), None);
+

As with split(), if the first or last element is matched, an empty +slice will be the first (or last) item returned by the iterator.

+ +
let v = &[0, 1, 1, 2, 3, 5, 8];
+let mut it = v.rsplit(|n| *n % 2 == 0);
+assert_eq!(it.next().unwrap(), &[]);
+assert_eq!(it.next().unwrap(), &[3, 5]);
+assert_eq!(it.next().unwrap(), &[1, 1]);
+assert_eq!(it.next().unwrap(), &[]);
+assert_eq!(it.next(), None);
+
1.0.0 · source

pub fn splitn<F>(&self, n: usize, pred: F) -> SplitN<'_, T, F>where + F: FnMut(&T) -> bool,

Returns an iterator over subslices separated by elements that match +pred, limited to returning at most n items. The matched element is +not contained in the subslices.

+

The last element returned, if any, will contain the remainder of the +slice.

+
Examples
+

Print the slice split once by numbers divisible by 3 (i.e., [10, 40], +[20, 60, 50]):

+ +
let v = [10, 40, 30, 20, 60, 50];
+
+for group in v.splitn(2, |num| *num % 3 == 0) {
+    println!("{group:?}");
+}
+
1.0.0 · source

pub fn rsplitn<F>(&self, n: usize, pred: F) -> RSplitN<'_, T, F>where + F: FnMut(&T) -> bool,

Returns an iterator over subslices separated by elements that match +pred limited to returning at most n items. This starts at the end of +the slice and works backwards. The matched element is not contained in +the subslices.

+

The last element returned, if any, will contain the remainder of the +slice.

+
Examples
+

Print the slice split once, starting from the end, by numbers divisible +by 3 (i.e., [50], [10, 40, 30, 20]):

+ +
let v = [10, 40, 30, 20, 60, 50];
+
+for group in v.rsplitn(2, |num| *num % 3 == 0) {
+    println!("{group:?}");
+}
+
1.0.0 · source

pub fn contains(&self, x: &T) -> boolwhere + T: PartialEq<T>,

Returns true if the slice contains an element with the given value.

+

This operation is O(n).

+

Note that if you have a sorted slice, binary_search may be faster.

+
Examples
+
let v = [10, 40, 30];
+assert!(v.contains(&30));
+assert!(!v.contains(&50));
+

If you do not have a &T, but some other value that you can compare +with one (for example, String implements PartialEq<str>), you can +use iter().any:

+ +
let v = [String::from("hello"), String::from("world")]; // slice of `String`
+assert!(v.iter().any(|e| e == "hello")); // search with `&str`
+assert!(!v.iter().any(|e| e == "hi"));
+
1.0.0 · source

pub fn starts_with(&self, needle: &[T]) -> boolwhere + T: PartialEq<T>,

Returns true if needle is a prefix of the slice.

+
Examples
+
let v = [10, 40, 30];
+assert!(v.starts_with(&[10]));
+assert!(v.starts_with(&[10, 40]));
+assert!(!v.starts_with(&[50]));
+assert!(!v.starts_with(&[10, 50]));
+

Always returns true if needle is an empty slice:

+ +
let v = &[10, 40, 30];
+assert!(v.starts_with(&[]));
+let v: &[u8] = &[];
+assert!(v.starts_with(&[]));
+
1.0.0 · source

pub fn ends_with(&self, needle: &[T]) -> boolwhere + T: PartialEq<T>,

Returns true if needle is a suffix of the slice.

+
Examples
+
let v = [10, 40, 30];
+assert!(v.ends_with(&[30]));
+assert!(v.ends_with(&[40, 30]));
+assert!(!v.ends_with(&[50]));
+assert!(!v.ends_with(&[50, 30]));
+

Always returns true if needle is an empty slice:

+ +
let v = &[10, 40, 30];
+assert!(v.ends_with(&[]));
+let v: &[u8] = &[];
+assert!(v.ends_with(&[]));
+
1.51.0 · source

pub fn strip_prefix<P>(&self, prefix: &P) -> Option<&[T]>where + P: SlicePattern<Item = T> + ?Sized, + T: PartialEq<T>,

Returns a subslice with the prefix removed.

+

If the slice starts with prefix, returns the subslice after the prefix, wrapped in Some. +If prefix is empty, simply returns the original slice.

+

If the slice does not start with prefix, returns None.

+
Examples
+
let v = &[10, 40, 30];
+assert_eq!(v.strip_prefix(&[10]), Some(&[40, 30][..]));
+assert_eq!(v.strip_prefix(&[10, 40]), Some(&[30][..]));
+assert_eq!(v.strip_prefix(&[50]), None);
+assert_eq!(v.strip_prefix(&[10, 50]), None);
+
+let prefix : &str = "he";
+assert_eq!(b"hello".strip_prefix(prefix.as_bytes()),
+           Some(b"llo".as_ref()));
+
1.51.0 · source

pub fn strip_suffix<P>(&self, suffix: &P) -> Option<&[T]>where + P: SlicePattern<Item = T> + ?Sized, + T: PartialEq<T>,

Returns a subslice with the suffix removed.

+

If the slice ends with suffix, returns the subslice before the suffix, wrapped in Some. +If suffix is empty, simply returns the original slice.

+

If the slice does not end with suffix, returns None.

+
Examples
+
let v = &[10, 40, 30];
+assert_eq!(v.strip_suffix(&[30]), Some(&[10, 40][..]));
+assert_eq!(v.strip_suffix(&[40, 30]), Some(&[10][..]));
+assert_eq!(v.strip_suffix(&[50]), None);
+assert_eq!(v.strip_suffix(&[50, 30]), None);
+

Binary searches this slice for a given element. +If the slice is not sorted, the returned result is unspecified and +meaningless.

+

If the value is found then Result::Ok is returned, containing the +index of the matching element. If there are multiple matches, then any +one of the matches could be returned. The index is chosen +deterministically, but is subject to change in future versions of Rust. +If the value is not found then Result::Err is returned, containing +the index where a matching element could be inserted while maintaining +sorted order.

+

See also binary_search_by, binary_search_by_key, and partition_point.

+
Examples
+

Looks up a series of four elements. The first is found, with a +uniquely determined position; the second and third are not +found; the fourth could match any position in [1, 4].

+ +
let s = [0, 1, 1, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55];
+
+assert_eq!(s.binary_search(&13),  Ok(9));
+assert_eq!(s.binary_search(&4),   Err(7));
+assert_eq!(s.binary_search(&100), Err(13));
+let r = s.binary_search(&1);
+assert!(match r { Ok(1..=4) => true, _ => false, });
+

If you want to find that whole range of matching items, rather than +an arbitrary matching one, that can be done using partition_point:

+ +
let s = [0, 1, 1, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55];
+
+let low = s.partition_point(|x| x < &1);
+assert_eq!(low, 1);
+let high = s.partition_point(|x| x <= &1);
+assert_eq!(high, 5);
+let r = s.binary_search(&1);
+assert!((low..high).contains(&r.unwrap()));
+
+assert!(s[..low].iter().all(|&x| x < 1));
+assert!(s[low..high].iter().all(|&x| x == 1));
+assert!(s[high..].iter().all(|&x| x > 1));
+
+// For something not found, the "range" of equal items is empty
+assert_eq!(s.partition_point(|x| x < &11), 9);
+assert_eq!(s.partition_point(|x| x <= &11), 9);
+assert_eq!(s.binary_search(&11), Err(9));
+

If you want to insert an item to a sorted vector, while maintaining +sort order, consider using partition_point:

+ +
let mut s = vec![0, 1, 1, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55];
+let num = 42;
+let idx = s.partition_point(|&x| x < num);
+// The above is equivalent to `let idx = s.binary_search(&num).unwrap_or_else(|x| x);`
+s.insert(idx, num);
+assert_eq!(s, [0, 1, 1, 1, 1, 2, 3, 5, 8, 13, 21, 34, 42, 55]);
+
1.0.0 · source

pub fn binary_search_by<'a, F>(&'a self, f: F) -> Result<usize, usize>where + F: FnMut(&'a T) -> Ordering,

Binary searches this slice with a comparator function.

+

The comparator function should return an order code that indicates +whether its argument is Less, Equal or Greater the desired +target. +If the slice is not sorted or if the comparator function does not +implement an order consistent with the sort order of the underlying +slice, the returned result is unspecified and meaningless.

+

If the value is found then Result::Ok is returned, containing the +index of the matching element. If there are multiple matches, then any +one of the matches could be returned. The index is chosen +deterministically, but is subject to change in future versions of Rust. +If the value is not found then Result::Err is returned, containing +the index where a matching element could be inserted while maintaining +sorted order.

+

See also binary_search, binary_search_by_key, and partition_point.

+
Examples
+

Looks up a series of four elements. The first is found, with a +uniquely determined position; the second and third are not +found; the fourth could match any position in [1, 4].

+ +
let s = [0, 1, 1, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55];
+
+let seek = 13;
+assert_eq!(s.binary_search_by(|probe| probe.cmp(&seek)), Ok(9));
+let seek = 4;
+assert_eq!(s.binary_search_by(|probe| probe.cmp(&seek)), Err(7));
+let seek = 100;
+assert_eq!(s.binary_search_by(|probe| probe.cmp(&seek)), Err(13));
+let seek = 1;
+let r = s.binary_search_by(|probe| probe.cmp(&seek));
+assert!(match r { Ok(1..=4) => true, _ => false, });
+
1.10.0 · source

pub fn binary_search_by_key<'a, B, F>( + &'a self, + b: &B, + f: F +) -> Result<usize, usize>where + F: FnMut(&'a T) -> B, + B: Ord,

Binary searches this slice with a key extraction function.

+

Assumes that the slice is sorted by the key, for instance with +sort_by_key using the same key extraction function. +If the slice is not sorted by the key, the returned result is +unspecified and meaningless.

+

If the value is found then Result::Ok is returned, containing the +index of the matching element. If there are multiple matches, then any +one of the matches could be returned. The index is chosen +deterministically, but is subject to change in future versions of Rust. +If the value is not found then Result::Err is returned, containing +the index where a matching element could be inserted while maintaining +sorted order.

+

See also binary_search, binary_search_by, and partition_point.

+
Examples
+

Looks up a series of four elements in a slice of pairs sorted by +their second elements. The first is found, with a uniquely +determined position; the second and third are not found; the +fourth could match any position in [1, 4].

+ +
let s = [(0, 0), (2, 1), (4, 1), (5, 1), (3, 1),
+         (1, 2), (2, 3), (4, 5), (5, 8), (3, 13),
+         (1, 21), (2, 34), (4, 55)];
+
+assert_eq!(s.binary_search_by_key(&13, |&(a, b)| b),  Ok(9));
+assert_eq!(s.binary_search_by_key(&4, |&(a, b)| b),   Err(7));
+assert_eq!(s.binary_search_by_key(&100, |&(a, b)| b), Err(13));
+let r = s.binary_search_by_key(&1, |&(a, b)| b);
+assert!(match r { Ok(1..=4) => true, _ => false, });
+
1.30.0 · source

pub unsafe fn align_to<U>(&self) -> (&[T], &[U], &[T])

Transmute the slice to a slice of another type, ensuring alignment of the types is +maintained.

+

This method splits the slice into three distinct slices: prefix, correctly aligned middle +slice of a new type, and the suffix slice. How exactly the slice is split up is not +specified; the middle part may be smaller than necessary. However, if this fails to return a +maximal middle part, that is because code is running in a context where performance does not +matter, such as a sanitizer attempting to find alignment bugs. Regular code running +in a default (debug or release) execution will return a maximal middle part.

+

This method has no purpose when either input element T or output element U are +zero-sized and will return the original slice without splitting anything.

+
Safety
+

This method is essentially a transmute with respect to the elements in the returned +middle slice, so all the usual caveats pertaining to transmute::<T, U> also apply here.

+
Examples
+

Basic usage:

+ +
unsafe {
+    let bytes: [u8; 7] = [1, 2, 3, 4, 5, 6, 7];
+    let (prefix, shorts, suffix) = bytes.align_to::<u16>();
+    // less_efficient_algorithm_for_bytes(prefix);
+    // more_efficient_algorithm_for_aligned_shorts(shorts);
+    // less_efficient_algorithm_for_bytes(suffix);
+}
+
source

pub fn as_simd<const LANES: usize>(&self) -> (&[T], &[Simd<T, LANES>], &[T])where + Simd<T, LANES>: AsRef<[T; LANES]>, + T: SimdElement, + LaneCount<LANES>: SupportedLaneCount,

🔬This is a nightly-only experimental API. (portable_simd)

Split a slice into a prefix, a middle of aligned SIMD types, and a suffix.

+

This is a safe wrapper around slice::align_to, so has the same weak +postconditions as that method. You’re only assured that +self.len() == prefix.len() + middle.len() * LANES + suffix.len().

+

Notably, all of the following are possible:

+
    +
  • prefix.len() >= LANES.
  • +
  • middle.is_empty() despite self.len() >= 3 * LANES.
  • +
  • suffix.len() >= LANES.
  • +
+

That said, this is a safe method, so if you’re only writing safe code, +then this can at most cause incorrect logic, not unsoundness.

+
Panics
+

This will panic if the size of the SIMD type is different from +LANES times that of the scalar.

+

At the time of writing, the trait restrictions on Simd<T, LANES> keeps +that from ever happening, as only power-of-two numbers of lanes are +supported. It’s possible that, in the future, those restrictions might +be lifted in a way that would make it possible to see panics from this +method for something like LANES == 3.

+
Examples
+
#![feature(portable_simd)]
+use core::simd::SimdFloat;
+
+let short = &[1, 2, 3];
+let (prefix, middle, suffix) = short.as_simd::<4>();
+assert_eq!(middle, []); // Not enough elements for anything in the middle
+
+// They might be split in any possible way between prefix and suffix
+let it = prefix.iter().chain(suffix).copied();
+assert_eq!(it.collect::<Vec<_>>(), vec![1, 2, 3]);
+
+fn basic_simd_sum(x: &[f32]) -> f32 {
+    use std::ops::Add;
+    use std::simd::f32x4;
+    let (prefix, middle, suffix) = x.as_simd();
+    let sums = f32x4::from_array([
+        prefix.iter().copied().sum(),
+        0.0,
+        0.0,
+        suffix.iter().copied().sum(),
+    ]);
+    let sums = middle.iter().copied().fold(sums, f32x4::add);
+    sums.reduce_sum()
+}
+
+let numbers: Vec<f32> = (1..101).map(|x| x as _).collect();
+assert_eq!(basic_simd_sum(&numbers[1..99]), 4949.0);
+
source

pub fn is_sorted(&self) -> boolwhere + T: PartialOrd<T>,

🔬This is a nightly-only experimental API. (is_sorted)

Checks if the elements of this slice are sorted.

+

That is, for each element a and its following element b, a <= b must hold. If the +slice yields exactly zero or one element, true is returned.

+

Note that if Self::Item is only PartialOrd, but not Ord, the above definition +implies that this function returns false if any two consecutive items are not +comparable.

+
Examples
+
#![feature(is_sorted)]
+let empty: [i32; 0] = [];
+
+assert!([1, 2, 2, 9].is_sorted());
+assert!(![1, 3, 2, 4].is_sorted());
+assert!([0].is_sorted());
+assert!(empty.is_sorted());
+assert!(![0.0, 1.0, f32::NAN].is_sorted());
+
source

pub fn is_sorted_by<'a, F>(&'a self, compare: F) -> boolwhere + F: FnMut(&'a T, &'a T) -> Option<Ordering>,

🔬This is a nightly-only experimental API. (is_sorted)

Checks if the elements of this slice are sorted using the given comparator function.

+

Instead of using PartialOrd::partial_cmp, this function uses the given compare +function to determine the ordering of two elements. Apart from that, it’s equivalent to +is_sorted; see its documentation for more information.

+
source

pub fn is_sorted_by_key<'a, F, K>(&'a self, f: F) -> boolwhere + F: FnMut(&'a T) -> K, + K: PartialOrd<K>,

🔬This is a nightly-only experimental API. (is_sorted)

Checks if the elements of this slice are sorted using the given key extraction function.

+

Instead of comparing the slice’s elements directly, this function compares the keys of the +elements, as determined by f. Apart from that, it’s equivalent to is_sorted; see its +documentation for more information.

+
Examples
+
#![feature(is_sorted)]
+
+assert!(["c", "bb", "aaa"].is_sorted_by_key(|s| s.len()));
+assert!(![-2i32, -1, 0, 3].is_sorted_by_key(|n| n.abs()));
+
1.52.0 · source

pub fn partition_point<P>(&self, pred: P) -> usizewhere + P: FnMut(&T) -> bool,

Returns the index of the partition point according to the given predicate +(the index of the first element of the second partition).

+

The slice is assumed to be partitioned according to the given predicate. +This means that all elements for which the predicate returns true are at the start of the slice +and all elements for which the predicate returns false are at the end. +For example, [7, 15, 3, 5, 4, 12, 6] is partitioned under the predicate x % 2 != 0 +(all odd numbers are at the start, all even at the end).

+

If this slice is not partitioned, the returned result is unspecified and meaningless, +as this method performs a kind of binary search.

+

See also binary_search, binary_search_by, and binary_search_by_key.

+
Examples
+
let v = [1, 2, 3, 3, 5, 6, 7];
+let i = v.partition_point(|&x| x < 5);
+
+assert_eq!(i, 4);
+assert!(v[..i].iter().all(|&x| x < 5));
+assert!(v[i..].iter().all(|&x| !(x < 5)));
+

If all elements of the slice match the predicate, including if the slice +is empty, then the length of the slice will be returned:

+ +
let a = [2, 4, 8];
+assert_eq!(a.partition_point(|x| x < &100), a.len());
+let a: [i32; 0] = [];
+assert_eq!(a.partition_point(|x| x < &100), 0);
+

If you want to insert an item to a sorted vector, while maintaining +sort order:

+ +
let mut s = vec![0, 1, 1, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55];
+let num = 42;
+let idx = s.partition_point(|&x| x < num);
+s.insert(idx, num);
+assert_eq!(s, [0, 1, 1, 1, 1, 2, 3, 5, 8, 13, 21, 34, 42, 55]);
+
source

pub fn flatten(&self) -> &[T]

🔬This is a nightly-only experimental API. (slice_flatten)

Takes a &[[T; N]], and flattens it to a &[T].

+
Panics
+

This panics if the length of the resulting slice would overflow a usize.

+

This is only possible when flattening a slice of arrays of zero-sized +types, and thus tends to be irrelevant in practice. If +size_of::<T>() > 0, this will never panic.

+
Examples
+
#![feature(slice_flatten)]
+
+assert_eq!([[1, 2, 3], [4, 5, 6]].flatten(), &[1, 2, 3, 4, 5, 6]);
+
+assert_eq!(
+    [[1, 2, 3], [4, 5, 6]].flatten(),
+    [[1, 2], [3, 4], [5, 6]].flatten(),
+);
+
+let slice_of_empty_arrays: &[[i32; 0]] = &[[], [], [], [], []];
+assert!(slice_of_empty_arrays.flatten().is_empty());
+
+let empty_slice_of_arrays: &[[u32; 10]] = &[];
+assert!(empty_slice_of_arrays.flatten().is_empty());
+
1.0.0 · source

pub fn to_vec(&self) -> Vec<T, Global>where + T: Clone,

Copies self into a new Vec.

+
Examples
+
let s = [10, 40, 30];
+let x = s.to_vec();
+// Here, `s` and `x` can be modified independently.
+
source

pub fn to_vec_in<A>(&self, alloc: A) -> Vec<T, A>where + A: Allocator, + T: Clone,

🔬This is a nightly-only experimental API. (allocator_api)

Copies self into a new Vec with an allocator.

+
Examples
+
#![feature(allocator_api)]
+
+use std::alloc::System;
+
+let s = [10, 40, 30];
+let x = s.to_vec_in(System);
+// Here, `s` and `x` can be modified independently.
+
1.40.0 · source

pub fn repeat(&self, n: usize) -> Vec<T, Global>where + T: Copy,

Creates a vector by copying a slice n times.

+
Panics
+

This function will panic if the capacity would overflow.

+
Examples
+

Basic usage:

+ +
assert_eq!([1, 2].repeat(3), vec![1, 2, 1, 2, 1, 2]);
+

A panic upon overflow:

+ +
// this will panic at runtime
+b"0123456789abcdef".repeat(usize::MAX);
+
1.0.0 · source

pub fn concat<Item>(&self) -> <[T] as Concat<Item>>::Output where + [T]: Concat<Item>, + Item: ?Sized,

Flattens a slice of T into a single value Self::Output.

+
Examples
+
assert_eq!(["hello", "world"].concat(), "helloworld");
+assert_eq!([[1, 2], [3, 4]].concat(), [1, 2, 3, 4]);
+
1.3.0 · source

pub fn join<Separator>( + &self, + sep: Separator +) -> <[T] as Join<Separator>>::Output where + [T]: Join<Separator>,

Flattens a slice of T into a single value Self::Output, placing a +given separator between each.

+
Examples
+
assert_eq!(["hello", "world"].join(" "), "hello world");
+assert_eq!([[1, 2], [3, 4]].join(&0), [1, 2, 0, 3, 4]);
+assert_eq!([[1, 2], [3, 4]].join(&[0, 0][..]), [1, 2, 0, 0, 3, 4]);
+
1.0.0 · source

pub fn connect<Separator>( + &self, + sep: Separator +) -> <[T] as Join<Separator>>::Output where + [T]: Join<Separator>,

👎Deprecated since 1.3.0: renamed to join

Flattens a slice of T into a single value Self::Output, placing a +given separator between each.

+
Examples
+
assert_eq!(["hello", "world"].connect(" "), "hello world");
+assert_eq!([[1, 2], [3, 4]].connect(&0), [1, 2, 0, 3, 4]);
+
1.23.0 · source

pub fn to_ascii_uppercase(&self) -> Vec<u8, Global>

Returns a vector containing a copy of this slice where each byte +is mapped to its ASCII upper case equivalent.

+

ASCII letters ‘a’ to ‘z’ are mapped to ‘A’ to ‘Z’, +but non-ASCII letters are unchanged.

+

To uppercase the value in-place, use make_ascii_uppercase.

+
1.23.0 · source

pub fn to_ascii_lowercase(&self) -> Vec<u8, Global>

Returns a vector containing a copy of this slice where each byte +is mapped to its ASCII lower case equivalent.

+

ASCII letters ‘A’ to ‘Z’ are mapped to ‘a’ to ‘z’, +but non-ASCII letters are unchanged.

+

To lowercase the value in-place, use make_ascii_lowercase.

+

Trait Implementations§

source§

impl AsRef<[u8]> for Bytes

source§

fn as_ref(&self) -> &[u8]

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl CLTyped for Bytes

source§

fn cl_type() -> CLType

The CLType of Self.
source§

impl Clone for Bytes

source§

fn clone(&self) -> Bytes

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Bytes

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for Bytes

source§

fn default() -> Bytes

Returns the “default value” for a type. Read more
source§

impl Deref for Bytes

§

type Target = [u8]

The resulting type after dereferencing.
source§

fn deref(&self) -> &Self::Target

Dereferences the value.
source§

impl From<&[u8]> for Bytes

source§

fn from(bytes: &[u8]) -> Self

Converts to this type from the input type.
source§

impl From<Bytes> for Bytes

source§

fn from(bytes: _Bytes) -> Self

Converts to this type from the input type.
source§

impl From<Bytes> for Bytes

source§

fn from(bytes: Bytes) -> Self

Converts to this type from the input type.
source§

impl From<Bytes> for JsValue

source§

fn from(value: Bytes) -> Self

Converts to this type from the input type.
source§

impl From<Bytes> for Vec<u8>

source§

fn from(bytes: Bytes) -> Self

Converts to this type from the input type.
source§

impl From<Vec<u8, Global>> for Bytes

source§

fn from(vec: Vec<u8>) -> Self

Converts to this type from the input type.
source§

impl FromWasmAbi for Bytes

§

type Abi = u32

The wasm ABI type that this converts from when coming back out from the +ABI boundary.
source§

unsafe fn from_abi(js: u32) -> Self

Recover a Self from Self::Abi. Read more
source§

impl Hash for Bytes

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)where + H: Hasher, + Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl IntoWasmAbi for Bytes

§

type Abi = u32

The wasm ABI type that this converts into when crossing the ABI +boundary.
source§

fn into_abi(self) -> u32

Convert self into Self::Abi so that it can be sent across the wasm +ABI boundary.
source§

impl LongRefFromWasmAbi for Bytes

§

type Abi = u32

Same as RefFromWasmAbi::Abi
§

type Anchor = Ref<'static, Bytes>

Same as RefFromWasmAbi::Anchor
source§

unsafe fn long_ref_from_abi(js: Self::Abi) -> Self::Anchor

Same as RefFromWasmAbi::ref_from_abi
source§

impl OptionFromWasmAbi for Bytes

source§

fn is_none(abi: &Self::Abi) -> bool

Tests whether the argument is a “none” instance. If so it will be +deserialized as None, and otherwise it will be passed to +FromWasmAbi.
source§

impl OptionIntoWasmAbi for Bytes

source§

fn none() -> Self::Abi

Returns an ABI instance indicating “none”, which JS will interpret as +the None branch of this option. Read more
source§

impl Ord for Bytes

source§

fn cmp(&self, other: &Bytes) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Selfwhere + Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Selfwhere + Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Selfwhere + Self: Sized + PartialOrd<Self>,

Restrict a value to a certain interval. Read more
source§

impl PartialEq<Bytes> for Bytes

source§

fn eq(&self, other: &Bytes) -> bool

This method tests for self and other values to be equal, and is used +by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
source§

impl PartialOrd<Bytes> for Bytes

source§

fn partial_cmp(&self, other: &Bytes) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= +operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= +operator. Read more
source§

impl RefFromWasmAbi for Bytes

§

type Abi = u32

The wasm ABI type references to Self are recovered from.
§

type Anchor = Ref<'static, Bytes>

The type that holds the reference to Self for the duration of the +invocation of the function that has an &Self parameter. This is +required to ensure that the lifetimes don’t persist beyond one function +call, and so that they remain anonymous.
source§

unsafe fn ref_from_abi(js: Self::Abi) -> Self::Anchor

Recover a Self::Anchor from Self::Abi. Read more
source§

impl RefMutFromWasmAbi for Bytes

§

type Abi = u32

Same as RefFromWasmAbi::Abi
§

type Anchor = RefMut<'static, Bytes>

Same as RefFromWasmAbi::Anchor
source§

unsafe fn ref_mut_from_abi(js: Self::Abi) -> Self::Anchor

Same as RefFromWasmAbi::ref_from_abi
source§

impl WasmDescribe for Bytes

source§

impl Eq for Bytes

source§

impl StructuralEq for Bytes

source§

impl StructuralPartialEq for Bytes

Auto Trait Implementations§

§

impl RefUnwindSafe for Bytes

§

impl Send for Bytes

§

impl Sync for Bytes

§

impl Unpin for Bytes

§

impl UnwindSafe for Bytes

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<Q, K> Comparable<K> for Qwhere + Q: Ord + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn compare(&self, key: &K) -> Ordering

Compare self to key and return their ordering.
source§

impl<T> DynClone for Twhere + T: Clone,

source§

fn __clone_box(&self, _: Private) -> *mut ()

§

impl<Q, K> Equivalent<K> for Qwhere + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Qwhere + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
source§

impl<Q, K> Equivalent<K> for Qwhere + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> ReturnWasmAbi for Twhere + T: IntoWasmAbi,

§

type Abi = <T as IntoWasmAbi>::Abi

Same as IntoWasmAbi::Abi
source§

fn return_abi(self) -> <T as ReturnWasmAbi>::Abi

Same as IntoWasmAbi::into_abi, except that it may throw and never +return in the case of Err.
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToHex for Twhere + T: AsRef<[u8]>,

source§

fn encode_hex<U>(&self) -> Uwhere + U: FromIterator<char>,

Encode the hex strict representing self into the result. Lower case +letters are used (e.g. f9b4ca)
source§

fn encode_hex_upper<U>(&self) -> Uwhere + U: FromIterator<char>,

Encode the hex strict representing self into the result. Upper case +letters are used (e.g. F9B4CA)
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/types/cl/index.html b/docs/api-rust/casper_rust_wasm_sdk/types/cl/index.html new file mode 100644 index 000000000..aa6cc4187 --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/types/cl/index.html @@ -0,0 +1 @@ +casper_rust_wasm_sdk::types::cl - Rust

Modules

\ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/types/cl/sidebar-items.js b/docs/api-rust/casper_rust_wasm_sdk/types/cl/sidebar-items.js new file mode 100644 index 000000000..9c1582321 --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/types/cl/sidebar-items.js @@ -0,0 +1 @@ +window.SIDEBAR_ITEMS = {"mod":["bytes"]}; \ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/types/contract_hash/index.html b/docs/api-rust/casper_rust_wasm_sdk/types/contract_hash/index.html new file mode 100644 index 000000000..8ab88ae56 --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/types/contract_hash/index.html @@ -0,0 +1 @@ +casper_rust_wasm_sdk::types::contract_hash - Rust

Structs

\ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/types/contract_hash/sidebar-items.js b/docs/api-rust/casper_rust_wasm_sdk/types/contract_hash/sidebar-items.js new file mode 100644 index 000000000..a047960c6 --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/types/contract_hash/sidebar-items.js @@ -0,0 +1 @@ +window.SIDEBAR_ITEMS = {"struct":["ContractHash"]}; \ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/types/contract_hash/struct.ContractHash.html b/docs/api-rust/casper_rust_wasm_sdk/types/contract_hash/struct.ContractHash.html new file mode 100644 index 000000000..d1ef4139d --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/types/contract_hash/struct.ContractHash.html @@ -0,0 +1,31 @@ +ContractHash in casper_rust_wasm_sdk::types::contract_hash - Rust
pub struct ContractHash(/* private fields */);

Implementations§

Trait Implementations§

source§

impl Debug for ContractHash

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl From<ContractHash> for ContractHash

source§

fn from(contract_hash: _ContractHash) -> Self

Converts to this type from the input type.
source§

impl From<ContractHash> for ContractHash

source§

fn from(contract_hash: ContractHash) -> Self

Converts to this type from the input type.
source§

impl From<ContractHash> for JsValue

source§

fn from(value: ContractHash) -> Self

Converts to this type from the input type.
source§

impl FromBytes for ContractHash

source§

fn from_bytes(bytes: &[u8]) -> Result<(Self, &[u8]), Error>

Deserializes the slice into Self.
source§

fn from_vec(bytes: Vec<u8, Global>) -> Result<(Self, Vec<u8, Global>), Error>

Deserializes the Vec<u8> into Self.
source§

impl FromWasmAbi for ContractHash

§

type Abi = u32

The wasm ABI type that this converts from when coming back out from the +ABI boundary.
source§

unsafe fn from_abi(js: u32) -> Self

Recover a Self from Self::Abi. Read more
source§

impl IntoWasmAbi for ContractHash

§

type Abi = u32

The wasm ABI type that this converts into when crossing the ABI +boundary.
source§

fn into_abi(self) -> u32

Convert self into Self::Abi so that it can be sent across the wasm +ABI boundary.
source§

impl LongRefFromWasmAbi for ContractHash

§

type Abi = u32

Same as RefFromWasmAbi::Abi
§

type Anchor = Ref<'static, ContractHash>

Same as RefFromWasmAbi::Anchor
source§

unsafe fn long_ref_from_abi(js: Self::Abi) -> Self::Anchor

Same as RefFromWasmAbi::ref_from_abi
source§

impl OptionFromWasmAbi for ContractHash

source§

fn is_none(abi: &Self::Abi) -> bool

Tests whether the argument is a “none” instance. If so it will be +deserialized as None, and otherwise it will be passed to +FromWasmAbi.
source§

impl OptionIntoWasmAbi for ContractHash

source§

fn none() -> Self::Abi

Returns an ABI instance indicating “none”, which JS will interpret as +the None branch of this option. Read more
source§

impl RefFromWasmAbi for ContractHash

§

type Abi = u32

The wasm ABI type references to Self are recovered from.
§

type Anchor = Ref<'static, ContractHash>

The type that holds the reference to Self for the duration of the +invocation of the function that has an &Self parameter. This is +required to ensure that the lifetimes don’t persist beyond one function +call, and so that they remain anonymous.
source§

unsafe fn ref_from_abi(js: Self::Abi) -> Self::Anchor

Recover a Self::Anchor from Self::Abi. Read more
source§

impl RefMutFromWasmAbi for ContractHash

§

type Abi = u32

Same as RefFromWasmAbi::Abi
§

type Anchor = RefMut<'static, ContractHash>

Same as RefFromWasmAbi::Anchor
source§

unsafe fn ref_mut_from_abi(js: Self::Abi) -> Self::Anchor

Same as RefFromWasmAbi::ref_from_abi
source§

impl ToBytes for ContractHash

source§

fn to_bytes(&self) -> Result<Vec<u8>, Error>

Serializes &self to a Vec<u8>.
source§

fn serialized_length(&self) -> usize

Returns the length of the Vec<u8> which would be returned from a successful call to +to_bytes() or into_bytes(). The data is not actually serialized, so this call is +relatively cheap.
source§

fn write_bytes(&self, bytes: &mut Vec<u8>) -> Result<(), Error>

Writes &self into a mutable writer.
source§

fn into_bytes(self) -> Result<Vec<u8, Global>, Error>where + Self: Sized,

Consumes self and serializes to a Vec<u8>.
source§

impl WasmDescribe for ContractHash

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> ReturnWasmAbi for Twhere + T: IntoWasmAbi,

§

type Abi = <T as IntoWasmAbi>::Abi

Same as IntoWasmAbi::Abi
source§

fn return_abi(self) -> <T as ReturnWasmAbi>::Abi

Same as IntoWasmAbi::into_abi, except that it may throw and never +return in the case of Err.
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/types/contract_package_hash/index.html b/docs/api-rust/casper_rust_wasm_sdk/types/contract_package_hash/index.html new file mode 100644 index 000000000..fe781fef4 --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/types/contract_package_hash/index.html @@ -0,0 +1 @@ +casper_rust_wasm_sdk::types::contract_package_hash - Rust

Structs

\ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/types/contract_package_hash/sidebar-items.js b/docs/api-rust/casper_rust_wasm_sdk/types/contract_package_hash/sidebar-items.js new file mode 100644 index 000000000..893d983f3 --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/types/contract_package_hash/sidebar-items.js @@ -0,0 +1 @@ +window.SIDEBAR_ITEMS = {"struct":["ContractPackageHash"]}; \ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/types/contract_package_hash/struct.ContractPackageHash.html b/docs/api-rust/casper_rust_wasm_sdk/types/contract_package_hash/struct.ContractPackageHash.html new file mode 100644 index 000000000..feea07fc2 --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/types/contract_package_hash/struct.ContractPackageHash.html @@ -0,0 +1,31 @@ +ContractPackageHash in casper_rust_wasm_sdk::types::contract_package_hash - Rust
pub struct ContractPackageHash(/* private fields */);

Implementations§

Trait Implementations§

source§

impl Debug for ContractPackageHash

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl From<ContractPackageHash> for ContractPackageHash

source§

fn from(contract_package_hash: _ContractPackageHash) -> Self

Converts to this type from the input type.
source§

impl From<ContractPackageHash> for ContractPackageHash

source§

fn from(contract_package_hash: ContractPackageHash) -> Self

Converts to this type from the input type.
source§

impl From<ContractPackageHash> for JsValue

source§

fn from(value: ContractPackageHash) -> Self

Converts to this type from the input type.
source§

impl FromBytes for ContractPackageHash

source§

fn from_bytes(bytes: &[u8]) -> Result<(Self, &[u8]), Error>

Deserializes the slice into Self.
source§

fn from_vec(bytes: Vec<u8, Global>) -> Result<(Self, Vec<u8, Global>), Error>

Deserializes the Vec<u8> into Self.
source§

impl FromWasmAbi for ContractPackageHash

§

type Abi = u32

The wasm ABI type that this converts from when coming back out from the +ABI boundary.
source§

unsafe fn from_abi(js: u32) -> Self

Recover a Self from Self::Abi. Read more
source§

impl IntoWasmAbi for ContractPackageHash

§

type Abi = u32

The wasm ABI type that this converts into when crossing the ABI +boundary.
source§

fn into_abi(self) -> u32

Convert self into Self::Abi so that it can be sent across the wasm +ABI boundary.
source§

impl LongRefFromWasmAbi for ContractPackageHash

§

type Abi = u32

Same as RefFromWasmAbi::Abi
§

type Anchor = Ref<'static, ContractPackageHash>

Same as RefFromWasmAbi::Anchor
source§

unsafe fn long_ref_from_abi(js: Self::Abi) -> Self::Anchor

Same as RefFromWasmAbi::ref_from_abi
source§

impl OptionFromWasmAbi for ContractPackageHash

source§

fn is_none(abi: &Self::Abi) -> bool

Tests whether the argument is a “none” instance. If so it will be +deserialized as None, and otherwise it will be passed to +FromWasmAbi.
source§

impl OptionIntoWasmAbi for ContractPackageHash

source§

fn none() -> Self::Abi

Returns an ABI instance indicating “none”, which JS will interpret as +the None branch of this option. Read more
source§

impl RefFromWasmAbi for ContractPackageHash

§

type Abi = u32

The wasm ABI type references to Self are recovered from.
§

type Anchor = Ref<'static, ContractPackageHash>

The type that holds the reference to Self for the duration of the +invocation of the function that has an &Self parameter. This is +required to ensure that the lifetimes don’t persist beyond one function +call, and so that they remain anonymous.
source§

unsafe fn ref_from_abi(js: Self::Abi) -> Self::Anchor

Recover a Self::Anchor from Self::Abi. Read more
source§

impl RefMutFromWasmAbi for ContractPackageHash

§

type Abi = u32

Same as RefFromWasmAbi::Abi
§

type Anchor = RefMut<'static, ContractPackageHash>

Same as RefFromWasmAbi::Anchor
source§

unsafe fn ref_mut_from_abi(js: Self::Abi) -> Self::Anchor

Same as RefFromWasmAbi::ref_from_abi
source§

impl ToBytes for ContractPackageHash

source§

fn to_bytes(&self) -> Result<Vec<u8>, Error>

Serializes &self to a Vec<u8>.
source§

fn serialized_length(&self) -> usize

Returns the length of the Vec<u8> which would be returned from a successful call to +to_bytes() or into_bytes(). The data is not actually serialized, so this call is +relatively cheap.
source§

fn write_bytes(&self, bytes: &mut Vec<u8>) -> Result<(), Error>

Writes &self into a mutable writer.
source§

fn into_bytes(self) -> Result<Vec<u8, Global>, Error>where + Self: Sized,

Consumes self and serializes to a Vec<u8>.
source§

impl WasmDescribe for ContractPackageHash

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> ReturnWasmAbi for Twhere + T: IntoWasmAbi,

§

type Abi = <T as IntoWasmAbi>::Abi

Same as IntoWasmAbi::Abi
source§

fn return_abi(self) -> <T as ReturnWasmAbi>::Abi

Same as IntoWasmAbi::into_abi, except that it may throw and never +return in the case of Err.
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/types/deploy/index.html b/docs/api-rust/casper_rust_wasm_sdk/types/deploy/index.html new file mode 100644 index 000000000..ac81a33ea --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/types/deploy/index.html @@ -0,0 +1 @@ +casper_rust_wasm_sdk::types::deploy - Rust

Structs

\ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/types/deploy/sidebar-items.js b/docs/api-rust/casper_rust_wasm_sdk/types/deploy/sidebar-items.js new file mode 100644 index 000000000..151b9b2fa --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/types/deploy/sidebar-items.js @@ -0,0 +1 @@ +window.SIDEBAR_ITEMS = {"struct":["Deploy"]}; \ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/types/deploy/struct.Deploy.html b/docs/api-rust/casper_rust_wasm_sdk/types/deploy/struct.Deploy.html new file mode 100644 index 000000000..9c895dd31 --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/types/deploy/struct.Deploy.html @@ -0,0 +1,79 @@ +Deploy in casper_rust_wasm_sdk::types::deploy - Rust
pub struct Deploy(/* private fields */);

Implementations§

source§

impl Deploy

source

pub fn with_payment_and_session( + deploy_params: DeployStrParams, + session_params: SessionStrParams, + payment_params: PaymentStrParams +) -> Result<Deploy, String>

source

pub fn with_transfer( + amount: &str, + target_account: &str, + transfer_id: Option<String>, + deploy_params: DeployStrParams, + payment_params: PaymentStrParams +) -> Result<Deploy, String>

source

pub fn with_ttl(&self, ttl: &str, secret_key: Option<String>) -> Deploy

source

pub fn with_timestamp( + &self, + timestamp: &str, + secret_key: Option<String> +) -> Deploy

source

pub fn with_chain_name( + &self, + chain_name: &str, + secret_key: Option<String> +) -> Deploy

source

pub fn with_account( + &self, + account: PublicKey, + secret_key: Option<String> +) -> Deploy

source

pub fn with_entry_point_name( + &self, + entry_point_name: &str, + secret_key: Option<String> +) -> Deploy

source

pub fn with_hash( + &self, + hash: ContractHash, + secret_key: Option<String> +) -> Deploy

source

pub fn with_package_hash( + &self, + package_hash: ContractPackageHash, + secret_key: Option<String> +) -> Deploy

source

pub fn with_module_bytes( + &self, + module_bytes: Bytes, + secret_key: Option<String> +) -> Deploy

source

pub fn with_secret_key(&self, secret_key: Option<String>) -> Deploy

source

pub fn with_standard_payment( + &self, + amount: &str, + secret_key: Option<String> +) -> Deploy

source

pub fn validate_deploy_size(&self) -> bool

source

pub fn sign(&mut self, secret_key: &str) -> Deploy

source

pub fn ttl(&self) -> String

source

pub fn timestamp(&self) -> String

source

pub fn chain_name(&self) -> String

source

pub fn account(&self) -> String

source§

impl Deploy

source

pub fn args(&self) -> RuntimeArgs

source

pub fn add_arg( + &mut self, + new_value_arg: String, + secret_key: Option<String> +) -> Deploy

source

pub fn to_json_string(&self) -> Result<String, String>

Trait Implementations§

source§

impl Clone for Deploy

source§

fn clone(&self) -> Deploy

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Deploy

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for Deploy

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl From<Deploy> for Deploy

source§

fn from(deploy: Deploy) -> Self

Converts to this type from the input type.
source§

impl From<Deploy> for Deploy

source§

fn from(deploy: _Deploy) -> Self

Converts to this type from the input type.
source§

impl From<Deploy> for JsValue

source§

fn from(value: Deploy) -> Self

Converts to this type from the input type.
source§

impl FromWasmAbi for Deploy

§

type Abi = u32

The wasm ABI type that this converts from when coming back out from the +ABI boundary.
source§

unsafe fn from_abi(js: u32) -> Self

Recover a Self from Self::Abi. Read more
source§

impl IntoWasmAbi for Deploy

§

type Abi = u32

The wasm ABI type that this converts into when crossing the ABI +boundary.
source§

fn into_abi(self) -> u32

Convert self into Self::Abi so that it can be sent across the wasm +ABI boundary.
source§

impl LongRefFromWasmAbi for Deploy

§

type Abi = u32

Same as RefFromWasmAbi::Abi
§

type Anchor = Ref<'static, Deploy>

Same as RefFromWasmAbi::Anchor
source§

unsafe fn long_ref_from_abi(js: Self::Abi) -> Self::Anchor

Same as RefFromWasmAbi::ref_from_abi
source§

impl OptionFromWasmAbi for Deploy

source§

fn is_none(abi: &Self::Abi) -> bool

Tests whether the argument is a “none” instance. If so it will be +deserialized as None, and otherwise it will be passed to +FromWasmAbi.
source§

impl OptionIntoWasmAbi for Deploy

source§

fn none() -> Self::Abi

Returns an ABI instance indicating “none”, which JS will interpret as +the None branch of this option. Read more
source§

impl RefFromWasmAbi for Deploy

§

type Abi = u32

The wasm ABI type references to Self are recovered from.
§

type Anchor = Ref<'static, Deploy>

The type that holds the reference to Self for the duration of the +invocation of the function that has an &Self parameter. This is +required to ensure that the lifetimes don’t persist beyond one function +call, and so that they remain anonymous.
source§

unsafe fn ref_from_abi(js: Self::Abi) -> Self::Anchor

Recover a Self::Anchor from Self::Abi. Read more
source§

impl RefMutFromWasmAbi for Deploy

§

type Abi = u32

Same as RefFromWasmAbi::Abi
§

type Anchor = RefMut<'static, Deploy>

Same as RefFromWasmAbi::Anchor
source§

unsafe fn ref_mut_from_abi(js: Self::Abi) -> Self::Anchor

Same as RefFromWasmAbi::ref_from_abi
source§

impl Serialize for Deploy

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl WasmDescribe for Deploy

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> DynClone for Twhere + T: Clone,

source§

fn __clone_box(&self, _: Private) -> *mut ()

source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> ReturnWasmAbi for Twhere + T: IntoWasmAbi,

§

type Abi = <T as IntoWasmAbi>::Abi

Same as IntoWasmAbi::Abi
source§

fn return_abi(self) -> <T as ReturnWasmAbi>::Abi

Same as IntoWasmAbi::into_abi, except that it may throw and never +return in the case of Err.
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/types/deploy_hash/index.html b/docs/api-rust/casper_rust_wasm_sdk/types/deploy_hash/index.html new file mode 100644 index 000000000..21d438801 --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/types/deploy_hash/index.html @@ -0,0 +1 @@ +casper_rust_wasm_sdk::types::deploy_hash - Rust

Structs

\ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/types/deploy_hash/sidebar-items.js b/docs/api-rust/casper_rust_wasm_sdk/types/deploy_hash/sidebar-items.js new file mode 100644 index 000000000..b4a55619d --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/types/deploy_hash/sidebar-items.js @@ -0,0 +1 @@ +window.SIDEBAR_ITEMS = {"struct":["DeployHash"]}; \ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/types/deploy_hash/struct.DeployHash.html b/docs/api-rust/casper_rust_wasm_sdk/types/deploy_hash/struct.DeployHash.html new file mode 100644 index 000000000..4c311cf62 --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/types/deploy_hash/struct.DeployHash.html @@ -0,0 +1,33 @@ +DeployHash in casper_rust_wasm_sdk::types::deploy_hash - Rust
pub struct DeployHash(/* private fields */);

Implementations§

source§

impl DeployHash

source

pub fn new(deploy_hash_hex_str: &str) -> Result<DeployHash, JsValue>

source

pub fn from_digest(digest: Digest) -> Result<DeployHash, JsValue>

Trait Implementations§

source§

impl Clone for DeployHash

source§

fn clone(&self) -> DeployHash

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for DeployHash

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for DeployHash

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl From<DeployHash> for DeployHash

source§

fn from(deploy_hash: _DeployHashClient) -> Self

Converts to this type from the input type.
source§

impl From<DeployHash> for DeployHash

source§

fn from(deploy_hash: DeployHash) -> Self

Converts to this type from the input type.
source§

impl From<DeployHash> for DeployHash

source§

fn from(deploy_hash: DeployHash) -> Self

Converts to this type from the input type.
source§

impl From<DeployHash> for DeployHash

source§

fn from(deploy_hash: _DeployHash) -> Self

Converts to this type from the input type.
source§

impl From<DeployHash> for JsValue

source§

fn from(value: DeployHash) -> Self

Converts to this type from the input type.
source§

impl From<Digest> for DeployHash

source§

fn from(digest: Digest) -> Self

Converts to this type from the input type.
source§

impl FromWasmAbi for DeployHash

§

type Abi = u32

The wasm ABI type that this converts from when coming back out from the +ABI boundary.
source§

unsafe fn from_abi(js: u32) -> Self

Recover a Self from Self::Abi. Read more
source§

impl IntoWasmAbi for DeployHash

§

type Abi = u32

The wasm ABI type that this converts into when crossing the ABI +boundary.
source§

fn into_abi(self) -> u32

Convert self into Self::Abi so that it can be sent across the wasm +ABI boundary.
source§

impl LongRefFromWasmAbi for DeployHash

§

type Abi = u32

Same as RefFromWasmAbi::Abi
§

type Anchor = Ref<'static, DeployHash>

Same as RefFromWasmAbi::Anchor
source§

unsafe fn long_ref_from_abi(js: Self::Abi) -> Self::Anchor

Same as RefFromWasmAbi::ref_from_abi
source§

impl OptionFromWasmAbi for DeployHash

source§

fn is_none(abi: &Self::Abi) -> bool

Tests whether the argument is a “none” instance. If so it will be +deserialized as None, and otherwise it will be passed to +FromWasmAbi.
source§

impl OptionIntoWasmAbi for DeployHash

source§

fn none() -> Self::Abi

Returns an ABI instance indicating “none”, which JS will interpret as +the None branch of this option. Read more
source§

impl RefFromWasmAbi for DeployHash

§

type Abi = u32

The wasm ABI type references to Self are recovered from.
§

type Anchor = Ref<'static, DeployHash>

The type that holds the reference to Self for the duration of the +invocation of the function that has an &Self parameter. This is +required to ensure that the lifetimes don’t persist beyond one function +call, and so that they remain anonymous.
source§

unsafe fn ref_from_abi(js: Self::Abi) -> Self::Anchor

Recover a Self::Anchor from Self::Abi. Read more
source§

impl RefMutFromWasmAbi for DeployHash

§

type Abi = u32

Same as RefFromWasmAbi::Abi
§

type Anchor = RefMut<'static, DeployHash>

Same as RefFromWasmAbi::Anchor
source§

unsafe fn ref_mut_from_abi(js: Self::Abi) -> Self::Anchor

Same as RefFromWasmAbi::ref_from_abi
source§

impl Serialize for DeployHash

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl ToString for DeployHash

source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl WasmDescribe for DeployHash

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> DynClone for Twhere + T: Clone,

source§

fn __clone_box(&self, _: Private) -> *mut ()

source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> ReturnWasmAbi for Twhere + T: IntoWasmAbi,

§

type Abi = <T as IntoWasmAbi>::Abi

Same as IntoWasmAbi::Abi
source§

fn return_abi(self) -> <T as ReturnWasmAbi>::Abi

Same as IntoWasmAbi::into_abi, except that it may throw and never +return in the case of Err.
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/types/deploy_params/args_simple/index.html b/docs/api-rust/casper_rust_wasm_sdk/types/deploy_params/args_simple/index.html new file mode 100644 index 000000000..8901fb817 --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/types/deploy_params/args_simple/index.html @@ -0,0 +1 @@ +casper_rust_wasm_sdk::types::deploy_params::args_simple - Rust

Structs

\ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/types/deploy_params/args_simple/sidebar-items.js b/docs/api-rust/casper_rust_wasm_sdk/types/deploy_params/args_simple/sidebar-items.js new file mode 100644 index 000000000..f90cbcb64 --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/types/deploy_params/args_simple/sidebar-items.js @@ -0,0 +1 @@ +window.SIDEBAR_ITEMS = {"struct":["ArgsSimple"]}; \ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/types/deploy_params/args_simple/struct.ArgsSimple.html b/docs/api-rust/casper_rust_wasm_sdk/types/deploy_params/args_simple/struct.ArgsSimple.html new file mode 100644 index 000000000..52189419e --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/types/deploy_params/args_simple/struct.ArgsSimple.html @@ -0,0 +1,30 @@ +ArgsSimple in casper_rust_wasm_sdk::types::deploy_params::args_simple - Rust
pub struct ArgsSimple { /* private fields */ }

Implementations§

source§

impl ArgsSimple

source

pub fn new(args: JsValue) -> Self

source

pub fn args(&self) -> &[String]

Trait Implementations§

source§

impl Clone for ArgsSimple

source§

fn clone(&self) -> ArgsSimple

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for ArgsSimple

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for ArgsSimple

source§

fn default() -> ArgsSimple

Returns the “default value” for a type. Read more
source§

impl From<ArgsSimple> for JsValue

source§

fn from(value: ArgsSimple) -> Self

Converts to this type from the input type.
source§

impl From<ArgsSimple> for Vec<String>

source§

fn from(args: ArgsSimple) -> Self

Converts to this type from the input type.
source§

impl From<Vec<String, Global>> for ArgsSimple

source§

fn from(args: Vec<String>) -> Self

Converts to this type from the input type.
source§

impl FromIterator<JsValue> for ArgsSimple

source§

fn from_iter<I: IntoIterator<Item = JsValue>>(iter: I) -> Self

Creates a value from an iterator. Read more
source§

impl FromWasmAbi for ArgsSimple

§

type Abi = u32

The wasm ABI type that this converts from when coming back out from the +ABI boundary.
source§

unsafe fn from_abi(js: u32) -> Self

Recover a Self from Self::Abi. Read more
source§

impl IntoWasmAbi for ArgsSimple

§

type Abi = u32

The wasm ABI type that this converts into when crossing the ABI +boundary.
source§

fn into_abi(self) -> u32

Convert self into Self::Abi so that it can be sent across the wasm +ABI boundary.
source§

impl LongRefFromWasmAbi for ArgsSimple

§

type Abi = u32

Same as RefFromWasmAbi::Abi
§

type Anchor = Ref<'static, ArgsSimple>

Same as RefFromWasmAbi::Anchor
source§

unsafe fn long_ref_from_abi(js: Self::Abi) -> Self::Anchor

Same as RefFromWasmAbi::ref_from_abi
source§

impl OptionFromWasmAbi for ArgsSimple

source§

fn is_none(abi: &Self::Abi) -> bool

Tests whether the argument is a “none” instance. If so it will be +deserialized as None, and otherwise it will be passed to +FromWasmAbi.
source§

impl OptionIntoWasmAbi for ArgsSimple

source§

fn none() -> Self::Abi

Returns an ABI instance indicating “none”, which JS will interpret as +the None branch of this option. Read more
source§

impl RefFromWasmAbi for ArgsSimple

§

type Abi = u32

The wasm ABI type references to Self are recovered from.
§

type Anchor = Ref<'static, ArgsSimple>

The type that holds the reference to Self for the duration of the +invocation of the function that has an &Self parameter. This is +required to ensure that the lifetimes don’t persist beyond one function +call, and so that they remain anonymous.
source§

unsafe fn ref_from_abi(js: Self::Abi) -> Self::Anchor

Recover a Self::Anchor from Self::Abi. Read more
source§

impl RefMutFromWasmAbi for ArgsSimple

§

type Abi = u32

Same as RefFromWasmAbi::Abi
§

type Anchor = RefMut<'static, ArgsSimple>

Same as RefFromWasmAbi::Anchor
source§

unsafe fn ref_mut_from_abi(js: Self::Abi) -> Self::Anchor

Same as RefFromWasmAbi::ref_from_abi
source§

impl WasmDescribe for ArgsSimple

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> DynClone for Twhere + T: Clone,

source§

fn __clone_box(&self, _: Private) -> *mut ()

source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> ReturnWasmAbi for Twhere + T: IntoWasmAbi,

§

type Abi = <T as IntoWasmAbi>::Abi

Same as IntoWasmAbi::Abi
source§

fn return_abi(self) -> <T as ReturnWasmAbi>::Abi

Same as IntoWasmAbi::into_abi, except that it may throw and never +return in the case of Err.
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/types/deploy_params/deploy_str_params/fn.deploy_str_params_to_casper_client.html b/docs/api-rust/casper_rust_wasm_sdk/types/deploy_params/deploy_str_params/fn.deploy_str_params_to_casper_client.html new file mode 100644 index 000000000..dc777e1b7 --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/types/deploy_params/deploy_str_params/fn.deploy_str_params_to_casper_client.html @@ -0,0 +1,3 @@ +deploy_str_params_to_casper_client in casper_rust_wasm_sdk::types::deploy_params::deploy_str_params - Rust
pub fn deploy_str_params_to_casper_client(
+    deploy_params: &DeployStrParams
+) -> DeployStrParams<'_>
\ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/types/deploy_params/deploy_str_params/index.html b/docs/api-rust/casper_rust_wasm_sdk/types/deploy_params/deploy_str_params/index.html new file mode 100644 index 000000000..6965d8841 --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/types/deploy_params/deploy_str_params/index.html @@ -0,0 +1 @@ +casper_rust_wasm_sdk::types::deploy_params::deploy_str_params - Rust

Structs

Functions

\ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/types/deploy_params/deploy_str_params/sidebar-items.js b/docs/api-rust/casper_rust_wasm_sdk/types/deploy_params/deploy_str_params/sidebar-items.js new file mode 100644 index 000000000..1326e24b8 --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/types/deploy_params/deploy_str_params/sidebar-items.js @@ -0,0 +1 @@ +window.SIDEBAR_ITEMS = {"fn":["deploy_str_params_to_casper_client"],"struct":["DeployStrParams"]}; \ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/types/deploy_params/deploy_str_params/struct.DeployStrParams.html b/docs/api-rust/casper_rust_wasm_sdk/types/deploy_params/deploy_str_params/struct.DeployStrParams.html new file mode 100644 index 000000000..87fe2a693 --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/types/deploy_params/deploy_str_params/struct.DeployStrParams.html @@ -0,0 +1,36 @@ +DeployStrParams in casper_rust_wasm_sdk::types::deploy_params::deploy_str_params - Rust
pub struct DeployStrParams { /* private fields */ }

Implementations§

source§

impl DeployStrParams

source

pub fn new( + chain_name: &str, + session_account: &str, + secret_key: Option<String>, + timestamp: Option<String>, + ttl: Option<String> +) -> Self

source

pub fn secret_key(&self) -> Option<String>

source

pub fn set_secret_key(&self, secret_key: &str)

source

pub fn timestamp(&self) -> Option<String>

source

pub fn set_timestamp(&self, timestamp: Option<String>)

source

pub fn set_default_timestamp(&self)

source

pub fn ttl(&self) -> Option<String>

source

pub fn set_ttl(&self, ttl: Option<String>)

source

pub fn set_default_ttl(&self)

source

pub fn chain_name(&self) -> Option<String>

source

pub fn set_chain_name(&self, chain_name: &str)

source

pub fn session_account(&self) -> Option<String>

source

pub fn set_session_account(&self, session_account: &str)

Trait Implementations§

source§

impl Clone for DeployStrParams

source§

fn clone(&self) -> DeployStrParams

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for DeployStrParams

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for DeployStrParams

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl From<DeployStrParams> for JsValue

source§

fn from(value: DeployStrParams) -> Self

Converts to this type from the input type.
source§

impl FromWasmAbi for DeployStrParams

§

type Abi = u32

The wasm ABI type that this converts from when coming back out from the +ABI boundary.
source§

unsafe fn from_abi(js: u32) -> Self

Recover a Self from Self::Abi. Read more
source§

impl IntoWasmAbi for DeployStrParams

§

type Abi = u32

The wasm ABI type that this converts into when crossing the ABI +boundary.
source§

fn into_abi(self) -> u32

Convert self into Self::Abi so that it can be sent across the wasm +ABI boundary.
source§

impl LongRefFromWasmAbi for DeployStrParams

§

type Abi = u32

Same as RefFromWasmAbi::Abi
§

type Anchor = Ref<'static, DeployStrParams>

Same as RefFromWasmAbi::Anchor
source§

unsafe fn long_ref_from_abi(js: Self::Abi) -> Self::Anchor

Same as RefFromWasmAbi::ref_from_abi
source§

impl OptionFromWasmAbi for DeployStrParams

source§

fn is_none(abi: &Self::Abi) -> bool

Tests whether the argument is a “none” instance. If so it will be +deserialized as None, and otherwise it will be passed to +FromWasmAbi.
source§

impl OptionIntoWasmAbi for DeployStrParams

source§

fn none() -> Self::Abi

Returns an ABI instance indicating “none”, which JS will interpret as +the None branch of this option. Read more
source§

impl RefFromWasmAbi for DeployStrParams

§

type Abi = u32

The wasm ABI type references to Self are recovered from.
§

type Anchor = Ref<'static, DeployStrParams>

The type that holds the reference to Self for the duration of the +invocation of the function that has an &Self parameter. This is +required to ensure that the lifetimes don’t persist beyond one function +call, and so that they remain anonymous.
source§

unsafe fn ref_from_abi(js: Self::Abi) -> Self::Anchor

Recover a Self::Anchor from Self::Abi. Read more
source§

impl RefMutFromWasmAbi for DeployStrParams

§

type Abi = u32

Same as RefFromWasmAbi::Abi
§

type Anchor = RefMut<'static, DeployStrParams>

Same as RefFromWasmAbi::Anchor
source§

unsafe fn ref_mut_from_abi(js: Self::Abi) -> Self::Anchor

Same as RefFromWasmAbi::ref_from_abi
source§

impl WasmDescribe for DeployStrParams

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> DynClone for Twhere + T: Clone,

source§

fn __clone_box(&self, _: Private) -> *mut ()

source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> ReturnWasmAbi for Twhere + T: IntoWasmAbi,

§

type Abi = <T as IntoWasmAbi>::Abi

Same as IntoWasmAbi::Abi
source§

fn return_abi(self) -> <T as ReturnWasmAbi>::Abi

Same as IntoWasmAbi::into_abi, except that it may throw and never +return in the case of Err.
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/types/deploy_params/dictionary_item_str_params/fn.dictionary_item_str_params_to_casper_client.html b/docs/api-rust/casper_rust_wasm_sdk/types/deploy_params/dictionary_item_str_params/fn.dictionary_item_str_params_to_casper_client.html new file mode 100644 index 000000000..7f454456d --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/types/deploy_params/dictionary_item_str_params/fn.dictionary_item_str_params_to_casper_client.html @@ -0,0 +1,3 @@ +dictionary_item_str_params_to_casper_client in casper_rust_wasm_sdk::types::deploy_params::dictionary_item_str_params - Rust
pub fn dictionary_item_str_params_to_casper_client(
+    dictionary_item_params: &DictionaryItemStrParams
+) -> DictionaryItemStrParams<'_>
\ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/types/deploy_params/dictionary_item_str_params/index.html b/docs/api-rust/casper_rust_wasm_sdk/types/deploy_params/dictionary_item_str_params/index.html new file mode 100644 index 000000000..3bfc3dfc3 --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/types/deploy_params/dictionary_item_str_params/index.html @@ -0,0 +1 @@ +casper_rust_wasm_sdk::types::deploy_params::dictionary_item_str_params - Rust

Structs

Functions

\ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/types/deploy_params/dictionary_item_str_params/sidebar-items.js b/docs/api-rust/casper_rust_wasm_sdk/types/deploy_params/dictionary_item_str_params/sidebar-items.js new file mode 100644 index 000000000..834d521f4 --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/types/deploy_params/dictionary_item_str_params/sidebar-items.js @@ -0,0 +1 @@ +window.SIDEBAR_ITEMS = {"fn":["dictionary_item_str_params_to_casper_client"],"struct":["AccountNamedKey","ContractNamedKey","DictionaryItemStrParams","DictionaryVariant","URefVariant"]}; \ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/types/deploy_params/dictionary_item_str_params/struct.AccountNamedKey.html b/docs/api-rust/casper_rust_wasm_sdk/types/deploy_params/dictionary_item_str_params/struct.AccountNamedKey.html new file mode 100644 index 000000000..983c96337 --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/types/deploy_params/dictionary_item_str_params/struct.AccountNamedKey.html @@ -0,0 +1,22 @@ +AccountNamedKey in casper_rust_wasm_sdk::types::deploy_params::dictionary_item_str_params - Rust
pub struct AccountNamedKey { /* private fields */ }

Trait Implementations§

source§

impl Clone for AccountNamedKey

source§

fn clone(&self) -> AccountNamedKey

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for AccountNamedKey

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for AccountNamedKey

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Serialize for AccountNamedKey

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> DynClone for Twhere + T: Clone,

source§

fn __clone_box(&self, _: Private) -> *mut ()

source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/types/deploy_params/dictionary_item_str_params/struct.ContractNamedKey.html b/docs/api-rust/casper_rust_wasm_sdk/types/deploy_params/dictionary_item_str_params/struct.ContractNamedKey.html new file mode 100644 index 000000000..c0f56ab4d --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/types/deploy_params/dictionary_item_str_params/struct.ContractNamedKey.html @@ -0,0 +1,22 @@ +ContractNamedKey in casper_rust_wasm_sdk::types::deploy_params::dictionary_item_str_params - Rust
pub struct ContractNamedKey { /* private fields */ }

Trait Implementations§

source§

impl Clone for ContractNamedKey

source§

fn clone(&self) -> ContractNamedKey

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for ContractNamedKey

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for ContractNamedKey

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Serialize for ContractNamedKey

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> DynClone for Twhere + T: Clone,

source§

fn __clone_box(&self, _: Private) -> *mut ()

source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/types/deploy_params/dictionary_item_str_params/struct.DictionaryItemStrParams.html b/docs/api-rust/casper_rust_wasm_sdk/types/deploy_params/dictionary_item_str_params/struct.DictionaryItemStrParams.html new file mode 100644 index 000000000..57fb459cb --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/types/deploy_params/dictionary_item_str_params/struct.DictionaryItemStrParams.html @@ -0,0 +1,43 @@ +DictionaryItemStrParams in casper_rust_wasm_sdk::types::deploy_params::dictionary_item_str_params - Rust
pub struct DictionaryItemStrParams { /* private fields */ }

Implementations§

source§

impl DictionaryItemStrParams

source

pub fn new() -> Self

source

pub fn set_account_named_key( + &mut self, + key: &str, + dictionary_name: &str, + dictionary_item_key: &str +)

source

pub fn set_contract_named_key( + &mut self, + key: &str, + dictionary_name: &str, + dictionary_item_key: &str +)

source

pub fn set_uref(&mut self, seed_uref: &str, dictionary_item_key: &str)

source

pub fn set_dictionary(&mut self, value: &str)

source§

impl DictionaryItemStrParams

Trait Implementations§

source§

impl Clone for DictionaryItemStrParams

source§

fn clone(&self) -> DictionaryItemStrParams

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for DictionaryItemStrParams

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for DictionaryItemStrParams

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for DictionaryItemStrParams

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl From<DictionaryItemStrParams> for JsValue

source§

fn from(value: DictionaryItemStrParams) -> Self

Converts to this type from the input type.
source§

impl FromWasmAbi for DictionaryItemStrParams

§

type Abi = u32

The wasm ABI type that this converts from when coming back out from the +ABI boundary.
source§

unsafe fn from_abi(js: u32) -> Self

Recover a Self from Self::Abi. Read more
source§

impl IntoWasmAbi for DictionaryItemStrParams

§

type Abi = u32

The wasm ABI type that this converts into when crossing the ABI +boundary.
source§

fn into_abi(self) -> u32

Convert self into Self::Abi so that it can be sent across the wasm +ABI boundary.
source§

impl LongRefFromWasmAbi for DictionaryItemStrParams

§

type Abi = u32

Same as RefFromWasmAbi::Abi
§

type Anchor = Ref<'static, DictionaryItemStrParams>

Same as RefFromWasmAbi::Anchor
source§

unsafe fn long_ref_from_abi(js: Self::Abi) -> Self::Anchor

Same as RefFromWasmAbi::ref_from_abi
source§

impl OptionFromWasmAbi for DictionaryItemStrParams

source§

fn is_none(abi: &Self::Abi) -> bool

Tests whether the argument is a “none” instance. If so it will be +deserialized as None, and otherwise it will be passed to +FromWasmAbi.
source§

impl OptionIntoWasmAbi for DictionaryItemStrParams

source§

fn none() -> Self::Abi

Returns an ABI instance indicating “none”, which JS will interpret as +the None branch of this option. Read more
source§

impl RefFromWasmAbi for DictionaryItemStrParams

§

type Abi = u32

The wasm ABI type references to Self are recovered from.
§

type Anchor = Ref<'static, DictionaryItemStrParams>

The type that holds the reference to Self for the duration of the +invocation of the function that has an &Self parameter. This is +required to ensure that the lifetimes don’t persist beyond one function +call, and so that they remain anonymous.
source§

unsafe fn ref_from_abi(js: Self::Abi) -> Self::Anchor

Recover a Self::Anchor from Self::Abi. Read more
source§

impl RefMutFromWasmAbi for DictionaryItemStrParams

§

type Abi = u32

Same as RefFromWasmAbi::Abi
§

type Anchor = RefMut<'static, DictionaryItemStrParams>

Same as RefFromWasmAbi::Anchor
source§

unsafe fn ref_mut_from_abi(js: Self::Abi) -> Self::Anchor

Same as RefFromWasmAbi::ref_from_abi
source§

impl Serialize for DictionaryItemStrParams

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl WasmDescribe for DictionaryItemStrParams

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> DynClone for Twhere + T: Clone,

source§

fn __clone_box(&self, _: Private) -> *mut ()

source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> ReturnWasmAbi for Twhere + T: IntoWasmAbi,

§

type Abi = <T as IntoWasmAbi>::Abi

Same as IntoWasmAbi::Abi
source§

fn return_abi(self) -> <T as ReturnWasmAbi>::Abi

Same as IntoWasmAbi::into_abi, except that it may throw and never +return in the case of Err.
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/types/deploy_params/dictionary_item_str_params/struct.DictionaryVariant.html b/docs/api-rust/casper_rust_wasm_sdk/types/deploy_params/dictionary_item_str_params/struct.DictionaryVariant.html new file mode 100644 index 000000000..cfdb219fc --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/types/deploy_params/dictionary_item_str_params/struct.DictionaryVariant.html @@ -0,0 +1,22 @@ +DictionaryVariant in casper_rust_wasm_sdk::types::deploy_params::dictionary_item_str_params - Rust
pub struct DictionaryVariant { /* private fields */ }

Trait Implementations§

source§

impl Clone for DictionaryVariant

source§

fn clone(&self) -> DictionaryVariant

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for DictionaryVariant

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for DictionaryVariant

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Serialize for DictionaryVariant

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> DynClone for Twhere + T: Clone,

source§

fn __clone_box(&self, _: Private) -> *mut ()

source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/types/deploy_params/dictionary_item_str_params/struct.URefVariant.html b/docs/api-rust/casper_rust_wasm_sdk/types/deploy_params/dictionary_item_str_params/struct.URefVariant.html new file mode 100644 index 000000000..df481c512 --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/types/deploy_params/dictionary_item_str_params/struct.URefVariant.html @@ -0,0 +1,22 @@ +URefVariant in casper_rust_wasm_sdk::types::deploy_params::dictionary_item_str_params - Rust
pub struct URefVariant { /* private fields */ }

Trait Implementations§

source§

impl Clone for URefVariant

source§

fn clone(&self) -> URefVariant

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for URefVariant

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for URefVariant

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Serialize for URefVariant

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> DynClone for Twhere + T: Clone,

source§

fn __clone_box(&self, _: Private) -> *mut ()

source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/types/deploy_params/index.html b/docs/api-rust/casper_rust_wasm_sdk/types/deploy_params/index.html new file mode 100644 index 000000000..5f17048ff --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/types/deploy_params/index.html @@ -0,0 +1 @@ +casper_rust_wasm_sdk::types::deploy_params - Rust

Modules

\ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/types/deploy_params/payment_str_params/fn.payment_str_params_to_casper_client.html b/docs/api-rust/casper_rust_wasm_sdk/types/deploy_params/payment_str_params/fn.payment_str_params_to_casper_client.html new file mode 100644 index 000000000..1d86aa3aa --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/types/deploy_params/payment_str_params/fn.payment_str_params_to_casper_client.html @@ -0,0 +1,3 @@ +payment_str_params_to_casper_client in casper_rust_wasm_sdk::types::deploy_params::payment_str_params - Rust
pub fn payment_str_params_to_casper_client(
+    payment_params: &PaymentStrParams
+) -> PaymentStrParams<'_>
\ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/types/deploy_params/payment_str_params/index.html b/docs/api-rust/casper_rust_wasm_sdk/types/deploy_params/payment_str_params/index.html new file mode 100644 index 000000000..588570d37 --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/types/deploy_params/payment_str_params/index.html @@ -0,0 +1 @@ +casper_rust_wasm_sdk::types::deploy_params::payment_str_params - Rust

Structs

Functions

\ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/types/deploy_params/payment_str_params/sidebar-items.js b/docs/api-rust/casper_rust_wasm_sdk/types/deploy_params/payment_str_params/sidebar-items.js new file mode 100644 index 000000000..5eeb9f32e --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/types/deploy_params/payment_str_params/sidebar-items.js @@ -0,0 +1 @@ +window.SIDEBAR_ITEMS = {"fn":["payment_str_params_to_casper_client"],"struct":["PaymentStrParams"]}; \ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/types/deploy_params/payment_str_params/struct.PaymentStrParams.html b/docs/api-rust/casper_rust_wasm_sdk/types/deploy_params/payment_str_params/struct.PaymentStrParams.html new file mode 100644 index 000000000..952d9148b --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/types/deploy_params/payment_str_params/struct.PaymentStrParams.html @@ -0,0 +1,42 @@ +PaymentStrParams in casper_rust_wasm_sdk::types::deploy_params::payment_str_params - Rust
pub struct PaymentStrParams { /* private fields */ }

Implementations§

source§

impl PaymentStrParams

source

pub fn new( + payment_amount: Option<String>, + payment_hash: Option<String>, + payment_name: Option<String>, + payment_package_hash: Option<String>, + payment_package_name: Option<String>, + payment_path: Option<String>, + payment_args_simple: Option<Array>, + payment_args_json: Option<String>, + payment_args_complex: Option<String>, + payment_version: Option<String>, + payment_entry_point: Option<String> +) -> Self

source

pub fn payment_amount(&self) -> Option<String>

source

pub fn set_payment_amount(&self, payment_amount: &str)

source

pub fn payment_hash(&self) -> Option<String>

source

pub fn set_payment_hash(&self, payment_hash: &str)

source

pub fn payment_name(&self) -> Option<String>

source

pub fn set_payment_name(&self, payment_name: &str)

source

pub fn payment_package_hash(&self) -> Option<String>

source

pub fn set_payment_package_hash(&self, payment_package_hash: &str)

source

pub fn payment_package_name(&self) -> Option<String>

source

pub fn set_payment_package_name(&self, payment_package_name: &str)

source

pub fn payment_path(&self) -> Option<String>

source

pub fn set_payment_path(&self, payment_path: &str)

source

pub fn payment_args_simple(&self) -> Option<Array>

source

pub fn set_payment_args_simple(&self, payment_args_simple: Array)

source

pub fn payment_args_json(&self) -> Option<String>

source

pub fn set_payment_args_json(&self, payment_args_json: &str)

source

pub fn payment_args_complex(&self) -> Option<String>

source

pub fn set_payment_args_complex(&self, payment_args_complex: &str)

source

pub fn payment_version(&self) -> Option<String>

source

pub fn set_payment_version(&self, payment_version: &str)

source

pub fn payment_entry_point(&self) -> Option<String>

source

pub fn set_payment_entry_point(&self, payment_entry_point: &str)

Trait Implementations§

source§

impl Clone for PaymentStrParams

source§

fn clone(&self) -> PaymentStrParams

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for PaymentStrParams

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for PaymentStrParams

source§

fn default() -> PaymentStrParams

Returns the “default value” for a type. Read more
source§

impl From<PaymentStrParams> for JsValue

source§

fn from(value: PaymentStrParams) -> Self

Converts to this type from the input type.
source§

impl FromWasmAbi for PaymentStrParams

§

type Abi = u32

The wasm ABI type that this converts from when coming back out from the +ABI boundary.
source§

unsafe fn from_abi(js: u32) -> Self

Recover a Self from Self::Abi. Read more
source§

impl IntoWasmAbi for PaymentStrParams

§

type Abi = u32

The wasm ABI type that this converts into when crossing the ABI +boundary.
source§

fn into_abi(self) -> u32

Convert self into Self::Abi so that it can be sent across the wasm +ABI boundary.
source§

impl LongRefFromWasmAbi for PaymentStrParams

§

type Abi = u32

Same as RefFromWasmAbi::Abi
§

type Anchor = Ref<'static, PaymentStrParams>

Same as RefFromWasmAbi::Anchor
source§

unsafe fn long_ref_from_abi(js: Self::Abi) -> Self::Anchor

Same as RefFromWasmAbi::ref_from_abi
source§

impl OptionFromWasmAbi for PaymentStrParams

source§

fn is_none(abi: &Self::Abi) -> bool

Tests whether the argument is a “none” instance. If so it will be +deserialized as None, and otherwise it will be passed to +FromWasmAbi.
source§

impl OptionIntoWasmAbi for PaymentStrParams

source§

fn none() -> Self::Abi

Returns an ABI instance indicating “none”, which JS will interpret as +the None branch of this option. Read more
source§

impl RefFromWasmAbi for PaymentStrParams

§

type Abi = u32

The wasm ABI type references to Self are recovered from.
§

type Anchor = Ref<'static, PaymentStrParams>

The type that holds the reference to Self for the duration of the +invocation of the function that has an &Self parameter. This is +required to ensure that the lifetimes don’t persist beyond one function +call, and so that they remain anonymous.
source§

unsafe fn ref_from_abi(js: Self::Abi) -> Self::Anchor

Recover a Self::Anchor from Self::Abi. Read more
source§

impl RefMutFromWasmAbi for PaymentStrParams

§

type Abi = u32

Same as RefFromWasmAbi::Abi
§

type Anchor = RefMut<'static, PaymentStrParams>

Same as RefFromWasmAbi::Anchor
source§

unsafe fn ref_mut_from_abi(js: Self::Abi) -> Self::Anchor

Same as RefFromWasmAbi::ref_from_abi
source§

impl WasmDescribe for PaymentStrParams

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> DynClone for Twhere + T: Clone,

source§

fn __clone_box(&self, _: Private) -> *mut ()

source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> ReturnWasmAbi for Twhere + T: IntoWasmAbi,

§

type Abi = <T as IntoWasmAbi>::Abi

Same as IntoWasmAbi::Abi
source§

fn return_abi(self) -> <T as ReturnWasmAbi>::Abi

Same as IntoWasmAbi::into_abi, except that it may throw and never +return in the case of Err.
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/types/deploy_params/session_str_params/fn.session_str_params_to_casper_client.html b/docs/api-rust/casper_rust_wasm_sdk/types/deploy_params/session_str_params/fn.session_str_params_to_casper_client.html new file mode 100644 index 000000000..9d21c3c76 --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/types/deploy_params/session_str_params/fn.session_str_params_to_casper_client.html @@ -0,0 +1,3 @@ +session_str_params_to_casper_client in casper_rust_wasm_sdk::types::deploy_params::session_str_params - Rust
pub fn session_str_params_to_casper_client(
+    session_params: &SessionStrParams
+) -> SessionStrParams<'_>
\ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/types/deploy_params/session_str_params/index.html b/docs/api-rust/casper_rust_wasm_sdk/types/deploy_params/session_str_params/index.html new file mode 100644 index 000000000..aeabda0a5 --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/types/deploy_params/session_str_params/index.html @@ -0,0 +1 @@ +casper_rust_wasm_sdk::types::deploy_params::session_str_params - Rust

Structs

Functions

\ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/types/deploy_params/session_str_params/sidebar-items.js b/docs/api-rust/casper_rust_wasm_sdk/types/deploy_params/session_str_params/sidebar-items.js new file mode 100644 index 000000000..674f309a9 --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/types/deploy_params/session_str_params/sidebar-items.js @@ -0,0 +1 @@ +window.SIDEBAR_ITEMS = {"fn":["session_str_params_to_casper_client"],"struct":["SessionStrParams"]}; \ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/types/deploy_params/session_str_params/struct.SessionStrParams.html b/docs/api-rust/casper_rust_wasm_sdk/types/deploy_params/session_str_params/struct.SessionStrParams.html new file mode 100644 index 000000000..d4168f466 --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/types/deploy_params/session_str_params/struct.SessionStrParams.html @@ -0,0 +1,43 @@ +SessionStrParams in casper_rust_wasm_sdk::types::deploy_params::session_str_params - Rust
pub struct SessionStrParams { /* private fields */ }

Implementations§

source§

impl SessionStrParams

source

pub fn new( + session_hash: Option<String>, + session_name: Option<String>, + session_package_hash: Option<String>, + session_package_name: Option<String>, + session_path: Option<String>, + session_bytes: Option<Bytes>, + session_args_simple: Option<Array>, + session_args_json: Option<String>, + session_args_complex: Option<String>, + session_version: Option<String>, + session_entry_point: Option<String>, + is_session_transfer: Option<bool> +) -> Self

source

pub fn session_hash(&self) -> Option<String>

source

pub fn set_session_hash(&self, session_hash: &str)

source

pub fn session_name(&self) -> Option<String>

source

pub fn set_session_name(&self, session_name: &str)

source

pub fn session_package_hash(&self) -> Option<String>

source

pub fn set_session_package_hash(&self, session_package_hash: &str)

source

pub fn session_package_name(&self) -> Option<String>

source

pub fn set_session_package_name(&self, session_package_name: &str)

source

pub fn session_path(&self) -> Option<String>

source

pub fn set_session_path(&self, session_path: &str)

source

pub fn session_bytes(&self) -> Option<Bytes>

source

pub fn set_session_bytes(&self, session_bytes: Bytes)

source

pub fn session_args_simple(&self) -> Option<ArgsSimple>

source

pub fn set_session_args_simple(&mut self, session_args_simple: Array)

source

pub fn session_args_json(&self) -> Option<String>

source

pub fn set_session_args_json(&self, session_args_json: &str)

source

pub fn session_args_complex(&self) -> Option<String>

source

pub fn set_session_args_complex(&self, session_args_complex: &str)

source

pub fn session_version(&self) -> Option<String>

source

pub fn set_session_version(&self, session_version: &str)

source

pub fn session_entry_point(&self) -> Option<String>

source

pub fn set_session_entry_point(&self, session_entry_point: &str)

source

pub fn is_session_transfer(&self) -> Option<bool>

source

pub fn set_is_session_transfer(&self, is_session_transfer: bool)

source§

impl SessionStrParams

source

pub fn set_session_args(&mut self, session_args_simple: Vec<String>)

Trait Implementations§

source§

impl Clone for SessionStrParams

source§

fn clone(&self) -> SessionStrParams

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for SessionStrParams

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for SessionStrParams

source§

fn default() -> SessionStrParams

Returns the “default value” for a type. Read more
source§

impl From<SessionStrParams> for JsValue

source§

fn from(value: SessionStrParams) -> Self

Converts to this type from the input type.
source§

impl FromWasmAbi for SessionStrParams

§

type Abi = u32

The wasm ABI type that this converts from when coming back out from the +ABI boundary.
source§

unsafe fn from_abi(js: u32) -> Self

Recover a Self from Self::Abi. Read more
source§

impl IntoWasmAbi for SessionStrParams

§

type Abi = u32

The wasm ABI type that this converts into when crossing the ABI +boundary.
source§

fn into_abi(self) -> u32

Convert self into Self::Abi so that it can be sent across the wasm +ABI boundary.
source§

impl LongRefFromWasmAbi for SessionStrParams

§

type Abi = u32

Same as RefFromWasmAbi::Abi
§

type Anchor = Ref<'static, SessionStrParams>

Same as RefFromWasmAbi::Anchor
source§

unsafe fn long_ref_from_abi(js: Self::Abi) -> Self::Anchor

Same as RefFromWasmAbi::ref_from_abi
source§

impl OptionFromWasmAbi for SessionStrParams

source§

fn is_none(abi: &Self::Abi) -> bool

Tests whether the argument is a “none” instance. If so it will be +deserialized as None, and otherwise it will be passed to +FromWasmAbi.
source§

impl OptionIntoWasmAbi for SessionStrParams

source§

fn none() -> Self::Abi

Returns an ABI instance indicating “none”, which JS will interpret as +the None branch of this option. Read more
source§

impl RefFromWasmAbi for SessionStrParams

§

type Abi = u32

The wasm ABI type references to Self are recovered from.
§

type Anchor = Ref<'static, SessionStrParams>

The type that holds the reference to Self for the duration of the +invocation of the function that has an &Self parameter. This is +required to ensure that the lifetimes don’t persist beyond one function +call, and so that they remain anonymous.
source§

unsafe fn ref_from_abi(js: Self::Abi) -> Self::Anchor

Recover a Self::Anchor from Self::Abi. Read more
source§

impl RefMutFromWasmAbi for SessionStrParams

§

type Abi = u32

Same as RefFromWasmAbi::Abi
§

type Anchor = RefMut<'static, SessionStrParams>

Same as RefFromWasmAbi::Anchor
source§

unsafe fn ref_mut_from_abi(js: Self::Abi) -> Self::Anchor

Same as RefFromWasmAbi::ref_from_abi
source§

impl WasmDescribe for SessionStrParams

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> DynClone for Twhere + T: Clone,

source§

fn __clone_box(&self, _: Private) -> *mut ()

source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> ReturnWasmAbi for Twhere + T: IntoWasmAbi,

§

type Abi = <T as IntoWasmAbi>::Abi

Same as IntoWasmAbi::Abi
source§

fn return_abi(self) -> <T as ReturnWasmAbi>::Abi

Same as IntoWasmAbi::into_abi, except that it may throw and never +return in the case of Err.
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/types/deploy_params/sidebar-items.js b/docs/api-rust/casper_rust_wasm_sdk/types/deploy_params/sidebar-items.js new file mode 100644 index 000000000..20294101a --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/types/deploy_params/sidebar-items.js @@ -0,0 +1 @@ +window.SIDEBAR_ITEMS = {"mod":["args_simple","deploy_str_params","dictionary_item_str_params","payment_str_params","session_str_params"]}; \ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/types/dictionary_item_identifier/index.html b/docs/api-rust/casper_rust_wasm_sdk/types/dictionary_item_identifier/index.html new file mode 100644 index 000000000..2840146e6 --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/types/dictionary_item_identifier/index.html @@ -0,0 +1 @@ +casper_rust_wasm_sdk::types::dictionary_item_identifier - Rust

Structs

\ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/types/dictionary_item_identifier/sidebar-items.js b/docs/api-rust/casper_rust_wasm_sdk/types/dictionary_item_identifier/sidebar-items.js new file mode 100644 index 000000000..d54b63555 --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/types/dictionary_item_identifier/sidebar-items.js @@ -0,0 +1 @@ +window.SIDEBAR_ITEMS = {"struct":["DictionaryItemIdentifier"]}; \ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/types/dictionary_item_identifier/struct.DictionaryItemIdentifier.html b/docs/api-rust/casper_rust_wasm_sdk/types/dictionary_item_identifier/struct.DictionaryItemIdentifier.html new file mode 100644 index 000000000..0d7705699 --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/types/dictionary_item_identifier/struct.DictionaryItemIdentifier.html @@ -0,0 +1,46 @@ +DictionaryItemIdentifier in casper_rust_wasm_sdk::types::dictionary_item_identifier - Rust
pub struct DictionaryItemIdentifier(/* private fields */);

Implementations§

source§

impl DictionaryItemIdentifier

source

pub fn new_from_account_info( + account_hash: &str, + dictionary_name: &str, + dictionary_item_key: &str +) -> Result<DictionaryItemIdentifier, JsValue>

source

pub fn new_from_contract_info( + contract_addr: &str, + dictionary_name: &str, + dictionary_item_key: &str +) -> Result<DictionaryItemIdentifier, JsValue>

source

pub fn new_from_seed_uref( + seed_uref: &str, + dictionary_item_key: &str +) -> Result<DictionaryItemIdentifier, JsValue>

source

pub fn new_from_dictionary_key( + dictionary_key: &str +) -> Result<DictionaryItemIdentifier, JsValue>

Trait Implementations§

source§

impl Clone for DictionaryItemIdentifier

source§

fn clone(&self) -> DictionaryItemIdentifier

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for DictionaryItemIdentifier

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for DictionaryItemIdentifier

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl From<DictionaryItemIdentifier> for DictionaryItemIdentifier

source§

fn from(dictionary_item_identifier: DictionaryItemIdentifier) -> Self

Converts to this type from the input type.
source§

impl From<DictionaryItemIdentifier> for DictionaryItemIdentifier

source§

fn from(identifier: _DictionaryItemIdentifier) -> Self

Converts to this type from the input type.
source§

impl From<DictionaryItemIdentifier> for JsValue

source§

fn from(value: DictionaryItemIdentifier) -> Self

Converts to this type from the input type.
source§

impl FromWasmAbi for DictionaryItemIdentifier

§

type Abi = u32

The wasm ABI type that this converts from when coming back out from the +ABI boundary.
source§

unsafe fn from_abi(js: u32) -> Self

Recover a Self from Self::Abi. Read more
source§

impl IntoWasmAbi for DictionaryItemIdentifier

§

type Abi = u32

The wasm ABI type that this converts into when crossing the ABI +boundary.
source§

fn into_abi(self) -> u32

Convert self into Self::Abi so that it can be sent across the wasm +ABI boundary.
source§

impl LongRefFromWasmAbi for DictionaryItemIdentifier

§

type Abi = u32

Same as RefFromWasmAbi::Abi
§

type Anchor = Ref<'static, DictionaryItemIdentifier>

Same as RefFromWasmAbi::Anchor
source§

unsafe fn long_ref_from_abi(js: Self::Abi) -> Self::Anchor

Same as RefFromWasmAbi::ref_from_abi
source§

impl OptionFromWasmAbi for DictionaryItemIdentifier

source§

fn is_none(abi: &Self::Abi) -> bool

Tests whether the argument is a “none” instance. If so it will be +deserialized as None, and otherwise it will be passed to +FromWasmAbi.
source§

impl OptionIntoWasmAbi for DictionaryItemIdentifier

source§

fn none() -> Self::Abi

Returns an ABI instance indicating “none”, which JS will interpret as +the None branch of this option. Read more
source§

impl RefFromWasmAbi for DictionaryItemIdentifier

§

type Abi = u32

The wasm ABI type references to Self are recovered from.
§

type Anchor = Ref<'static, DictionaryItemIdentifier>

The type that holds the reference to Self for the duration of the +invocation of the function that has an &Self parameter. This is +required to ensure that the lifetimes don’t persist beyond one function +call, and so that they remain anonymous.
source§

unsafe fn ref_from_abi(js: Self::Abi) -> Self::Anchor

Recover a Self::Anchor from Self::Abi. Read more
source§

impl RefMutFromWasmAbi for DictionaryItemIdentifier

§

type Abi = u32

Same as RefFromWasmAbi::Abi
§

type Anchor = RefMut<'static, DictionaryItemIdentifier>

Same as RefFromWasmAbi::Anchor
source§

unsafe fn ref_mut_from_abi(js: Self::Abi) -> Self::Anchor

Same as RefFromWasmAbi::ref_from_abi
source§

impl Serialize for DictionaryItemIdentifier

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl WasmDescribe for DictionaryItemIdentifier

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> DynClone for Twhere + T: Clone,

source§

fn __clone_box(&self, _: Private) -> *mut ()

source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> ReturnWasmAbi for Twhere + T: IntoWasmAbi,

§

type Abi = <T as IntoWasmAbi>::Abi

Same as IntoWasmAbi::Abi
source§

fn return_abi(self) -> <T as ReturnWasmAbi>::Abi

Same as IntoWasmAbi::into_abi, except that it may throw and never +return in the case of Err.
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/types/digest/index.html b/docs/api-rust/casper_rust_wasm_sdk/types/digest/index.html new file mode 100644 index 000000000..28e7b9608 --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/types/digest/index.html @@ -0,0 +1 @@ +casper_rust_wasm_sdk::types::digest - Rust

Structs

Traits

\ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/types/digest/sidebar-items.js b/docs/api-rust/casper_rust_wasm_sdk/types/digest/sidebar-items.js new file mode 100644 index 000000000..9e67f4c7c --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/types/digest/sidebar-items.js @@ -0,0 +1 @@ +window.SIDEBAR_ITEMS = {"struct":["Digest"],"trait":["ToDigest"]}; \ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/types/digest/struct.Digest.html b/docs/api-rust/casper_rust_wasm_sdk/types/digest/struct.Digest.html new file mode 100644 index 000000000..aff48c4f0 --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/types/digest/struct.Digest.html @@ -0,0 +1,41 @@ +Digest in casper_rust_wasm_sdk::types::digest - Rust
pub struct Digest(/* private fields */);

Implementations§

source§

impl Digest

source

pub fn new_js_alias(digest_hex_str: &str) -> Result<Digest, JsValue>

source

pub fn from_string(digest_hex_str: &str) -> Result<Digest, JsValue>

source§

impl Digest

source

pub fn new(digest_hex_str: &str) -> Result<Digest, SdkError>

source

pub fn from_digest(bytes: Vec<u8>) -> Result<Digest, SdkError>

Trait Implementations§

source§

impl AsRef<[u8]> for Digest

source§

fn as_ref(&self) -> &[u8]

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl Clone for Digest

source§

fn clone(&self) -> Digest

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Digest

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for Digest

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl From<&str> for Digest

source§

fn from(s: &str) -> Self

Converts to this type from the input type.
source§

impl From<[u8; 32]> for Digest

source§

fn from(bytes: [u8; 32]) -> Self

Converts to this type from the input type.
source§

impl From<Digest> for BlockHash

source§

fn from(digest: Digest) -> Self

Converts to this type from the input type.
source§

impl From<Digest> for DeployHash

source§

fn from(digest: Digest) -> Self

Converts to this type from the input type.
source§

impl From<Digest> for Digest

source§

fn from(digest: _Digest) -> Self

Converts to this type from the input type.
source§

impl From<Digest> for Digest

source§

fn from(digest: Digest) -> Self

Converts to this type from the input type.
source§

impl From<Digest> for JsValue

source§

fn from(value: Digest) -> Self

Converts to this type from the input type.
source§

impl FromBytes for Digest

source§

fn from_bytes(bytes: &[u8]) -> Result<(Self, &[u8]), Error>

Deserializes the slice into Self.
source§

fn from_vec(bytes: Vec<u8, Global>) -> Result<(Self, Vec<u8, Global>), Error>

Deserializes the Vec<u8> into Self.
source§

impl FromWasmAbi for Digest

§

type Abi = u32

The wasm ABI type that this converts from when coming back out from the +ABI boundary.
source§

unsafe fn from_abi(js: u32) -> Self

Recover a Self from Self::Abi. Read more
source§

impl IntoWasmAbi for Digest

§

type Abi = u32

The wasm ABI type that this converts into when crossing the ABI +boundary.
source§

fn into_abi(self) -> u32

Convert self into Self::Abi so that it can be sent across the wasm +ABI boundary.
source§

impl LongRefFromWasmAbi for Digest

§

type Abi = u32

Same as RefFromWasmAbi::Abi
§

type Anchor = Ref<'static, Digest>

Same as RefFromWasmAbi::Anchor
source§

unsafe fn long_ref_from_abi(js: Self::Abi) -> Self::Anchor

Same as RefFromWasmAbi::ref_from_abi
source§

impl OptionFromWasmAbi for Digest

source§

fn is_none(abi: &Self::Abi) -> bool

Tests whether the argument is a “none” instance. If so it will be +deserialized as None, and otherwise it will be passed to +FromWasmAbi.
source§

impl OptionIntoWasmAbi for Digest

source§

fn none() -> Self::Abi

Returns an ABI instance indicating “none”, which JS will interpret as +the None branch of this option. Read more
source§

impl RefFromWasmAbi for Digest

§

type Abi = u32

The wasm ABI type references to Self are recovered from.
§

type Anchor = Ref<'static, Digest>

The type that holds the reference to Self for the duration of the +invocation of the function that has an &Self parameter. This is +required to ensure that the lifetimes don’t persist beyond one function +call, and so that they remain anonymous.
source§

unsafe fn ref_from_abi(js: Self::Abi) -> Self::Anchor

Recover a Self::Anchor from Self::Abi. Read more
source§

impl RefMutFromWasmAbi for Digest

§

type Abi = u32

Same as RefFromWasmAbi::Abi
§

type Anchor = RefMut<'static, Digest>

Same as RefFromWasmAbi::Anchor
source§

unsafe fn ref_mut_from_abi(js: Self::Abi) -> Self::Anchor

Same as RefFromWasmAbi::ref_from_abi
source§

impl Serialize for Digest

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl ToBytes for Digest

source§

fn to_bytes(&self) -> Result<Vec<u8>, Error>

Serializes &self to a Vec<u8>.
source§

fn serialized_length(&self) -> usize

Returns the length of the Vec<u8> which would be returned from a successful call to +to_bytes() or into_bytes(). The data is not actually serialized, so this call is +relatively cheap.
source§

fn write_bytes(&self, bytes: &mut Vec<u8>) -> Result<(), Error>

Writes &self into a mutable writer.
source§

fn into_bytes(self) -> Result<Vec<u8, Global>, Error>where + Self: Sized,

Consumes self and serializes to a Vec<u8>.
source§

impl ToDigest for Digest

source§

impl ToString for Digest

source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl WasmDescribe for Digest

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> DynClone for Twhere + T: Clone,

source§

fn __clone_box(&self, _: Private) -> *mut ()

source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> ReturnWasmAbi for Twhere + T: IntoWasmAbi,

§

type Abi = <T as IntoWasmAbi>::Abi

Same as IntoWasmAbi::Abi
source§

fn return_abi(self) -> <T as ReturnWasmAbi>::Abi

Same as IntoWasmAbi::into_abi, except that it may throw and never +return in the case of Err.
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToHex for Twhere + T: AsRef<[u8]>,

source§

fn encode_hex<U>(&self) -> Uwhere + U: FromIterator<char>,

Encode the hex strict representing self into the result. Lower case +letters are used (e.g. f9b4ca)
source§

fn encode_hex_upper<U>(&self) -> Uwhere + U: FromIterator<char>,

Encode the hex strict representing self into the result. Upper case +letters are used (e.g. F9B4CA)
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/types/digest/trait.ToDigest.html b/docs/api-rust/casper_rust_wasm_sdk/types/digest/trait.ToDigest.html new file mode 100644 index 000000000..bc5c85b0a --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/types/digest/trait.ToDigest.html @@ -0,0 +1,5 @@ +ToDigest in casper_rust_wasm_sdk::types::digest - Rust
pub trait ToDigest {
+    // Required methods
+    fn to_digest(&self) -> Digest;
+    fn is_empty(&self) -> bool;
+}

Required Methods§

source

fn to_digest(&self) -> Digest

source

fn is_empty(&self) -> bool

Implementations on Foreign Types§

source§

impl ToDigest for &str

Implementors§

\ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/types/era_id/index.html b/docs/api-rust/casper_rust_wasm_sdk/types/era_id/index.html new file mode 100644 index 000000000..537104b00 --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/types/era_id/index.html @@ -0,0 +1 @@ +casper_rust_wasm_sdk::types::era_id - Rust

Structs

\ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/types/era_id/sidebar-items.js b/docs/api-rust/casper_rust_wasm_sdk/types/era_id/sidebar-items.js new file mode 100644 index 000000000..3069160a5 --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/types/era_id/sidebar-items.js @@ -0,0 +1 @@ +window.SIDEBAR_ITEMS = {"struct":["EraId"]}; \ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/types/era_id/struct.EraId.html b/docs/api-rust/casper_rust_wasm_sdk/types/era_id/struct.EraId.html new file mode 100644 index 000000000..339da266f --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/types/era_id/struct.EraId.html @@ -0,0 +1,45 @@ +EraId in casper_rust_wasm_sdk::types::era_id - Rust
pub struct EraId(/* private fields */);

Implementations§

source§

impl EraId

source

pub fn new(value: u64) -> EraId

source

pub fn value(&self) -> u64

Trait Implementations§

source§

impl Clone for EraId

source§

fn clone(&self) -> EraId

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for EraId

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for EraId

source§

fn default() -> EraId

Returns the “default value” for a type. Read more
source§

impl From<EraId> for EraId

source§

fn from(hash_addr: EraId) -> Self

Converts to this type from the input type.
source§

impl From<EraId> for EraId

source§

fn from(hash_addr: _EraId) -> Self

Converts to this type from the input type.
source§

impl From<EraId> for JsValue

source§

fn from(value: EraId) -> Self

Converts to this type from the input type.
source§

impl FromWasmAbi for EraId

§

type Abi = u32

The wasm ABI type that this converts from when coming back out from the +ABI boundary.
source§

unsafe fn from_abi(js: u32) -> Self

Recover a Self from Self::Abi. Read more
source§

impl IntoWasmAbi for EraId

§

type Abi = u32

The wasm ABI type that this converts into when crossing the ABI +boundary.
source§

fn into_abi(self) -> u32

Convert self into Self::Abi so that it can be sent across the wasm +ABI boundary.
source§

impl LongRefFromWasmAbi for EraId

§

type Abi = u32

Same as RefFromWasmAbi::Abi
§

type Anchor = Ref<'static, EraId>

Same as RefFromWasmAbi::Anchor
source§

unsafe fn long_ref_from_abi(js: Self::Abi) -> Self::Anchor

Same as RefFromWasmAbi::ref_from_abi
source§

impl OptionFromWasmAbi for EraId

source§

fn is_none(abi: &Self::Abi) -> bool

Tests whether the argument is a “none” instance. If so it will be +deserialized as None, and otherwise it will be passed to +FromWasmAbi.
source§

impl OptionIntoWasmAbi for EraId

source§

fn none() -> Self::Abi

Returns an ABI instance indicating “none”, which JS will interpret as +the None branch of this option. Read more
source§

impl Ord for EraId

source§

fn cmp(&self, other: &EraId) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Selfwhere + Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Selfwhere + Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Selfwhere + Self: Sized + PartialOrd<Self>,

Restrict a value to a certain interval. Read more
source§

impl PartialEq<EraId> for EraId

source§

fn eq(&self, other: &EraId) -> bool

This method tests for self and other values to be equal, and is used +by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
source§

impl PartialOrd<EraId> for EraId

source§

fn partial_cmp(&self, other: &EraId) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= +operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= +operator. Read more
source§

impl RefFromWasmAbi for EraId

§

type Abi = u32

The wasm ABI type references to Self are recovered from.
§

type Anchor = Ref<'static, EraId>

The type that holds the reference to Self for the duration of the +invocation of the function that has an &Self parameter. This is +required to ensure that the lifetimes don’t persist beyond one function +call, and so that they remain anonymous.
source§

unsafe fn ref_from_abi(js: Self::Abi) -> Self::Anchor

Recover a Self::Anchor from Self::Abi. Read more
source§

impl RefMutFromWasmAbi for EraId

§

type Abi = u32

Same as RefFromWasmAbi::Abi
§

type Anchor = RefMut<'static, EraId>

Same as RefFromWasmAbi::Anchor
source§

unsafe fn ref_mut_from_abi(js: Self::Abi) -> Self::Anchor

Same as RefFromWasmAbi::ref_from_abi
source§

impl WasmDescribe for EraId

source§

impl Copy for EraId

source§

impl Eq for EraId

source§

impl StructuralEq for EraId

source§

impl StructuralPartialEq for EraId

Auto Trait Implementations§

§

impl RefUnwindSafe for EraId

§

impl Send for EraId

§

impl Sync for EraId

§

impl Unpin for EraId

§

impl UnwindSafe for EraId

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<Q, K> Comparable<K> for Qwhere + Q: Ord + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn compare(&self, key: &K) -> Ordering

Compare self to key and return their ordering.
source§

impl<T> DynClone for Twhere + T: Clone,

source§

fn __clone_box(&self, _: Private) -> *mut ()

§

impl<Q, K> Equivalent<K> for Qwhere + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Qwhere + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
source§

impl<Q, K> Equivalent<K> for Qwhere + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> ReturnWasmAbi for Twhere + T: IntoWasmAbi,

§

type Abi = <T as IntoWasmAbi>::Abi

Same as IntoWasmAbi::Abi
source§

fn return_abi(self) -> <T as ReturnWasmAbi>::Abi

Same as IntoWasmAbi::into_abi, except that it may throw and never +return in the case of Err.
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/types/global_state_identifier/index.html b/docs/api-rust/casper_rust_wasm_sdk/types/global_state_identifier/index.html new file mode 100644 index 000000000..380ff9858 --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/types/global_state_identifier/index.html @@ -0,0 +1 @@ +casper_rust_wasm_sdk::types::global_state_identifier - Rust

Structs

\ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/types/global_state_identifier/sidebar-items.js b/docs/api-rust/casper_rust_wasm_sdk/types/global_state_identifier/sidebar-items.js new file mode 100644 index 000000000..d5571eb63 --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/types/global_state_identifier/sidebar-items.js @@ -0,0 +1 @@ +window.SIDEBAR_ITEMS = {"struct":["GlobalStateIdentifier"]}; \ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/types/global_state_identifier/struct.GlobalStateIdentifier.html b/docs/api-rust/casper_rust_wasm_sdk/types/global_state_identifier/struct.GlobalStateIdentifier.html new file mode 100644 index 000000000..04a65bc89 --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/types/global_state_identifier/struct.GlobalStateIdentifier.html @@ -0,0 +1,35 @@ +GlobalStateIdentifier in casper_rust_wasm_sdk::types::global_state_identifier - Rust
pub struct GlobalStateIdentifier(/* private fields */);

Implementations§

Trait Implementations§

source§

impl Clone for GlobalStateIdentifier

source§

fn clone(&self) -> GlobalStateIdentifier

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for GlobalStateIdentifier

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for GlobalStateIdentifier

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl From<GlobalStateIdentifier> for GlobalStateIdentifier

source§

fn from(global_state_identifier: GlobalStateIdentifier) -> Self

Converts to this type from the input type.
source§

impl From<GlobalStateIdentifier> for GlobalStateIdentifier

source§

fn from(identifier: _GlobalStateIdentifier) -> Self

Converts to this type from the input type.
source§

impl From<GlobalStateIdentifier> for JsValue

source§

fn from(value: GlobalStateIdentifier) -> Self

Converts to this type from the input type.
source§

impl FromWasmAbi for GlobalStateIdentifier

§

type Abi = u32

The wasm ABI type that this converts from when coming back out from the +ABI boundary.
source§

unsafe fn from_abi(js: u32) -> Self

Recover a Self from Self::Abi. Read more
source§

impl IntoWasmAbi for GlobalStateIdentifier

§

type Abi = u32

The wasm ABI type that this converts into when crossing the ABI +boundary.
source§

fn into_abi(self) -> u32

Convert self into Self::Abi so that it can be sent across the wasm +ABI boundary.
source§

impl LongRefFromWasmAbi for GlobalStateIdentifier

§

type Abi = u32

Same as RefFromWasmAbi::Abi
§

type Anchor = Ref<'static, GlobalStateIdentifier>

Same as RefFromWasmAbi::Anchor
source§

unsafe fn long_ref_from_abi(js: Self::Abi) -> Self::Anchor

Same as RefFromWasmAbi::ref_from_abi
source§

impl OptionFromWasmAbi for GlobalStateIdentifier

source§

fn is_none(abi: &Self::Abi) -> bool

Tests whether the argument is a “none” instance. If so it will be +deserialized as None, and otherwise it will be passed to +FromWasmAbi.
source§

impl OptionIntoWasmAbi for GlobalStateIdentifier

source§

fn none() -> Self::Abi

Returns an ABI instance indicating “none”, which JS will interpret as +the None branch of this option. Read more
source§

impl RefFromWasmAbi for GlobalStateIdentifier

§

type Abi = u32

The wasm ABI type references to Self are recovered from.
§

type Anchor = Ref<'static, GlobalStateIdentifier>

The type that holds the reference to Self for the duration of the +invocation of the function that has an &Self parameter. This is +required to ensure that the lifetimes don’t persist beyond one function +call, and so that they remain anonymous.
source§

unsafe fn ref_from_abi(js: Self::Abi) -> Self::Anchor

Recover a Self::Anchor from Self::Abi. Read more
source§

impl RefMutFromWasmAbi for GlobalStateIdentifier

§

type Abi = u32

Same as RefFromWasmAbi::Abi
§

type Anchor = RefMut<'static, GlobalStateIdentifier>

Same as RefFromWasmAbi::Anchor
source§

unsafe fn ref_mut_from_abi(js: Self::Abi) -> Self::Anchor

Same as RefFromWasmAbi::ref_from_abi
source§

impl Serialize for GlobalStateIdentifier

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl WasmDescribe for GlobalStateIdentifier

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> DynClone for Twhere + T: Clone,

source§

fn __clone_box(&self, _: Private) -> *mut ()

source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> ReturnWasmAbi for Twhere + T: IntoWasmAbi,

§

type Abi = <T as IntoWasmAbi>::Abi

Same as IntoWasmAbi::Abi
source§

fn return_abi(self) -> <T as ReturnWasmAbi>::Abi

Same as IntoWasmAbi::into_abi, except that it may throw and never +return in the case of Err.
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/types/index.html b/docs/api-rust/casper_rust_wasm_sdk/types/index.html new file mode 100644 index 000000000..c75649f12 --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/types/index.html @@ -0,0 +1 @@ +casper_rust_wasm_sdk::types - Rust

Modules

\ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/types/key/index.html b/docs/api-rust/casper_rust_wasm_sdk/types/key/index.html new file mode 100644 index 000000000..2abb49046 --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/types/key/index.html @@ -0,0 +1 @@ +casper_rust_wasm_sdk::types::key - Rust

Structs

\ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/types/key/sidebar-items.js b/docs/api-rust/casper_rust_wasm_sdk/types/key/sidebar-items.js new file mode 100644 index 000000000..2d34bfa38 --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/types/key/sidebar-items.js @@ -0,0 +1 @@ +window.SIDEBAR_ITEMS = {"struct":["Key"]}; \ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/types/key/struct.Key.html b/docs/api-rust/casper_rust_wasm_sdk/types/key/struct.Key.html new file mode 100644 index 000000000..fc53bc44f --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/types/key/struct.Key.html @@ -0,0 +1,33 @@ +Key in casper_rust_wasm_sdk::types::key - Rust
pub struct Key(/* private fields */);

Implementations§

Trait Implementations§

source§

impl Clone for Key

source§

fn clone(&self) -> Key

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Key

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for Key

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl From<Key> for JsValue

source§

fn from(value: Key) -> Self

Converts to this type from the input type.
source§

impl From<Key> for Key

source§

fn from(key: _Key) -> Self

Converts to this type from the input type.
source§

impl From<Key> for Key

source§

fn from(key: Key) -> Self

Converts to this type from the input type.
source§

impl FromWasmAbi for Key

§

type Abi = u32

The wasm ABI type that this converts from when coming back out from the +ABI boundary.
source§

unsafe fn from_abi(js: u32) -> Self

Recover a Self from Self::Abi. Read more
source§

impl IntoWasmAbi for Key

§

type Abi = u32

The wasm ABI type that this converts into when crossing the ABI +boundary.
source§

fn into_abi(self) -> u32

Convert self into Self::Abi so that it can be sent across the wasm +ABI boundary.
source§

impl LongRefFromWasmAbi for Key

§

type Abi = u32

Same as RefFromWasmAbi::Abi
§

type Anchor = Ref<'static, Key>

Same as RefFromWasmAbi::Anchor
source§

unsafe fn long_ref_from_abi(js: Self::Abi) -> Self::Anchor

Same as RefFromWasmAbi::ref_from_abi
source§

impl OptionFromWasmAbi for Key

source§

fn is_none(abi: &Self::Abi) -> bool

Tests whether the argument is a “none” instance. If so it will be +deserialized as None, and otherwise it will be passed to +FromWasmAbi.
source§

impl OptionIntoWasmAbi for Key

source§

fn none() -> Self::Abi

Returns an ABI instance indicating “none”, which JS will interpret as +the None branch of this option. Read more
source§

impl RefFromWasmAbi for Key

§

type Abi = u32

The wasm ABI type references to Self are recovered from.
§

type Anchor = Ref<'static, Key>

The type that holds the reference to Self for the duration of the +invocation of the function that has an &Self parameter. This is +required to ensure that the lifetimes don’t persist beyond one function +call, and so that they remain anonymous.
source§

unsafe fn ref_from_abi(js: Self::Abi) -> Self::Anchor

Recover a Self::Anchor from Self::Abi. Read more
source§

impl RefMutFromWasmAbi for Key

§

type Abi = u32

Same as RefFromWasmAbi::Abi
§

type Anchor = RefMut<'static, Key>

Same as RefFromWasmAbi::Anchor
source§

unsafe fn ref_mut_from_abi(js: Self::Abi) -> Self::Anchor

Same as RefFromWasmAbi::ref_from_abi
source§

impl Serialize for Key

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl WasmDescribe for Key

Auto Trait Implementations§

§

impl RefUnwindSafe for Key

§

impl Send for Key

§

impl Sync for Key

§

impl Unpin for Key

§

impl UnwindSafe for Key

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> DynClone for Twhere + T: Clone,

source§

fn __clone_box(&self, _: Private) -> *mut ()

source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> ReturnWasmAbi for Twhere + T: IntoWasmAbi,

§

type Abi = <T as IntoWasmAbi>::Abi

Same as IntoWasmAbi::Abi
source§

fn return_abi(self) -> <T as ReturnWasmAbi>::Abi

Same as IntoWasmAbi::into_abi, except that it may throw and never +return in the case of Err.
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/types/path/index.html b/docs/api-rust/casper_rust_wasm_sdk/types/path/index.html new file mode 100644 index 000000000..2b9be4e6f --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/types/path/index.html @@ -0,0 +1 @@ +casper_rust_wasm_sdk::types::path - Rust

Structs

\ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/types/path/sidebar-items.js b/docs/api-rust/casper_rust_wasm_sdk/types/path/sidebar-items.js new file mode 100644 index 000000000..63fce977a --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/types/path/sidebar-items.js @@ -0,0 +1 @@ +window.SIDEBAR_ITEMS = {"struct":["Path"]}; \ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/types/path/struct.Path.html b/docs/api-rust/casper_rust_wasm_sdk/types/path/struct.Path.html new file mode 100644 index 000000000..b203c90a3 --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/types/path/struct.Path.html @@ -0,0 +1,34 @@ +Path in casper_rust_wasm_sdk::types::path - Rust
pub struct Path { /* private fields */ }

Implementations§

source§

impl Path

source

pub fn new(path: JsValue) -> Self

source

pub fn is_empty(&self) -> bool

Trait Implementations§

source§

impl Clone for Path

source§

fn clone(&self) -> Path

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Path

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for Path

source§

fn default() -> Path

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for Path

source§

fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where + D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Display for Path

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl From<Path> for JsValue

source§

fn from(value: Path) -> Self

Converts to this type from the input type.
source§

impl From<Path> for Vec<String>

source§

fn from(path: Path) -> Self

Converts to this type from the input type.
source§

impl From<String> for Path

source§

fn from(path_string: String) -> Self

Converts to this type from the input type.
source§

impl From<Vec<String, Global>> for Path

source§

fn from(path: Vec<String>) -> Self

Converts to this type from the input type.
source§

impl FromWasmAbi for Path

§

type Abi = u32

The wasm ABI type that this converts from when coming back out from the +ABI boundary.
source§

unsafe fn from_abi(js: u32) -> Self

Recover a Self from Self::Abi. Read more
source§

impl IntoWasmAbi for Path

§

type Abi = u32

The wasm ABI type that this converts into when crossing the ABI +boundary.
source§

fn into_abi(self) -> u32

Convert self into Self::Abi so that it can be sent across the wasm +ABI boundary.
source§

impl LongRefFromWasmAbi for Path

§

type Abi = u32

Same as RefFromWasmAbi::Abi
§

type Anchor = Ref<'static, Path>

Same as RefFromWasmAbi::Anchor
source§

unsafe fn long_ref_from_abi(js: Self::Abi) -> Self::Anchor

Same as RefFromWasmAbi::ref_from_abi
source§

impl OptionFromWasmAbi for Path

source§

fn is_none(abi: &Self::Abi) -> bool

Tests whether the argument is a “none” instance. If so it will be +deserialized as None, and otherwise it will be passed to +FromWasmAbi.
source§

impl OptionIntoWasmAbi for Path

source§

fn none() -> Self::Abi

Returns an ABI instance indicating “none”, which JS will interpret as +the None branch of this option. Read more
source§

impl RefFromWasmAbi for Path

§

type Abi = u32

The wasm ABI type references to Self are recovered from.
§

type Anchor = Ref<'static, Path>

The type that holds the reference to Self for the duration of the +invocation of the function that has an &Self parameter. This is +required to ensure that the lifetimes don’t persist beyond one function +call, and so that they remain anonymous.
source§

unsafe fn ref_from_abi(js: Self::Abi) -> Self::Anchor

Recover a Self::Anchor from Self::Abi. Read more
source§

impl RefMutFromWasmAbi for Path

§

type Abi = u32

Same as RefFromWasmAbi::Abi
§

type Anchor = RefMut<'static, Path>

Same as RefFromWasmAbi::Anchor
source§

unsafe fn ref_mut_from_abi(js: Self::Abi) -> Self::Anchor

Same as RefFromWasmAbi::ref_from_abi
source§

impl Serialize for Path

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl WasmDescribe for Path

Auto Trait Implementations§

§

impl RefUnwindSafe for Path

§

impl Send for Path

§

impl Sync for Path

§

impl Unpin for Path

§

impl UnwindSafe for Path

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> DynClone for Twhere + T: Clone,

source§

fn __clone_box(&self, _: Private) -> *mut ()

source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> ReturnWasmAbi for Twhere + T: IntoWasmAbi,

§

type Abi = <T as IntoWasmAbi>::Abi

Same as IntoWasmAbi::Abi
source§

fn return_abi(self) -> <T as ReturnWasmAbi>::Abi

Same as IntoWasmAbi::into_abi, except that it may throw and never +return in the case of Err.
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> ToString for Twhere + T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/types/peer_entry/index.html b/docs/api-rust/casper_rust_wasm_sdk/types/peer_entry/index.html new file mode 100644 index 000000000..5042ef3da --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/types/peer_entry/index.html @@ -0,0 +1 @@ +casper_rust_wasm_sdk::types::peer_entry - Rust

Structs

\ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/types/peer_entry/sidebar-items.js b/docs/api-rust/casper_rust_wasm_sdk/types/peer_entry/sidebar-items.js new file mode 100644 index 000000000..901db2cf5 --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/types/peer_entry/sidebar-items.js @@ -0,0 +1 @@ +window.SIDEBAR_ITEMS = {"struct":["PeerEntry"]}; \ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/types/peer_entry/struct.PeerEntry.html b/docs/api-rust/casper_rust_wasm_sdk/types/peer_entry/struct.PeerEntry.html new file mode 100644 index 000000000..cdf2308cc --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/types/peer_entry/struct.PeerEntry.html @@ -0,0 +1,33 @@ +PeerEntry in casper_rust_wasm_sdk::types::peer_entry - Rust
pub struct PeerEntry(/* private fields */);

Implementations§

source§

impl PeerEntry

source

pub fn node_id(&self) -> String

source

pub fn address(&self) -> String

Trait Implementations§

source§

impl Clone for PeerEntry

source§

fn clone(&self) -> PeerEntry

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for PeerEntry

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for PeerEntry

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl From<PeerEntry> for JsValue

source§

fn from(value: PeerEntry) -> Self

Converts to this type from the input type.
source§

impl From<PeerEntry> for PeerEntry

source§

fn from(peer_entry: _PeerEntry) -> Self

Converts to this type from the input type.
source§

impl From<PeerEntry> for PeerEntry

source§

fn from(peer_entry: PeerEntry) -> Self

Converts to this type from the input type.
source§

impl FromWasmAbi for PeerEntry

§

type Abi = u32

The wasm ABI type that this converts from when coming back out from the +ABI boundary.
source§

unsafe fn from_abi(js: u32) -> Self

Recover a Self from Self::Abi. Read more
source§

impl IntoWasmAbi for PeerEntry

§

type Abi = u32

The wasm ABI type that this converts into when crossing the ABI +boundary.
source§

fn into_abi(self) -> u32

Convert self into Self::Abi so that it can be sent across the wasm +ABI boundary.
source§

impl LongRefFromWasmAbi for PeerEntry

§

type Abi = u32

Same as RefFromWasmAbi::Abi
§

type Anchor = Ref<'static, PeerEntry>

Same as RefFromWasmAbi::Anchor
source§

unsafe fn long_ref_from_abi(js: Self::Abi) -> Self::Anchor

Same as RefFromWasmAbi::ref_from_abi
source§

impl OptionFromWasmAbi for PeerEntry

source§

fn is_none(abi: &Self::Abi) -> bool

Tests whether the argument is a “none” instance. If so it will be +deserialized as None, and otherwise it will be passed to +FromWasmAbi.
source§

impl OptionIntoWasmAbi for PeerEntry

source§

fn none() -> Self::Abi

Returns an ABI instance indicating “none”, which JS will interpret as +the None branch of this option. Read more
source§

impl RefFromWasmAbi for PeerEntry

§

type Abi = u32

The wasm ABI type references to Self are recovered from.
§

type Anchor = Ref<'static, PeerEntry>

The type that holds the reference to Self for the duration of the +invocation of the function that has an &Self parameter. This is +required to ensure that the lifetimes don’t persist beyond one function +call, and so that they remain anonymous.
source§

unsafe fn ref_from_abi(js: Self::Abi) -> Self::Anchor

Recover a Self::Anchor from Self::Abi. Read more
source§

impl RefMutFromWasmAbi for PeerEntry

§

type Abi = u32

Same as RefFromWasmAbi::Abi
§

type Anchor = RefMut<'static, PeerEntry>

Same as RefFromWasmAbi::Anchor
source§

unsafe fn ref_mut_from_abi(js: Self::Abi) -> Self::Anchor

Same as RefFromWasmAbi::ref_from_abi
source§

impl Serialize for PeerEntry

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl WasmDescribe for PeerEntry

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> DynClone for Twhere + T: Clone,

source§

fn __clone_box(&self, _: Private) -> *mut ()

source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> ReturnWasmAbi for Twhere + T: IntoWasmAbi,

§

type Abi = <T as IntoWasmAbi>::Abi

Same as IntoWasmAbi::Abi
source§

fn return_abi(self) -> <T as ReturnWasmAbi>::Abi

Same as IntoWasmAbi::into_abi, except that it may throw and never +return in the case of Err.
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/types/public_key/index.html b/docs/api-rust/casper_rust_wasm_sdk/types/public_key/index.html new file mode 100644 index 000000000..f73e84d38 --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/types/public_key/index.html @@ -0,0 +1 @@ +casper_rust_wasm_sdk::types::public_key - Rust

Structs

\ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/types/public_key/sidebar-items.js b/docs/api-rust/casper_rust_wasm_sdk/types/public_key/sidebar-items.js new file mode 100644 index 000000000..32f9945db --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/types/public_key/sidebar-items.js @@ -0,0 +1 @@ +window.SIDEBAR_ITEMS = {"struct":["PublicKey"]}; \ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/types/public_key/struct.PublicKey.html b/docs/api-rust/casper_rust_wasm_sdk/types/public_key/struct.PublicKey.html new file mode 100644 index 000000000..dd0095d71 --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/types/public_key/struct.PublicKey.html @@ -0,0 +1,52 @@ +PublicKey in casper_rust_wasm_sdk::types::public_key - Rust
pub struct PublicKey(/* private fields */);

Implementations§

source§

impl PublicKey

source

pub fn new(public_key_hex_str: &str) -> Result<PublicKey, JsValue>

source

pub fn from_bytes(bytes: Vec<u8>) -> PublicKey

source

pub fn to_account_hash(&self) -> AccountHash

source

pub fn to_purse_uref(&self) -> URef

Trait Implementations§

source§

impl Clone for PublicKey

source§

fn clone(&self) -> PublicKey

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for PublicKey

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for PublicKey

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Display for PublicKey

source§

fn fmt(&self, f: &mut Formatter<'_>) -> FmtResult

Formats the value using the given formatter. Read more
source§

impl From<AccountIdentifier> for PublicKey

source§

fn from(account_identifier: AccountIdentifier) -> Self

Converts to this type from the input type.
source§

impl From<PublicKey> for AccountIdentifier

source§

fn from(key: PublicKey) -> Self

Converts to this type from the input type.
source§

impl From<PublicKey> for JsValue

source§

fn from(value: PublicKey) -> Self

Converts to this type from the input type.
source§

impl From<PublicKey> for PublicKey

source§

fn from(public_key: PublicKey) -> Self

Converts to this type from the input type.
source§

impl From<PublicKey> for PublicKey

source§

fn from(public_key: _PublicKey) -> Self

Converts to this type from the input type.
source§

impl From<PublicKey> for PurseIdentifier

source§

fn from(key: PublicKey) -> Self

Converts to this type from the input type.
source§

impl From<PurseIdentifier> for PublicKey

source§

fn from(purse_identifier: PurseIdentifier) -> Self

Converts to this type from the input type.
source§

impl FromBytes for PublicKey

source§

fn from_bytes(bytes: &[u8]) -> Result<(Self, &[u8]), Error>

Deserializes the slice into Self.
source§

fn from_vec(bytes: Vec<u8, Global>) -> Result<(Self, Vec<u8, Global>), Error>

Deserializes the Vec<u8> into Self.
source§

impl FromWasmAbi for PublicKey

§

type Abi = u32

The wasm ABI type that this converts from when coming back out from the +ABI boundary.
source§

unsafe fn from_abi(js: u32) -> Self

Recover a Self from Self::Abi. Read more
source§

impl IntoWasmAbi for PublicKey

§

type Abi = u32

The wasm ABI type that this converts into when crossing the ABI +boundary.
source§

fn into_abi(self) -> u32

Convert self into Self::Abi so that it can be sent across the wasm +ABI boundary.
source§

impl LongRefFromWasmAbi for PublicKey

§

type Abi = u32

Same as RefFromWasmAbi::Abi
§

type Anchor = Ref<'static, PublicKey>

Same as RefFromWasmAbi::Anchor
source§

unsafe fn long_ref_from_abi(js: Self::Abi) -> Self::Anchor

Same as RefFromWasmAbi::ref_from_abi
source§

impl OptionFromWasmAbi for PublicKey

source§

fn is_none(abi: &Self::Abi) -> bool

Tests whether the argument is a “none” instance. If so it will be +deserialized as None, and otherwise it will be passed to +FromWasmAbi.
source§

impl OptionIntoWasmAbi for PublicKey

source§

fn none() -> Self::Abi

Returns an ABI instance indicating “none”, which JS will interpret as +the None branch of this option. Read more
source§

impl Ord for PublicKey

source§

fn cmp(&self, other: &PublicKey) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Selfwhere + Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Selfwhere + Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Selfwhere + Self: Sized + PartialOrd<Self>,

Restrict a value to a certain interval. Read more
source§

impl PartialEq<PublicKey> for PublicKey

source§

fn eq(&self, other: &PublicKey) -> bool

This method tests for self and other values to be equal, and is used +by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
source§

impl PartialOrd<PublicKey> for PublicKey

source§

fn partial_cmp(&self, other: &PublicKey) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= +operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= +operator. Read more
source§

impl RefFromWasmAbi for PublicKey

§

type Abi = u32

The wasm ABI type references to Self are recovered from.
§

type Anchor = Ref<'static, PublicKey>

The type that holds the reference to Self for the duration of the +invocation of the function that has an &Self parameter. This is +required to ensure that the lifetimes don’t persist beyond one function +call, and so that they remain anonymous.
source§

unsafe fn ref_from_abi(js: Self::Abi) -> Self::Anchor

Recover a Self::Anchor from Self::Abi. Read more
source§

impl RefMutFromWasmAbi for PublicKey

§

type Abi = u32

Same as RefFromWasmAbi::Abi
§

type Anchor = RefMut<'static, PublicKey>

Same as RefFromWasmAbi::Anchor
source§

unsafe fn ref_mut_from_abi(js: Self::Abi) -> Self::Anchor

Same as RefFromWasmAbi::ref_from_abi
source§

impl Serialize for PublicKey

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl ToBytes for PublicKey

source§

fn to_bytes(&self) -> Result<Vec<u8>, Error>

Serializes &self to a Vec<u8>.
source§

fn serialized_length(&self) -> usize

Returns the length of the Vec<u8> which would be returned from a successful call to +to_bytes() or into_bytes(). The data is not actually serialized, so this call is +relatively cheap.
source§

fn write_bytes(&self, bytes: &mut Vec<u8>) -> Result<(), Error>

Writes &self into a mutable writer.
source§

fn into_bytes(self) -> Result<Vec<u8, Global>, Error>where + Self: Sized,

Consumes self and serializes to a Vec<u8>.
source§

impl WasmDescribe for PublicKey

source§

impl Eq for PublicKey

source§

impl StructuralEq for PublicKey

source§

impl StructuralPartialEq for PublicKey

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<Q, K> Comparable<K> for Qwhere + Q: Ord + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn compare(&self, key: &K) -> Ordering

Compare self to key and return their ordering.
source§

impl<T> DynClone for Twhere + T: Clone,

source§

fn __clone_box(&self, _: Private) -> *mut ()

§

impl<Q, K> Equivalent<K> for Qwhere + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Qwhere + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
source§

impl<Q, K> Equivalent<K> for Qwhere + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> ReturnWasmAbi for Twhere + T: IntoWasmAbi,

§

type Abi = <T as IntoWasmAbi>::Abi

Same as IntoWasmAbi::Abi
source§

fn return_abi(self) -> <T as ReturnWasmAbi>::Abi

Same as IntoWasmAbi::into_abi, except that it may throw and never +return in the case of Err.
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> ToString for Twhere + T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/types/purse_identifier/index.html b/docs/api-rust/casper_rust_wasm_sdk/types/purse_identifier/index.html new file mode 100644 index 000000000..384bd5c7e --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/types/purse_identifier/index.html @@ -0,0 +1 @@ +casper_rust_wasm_sdk::types::purse_identifier - Rust

Structs

\ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/types/purse_identifier/sidebar-items.js b/docs/api-rust/casper_rust_wasm_sdk/types/purse_identifier/sidebar-items.js new file mode 100644 index 000000000..cd0b4c86d --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/types/purse_identifier/sidebar-items.js @@ -0,0 +1 @@ +window.SIDEBAR_ITEMS = {"struct":["PurseIdentifier"]}; \ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/types/purse_identifier/struct.PurseIdentifier.html b/docs/api-rust/casper_rust_wasm_sdk/types/purse_identifier/struct.PurseIdentifier.html new file mode 100644 index 000000000..c1393b73c --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/types/purse_identifier/struct.PurseIdentifier.html @@ -0,0 +1,33 @@ +PurseIdentifier in casper_rust_wasm_sdk::types::purse_identifier - Rust
pub struct PurseIdentifier(/* private fields */);

Implementations§

Trait Implementations§

source§

impl Clone for PurseIdentifier

source§

fn clone(&self) -> PurseIdentifier

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for PurseIdentifier

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for PurseIdentifier

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl From<AccountHash> for PurseIdentifier

source§

fn from(account_hash: AccountHash) -> Self

Converts to this type from the input type.
source§

impl From<PublicKey> for PurseIdentifier

source§

fn from(key: PublicKey) -> Self

Converts to this type from the input type.
source§

impl From<PurseIdentifier> for AccountHash

source§

fn from(purse_identifier: PurseIdentifier) -> Self

Converts to this type from the input type.
source§

impl From<PurseIdentifier> for JsValue

source§

fn from(value: PurseIdentifier) -> Self

Converts to this type from the input type.
source§

impl From<PurseIdentifier> for PublicKey

source§

fn from(purse_identifier: PurseIdentifier) -> Self

Converts to this type from the input type.
source§

impl From<PurseIdentifier> for PurseIdentifier

source§

fn from(purse_identifier: _PurseIdentifier) -> Self

Converts to this type from the input type.
source§

impl From<PurseIdentifier> for PurseIdentifier

source§

fn from(purse_identifier: PurseIdentifier) -> Self

Converts to this type from the input type.
source§

impl From<PurseIdentifier> for URef

source§

fn from(purse_identifier: PurseIdentifier) -> Self

Converts to this type from the input type.
source§

impl From<URef> for PurseIdentifier

source§

fn from(uref: URef) -> Self

Converts to this type from the input type.
source§

impl FromWasmAbi for PurseIdentifier

§

type Abi = u32

The wasm ABI type that this converts from when coming back out from the +ABI boundary.
source§

unsafe fn from_abi(js: u32) -> Self

Recover a Self from Self::Abi. Read more
source§

impl IntoWasmAbi for PurseIdentifier

§

type Abi = u32

The wasm ABI type that this converts into when crossing the ABI +boundary.
source§

fn into_abi(self) -> u32

Convert self into Self::Abi so that it can be sent across the wasm +ABI boundary.
source§

impl LongRefFromWasmAbi for PurseIdentifier

§

type Abi = u32

Same as RefFromWasmAbi::Abi
§

type Anchor = Ref<'static, PurseIdentifier>

Same as RefFromWasmAbi::Anchor
source§

unsafe fn long_ref_from_abi(js: Self::Abi) -> Self::Anchor

Same as RefFromWasmAbi::ref_from_abi
source§

impl OptionFromWasmAbi for PurseIdentifier

source§

fn is_none(abi: &Self::Abi) -> bool

Tests whether the argument is a “none” instance. If so it will be +deserialized as None, and otherwise it will be passed to +FromWasmAbi.
source§

impl OptionIntoWasmAbi for PurseIdentifier

source§

fn none() -> Self::Abi

Returns an ABI instance indicating “none”, which JS will interpret as +the None branch of this option. Read more
source§

impl RefFromWasmAbi for PurseIdentifier

§

type Abi = u32

The wasm ABI type references to Self are recovered from.
§

type Anchor = Ref<'static, PurseIdentifier>

The type that holds the reference to Self for the duration of the +invocation of the function that has an &Self parameter. This is +required to ensure that the lifetimes don’t persist beyond one function +call, and so that they remain anonymous.
source§

unsafe fn ref_from_abi(js: Self::Abi) -> Self::Anchor

Recover a Self::Anchor from Self::Abi. Read more
source§

impl RefMutFromWasmAbi for PurseIdentifier

§

type Abi = u32

Same as RefFromWasmAbi::Abi
§

type Anchor = RefMut<'static, PurseIdentifier>

Same as RefFromWasmAbi::Anchor
source§

unsafe fn ref_mut_from_abi(js: Self::Abi) -> Self::Anchor

Same as RefFromWasmAbi::ref_from_abi
source§

impl Serialize for PurseIdentifier

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl ToString for PurseIdentifier

source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl WasmDescribe for PurseIdentifier

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> DynClone for Twhere + T: Clone,

source§

fn __clone_box(&self, _: Private) -> *mut ()

source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> ReturnWasmAbi for Twhere + T: IntoWasmAbi,

§

type Abi = <T as IntoWasmAbi>::Abi

Same as IntoWasmAbi::Abi
source§

fn return_abi(self) -> <T as ReturnWasmAbi>::Abi

Same as IntoWasmAbi::into_abi, except that it may throw and never +return in the case of Err.
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/types/sdk_error/enum.SdkError.html b/docs/api-rust/casper_rust_wasm_sdk/types/sdk_error/enum.SdkError.html new file mode 100644 index 000000000..cb47bc7d3 --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/types/sdk_error/enum.SdkError.html @@ -0,0 +1,70 @@ +SdkError in casper_rust_wasm_sdk::types::sdk_error - Rust
pub enum SdkError {
+
Show 18 variants FailedToParseKey { + context: &'static str, + error: KeyFromStrError, + }, + FailedToParsePublicKey { + context: String, + error: Error, + }, + FailedToParseAccountHash { + context: &'static str, + error: FromStrError, + }, + FailedToParseURef { + context: &'static str, + error: URefFromStrError, + }, + FailedToParseInt { + context: &'static str, + error: ParseIntError, + }, + FailedToParseTimeDiff { + context: &'static str, + error: DurationError, + }, + FailedToParseTimestamp { + context: &'static str, + error: TimestampError, + }, + FailedToParseUint { + context: &'static str, + error: UIntParseError, + }, + FailedToParseDigest { + context: String, + error: Error, + }, + FailedToParseStateIdentifier, + FailedToParsePurseIdentifier, + FailedToParseAccountIdentifier, + ConflictingArguments { + context: String, + args: Vec<String>, + }, + InvalidCLValue(String), + InvalidArgument { + context: &'static str, + error: String, + }, + FailedToParseJsonArgs(Error), + JsonArgs(JsonArgsError), + Core(Error), +
}

Variants§

§

FailedToParseKey

Fields

§context: &'static str
§

FailedToParsePublicKey

Fields

§context: String
§error: Error
§

FailedToParseAccountHash

Fields

§context: &'static str
§

FailedToParseURef

Fields

§context: &'static str
§

FailedToParseInt

Fields

§context: &'static str
§

FailedToParseTimeDiff

Fields

§context: &'static str
§error: DurationError
§

FailedToParseTimestamp

Fields

§context: &'static str
§error: TimestampError
§

FailedToParseUint

Fields

§context: &'static str
§

FailedToParseDigest

Fields

§context: String
§error: Error
§

FailedToParseStateIdentifier

§

FailedToParsePurseIdentifier

§

FailedToParseAccountIdentifier

§

ConflictingArguments

Fields

§context: String
§args: Vec<String>
§

InvalidCLValue(String)

§

InvalidArgument

Fields

§context: &'static str
§error: String
§

FailedToParseJsonArgs(Error)

§

JsonArgs(JsonArgsError)

§

Core(Error)

Trait Implementations§

source§

impl Debug for SdkError

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for SdkError

source§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Error for SdkError

source§

fn source(&self) -> Option<&(dyn Error + 'static)>

The lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more
source§

impl From<CLValueError> for SdkError

source§

fn from(error: CLValueError) -> Self

Converts to this type from the input type.
source§

impl From<CliError> for SdkError

source§

fn from(error: CliError) -> Self

Converts to this type from the input type.
source§

impl From<Error> for SdkError

source§

fn from(source: Error) -> Self

Converts to this type from the input type.
source§

impl From<Error> for SdkError

source§

fn from(source: JsonArgsError) -> Self

Converts to this type from the input type.
source§

impl From<Error> for SdkError

source§

fn from(source: Error) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToString for Twhere + T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/types/sdk_error/index.html b/docs/api-rust/casper_rust_wasm_sdk/types/sdk_error/index.html new file mode 100644 index 000000000..d36e5b5da --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/types/sdk_error/index.html @@ -0,0 +1 @@ +casper_rust_wasm_sdk::types::sdk_error - Rust

Enums

\ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/types/sdk_error/sidebar-items.js b/docs/api-rust/casper_rust_wasm_sdk/types/sdk_error/sidebar-items.js new file mode 100644 index 000000000..aaa3bb1fb --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/types/sdk_error/sidebar-items.js @@ -0,0 +1 @@ +window.SIDEBAR_ITEMS = {"enum":["SdkError"]}; \ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/types/sidebar-items.js b/docs/api-rust/casper_rust_wasm_sdk/types/sidebar-items.js new file mode 100644 index 000000000..15055b205 --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/types/sidebar-items.js @@ -0,0 +1 @@ +window.SIDEBAR_ITEMS = {"mod":["access_rights","account_hash","account_identifier","addr","block_hash","block_identifier","cl","contract_hash","contract_package_hash","deploy","deploy_hash","deploy_params","dictionary_item_identifier","digest","era_id","global_state_identifier","key","path","peer_entry","public_key","purse_identifier","sdk_error","uref","verbosity"]}; \ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/types/uref/index.html b/docs/api-rust/casper_rust_wasm_sdk/types/uref/index.html new file mode 100644 index 000000000..83da45b2c --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/types/uref/index.html @@ -0,0 +1 @@ +casper_rust_wasm_sdk::types::uref - Rust

Structs

\ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/types/uref/sidebar-items.js b/docs/api-rust/casper_rust_wasm_sdk/types/uref/sidebar-items.js new file mode 100644 index 000000000..99929528d --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/types/uref/sidebar-items.js @@ -0,0 +1 @@ +window.SIDEBAR_ITEMS = {"struct":["URef"]}; \ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/types/uref/struct.URef.html b/docs/api-rust/casper_rust_wasm_sdk/types/uref/struct.URef.html new file mode 100644 index 000000000..377b671ec --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/types/uref/struct.URef.html @@ -0,0 +1,33 @@ +URef in casper_rust_wasm_sdk::types::uref - Rust
pub struct URef(/* private fields */);

Implementations§

source§

impl URef

source

pub fn new(uref_hex_str: &str, access_rights: u8) -> Result<URef, JsValue>

source

pub fn from_bytes(bytes: Vec<u8>, access_rights: u8) -> Self

source

pub fn to_formatted_string(&self) -> String

Trait Implementations§

source§

impl Clone for URef

source§

fn clone(&self) -> URef

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for URef

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for URef

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl From<PurseIdentifier> for URef

source§

fn from(purse_identifier: PurseIdentifier) -> Self

Converts to this type from the input type.
source§

impl From<URef> for JsValue

source§

fn from(value: URef) -> Self

Converts to this type from the input type.
source§

impl From<URef> for PurseIdentifier

source§

fn from(uref: URef) -> Self

Converts to this type from the input type.
source§

impl From<URef> for URef

source§

fn from(uref: URef) -> Self

Converts to this type from the input type.
source§

impl From<URef> for URef

source§

fn from(uref: _URef) -> Self

Converts to this type from the input type.
source§

impl FromWasmAbi for URef

§

type Abi = u32

The wasm ABI type that this converts from when coming back out from the +ABI boundary.
source§

unsafe fn from_abi(js: u32) -> Self

Recover a Self from Self::Abi. Read more
source§

impl IntoWasmAbi for URef

§

type Abi = u32

The wasm ABI type that this converts into when crossing the ABI +boundary.
source§

fn into_abi(self) -> u32

Convert self into Self::Abi so that it can be sent across the wasm +ABI boundary.
source§

impl LongRefFromWasmAbi for URef

§

type Abi = u32

Same as RefFromWasmAbi::Abi
§

type Anchor = Ref<'static, URef>

Same as RefFromWasmAbi::Anchor
source§

unsafe fn long_ref_from_abi(js: Self::Abi) -> Self::Anchor

Same as RefFromWasmAbi::ref_from_abi
source§

impl OptionFromWasmAbi for URef

source§

fn is_none(abi: &Self::Abi) -> bool

Tests whether the argument is a “none” instance. If so it will be +deserialized as None, and otherwise it will be passed to +FromWasmAbi.
source§

impl OptionIntoWasmAbi for URef

source§

fn none() -> Self::Abi

Returns an ABI instance indicating “none”, which JS will interpret as +the None branch of this option. Read more
source§

impl RefFromWasmAbi for URef

§

type Abi = u32

The wasm ABI type references to Self are recovered from.
§

type Anchor = Ref<'static, URef>

The type that holds the reference to Self for the duration of the +invocation of the function that has an &Self parameter. This is +required to ensure that the lifetimes don’t persist beyond one function +call, and so that they remain anonymous.
source§

unsafe fn ref_from_abi(js: Self::Abi) -> Self::Anchor

Recover a Self::Anchor from Self::Abi. Read more
source§

impl RefMutFromWasmAbi for URef

§

type Abi = u32

Same as RefFromWasmAbi::Abi
§

type Anchor = RefMut<'static, URef>

Same as RefFromWasmAbi::Anchor
source§

unsafe fn ref_mut_from_abi(js: Self::Abi) -> Self::Anchor

Same as RefFromWasmAbi::ref_from_abi
source§

impl Serialize for URef

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl WasmDescribe for URef

Auto Trait Implementations§

§

impl RefUnwindSafe for URef

§

impl Send for URef

§

impl Sync for URef

§

impl Unpin for URef

§

impl UnwindSafe for URef

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> DynClone for Twhere + T: Clone,

source§

fn __clone_box(&self, _: Private) -> *mut ()

source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> ReturnWasmAbi for Twhere + T: IntoWasmAbi,

§

type Abi = <T as IntoWasmAbi>::Abi

Same as IntoWasmAbi::Abi
source§

fn return_abi(self) -> <T as ReturnWasmAbi>::Abi

Same as IntoWasmAbi::into_abi, except that it may throw and never +return in the case of Err.
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/types/verbosity/enum.Verbosity.html b/docs/api-rust/casper_rust_wasm_sdk/types/verbosity/enum.Verbosity.html new file mode 100644 index 000000000..b010946a4 --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/types/verbosity/enum.Verbosity.html @@ -0,0 +1,36 @@ +Verbosity in casper_rust_wasm_sdk::types::verbosity - Rust
pub enum Verbosity {
+    Low,
+    Medium,
+    High,
+}

Variants§

§

Low

§

Medium

§

High

Trait Implementations§

source§

impl Clone for Verbosity

source§

fn clone(&self) -> Verbosity

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Verbosity

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for Verbosity

source§

fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where + D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl From<&str> for Verbosity

source§

fn from(s: &str) -> Self

Converts to this type from the input type.
source§

impl From<String> for Verbosity

source§

fn from(s: String) -> Self

Converts to this type from the input type.
source§

impl From<Verbosity> for Verbosity

source§

fn from(verbosity: _Verbosity) -> Self

Converts to this type from the input type.
source§

impl From<Verbosity> for Verbosity

source§

fn from(verbosity: Verbosity) -> Self

Converts to this type from the input type.
source§

impl From<Verbosity> for u64

source§

fn from(verbosity: Verbosity) -> Self

Converts to this type from the input type.
source§

impl From<u64> for Verbosity

source§

fn from(value: u64) -> Self

Converts to this type from the input type.
source§

impl FromWasmAbi for Verbosity

§

type Abi = u32

The wasm ABI type that this converts from when coming back out from the +ABI boundary.
source§

unsafe fn from_abi(js: u32) -> Self

Recover a Self from Self::Abi. Read more
source§

impl IntoWasmAbi for Verbosity

§

type Abi = u32

The wasm ABI type that this converts into when crossing the ABI +boundary.
source§

fn into_abi(self) -> u32

Convert self into Self::Abi so that it can be sent across the wasm +ABI boundary.
source§

impl OptionFromWasmAbi for Verbosity

source§

fn is_none(val: &u32) -> bool

Tests whether the argument is a “none” instance. If so it will be +deserialized as None, and otherwise it will be passed to +FromWasmAbi.
source§

impl OptionIntoWasmAbi for Verbosity

source§

fn none() -> Self::Abi

Returns an ABI instance indicating “none”, which JS will interpret as +the None branch of this option. Read more
source§

impl PartialEq<Verbosity> for Verbosity

source§

fn eq(&self, other: &Verbosity) -> bool

This method tests for self and other values to be equal, and is used +by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
source§

impl Serialize for Verbosity

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl WasmDescribe for Verbosity

source§

impl Copy for Verbosity

source§

impl StructuralPartialEq for Verbosity

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> DynClone for Twhere + T: Clone,

source§

fn __clone_box(&self, _: Private) -> *mut ()

source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> ReturnWasmAbi for Twhere + T: IntoWasmAbi,

§

type Abi = <T as IntoWasmAbi>::Abi

Same as IntoWasmAbi::Abi
source§

fn return_abi(self) -> <T as ReturnWasmAbi>::Abi

Same as IntoWasmAbi::into_abi, except that it may throw and never +return in the case of Err.
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/types/verbosity/index.html b/docs/api-rust/casper_rust_wasm_sdk/types/verbosity/index.html new file mode 100644 index 000000000..407346661 --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/types/verbosity/index.html @@ -0,0 +1 @@ +casper_rust_wasm_sdk::types::verbosity - Rust

Enums

\ No newline at end of file diff --git a/docs/api-rust/casper_rust_wasm_sdk/types/verbosity/sidebar-items.js b/docs/api-rust/casper_rust_wasm_sdk/types/verbosity/sidebar-items.js new file mode 100644 index 000000000..c2ca8f27a --- /dev/null +++ b/docs/api-rust/casper_rust_wasm_sdk/types/verbosity/sidebar-items.js @@ -0,0 +1 @@ +window.SIDEBAR_ITEMS = {"enum":["Verbosity"]}; \ No newline at end of file diff --git a/docs/api-rust/crates.js b/docs/api-rust/crates.js new file mode 100644 index 000000000..94c4ece9e --- /dev/null +++ b/docs/api-rust/crates.js @@ -0,0 +1 @@ +window.ALL_CRATES = ["casper_rust_wasm_sdk"]; \ No newline at end of file diff --git a/docs/api-rust/help.html b/docs/api-rust/help.html new file mode 100644 index 000000000..b2cc82363 --- /dev/null +++ b/docs/api-rust/help.html @@ -0,0 +1 @@ +Rustdoc help

Rustdoc help

Back
\ No newline at end of file diff --git a/docs/api-rust/implementors/alloc/string/trait.ToString.js b/docs/api-rust/implementors/alloc/string/trait.ToString.js new file mode 100644 index 000000000..4fe580e88 --- /dev/null +++ b/docs/api-rust/implementors/alloc/string/trait.ToString.js @@ -0,0 +1,3 @@ +(function() {var implementors = { +"casper_rust_wasm_sdk":[["impl ToString for Digest"],["impl ToString for AccountIdentifier"],["impl ToString for DeployHash"],["impl ToString for PurseIdentifier"],["impl ToString for BlockHash"]] +};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/docs/api-rust/implementors/casper_rust_wasm_sdk/types/digest/trait.ToDigest.js b/docs/api-rust/implementors/casper_rust_wasm_sdk/types/digest/trait.ToDigest.js new file mode 100644 index 000000000..2c7a12e11 --- /dev/null +++ b/docs/api-rust/implementors/casper_rust_wasm_sdk/types/digest/trait.ToDigest.js @@ -0,0 +1,3 @@ +(function() {var implementors = { +"casper_rust_wasm_sdk":[] +};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/docs/api-rust/implementors/casper_types/bytesrepr/trait.FromBytes.js b/docs/api-rust/implementors/casper_types/bytesrepr/trait.FromBytes.js new file mode 100644 index 000000000..13a752021 --- /dev/null +++ b/docs/api-rust/implementors/casper_types/bytesrepr/trait.FromBytes.js @@ -0,0 +1,3 @@ +(function() {var implementors = { +"casper_rust_wasm_sdk":[["impl FromBytes for ContractHash"],["impl FromBytes for Digest"],["impl FromBytes for PublicKey"],["impl FromBytes for AccountHash"],["impl FromBytes for ContractPackageHash"]] +};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/docs/api-rust/implementors/casper_types/bytesrepr/trait.ToBytes.js b/docs/api-rust/implementors/casper_types/bytesrepr/trait.ToBytes.js new file mode 100644 index 000000000..8e8ef787b --- /dev/null +++ b/docs/api-rust/implementors/casper_types/bytesrepr/trait.ToBytes.js @@ -0,0 +1,3 @@ +(function() {var implementors = { +"casper_rust_wasm_sdk":[["impl ToBytes for PublicKey"],["impl ToBytes for Digest"],["impl ToBytes for ContractPackageHash"],["impl ToBytes for AccountHash"],["impl ToBytes for ContractHash"]] +};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/docs/api-rust/implementors/casper_types/cl_type/trait.CLTyped.js b/docs/api-rust/implementors/casper_types/cl_type/trait.CLTyped.js new file mode 100644 index 000000000..3f1dc978e --- /dev/null +++ b/docs/api-rust/implementors/casper_types/cl_type/trait.CLTyped.js @@ -0,0 +1,3 @@ +(function() {var implementors = { +"casper_rust_wasm_sdk":[["impl CLTyped for Bytes"]] +};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/docs/api-rust/implementors/core/clone/trait.Clone.js b/docs/api-rust/implementors/core/clone/trait.Clone.js new file mode 100644 index 000000000..3f2756758 --- /dev/null +++ b/docs/api-rust/implementors/core/clone/trait.Clone.js @@ -0,0 +1,3 @@ +(function() {var implementors = { +"casper_rust_wasm_sdk":[["impl Clone for SessionStrParams"],["impl Clone for QueryGlobalStateOptions"],["impl Clone for AccountHash"],["impl Clone for ContractNamedKey"],["impl Clone for Bytes"],["impl Clone for GlobalStateIdentifier"],["impl Clone for QueryGlobalStateResult"],["impl Clone for DictionaryVariant"],["impl Clone for Verbosity"],["impl Clone for DeployHash"],["impl Clone for DictionaryItemIdentifier"],["impl Clone for AccountIdentifier"],["impl Clone for PublicKey"],["impl Clone for URefVariant"],["impl Clone for DictionaryItemStrParams"],["impl Clone for BlockIdentifier"],["impl Clone for PurseIdentifier"],["impl Clone for PathIdentifierInput"],["impl Clone for GetBalanceInput"],["impl Clone for URef"],["impl Clone for DeployStrParams"],["impl Clone for PaymentStrParams"],["impl Clone for ArgsSimple"],["impl Clone for EraId"],["impl Clone for BlockIdentifierInput"],["impl Clone for Digest"],["impl Clone for PeerEntry"],["impl Clone for Deploy"],["impl Clone for AccountNamedKey"],["impl Clone for Key"],["impl Clone for Path"],["impl Clone for BlockHash"],["impl Clone for KeyIdentifierInput"]] +};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/docs/api-rust/implementors/core/cmp/trait.Eq.js b/docs/api-rust/implementors/core/cmp/trait.Eq.js new file mode 100644 index 000000000..a242ad715 --- /dev/null +++ b/docs/api-rust/implementors/core/cmp/trait.Eq.js @@ -0,0 +1,3 @@ +(function() {var implementors = { +"casper_rust_wasm_sdk":[["impl Eq for Bytes"],["impl Eq for EraId"],["impl Eq for PublicKey"]] +};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/docs/api-rust/implementors/core/cmp/trait.Ord.js b/docs/api-rust/implementors/core/cmp/trait.Ord.js new file mode 100644 index 000000000..327a35197 --- /dev/null +++ b/docs/api-rust/implementors/core/cmp/trait.Ord.js @@ -0,0 +1,3 @@ +(function() {var implementors = { +"casper_rust_wasm_sdk":[["impl Ord for EraId"],["impl Ord for PublicKey"],["impl Ord for Bytes"]] +};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/docs/api-rust/implementors/core/cmp/trait.PartialEq.js b/docs/api-rust/implementors/core/cmp/trait.PartialEq.js new file mode 100644 index 000000000..75e5bfad0 --- /dev/null +++ b/docs/api-rust/implementors/core/cmp/trait.PartialEq.js @@ -0,0 +1,3 @@ +(function() {var implementors = { +"casper_rust_wasm_sdk":[["impl PartialEq<PublicKey> for PublicKey"],["impl PartialEq<Verbosity> for Verbosity"],["impl PartialEq<Bytes> for Bytes"],["impl PartialEq<EraId> for EraId"]] +};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/docs/api-rust/implementors/core/cmp/trait.PartialOrd.js b/docs/api-rust/implementors/core/cmp/trait.PartialOrd.js new file mode 100644 index 000000000..7d3266401 --- /dev/null +++ b/docs/api-rust/implementors/core/cmp/trait.PartialOrd.js @@ -0,0 +1,3 @@ +(function() {var implementors = { +"casper_rust_wasm_sdk":[["impl PartialOrd<PublicKey> for PublicKey"],["impl PartialOrd<EraId> for EraId"],["impl PartialOrd<Bytes> for Bytes"]] +};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/docs/api-rust/implementors/core/convert/trait.AsRef.js b/docs/api-rust/implementors/core/convert/trait.AsRef.js new file mode 100644 index 000000000..4ec14195a --- /dev/null +++ b/docs/api-rust/implementors/core/convert/trait.AsRef.js @@ -0,0 +1,3 @@ +(function() {var implementors = { +"casper_rust_wasm_sdk":[["impl AsRef<[u8]> for Digest"],["impl AsRef<[u8]> for Bytes"]] +};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/docs/api-rust/implementors/core/convert/trait.From.js b/docs/api-rust/implementors/core/convert/trait.From.js new file mode 100644 index 000000000..aeb0d621f --- /dev/null +++ b/docs/api-rust/implementors/core/convert/trait.From.js @@ -0,0 +1,3 @@ +(function() {var implementors = { +"casper_rust_wasm_sdk":[["impl From<DeployHash> for DeployHash"],["impl From<Path> for Vec<String>"],["impl From<QueryGlobalStateResult> for JsValue"],["impl From<Digest> for Digest"],["impl From<AccountHash> for PurseIdentifier"],["impl From<ContractHash> for ContractHash"],["impl From<PublicKey> for PublicKey"],["impl From<AccountHash> for JsValue"],["impl From<[u8; 32]> for DictionaryAddr"],["impl From<Error> for SdkError"],["impl From<AccountIdentifier> for AccountHash"],["impl From<DictionaryItemIdentifier> for JsValue"],["impl From<EraId> for EraId"],["impl From<PurseIdentifier> for PublicKey"],["impl From<BlockIdentifier> for JsValue"],["impl From<PublicKey> for JsValue"],["impl From<PeerEntry> for PeerEntry"],["impl From<Vec<u8, Global>> for TransferAddr"],["impl From<URef> for URef"],["impl From<AccessRights> for AccessRights"],["impl From<Digest> for DeployHash"],["impl From<AccountHash> for AccountHash"],["impl From<AccountHash> for AccountIdentifier"],["impl From<BlockIdentifier> for BlockIdentifier"],["impl From<HashAddr> for JsValue"],["impl From<AccountHash> for AccountHash"],["impl From<PeerEntry> for JsValue"],["impl From<Digest> for BlockHash"],["impl From<DeployHash> for JsValue"],["impl From<PublicKey> for PublicKey"],["impl From<PublicKey> for PurseIdentifier"],["impl From<String> for Verbosity"],["impl From<DictionaryItemIdentifier> for DictionaryItemIdentifier"],["impl From<Bytes> for JsValue"],["impl From<Verbosity> for Verbosity"],["impl From<EraId> for EraId"],["impl From<BlockHash> for BlockHash"],["impl From<PurseIdentifier> for JsValue"],["impl From<DeployHash> for DeployHash"],["impl From<HashAddr> for HashAddr"],["impl From<DeployStrParams> for JsValue"],["impl From<URefAddr> for JsValue"],["impl From<SDK> for JsValue"],["impl From<Deploy> for JsValue"],["impl From<BlockHash> for BlockHash"],["impl From<BlockIdentifier> for BlockIdentifier"],["impl From<Vec<String, Global>> for ArgsSimple"],["impl From<Vec<u8, Global>> for Bytes"],["impl From<&[u8]> for Bytes"],["impl From<Path> for JsValue"],["impl From<URef> for JsValue"],["impl From<AccountIdentifier> for JsValue"],["impl From<String> for Path"],["impl From<ContractHash> for ContractHash"],["impl From<BlockHash> for JsValue"],["impl From<TransferAddr> for JsValue"],["impl From<DictionaryItemStrParams> for JsValue"],["impl From<&str> for Digest"],["impl From<[u8; 32]> for HashAddr"],["impl From<Key> for Key"],["impl From<Deploy> for Deploy"],["impl From<ArgsSimple> for Vec<String>"],["impl From<u64> for Verbosity"],["impl From<EraId> for JsValue"],["impl From<Bytes> for Vec<u8>"],["impl From<CliError> for SdkError"],["impl From<CLValueError> for SdkError"],["impl From<QueryGlobalStateResult> for QueryGlobalStateResult"],["impl From<Verbosity> for Verbosity"],["impl From<PublicKey> for AccountIdentifier"],["impl From<[u8; 32]> for Digest"],["impl From<Deploy> for Deploy"],["impl From<ContractPackageHash> for ContractPackageHash"],["impl From<Bytes> for Bytes"],["impl From<DictionaryAddr> for JsValue"],["impl From<ContractPackageHash> for JsValue"],["impl From<Vec<String, Global>> for Path"],["impl From<Verbosity> for u64"],["impl From<AccountIdentifier> for AccountIdentifier"],["impl From<Error> for SdkError"],["impl From<URefAddr> for URefAddr"],["impl From<PeerEntry> for PeerEntry"],["impl From<AccountIdentifier> for PublicKey"],["impl From<URef> for PurseIdentifier"],["impl From<SessionStrParams> for JsValue"],["impl From<QueryGlobalStateOptions> for JsValue"],["impl From<Error> for SdkError"],["impl From<DeployHash> for DeployHash"],["impl From<[u8; 32]> for URefAddr"],["impl From<DeployHash> for DeployHash"],["impl From<Key> for Key"],["impl From<URef> for URef"],["impl From<GlobalStateIdentifier> for GlobalStateIdentifier"],["impl From<GlobalStateIdentifier> for JsValue"],["impl From<PurseIdentifier> for PurseIdentifier"],["impl From<Bytes> for Bytes"],["impl From<PurseIdentifier> for URef"],["impl From<PurseIdentifier> for PurseIdentifier"],["impl From<ContractPackageHash> for ContractPackageHash"],["impl From<DictionaryItemIdentifier> for DictionaryItemIdentifier"],["impl From<Digest> for JsValue"],["impl From<DictionaryAddr> for DictionaryAddr"],["impl From<PaymentStrParams> for JsValue"],["impl From<QueryGlobalStateResult> for QueryGlobalStateResult"],["impl From<GlobalStateIdentifier> for GlobalStateIdentifier"],["impl From<&str> for Verbosity"],["impl From<PurseIdentifier> for AccountHash"],["impl From<AccessRights> for JsValue"],["impl From<Digest> for Digest"],["impl From<AccountIdentifier> for AccountIdentifier"],["impl From<ArgsSimple> for JsValue"],["impl From<Key> for JsValue"],["impl From<AccessRights> for AccessRights"],["impl From<ContractHash> for JsValue"]] +};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/docs/api-rust/implementors/core/default/trait.Default.js b/docs/api-rust/implementors/core/default/trait.Default.js new file mode 100644 index 000000000..f6a4100d9 --- /dev/null +++ b/docs/api-rust/implementors/core/default/trait.Default.js @@ -0,0 +1,3 @@ +(function() {var implementors = { +"casper_rust_wasm_sdk":[["impl Default for SDK"],["impl Default for AccessRights"],["impl Default for Path"],["impl Default for Bytes"],["impl Default for DeployStrParams"],["impl Default for DictionaryItemStrParams"],["impl Default for EraId"],["impl Default for PaymentStrParams"],["impl Default for SessionStrParams"],["impl Default for ArgsSimple"],["impl Default for QueryGlobalStateOptions"]] +};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/docs/api-rust/implementors/core/error/trait.Error.js b/docs/api-rust/implementors/core/error/trait.Error.js new file mode 100644 index 000000000..39b141da2 --- /dev/null +++ b/docs/api-rust/implementors/core/error/trait.Error.js @@ -0,0 +1,3 @@ +(function() {var implementors = { +"casper_rust_wasm_sdk":[["impl Error for SdkError"]] +};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/docs/api-rust/implementors/core/fmt/trait.Debug.js b/docs/api-rust/implementors/core/fmt/trait.Debug.js new file mode 100644 index 000000000..0c82729dd --- /dev/null +++ b/docs/api-rust/implementors/core/fmt/trait.Debug.js @@ -0,0 +1,3 @@ +(function() {var implementors = { +"casper_rust_wasm_sdk":[["impl Debug for AccountHash"],["impl Debug for GetBalanceInput"],["impl Debug for DeployStrParams"],["impl Debug for PaymentStrParams"],["impl Debug for Deploy"],["impl Debug for PurseIdentifier"],["impl Debug for AccountNamedKey"],["impl Debug for GlobalStateIdentifier"],["impl Debug for PublicKey"],["impl Debug for DictionaryItemIdentifier"],["impl Debug for DeployHash"],["impl Debug for DictionaryItemStrParams"],["impl Debug for ContractHash"],["impl Debug for BlockIdentifierInput"],["impl Debug for DictionaryVariant"],["impl Debug for SessionStrParams"],["impl Debug for ContractNamedKey"],["impl Debug for ArgsSimple"],["impl Debug for KeyIdentifierInput"],["impl Debug for QueryGlobalStateResult"],["impl Debug for URef"],["impl Debug for AccessRights"],["impl Debug for Path"],["impl Debug for PathIdentifierInput"],["impl Debug for ContractPackageHash"],["impl Debug for EraId"],["impl Debug for SdkError"],["impl Debug for AccountIdentifier"],["impl Debug for Verbosity"],["impl Debug for QueryGlobalStateParams"],["impl Debug for Bytes"],["impl Debug for URefVariant"],["impl Debug for Digest"],["impl Debug for Key"],["impl Debug for QueryGlobalStateOptions"],["impl Debug for BlockIdentifier"],["impl Debug for PeerEntry"],["impl Debug for BlockHash"]] +};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/docs/api-rust/implementors/core/fmt/trait.Display.js b/docs/api-rust/implementors/core/fmt/trait.Display.js new file mode 100644 index 000000000..5d79db31d --- /dev/null +++ b/docs/api-rust/implementors/core/fmt/trait.Display.js @@ -0,0 +1,3 @@ +(function() {var implementors = { +"casper_rust_wasm_sdk":[["impl Display for SdkError"],["impl Display for Path"],["impl Display for PublicKey"]] +};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/docs/api-rust/implementors/core/hash/trait.Hash.js b/docs/api-rust/implementors/core/hash/trait.Hash.js new file mode 100644 index 000000000..0ac3711dc --- /dev/null +++ b/docs/api-rust/implementors/core/hash/trait.Hash.js @@ -0,0 +1,3 @@ +(function() {var implementors = { +"casper_rust_wasm_sdk":[["impl Hash for Bytes"]] +};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/docs/api-rust/implementors/core/iter/traits/collect/trait.FromIterator.js b/docs/api-rust/implementors/core/iter/traits/collect/trait.FromIterator.js new file mode 100644 index 000000000..1c8e2fbd4 --- /dev/null +++ b/docs/api-rust/implementors/core/iter/traits/collect/trait.FromIterator.js @@ -0,0 +1,3 @@ +(function() {var implementors = { +"casper_rust_wasm_sdk":[["impl FromIterator<JsValue> for ArgsSimple"]] +};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/docs/api-rust/implementors/core/marker/trait.Copy.js b/docs/api-rust/implementors/core/marker/trait.Copy.js new file mode 100644 index 000000000..3327a7fb2 --- /dev/null +++ b/docs/api-rust/implementors/core/marker/trait.Copy.js @@ -0,0 +1,3 @@ +(function() {var implementors = { +"casper_rust_wasm_sdk":[["impl Copy for EraId"],["impl Copy for Verbosity"],["impl Copy for BlockIdentifier"]] +};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/docs/api-rust/implementors/core/marker/trait.Freeze.js b/docs/api-rust/implementors/core/marker/trait.Freeze.js new file mode 100644 index 000000000..329aa6b1d --- /dev/null +++ b/docs/api-rust/implementors/core/marker/trait.Freeze.js @@ -0,0 +1,3 @@ +(function() {var implementors = { +"casper_rust_wasm_sdk":[["impl Freeze for AccessRights",1,["casper_rust_wasm_sdk::types::access_rights::AccessRights"]],["impl Freeze for AccountHash",1,["casper_rust_wasm_sdk::types::account_hash::AccountHash"]],["impl Freeze for AccountIdentifier",1,["casper_rust_wasm_sdk::types::account_identifier::AccountIdentifier"]],["impl Freeze for DictionaryAddr",1,["casper_rust_wasm_sdk::types::addr::dictionary_addr::DictionaryAddr"]],["impl Freeze for HashAddr",1,["casper_rust_wasm_sdk::types::addr::hash_addr::HashAddr"]],["impl Freeze for TransferAddr",1,["casper_rust_wasm_sdk::types::addr::transfer_addr::TransferAddr"]],["impl Freeze for URefAddr",1,["casper_rust_wasm_sdk::types::addr::uref_addr::URefAddr"]],["impl Freeze for BlockHash",1,["casper_rust_wasm_sdk::types::block_hash::BlockHash"]],["impl Freeze for BlockIdentifier",1,["casper_rust_wasm_sdk::types::block_identifier::BlockIdentifier"]],["impl Freeze for BlockIdentifierInput",1,["casper_rust_wasm_sdk::types::block_identifier::BlockIdentifierInput"]],["impl Freeze for Bytes",1,["casper_rust_wasm_sdk::types::cl::bytes::Bytes"]],["impl Freeze for ContractHash",1,["casper_rust_wasm_sdk::types::contract_hash::ContractHash"]],["impl Freeze for ContractPackageHash",1,["casper_rust_wasm_sdk::types::contract_package_hash::ContractPackageHash"]],["impl Freeze for Deploy",1,["casper_rust_wasm_sdk::types::deploy::Deploy"]],["impl Freeze for DeployHash",1,["casper_rust_wasm_sdk::types::deploy_hash::DeployHash"]],["impl Freeze for ArgsSimple",1,["casper_rust_wasm_sdk::types::deploy_params::args_simple::ArgsSimple"]],["impl !Freeze for DeployStrParams",1,["casper_rust_wasm_sdk::types::deploy_params::deploy_str_params::DeployStrParams"]],["impl !Freeze for AccountNamedKey",1,["casper_rust_wasm_sdk::types::deploy_params::dictionary_item_str_params::AccountNamedKey"]],["impl !Freeze for ContractNamedKey",1,["casper_rust_wasm_sdk::types::deploy_params::dictionary_item_str_params::ContractNamedKey"]],["impl !Freeze for URefVariant",1,["casper_rust_wasm_sdk::types::deploy_params::dictionary_item_str_params::URefVariant"]],["impl !Freeze for DictionaryVariant",1,["casper_rust_wasm_sdk::types::deploy_params::dictionary_item_str_params::DictionaryVariant"]],["impl !Freeze for DictionaryItemStrParams",1,["casper_rust_wasm_sdk::types::deploy_params::dictionary_item_str_params::DictionaryItemStrParams"]],["impl !Freeze for PaymentStrParams",1,["casper_rust_wasm_sdk::types::deploy_params::payment_str_params::PaymentStrParams"]],["impl !Freeze for SessionStrParams",1,["casper_rust_wasm_sdk::types::deploy_params::session_str_params::SessionStrParams"]],["impl Freeze for DictionaryItemIdentifier",1,["casper_rust_wasm_sdk::types::dictionary_item_identifier::DictionaryItemIdentifier"]],["impl Freeze for Digest",1,["casper_rust_wasm_sdk::types::digest::Digest"]],["impl Freeze for EraId",1,["casper_rust_wasm_sdk::types::era_id::EraId"]],["impl Freeze for GlobalStateIdentifier",1,["casper_rust_wasm_sdk::types::global_state_identifier::GlobalStateIdentifier"]],["impl Freeze for Key",1,["casper_rust_wasm_sdk::types::key::Key"]],["impl Freeze for Path",1,["casper_rust_wasm_sdk::types::path::Path"]],["impl Freeze for PeerEntry",1,["casper_rust_wasm_sdk::types::peer_entry::PeerEntry"]],["impl Freeze for PublicKey",1,["casper_rust_wasm_sdk::types::public_key::PublicKey"]],["impl Freeze for PurseIdentifier",1,["casper_rust_wasm_sdk::types::purse_identifier::PurseIdentifier"]],["impl Freeze for SdkError",1,["casper_rust_wasm_sdk::types::sdk_error::SdkError"]],["impl Freeze for URef",1,["casper_rust_wasm_sdk::types::uref::URef"]],["impl Freeze for Verbosity",1,["casper_rust_wasm_sdk::types::verbosity::Verbosity"]],["impl Freeze for GetBalanceInput",1,["casper_rust_wasm_sdk::sdk::rpcs::get_balance::GetBalanceInput"]],["impl !Freeze for DictionaryItemInput",1,["casper_rust_wasm_sdk::sdk::rpcs::get_dictionary_item::DictionaryItemInput"]],["impl Freeze for QueryGlobalStateResult",1,["casper_rust_wasm_sdk::sdk::rpcs::query_global_state::QueryGlobalStateResult"]],["impl Freeze for QueryGlobalStateOptions",1,["casper_rust_wasm_sdk::sdk::rpcs::query_global_state::QueryGlobalStateOptions"]],["impl Freeze for KeyIdentifierInput",1,["casper_rust_wasm_sdk::sdk::rpcs::query_global_state::KeyIdentifierInput"]],["impl Freeze for PathIdentifierInput",1,["casper_rust_wasm_sdk::sdk::rpcs::query_global_state::PathIdentifierInput"]],["impl Freeze for QueryGlobalStateParams",1,["casper_rust_wasm_sdk::sdk::rpcs::query_global_state::QueryGlobalStateParams"]],["impl Freeze for SDK",1,["casper_rust_wasm_sdk::sdk::SDK"]]] +};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/docs/api-rust/implementors/core/marker/trait.Send.js b/docs/api-rust/implementors/core/marker/trait.Send.js new file mode 100644 index 000000000..f4837f1cd --- /dev/null +++ b/docs/api-rust/implementors/core/marker/trait.Send.js @@ -0,0 +1,3 @@ +(function() {var implementors = { +"casper_rust_wasm_sdk":[["impl Send for AccessRights",1,["casper_rust_wasm_sdk::types::access_rights::AccessRights"]],["impl Send for AccountHash",1,["casper_rust_wasm_sdk::types::account_hash::AccountHash"]],["impl Send for AccountIdentifier",1,["casper_rust_wasm_sdk::types::account_identifier::AccountIdentifier"]],["impl Send for DictionaryAddr",1,["casper_rust_wasm_sdk::types::addr::dictionary_addr::DictionaryAddr"]],["impl Send for HashAddr",1,["casper_rust_wasm_sdk::types::addr::hash_addr::HashAddr"]],["impl Send for TransferAddr",1,["casper_rust_wasm_sdk::types::addr::transfer_addr::TransferAddr"]],["impl Send for URefAddr",1,["casper_rust_wasm_sdk::types::addr::uref_addr::URefAddr"]],["impl Send for BlockHash",1,["casper_rust_wasm_sdk::types::block_hash::BlockHash"]],["impl Send for BlockIdentifier",1,["casper_rust_wasm_sdk::types::block_identifier::BlockIdentifier"]],["impl Send for BlockIdentifierInput",1,["casper_rust_wasm_sdk::types::block_identifier::BlockIdentifierInput"]],["impl Send for Bytes",1,["casper_rust_wasm_sdk::types::cl::bytes::Bytes"]],["impl Send for ContractHash",1,["casper_rust_wasm_sdk::types::contract_hash::ContractHash"]],["impl Send for ContractPackageHash",1,["casper_rust_wasm_sdk::types::contract_package_hash::ContractPackageHash"]],["impl Send for Deploy",1,["casper_rust_wasm_sdk::types::deploy::Deploy"]],["impl Send for DeployHash",1,["casper_rust_wasm_sdk::types::deploy_hash::DeployHash"]],["impl Send for ArgsSimple",1,["casper_rust_wasm_sdk::types::deploy_params::args_simple::ArgsSimple"]],["impl Send for DeployStrParams",1,["casper_rust_wasm_sdk::types::deploy_params::deploy_str_params::DeployStrParams"]],["impl Send for AccountNamedKey",1,["casper_rust_wasm_sdk::types::deploy_params::dictionary_item_str_params::AccountNamedKey"]],["impl Send for ContractNamedKey",1,["casper_rust_wasm_sdk::types::deploy_params::dictionary_item_str_params::ContractNamedKey"]],["impl Send for URefVariant",1,["casper_rust_wasm_sdk::types::deploy_params::dictionary_item_str_params::URefVariant"]],["impl Send for DictionaryVariant",1,["casper_rust_wasm_sdk::types::deploy_params::dictionary_item_str_params::DictionaryVariant"]],["impl Send for DictionaryItemStrParams",1,["casper_rust_wasm_sdk::types::deploy_params::dictionary_item_str_params::DictionaryItemStrParams"]],["impl Send for PaymentStrParams",1,["casper_rust_wasm_sdk::types::deploy_params::payment_str_params::PaymentStrParams"]],["impl Send for SessionStrParams",1,["casper_rust_wasm_sdk::types::deploy_params::session_str_params::SessionStrParams"]],["impl Send for DictionaryItemIdentifier",1,["casper_rust_wasm_sdk::types::dictionary_item_identifier::DictionaryItemIdentifier"]],["impl Send for Digest",1,["casper_rust_wasm_sdk::types::digest::Digest"]],["impl Send for EraId",1,["casper_rust_wasm_sdk::types::era_id::EraId"]],["impl Send for GlobalStateIdentifier",1,["casper_rust_wasm_sdk::types::global_state_identifier::GlobalStateIdentifier"]],["impl Send for Key",1,["casper_rust_wasm_sdk::types::key::Key"]],["impl Send for Path",1,["casper_rust_wasm_sdk::types::path::Path"]],["impl Send for PeerEntry",1,["casper_rust_wasm_sdk::types::peer_entry::PeerEntry"]],["impl Send for PublicKey",1,["casper_rust_wasm_sdk::types::public_key::PublicKey"]],["impl Send for PurseIdentifier",1,["casper_rust_wasm_sdk::types::purse_identifier::PurseIdentifier"]],["impl Send for SdkError",1,["casper_rust_wasm_sdk::types::sdk_error::SdkError"]],["impl Send for URef",1,["casper_rust_wasm_sdk::types::uref::URef"]],["impl Send for Verbosity",1,["casper_rust_wasm_sdk::types::verbosity::Verbosity"]],["impl Send for GetBalanceInput",1,["casper_rust_wasm_sdk::sdk::rpcs::get_balance::GetBalanceInput"]],["impl Send for DictionaryItemInput",1,["casper_rust_wasm_sdk::sdk::rpcs::get_dictionary_item::DictionaryItemInput"]],["impl Send for QueryGlobalStateResult",1,["casper_rust_wasm_sdk::sdk::rpcs::query_global_state::QueryGlobalStateResult"]],["impl Send for QueryGlobalStateOptions",1,["casper_rust_wasm_sdk::sdk::rpcs::query_global_state::QueryGlobalStateOptions"]],["impl Send for KeyIdentifierInput",1,["casper_rust_wasm_sdk::sdk::rpcs::query_global_state::KeyIdentifierInput"]],["impl Send for PathIdentifierInput",1,["casper_rust_wasm_sdk::sdk::rpcs::query_global_state::PathIdentifierInput"]],["impl Send for QueryGlobalStateParams",1,["casper_rust_wasm_sdk::sdk::rpcs::query_global_state::QueryGlobalStateParams"]],["impl Send for SDK",1,["casper_rust_wasm_sdk::sdk::SDK"]]] +};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/docs/api-rust/implementors/core/marker/trait.StructuralEq.js b/docs/api-rust/implementors/core/marker/trait.StructuralEq.js new file mode 100644 index 000000000..07299326b --- /dev/null +++ b/docs/api-rust/implementors/core/marker/trait.StructuralEq.js @@ -0,0 +1,3 @@ +(function() {var implementors = { +"casper_rust_wasm_sdk":[["impl StructuralEq for Bytes"],["impl StructuralEq for PublicKey"],["impl StructuralEq for EraId"]] +};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/docs/api-rust/implementors/core/marker/trait.StructuralPartialEq.js b/docs/api-rust/implementors/core/marker/trait.StructuralPartialEq.js new file mode 100644 index 000000000..24ab1eb7b --- /dev/null +++ b/docs/api-rust/implementors/core/marker/trait.StructuralPartialEq.js @@ -0,0 +1,3 @@ +(function() {var implementors = { +"casper_rust_wasm_sdk":[["impl StructuralPartialEq for Bytes"],["impl StructuralPartialEq for Verbosity"],["impl StructuralPartialEq for EraId"],["impl StructuralPartialEq for PublicKey"]] +};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/docs/api-rust/implementors/core/marker/trait.Sync.js b/docs/api-rust/implementors/core/marker/trait.Sync.js new file mode 100644 index 000000000..902e97441 --- /dev/null +++ b/docs/api-rust/implementors/core/marker/trait.Sync.js @@ -0,0 +1,3 @@ +(function() {var implementors = { +"casper_rust_wasm_sdk":[["impl Sync for AccessRights",1,["casper_rust_wasm_sdk::types::access_rights::AccessRights"]],["impl Sync for AccountHash",1,["casper_rust_wasm_sdk::types::account_hash::AccountHash"]],["impl Sync for AccountIdentifier",1,["casper_rust_wasm_sdk::types::account_identifier::AccountIdentifier"]],["impl Sync for DictionaryAddr",1,["casper_rust_wasm_sdk::types::addr::dictionary_addr::DictionaryAddr"]],["impl Sync for HashAddr",1,["casper_rust_wasm_sdk::types::addr::hash_addr::HashAddr"]],["impl Sync for TransferAddr",1,["casper_rust_wasm_sdk::types::addr::transfer_addr::TransferAddr"]],["impl Sync for URefAddr",1,["casper_rust_wasm_sdk::types::addr::uref_addr::URefAddr"]],["impl Sync for BlockHash",1,["casper_rust_wasm_sdk::types::block_hash::BlockHash"]],["impl Sync for BlockIdentifier",1,["casper_rust_wasm_sdk::types::block_identifier::BlockIdentifier"]],["impl Sync for BlockIdentifierInput",1,["casper_rust_wasm_sdk::types::block_identifier::BlockIdentifierInput"]],["impl Sync for Bytes",1,["casper_rust_wasm_sdk::types::cl::bytes::Bytes"]],["impl Sync for ContractHash",1,["casper_rust_wasm_sdk::types::contract_hash::ContractHash"]],["impl Sync for ContractPackageHash",1,["casper_rust_wasm_sdk::types::contract_package_hash::ContractPackageHash"]],["impl Sync for Deploy",1,["casper_rust_wasm_sdk::types::deploy::Deploy"]],["impl Sync for DeployHash",1,["casper_rust_wasm_sdk::types::deploy_hash::DeployHash"]],["impl Sync for ArgsSimple",1,["casper_rust_wasm_sdk::types::deploy_params::args_simple::ArgsSimple"]],["impl Sync for DeployStrParams",1,["casper_rust_wasm_sdk::types::deploy_params::deploy_str_params::DeployStrParams"]],["impl Sync for AccountNamedKey",1,["casper_rust_wasm_sdk::types::deploy_params::dictionary_item_str_params::AccountNamedKey"]],["impl Sync for ContractNamedKey",1,["casper_rust_wasm_sdk::types::deploy_params::dictionary_item_str_params::ContractNamedKey"]],["impl Sync for URefVariant",1,["casper_rust_wasm_sdk::types::deploy_params::dictionary_item_str_params::URefVariant"]],["impl Sync for DictionaryVariant",1,["casper_rust_wasm_sdk::types::deploy_params::dictionary_item_str_params::DictionaryVariant"]],["impl Sync for DictionaryItemStrParams",1,["casper_rust_wasm_sdk::types::deploy_params::dictionary_item_str_params::DictionaryItemStrParams"]],["impl Sync for PaymentStrParams",1,["casper_rust_wasm_sdk::types::deploy_params::payment_str_params::PaymentStrParams"]],["impl Sync for SessionStrParams",1,["casper_rust_wasm_sdk::types::deploy_params::session_str_params::SessionStrParams"]],["impl Sync for DictionaryItemIdentifier",1,["casper_rust_wasm_sdk::types::dictionary_item_identifier::DictionaryItemIdentifier"]],["impl Sync for Digest",1,["casper_rust_wasm_sdk::types::digest::Digest"]],["impl Sync for EraId",1,["casper_rust_wasm_sdk::types::era_id::EraId"]],["impl Sync for GlobalStateIdentifier",1,["casper_rust_wasm_sdk::types::global_state_identifier::GlobalStateIdentifier"]],["impl Sync for Key",1,["casper_rust_wasm_sdk::types::key::Key"]],["impl Sync for Path",1,["casper_rust_wasm_sdk::types::path::Path"]],["impl Sync for PeerEntry",1,["casper_rust_wasm_sdk::types::peer_entry::PeerEntry"]],["impl Sync for PublicKey",1,["casper_rust_wasm_sdk::types::public_key::PublicKey"]],["impl Sync for PurseIdentifier",1,["casper_rust_wasm_sdk::types::purse_identifier::PurseIdentifier"]],["impl Sync for SdkError",1,["casper_rust_wasm_sdk::types::sdk_error::SdkError"]],["impl Sync for URef",1,["casper_rust_wasm_sdk::types::uref::URef"]],["impl Sync for Verbosity",1,["casper_rust_wasm_sdk::types::verbosity::Verbosity"]],["impl Sync for GetBalanceInput",1,["casper_rust_wasm_sdk::sdk::rpcs::get_balance::GetBalanceInput"]],["impl Sync for DictionaryItemInput",1,["casper_rust_wasm_sdk::sdk::rpcs::get_dictionary_item::DictionaryItemInput"]],["impl Sync for QueryGlobalStateResult",1,["casper_rust_wasm_sdk::sdk::rpcs::query_global_state::QueryGlobalStateResult"]],["impl Sync for QueryGlobalStateOptions",1,["casper_rust_wasm_sdk::sdk::rpcs::query_global_state::QueryGlobalStateOptions"]],["impl Sync for KeyIdentifierInput",1,["casper_rust_wasm_sdk::sdk::rpcs::query_global_state::KeyIdentifierInput"]],["impl Sync for PathIdentifierInput",1,["casper_rust_wasm_sdk::sdk::rpcs::query_global_state::PathIdentifierInput"]],["impl Sync for QueryGlobalStateParams",1,["casper_rust_wasm_sdk::sdk::rpcs::query_global_state::QueryGlobalStateParams"]],["impl Sync for SDK",1,["casper_rust_wasm_sdk::sdk::SDK"]]] +};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/docs/api-rust/implementors/core/marker/trait.Unpin.js b/docs/api-rust/implementors/core/marker/trait.Unpin.js new file mode 100644 index 000000000..2c2b63ca6 --- /dev/null +++ b/docs/api-rust/implementors/core/marker/trait.Unpin.js @@ -0,0 +1,3 @@ +(function() {var implementors = { +"casper_rust_wasm_sdk":[["impl Unpin for AccessRights",1,["casper_rust_wasm_sdk::types::access_rights::AccessRights"]],["impl Unpin for AccountHash",1,["casper_rust_wasm_sdk::types::account_hash::AccountHash"]],["impl Unpin for AccountIdentifier",1,["casper_rust_wasm_sdk::types::account_identifier::AccountIdentifier"]],["impl Unpin for DictionaryAddr",1,["casper_rust_wasm_sdk::types::addr::dictionary_addr::DictionaryAddr"]],["impl Unpin for HashAddr",1,["casper_rust_wasm_sdk::types::addr::hash_addr::HashAddr"]],["impl Unpin for TransferAddr",1,["casper_rust_wasm_sdk::types::addr::transfer_addr::TransferAddr"]],["impl Unpin for URefAddr",1,["casper_rust_wasm_sdk::types::addr::uref_addr::URefAddr"]],["impl Unpin for BlockHash",1,["casper_rust_wasm_sdk::types::block_hash::BlockHash"]],["impl Unpin for BlockIdentifier",1,["casper_rust_wasm_sdk::types::block_identifier::BlockIdentifier"]],["impl Unpin for BlockIdentifierInput",1,["casper_rust_wasm_sdk::types::block_identifier::BlockIdentifierInput"]],["impl Unpin for Bytes",1,["casper_rust_wasm_sdk::types::cl::bytes::Bytes"]],["impl Unpin for ContractHash",1,["casper_rust_wasm_sdk::types::contract_hash::ContractHash"]],["impl Unpin for ContractPackageHash",1,["casper_rust_wasm_sdk::types::contract_package_hash::ContractPackageHash"]],["impl Unpin for Deploy",1,["casper_rust_wasm_sdk::types::deploy::Deploy"]],["impl Unpin for DeployHash",1,["casper_rust_wasm_sdk::types::deploy_hash::DeployHash"]],["impl Unpin for ArgsSimple",1,["casper_rust_wasm_sdk::types::deploy_params::args_simple::ArgsSimple"]],["impl Unpin for DeployStrParams",1,["casper_rust_wasm_sdk::types::deploy_params::deploy_str_params::DeployStrParams"]],["impl Unpin for AccountNamedKey",1,["casper_rust_wasm_sdk::types::deploy_params::dictionary_item_str_params::AccountNamedKey"]],["impl Unpin for ContractNamedKey",1,["casper_rust_wasm_sdk::types::deploy_params::dictionary_item_str_params::ContractNamedKey"]],["impl Unpin for URefVariant",1,["casper_rust_wasm_sdk::types::deploy_params::dictionary_item_str_params::URefVariant"]],["impl Unpin for DictionaryVariant",1,["casper_rust_wasm_sdk::types::deploy_params::dictionary_item_str_params::DictionaryVariant"]],["impl Unpin for DictionaryItemStrParams",1,["casper_rust_wasm_sdk::types::deploy_params::dictionary_item_str_params::DictionaryItemStrParams"]],["impl Unpin for PaymentStrParams",1,["casper_rust_wasm_sdk::types::deploy_params::payment_str_params::PaymentStrParams"]],["impl Unpin for SessionStrParams",1,["casper_rust_wasm_sdk::types::deploy_params::session_str_params::SessionStrParams"]],["impl Unpin for DictionaryItemIdentifier",1,["casper_rust_wasm_sdk::types::dictionary_item_identifier::DictionaryItemIdentifier"]],["impl Unpin for Digest",1,["casper_rust_wasm_sdk::types::digest::Digest"]],["impl Unpin for EraId",1,["casper_rust_wasm_sdk::types::era_id::EraId"]],["impl Unpin for GlobalStateIdentifier",1,["casper_rust_wasm_sdk::types::global_state_identifier::GlobalStateIdentifier"]],["impl Unpin for Key",1,["casper_rust_wasm_sdk::types::key::Key"]],["impl Unpin for Path",1,["casper_rust_wasm_sdk::types::path::Path"]],["impl Unpin for PeerEntry",1,["casper_rust_wasm_sdk::types::peer_entry::PeerEntry"]],["impl Unpin for PublicKey",1,["casper_rust_wasm_sdk::types::public_key::PublicKey"]],["impl Unpin for PurseIdentifier",1,["casper_rust_wasm_sdk::types::purse_identifier::PurseIdentifier"]],["impl Unpin for SdkError",1,["casper_rust_wasm_sdk::types::sdk_error::SdkError"]],["impl Unpin for URef",1,["casper_rust_wasm_sdk::types::uref::URef"]],["impl Unpin for Verbosity",1,["casper_rust_wasm_sdk::types::verbosity::Verbosity"]],["impl Unpin for GetBalanceInput",1,["casper_rust_wasm_sdk::sdk::rpcs::get_balance::GetBalanceInput"]],["impl Unpin for DictionaryItemInput",1,["casper_rust_wasm_sdk::sdk::rpcs::get_dictionary_item::DictionaryItemInput"]],["impl Unpin for QueryGlobalStateResult",1,["casper_rust_wasm_sdk::sdk::rpcs::query_global_state::QueryGlobalStateResult"]],["impl Unpin for QueryGlobalStateOptions",1,["casper_rust_wasm_sdk::sdk::rpcs::query_global_state::QueryGlobalStateOptions"]],["impl Unpin for KeyIdentifierInput",1,["casper_rust_wasm_sdk::sdk::rpcs::query_global_state::KeyIdentifierInput"]],["impl Unpin for PathIdentifierInput",1,["casper_rust_wasm_sdk::sdk::rpcs::query_global_state::PathIdentifierInput"]],["impl Unpin for QueryGlobalStateParams",1,["casper_rust_wasm_sdk::sdk::rpcs::query_global_state::QueryGlobalStateParams"]],["impl Unpin for SDK",1,["casper_rust_wasm_sdk::sdk::SDK"]]] +};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/docs/api-rust/implementors/core/ops/deref/trait.Deref.js b/docs/api-rust/implementors/core/ops/deref/trait.Deref.js new file mode 100644 index 000000000..7e5117465 --- /dev/null +++ b/docs/api-rust/implementors/core/ops/deref/trait.Deref.js @@ -0,0 +1,3 @@ +(function() {var implementors = { +"casper_rust_wasm_sdk":[["impl Deref for Bytes"]] +};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/docs/api-rust/implementors/core/panic/unwind_safe/trait.RefUnwindSafe.js b/docs/api-rust/implementors/core/panic/unwind_safe/trait.RefUnwindSafe.js new file mode 100644 index 000000000..b0a081ddd --- /dev/null +++ b/docs/api-rust/implementors/core/panic/unwind_safe/trait.RefUnwindSafe.js @@ -0,0 +1,3 @@ +(function() {var implementors = { +"casper_rust_wasm_sdk":[["impl RefUnwindSafe for AccessRights",1,["casper_rust_wasm_sdk::types::access_rights::AccessRights"]],["impl RefUnwindSafe for AccountHash",1,["casper_rust_wasm_sdk::types::account_hash::AccountHash"]],["impl RefUnwindSafe for AccountIdentifier",1,["casper_rust_wasm_sdk::types::account_identifier::AccountIdentifier"]],["impl RefUnwindSafe for DictionaryAddr",1,["casper_rust_wasm_sdk::types::addr::dictionary_addr::DictionaryAddr"]],["impl RefUnwindSafe for HashAddr",1,["casper_rust_wasm_sdk::types::addr::hash_addr::HashAddr"]],["impl RefUnwindSafe for TransferAddr",1,["casper_rust_wasm_sdk::types::addr::transfer_addr::TransferAddr"]],["impl RefUnwindSafe for URefAddr",1,["casper_rust_wasm_sdk::types::addr::uref_addr::URefAddr"]],["impl RefUnwindSafe for BlockHash",1,["casper_rust_wasm_sdk::types::block_hash::BlockHash"]],["impl RefUnwindSafe for BlockIdentifier",1,["casper_rust_wasm_sdk::types::block_identifier::BlockIdentifier"]],["impl RefUnwindSafe for BlockIdentifierInput",1,["casper_rust_wasm_sdk::types::block_identifier::BlockIdentifierInput"]],["impl RefUnwindSafe for Bytes",1,["casper_rust_wasm_sdk::types::cl::bytes::Bytes"]],["impl RefUnwindSafe for ContractHash",1,["casper_rust_wasm_sdk::types::contract_hash::ContractHash"]],["impl RefUnwindSafe for ContractPackageHash",1,["casper_rust_wasm_sdk::types::contract_package_hash::ContractPackageHash"]],["impl RefUnwindSafe for Deploy",1,["casper_rust_wasm_sdk::types::deploy::Deploy"]],["impl RefUnwindSafe for DeployHash",1,["casper_rust_wasm_sdk::types::deploy_hash::DeployHash"]],["impl RefUnwindSafe for ArgsSimple",1,["casper_rust_wasm_sdk::types::deploy_params::args_simple::ArgsSimple"]],["impl RefUnwindSafe for DeployStrParams",1,["casper_rust_wasm_sdk::types::deploy_params::deploy_str_params::DeployStrParams"]],["impl RefUnwindSafe for AccountNamedKey",1,["casper_rust_wasm_sdk::types::deploy_params::dictionary_item_str_params::AccountNamedKey"]],["impl RefUnwindSafe for ContractNamedKey",1,["casper_rust_wasm_sdk::types::deploy_params::dictionary_item_str_params::ContractNamedKey"]],["impl RefUnwindSafe for URefVariant",1,["casper_rust_wasm_sdk::types::deploy_params::dictionary_item_str_params::URefVariant"]],["impl RefUnwindSafe for DictionaryVariant",1,["casper_rust_wasm_sdk::types::deploy_params::dictionary_item_str_params::DictionaryVariant"]],["impl RefUnwindSafe for DictionaryItemStrParams",1,["casper_rust_wasm_sdk::types::deploy_params::dictionary_item_str_params::DictionaryItemStrParams"]],["impl RefUnwindSafe for PaymentStrParams",1,["casper_rust_wasm_sdk::types::deploy_params::payment_str_params::PaymentStrParams"]],["impl RefUnwindSafe for SessionStrParams",1,["casper_rust_wasm_sdk::types::deploy_params::session_str_params::SessionStrParams"]],["impl RefUnwindSafe for DictionaryItemIdentifier",1,["casper_rust_wasm_sdk::types::dictionary_item_identifier::DictionaryItemIdentifier"]],["impl RefUnwindSafe for Digest",1,["casper_rust_wasm_sdk::types::digest::Digest"]],["impl RefUnwindSafe for EraId",1,["casper_rust_wasm_sdk::types::era_id::EraId"]],["impl RefUnwindSafe for GlobalStateIdentifier",1,["casper_rust_wasm_sdk::types::global_state_identifier::GlobalStateIdentifier"]],["impl RefUnwindSafe for Key",1,["casper_rust_wasm_sdk::types::key::Key"]],["impl RefUnwindSafe for Path",1,["casper_rust_wasm_sdk::types::path::Path"]],["impl RefUnwindSafe for PeerEntry",1,["casper_rust_wasm_sdk::types::peer_entry::PeerEntry"]],["impl RefUnwindSafe for PublicKey",1,["casper_rust_wasm_sdk::types::public_key::PublicKey"]],["impl RefUnwindSafe for PurseIdentifier",1,["casper_rust_wasm_sdk::types::purse_identifier::PurseIdentifier"]],["impl !RefUnwindSafe for SdkError",1,["casper_rust_wasm_sdk::types::sdk_error::SdkError"]],["impl RefUnwindSafe for URef",1,["casper_rust_wasm_sdk::types::uref::URef"]],["impl RefUnwindSafe for Verbosity",1,["casper_rust_wasm_sdk::types::verbosity::Verbosity"]],["impl RefUnwindSafe for GetBalanceInput",1,["casper_rust_wasm_sdk::sdk::rpcs::get_balance::GetBalanceInput"]],["impl RefUnwindSafe for DictionaryItemInput",1,["casper_rust_wasm_sdk::sdk::rpcs::get_dictionary_item::DictionaryItemInput"]],["impl RefUnwindSafe for QueryGlobalStateResult",1,["casper_rust_wasm_sdk::sdk::rpcs::query_global_state::QueryGlobalStateResult"]],["impl RefUnwindSafe for QueryGlobalStateOptions",1,["casper_rust_wasm_sdk::sdk::rpcs::query_global_state::QueryGlobalStateOptions"]],["impl RefUnwindSafe for KeyIdentifierInput",1,["casper_rust_wasm_sdk::sdk::rpcs::query_global_state::KeyIdentifierInput"]],["impl RefUnwindSafe for PathIdentifierInput",1,["casper_rust_wasm_sdk::sdk::rpcs::query_global_state::PathIdentifierInput"]],["impl RefUnwindSafe for QueryGlobalStateParams",1,["casper_rust_wasm_sdk::sdk::rpcs::query_global_state::QueryGlobalStateParams"]],["impl RefUnwindSafe for SDK",1,["casper_rust_wasm_sdk::sdk::SDK"]]] +};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/docs/api-rust/implementors/core/panic/unwind_safe/trait.UnwindSafe.js b/docs/api-rust/implementors/core/panic/unwind_safe/trait.UnwindSafe.js new file mode 100644 index 000000000..e017c3d91 --- /dev/null +++ b/docs/api-rust/implementors/core/panic/unwind_safe/trait.UnwindSafe.js @@ -0,0 +1,3 @@ +(function() {var implementors = { +"casper_rust_wasm_sdk":[["impl UnwindSafe for AccessRights",1,["casper_rust_wasm_sdk::types::access_rights::AccessRights"]],["impl UnwindSafe for AccountHash",1,["casper_rust_wasm_sdk::types::account_hash::AccountHash"]],["impl UnwindSafe for AccountIdentifier",1,["casper_rust_wasm_sdk::types::account_identifier::AccountIdentifier"]],["impl UnwindSafe for DictionaryAddr",1,["casper_rust_wasm_sdk::types::addr::dictionary_addr::DictionaryAddr"]],["impl UnwindSafe for HashAddr",1,["casper_rust_wasm_sdk::types::addr::hash_addr::HashAddr"]],["impl UnwindSafe for TransferAddr",1,["casper_rust_wasm_sdk::types::addr::transfer_addr::TransferAddr"]],["impl UnwindSafe for URefAddr",1,["casper_rust_wasm_sdk::types::addr::uref_addr::URefAddr"]],["impl UnwindSafe for BlockHash",1,["casper_rust_wasm_sdk::types::block_hash::BlockHash"]],["impl UnwindSafe for BlockIdentifier",1,["casper_rust_wasm_sdk::types::block_identifier::BlockIdentifier"]],["impl UnwindSafe for BlockIdentifierInput",1,["casper_rust_wasm_sdk::types::block_identifier::BlockIdentifierInput"]],["impl UnwindSafe for Bytes",1,["casper_rust_wasm_sdk::types::cl::bytes::Bytes"]],["impl UnwindSafe for ContractHash",1,["casper_rust_wasm_sdk::types::contract_hash::ContractHash"]],["impl UnwindSafe for ContractPackageHash",1,["casper_rust_wasm_sdk::types::contract_package_hash::ContractPackageHash"]],["impl UnwindSafe for Deploy",1,["casper_rust_wasm_sdk::types::deploy::Deploy"]],["impl UnwindSafe for DeployHash",1,["casper_rust_wasm_sdk::types::deploy_hash::DeployHash"]],["impl UnwindSafe for ArgsSimple",1,["casper_rust_wasm_sdk::types::deploy_params::args_simple::ArgsSimple"]],["impl UnwindSafe for DeployStrParams",1,["casper_rust_wasm_sdk::types::deploy_params::deploy_str_params::DeployStrParams"]],["impl UnwindSafe for AccountNamedKey",1,["casper_rust_wasm_sdk::types::deploy_params::dictionary_item_str_params::AccountNamedKey"]],["impl UnwindSafe for ContractNamedKey",1,["casper_rust_wasm_sdk::types::deploy_params::dictionary_item_str_params::ContractNamedKey"]],["impl UnwindSafe for URefVariant",1,["casper_rust_wasm_sdk::types::deploy_params::dictionary_item_str_params::URefVariant"]],["impl UnwindSafe for DictionaryVariant",1,["casper_rust_wasm_sdk::types::deploy_params::dictionary_item_str_params::DictionaryVariant"]],["impl UnwindSafe for DictionaryItemStrParams",1,["casper_rust_wasm_sdk::types::deploy_params::dictionary_item_str_params::DictionaryItemStrParams"]],["impl UnwindSafe for PaymentStrParams",1,["casper_rust_wasm_sdk::types::deploy_params::payment_str_params::PaymentStrParams"]],["impl UnwindSafe for SessionStrParams",1,["casper_rust_wasm_sdk::types::deploy_params::session_str_params::SessionStrParams"]],["impl UnwindSafe for DictionaryItemIdentifier",1,["casper_rust_wasm_sdk::types::dictionary_item_identifier::DictionaryItemIdentifier"]],["impl UnwindSafe for Digest",1,["casper_rust_wasm_sdk::types::digest::Digest"]],["impl UnwindSafe for EraId",1,["casper_rust_wasm_sdk::types::era_id::EraId"]],["impl UnwindSafe for GlobalStateIdentifier",1,["casper_rust_wasm_sdk::types::global_state_identifier::GlobalStateIdentifier"]],["impl UnwindSafe for Key",1,["casper_rust_wasm_sdk::types::key::Key"]],["impl UnwindSafe for Path",1,["casper_rust_wasm_sdk::types::path::Path"]],["impl UnwindSafe for PeerEntry",1,["casper_rust_wasm_sdk::types::peer_entry::PeerEntry"]],["impl UnwindSafe for PublicKey",1,["casper_rust_wasm_sdk::types::public_key::PublicKey"]],["impl UnwindSafe for PurseIdentifier",1,["casper_rust_wasm_sdk::types::purse_identifier::PurseIdentifier"]],["impl !UnwindSafe for SdkError",1,["casper_rust_wasm_sdk::types::sdk_error::SdkError"]],["impl UnwindSafe for URef",1,["casper_rust_wasm_sdk::types::uref::URef"]],["impl UnwindSafe for Verbosity",1,["casper_rust_wasm_sdk::types::verbosity::Verbosity"]],["impl UnwindSafe for GetBalanceInput",1,["casper_rust_wasm_sdk::sdk::rpcs::get_balance::GetBalanceInput"]],["impl UnwindSafe for DictionaryItemInput",1,["casper_rust_wasm_sdk::sdk::rpcs::get_dictionary_item::DictionaryItemInput"]],["impl UnwindSafe for QueryGlobalStateResult",1,["casper_rust_wasm_sdk::sdk::rpcs::query_global_state::QueryGlobalStateResult"]],["impl UnwindSafe for QueryGlobalStateOptions",1,["casper_rust_wasm_sdk::sdk::rpcs::query_global_state::QueryGlobalStateOptions"]],["impl UnwindSafe for KeyIdentifierInput",1,["casper_rust_wasm_sdk::sdk::rpcs::query_global_state::KeyIdentifierInput"]],["impl UnwindSafe for PathIdentifierInput",1,["casper_rust_wasm_sdk::sdk::rpcs::query_global_state::PathIdentifierInput"]],["impl UnwindSafe for QueryGlobalStateParams",1,["casper_rust_wasm_sdk::sdk::rpcs::query_global_state::QueryGlobalStateParams"]],["impl UnwindSafe for SDK",1,["casper_rust_wasm_sdk::sdk::SDK"]]] +};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/docs/api-rust/implementors/serde/de/trait.Deserialize.js b/docs/api-rust/implementors/serde/de/trait.Deserialize.js new file mode 100644 index 000000000..c540af85e --- /dev/null +++ b/docs/api-rust/implementors/serde/de/trait.Deserialize.js @@ -0,0 +1,3 @@ +(function() {var implementors = { +"casper_rust_wasm_sdk":[["impl<'de> Deserialize<'de> for AccountNamedKey"],["impl<'de> Deserialize<'de> for DictionaryVariant"],["impl<'de> Deserialize<'de> for AccountHash"],["impl<'de> Deserialize<'de> for GlobalStateIdentifier"],["impl<'de> Deserialize<'de> for PublicKey"],["impl<'de> Deserialize<'de> for Path"],["impl<'de> Deserialize<'de> for DeployHash"],["impl<'de> Deserialize<'de> for Deploy"],["impl<'de> Deserialize<'de> for BlockIdentifier"],["impl<'de> Deserialize<'de> for Verbosity"],["impl<'de> Deserialize<'de> for QueryGlobalStateOptions"],["impl<'de> Deserialize<'de> for DictionaryItemIdentifier"],["impl<'de> Deserialize<'de> for PurseIdentifier"],["impl<'de> Deserialize<'de> for Key"],["impl<'de> Deserialize<'de> for URefVariant"],["impl<'de> Deserialize<'de> for BlockHash"],["impl<'de> Deserialize<'de> for PeerEntry"],["impl<'de> Deserialize<'de> for AccountIdentifier"],["impl<'de> Deserialize<'de> for URef"],["impl<'de> Deserialize<'de> for DictionaryItemStrParams"],["impl<'de> Deserialize<'de> for QueryGlobalStateResult"],["impl<'de> Deserialize<'de> for ContractNamedKey"],["impl<'de> Deserialize<'de> for Digest"]] +};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/docs/api-rust/implementors/serde/ser/trait.Serialize.js b/docs/api-rust/implementors/serde/ser/trait.Serialize.js new file mode 100644 index 000000000..d971b5513 --- /dev/null +++ b/docs/api-rust/implementors/serde/ser/trait.Serialize.js @@ -0,0 +1,3 @@ +(function() {var implementors = { +"casper_rust_wasm_sdk":[["impl Serialize for BlockHash"],["impl Serialize for DictionaryItemIdentifier"],["impl Serialize for Key"],["impl Serialize for DeployHash"],["impl Serialize for Verbosity"],["impl Serialize for Path"],["impl Serialize for BlockIdentifier"],["impl Serialize for URef"],["impl Serialize for DictionaryVariant"],["impl Serialize for URefVariant"],["impl Serialize for Deploy"],["impl Serialize for Digest"],["impl Serialize for GlobalStateIdentifier"],["impl Serialize for QueryGlobalStateOptions"],["impl Serialize for PeerEntry"],["impl Serialize for AccountIdentifier"],["impl Serialize for PublicKey"],["impl Serialize for PurseIdentifier"],["impl Serialize for AccountNamedKey"],["impl Serialize for QueryGlobalStateResult"],["impl Serialize for ContractNamedKey"],["impl Serialize for DictionaryItemStrParams"],["impl Serialize for AccountHash"]] +};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/docs/api-rust/implementors/wasm_bindgen/convert/traits/trait.FromWasmAbi.js b/docs/api-rust/implementors/wasm_bindgen/convert/traits/trait.FromWasmAbi.js new file mode 100644 index 000000000..4d9a190bc --- /dev/null +++ b/docs/api-rust/implementors/wasm_bindgen/convert/traits/trait.FromWasmAbi.js @@ -0,0 +1,3 @@ +(function() {var implementors = { +"casper_rust_wasm_sdk":[["impl FromWasmAbi for DictionaryItemStrParams"],["impl FromWasmAbi for PeerEntry"],["impl FromWasmAbi for Digest"],["impl FromWasmAbi for PaymentStrParams"],["impl FromWasmAbi for DictionaryItemIdentifier"],["impl FromWasmAbi for AccountHash"],["impl FromWasmAbi for ContractHash"],["impl FromWasmAbi for AccountIdentifier"],["impl FromWasmAbi for AccessRights"],["impl FromWasmAbi for Deploy"],["impl FromWasmAbi for ContractPackageHash"],["impl FromWasmAbi for TransferAddr"],["impl FromWasmAbi for DictionaryAddr"],["impl FromWasmAbi for URef"],["impl FromWasmAbi for Key"],["impl FromWasmAbi for ArgsSimple"],["impl FromWasmAbi for Verbosity"],["impl FromWasmAbi for SDK"],["impl FromWasmAbi for QueryGlobalStateOptions"],["impl FromWasmAbi for PurseIdentifier"],["impl FromWasmAbi for GlobalStateIdentifier"],["impl FromWasmAbi for Path"],["impl FromWasmAbi for BlockHash"],["impl FromWasmAbi for Bytes"],["impl FromWasmAbi for PublicKey"],["impl FromWasmAbi for SessionStrParams"],["impl FromWasmAbi for HashAddr"],["impl FromWasmAbi for DeployStrParams"],["impl FromWasmAbi for URefAddr"],["impl FromWasmAbi for BlockIdentifier"],["impl FromWasmAbi for DeployHash"],["impl FromWasmAbi for QueryGlobalStateResult"],["impl FromWasmAbi for EraId"]] +};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/docs/api-rust/implementors/wasm_bindgen/convert/traits/trait.IntoWasmAbi.js b/docs/api-rust/implementors/wasm_bindgen/convert/traits/trait.IntoWasmAbi.js new file mode 100644 index 000000000..514fc89f2 --- /dev/null +++ b/docs/api-rust/implementors/wasm_bindgen/convert/traits/trait.IntoWasmAbi.js @@ -0,0 +1,3 @@ +(function() {var implementors = { +"casper_rust_wasm_sdk":[["impl IntoWasmAbi for QueryGlobalStateResult"],["impl IntoWasmAbi for PublicKey"],["impl IntoWasmAbi for AccountIdentifier"],["impl IntoWasmAbi for GlobalStateIdentifier"],["impl IntoWasmAbi for PaymentStrParams"],["impl IntoWasmAbi for Deploy"],["impl IntoWasmAbi for DeployHash"],["impl IntoWasmAbi for DictionaryItemIdentifier"],["impl IntoWasmAbi for AccountHash"],["impl IntoWasmAbi for BlockIdentifier"],["impl IntoWasmAbi for SessionStrParams"],["impl IntoWasmAbi for ContractPackageHash"],["impl IntoWasmAbi for ArgsSimple"],["impl IntoWasmAbi for Bytes"],["impl IntoWasmAbi for HashAddr"],["impl IntoWasmAbi for URefAddr"],["impl IntoWasmAbi for DictionaryItemStrParams"],["impl IntoWasmAbi for EraId"],["impl IntoWasmAbi for AccessRights"],["impl IntoWasmAbi for URef"],["impl IntoWasmAbi for Digest"],["impl IntoWasmAbi for DictionaryAddr"],["impl IntoWasmAbi for Verbosity"],["impl IntoWasmAbi for Path"],["impl IntoWasmAbi for PurseIdentifier"],["impl IntoWasmAbi for BlockHash"],["impl IntoWasmAbi for QueryGlobalStateOptions"],["impl IntoWasmAbi for Key"],["impl IntoWasmAbi for TransferAddr"],["impl IntoWasmAbi for PeerEntry"],["impl IntoWasmAbi for DeployStrParams"],["impl IntoWasmAbi for ContractHash"],["impl IntoWasmAbi for SDK"]] +};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/docs/api-rust/implementors/wasm_bindgen/convert/traits/trait.LongRefFromWasmAbi.js b/docs/api-rust/implementors/wasm_bindgen/convert/traits/trait.LongRefFromWasmAbi.js new file mode 100644 index 000000000..7897ba407 --- /dev/null +++ b/docs/api-rust/implementors/wasm_bindgen/convert/traits/trait.LongRefFromWasmAbi.js @@ -0,0 +1,3 @@ +(function() {var implementors = { +"casper_rust_wasm_sdk":[["impl LongRefFromWasmAbi for DictionaryItemStrParams"],["impl LongRefFromWasmAbi for DeployStrParams"],["impl LongRefFromWasmAbi for TransferAddr"],["impl LongRefFromWasmAbi for EraId"],["impl LongRefFromWasmAbi for PublicKey"],["impl LongRefFromWasmAbi for HashAddr"],["impl LongRefFromWasmAbi for BlockIdentifier"],["impl LongRefFromWasmAbi for BlockHash"],["impl LongRefFromWasmAbi for Path"],["impl LongRefFromWasmAbi for AccessRights"],["impl LongRefFromWasmAbi for DictionaryItemIdentifier"],["impl LongRefFromWasmAbi for ArgsSimple"],["impl LongRefFromWasmAbi for URef"],["impl LongRefFromWasmAbi for Deploy"],["impl LongRefFromWasmAbi for DictionaryAddr"],["impl LongRefFromWasmAbi for ContractPackageHash"],["impl LongRefFromWasmAbi for PurseIdentifier"],["impl LongRefFromWasmAbi for ContractHash"],["impl LongRefFromWasmAbi for PeerEntry"],["impl LongRefFromWasmAbi for QueryGlobalStateOptions"],["impl LongRefFromWasmAbi for AccountIdentifier"],["impl LongRefFromWasmAbi for Bytes"],["impl LongRefFromWasmAbi for QueryGlobalStateResult"],["impl LongRefFromWasmAbi for Digest"],["impl LongRefFromWasmAbi for Key"],["impl LongRefFromWasmAbi for DeployHash"],["impl LongRefFromWasmAbi for PaymentStrParams"],["impl LongRefFromWasmAbi for AccountHash"],["impl LongRefFromWasmAbi for SessionStrParams"],["impl LongRefFromWasmAbi for URefAddr"],["impl LongRefFromWasmAbi for SDK"],["impl LongRefFromWasmAbi for GlobalStateIdentifier"]] +};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/docs/api-rust/implementors/wasm_bindgen/convert/traits/trait.OptionFromWasmAbi.js b/docs/api-rust/implementors/wasm_bindgen/convert/traits/trait.OptionFromWasmAbi.js new file mode 100644 index 000000000..662e6c7c9 --- /dev/null +++ b/docs/api-rust/implementors/wasm_bindgen/convert/traits/trait.OptionFromWasmAbi.js @@ -0,0 +1,3 @@ +(function() {var implementors = { +"casper_rust_wasm_sdk":[["impl OptionFromWasmAbi for ContractHash"],["impl OptionFromWasmAbi for PaymentStrParams"],["impl OptionFromWasmAbi for DictionaryAddr"],["impl OptionFromWasmAbi for HashAddr"],["impl OptionFromWasmAbi for Path"],["impl OptionFromWasmAbi for AccountHash"],["impl OptionFromWasmAbi for Key"],["impl OptionFromWasmAbi for PeerEntry"],["impl OptionFromWasmAbi for DeployHash"],["impl OptionFromWasmAbi for AccessRights"],["impl OptionFromWasmAbi for Verbosity"],["impl OptionFromWasmAbi for AccountIdentifier"],["impl OptionFromWasmAbi for EraId"],["impl OptionFromWasmAbi for DictionaryItemIdentifier"],["impl OptionFromWasmAbi for SDK"],["impl OptionFromWasmAbi for GlobalStateIdentifier"],["impl OptionFromWasmAbi for PublicKey"],["impl OptionFromWasmAbi for BlockIdentifier"],["impl OptionFromWasmAbi for DeployStrParams"],["impl OptionFromWasmAbi for Digest"],["impl OptionFromWasmAbi for TransferAddr"],["impl OptionFromWasmAbi for DictionaryItemStrParams"],["impl OptionFromWasmAbi for URef"],["impl OptionFromWasmAbi for URefAddr"],["impl OptionFromWasmAbi for ArgsSimple"],["impl OptionFromWasmAbi for SessionStrParams"],["impl OptionFromWasmAbi for BlockHash"],["impl OptionFromWasmAbi for QueryGlobalStateOptions"],["impl OptionFromWasmAbi for Bytes"],["impl OptionFromWasmAbi for ContractPackageHash"],["impl OptionFromWasmAbi for QueryGlobalStateResult"],["impl OptionFromWasmAbi for Deploy"],["impl OptionFromWasmAbi for PurseIdentifier"]] +};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/docs/api-rust/implementors/wasm_bindgen/convert/traits/trait.OptionIntoWasmAbi.js b/docs/api-rust/implementors/wasm_bindgen/convert/traits/trait.OptionIntoWasmAbi.js new file mode 100644 index 000000000..16bf225c3 --- /dev/null +++ b/docs/api-rust/implementors/wasm_bindgen/convert/traits/trait.OptionIntoWasmAbi.js @@ -0,0 +1,3 @@ +(function() {var implementors = { +"casper_rust_wasm_sdk":[["impl OptionIntoWasmAbi for URef"],["impl OptionIntoWasmAbi for AccountIdentifier"],["impl OptionIntoWasmAbi for DictionaryAddr"],["impl OptionIntoWasmAbi for BlockIdentifier"],["impl OptionIntoWasmAbi for Deploy"],["impl OptionIntoWasmAbi for DictionaryItemStrParams"],["impl OptionIntoWasmAbi for PaymentStrParams"],["impl OptionIntoWasmAbi for TransferAddr"],["impl OptionIntoWasmAbi for DeployStrParams"],["impl OptionIntoWasmAbi for ContractHash"],["impl OptionIntoWasmAbi for PurseIdentifier"],["impl OptionIntoWasmAbi for PeerEntry"],["impl OptionIntoWasmAbi for URefAddr"],["impl OptionIntoWasmAbi for DeployHash"],["impl OptionIntoWasmAbi for SessionStrParams"],["impl OptionIntoWasmAbi for QueryGlobalStateResult"],["impl OptionIntoWasmAbi for Digest"],["impl OptionIntoWasmAbi for QueryGlobalStateOptions"],["impl OptionIntoWasmAbi for DictionaryItemIdentifier"],["impl OptionIntoWasmAbi for Key"],["impl OptionIntoWasmAbi for BlockHash"],["impl OptionIntoWasmAbi for ArgsSimple"],["impl OptionIntoWasmAbi for AccessRights"],["impl OptionIntoWasmAbi for Verbosity"],["impl OptionIntoWasmAbi for PublicKey"],["impl OptionIntoWasmAbi for Bytes"],["impl OptionIntoWasmAbi for EraId"],["impl OptionIntoWasmAbi for SDK"],["impl OptionIntoWasmAbi for GlobalStateIdentifier"],["impl OptionIntoWasmAbi for HashAddr"],["impl OptionIntoWasmAbi for AccountHash"],["impl OptionIntoWasmAbi for ContractPackageHash"],["impl OptionIntoWasmAbi for Path"]] +};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/docs/api-rust/implementors/wasm_bindgen/convert/traits/trait.RefFromWasmAbi.js b/docs/api-rust/implementors/wasm_bindgen/convert/traits/trait.RefFromWasmAbi.js new file mode 100644 index 000000000..f560be7f9 --- /dev/null +++ b/docs/api-rust/implementors/wasm_bindgen/convert/traits/trait.RefFromWasmAbi.js @@ -0,0 +1,3 @@ +(function() {var implementors = { +"casper_rust_wasm_sdk":[["impl RefFromWasmAbi for AccessRights"],["impl RefFromWasmAbi for AccountHash"],["impl RefFromWasmAbi for SessionStrParams"],["impl RefFromWasmAbi for Digest"],["impl RefFromWasmAbi for DeployHash"],["impl RefFromWasmAbi for AccountIdentifier"],["impl RefFromWasmAbi for DictionaryItemIdentifier"],["impl RefFromWasmAbi for DictionaryAddr"],["impl RefFromWasmAbi for PaymentStrParams"],["impl RefFromWasmAbi for ArgsSimple"],["impl RefFromWasmAbi for ContractPackageHash"],["impl RefFromWasmAbi for Key"],["impl RefFromWasmAbi for PurseIdentifier"],["impl RefFromWasmAbi for GlobalStateIdentifier"],["impl RefFromWasmAbi for BlockIdentifier"],["impl RefFromWasmAbi for Bytes"],["impl RefFromWasmAbi for DictionaryItemStrParams"],["impl RefFromWasmAbi for SDK"],["impl RefFromWasmAbi for URef"],["impl RefFromWasmAbi for URefAddr"],["impl RefFromWasmAbi for PublicKey"],["impl RefFromWasmAbi for Path"],["impl RefFromWasmAbi for QueryGlobalStateResult"],["impl RefFromWasmAbi for BlockHash"],["impl RefFromWasmAbi for DeployStrParams"],["impl RefFromWasmAbi for TransferAddr"],["impl RefFromWasmAbi for ContractHash"],["impl RefFromWasmAbi for Deploy"],["impl RefFromWasmAbi for PeerEntry"],["impl RefFromWasmAbi for QueryGlobalStateOptions"],["impl RefFromWasmAbi for HashAddr"],["impl RefFromWasmAbi for EraId"]] +};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/docs/api-rust/implementors/wasm_bindgen/convert/traits/trait.RefMutFromWasmAbi.js b/docs/api-rust/implementors/wasm_bindgen/convert/traits/trait.RefMutFromWasmAbi.js new file mode 100644 index 000000000..c6a9f2d6b --- /dev/null +++ b/docs/api-rust/implementors/wasm_bindgen/convert/traits/trait.RefMutFromWasmAbi.js @@ -0,0 +1,3 @@ +(function() {var implementors = { +"casper_rust_wasm_sdk":[["impl RefMutFromWasmAbi for ContractPackageHash"],["impl RefMutFromWasmAbi for PeerEntry"],["impl RefMutFromWasmAbi for URefAddr"],["impl RefMutFromWasmAbi for DeployHash"],["impl RefMutFromWasmAbi for SDK"],["impl RefMutFromWasmAbi for URef"],["impl RefMutFromWasmAbi for EraId"],["impl RefMutFromWasmAbi for QueryGlobalStateResult"],["impl RefMutFromWasmAbi for Key"],["impl RefMutFromWasmAbi for DictionaryItemIdentifier"],["impl RefMutFromWasmAbi for Deploy"],["impl RefMutFromWasmAbi for BlockIdentifier"],["impl RefMutFromWasmAbi for Bytes"],["impl RefMutFromWasmAbi for AccountHash"],["impl RefMutFromWasmAbi for PublicKey"],["impl RefMutFromWasmAbi for AccessRights"],["impl RefMutFromWasmAbi for QueryGlobalStateOptions"],["impl RefMutFromWasmAbi for PurseIdentifier"],["impl RefMutFromWasmAbi for Digest"],["impl RefMutFromWasmAbi for BlockHash"],["impl RefMutFromWasmAbi for DictionaryItemStrParams"],["impl RefMutFromWasmAbi for ContractHash"],["impl RefMutFromWasmAbi for ArgsSimple"],["impl RefMutFromWasmAbi for AccountIdentifier"],["impl RefMutFromWasmAbi for PaymentStrParams"],["impl RefMutFromWasmAbi for DictionaryAddr"],["impl RefMutFromWasmAbi for GlobalStateIdentifier"],["impl RefMutFromWasmAbi for Path"],["impl RefMutFromWasmAbi for HashAddr"],["impl RefMutFromWasmAbi for SessionStrParams"],["impl RefMutFromWasmAbi for DeployStrParams"],["impl RefMutFromWasmAbi for TransferAddr"]] +};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/docs/api-rust/implementors/wasm_bindgen/describe/trait.WasmDescribe.js b/docs/api-rust/implementors/wasm_bindgen/describe/trait.WasmDescribe.js new file mode 100644 index 000000000..4261d2958 --- /dev/null +++ b/docs/api-rust/implementors/wasm_bindgen/describe/trait.WasmDescribe.js @@ -0,0 +1,3 @@ +(function() {var implementors = { +"casper_rust_wasm_sdk":[["impl WasmDescribe for Digest"],["impl WasmDescribe for Path"],["impl WasmDescribe for URef"],["impl WasmDescribe for URefAddr"],["impl WasmDescribe for PaymentStrParams"],["impl WasmDescribe for ContractPackageHash"],["impl WasmDescribe for GlobalStateIdentifier"],["impl WasmDescribe for Key"],["impl WasmDescribe for AccountIdentifier"],["impl WasmDescribe for DeployHash"],["impl WasmDescribe for DictionaryItemStrParams"],["impl WasmDescribe for DictionaryAddr"],["impl WasmDescribe for Verbosity"],["impl WasmDescribe for ContractHash"],["impl WasmDescribe for QueryGlobalStateOptions"],["impl WasmDescribe for QueryGlobalStateResult"],["impl WasmDescribe for DeployStrParams"],["impl WasmDescribe for DictionaryItemIdentifier"],["impl WasmDescribe for AccessRights"],["impl WasmDescribe for SDK"],["impl WasmDescribe for BlockIdentifier"],["impl WasmDescribe for SessionStrParams"],["impl WasmDescribe for BlockHash"],["impl WasmDescribe for HashAddr"],["impl WasmDescribe for AccountHash"],["impl WasmDescribe for PurseIdentifier"],["impl WasmDescribe for PublicKey"],["impl WasmDescribe for PeerEntry"],["impl WasmDescribe for ArgsSimple"],["impl WasmDescribe for Bytes"],["impl WasmDescribe for Deploy"],["impl WasmDescribe for EraId"],["impl WasmDescribe for TransferAddr"]] +};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/docs/api-rust/search-index.js b/docs/api-rust/search-index.js new file mode 100644 index 000000000..e296e48c4 --- /dev/null +++ b/docs/api-rust/search-index.js @@ -0,0 +1,5 @@ +var searchIndex = JSON.parse('{\ +"casper_rust_wasm_sdk":{"doc":"","t":"DLLALALALLLLLLLLLLLLLLLLLLLLAALLLLLLLLLLLLALALLLLLLALLLALLALALLLLALFFFFFFFFFFFFFAAAAAAAAAAAAAAAAAAAENNLLLLLLLLLLLLLENNLLLLLLLLNENEDDDNNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLMLLLLLLLLLMMMLLMMMMMLLMMMLLLLLLLLMMMLLLLLLLLLLLLLLLLLLLMMLLLLLAAAAAAAAAAAAAAAAAAAAAAAADLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLDLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLDLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLAAAADLLLLLLLLLLLLLLLLLLLDLLLLLLLLLLLLLLLLLLLDLLLLLLFLLLLLLLLLLLLLDLLLLLLLLLLLLLLLLLLLDLLLLLLLLLLLLLLLLLLLLLLLLLLLLLDNENLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLADLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLDLLLLLLLLLLLLLLLLLLLLLLLLLLLDLLLLLLLLLLLLLLLLLLLLLLLLLLLDLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLDLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLAAAAADLLLLLLLLLLLLLLLLLLLLLLLLLLLDLLLLLLLFLLLLLLLLLLLLLLLLLLLLLLLLLLLLLDDDDDLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLFLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLDLLLLLLLLLLLLLLLLLLLLLLLLLLFLLLLLLLLLLLLLLLLLLLLDLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLFLLLLLLLLLLLLLLLLLLLDLLLLLLLLLLLLLLLLLLLLLLLLLLLLLDILLLLLLLLLLLLLLLLLLLLLKLLLLLLLLLLLLKLLLLLLLLDLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLDLLLLLLLLLLLLLLLLLLLLLLLLLLLLLDLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLDLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLDLLLLLLLLLLLLLLLLLLLLLLLLLLLDLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLDLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNNNNNNNNNNNNNELLLLLLLLLLLLLLLLLMMMMMMMMMMMMMMMMMMMMMMDLLLLLLLLLLLLLLLLLLLLLLLLLLLLLNNNELLLLLLLLLLLLLLLLLLLLLLLLLL","n":["SDK","borrow","borrow_mut","call_entrypoint","call_entrypoint","debug","default","deploy","deploy","describe","from","from_abi","get_account","get_auction_info","get_balance","get_block","get_block_transfers","get_chainspec","get_deploy","get_dictionary_item","get_era_info","get_era_summary","get_node_address","get_node_status","get_peers","get_state_root_hash","get_validator_changes","get_verbosity","helpers","install","install","into","into_abi","is_none","list_rpcs","long_ref_from_abi","make_deploy","make_transfer","new","none","put_deploy","query_balance","query_contract_dict","query_contract_dict","query_contract_key","query_contract_key","query_global_state","query_global_state_js_alias_params","ref_from_abi","ref_mut_from_abi","return_abi","rpcs","set_node_address","set_verbosity","sign_deploy","speculative_deploy","speculative_deploy","speculative_exec","speculative_transfer","speculative_transfer","transfer","transfer","try_from","try_into","type_id","types","vzip","cl_value_to_json","get_current_timestamp","get_gas_price_or_default","get_ttl_or_default","hex_to_string","hex_to_uint8_vec","insert_js_value_arg","json_pretty_print","motes_to_cspr","parse_timestamp","parse_ttl","public_key_from_private_key","secret_key_from_pem","get_account","get_auction_info","get_balance","get_block","get_block_transfers","get_chainspec","get_deploy","get_dictionary_item","get_era_info","get_era_summary","get_node_status","get_peers","get_state_root_hash","get_validator_changes","list_rpcs","put_deploy","query_balance","query_global_state","speculative_exec","GetBalanceInput","PurseUref","PurseUrefAsString","__clone_box","borrow","borrow_mut","clone","clone_into","fmt","from","into","to_owned","try_from","try_into","type_id","vzip","DictionaryItemInput","Identifier","Params","borrow","borrow_mut","from","into","try_from","try_into","type_id","vzip","Key","KeyIdentifierInput","Path","PathIdentifierInput","QueryGlobalStateOptions","QueryGlobalStateParams","QueryGlobalStateResult","String","String","__clone_box","__clone_box","__clone_box","__clone_box","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","clone","clone","clone","clone","clone_into","clone_into","clone_into","clone_into","default","describe","describe","deserialize","deserialize","fmt","fmt","fmt","fmt","fmt","from","from","from","from","from","from","from_abi","from_abi","global_state_identifier","into","into","into","into","into","into_abi","into_abi","is_none","is_none","key","key","key_as_string","long_ref_from_abi","long_ref_from_abi","maybe_block_id","maybe_block_id_as_string","maybe_global_state_identifier","node_address","node_address","none","none","path","path","path_as_string","ref_from_abi","ref_from_abi","ref_mut_from_abi","ref_mut_from_abi","return_abi","return_abi","serialize","serialize","state_root_hash","state_root_hash","state_root_hash_as_string","to_owned","to_owned","to_owned","to_owned","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","type_id","verbosity","verbosity","vzip","vzip","vzip","vzip","vzip","access_rights","account_hash","account_identifier","addr","block_hash","block_identifier","cl","contract_hash","contract_package_hash","deploy","deploy_hash","deploy_params","dictionary_item_identifier","digest","era_id","global_state_identifier","key","path","peer_entry","public_key","purse_identifier","sdk_error","uref","verbosity","AccessRights","add","add_write","borrow","borrow_mut","default","describe","fmt","from","from","from_abi","from_bits","into","into_abi","is_addable","is_none","is_none","is_readable","is_writeable","long_ref_from_abi","new","none","none","read","read_add","read_add_write","read_write","ref_from_abi","ref_mut_from_abi","return_abi","try_from","try_into","type_id","vzip","write","AccountHash","__clone_box","borrow","borrow_mut","clone","clone_into","describe","deserialize","fmt","from","from","from","from","from_abi","from_bytes","from_bytes","from_formatted_str","from_public_key","into","into_abi","is_none","long_ref_from_abi","new","none","ref_from_abi","ref_mut_from_abi","return_abi","serialize","serialized_length","to_bytes","to_formatted_string","to_owned","try_from","try_into","type_id","vzip","write_bytes","AccountIdentifier","__clone_box","borrow","borrow_mut","clone","clone_into","describe","deserialize","fmt","from","from","from","from","from_abi","from_account_account_under_public_key","from_account_under_account_hash","from_formatted_str","into","into_abi","is_none","long_ref_from_abi","new","none","ref_from_abi","ref_mut_from_abi","return_abi","serialize","to_owned","to_string","try_from","try_into","type_id","vzip","dictionary_addr","hash_addr","transfer_addr","uref_addr","DictionaryAddr","borrow","borrow_mut","describe","from","from","from_abi","into","into_abi","is_none","long_ref_from_abi","new","none","ref_from_abi","ref_mut_from_abi","return_abi","try_from","try_into","type_id","vzip","HashAddr","borrow","borrow_mut","describe","from","from","from_abi","into","into_abi","is_none","long_ref_from_abi","new","none","ref_from_abi","ref_mut_from_abi","return_abi","try_from","try_into","type_id","vzip","TransferAddr","borrow","borrow_mut","describe","from","from","from_abi","from_transfer","into","into_abi","is_none","long_ref_from_abi","new","none","ref_from_abi","ref_mut_from_abi","return_abi","try_from","try_into","type_id","vzip","URefAddr","borrow","borrow_mut","describe","from","from","from_abi","into","into_abi","is_none","long_ref_from_abi","new","none","ref_from_abi","ref_mut_from_abi","return_abi","try_from","try_into","type_id","vzip","BlockHash","__clone_box","borrow","borrow_mut","clone","clone_into","describe","deserialize","fmt","from","from","from","from_abi","from_digest","into","into_abi","is_none","long_ref_from_abi","new","none","ref_from_abi","ref_mut_from_abi","return_abi","serialize","to_owned","to_string","try_from","try_into","type_id","vzip","BlockIdentifier","BlockIdentifier","BlockIdentifierInput","String","__clone_box","__clone_box","borrow","borrow","borrow_mut","borrow_mut","clone","clone","clone_into","clone_into","describe","deserialize","fmt","fmt","from","from","from","from_abi","from_hash","from_height","into","into","into_abi","is_none","long_ref_from_abi","new","none","ref_from_abi","ref_mut_from_abi","return_abi","serialize","to_owned","to_owned","try_from","try_from","try_into","try_into","type_id","type_id","vzip","vzip","bytes","Bytes","__clone_box","as_ref","borrow","borrow_mut","cl_type","clone","clone_into","cmp","compare","default","deref","describe","encode_hex","encode_hex_upper","eq","equivalent","equivalent","equivalent","equivalent","fmt","from","from","from","from","from_abi","from_uint8_array","hash","into","into_abi","is_none","long_ref_from_abi","new","none","partial_cmp","ref_from_abi","ref_mut_from_abi","return_abi","to_owned","try_from","try_into","type_id","vzip","ContractHash","borrow","borrow_mut","describe","fmt","from","from","from_abi","from_bytes","from_bytes","from_formatted_str","into","into_abi","is_none","long_ref_from_abi","new","none","ref_from_abi","ref_mut_from_abi","return_abi","serialized_length","to_bytes","to_formatted_string","try_from","try_into","type_id","vzip","write_bytes","ContractPackageHash","borrow","borrow_mut","describe","fmt","from","from","from_abi","from_bytes","from_bytes","from_formatted_str","into","into_abi","is_none","long_ref_from_abi","new","none","ref_from_abi","ref_mut_from_abi","return_abi","serialized_length","to_bytes","to_formatted_string","try_from","try_into","type_id","vzip","write_bytes","Deploy","__clone_box","account","add_arg","args","borrow","borrow_mut","chain_name","clone","clone_into","describe","deserialize","fmt","from","from","from_abi","into","into_abi","is_none","long_ref_from_abi","none","ref_from_abi","ref_mut_from_abi","return_abi","serialize","sign","timestamp","to_json_string","to_owned","try_from","try_into","ttl","type_id","validate_deploy_size","vzip","with_account","with_chain_name","with_entry_point_name","with_hash","with_module_bytes","with_package_hash","with_payment_and_session","with_secret_key","with_standard_payment","with_timestamp","with_transfer","with_ttl","DeployHash","__clone_box","borrow","borrow_mut","clone","clone_into","describe","deserialize","fmt","from","from","from","from","from_abi","from_digest","into","into_abi","is_none","long_ref_from_abi","new","none","ref_from_abi","ref_mut_from_abi","return_abi","serialize","to_owned","to_string","try_from","try_into","type_id","vzip","args_simple","deploy_str_params","dictionary_item_str_params","payment_str_params","session_str_params","ArgsSimple","__clone_box","args","borrow","borrow_mut","clone","clone_into","default","describe","fmt","from","from","from_abi","from_iter","into","into_abi","is_none","long_ref_from_abi","new","none","ref_from_abi","ref_mut_from_abi","return_abi","to_owned","try_from","try_into","type_id","vzip","DeployStrParams","__clone_box","borrow","borrow_mut","chain_name","clone","clone_into","default","deploy_str_params_to_casper_client","describe","fmt","from","from_abi","into","into_abi","is_none","long_ref_from_abi","new","none","ref_from_abi","ref_mut_from_abi","return_abi","secret_key","session_account","set_chain_name","set_default_timestamp","set_default_ttl","set_secret_key","set_session_account","set_timestamp","set_ttl","timestamp","to_owned","try_from","try_into","ttl","type_id","vzip","AccountNamedKey","ContractNamedKey","DictionaryItemStrParams","DictionaryVariant","URefVariant","__clone_box","__clone_box","__clone_box","__clone_box","__clone_box","account_named_key","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","clone","clone","clone","clone","clone","clone_into","clone_into","clone_into","clone_into","clone_into","contract_named_key","default","describe","deserialize","deserialize","deserialize","deserialize","deserialize","dictionary","dictionary_item_str_params_to_casper_client","fmt","fmt","fmt","fmt","fmt","from","from","from","from","from","from_abi","into","into","into","into","into","into_abi","is_none","long_ref_from_abi","new","none","ref_from_abi","ref_mut_from_abi","return_abi","serialize","serialize","serialize","serialize","serialize","set_account_named_key","set_contract_named_key","set_dictionary","set_uref","to_owned","to_owned","to_owned","to_owned","to_owned","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","type_id","uref","vzip","vzip","vzip","vzip","vzip","PaymentStrParams","__clone_box","borrow","borrow_mut","clone","clone_into","default","describe","fmt","from","from_abi","into","into_abi","is_none","long_ref_from_abi","new","none","payment_amount","payment_args_complex","payment_args_json","payment_args_simple","payment_entry_point","payment_hash","payment_name","payment_package_hash","payment_package_name","payment_path","payment_str_params_to_casper_client","payment_version","ref_from_abi","ref_mut_from_abi","return_abi","set_payment_amount","set_payment_args_complex","set_payment_args_json","set_payment_args_simple","set_payment_entry_point","set_payment_hash","set_payment_name","set_payment_package_hash","set_payment_package_name","set_payment_path","set_payment_version","to_owned","try_from","try_into","type_id","vzip","SessionStrParams","__clone_box","borrow","borrow_mut","clone","clone_into","default","describe","fmt","from","from_abi","into","into_abi","is_none","is_session_transfer","long_ref_from_abi","new","none","ref_from_abi","ref_mut_from_abi","return_abi","session_args_complex","session_args_json","session_args_simple","session_bytes","session_entry_point","session_hash","session_name","session_package_hash","session_package_name","session_path","session_str_params_to_casper_client","session_version","set_is_session_transfer","set_session_args","set_session_args_complex","set_session_args_json","set_session_args_simple","set_session_bytes","set_session_entry_point","set_session_hash","set_session_name","set_session_package_hash","set_session_package_name","set_session_path","set_session_version","to_owned","try_from","try_into","type_id","vzip","DictionaryItemIdentifier","__clone_box","borrow","borrow_mut","clone","clone_into","describe","deserialize","fmt","from","from","from_abi","into","into_abi","is_none","long_ref_from_abi","new_from_account_info","new_from_contract_info","new_from_dictionary_key","new_from_seed_uref","none","ref_from_abi","ref_mut_from_abi","return_abi","serialize","to_owned","try_from","try_into","type_id","vzip","Digest","ToDigest","__clone_box","as_ref","borrow","borrow_mut","clone","clone_into","describe","deserialize","encode_hex","encode_hex_upper","fmt","from","from","from","from","from_abi","from_bytes","from_digest","from_string","into","into_abi","is_empty","is_empty","is_none","long_ref_from_abi","new","new_js_alias","none","ref_from_abi","ref_mut_from_abi","return_abi","serialize","serialized_length","to_bytes","to_digest","to_digest","to_owned","to_string","try_from","try_into","type_id","vzip","write_bytes","EraId","__clone_box","borrow","borrow_mut","clone","clone_into","cmp","compare","default","describe","eq","equivalent","equivalent","equivalent","equivalent","fmt","from","from","from_abi","into","into_abi","is_none","long_ref_from_abi","new","none","partial_cmp","ref_from_abi","ref_mut_from_abi","return_abi","to_owned","try_from","try_into","type_id","value","vzip","GlobalStateIdentifier","__clone_box","borrow","borrow_mut","clone","clone_into","describe","deserialize","fmt","from","from","from_abi","from_block_hash","from_block_height","from_state_root_hash","into","into_abi","is_none","long_ref_from_abi","new","none","ref_from_abi","ref_mut_from_abi","return_abi","serialize","to_owned","try_from","try_into","type_id","vzip","Key","__clone_box","as_balance","as_dictionary","borrow","borrow_mut","clone","clone_into","describe","deserialize","fmt","from","from","from_abi","from_account","from_balance","from_bid","from_chainspec_registry","from_checksum_registry","from_deploy_info","from_dictionary_addr","from_dictionary_key","from_era_info","from_era_summary","from_formatted_str","from_formatted_str_js_alias","from_hash","from_system_contract_registry","from_transfer","from_unbond","from_uref","from_withdraw","into","into_abi","into_account","into_hash","into_uref","is_dictionary_key","is_none","long_ref_from_abi","new","none","ref_from_abi","ref_mut_from_abi","return_abi","serialize","to_formatted_string","to_owned","try_from","try_into","type_id","uref_to_hash","vzip","withdraw_to_unbond","Path","__clone_box","borrow","borrow_mut","clone","clone_into","default","describe","deserialize","fmt","fmt","from","from","from","from_abi","into","into_abi","is_empty","is_none","long_ref_from_abi","new","none","ref_from_abi","ref_mut_from_abi","return_abi","serialize","to_owned","to_string","try_from","try_into","type_id","vzip","PeerEntry","__clone_box","address","borrow","borrow_mut","clone","clone_into","describe","deserialize","fmt","from","from","from_abi","into","into_abi","is_none","long_ref_from_abi","node_id","none","ref_from_abi","ref_mut_from_abi","return_abi","serialize","to_owned","try_from","try_into","type_id","vzip","PublicKey","__clone_box","borrow","borrow_mut","clone","clone_into","cmp","compare","describe","deserialize","eq","equivalent","equivalent","equivalent","equivalent","fmt","fmt","from","from","from","from","from_abi","from_bytes","from_bytes","into","into_abi","is_none","long_ref_from_abi","new","none","partial_cmp","ref_from_abi","ref_mut_from_abi","return_abi","serialize","serialized_length","to_account_hash","to_bytes","to_owned","to_purse_uref","to_string","try_from","try_into","type_id","vzip","write_bytes","PurseIdentifier","__clone_box","borrow","borrow_mut","clone","clone_into","describe","deserialize","fmt","from","from","from","from","from","from_abi","from_main_purse_under_account_hash","from_main_purse_under_public_key","from_purse_uref","into","into_abi","is_none","long_ref_from_abi","none","ref_from_abi","ref_mut_from_abi","return_abi","serialize","to_owned","to_string","try_from","try_into","type_id","vzip","ConflictingArguments","Core","FailedToParseAccountHash","FailedToParseAccountIdentifier","FailedToParseDigest","FailedToParseInt","FailedToParseJsonArgs","FailedToParseKey","FailedToParsePublicKey","FailedToParsePurseIdentifier","FailedToParseStateIdentifier","FailedToParseTimeDiff","FailedToParseTimestamp","FailedToParseURef","FailedToParseUint","InvalidArgument","InvalidCLValue","JsonArgs","SdkError","borrow","borrow_mut","fmt","fmt","from","from","from","from","from","from","into","source","to_string","try_from","try_into","type_id","vzip","args","context","context","context","context","context","context","context","context","context","context","context","error","error","error","error","error","error","error","error","error","error","URef","__clone_box","borrow","borrow_mut","clone","clone_into","describe","deserialize","fmt","from","from","from","from_abi","from_bytes","into","into_abi","is_none","long_ref_from_abi","new","none","ref_from_abi","ref_mut_from_abi","return_abi","serialize","to_formatted_string","to_owned","try_from","try_into","type_id","vzip","High","Low","Medium","Verbosity","__clone_box","borrow","borrow_mut","clone","clone_into","describe","deserialize","eq","fmt","from","from","from","from","from","from_abi","into","into_abi","is_none","none","return_abi","serialize","to_owned","try_from","try_into","type_id","vzip"],"q":[[0,"casper_rust_wasm_sdk"],[67,"casper_rust_wasm_sdk::helpers"],[80,"casper_rust_wasm_sdk::rpcs"],[99,"casper_rust_wasm_sdk::rpcs::get_balance"],[115,"casper_rust_wasm_sdk::rpcs::get_dictionary_item"],[126,"casper_rust_wasm_sdk::rpcs::query_global_state"],[237,"casper_rust_wasm_sdk::types"],[261,"casper_rust_wasm_sdk::types::access_rights"],[296,"casper_rust_wasm_sdk::types::account_hash"],[333,"casper_rust_wasm_sdk::types::account_identifier"],[366,"casper_rust_wasm_sdk::types::addr"],[370,"casper_rust_wasm_sdk::types::addr::dictionary_addr"],[390,"casper_rust_wasm_sdk::types::addr::hash_addr"],[410,"casper_rust_wasm_sdk::types::addr::transfer_addr"],[431,"casper_rust_wasm_sdk::types::addr::uref_addr"],[451,"casper_rust_wasm_sdk::types::block_hash"],[481,"casper_rust_wasm_sdk::types::block_identifier"],[526,"casper_rust_wasm_sdk::types::cl"],[527,"casper_rust_wasm_sdk::types::cl::bytes"],[570,"casper_rust_wasm_sdk::types::contract_hash"],[598,"casper_rust_wasm_sdk::types::contract_package_hash"],[626,"casper_rust_wasm_sdk::types::deploy"],[673,"casper_rust_wasm_sdk::types::deploy_hash"],[704,"casper_rust_wasm_sdk::types::deploy_params"],[709,"casper_rust_wasm_sdk::types::deploy_params::args_simple"],[737,"casper_rust_wasm_sdk::types::deploy_params::deploy_str_params"],[775,"casper_rust_wasm_sdk::types::deploy_params::dictionary_item_str_params"],[875,"casper_rust_wasm_sdk::types::deploy_params::payment_str_params"],[923,"casper_rust_wasm_sdk::types::deploy_params::session_str_params"],[974,"casper_rust_wasm_sdk::types::dictionary_item_identifier"],[1004,"casper_rust_wasm_sdk::types::digest"],[1049,"casper_rust_wasm_sdk::types::era_id"],[1084,"casper_rust_wasm_sdk::types::global_state_identifier"],[1114,"casper_rust_wasm_sdk::types::key"],[1168,"casper_rust_wasm_sdk::types::path"],[1200,"casper_rust_wasm_sdk::types::peer_entry"],[1228,"casper_rust_wasm_sdk::types::public_key"],[1274,"casper_rust_wasm_sdk::types::purse_identifier"],[1307,"casper_rust_wasm_sdk::types::sdk_error"],[1343,"casper_rust_wasm_sdk::types::sdk_error::SdkError"],[1365,"casper_rust_wasm_sdk::types::uref"],[1395,"casper_rust_wasm_sdk::types::verbosity"],[1425,"alloc::string"],[1426,"core::option"],[1427,"casper_client::rpcs::v1_4_5::put_deploy"],[1428,"casper_client::json_rpc::success_response"],[1429,"core::result"],[1430,"casper_client::rpcs::v1_6_0::get_account"],[1431,"casper_client::rpcs::v1_4_5::get_auction_info"],[1432,"casper_client::rpcs::v1_4_5::get_balance"],[1433,"casper_client::rpcs::v1_4_5::get_block"],[1434,"casper_client::rpcs::v1_4_5::get_block_transfers"],[1435,"casper_client::rpcs::v1_5_0::get_chainspec"],[1436,"casper_client::error"],[1437,"casper_client::rpcs::v1_5_0::get_deploy"],[1438,"casper_client::rpcs::v1_4_5::get_dictionary_item"],[1439,"casper_client::rpcs::v1_4_5::get_era_info"],[1440,"casper_client::rpcs::v1_5_0::get_era_summary"],[1441,"casper_client::rpcs::v1_5_0::get_node_status"],[1442,"casper_client::rpcs::v1_4_5::get_peers"],[1443,"casper_client::rpcs::v1_4_5::get_state_root_hash"],[1444,"casper_client::rpcs::v1_4_5::get_validator_changes"],[1445,"casper_client::rpcs::v1_4_5::list_rpcs"],[1446,"casper_client::types::deploy"],[1447,"casper_client::rpcs::v1_5_0::query_balance"],[1448,"casper_client::rpcs::v1_6_0::query_global_state"],[1449,"casper_client::rpcs::v1_5_0::speculative_exec"],[1450,"core::any"],[1451,"casper_types::cl_value"],[1452,"serde_json::value"],[1453,"alloc::vec"],[1454,"casper_types::runtime_args"],[1455,"wasm_bindgen"],[1456,"serde::ser"],[1457,"casper_client::types::timestamp"],[1458,"casper_client::types::time_diff"],[1459,"casper_types::crypto::error"],[1460,"casper_types::crypto::asymmetric_key"],[1461,"dyn_clone::sealed"],[1462,"core::fmt"],[1463,"core::fmt"],[1464,"serde::ser"],[1465,"casper_types::account::account_hash"],[1466,"casper_types::bytesrepr"],[1467,"casper_client::rpcs::v1_6_0::get_account"],[1468,"casper_types::key"],[1469,"casper_client::types::block"],[1470,"casper_client::rpcs::common"],[1471,"casper_types::cl_type"],[1472,"core::cmp"],[1473,"core::iter::traits::collect"],[1474,"casper_types::bytesrepr::bytes"],[1475,"js_sys"],[1476,"core::hash"],[1477,"casper_types::contracts"],[1478,"casper_types::contracts"],[1479,"core::iter::traits::collect"],[1480,"casper_client::cli::dictionary_item_str_params"],[1481,"js_sys"],[1482,"casper_client::cli::session_str_params"],[1483,"casper_client::rpcs::v1_4_5::get_dictionary_item"],[1484,"casper_types::era_id"],[1485,"casper_client::rpcs::common"],[1486,"casper_client::cli::error"],[1487,"casper_types::cl_value"],[1488,"core::error"],[1489,"casper_types::uref"]],"d":["","","","","Calls a smart contract entry point with the specified …","","","","Perform a deploy operation.","","Returns the argument unchanged.","","Retrieves account information based on the provided …","Retrieves auction information based on the provided …","Retrieves balance information based on the provided …","Retrieves block information using the provided options.","Retrieves block transfers information based on the …","Asynchronously retrieves the chainspec.","Retrieves deploy information based on the provided options.","Retrieves dictionary item information based on the …","","Retrieves era summary information based on the provided …","","Retrieves node status information based on the provided …","Retrieves peers.","Retrieves state root hash information based on the …","Retrieves validator changes based on the provided options.","","","","Installs a smart contract with the specified parameters …","Calls U::from(self).","","","Lists available RPCs based on the provided options.","","Creates a deploy using the provided parameters.","Creates a transfer deploy with the provided parameters.","","","Puts a deploy based on the provided options.","Retrieves balance information based on the provided …","","Query a contract dictionary item.","","Query a contract key.","Retrieves global state information based on the provided …","Builds parameters for querying global state based on the …","","","","","","","Signs a deploy using the provided secret key.","","This function allows executing a deploy speculatively.","Perform speculative execution.","","Perform a speculative transfer.","","Perform a transfer of funds.","","","","","","Converts a CLValue to a JSON Value.","Gets the current timestamp.","Gets the gas price or returns the default value if not …","Gets the time to live (TTL) value or returns the default …","Converts a hexadecimal string to a regular string.","Converts a hexadecimal string to a vector of unsigned …","Inserts a JavaScript value argument into a RuntimeArgs map.","Pretty prints a serializable value as a JSON string.","Converts motes to CSPR (Casper tokens).","Parses a timestamp string into a Timestamp object.","Parses a TTL (time to live) string into a TimeDiff object.","Converts a secret key in PEM format to its corresponding …","Parses a secret key in PEM format into a SecretKey object.","","","","","","","","","","","","","","","","","","","","Enum representing different ways to specify the purse uref.","","","","","","","","","Returns the argument unchanged.","Calls U::from(self).","","","","","","","","","","","Returns the argument unchanged.","Calls U::from(self).","","","","","","Enum to represent input for KeyIdentifier.","","Enum to represent input for PathIdentifier.","Options for the query_global_state method.","Struct to store parameters for querying global state.","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","","","","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","","","Calls U::from(self).","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","","","","","","","","","Calls U::from(self).","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","","","","","","","Calls U::from(self).","","","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","","","Calls U::from(self).","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","","Calls U::from(self).","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","","","Calls U::from(self).","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","","Calls U::from(self).","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","","","","","Calls U::from(self).","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","","Returns the argument unchanged.","","","","Calls U::from(self).","Calls U::from(self).","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","","","","","Calls U::from(self).","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","","","","","","Calls U::from(self).","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","","","","","","Calls U::from(self).","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","","Calls U::from(self).","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","","","Calls U::from(self).","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","","","Calls U::from(self).","","","","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","","Calls U::from(self).","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","","Calls U::from(self).","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","","Calls U::from(self).","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","","","Calls U::from(self).","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","","","","","Calls U::from(self).","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","","","Calls U::from(self).","","","","","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","","","","","Calls U::from(self).","","","","","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","","","","","","","","","","","","","","","","","","","","","Calls U::from(self).","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","","","","Calls U::from(self).","","","","","","","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","","Calls U::from(self).","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","","","","","","","Calls U::from(self).","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","","","","","Calls U::from(self).","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","","","","Calls U::from(self).","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","","","","","Calls U::from(self).","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","","","","","","Calls U::from(self).","","","","","","","","","",""],"i":[0,1,1,0,1,0,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,1,1,1,1,1,1,1,1,1,1,1,1,0,1,0,1,1,1,1,1,1,0,1,1,1,0,1,1,0,1,0,1,1,1,1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,0,28,28,28,28,28,28,28,28,28,28,65,0,66,0,0,0,0,65,66,64,45,65,66,64,45,65,66,43,64,45,65,66,43,64,45,65,66,64,45,65,66,45,64,45,64,45,64,45,65,66,43,64,64,45,65,66,43,64,45,45,64,45,65,66,43,64,45,64,45,45,43,45,64,45,43,45,43,45,43,64,45,45,43,45,64,45,64,45,64,45,64,45,45,43,45,64,45,65,66,64,45,65,66,43,64,45,65,66,43,64,45,65,66,43,45,43,64,45,65,66,43,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,0,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,0,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,0,0,0,0,0,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,0,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,0,82,82,82,82,82,82,0,82,82,82,82,82,82,82,82,82,82,82,82,82,0,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,0,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,0,15,0,15,46,15,46,15,46,15,46,15,46,15,46,46,46,15,46,46,15,46,46,46,46,15,46,46,46,46,46,46,46,46,46,46,15,46,15,46,15,46,15,46,15,0,0,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,0,97,97,97,97,97,97,97,97,97,97,97,97,97,97,97,97,97,97,97,97,97,97,97,97,97,97,97,0,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,0,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,0,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,0,0,0,0,0,0,103,103,103,103,103,103,103,103,103,103,103,103,103,103,103,103,103,103,103,103,103,103,103,103,103,103,103,0,2,2,2,2,2,2,2,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,0,0,0,0,107,108,109,110,106,106,107,108,109,110,106,107,108,109,110,106,107,108,109,110,106,107,108,109,110,106,106,106,106,107,108,109,110,106,106,0,107,108,109,110,106,107,108,109,110,106,106,107,108,109,110,106,106,106,106,106,106,106,106,106,107,108,109,110,106,106,106,106,106,107,108,109,110,106,107,108,109,110,106,107,108,109,110,106,107,108,109,110,106,106,107,108,109,110,106,0,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,0,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,0,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,0,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,0,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,0,0,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,20,86,86,86,86,86,86,86,86,86,86,86,86,20,86,86,86,86,86,86,86,86,0,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,0,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,0,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,0,125,125,125,125,125,125,125,125,125,125,125,125,125,125,125,125,125,125,125,125,125,125,125,125,125,125,125,125,125,125,125,0,126,126,126,126,126,126,126,126,126,126,126,126,126,126,126,126,126,126,126,126,126,126,126,126,126,126,126,0,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,0,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,0,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,137,138,139,140,141,142,143,144,145,146,137,147,138,139,140,141,142,143,144,145,146,147,0,124,124,124,124,124,124,124,124,124,124,124,124,124,124,124,124,124,124,124,124,124,124,124,124,124,124,124,124,124,11,11,11,0,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11],"f":[0,[-1,-2,[],[]],[-1,-2,[],[]],0,[[1,2,3,4,[6,[5]]],[[10,[[8,[7]],9]]]],0,[[],1],0,[[1,2,3,4,[6,[11]],[6,[5]]],[[10,[[8,[7]],9]]]],[[],12],[-1,-1,[]],[13,1],[[1,[6,[14]],[6,[5]],[6,[15]],[6,[11]],[6,[5]]],[[10,[[8,[16]],9]]]],[[1,[6,[15]],[6,[11]],[6,[5]]],[[10,[[8,[17]],9]]]],[[1,-1,18,[6,[11]],[6,[5]]],[[10,[[8,[19]],9]]],20],[[1,[6,[15]],[6,[11]],[6,[5]]],[[10,[[8,[21]],9]]]],[[1,[6,[15]],[6,[11]],[6,[5]]],[[10,[[8,[22]],9]]]],[[1,[6,[11]],[6,[5]]],[[10,[[8,[23]],24]]]],[[1,25,[6,[26]],[6,[11]],[6,[5]]],[[10,[[8,[27]],24]]]],[[1,-1,28,[6,[11]],[6,[5]]],[[10,[[8,[29]],9]]],20],[[1,[6,[15]],[6,[11]],[6,[5]]],[[10,[[8,[30]],9]]]],[[1,[6,[15]],[6,[11]],[6,[5]]],[[10,[[8,[31]],9]]]],[[1,[6,[5]]],5],[[1,[6,[11]],[6,[5]]],[[10,[[8,[32]],24]]]],[[1,[6,[11]],[6,[5]]],[[10,[[8,[33]],24]]]],[[1,[6,[15]],[6,[11]],[6,[5]]],[[10,[[8,[34]],9]]]],[[1,[6,[11]],[6,[5]]],[[10,[[8,[35]],24]]]],[[1,[6,[11]]],11],0,0,[[1,2,3,4,[6,[5]]],[[10,[[8,[7]],9]]]],[-1,-2,[],[]],[1,13],[[],26],[[1,[6,[11]],[6,[5]]],[[10,[[8,[36]],24]]]],[[]],[[1,2,3,4],[[10,[37,9]]]],[[1,38,38,[6,[5]],2,4],[[10,[37,9]]]],[[[6,[5]],[6,[11]]],1],[[]],[[1,39,[6,[11]],[6,[5]]],[[10,[[8,[7]],24]]]],[[1,[6,[40]],[6,[5]],[6,[41]],[6,[5]],[6,[5]],[6,[11]],[6,[5]]],[[10,[[8,[42]],9]]]],0,[[1,-1,28,[6,[11]],[6,[5]]],[[10,[[8,[29]],9]]],20],0,[[1,43],[[10,[[8,[44]],9]]]],[[1,43],[[10,[[8,[44]],9]]]],[[1,[6,[45]]],[[10,[43,9]]]],[[]],[[]],[-1,[],[]],0,[[1,[6,[5]]],[[10,[12,5]]]],[[1,[6,[11]]],[[10,[12,5]]]],[[1,37,38],39],0,[[1,2,3,4,[6,[46]],[6,[11]],[6,[5]]],[[10,[[8,[47]],9]]]],[[1,39,[6,[15]],[6,[11]],[6,[5]]],[[10,[[8,[47]],9]]]],0,[[1,38,38,[6,[5]],2,4,[6,[15]],[6,[11]],[6,[5]]],[[10,[[8,[47]],9]]]],0,[[1,38,38,[6,[5]],2,4,[6,[11]],[6,[5]]],[[10,[[8,[7]],9]]]],[-1,[[10,[-2]]],[],[]],[-1,[[10,[-2]]],[],[]],[-1,48,[]],0,[-1,-2,[],[]],[49,[[6,[50]]]],[[[6,[5]]],5],[[[6,[51]]],51],[[[6,[38]]],5],[38,5],[38,[[53,[52]]]],[[54,55],54],[[-1,[6,[11]]],5,56],[38,5],[38,[[10,[57,9]]]],[38,[[10,[58,9]]]],[38,[[10,[5,59]]]],[38,[[10,[60,59]]]],0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,[[-1,61],12,[]],[-1,-2,[],[]],[-1,-2,[],[]],[18,18],[[-1,-2],12,[],[]],[[18,62],63],[-1,-1,[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,[[10,[-2]]],[],[]],[-1,[[10,[-2]]],[],[]],[-1,48,[]],[-1,-2,[],[]],0,0,0,[-1,-2,[],[]],[-1,-2,[],[]],[-1,-1,[]],[-1,-2,[],[]],[-1,[[10,[-2]]],[],[]],[-1,[[10,[-2]]],[],[]],[-1,48,[]],[-1,-2,[],[]],0,0,0,0,0,0,0,0,0,[[-1,61],12,[]],[[-1,61],12,[]],[[-1,61],12,[]],[[-1,61],12,[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[64,64],[45,45],[65,65],[66,66],[[-1,-2],12,[],[]],[[-1,-2],12,[],[]],[[-1,-2],12,[],[]],[[-1,-2],12,[],[]],[[],45],[[],12],[[],12],[-1,[[10,[64]]],67],[-1,[[10,[45]]],67],[[64,62],63],[[45,62],63],[[65,62],63],[[66,62],63],[[43,62],63],[-1,-1,[]],[44,64],[-1,-1,[]],[-1,-1,[]],[-1,-1,[]],[-1,-1,[]],[13,64],[13,45],0,[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[64,13],[45,13],[[],26],[[],26],0,0,0,[[]],[[]],0,0,0,0,0,[[]],[[]],0,0,0,[[]],[[]],[[]],[[]],[-1,[],[]],[-1,[],[]],[[64,-1],10,68],[[45,-1],10,68],0,0,0,[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,[[10,[-2]]],[],[]],[-1,[[10,[-2]]],[],[]],[-1,[[10,[-2]]],[],[]],[-1,[[10,[-2]]],[],[]],[-1,[[10,[-2]]],[],[]],[-1,[[10,[-2]]],[],[]],[-1,[[10,[-2]]],[],[]],[-1,[[10,[-2]]],[],[]],[-1,[[10,[-2]]],[],[]],[-1,[[10,[-2]]],[],[]],[-1,48,[]],[-1,48,[]],[-1,48,[]],[-1,48,[]],[-1,48,[]],0,0,[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,[[],52],[[],52],[-1,-2,[],[]],[-1,-2,[],[]],[[],69],[[],12],[[69,62],63],[70,69],[-1,-1,[]],[13,69],[[26,26,26],69],[-1,-2,[],[]],[69,13],[69,26],[[],26],[69,26],[69,26],[69,26],[[]],[52,[[10,[69,55]]]],[[],52],[[]],[[],52],[[],52],[[],52],[[],52],[[]],[[]],[-1,[],[]],[-1,[[10,[-2]]],[],[]],[-1,[[10,[-2]]],[],[]],[-1,48,[]],[-1,-2,[],[]],[[],52],0,[[-1,61],12,[]],[-1,-2,[],[]],[-1,-2,[],[]],[71,71],[[-1,-2],12,[],[]],[[],12],[-1,[[10,[71]]],67],[[71,62],63],[-1,-1,[]],[41,71],[72,71],[14,71],[13,71],[[[53,[52]]],71],[[[73,[52]]],[[10,[[12,[71,[73,[52]]]],74]]]],[38,[[10,[71,55]]]],[75,71],[-1,-2,[],[]],[71,13],[[],26],[[]],[38,[[10,[71,55]]]],[[]],[[]],[[]],[-1,[],[]],[[71,-1],10,68],[71,76],[71,[[10,[[53,[52]],74]]]],[71,5],[-1,-2,[],[]],[-1,[[10,[-2]]],[],[]],[-1,[[10,[-2]]],[],[]],[-1,48,[]],[-1,-2,[],[]],[[71,[53,[52]]],[[10,[12,74]]]],0,[[-1,61],12,[]],[-1,-2,[],[]],[-1,-2,[],[]],[14,14],[[-1,-2],12,[],[]],[[],12],[-1,[[10,[14]]],67],[[14,62],63],[71,14],[-1,-1,[]],[77,14],[75,14],[13,14],[75,14],[71,14],[38,[[10,[14,55]]]],[-1,-2,[],[]],[14,13],[[],26],[[]],[38,[[10,[14,55]]]],[[]],[[]],[[]],[-1,[],[]],[[14,-1],10,68],[-1,-2,[],[]],[14,5],[-1,[[10,[-2]]],[],[]],[-1,[[10,[-2]]],[],[]],[-1,48,[]],[-1,-2,[],[]],0,0,0,0,0,[-1,-2,[],[]],[-1,-2,[],[]],[[],12],[-1,-1,[]],[78,79],[13,79],[-1,-2,[],[]],[79,13],[[],26],[[]],[[[53,[52]]],[[10,[79,55]]]],[[]],[[]],[[]],[-1,[],[]],[-1,[[10,[-2]]],[],[]],[-1,[[10,[-2]]],[],[]],[-1,48,[]],[-1,-2,[],[]],0,[-1,-2,[],[]],[-1,-2,[],[]],[[],12],[80,81],[-1,-1,[]],[13,81],[-1,-2,[],[]],[81,13],[[],26],[[]],[[[53,[52]]],[[10,[81,55]]]],[[]],[[]],[[]],[-1,[],[]],[-1,[[10,[-2]]],[],[]],[-1,[[10,[-2]]],[],[]],[-1,48,[]],[-1,-2,[],[]],0,[-1,-2,[],[]],[-1,-2,[],[]],[[],12],[[[53,[52]]],82],[-1,-1,[]],[13,82],[[[53,[52]]],82],[-1,-2,[],[]],[82,13],[[],26],[[]],[[[53,[52]]],[[10,[82,55]]]],[[]],[[]],[[]],[-1,[],[]],[-1,[[10,[-2]]],[],[]],[-1,[[10,[-2]]],[],[]],[-1,48,[]],[-1,-2,[],[]],0,[-1,-2,[],[]],[-1,-2,[],[]],[[],12],[83,84],[-1,-1,[]],[13,84],[-1,-2,[],[]],[84,13],[[],26],[[]],[[[53,[52]]],[[10,[84,55]]]],[[]],[[]],[[]],[-1,[],[]],[-1,[[10,[-2]]],[],[]],[-1,[[10,[-2]]],[],[]],[-1,48,[]],[-1,-2,[],[]],0,[[-1,61],12,[]],[-1,-2,[],[]],[-1,-2,[],[]],[85,85],[[-1,-2],12,[],[]],[[],12],[-1,[[10,[85]]],67],[[85,62],63],[-1,-1,[]],[86,85],[87,85],[13,85],[86,[[10,[85,55]]]],[-1,-2,[],[]],[85,13],[[],26],[[]],[38,[[10,[85,55]]]],[[]],[[]],[[]],[-1,[],[]],[[85,-1],10,68],[-1,-2,[],[]],[85,5],[-1,[[10,[-2]]],[],[]],[-1,[[10,[-2]]],[],[]],[-1,48,[]],[-1,-2,[],[]],0,0,0,0,[[-1,61],12,[]],[[-1,61],12,[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[46,46],[15,15],[[-1,-2],12,[],[]],[[-1,-2],12,[],[]],[[],12],[-1,[[10,[46]]],67],[[46,62],63],[[15,62],63],[-1,-1,[]],[88,46],[-1,-1,[]],[13,46],[85,46],[51,46],[-1,-2,[],[]],[-1,-2,[],[]],[46,13],[[],26],[[]],[46,46],[[]],[[]],[[]],[-1,[],[]],[[46,-1],10,68],[-1,-2,[],[]],[-1,-2,[],[]],[-1,[[10,[-2]]],[],[]],[-1,[[10,[-2]]],[],[]],[-1,[[10,[-2]]],[],[]],[-1,[[10,[-2]]],[],[]],[-1,48,[]],[-1,48,[]],[-1,-2,[],[]],[-1,-2,[],[]],0,0,[[-1,61],12,[]],[89,[[73,[52]]]],[-1,-2,[],[]],[-1,-2,[],[]],[[],90],[89,89],[[-1,-2],12,[],[]],[[89,89],91],[[-1,-2],91,[],[]],[[],89],[89],[[],12],[-1,-2,[],[[93,[92]]]],[-1,-2,[],[[93,[92]]]],[[89,89],26],[[-1,-2],26,[],[]],[[-1,-2],26,[],[]],[[-1,-2],26,[],[]],[[-1,-2],26,[],[]],[[89,62],63],[94,89],[[[53,[52]]],89],[-1,-1,[]],[[[73,[52]]],89],[13,89],[95,89],[[89,-1],12,96],[-1,-2,[],[]],[89,13],[[],26],[[]],[[],89],[[]],[[89,89],[[6,[91]]]],[[]],[[]],[-1,[],[]],[-1,-2,[],[]],[-1,[[10,[-2]]],[],[]],[-1,[[10,[-2]]],[],[]],[-1,48,[]],[-1,-2,[],[]],0,[-1,-2,[],[]],[-1,-2,[],[]],[[],12],[[97,62],63],[-1,-1,[]],[98,97],[13,97],[[[53,[52]]],97],[[[73,[52]]],[[10,[[12,[97,[73,[52]]]],74]]]],[38,[[10,[97,55]]]],[-1,-2,[],[]],[97,13],[[],26],[[]],[38,[[10,[97,55]]]],[[]],[[]],[[]],[-1,[],[]],[97,76],[97,[[10,[[53,[52]],74]]]],[97,5],[-1,[[10,[-2]]],[],[]],[-1,[[10,[-2]]],[],[]],[-1,48,[]],[-1,-2,[],[]],[[97,[53,[52]]],[[10,[12,74]]]],0,[-1,-2,[],[]],[-1,-2,[],[]],[[],12],[[99,62],63],[-1,-1,[]],[100,99],[13,99],[[[73,[52]]],[[10,[[12,[99,[73,[52]]]],74]]]],[[[53,[52]]],99],[38,[[10,[99,55]]]],[-1,-2,[],[]],[99,13],[[],26],[[]],[38,[[10,[99,55]]]],[[]],[[]],[[]],[-1,[],[]],[99,76],[99,[[10,[[53,[52]],74]]]],[99,5],[-1,[[10,[-2]]],[],[]],[-1,[[10,[-2]]],[],[]],[-1,48,[]],[-1,-2,[],[]],[[99,[53,[52]]],[[10,[12,74]]]],0,[[-1,61],12,[]],[39,5],[[39,5,[6,[5]]],39],[39,54],[-1,-2,[],[]],[-1,-2,[],[]],[39,5],[39,39],[[-1,-2],12,[],[]],[[],12],[-1,[[10,[39]]],67],[[39,62],63],[37,39],[-1,-1,[]],[13,39],[-1,-2,[],[]],[39,13],[[],26],[[]],[[]],[[]],[[]],[-1,[],[]],[[39,-1],10,68],[[39,38],39],[39,5],[39,[[10,[5,5]]]],[-1,-2,[],[]],[-1,[[10,[-2]]],[],[]],[-1,[[10,[-2]]],[],[]],[39,5],[-1,48,[]],[39,26],[-1,-2,[],[]],[[39,75,[6,[5]]],39],[[39,38,[6,[5]]],39],[[39,38,[6,[5]]],39],[[39,97,[6,[5]]],39],[[39,89,[6,[5]]],39],[[39,99,[6,[5]]],39],[[2,3,4],[[10,[39,5]]]],[[39,[6,[5]]],39],[[39,38,[6,[5]]],39],[[39,38,[6,[5]]],39],[[38,38,[6,[5]],2,4],[[10,[39,5]]]],[[39,38,[6,[5]]],39],0,[[-1,61],12,[]],[-1,-2,[],[]],[-1,-2,[],[]],[25,25],[[-1,-2],12,[],[]],[[],12],[-1,[[10,[25]]],67],[[25,62],63],[101,25],[86,25],[102,25],[-1,-1,[]],[13,25],[86,[[10,[25,55]]]],[-1,-2,[],[]],[25,13],[[],26],[[]],[38,[[10,[25,55]]]],[[]],[[]],[[]],[-1,[],[]],[[25,-1],10,68],[-1,-2,[],[]],[25,5],[-1,[[10,[-2]]],[],[]],[-1,[[10,[-2]]],[],[]],[-1,48,[]],[-1,-2,[],[]],0,0,0,0,0,0,[[-1,61],12,[]],[103,[[73,[5]]]],[-1,-2,[],[]],[-1,-2,[],[]],[103,103],[[-1,-2],12,[],[]],[[],103],[[],12],[[103,62],63],[[[53,[5]]],103],[-1,-1,[]],[13,103],[-1,103,104],[-1,-2,[],[]],[103,13],[[],26],[[]],[55,103],[[]],[[]],[[]],[-1,[],[]],[-1,-2,[],[]],[-1,[[10,[-2]]],[],[]],[-1,[[10,[-2]]],[],[]],[-1,48,[]],[-1,-2,[],[]],0,[[-1,61],12,[]],[-1,-2,[],[]],[-1,-2,[],[]],[2,[[6,[5]]]],[2,2],[[-1,-2],12,[],[]],[[],2],[2,105],[[],12],[[2,62],63],[-1,-1,[]],[13,2],[-1,-2,[],[]],[2,13],[[],26],[[]],[[38,38,[6,[5]],[6,[5]],[6,[5]]],2],[[]],[[]],[[]],[-1,[],[]],[2,[[6,[5]]]],[2,[[6,[5]]]],[[2,38],12],[2,12],[2,12],[[2,38],12],[[2,38],12],[[2,[6,[5]]],12],[[2,[6,[5]]],12],[2,[[6,[5]]]],[-1,-2,[],[]],[-1,[[10,[-2]]],[],[]],[-1,[[10,[-2]]],[],[]],[2,[[6,[5]]]],[-1,48,[]],[-1,-2,[],[]],0,0,0,0,0,[[-1,61],12,[]],[[-1,61],12,[]],[[-1,61],12,[]],[[-1,61],12,[]],[[-1,61],12,[]],[106,[[6,[107]]]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[107,107],[108,108],[109,109],[110,110],[106,106],[[-1,-2],12,[],[]],[[-1,-2],12,[],[]],[[-1,-2],12,[],[]],[[-1,-2],12,[],[]],[[-1,-2],12,[],[]],[106,[[6,[108]]]],[[],106],[[],12],[-1,[[10,[107]]],67],[-1,[[10,[108]]],67],[-1,[[10,[109]]],67],[-1,[[10,[110]]],67],[-1,[[10,[106]]],67],[106,[[6,[110]]]],[106,111],[[107,62],63],[[108,62],63],[[109,62],63],[[110,62],63],[[106,62],63],[-1,-1,[]],[-1,-1,[]],[-1,-1,[]],[-1,-1,[]],[-1,-1,[]],[13,106],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[106,13],[[],26],[[]],[[],106],[[]],[[]],[[]],[-1,[],[]],[[107,-1],10,68],[[108,-1],10,68],[[109,-1],10,68],[[110,-1],10,68],[[106,-1],10,68],[[106,38,38,38],12],[[106,38,38,38],12],[[106,38],12],[[106,38,38],12],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,[[10,[-2]]],[],[]],[-1,[[10,[-2]]],[],[]],[-1,[[10,[-2]]],[],[]],[-1,[[10,[-2]]],[],[]],[-1,[[10,[-2]]],[],[]],[-1,[[10,[-2]]],[],[]],[-1,[[10,[-2]]],[],[]],[-1,[[10,[-2]]],[],[]],[-1,[[10,[-2]]],[],[]],[-1,[[10,[-2]]],[],[]],[-1,48,[]],[-1,48,[]],[-1,48,[]],[-1,48,[]],[-1,48,[]],[106,[[6,[109]]]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],0,[[-1,61],12,[]],[-1,-2,[],[]],[-1,-2,[],[]],[4,4],[[-1,-2],12,[],[]],[[],4],[[],12],[[4,62],63],[-1,-1,[]],[13,4],[-1,-2,[],[]],[4,13],[[],26],[[]],[[[6,[5]],[6,[5]],[6,[5]],[6,[5]],[6,[5]],[6,[5]],[6,[112]],[6,[5]],[6,[5]],[6,[5]],[6,[5]]],4],[[]],[4,[[6,[5]]]],[4,[[6,[5]]]],[4,[[6,[5]]]],[4,[[6,[112]]]],[4,[[6,[5]]]],[4,[[6,[5]]]],[4,[[6,[5]]]],[4,[[6,[5]]]],[4,[[6,[5]]]],[4,[[6,[5]]]],[4,113],[4,[[6,[5]]]],[[]],[[]],[-1,[],[]],[[4,38],12],[[4,38],12],[[4,38],12],[[4,112],12],[[4,38],12],[[4,38],12],[[4,38],12],[[4,38],12],[[4,38],12],[[4,38],12],[[4,38],12],[-1,-2,[],[]],[-1,[[10,[-2]]],[],[]],[-1,[[10,[-2]]],[],[]],[-1,48,[]],[-1,-2,[],[]],0,[[-1,61],12,[]],[-1,-2,[],[]],[-1,-2,[],[]],[3,3],[[-1,-2],12,[],[]],[[],3],[[],12],[[3,62],63],[-1,-1,[]],[13,3],[-1,-2,[],[]],[3,13],[[],26],[3,[[6,[26]]]],[[]],[[[6,[5]],[6,[5]],[6,[5]],[6,[5]],[6,[5]],[6,[89]],[6,[112]],[6,[5]],[6,[5]],[6,[5]],[6,[5]],[6,[26]]],3],[[]],[[]],[[]],[-1,[],[]],[3,[[6,[5]]]],[3,[[6,[5]]]],[3,[[6,[103]]]],[3,[[6,[89]]]],[3,[[6,[5]]]],[3,[[6,[5]]]],[3,[[6,[5]]]],[3,[[6,[5]]]],[3,[[6,[5]]]],[3,[[6,[5]]]],[3,114],[3,[[6,[5]]]],[[3,26],12],[[3,[53,[5]]],12],[[3,38],12],[[3,38],12],[[3,112],12],[[3,89],12],[[3,38],12],[[3,38],12],[[3,38],12],[[3,38],12],[[3,38],12],[[3,38],12],[[3,38],12],[-1,-2,[],[]],[-1,[[10,[-2]]],[],[]],[-1,[[10,[-2]]],[],[]],[-1,48,[]],[-1,-2,[],[]],0,[[-1,61],12,[]],[-1,-2,[],[]],[-1,-2,[],[]],[115,115],[[-1,-2],12,[],[]],[[],12],[-1,[[10,[115]]],67],[[115,62],63],[-1,-1,[]],[116,115],[13,115],[-1,-2,[],[]],[115,13],[[],26],[[]],[[38,38,38],[[10,[115,55]]]],[[38,38,38],[[10,[115,55]]]],[38,[[10,[115,55]]]],[[38,38],[[10,[115,55]]]],[[]],[[]],[[]],[-1,[],[]],[[115,-1],10,68],[-1,-2,[],[]],[-1,[[10,[-2]]],[],[]],[-1,[[10,[-2]]],[],[]],[-1,48,[]],[-1,-2,[],[]],0,0,[[-1,61],12,[]],[86,[[73,[52]]]],[-1,-2,[],[]],[-1,-2,[],[]],[86,86],[[-1,-2],12,[],[]],[[],12],[-1,[[10,[86]]],67],[-1,-2,[],[[93,[92]]]],[-1,-2,[],[[93,[92]]]],[[86,62],63],[117,86],[38,86],[[[118,[52]]],86],[-1,-1,[]],[13,86],[[[73,[52]]],[[10,[[12,[86,[73,[52]]]],74]]]],[[[53,[52]]],[[10,[86,9]]]],[38,[[10,[86,55]]]],[-1,-2,[],[]],[86,13],[-1,26,[]],[86,26],[[],26],[[]],[38,[[10,[86,9]]]],[38,[[10,[86,55]]]],[[]],[[]],[[]],[-1,[],[]],[[86,-1],10,68],[86,76],[86,[[10,[[53,[52]],74]]]],[-1,86,[]],[86,86],[-1,-2,[],[]],[86,5],[-1,[[10,[-2]]],[],[]],[-1,[[10,[-2]]],[],[]],[-1,48,[]],[-1,-2,[],[]],[[86,[53,[52]]],[[10,[12,74]]]],0,[[-1,61],12,[]],[-1,-2,[],[]],[-1,-2,[],[]],[119,119],[[-1,-2],12,[],[]],[[119,119],91],[[-1,-2],91,[],[]],[[],119],[[],12],[[119,119],26],[[-1,-2],26,[],[]],[[-1,-2],26,[],[]],[[-1,-2],26,[],[]],[[-1,-2],26,[],[]],[[119,62],63],[-1,-1,[]],[120,119],[13,119],[-1,-2,[],[]],[119,13],[[],26],[[]],[51,119],[[]],[[119,119],[[6,[91]]]],[[]],[[]],[-1,[],[]],[-1,-2,[],[]],[-1,[[10,[-2]]],[],[]],[-1,[[10,[-2]]],[],[]],[-1,48,[]],[119,51],[-1,-2,[],[]],0,[[-1,61],12,[]],[-1,-2,[],[]],[-1,-2,[],[]],[40,40],[[-1,-2],12,[],[]],[[],12],[-1,[[10,[40]]],67],[[40,62],63],[121,40],[-1,-1,[]],[13,40],[85,40],[51,40],[86,40],[-1,-2,[],[]],[40,13],[[],26],[[]],[40,40],[[]],[[]],[[]],[-1,[],[]],[[40,-1],10,68],[-1,-2,[],[]],[-1,[[10,[-2]]],[],[]],[-1,[[10,[-2]]],[],[]],[-1,48,[]],[-1,-2,[],[]],0,[[-1,61],12,[]],[122,[[6,[84]]]],[122,[[6,[79]]]],[-1,-2,[],[]],[-1,-2,[],[]],[122,122],[[-1,-2],12,[],[]],[[],12],[-1,[[10,[122]]],67],[[122,62],63],[-1,-1,[]],[123,122],[13,122],[71,122],[84,122],[71,122],[[],122],[[],122],[25,122],[79,122],[[124,[73,[52]]],122],[119,122],[[],122],[38,[[10,[122,9]]]],[55,[[10,[122,55]]]],[81,122],[[],122],[[[53,[52]]],82],[71,122],[124,122],[71,122],[-1,-2,[],[]],[122,13],[122,[[6,[71]]]],[122,[[6,[81]]]],[122,[[6,[124]]]],[122,26],[[],26],[[]],[122,[[10,[122,55]]]],[[]],[[]],[[]],[-1,[],[]],[[122,-1],10,68],[122,5],[-1,-2,[],[]],[-1,[[10,[-2]]],[],[]],[-1,[[10,[-2]]],[],[]],[-1,48,[]],[122,[[6,[122]]]],[-1,-2,[],[]],[122,[[6,[122]]]],0,[[-1,61],12,[]],[-1,-2,[],[]],[-1,-2,[],[]],[125,125],[[-1,-2],12,[],[]],[[],125],[[],12],[-1,[[10,[125]]],67],[[125,62],63],[[125,62],63],[-1,-1,[]],[5,125],[[[53,[5]]],125],[13,125],[-1,-2,[],[]],[125,13],[125,26],[[],26],[[]],[55,125],[[]],[[]],[[]],[-1,[],[]],[[125,-1],10,68],[-1,-2,[],[]],[-1,5,[]],[-1,[[10,[-2]]],[],[]],[-1,[[10,[-2]]],[],[]],[-1,48,[]],[-1,-2,[],[]],0,[[-1,61],12,[]],[126,5],[-1,-2,[],[]],[-1,-2,[],[]],[126,126],[[-1,-2],12,[],[]],[[],12],[-1,[[10,[126]]],67],[[126,62],63],[127,126],[-1,-1,[]],[13,126],[-1,-2,[],[]],[126,13],[[],26],[[]],[126,5],[[]],[[]],[[]],[-1,[],[]],[[126,-1],10,68],[-1,-2,[],[]],[-1,[[10,[-2]]],[],[]],[-1,[[10,[-2]]],[],[]],[-1,48,[]],[-1,-2,[],[]],0,[[-1,61],12,[]],[-1,-2,[],[]],[-1,-2,[],[]],[75,75],[[-1,-2],12,[],[]],[[75,75],91],[[-1,-2],91,[],[]],[[],12],[-1,[[10,[75]]],67],[[75,75],26],[[-1,-2],26,[],[]],[[-1,-2],26,[],[]],[[-1,-2],26,[],[]],[[-1,-2],26,[],[]],[[75,62],63],[[75,62],63],[-1,-1,[]],[41,75],[128,75],[14,75],[13,75],[[[73,[52]]],[[10,[[12,[75,[73,[52]]]],74]]]],[[[53,[52]]],75],[-1,-2,[],[]],[75,13],[[],26],[[]],[38,[[10,[75,55]]]],[[]],[[75,75],[[6,[91]]]],[[]],[[]],[-1,[],[]],[[75,-1],10,68],[75,76],[75,71],[75,[[10,[[53,[52]],74]]]],[-1,-2,[],[]],[75,124],[-1,5,[]],[-1,[[10,[-2]]],[],[]],[-1,[[10,[-2]]],[],[]],[-1,48,[]],[-1,-2,[],[]],[[75,[53,[52]]],[[10,[12,74]]]],0,[[-1,61],12,[]],[-1,-2,[],[]],[-1,-2,[],[]],[41,41],[[-1,-2],12,[],[]],[[],12],[-1,[[10,[41]]],67],[[41,62],63],[124,41],[129,41],[71,41],[75,41],[-1,-1,[]],[13,41],[71,41],[75,41],[124,41],[-1,-2,[],[]],[41,13],[[],26],[[]],[[]],[[]],[[]],[-1,[],[]],[[41,-1],10,68],[-1,-2,[],[]],[41,5],[-1,[[10,[-2]]],[],[]],[-1,[[10,[-2]]],[],[]],[-1,48,[]],[-1,-2,[],[]],0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,[-1,-2,[],[]],[-1,-2,[],[]],[[9,62],63],[[9,62],63],[130,9],[131,9],[-1,-1,[]],[132,9],[24,9],[133,9],[-1,-2,[],[]],[9,[[6,[134]]]],[-1,5,[]],[-1,[[10,[-2]]],[],[]],[-1,[[10,[-2]]],[],[]],[-1,48,[]],[-1,-2,[],[]],0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,[[-1,61],12,[]],[-1,-2,[],[]],[-1,-2,[],[]],[124,124],[[-1,-2],12,[],[]],[[],12],[-1,[[10,[124]]],67],[[124,62],63],[-1,-1,[]],[135,124],[41,124],[13,124],[[[53,[52]],52],124],[-1,-2,[],[]],[124,13],[[],26],[[]],[[38,52],[[10,[124,55]]]],[[]],[[]],[[]],[-1,[],[]],[[124,-1],10,68],[124,5],[-1,-2,[],[]],[-1,[[10,[-2]]],[],[]],[-1,[[10,[-2]]],[],[]],[-1,48,[]],[-1,-2,[],[]],0,0,0,0,[[-1,61],12,[]],[-1,-2,[],[]],[-1,-2,[],[]],[11,11],[[-1,-2],12,[],[]],[[],12],[-1,[[10,[11]]],67],[[11,11],26],[[11,62],63],[-1,-1,[]],[38,11],[5,11],[136,11],[51,11],[13,11],[-1,-2,[],[]],[11,13],[13,26],[[]],[-1,[],[]],[[11,-1],10,68],[-1,-2,[],[]],[-1,[[10,[-2]]],[],[]],[-1,[[10,[-2]]],[],[]],[-1,48,[]],[-1,-2,[],[]]],"c":[20],"p":[[3,"SDK",0],[3,"DeployStrParams",737],[3,"SessionStrParams",923],[3,"PaymentStrParams",875],[3,"String",1425],[4,"Option",1426],[3,"PutDeployResult",1427],[3,"SuccessResponse",1428],[4,"SdkError",1307],[4,"Result",1429],[4,"Verbosity",1395],[15,"tuple"],[15,"u32"],[3,"AccountIdentifier",333],[4,"BlockIdentifierInput",481],[3,"GetAccountResult",1430],[3,"GetAuctionInfoResult",1431],[4,"GetBalanceInput",99],[3,"GetBalanceResult",1432],[8,"ToDigest",1004],[3,"GetBlockResult",1433],[3,"GetBlockTransfersResult",1434],[3,"GetChainspecResult",1435],[4,"Error",1436],[3,"DeployHash",673],[15,"bool"],[3,"GetDeployResult",1437],[4,"DictionaryItemInput",115],[3,"GetDictionaryItemResult",1438],[3,"GetEraInfoResult",1439],[3,"GetEraSummaryResult",1440],[3,"GetNodeStatusResult",1441],[3,"GetPeersResult",1442],[3,"GetStateRootHashResult",1443],[3,"GetValidatorChangesResult",1444],[3,"ListRpcsResult",1445],[3,"Deploy",1446],[15,"str"],[3,"Deploy",626],[3,"GlobalStateIdentifier",1084],[3,"PurseIdentifier",1274],[3,"QueryBalanceResult",1447],[3,"QueryGlobalStateParams",126],[3,"QueryGlobalStateResult",1448],[3,"QueryGlobalStateOptions",126],[3,"BlockIdentifier",481],[3,"SpeculativeExecResult",1449],[3,"TypeId",1450],[3,"CLValue",1451],[4,"Value",1452],[15,"u64"],[15,"u8"],[3,"Vec",1453],[3,"RuntimeArgs",1454],[3,"JsValue",1455],[8,"Serialize",1456],[3,"Timestamp",1457],[3,"TimeDiff",1458],[4,"ErrorExt",1459],[4,"SecretKey",1460],[3,"Private",1461],[3,"Formatter",1462],[6,"Result",1462],[3,"QueryGlobalStateResult",126],[4,"KeyIdentifierInput",126],[4,"PathIdentifierInput",126],[8,"Deserializer",1463],[8,"Serializer",1456],[3,"AccessRights",261],[3,"AccessRights",1464],[3,"AccountHash",296],[3,"AccountHash",1465],[15,"slice"],[4,"Error",1466],[3,"PublicKey",1228],[15,"usize"],[4,"AccountIdentifier",1430],[6,"DictionaryAddr",1467],[3,"DictionaryAddr",370],[6,"HashAddr",1467],[3,"HashAddr",390],[3,"TransferAddr",410],[6,"URefAddr",1468],[3,"URefAddr",431],[3,"BlockHash",451],[3,"Digest",1004],[3,"BlockHash",1469],[4,"BlockIdentifier",1470],[3,"Bytes",527],[4,"CLType",1471],[4,"Ordering",1472],[15,"char"],[8,"FromIterator",1473],[3,"Bytes",1474],[3,"Uint8Array",1475],[8,"Hasher",1476],[3,"ContractHash",570],[3,"ContractHash",1477],[3,"ContractPackageHash",598],[3,"ContractPackageHash",1477],[3,"DeployHash",1446],[3,"DeployHash",1478],[3,"ArgsSimple",709],[8,"IntoIterator",1473],[3,"DeployStrParams",1479],[3,"DictionaryItemStrParams",775],[3,"AccountNamedKey",775],[3,"ContractNamedKey",775],[3,"URefVariant",775],[3,"DictionaryVariant",775],[4,"DictionaryItemStrParams",1480],[3,"Array",1475],[3,"PaymentStrParams",1481],[3,"SessionStrParams",1482],[3,"DictionaryItemIdentifier",974],[4,"DictionaryItemIdentifier",1438],[3,"Digest",1483],[15,"array"],[3,"EraId",1049],[3,"EraId",1484],[4,"GlobalStateIdentifier",1470],[3,"Key",1114],[4,"Key",1467],[3,"URef",1365],[3,"Path",1168],[3,"PeerEntry",1200],[3,"PeerEntry",1442],[4,"PublicKey",1460],[4,"PurseIdentifier",1447],[3,"Error",1485],[4,"CliError",1486],[4,"CLValueError",1451],[3,"Error",1487],[8,"Error",1488],[3,"URef",1468],[4,"Verbosity",1489],[13,"ConflictingArguments",1343],[13,"FailedToParseKey",1343],[13,"FailedToParsePublicKey",1343],[13,"FailedToParseAccountHash",1343],[13,"FailedToParseURef",1343],[13,"FailedToParseInt",1343],[13,"FailedToParseTimeDiff",1343],[13,"FailedToParseTimestamp",1343],[13,"FailedToParseUint",1343],[13,"FailedToParseDigest",1343],[13,"InvalidArgument",1343]]}\ +}'); +if (typeof window !== 'undefined' && window.initSearch) {window.initSearch(searchIndex)}; +if (typeof exports !== 'undefined') {exports.searchIndex = searchIndex}; diff --git a/docs/api-rust/settings.html b/docs/api-rust/settings.html new file mode 100644 index 000000000..7ac7c1e27 --- /dev/null +++ b/docs/api-rust/settings.html @@ -0,0 +1 @@ +Rustdoc settings

Rustdoc settings

Back
\ No newline at end of file diff --git a/docs/api-rust/src-files.js b/docs/api-rust/src-files.js new file mode 100644 index 000000000..8b8f4214c --- /dev/null +++ b/docs/api-rust/src-files.js @@ -0,0 +1,4 @@ +var srcIndex = JSON.parse('{\ +"casper_rust_wasm_sdk":["",[["helpers",[],["mod.rs"]],["js",[],["externs.rs","mod.rs"]],["sdk",[["contract",[],["call_entrypoint.rs","install.rs","mod.rs","query_contract_dict.rs","query_contract_key.rs"]],["deploy",[],["deploy.rs","mod.rs","speculative_deploy.rs","speculative_transfer.rs","transfer.rs"]],["deploy_utils",[],["make_deploy.rs","make_transfer.rs","mod.rs","sign_deploy.rs"]],["rpcs",[],["get_account.rs","get_auction_info.rs","get_balance.rs","get_block.rs","get_block_transfers.rs","get_chainspec.rs","get_deploy.rs","get_dictionary_item.rs","get_era_info.rs","get_era_summary.rs","get_node_status.rs","get_peers.rs","get_state_root_hash.rs","get_validator_changes.rs","list_rpcs.rs","mod.rs","put_deploy.rs","query_balance.rs","query_global_state.rs","speculative_exec.rs"]]],["mod.rs"]],["types",[["addr",[],["dictionary_addr.rs","hash_addr.rs","mod.rs","transfer_addr.rs","uref_addr.rs"]],["cl",[],["bytes.rs","mod.rs"]],["deploy_params",[],["args_simple.rs","deploy_str_params.rs","dictionary_item_str_params.rs","mod.rs","payment_str_params.rs","session_str_params.rs"]]],["access_rights.rs","account_hash.rs","account_identifier.rs","block_hash.rs","block_identifier.rs","contract_hash.rs","contract_package_hash.rs","deploy.rs","deploy_hash.rs","dictionary_item_identifier.rs","digest.rs","era_id.rs","global_state_identifier.rs","key.rs","mod.rs","path.rs","peer_entry.rs","public_key.rs","purse_identifier.rs","sdk_error.rs","uref.rs","verbosity.rs"]]],["lib.rs"]]\ +}'); +createSrcSidebar(); diff --git a/docs/api-rust/src/casper_rust_wasm_sdk/helpers/mod.rs.html b/docs/api-rust/src/casper_rust_wasm_sdk/helpers/mod.rs.html new file mode 100644 index 000000000..bca5ad9d0 --- /dev/null +++ b/docs/api-rust/src/casper_rust_wasm_sdk/helpers/mod.rs.html @@ -0,0 +1,659 @@ +mod.rs - source
1
+2
+3
+4
+5
+6
+7
+8
+9
+10
+11
+12
+13
+14
+15
+16
+17
+18
+19
+20
+21
+22
+23
+24
+25
+26
+27
+28
+29
+30
+31
+32
+33
+34
+35
+36
+37
+38
+39
+40
+41
+42
+43
+44
+45
+46
+47
+48
+49
+50
+51
+52
+53
+54
+55
+56
+57
+58
+59
+60
+61
+62
+63
+64
+65
+66
+67
+68
+69
+70
+71
+72
+73
+74
+75
+76
+77
+78
+79
+80
+81
+82
+83
+84
+85
+86
+87
+88
+89
+90
+91
+92
+93
+94
+95
+96
+97
+98
+99
+100
+101
+102
+103
+104
+105
+106
+107
+108
+109
+110
+111
+112
+113
+114
+115
+116
+117
+118
+119
+120
+121
+122
+123
+124
+125
+126
+127
+128
+129
+130
+131
+132
+133
+134
+135
+136
+137
+138
+139
+140
+141
+142
+143
+144
+145
+146
+147
+148
+149
+150
+151
+152
+153
+154
+155
+156
+157
+158
+159
+160
+161
+162
+163
+164
+165
+166
+167
+168
+169
+170
+171
+172
+173
+174
+175
+176
+177
+178
+179
+180
+181
+182
+183
+184
+185
+186
+187
+188
+189
+190
+191
+192
+193
+194
+195
+196
+197
+198
+199
+200
+201
+202
+203
+204
+205
+206
+207
+208
+209
+210
+211
+212
+213
+214
+215
+216
+217
+218
+219
+220
+221
+222
+223
+224
+225
+226
+227
+228
+229
+230
+231
+232
+233
+234
+235
+236
+237
+238
+239
+240
+241
+242
+243
+244
+245
+246
+247
+248
+249
+250
+251
+252
+253
+254
+255
+256
+257
+258
+259
+260
+261
+262
+263
+264
+265
+266
+267
+268
+269
+270
+271
+272
+273
+274
+275
+276
+277
+278
+279
+280
+281
+282
+283
+284
+285
+286
+287
+288
+289
+290
+291
+292
+293
+294
+295
+296
+297
+298
+299
+300
+301
+302
+303
+304
+305
+306
+307
+308
+309
+310
+311
+312
+313
+314
+315
+316
+317
+318
+319
+320
+321
+322
+323
+324
+325
+326
+327
+328
+329
+
use crate::debug::error;
+use crate::types::public_key::PublicKey;
+use crate::types::sdk_error::SdkError;
+use crate::types::verbosity::Verbosity;
+use casper_client::cli::JsonArg;
+use casper_client::types::{Deploy, TimeDiff, Timestamp};
+use casper_types::cl_value::cl_value_to_json as cl_value_to_json_from_casper_types;
+use casper_types::{CLValue, ErrorExt, PublicKey as CasperTypesPublicKey, SecretKey};
+use casper_types::{NamedArg, RuntimeArgs};
+use chrono::{DateTime, NaiveDateTime, SecondsFormat, Utc};
+use gloo_utils::format::JsValueSerdeExt;
+use rust_decimal::prelude::*;
+use serde::Serialize;
+use serde_json::Value;
+use std::str::FromStr;
+use wasm_bindgen::{JsCast, JsValue};
+
+/// Converts a CLValue to a JSON Value.
+///
+/// # Arguments
+///
+/// * `cl_value` - The CLValue to convert.
+///
+/// # Returns
+///
+/// A JSON Value representing the CLValue data.
+pub fn cl_value_to_json(cl_value: &CLValue) -> Option<Value> {
+    cl_value_to_json_from_casper_types(cl_value)
+}
+
+/// Gets the current timestamp.
+///
+/// # Arguments
+///
+/// * `timestamp` - An optional timestamp value in milliseconds since the Unix epoch.
+///
+/// # Returns
+///
+/// A string containing the current timestamp in RFC3339 format.
+pub fn get_current_timestamp(timestamp: Option<String>) -> String {
+    let parsed_timestamp = timestamp.as_ref().and_then(|ts| ts.parse::<i64>().ok());
+    let current_timestamp = parsed_timestamp
+        .map(|parsed_time| {
+            NaiveDateTime::from_timestamp_opt(parsed_time / 1000, 0)
+                .map(|naive_time| DateTime::<Utc>::from_utc(naive_time, Utc))
+                .unwrap_or_else(Utc::now)
+        })
+        .unwrap_or_else(Utc::now);
+    current_timestamp.to_rfc3339_opts(SecondsFormat::Secs, true)
+}
+
+/// Gets the time to live (TTL) value or returns the default value if not provided.
+///
+/// # Arguments
+///
+/// * `ttl` - An optional TTL value as a string.
+///
+/// # Returns
+///
+/// A string containing the TTL value or the default TTL if not provided.
+pub fn get_ttl_or_default(ttl: Option<&str>) -> String {
+    if let Some(ttl) = ttl {
+        ttl.to_string()
+    } else {
+        Deploy::DEFAULT_TTL.to_string()
+    }
+}
+
+/// Parses a timestamp string into a `Timestamp` object.
+///
+/// # Arguments
+///
+/// * `value` - The timestamp string to parse.
+///
+/// # Returns
+///
+/// A `Result` containing the parsed `Timestamp` or an error if parsing fails.
+pub fn parse_timestamp(value: &str) -> Result<Timestamp, SdkError> {
+    Timestamp::from_str(value).map_err(|error| SdkError::FailedToParseTimestamp {
+        context: "timestamp",
+        error,
+    })
+}
+
+/// Parses a TTL (time to live) string into a `TimeDiff` object.
+///
+/// # Arguments
+///
+/// * `value` - The TTL string to parse.
+///
+/// # Returns
+///
+/// A `Result` containing the parsed `TimeDiff` or an error if parsing fails.
+pub fn parse_ttl(value: &str) -> Result<TimeDiff, SdkError> {
+    TimeDiff::from_str(value).map_err(|error| SdkError::FailedToParseTimeDiff {
+        context: "ttl",
+        error,
+    })
+}
+
+/// Gets the gas price or returns the default value if not provided.
+///
+/// # Arguments
+///
+/// * `gas_price` - An optional gas price value.
+///
+/// # Returns
+///
+/// The gas price or the default gas price if not provided.
+pub fn get_gas_price_or_default(gas_price: Option<u64>) -> u64 {
+    gas_price.unwrap_or(Deploy::DEFAULT_GAS_PRICE)
+}
+
+/// Gets the value as a string or returns an empty string if not provided.
+///
+/// # Arguments
+///
+/// * `opt_str` - An optional string value.
+///
+/// # Returns
+///
+/// The string value or an empty string if not provided.
+pub(crate) fn get_str_or_default(opt_str: Option<&String>) -> &str {
+    opt_str.map(String::as_str).unwrap_or_default()
+}
+
+/// Parses a secret key in PEM format into a `SecretKey` object.
+///
+/// # Arguments
+///
+/// * `secret_key` - The secret key in PEM format.
+///
+/// # Returns
+///
+/// A `Result` containing the parsed `SecretKey` or an error if parsing fails.
+pub fn secret_key_from_pem(secret_key: &str) -> Result<SecretKey, ErrorExt> {
+    SecretKey::from_pem(secret_key)
+}
+
+/// Converts a secret key in PEM format to its corresponding public key as a string.
+///
+/// # Arguments
+///
+/// * `secret_key` - The secret key in PEM format.
+///
+/// # Returns
+///
+/// A `Result` containing the public key as a string or an error if the conversion fails.
+pub fn public_key_from_private_key(secret_key: &str) -> Result<String, ErrorExt> {
+    let secret_key_from_pem = secret_key_from_pem(secret_key);
+    let public_key = match secret_key_from_pem {
+        Ok(secret_key) => CasperTypesPublicKey::from(&secret_key),
+        Err(err) => {
+            error(&format!("Error in public_key_from_private_key: {:?}", err));
+            return Err(err);
+        }
+    };
+    let public_key_test: PublicKey = public_key.into();
+    Ok(public_key_test.to_string())
+}
+
+/// Converts a hexadecimal string to a vector of unsigned 8-bit integers (Uint8Array).
+///
+/// # Arguments
+///
+/// * `hex_string` - The hexadecimal string to convert.
+///
+/// # Returns
+///
+/// A vector of unsigned 8-bit integers (Uint8Array) containing the converted value.
+pub fn hex_to_uint8_vec(hex_string: &str) -> Vec<u8> {
+    let mut bytes = Vec::with_capacity(hex_string.len() / 2);
+    let mut hex_chars = hex_string.chars();
+    while let (Some(a), Some(b)) = (hex_chars.next(), hex_chars.next()) {
+        if let Ok(byte) = u8::from_str_radix(&format!("{}{}", a, b), 16) {
+            bytes.push(byte);
+        } else {
+            // If an invalid hex pair is encountered, return an empty vector.
+            return Vec::new();
+        }
+    }
+    bytes
+}
+
+/// Converts a hexadecimal string to a regular string.
+///
+/// # Arguments
+///
+/// * `hex_string` - The hexadecimal string to convert.
+///
+/// # Returns
+///
+/// A regular string containing the converted value.
+pub fn hex_to_string(hex_string: &str) -> String {
+    match hex::decode(hex_string) {
+        Ok(bytes) => String::from_utf8_lossy(&bytes).to_string(),
+        Err(_) => hex_string.to_string(),
+    }
+}
+
+/// Converts motes to CSPR (Casper tokens).
+///
+/// # Arguments
+///
+/// * `motes` - The motes value to convert.
+///
+/// # Returns
+///
+/// A string representing the CSPR amount.
+pub fn motes_to_cspr(motes: &str) -> String {
+    match Decimal::from_str(motes) {
+        Ok(motes_decimal) => {
+            let cspr_decimal = motes_decimal / Decimal::new(1_000_000_000, 0);
+            let formatted_cspr = cspr_decimal.to_string();
+            if formatted_cspr.ends_with(".00") {
+                formatted_cspr.replace(".00", "")
+            } else {
+                formatted_cspr
+            }
+        }
+        Err(_) => {
+            eprintln!("Failed to parse input as Decimal");
+            "Invalid input".to_string()
+        }
+    }
+}
+
+/// Pretty prints a serializable value as a JSON string.
+///
+/// # Arguments
+///
+/// * `value` - The serializable value to pretty print.
+/// * `verbosity` - An optional verbosity level for pretty printing.
+///
+/// # Returns
+///
+/// A JSON string representing the pretty printed value.
+pub fn json_pretty_print<T>(value: T, verbosity: Option<Verbosity>) -> String
+where
+    T: Serialize,
+{
+    if let Ok(deserialized) = serde_json::to_value(&value) {
+        let result = match verbosity {
+            Some(Verbosity::Low) | None => Ok(deserialized.to_string()),
+            Some(Verbosity::Medium) => casper_types::json_pretty_print(&deserialized),
+            Some(Verbosity::High) => serde_json::to_string_pretty(&deserialized),
+        }
+        .map_err(|err| error(&format!("Error in json_pretty_print: {}", err)));
+
+        match result {
+            Ok(result) => result,
+            Err(err) => {
+                error(&format!("Error in json_pretty_print: {:?}", err));
+                String::from("")
+            }
+        }
+    } else {
+        error("Deserialization error into_serde of json_pretty_print");
+        String::from("")
+    }
+}
+
+/// Inserts a JavaScript value argument into a RuntimeArgs map.
+///
+/// # Arguments
+///
+/// * `args` - The RuntimeArgs map to insert the argument into.
+/// * `js_value_arg` - The JavaScript value argument to insert.
+///
+/// # Returns
+///
+/// The modified `RuntimeArgs` map.
+pub fn insert_js_value_arg(args: &mut RuntimeArgs, js_value_arg: JsValue) -> &RuntimeArgs {
+    if js_sys::Object::instanceof(&js_value_arg) {
+        let json_arg: Result<JsonArg, serde_json::Error> = js_value_arg.into_serde();
+        let json_arg: Option<JsonArg> = match json_arg {
+            Ok(arg) => Some(arg),
+            Err(err) => {
+                error(&format!("Error converting to JsonArg: {:?}", err));
+                None
+            }
+        };
+        if let Some(json_arg) = json_arg {
+            let named_arg = NamedArg::try_from(json_arg);
+            let named_arg: Option<NamedArg> = match named_arg {
+                Ok(arg) => Some(arg),
+                Err(err) => {
+                    error(&format!("Error converting to NamedArg: {:?}", err));
+                    None
+                }
+            };
+            if let Some(named_arg) = named_arg {
+                args.insert_cl_value(named_arg.name(), named_arg.cl_value().clone());
+            }
+        }
+    } else if let Some(string_arg) = js_value_arg.as_string() {
+        let simple_arg = string_arg;
+        let _ = casper_client::cli::insert_arg(&simple_arg, args);
+    } else {
+        error("Error converting to JsonArg or Simple Arg");
+    }
+    args
+}
+
+/// Inserts an argument into a RuntimeArgs map.
+///
+/// # Arguments
+///
+/// * `args` - The RuntimeArgs map to insert the argument into.
+/// * `new_arg` - The argument as a string.
+///
+/// # Returns
+///
+/// The modified `RuntimeArgs` map.
+pub(crate) fn insert_arg(args: &mut RuntimeArgs, new_arg: String) -> &RuntimeArgs {
+    match serde_json::from_str::<JsonArg>(&new_arg) {
+        Ok(json_arg) => {
+            if let Ok(named_arg) = NamedArg::try_from(json_arg.clone()) {
+                // JSON args
+                args.insert_cl_value(named_arg.name(), named_arg.cl_value().clone());
+            }
+        }
+        Err(_) => {
+            // Simple args
+            let _ = casper_client::cli::insert_arg(&new_arg, args);
+        }
+    }
+    args
+}
+
\ No newline at end of file diff --git a/docs/api-rust/src/casper_rust_wasm_sdk/js/externs.rs.html b/docs/api-rust/src/casper_rust_wasm_sdk/js/externs.rs.html new file mode 100644 index 000000000..b4e246847 --- /dev/null +++ b/docs/api-rust/src/casper_rust_wasm_sdk/js/externs.rs.html @@ -0,0 +1,79 @@ +externs.rs - source
1
+2
+3
+4
+5
+6
+7
+8
+9
+10
+11
+12
+13
+14
+15
+16
+17
+18
+19
+20
+21
+22
+23
+24
+25
+26
+27
+28
+29
+30
+31
+32
+33
+34
+35
+36
+37
+38
+39
+
use wasm_bindgen::prelude::*;
+
+/// Logs a message, prefixing it with "log wasm" and sends it to the console in JavaScript when running in a WebAssembly environment.
+/// When running outside WebAssembly, it prints the message to the standard output.
+#[wasm_bindgen]
+extern "C" {
+    #[wasm_bindgen(js_namespace = console, js_name = log)]
+    fn log_with_prefix(s: &str);
+}
+
+/// Logs a message, prefixing it with "log wasm" and sends it to the console in JavaScript when running in a WebAssembly environment.
+/// When running outside WebAssembly, it prints the message to the standard output.
+#[allow(dead_code)]
+pub(crate) fn log(s: &str) {
+    let prefixed_s = format!("log wasm {}", s);
+    #[cfg(target_arch = "wasm32")]
+    log_with_prefix(&prefixed_s);
+    #[cfg(not(target_arch = "wasm32"))]
+    println!("{}", prefixed_s);
+}
+
+/// Logs an error message, prefixing it with "error wasm" and sends it to the console in JavaScript when running in a WebAssembly environment.
+/// When running outside WebAssembly, it prints the error message to the standard output.
+#[wasm_bindgen]
+extern "C" {
+    #[wasm_bindgen(js_namespace = console, js_name = error)]
+    fn error_with_prefix(s: &str);
+}
+
+/// Logs an error message, prefixing it with "error wasm" and sends it to the console in JavaScript when running in a WebAssembly environment.
+/// When running outside WebAssembly, it prints the error message to the standard output.
+#[allow(dead_code)]
+pub(crate) fn error(s: &str) {
+    let prefixed_s = format!("error wasm {}", s);
+    #[cfg(target_arch = "wasm32")]
+    error_with_prefix(&prefixed_s);
+    #[cfg(not(target_arch = "wasm32"))]
+    println!("{}", prefixed_s);
+}
+
\ No newline at end of file diff --git a/docs/api-rust/src/casper_rust_wasm_sdk/js/mod.rs.html b/docs/api-rust/src/casper_rust_wasm_sdk/js/mod.rs.html new file mode 100644 index 000000000..182f3113c --- /dev/null +++ b/docs/api-rust/src/casper_rust_wasm_sdk/js/mod.rs.html @@ -0,0 +1,7 @@ +mod.rs - source
1
+2
+3
+
pub mod externs;
+#[cfg(target_arch = "wasm32")]
+pub mod interns;
+
\ No newline at end of file diff --git a/docs/api-rust/src/casper_rust_wasm_sdk/lib.rs.html b/docs/api-rust/src/casper_rust_wasm_sdk/lib.rs.html new file mode 100644 index 000000000..463c029c9 --- /dev/null +++ b/docs/api-rust/src/casper_rust_wasm_sdk/lib.rs.html @@ -0,0 +1,17 @@ +lib.rs - source
1
+2
+3
+4
+5
+6
+7
+8
+
pub mod helpers;
+pub mod types;
+
+pub(crate) mod sdk;
+pub use sdk::*;
+
+pub(crate) mod js;
+pub use js::externs as debug;
+
\ No newline at end of file diff --git a/docs/api-rust/src/casper_rust_wasm_sdk/sdk/contract/call_entrypoint.rs.html b/docs/api-rust/src/casper_rust_wasm_sdk/sdk/contract/call_entrypoint.rs.html new file mode 100644 index 000000000..a55d9c066 --- /dev/null +++ b/docs/api-rust/src/casper_rust_wasm_sdk/sdk/contract/call_entrypoint.rs.html @@ -0,0 +1,209 @@ +call_entrypoint.rs - source
1
+2
+3
+4
+5
+6
+7
+8
+9
+10
+11
+12
+13
+14
+15
+16
+17
+18
+19
+20
+21
+22
+23
+24
+25
+26
+27
+28
+29
+30
+31
+32
+33
+34
+35
+36
+37
+38
+39
+40
+41
+42
+43
+44
+45
+46
+47
+48
+49
+50
+51
+52
+53
+54
+55
+56
+57
+58
+59
+60
+61
+62
+63
+64
+65
+66
+67
+68
+69
+70
+71
+72
+73
+74
+75
+76
+77
+78
+79
+80
+81
+82
+83
+84
+85
+86
+87
+88
+89
+90
+91
+92
+93
+94
+95
+96
+97
+98
+99
+100
+101
+102
+103
+104
+
#[cfg(target_arch = "wasm32")]
+use crate::deploy::deploy::PutDeployResult;
+use crate::types::deploy_params::{
+    deploy_str_params::{deploy_str_params_to_casper_client, DeployStrParams},
+    payment_str_params::{payment_str_params_to_casper_client, PaymentStrParams},
+    session_str_params::{session_str_params_to_casper_client, SessionStrParams},
+};
+use crate::{debug::error, types::sdk_error::SdkError, SDK};
+use casper_client::{
+    cli::make_deploy, rpcs::results::PutDeployResult as _PutDeployResult, SuccessResponse,
+};
+#[cfg(target_arch = "wasm32")]
+use wasm_bindgen::prelude::*;
+
+/// A set of functions for working with smart contract entry points.
+#[cfg(target_arch = "wasm32")]
+#[wasm_bindgen]
+impl SDK {
+    /// Calls a smart contract entry point with the specified parameters and returns the result.
+    ///
+    /// # Arguments
+    ///
+    /// * `deploy_params` - The deploy parameters.
+    /// * `session_params` - The session parameters.
+    /// * `payment_amount` - The payment amount as a string.
+    /// * `node_address` - An optional node address to send the request to.
+    ///
+    /// # Returns
+    ///
+    /// A `Result` containing either a `PutDeployResult` or a `JsError` in case of an error.
+    ///
+    /// # Errors
+    ///
+    /// Returns a `JsError` if there is an error during the call.
+    #[wasm_bindgen(js_name = "call_entrypoint")]
+    pub async fn call_entrypoint_js_alias(
+        &self,
+        deploy_params: DeployStrParams,
+        session_params: SessionStrParams,
+        payment_amount: &str,
+        node_address: Option<String>,
+    ) -> Result<PutDeployResult, JsError> {
+        let payment_params = PaymentStrParams::default();
+        payment_params.set_payment_amount(payment_amount);
+
+        let result = self
+            .call_entrypoint(deploy_params, session_params, payment_params, node_address)
+            .await;
+        match result {
+            Ok(data) => Ok(data.result.into()),
+            Err(err) => {
+                let err = &format!("Error occurred with {:?}", err);
+                error(err);
+                Err(JsError::new(err))
+            }
+        }
+    }
+}
+
+/// A set of functions for working with smart contract entry points.
+impl SDK {
+    /// Calls a smart contract entry point with the specified parameters and returns the result.
+    ///
+    /// # Arguments
+    ///
+    /// * `deploy_params` - The deploy parameters.
+    /// * `session_params` - The session parameters.
+    /// * `payment_params` - The payment parameters.
+    /// * `node_address` - An optional node address to send the request to.
+    ///
+    /// # Returns
+    ///
+    /// A `Result` containing either a `PutDeployResult` or a `SdkError` in case of an error.
+    ///
+    /// # Errors
+    ///
+    /// Returns a `SdkError` if there is an error during the call.
+    pub async fn call_entrypoint(
+        &self,
+        deploy_params: DeployStrParams,
+        session_params: SessionStrParams,
+        payment_params: PaymentStrParams,
+        node_address: Option<String>,
+    ) -> Result<SuccessResponse<_PutDeployResult>, SdkError> {
+        //log("call_entrypoint!");
+        let deploy = make_deploy(
+            "",
+            deploy_str_params_to_casper_client(&deploy_params),
+            session_str_params_to_casper_client(&session_params),
+            payment_str_params_to_casper_client(&payment_params),
+            false,
+        );
+
+        if let Err(err) = deploy {
+            let err_msg = format!("Error during install: {}", err);
+            error(&err_msg);
+            return Err(SdkError::from(err));
+        }
+
+        self.put_deploy(deploy.unwrap().into(), None, node_address)
+            .await
+            .map_err(SdkError::from)
+    }
+}
+
\ No newline at end of file diff --git a/docs/api-rust/src/casper_rust_wasm_sdk/sdk/contract/install.rs.html b/docs/api-rust/src/casper_rust_wasm_sdk/sdk/contract/install.rs.html new file mode 100644 index 000000000..12e6c4a7b --- /dev/null +++ b/docs/api-rust/src/casper_rust_wasm_sdk/sdk/contract/install.rs.html @@ -0,0 +1,203 @@ +install.rs - source
1
+2
+3
+4
+5
+6
+7
+8
+9
+10
+11
+12
+13
+14
+15
+16
+17
+18
+19
+20
+21
+22
+23
+24
+25
+26
+27
+28
+29
+30
+31
+32
+33
+34
+35
+36
+37
+38
+39
+40
+41
+42
+43
+44
+45
+46
+47
+48
+49
+50
+51
+52
+53
+54
+55
+56
+57
+58
+59
+60
+61
+62
+63
+64
+65
+66
+67
+68
+69
+70
+71
+72
+73
+74
+75
+76
+77
+78
+79
+80
+81
+82
+83
+84
+85
+86
+87
+88
+89
+90
+91
+92
+93
+94
+95
+96
+97
+98
+99
+100
+101
+
#[cfg(target_arch = "wasm32")]
+use crate::deploy::deploy::PutDeployResult;
+use crate::types::deploy_params::{
+    deploy_str_params::{deploy_str_params_to_casper_client, DeployStrParams},
+    payment_str_params::{payment_str_params_to_casper_client, PaymentStrParams},
+    session_str_params::{session_str_params_to_casper_client, SessionStrParams},
+};
+use crate::{debug::error, types::sdk_error::SdkError, SDK};
+use casper_client::{
+    cli::make_deploy, rpcs::results::PutDeployResult as _PutDeployResult, SuccessResponse,
+};
+#[cfg(target_arch = "wasm32")]
+use wasm_bindgen::prelude::*;
+
+/// A set of functions for installing smart contracts on the blockchain.
+#[cfg(target_arch = "wasm32")]
+#[wasm_bindgen]
+impl SDK {
+    /// Installs a smart contract with the specified parameters and returns the result.
+    ///
+    /// # Arguments
+    ///
+    /// * `deploy_params` - The deploy parameters.
+    /// * `session_params` - The session parameters.
+    /// * `payment_amount` - The payment amount as a string.
+    /// * `node_address` - An optional node address to send the request to.
+    ///
+    /// # Returns
+    ///
+    /// A `Result` containing either a `PutDeployResult` or a `JsError` in case of an error.
+    ///
+    /// # Errors
+    ///
+    /// Returns a `JsError` if there is an error during the installation.
+    #[wasm_bindgen(js_name = "install")]
+    pub async fn install_js_alias(
+        &self,
+        deploy_params: DeployStrParams,
+        session_params: SessionStrParams,
+        payment_amount: &str,
+        node_address: Option<String>,
+    ) -> Result<PutDeployResult, JsError> {
+        let payment_params = PaymentStrParams::default();
+        payment_params.set_payment_amount(payment_amount);
+        let result = self
+            .install(deploy_params, session_params, payment_params, node_address)
+            .await;
+        match result {
+            Ok(data) => Ok(data.result.into()),
+            Err(err) => {
+                let err = &format!("Error occurred with {:?}", err);
+                error(err);
+                Err(JsError::new(err))
+            }
+        }
+    }
+}
+
+/// A set of functions for installing smart contracts on the blockchain.
+impl SDK {
+    /// Installs a smart contract with the specified parameters and returns the result.
+    ///
+    /// # Arguments
+    ///
+    /// * `deploy_params` - The deploy parameters.
+    /// * `session_params` - The session parameters.
+    /// * `payment_params` - The payment parameters.
+    /// * `node_address` - An optional node address to send the request to.
+    ///
+    /// # Returns
+    ///
+    /// A `Result` containing either a `PutDeployResult` or a `SdkError` in case of an error.
+    ///
+    /// # Errors
+    ///
+    /// Returns a `SdkError` if there is an error during the installation.
+    pub async fn install(
+        &self,
+        deploy_params: DeployStrParams,
+        session_params: SessionStrParams,
+        payment_params: PaymentStrParams,
+        node_address: Option<String>,
+    ) -> Result<SuccessResponse<_PutDeployResult>, SdkError> {
+        //log("install!");
+        let deploy = make_deploy(
+            "",
+            deploy_str_params_to_casper_client(&deploy_params),
+            session_str_params_to_casper_client(&session_params),
+            payment_str_params_to_casper_client(&payment_params),
+            false,
+        );
+        if let Err(err) = deploy {
+            let err_msg = format!("Error during install: {}", err);
+            error(&err_msg);
+            return Err(SdkError::from(err));
+        }
+        self.put_deploy(deploy.unwrap().into(), None, node_address)
+            .await
+            .map_err(SdkError::from)
+    }
+}
+
\ No newline at end of file diff --git a/docs/api-rust/src/casper_rust_wasm_sdk/sdk/contract/mod.rs.html b/docs/api-rust/src/casper_rust_wasm_sdk/sdk/contract/mod.rs.html new file mode 100644 index 000000000..34b3efa7a --- /dev/null +++ b/docs/api-rust/src/casper_rust_wasm_sdk/sdk/contract/mod.rs.html @@ -0,0 +1,9 @@ +mod.rs - source
1
+2
+3
+4
+
pub mod call_entrypoint;
+pub mod install;
+pub mod query_contract_dict;
+pub mod query_contract_key;
+
\ No newline at end of file diff --git a/docs/api-rust/src/casper_rust_wasm_sdk/sdk/contract/query_contract_dict.rs.html b/docs/api-rust/src/casper_rust_wasm_sdk/sdk/contract/query_contract_dict.rs.html new file mode 100644 index 000000000..bb5fc3253 --- /dev/null +++ b/docs/api-rust/src/casper_rust_wasm_sdk/sdk/contract/query_contract_dict.rs.html @@ -0,0 +1,203 @@ +query_contract_dict.rs - source
1
+2
+3
+4
+5
+6
+7
+8
+9
+10
+11
+12
+13
+14
+15
+16
+17
+18
+19
+20
+21
+22
+23
+24
+25
+26
+27
+28
+29
+30
+31
+32
+33
+34
+35
+36
+37
+38
+39
+40
+41
+42
+43
+44
+45
+46
+47
+48
+49
+50
+51
+52
+53
+54
+55
+56
+57
+58
+59
+60
+61
+62
+63
+64
+65
+66
+67
+68
+69
+70
+71
+72
+73
+74
+75
+76
+77
+78
+79
+80
+81
+82
+83
+84
+85
+86
+87
+88
+89
+90
+91
+92
+93
+94
+95
+96
+97
+98
+99
+100
+101
+
#[cfg(target_arch = "wasm32")]
+use crate::rpcs::get_dictionary_item::GetDictionaryItemResult;
+#[cfg(target_arch = "wasm32")]
+use crate::types::{
+    deploy_params::dictionary_item_str_params::DictionaryItemStrParams,
+    dictionary_item_identifier::DictionaryItemIdentifier,
+};
+#[cfg(target_arch = "wasm32")]
+use crate::{debug::error, types::digest::Digest};
+use crate::{
+    rpcs::get_dictionary_item::DictionaryItemInput,
+    types::{digest::ToDigest, verbosity::Verbosity},
+};
+use crate::{types::sdk_error::SdkError, SDK};
+use casper_client::{
+    rpcs::results::GetDictionaryItemResult as _GetDictionaryItemResult, SuccessResponse,
+};
+#[cfg(target_arch = "wasm32")]
+use gloo_utils::format::JsValueSerdeExt;
+#[cfg(target_arch = "wasm32")]
+use serde::{Deserialize, Serialize};
+#[cfg(target_arch = "wasm32")]
+use wasm_bindgen::prelude::*;
+
+#[derive(Default, Debug, Deserialize, Clone, Serialize)]
+#[cfg(target_arch = "wasm32")]
+#[wasm_bindgen(js_name = "queryContractDictOptions", getter_with_clone)]
+pub struct QueryContractDictOptions {
+    // Not supported by get_dictionary_item
+    // pub global_state_identifier: Option<GlobalStateIdentifier>,
+    pub state_root_hash_as_string: Option<String>,
+    pub state_root_hash: Option<Digest>,
+    pub dictionary_item_params: Option<DictionaryItemStrParams>,
+    pub dictionary_item_identifier: Option<DictionaryItemIdentifier>,
+    pub node_address: Option<String>,
+    pub verbosity: Option<Verbosity>,
+}
+
+#[cfg(target_arch = "wasm32")]
+#[wasm_bindgen]
+impl SDK {
+    /// Deserialize query_contract_dict_options from a JavaScript object.
+    #[wasm_bindgen(js_name = "query_contract_dict_options")]
+    pub fn query_contract_dict_state_options(&self, options: JsValue) -> QueryContractDictOptions {
+        let options_result = options.into_serde::<QueryContractDictOptions>();
+        match options_result {
+            Ok(options) => options,
+            Err(err) => {
+                error(&format!(
+                    "Error deserializing query_contract_dict_options: {:?}",
+                    err
+                ));
+                QueryContractDictOptions::default()
+            }
+        }
+    }
+
+    /// JavaScript alias for query_contract_dict with deserialized options.
+    #[wasm_bindgen(js_name = "query_contract_dict")]
+    pub async fn query_contract_dict_js_alias(
+        &self,
+        options: Option<QueryContractDictOptions>,
+    ) -> Result<GetDictionaryItemResult, JsError> {
+        let js_value_options =
+            JsValue::from_serde::<QueryContractDictOptions>(&options.unwrap_or_default());
+        if let Err(err) = js_value_options {
+            let err = &format!("Error serializing options: {:?}", err);
+            error(err);
+            return Err(JsError::new(err));
+        }
+        let options = self.get_dictionary_item_options(js_value_options.unwrap());
+        self.get_dictionary_item_js_alias(Some(options)).await
+    }
+}
+
+impl SDK {
+    /// Query a contract dictionary item.
+    ///
+    /// # Arguments
+    ///
+    /// * `state_root_hash` - State root hash.
+    /// * `dictionary_item` - Dictionary item input.
+    /// * `verbosity` - Optional verbosity level.
+    /// * `node_address` - Optional node address.
+    ///
+    /// # Returns
+    ///
+    /// A `Result` containing either a `SuccessResponse<GetDictionaryItemResult>` or a `SdkError` in case of an error.
+    pub async fn query_contract_dict(
+        &self,
+        state_root_hash: impl ToDigest,
+        dictionary_item: DictionaryItemInput,
+        verbosity: Option<Verbosity>,
+        node_address: Option<String>,
+    ) -> Result<SuccessResponse<_GetDictionaryItemResult>, SdkError> {
+        // log("query_contract_dict!");
+        self.get_dictionary_item(state_root_hash, dictionary_item, verbosity, node_address)
+            .await
+            .map_err(SdkError::from)
+    }
+}
+
\ No newline at end of file diff --git a/docs/api-rust/src/casper_rust_wasm_sdk/sdk/contract/query_contract_key.rs.html b/docs/api-rust/src/casper_rust_wasm_sdk/sdk/contract/query_contract_key.rs.html new file mode 100644 index 000000000..69d1b064a --- /dev/null +++ b/docs/api-rust/src/casper_rust_wasm_sdk/sdk/contract/query_contract_key.rs.html @@ -0,0 +1,185 @@ +query_contract_key.rs - source
1
+2
+3
+4
+5
+6
+7
+8
+9
+10
+11
+12
+13
+14
+15
+16
+17
+18
+19
+20
+21
+22
+23
+24
+25
+26
+27
+28
+29
+30
+31
+32
+33
+34
+35
+36
+37
+38
+39
+40
+41
+42
+43
+44
+45
+46
+47
+48
+49
+50
+51
+52
+53
+54
+55
+56
+57
+58
+59
+60
+61
+62
+63
+64
+65
+66
+67
+68
+69
+70
+71
+72
+73
+74
+75
+76
+77
+78
+79
+80
+81
+82
+83
+84
+85
+86
+87
+88
+89
+90
+91
+92
+
#[cfg(target_arch = "wasm32")]
+use crate::rpcs::query_global_state::QueryGlobalStateResult;
+#[cfg(target_arch = "wasm32")]
+use crate::types::global_state_identifier::GlobalStateIdentifier;
+#[cfg(target_arch = "wasm32")]
+use crate::{
+    debug::error,
+    types::{digest::Digest, key::Key, path::Path, verbosity::Verbosity},
+};
+use crate::{rpcs::query_global_state::QueryGlobalStateParams, types::sdk_error::SdkError, SDK};
+use casper_client::{
+    rpcs::results::QueryGlobalStateResult as _QueryGlobalStateResult, SuccessResponse,
+};
+#[cfg(target_arch = "wasm32")]
+use gloo_utils::format::JsValueSerdeExt;
+#[cfg(target_arch = "wasm32")]
+use serde::{Deserialize, Serialize};
+#[cfg(target_arch = "wasm32")]
+use wasm_bindgen::prelude::*;
+
+#[derive(Deserialize, Default, Serialize)]
+#[cfg(target_arch = "wasm32")]
+#[wasm_bindgen(js_name = "queryContractKeyOptions", getter_with_clone)]
+pub struct QueryContractKeyOptions {
+    pub global_state_identifier: Option<GlobalStateIdentifier>,
+    pub state_root_hash_as_string: Option<String>,
+    pub state_root_hash: Option<Digest>,
+    pub maybe_block_id_as_string: Option<String>,
+    #[serde(rename = "key_as_string")]
+    pub contract_key_as_string: Option<String>,
+    #[serde(rename = "key")]
+    pub contract_key: Option<Key>,
+    pub path_as_string: Option<String>,
+    pub path: Option<Path>,
+    pub node_address: Option<String>,
+    pub verbosity: Option<Verbosity>,
+}
+
+#[cfg(target_arch = "wasm32")]
+#[wasm_bindgen]
+impl SDK {
+    /// Deserialize query_contract_key_options from a JavaScript object.
+    #[wasm_bindgen(js_name = "query_contract_key_options")]
+    pub fn query_contract_key_state_options(&self, options: JsValue) -> QueryContractKeyOptions {
+        let options_result = options.into_serde::<QueryContractKeyOptions>();
+        match options_result {
+            Ok(options) => options,
+            Err(err) => {
+                error(&format!("Error deserializing options: {:?}", err));
+                QueryContractKeyOptions::default()
+            }
+        }
+    }
+
+    /// JavaScript alias for query_contract_key with deserialized options.
+    #[wasm_bindgen(js_name = "query_contract_key")]
+    pub async fn query_contract_key_js_alias(
+        &self,
+        options: Option<QueryContractKeyOptions>,
+    ) -> Result<QueryGlobalStateResult, JsError> {
+        let js_value_options =
+            JsValue::from_serde::<QueryContractKeyOptions>(&options.unwrap_or_default());
+        if let Err(err) = js_value_options {
+            let err = &format!("Error serializing options:  {:?}", err);
+            error(err);
+            return Err(JsError::new(err));
+        }
+        let options = self.query_global_state_options(js_value_options.unwrap());
+        self.query_global_state_js_alias(Some(options)).await
+    }
+}
+
+impl SDK {
+    /// Query a contract key.
+    ///
+    /// # Arguments
+    ///
+    /// * `query_params` - Query global state parameters.
+    ///
+    /// # Returns
+    ///
+    /// A `Result` containing either a `SuccessResponse<QueryGlobalStateResult>` or a `SdkError` in case of an error.
+    pub async fn query_contract_key(
+        &self,
+        query_params: QueryGlobalStateParams,
+    ) -> Result<SuccessResponse<_QueryGlobalStateResult>, SdkError> {
+        //log("query_contract_key!");
+        self.query_global_state(query_params)
+            .await
+            .map_err(SdkError::from)
+    }
+}
+
\ No newline at end of file diff --git a/docs/api-rust/src/casper_rust_wasm_sdk/sdk/deploy/deploy.rs.html b/docs/api-rust/src/casper_rust_wasm_sdk/sdk/deploy/deploy.rs.html new file mode 100644 index 000000000..787ad6ba5 --- /dev/null +++ b/docs/api-rust/src/casper_rust_wasm_sdk/sdk/deploy/deploy.rs.html @@ -0,0 +1,313 @@ +deploy.rs - source
1
+2
+3
+4
+5
+6
+7
+8
+9
+10
+11
+12
+13
+14
+15
+16
+17
+18
+19
+20
+21
+22
+23
+24
+25
+26
+27
+28
+29
+30
+31
+32
+33
+34
+35
+36
+37
+38
+39
+40
+41
+42
+43
+44
+45
+46
+47
+48
+49
+50
+51
+52
+53
+54
+55
+56
+57
+58
+59
+60
+61
+62
+63
+64
+65
+66
+67
+68
+69
+70
+71
+72
+73
+74
+75
+76
+77
+78
+79
+80
+81
+82
+83
+84
+85
+86
+87
+88
+89
+90
+91
+92
+93
+94
+95
+96
+97
+98
+99
+100
+101
+102
+103
+104
+105
+106
+107
+108
+109
+110
+111
+112
+113
+114
+115
+116
+117
+118
+119
+120
+121
+122
+123
+124
+125
+126
+127
+128
+129
+130
+131
+132
+133
+134
+135
+136
+137
+138
+139
+140
+141
+142
+143
+144
+145
+146
+147
+148
+149
+150
+151
+152
+153
+154
+155
+156
+
#[cfg(target_arch = "wasm32")]
+use crate::types::deploy_hash::DeployHash;
+use crate::{
+    debug::error,
+    types::{
+        deploy_params::{
+            deploy_str_params::{deploy_str_params_to_casper_client, DeployStrParams},
+            payment_str_params::{payment_str_params_to_casper_client, PaymentStrParams},
+            session_str_params::{session_str_params_to_casper_client, SessionStrParams},
+        },
+        sdk_error::SdkError,
+        verbosity::Verbosity,
+    },
+    SDK,
+};
+use casper_client::{
+    cli::make_deploy, rpcs::results::PutDeployResult as _PutDeployResult, SuccessResponse,
+};
+#[cfg(target_arch = "wasm32")]
+use gloo_utils::format::JsValueSerdeExt;
+#[cfg(target_arch = "wasm32")]
+use serde::{Deserialize, Serialize};
+#[cfg(target_arch = "wasm32")]
+use wasm_bindgen::prelude::*;
+
+// Define a struct to wrap the result of a deploy.
+#[cfg(target_arch = "wasm32")]
+#[derive(Debug, Deserialize, Clone, Serialize)]
+#[wasm_bindgen]
+pub struct PutDeployResult(_PutDeployResult);
+
+/// Implement conversions between PutDeployResult and _PutDeployResult.
+#[cfg(target_arch = "wasm32")]
+impl From<PutDeployResult> for _PutDeployResult {
+    fn from(result: PutDeployResult) -> Self {
+        result.0
+    }
+}
+#[cfg(target_arch = "wasm32")]
+impl From<_PutDeployResult> for PutDeployResult {
+    fn from(result: _PutDeployResult) -> Self {
+        PutDeployResult(result)
+    }
+}
+
+/// Implement JavaScript bindings for PutDeployResult.
+#[cfg(target_arch = "wasm32")]
+#[wasm_bindgen]
+impl PutDeployResult {
+    /// Gets the API version as a JavaScript value.
+    #[wasm_bindgen(getter)]
+    pub fn api_version(&self) -> JsValue {
+        JsValue::from_serde(&self.0.api_version).unwrap()
+    }
+
+    /// Gets the deploy hash associated with this result.
+    #[wasm_bindgen(getter)]
+    pub fn deploy_hash(&self) -> DeployHash {
+        self.0.deploy_hash.into()
+    }
+
+    /// Converts PutDeployResult to a JavaScript object.
+    #[wasm_bindgen(js_name = "toJson")]
+    pub fn to_json(&self) -> JsValue {
+        JsValue::from_serde(&self.0).unwrap_or(JsValue::null())
+    }
+}
+
+#[cfg(target_arch = "wasm32")]
+#[wasm_bindgen]
+impl SDK {
+    /// JavaScript alias for deploying with deserialized parameters.
+    ///
+    /// # Arguments
+    ///
+    /// * `deploy_params` - Deploy parameters.
+    /// * `session_params` - Session parameters.
+    /// * `payment_params` - Payment parameters.
+    /// * `verbosity` - An optional verbosity level.
+    /// * `node_address` - An optional node address.
+    ///
+    /// # Returns
+    ///
+    /// A result containing PutDeployResult or a JsError.
+    #[wasm_bindgen(js_name = "deploy")]
+    pub async fn deploy_js_alias(
+        &self,
+        deploy_params: DeployStrParams,
+        session_params: SessionStrParams,
+        payment_params: PaymentStrParams,
+        verbosity: Option<Verbosity>,
+        node_address: Option<String>,
+    ) -> Result<PutDeployResult, JsError> {
+        let result = self
+            .deploy(
+                deploy_params,
+                session_params,
+                payment_params,
+                verbosity,
+                node_address,
+            )
+            .await;
+        match result {
+            Ok(data) => Ok(data.result.into()),
+            Err(err) => {
+                let err = &format!("Error occurred with {:?}", err);
+                error(err);
+                Err(JsError::new(err))
+            }
+        }
+    }
+}
+
+impl SDK {
+    /// Perform a deploy operation.
+    ///
+    /// # Arguments
+    ///
+    /// * `deploy_params` - Deploy parameters.
+    /// * `session_params` - Session parameters.
+    /// * `payment_params` - Payment parameters.
+    /// * `verbosity` - An optional verbosity level.
+    /// * `node_address` - An optional node address.
+    ///
+    /// # Returns
+    ///
+    /// A result containing a SuccessResponse or an SdkError.
+    pub async fn deploy(
+        &self,
+        deploy_params: DeployStrParams,
+        session_params: SessionStrParams,
+        payment_params: PaymentStrParams,
+        verbosity: Option<Verbosity>,
+        node_address: Option<String>,
+    ) -> Result<SuccessResponse<_PutDeployResult>, SdkError> {
+        //log("deploy!");
+        let deploy = make_deploy(
+            "",
+            deploy_str_params_to_casper_client(&deploy_params),
+            session_str_params_to_casper_client(&session_params),
+            payment_str_params_to_casper_client(&payment_params),
+            false,
+        );
+
+        if let Err(err) = deploy {
+            let err_msg = format!("Error during deploy: {}", err);
+            error(&err_msg);
+            return Err(SdkError::from(err));
+        }
+
+        // Send the deploy to the network and handle any errors.
+        self.put_deploy(deploy.unwrap().into(), verbosity, node_address)
+            .await
+            .map_err(SdkError::from)
+    }
+}
+
\ No newline at end of file diff --git a/docs/api-rust/src/casper_rust_wasm_sdk/sdk/deploy/mod.rs.html b/docs/api-rust/src/casper_rust_wasm_sdk/sdk/deploy/mod.rs.html new file mode 100644 index 000000000..6bff28063 --- /dev/null +++ b/docs/api-rust/src/casper_rust_wasm_sdk/sdk/deploy/mod.rs.html @@ -0,0 +1,11 @@ +mod.rs - source
1
+2
+3
+4
+5
+
#[allow(clippy::module_inception)]
+pub mod deploy;
+pub mod speculative_deploy;
+pub mod speculative_transfer;
+pub mod transfer;
+
\ No newline at end of file diff --git a/docs/api-rust/src/casper_rust_wasm_sdk/sdk/deploy/speculative_deploy.rs.html b/docs/api-rust/src/casper_rust_wasm_sdk/sdk/deploy/speculative_deploy.rs.html new file mode 100644 index 000000000..533451b06 --- /dev/null +++ b/docs/api-rust/src/casper_rust_wasm_sdk/sdk/deploy/speculative_deploy.rs.html @@ -0,0 +1,247 @@ +speculative_deploy.rs - source
1
+2
+3
+4
+5
+6
+7
+8
+9
+10
+11
+12
+13
+14
+15
+16
+17
+18
+19
+20
+21
+22
+23
+24
+25
+26
+27
+28
+29
+30
+31
+32
+33
+34
+35
+36
+37
+38
+39
+40
+41
+42
+43
+44
+45
+46
+47
+48
+49
+50
+51
+52
+53
+54
+55
+56
+57
+58
+59
+60
+61
+62
+63
+64
+65
+66
+67
+68
+69
+70
+71
+72
+73
+74
+75
+76
+77
+78
+79
+80
+81
+82
+83
+84
+85
+86
+87
+88
+89
+90
+91
+92
+93
+94
+95
+96
+97
+98
+99
+100
+101
+102
+103
+104
+105
+106
+107
+108
+109
+110
+111
+112
+113
+114
+115
+116
+117
+118
+119
+120
+121
+122
+123
+
#[cfg(target_arch = "wasm32")]
+use crate::rpcs::speculative_exec::SpeculativeExecResult;
+use crate::{
+    debug::error,
+    types::{
+        block_identifier::{BlockIdentifier, BlockIdentifierInput},
+        deploy_params::{
+            deploy_str_params::{deploy_str_params_to_casper_client, DeployStrParams},
+            payment_str_params::{payment_str_params_to_casper_client, PaymentStrParams},
+            session_str_params::{session_str_params_to_casper_client, SessionStrParams},
+        },
+        sdk_error::SdkError,
+        verbosity::Verbosity,
+    },
+    SDK,
+};
+use casper_client::{
+    cli::make_deploy, rpcs::results::SpeculativeExecResult as _SpeculativeExecResult,
+    SuccessResponse,
+};
+#[cfg(target_arch = "wasm32")]
+use wasm_bindgen::prelude::*;
+
+#[cfg(target_arch = "wasm32")]
+#[wasm_bindgen]
+impl SDK {
+    /// This function allows executing a deploy speculatively.
+    ///
+    /// # Arguments
+    ///
+    /// * `deploy_params` - Deployment parameters for the deploy.
+    /// * `session_params` - Session parameters for the deploy.
+    /// * `payment_params` - Payment parameters for the deploy.
+    /// * `maybe_block_identifier` - Optional block identifier.
+    /// * `verbosity` - Optional verbosity level.
+    /// * `node_address` - Optional node address.
+    ///
+    /// # Returns
+    ///
+    /// A `Result` containing either a `SpeculativeExecResult` or a `JsError` in case of an error.
+    #[wasm_bindgen(js_name = "speculative_deploy")]
+    pub async fn speculative_deploy_js_alias(
+        &self,
+        deploy_params: DeployStrParams,
+        session_params: SessionStrParams,
+        payment_params: PaymentStrParams,
+        maybe_block_identifier: Option<BlockIdentifier>,
+        verbosity: Option<Verbosity>,
+        node_address: Option<String>,
+    ) -> Result<SpeculativeExecResult, JsError> {
+        let result = self
+            .speculative_deploy(
+                deploy_params,
+                session_params,
+                payment_params,
+                maybe_block_identifier,
+                verbosity,
+                node_address,
+            )
+            .await;
+        match result {
+            Ok(data) => Ok(data.result.into()),
+            Err(err) => {
+                let err = &format!("Error occurred with {:?}", err);
+                error(err);
+                Err(JsError::new(err))
+            }
+        }
+    }
+}
+
+impl SDK {
+    /// This function allows executing a deploy speculatively.
+    ///
+    /// # Arguments
+    ///
+    /// * `deploy_params` - Deployment parameters for the deploy.
+    /// * `session_params` - Session parameters for the deploy.
+    /// * `payment_params` - Payment parameters for the deploy.
+    /// * `maybe_block_identifier` - Optional block identifier.
+    /// * `verbosity` - Optional verbosity level.
+    /// * `node_address` - Optional node address.
+    ///
+    /// # Returns
+    ///
+    /// A `Result` containing either a `SuccessResponse<SpeculativeExecResult>` or a `SdkError` in case of an error.
+    pub async fn speculative_deploy(
+        &self,
+        deploy_params: DeployStrParams,
+        session_params: SessionStrParams,
+        payment_params: PaymentStrParams,
+        maybe_block_identifier: Option<BlockIdentifier>,
+        verbosity: Option<Verbosity>,
+        node_address: Option<String>,
+    ) -> Result<SuccessResponse<_SpeculativeExecResult>, SdkError> {
+        // log("speculative_deploy!");
+        let deploy = make_deploy(
+            "",
+            deploy_str_params_to_casper_client(&deploy_params),
+            session_str_params_to_casper_client(&session_params),
+            payment_str_params_to_casper_client(&payment_params),
+            false,
+        );
+
+        if let Err(err) = deploy {
+            let err_msg = format!("Error during speculative_deploy: {}", err);
+            error(&err_msg);
+            return Err(SdkError::from(err));
+        }
+
+        let maybe_block_identifier =
+            maybe_block_identifier.map(BlockIdentifierInput::BlockIdentifier);
+
+        self.speculative_exec(
+            deploy.unwrap().into(),
+            maybe_block_identifier,
+            verbosity,
+            node_address,
+        )
+        .await
+        .map_err(SdkError::from)
+    }
+}
+
\ No newline at end of file diff --git a/docs/api-rust/src/casper_rust_wasm_sdk/sdk/deploy/speculative_transfer.rs.html b/docs/api-rust/src/casper_rust_wasm_sdk/sdk/deploy/speculative_transfer.rs.html new file mode 100644 index 000000000..04365a170 --- /dev/null +++ b/docs/api-rust/src/casper_rust_wasm_sdk/sdk/deploy/speculative_transfer.rs.html @@ -0,0 +1,301 @@ +speculative_transfer.rs - source
1
+2
+3
+4
+5
+6
+7
+8
+9
+10
+11
+12
+13
+14
+15
+16
+17
+18
+19
+20
+21
+22
+23
+24
+25
+26
+27
+28
+29
+30
+31
+32
+33
+34
+35
+36
+37
+38
+39
+40
+41
+42
+43
+44
+45
+46
+47
+48
+49
+50
+51
+52
+53
+54
+55
+56
+57
+58
+59
+60
+61
+62
+63
+64
+65
+66
+67
+68
+69
+70
+71
+72
+73
+74
+75
+76
+77
+78
+79
+80
+81
+82
+83
+84
+85
+86
+87
+88
+89
+90
+91
+92
+93
+94
+95
+96
+97
+98
+99
+100
+101
+102
+103
+104
+105
+106
+107
+108
+109
+110
+111
+112
+113
+114
+115
+116
+117
+118
+119
+120
+121
+122
+123
+124
+125
+126
+127
+128
+129
+130
+131
+132
+133
+134
+135
+136
+137
+138
+139
+140
+141
+142
+143
+144
+145
+146
+147
+148
+149
+150
+
#[cfg(target_arch = "wasm32")]
+use crate::rpcs::speculative_exec::SpeculativeExecResult;
+#[cfg(target_arch = "wasm32")]
+use crate::types::block_identifier::BlockIdentifier;
+use crate::{
+    debug::error,
+    types::{
+        block_identifier::BlockIdentifierInput,
+        deploy_params::{
+            deploy_str_params::{deploy_str_params_to_casper_client, DeployStrParams},
+            payment_str_params::{payment_str_params_to_casper_client, PaymentStrParams},
+        },
+        sdk_error::SdkError,
+        verbosity::Verbosity,
+    },
+    SDK,
+};
+use casper_client::{
+    cli::make_transfer, rpcs::results::SpeculativeExecResult as _SpeculativeExecResult,
+    SuccessResponse,
+};
+use rand::Rng;
+#[cfg(target_arch = "wasm32")]
+use wasm_bindgen::prelude::*;
+
+#[cfg(target_arch = "wasm32")]
+#[wasm_bindgen]
+impl SDK {
+    /// JS Alias for speculative transfer.
+    ///
+    /// # Arguments
+    ///
+    /// * `amount` - The amount to transfer.
+    /// * `target_account` - The target account.
+    /// * `transfer_id` - An optional transfer ID (defaults to a random number).
+    /// * `deploy_params` - The deployment parameters.
+    /// * `payment_params` - The payment parameters.
+    /// * `maybe_block_id_as_string` - An optional block ID as a string.
+    /// * `maybe_block_identifier` - An optional block identifier.
+    /// * `verbosity` - The verbosity level for logging (optional).
+    /// * `node_address` - The address of the node to connect to (optional).
+    ///
+    /// # Returns
+    ///
+    /// A `Result` containing the result of the speculative transfer or a `JsError` in case of an error.
+    #[allow(clippy::too_many_arguments)]
+    #[wasm_bindgen(js_name = "speculative_transfer")]
+    pub async fn speculative_transfer_js_alias(
+        &self,
+        amount: &str,
+        target_account: &str,
+        transfer_id: Option<String>,
+        deploy_params: DeployStrParams,
+        payment_params: PaymentStrParams,
+        maybe_block_id_as_string: Option<String>,
+        maybe_block_identifier: Option<BlockIdentifier>,
+        verbosity: Option<Verbosity>,
+        node_address: Option<String>,
+    ) -> Result<SpeculativeExecResult, JsError> {
+        let maybe_block_identifier = if let Some(maybe_block_identifier) = maybe_block_identifier {
+            Some(BlockIdentifierInput::BlockIdentifier(
+                maybe_block_identifier,
+            ))
+        } else {
+            maybe_block_id_as_string.map(BlockIdentifierInput::String)
+        };
+        let result = self
+            .speculative_transfer(
+                amount,
+                target_account,
+                transfer_id,
+                deploy_params,
+                payment_params,
+                maybe_block_identifier,
+                verbosity,
+                node_address,
+            )
+            .await;
+        match result {
+            Ok(data) => Ok(data.result.into()),
+            Err(err) => {
+                let err = &format!("Error occurred with {:?}", err);
+                error(err);
+                Err(JsError::new(err))
+            }
+        }
+    }
+}
+
+impl SDK {
+    /// Perform a speculative transfer.
+    ///
+    /// # Arguments
+    ///
+    /// * `amount` - The amount to transfer.
+    /// * `target_account` - The target account.
+    /// * `transfer_id` - An optional transfer ID (defaults to a random number).
+    /// * `deploy_params` - The deployment parameters.
+    /// * `payment_params` - The payment parameters.
+    /// * `maybe_block_identifier` - An optional block identifier.
+    /// * `verbosity` - The verbosity level for logging (optional).
+    /// * `node_address` - The address of the node to connect to (optional).
+    ///
+    /// # Returns
+    ///
+    /// A `Result` containing the result of the speculative transfer or a `SdkError` in case of an error.
+    #[allow(clippy::too_many_arguments)]
+    pub async fn speculative_transfer(
+        &self,
+        amount: &str,
+        target_account: &str,
+        transfer_id: Option<String>,
+        deploy_params: DeployStrParams,
+        payment_params: PaymentStrParams,
+        maybe_block_identifier: Option<BlockIdentifierInput>,
+        verbosity: Option<Verbosity>,
+        node_address: Option<String>,
+    ) -> Result<SuccessResponse<_SpeculativeExecResult>, SdkError> {
+        // log("speculative_transfer!");
+        let transfer_id = if let Some(transfer_id) = transfer_id {
+            transfer_id
+        } else {
+            rand::thread_rng().gen::<u64>().to_string()
+        };
+        let deploy = make_transfer(
+            "",
+            amount,
+            target_account,
+            &transfer_id,
+            deploy_str_params_to_casper_client(&deploy_params),
+            payment_str_params_to_casper_client(&payment_params),
+            false,
+        );
+
+        if let Err(err) = deploy {
+            let err_msg = format!("Error during speculative_transfer: {}", err);
+            error(&err_msg);
+            return Err(SdkError::from(err));
+        }
+
+        self.speculative_exec(
+            deploy.unwrap().into(),
+            maybe_block_identifier,
+            verbosity,
+            node_address,
+        )
+        .await
+        .map_err(SdkError::from)
+    }
+}
+
\ No newline at end of file diff --git a/docs/api-rust/src/casper_rust_wasm_sdk/sdk/deploy/transfer.rs.html b/docs/api-rust/src/casper_rust_wasm_sdk/sdk/deploy/transfer.rs.html new file mode 100644 index 000000000..a0eb1c3c3 --- /dev/null +++ b/docs/api-rust/src/casper_rust_wasm_sdk/sdk/deploy/transfer.rs.html @@ -0,0 +1,255 @@ +transfer.rs - source
1
+2
+3
+4
+5
+6
+7
+8
+9
+10
+11
+12
+13
+14
+15
+16
+17
+18
+19
+20
+21
+22
+23
+24
+25
+26
+27
+28
+29
+30
+31
+32
+33
+34
+35
+36
+37
+38
+39
+40
+41
+42
+43
+44
+45
+46
+47
+48
+49
+50
+51
+52
+53
+54
+55
+56
+57
+58
+59
+60
+61
+62
+63
+64
+65
+66
+67
+68
+69
+70
+71
+72
+73
+74
+75
+76
+77
+78
+79
+80
+81
+82
+83
+84
+85
+86
+87
+88
+89
+90
+91
+92
+93
+94
+95
+96
+97
+98
+99
+100
+101
+102
+103
+104
+105
+106
+107
+108
+109
+110
+111
+112
+113
+114
+115
+116
+117
+118
+119
+120
+121
+122
+123
+124
+125
+126
+127
+
#[cfg(target_arch = "wasm32")]
+use super::deploy::PutDeployResult;
+use crate::{
+    debug::error,
+    types::{
+        deploy_params::{
+            deploy_str_params::{deploy_str_params_to_casper_client, DeployStrParams},
+            payment_str_params::{payment_str_params_to_casper_client, PaymentStrParams},
+        },
+        sdk_error::SdkError,
+        verbosity::Verbosity,
+    },
+    SDK,
+};
+use casper_client::{
+    cli::make_transfer, rpcs::results::PutDeployResult as _PutDeployResult, SuccessResponse,
+};
+use rand::Rng;
+#[cfg(target_arch = "wasm32")]
+use wasm_bindgen::prelude::*;
+
+#[cfg(target_arch = "wasm32")]
+#[wasm_bindgen]
+impl SDK {
+    /// JS Alias for transferring funds.
+    ///
+    /// # Arguments
+    ///
+    /// * `amount` - The amount to transfer.
+    /// * `target_account` - The target account.
+    /// * `transfer_id` - An optional transfer ID (defaults to a random number).
+    /// * `deploy_params` - The deployment parameters.
+    /// * `payment_params` - The payment parameters.
+    /// * `verbosity` - The verbosity level for logging (optional).
+    /// * `node_address` - The address of the node to connect to (optional).
+    ///
+    /// # Returns
+    ///
+    /// A `Result` containing the result of the transfer or a `JsError` in case of an error.
+    #[wasm_bindgen(js_name = "transfer")]
+    #[allow(clippy::too_many_arguments)]
+    pub async fn transfer_js_alias(
+        &self,
+        amount: &str,
+        target_account: &str,
+        transfer_id: Option<String>,
+        deploy_params: DeployStrParams,
+        payment_params: PaymentStrParams,
+        verbosity: Option<Verbosity>,
+        node_address: Option<String>,
+    ) -> Result<PutDeployResult, JsError> {
+        let result = self
+            .transfer(
+                amount,
+                target_account,
+                transfer_id,
+                deploy_params,
+                payment_params,
+                verbosity,
+                node_address,
+            )
+            .await;
+        match result {
+            Ok(data) => Ok(data.result.into()),
+            Err(err) => {
+                let err = &format!("Error occurred with {:?}", err);
+                error(err);
+                Err(JsError::new(err))
+            }
+        }
+    }
+}
+
+impl SDK {
+    /// Perform a transfer of funds.
+    ///
+    /// # Arguments
+    ///
+    /// * `amount` - The amount to transfer.
+    /// * `target_account` - The target account.
+    /// * `transfer_id` - An optional transfer ID (defaults to a random number).
+    /// * `deploy_params` - The deployment parameters.
+    /// * `payment_params` - The payment parameters.
+    /// * `verbosity` - The verbosity level for logging (optional).
+    /// * `node_address` - The address of the node to connect to (optional).
+    ///
+    /// # Returns
+    ///
+    /// A `Result` containing the result of the transfer or a `SdkError` in case of an error.
+    #[allow(clippy::too_many_arguments)]
+    pub async fn transfer(
+        &self,
+        amount: &str,
+        target_account: &str,
+        transfer_id: Option<String>,
+        deploy_params: DeployStrParams,
+        payment_params: PaymentStrParams,
+        verbosity: Option<Verbosity>,
+        node_address: Option<String>,
+    ) -> Result<SuccessResponse<_PutDeployResult>, SdkError> {
+        //log("transfer!");
+        let transfer_id = if let Some(transfer_id) = transfer_id {
+            transfer_id
+        } else {
+            rand::thread_rng().gen::<u64>().to_string()
+        };
+        let deploy = make_transfer(
+            "",
+            amount,
+            target_account,
+            &transfer_id,
+            deploy_str_params_to_casper_client(&deploy_params),
+            payment_str_params_to_casper_client(&payment_params),
+            false,
+        );
+
+        if let Err(err) = deploy {
+            let err_msg = format!("Error during transfer: {}", err);
+            error(&err_msg);
+            return Err(SdkError::from(err));
+        }
+
+        self.put_deploy(deploy.unwrap().into(), verbosity, node_address)
+            .await
+            .map_err(SdkError::from)
+    }
+}
+
\ No newline at end of file diff --git a/docs/api-rust/src/casper_rust_wasm_sdk/sdk/deploy_utils/make_deploy.rs.html b/docs/api-rust/src/casper_rust_wasm_sdk/sdk/deploy_utils/make_deploy.rs.html new file mode 100644 index 000000000..8e8bad66c --- /dev/null +++ b/docs/api-rust/src/casper_rust_wasm_sdk/sdk/deploy_utils/make_deploy.rs.html @@ -0,0 +1,185 @@ +make_deploy.rs - source
1
+2
+3
+4
+5
+6
+7
+8
+9
+10
+11
+12
+13
+14
+15
+16
+17
+18
+19
+20
+21
+22
+23
+24
+25
+26
+27
+28
+29
+30
+31
+32
+33
+34
+35
+36
+37
+38
+39
+40
+41
+42
+43
+44
+45
+46
+47
+48
+49
+50
+51
+52
+53
+54
+55
+56
+57
+58
+59
+60
+61
+62
+63
+64
+65
+66
+67
+68
+69
+70
+71
+72
+73
+74
+75
+76
+77
+78
+79
+80
+81
+82
+83
+84
+85
+86
+87
+88
+89
+90
+91
+92
+
#[cfg(target_arch = "wasm32")]
+use crate::debug::error;
+#[cfg(target_arch = "wasm32")]
+use crate::types::deploy::Deploy;
+use crate::{
+    types::{
+        deploy_params::{
+            deploy_str_params::{deploy_str_params_to_casper_client, DeployStrParams},
+            payment_str_params::{payment_str_params_to_casper_client, PaymentStrParams},
+            session_str_params::{session_str_params_to_casper_client, SessionStrParams},
+        },
+        sdk_error::SdkError,
+    },
+    SDK,
+};
+use casper_client::cli::make_deploy as client_make_deploy;
+use casper_client::types::Deploy as _Deploy;
+#[cfg(target_arch = "wasm32")]
+use wasm_bindgen::prelude::*;
+
+/// Exposes the `make_deploy` function to JavaScript with an alias.
+#[cfg(target_arch = "wasm32")]
+#[wasm_bindgen]
+impl SDK {
+    /// JS Alias for `make_deploy`.
+    ///
+    /// # Arguments
+    ///
+    /// * `deploy_params` - The deploy parameters.
+    /// * `session_params` - The session parameters.
+    /// * `payment_params` - The payment parameters.
+    ///
+    /// # Returns
+    ///
+    /// A `Result` containing the created `Deploy` or a `JsError` in case of an error.
+    #[wasm_bindgen(js_name = "make_deploy")]
+    pub fn make_deploy_js_alias(
+        &self,
+        deploy_params: DeployStrParams,
+        session_params: SessionStrParams,
+        payment_params: PaymentStrParams,
+    ) -> Result<Deploy, JsError> {
+        let result = make_deploy(deploy_params, session_params, payment_params);
+        match result {
+            Ok(data) => Ok(data.into()),
+            Err(err) => {
+                let err = &format!("Error occurred with {:?}", err);
+                error(err);
+                Err(JsError::new(err))
+            }
+        }
+    }
+}
+
+impl SDK {
+    /// Creates a deploy using the provided parameters.
+    ///
+    /// # Arguments
+    ///
+    /// * `deploy_params` - The deploy parameters.
+    /// * `session_params` - The session parameters.
+    /// * `payment_params` - The payment parameters.
+    ///
+    /// # Returns
+    ///
+    /// A `Result` containing the created `Deploy` or a `SdkError` in case of an error.
+    pub fn make_deploy(
+        &self,
+        deploy_params: DeployStrParams,
+        session_params: SessionStrParams,
+        payment_params: PaymentStrParams,
+    ) -> Result<_Deploy, SdkError> {
+        make_deploy(deploy_params, session_params, payment_params).map_err(SdkError::from)
+    }
+}
+
+/// Internal function to create a deploy.
+pub(crate) fn make_deploy(
+    deploy_params: DeployStrParams,
+    session_params: SessionStrParams,
+    payment_params: PaymentStrParams,
+) -> Result<_Deploy, SdkError> {
+    // log("make_deploy");
+    client_make_deploy(
+        "",
+        deploy_str_params_to_casper_client(&deploy_params),
+        session_str_params_to_casper_client(&session_params),
+        payment_str_params_to_casper_client(&payment_params),
+        false,
+    )
+    .map_err(SdkError::from)
+}
+
\ No newline at end of file diff --git a/docs/api-rust/src/casper_rust_wasm_sdk/sdk/deploy_utils/make_transfer.rs.html b/docs/api-rust/src/casper_rust_wasm_sdk/sdk/deploy_utils/make_transfer.rs.html new file mode 100644 index 000000000..8a84c7249 --- /dev/null +++ b/docs/api-rust/src/casper_rust_wasm_sdk/sdk/deploy_utils/make_transfer.rs.html @@ -0,0 +1,247 @@ +make_transfer.rs - source
1
+2
+3
+4
+5
+6
+7
+8
+9
+10
+11
+12
+13
+14
+15
+16
+17
+18
+19
+20
+21
+22
+23
+24
+25
+26
+27
+28
+29
+30
+31
+32
+33
+34
+35
+36
+37
+38
+39
+40
+41
+42
+43
+44
+45
+46
+47
+48
+49
+50
+51
+52
+53
+54
+55
+56
+57
+58
+59
+60
+61
+62
+63
+64
+65
+66
+67
+68
+69
+70
+71
+72
+73
+74
+75
+76
+77
+78
+79
+80
+81
+82
+83
+84
+85
+86
+87
+88
+89
+90
+91
+92
+93
+94
+95
+96
+97
+98
+99
+100
+101
+102
+103
+104
+105
+106
+107
+108
+109
+110
+111
+112
+113
+114
+115
+116
+117
+118
+119
+120
+121
+122
+123
+
#[cfg(target_arch = "wasm32")]
+use crate::debug::error;
+#[cfg(target_arch = "wasm32")]
+use crate::types::deploy::Deploy;
+use crate::{
+    types::{
+        deploy_params::{
+            deploy_str_params::{deploy_str_params_to_casper_client, DeployStrParams},
+            payment_str_params::{payment_str_params_to_casper_client, PaymentStrParams},
+        },
+        sdk_error::SdkError,
+    },
+    SDK,
+};
+use casper_client::cli::make_transfer as client_make_transfer;
+use casper_client::types::Deploy as _Deploy;
+use rand::Rng;
+#[cfg(target_arch = "wasm32")]
+use wasm_bindgen::prelude::*;
+
+/// Exposes the `make_transfer` function to JavaScript with an alias.
+#[cfg(target_arch = "wasm32")]
+#[wasm_bindgen]
+impl SDK {
+    /// JS Alias for `make_transfer`.
+    ///
+    /// # Arguments
+    ///
+    /// * `amount` - The transfer amount.
+    /// * `target_account` - The target account.
+    /// * `transfer_id` - Optional transfer identifier.
+    /// * `deploy_params` - The deploy parameters.
+    /// * `payment_params` - The payment parameters.
+    ///
+    /// # Returns
+    ///
+    /// A `Result` containing the created `Deploy` or a `JsError` in case of an error.
+    #[wasm_bindgen(js_name = "make_transfer")]
+    pub fn make_transfer_js_alias(
+        &self,
+        amount: &str,
+        target_account: &str,
+        transfer_id: Option<String>,
+        deploy_params: DeployStrParams,
+        payment_params: PaymentStrParams,
+    ) -> Result<Deploy, JsError> {
+        // log("make_transfer");
+        let result = self.make_transfer(
+            amount,
+            target_account,
+            transfer_id,
+            deploy_params,
+            payment_params,
+        );
+        match result {
+            Ok(data) => Ok(data.into()),
+            Err(err) => {
+                let err = &format!("Error occurred with {:?}", err);
+                error(err);
+                Err(JsError::new(err))
+            }
+        }
+    }
+}
+
+impl SDK {
+    /// Creates a transfer deploy with the provided parameters.
+    ///
+    /// # Arguments
+    ///
+    /// * `amount` - The transfer amount.
+    /// * `target_account` - The target account.
+    /// * `transfer_id` - Optional transfer identifier.
+    /// * `deploy_params` - The deploy parameters.
+    /// * `payment_params` - The payment parameters.
+    ///
+    /// # Returns
+    ///
+    /// A `Result` containing the created `Deploy` or a `SdkError` in case of an error.
+    pub fn make_transfer(
+        &self,
+        amount: &str,
+        target_account: &str,
+        transfer_id: Option<String>,
+        deploy_params: DeployStrParams,
+        payment_params: PaymentStrParams,
+    ) -> Result<_Deploy, SdkError> {
+        // log("make_transfer");
+        make_transfer(
+            amount,
+            target_account,
+            transfer_id,
+            deploy_params,
+            payment_params,
+        )
+        .map_err(SdkError::from)
+    }
+}
+
+/// Internal function to create a transfer deploy.
+pub(crate) fn make_transfer(
+    amount: &str,
+    target_account: &str,
+    transfer_id: Option<String>,
+    deploy_params: DeployStrParams,
+    payment_params: PaymentStrParams,
+) -> Result<_Deploy, SdkError> {
+    let transfer_id = if let Some(transfer_id) = transfer_id {
+        transfer_id
+    } else {
+        rand::thread_rng().gen::<u64>().to_string()
+    };
+    client_make_transfer(
+        "",
+        amount,
+        target_account,
+        &transfer_id,
+        deploy_str_params_to_casper_client(&deploy_params),
+        payment_str_params_to_casper_client(&payment_params),
+        false,
+    )
+    .map_err(SdkError::from)
+}
+
\ No newline at end of file diff --git a/docs/api-rust/src/casper_rust_wasm_sdk/sdk/deploy_utils/mod.rs.html b/docs/api-rust/src/casper_rust_wasm_sdk/sdk/deploy_utils/mod.rs.html new file mode 100644 index 000000000..d3bd0d15e --- /dev/null +++ b/docs/api-rust/src/casper_rust_wasm_sdk/sdk/deploy_utils/mod.rs.html @@ -0,0 +1,15 @@ +mod.rs - source
1
+2
+3
+4
+5
+6
+7
+
pub(crate) mod make_deploy;
+pub(crate) use make_deploy::make_deploy;
+
+pub(crate) mod make_transfer;
+pub(crate) use make_transfer::make_transfer;
+
+pub(crate) mod sign_deploy;
+
\ No newline at end of file diff --git a/docs/api-rust/src/casper_rust_wasm_sdk/sdk/deploy_utils/sign_deploy.rs.html b/docs/api-rust/src/casper_rust_wasm_sdk/sdk/deploy_utils/sign_deploy.rs.html new file mode 100644 index 000000000..048a7bfc1 --- /dev/null +++ b/docs/api-rust/src/casper_rust_wasm_sdk/sdk/deploy_utils/sign_deploy.rs.html @@ -0,0 +1,97 @@ +sign_deploy.rs - source
1
+2
+3
+4
+5
+6
+7
+8
+9
+10
+11
+12
+13
+14
+15
+16
+17
+18
+19
+20
+21
+22
+23
+24
+25
+26
+27
+28
+29
+30
+31
+32
+33
+34
+35
+36
+37
+38
+39
+40
+41
+42
+43
+44
+45
+46
+47
+48
+
use crate::types::deploy::Deploy;
+use crate::SDK;
+use casper_client::types::Deploy as _Deploy;
+#[cfg(target_arch = "wasm32")]
+use wasm_bindgen::prelude::*;
+
+/// Exposes the `sign_deploy` function to JavaScript with an alias.
+#[cfg(target_arch = "wasm32")]
+#[wasm_bindgen]
+impl SDK {
+    /// JS Alias for `sign_deploy`.
+    ///
+    /// # Arguments
+    ///
+    /// * `deploy` - The deploy to sign.
+    /// * `secret_key` - The secret key for signing.
+    ///
+    /// # Returns
+    ///
+    /// The signed `Deploy`.
+    #[wasm_bindgen(js_name = "sign_deploy")]
+    pub fn sign_deploy_js_alias(&mut self, deploy: Deploy, secret_key: &str) -> Deploy {
+        sign_deploy(deploy.into(), secret_key)
+    }
+}
+
+impl SDK {
+    /// Signs a deploy using the provided secret key.
+    ///
+    /// # Arguments
+    ///
+    /// * `deploy` - The deploy to sign.
+    /// * `secret_key` - The secret key for signing.
+    ///
+    /// # Returns
+    ///
+    /// The signed `Deploy`.
+    pub fn sign_deploy(&mut self, deploy: _Deploy, secret_key: &str) -> Deploy {
+        sign_deploy(deploy, secret_key)
+    }
+}
+
+/// Internal function to sign a deploy.
+pub(crate) fn sign_deploy(deploy: _Deploy, secret_key: &str) -> Deploy {
+    // log("sign_deploy!");
+    let mut deploy: Deploy = deploy.into();
+    deploy.sign(secret_key)
+}
+
\ No newline at end of file diff --git a/docs/api-rust/src/casper_rust_wasm_sdk/sdk/mod.rs.html b/docs/api-rust/src/casper_rust_wasm_sdk/sdk/mod.rs.html new file mode 100644 index 000000000..1a752aaff --- /dev/null +++ b/docs/api-rust/src/casper_rust_wasm_sdk/sdk/mod.rs.html @@ -0,0 +1,127 @@ +mod.rs - source
1
+2
+3
+4
+5
+6
+7
+8
+9
+10
+11
+12
+13
+14
+15
+16
+17
+18
+19
+20
+21
+22
+23
+24
+25
+26
+27
+28
+29
+30
+31
+32
+33
+34
+35
+36
+37
+38
+39
+40
+41
+42
+43
+44
+45
+46
+47
+48
+49
+50
+51
+52
+53
+54
+55
+56
+57
+58
+59
+60
+61
+62
+63
+
#[allow(hidden_glob_reexports)]
+pub(crate) mod deploy;
+pub mod rpcs;
+pub use deploy::*;
+
+pub(crate) mod deploy_utils;
+pub(crate) use deploy_utils::*;
+
+pub(crate) mod contract;
+pub use contract::*;
+
+use wasm_bindgen::prelude::*;
+
+use crate::types::verbosity::Verbosity;
+
+#[wasm_bindgen]
+pub struct SDK {
+    node_address: Option<String>,
+    verbosity: Option<Verbosity>,
+}
+
+impl Default for SDK {
+    fn default() -> Self {
+        Self::new(None, None)
+    }
+}
+
+#[wasm_bindgen]
+impl SDK {
+    #[wasm_bindgen(constructor)]
+    pub fn new(node_address: Option<String>, verbosity: Option<Verbosity>) -> Self {
+        SDK {
+            node_address,
+            verbosity,
+        }
+    }
+
+    #[wasm_bindgen(js_name = "getNodeAddress")]
+    pub fn get_node_address(&self, node_address: Option<String>) -> String {
+        node_address
+            .as_ref()
+            .cloned()
+            .or_else(|| self.node_address.as_ref().map(String::to_owned))
+            .unwrap_or_default()
+    }
+
+    #[wasm_bindgen(js_name = "setNodeAddress")]
+    pub fn set_node_address(&mut self, node_address: Option<String>) -> Result<(), String> {
+        self.node_address = node_address;
+        Ok(())
+    }
+
+    #[wasm_bindgen(js_name = "getVerbosity")]
+    pub fn get_verbosity(&self, verbosity: Option<Verbosity>) -> Verbosity {
+        verbosity.unwrap_or(self.verbosity.unwrap_or(Verbosity::Low))
+    }
+
+    #[wasm_bindgen(js_name = "setVerbosity")]
+    pub fn set_verbosity(&mut self, verbosity: Option<Verbosity>) -> Result<(), String> {
+        self.verbosity = verbosity;
+        Ok(())
+    }
+}
+
\ No newline at end of file diff --git a/docs/api-rust/src/casper_rust_wasm_sdk/sdk/rpcs/get_account.rs.html b/docs/api-rust/src/casper_rust_wasm_sdk/sdk/rpcs/get_account.rs.html new file mode 100644 index 000000000..39b7a3f4e --- /dev/null +++ b/docs/api-rust/src/casper_rust_wasm_sdk/sdk/rpcs/get_account.rs.html @@ -0,0 +1,445 @@ +get_account.rs - source
1
+2
+3
+4
+5
+6
+7
+8
+9
+10
+11
+12
+13
+14
+15
+16
+17
+18
+19
+20
+21
+22
+23
+24
+25
+26
+27
+28
+29
+30
+31
+32
+33
+34
+35
+36
+37
+38
+39
+40
+41
+42
+43
+44
+45
+46
+47
+48
+49
+50
+51
+52
+53
+54
+55
+56
+57
+58
+59
+60
+61
+62
+63
+64
+65
+66
+67
+68
+69
+70
+71
+72
+73
+74
+75
+76
+77
+78
+79
+80
+81
+82
+83
+84
+85
+86
+87
+88
+89
+90
+91
+92
+93
+94
+95
+96
+97
+98
+99
+100
+101
+102
+103
+104
+105
+106
+107
+108
+109
+110
+111
+112
+113
+114
+115
+116
+117
+118
+119
+120
+121
+122
+123
+124
+125
+126
+127
+128
+129
+130
+131
+132
+133
+134
+135
+136
+137
+138
+139
+140
+141
+142
+143
+144
+145
+146
+147
+148
+149
+150
+151
+152
+153
+154
+155
+156
+157
+158
+159
+160
+161
+162
+163
+164
+165
+166
+167
+168
+169
+170
+171
+172
+173
+174
+175
+176
+177
+178
+179
+180
+181
+182
+183
+184
+185
+186
+187
+188
+189
+190
+191
+192
+193
+194
+195
+196
+197
+198
+199
+200
+201
+202
+203
+204
+205
+206
+207
+208
+209
+210
+211
+212
+213
+214
+215
+216
+217
+218
+219
+220
+221
+222
+
#[cfg(target_arch = "wasm32")]
+use crate::types::block_identifier::BlockIdentifier;
+use crate::{
+    debug::error,
+    types::{
+        account_identifier::AccountIdentifier, block_identifier::BlockIdentifierInput,
+        sdk_error::SdkError, verbosity::Verbosity,
+    },
+    SDK,
+};
+use casper_client::cli::parse_account_identifier;
+use casper_client::{
+    cli::get_account as get_account_cli, get_account as get_account_lib,
+    rpcs::results::GetAccountResult as _GetAccountResult, JsonRpcId, SuccessResponse,
+};
+#[cfg(target_arch = "wasm32")]
+use gloo_utils::format::JsValueSerdeExt;
+use rand::Rng;
+#[cfg(target_arch = "wasm32")]
+use serde::{Deserialize, Serialize};
+#[cfg(target_arch = "wasm32")]
+use wasm_bindgen::prelude::*;
+
+// Define the GetAccountResult struct to wrap the result from Casper Client RPC call
+#[cfg(target_arch = "wasm32")]
+#[derive(Debug, Deserialize, Clone, Serialize)]
+#[wasm_bindgen]
+pub struct GetAccountResult(_GetAccountResult);
+
+// Implement conversions between GetAccountResult and _GetAccountResult
+#[cfg(target_arch = "wasm32")]
+impl From<GetAccountResult> for _GetAccountResult {
+    fn from(result: GetAccountResult) -> Self {
+        result.0
+    }
+}
+
+#[cfg(target_arch = "wasm32")]
+impl From<_GetAccountResult> for GetAccountResult {
+    fn from(result: _GetAccountResult) -> Self {
+        GetAccountResult(result)
+    }
+}
+
+#[cfg(target_arch = "wasm32")]
+#[wasm_bindgen]
+impl GetAccountResult {
+    // Define getters for various fields of GetAccountResult
+    #[wasm_bindgen(getter)]
+    pub fn api_version(&self) -> JsValue {
+        JsValue::from_serde(&self.0.api_version).unwrap()
+    }
+
+    #[wasm_bindgen(getter)]
+    pub fn account(&self) -> JsValue {
+        JsValue::from_serde(&self.0.account).unwrap()
+    }
+
+    #[wasm_bindgen(getter)]
+    pub fn merkle_proof(&self) -> String {
+        self.0.merkle_proof.clone()
+    }
+
+    #[wasm_bindgen(js_name = "toJson")]
+    pub fn to_json(&self) -> JsValue {
+        JsValue::from_serde(&self.0).unwrap_or(JsValue::null())
+    }
+}
+
+// Define options for the `get_account` function
+#[derive(Debug, Deserialize, Clone, Default, Serialize)]
+#[cfg(target_arch = "wasm32")]
+#[wasm_bindgen(js_name = "getAccountOptions", getter_with_clone)]
+pub struct GetAccountOptions {
+    pub account_identifier: Option<AccountIdentifier>,
+    pub account_identifier_as_string: Option<String>,
+    pub maybe_block_id_as_string: Option<String>,
+    pub maybe_block_identifier: Option<BlockIdentifier>,
+    pub node_address: Option<String>,
+    pub verbosity: Option<Verbosity>,
+}
+
+#[cfg(target_arch = "wasm32")]
+#[wasm_bindgen]
+impl SDK {
+    // Deserialize options for `get_account` from a JavaScript object
+    #[wasm_bindgen(js_name = "get_account_options")]
+    pub fn get_account_options(&self, options: JsValue) -> GetAccountOptions {
+        let options_result = options.into_serde::<GetAccountOptions>();
+        match options_result {
+            Ok(options) => options,
+            Err(err) => {
+                error(&format!("Error deserializing options: {:?}", err));
+                GetAccountOptions::default()
+            }
+        }
+    }
+
+    // JavaScript alias for `get_account` function
+    #[wasm_bindgen(js_name = "get_account")]
+    pub async fn get_account_js_alias(
+        &self,
+        options: Option<GetAccountOptions>,
+    ) -> Result<GetAccountResult, JsError> {
+        let GetAccountOptions {
+            account_identifier,
+            account_identifier_as_string,
+            maybe_block_id_as_string,
+            maybe_block_identifier,
+            verbosity,
+            node_address,
+        } = options.unwrap_or_default();
+
+        let maybe_block_identifier = if let Some(maybe_block_identifier) = maybe_block_identifier {
+            Some(BlockIdentifierInput::BlockIdentifier(
+                maybe_block_identifier,
+            ))
+        } else {
+            maybe_block_id_as_string.map(BlockIdentifierInput::String)
+        };
+
+        let result = self
+            .get_account(
+                account_identifier,
+                account_identifier_as_string,
+                maybe_block_identifier,
+                verbosity,
+                node_address,
+            )
+            .await;
+        match result {
+            Ok(data) => Ok(data.result.into()),
+            Err(err) => {
+                let err = &format!("Error occurred with {:?}", err);
+                error(err);
+                Err(JsError::new(err))
+            }
+        }
+    }
+
+    // JavaScript alias for `get_account_js_alias`
+    #[wasm_bindgen(js_name = "state_get_account_info")]
+    pub async fn state_get_account_info_js_alias(
+        &self,
+        options: Option<GetAccountOptions>,
+    ) -> Result<GetAccountResult, JsError> {
+        self.get_account_js_alias(options).await
+    }
+}
+
+impl SDK {
+    /// Retrieves account information based on the provided options.
+    ///
+    /// # Arguments
+    ///
+    /// * `account_identifier` - An optional `AccountIdentifier` for specifying the account identifier.
+    /// * `account_identifier_as_string` - An optional string representing the account identifier.
+    /// * `maybe_block_identifier` - An optional `BlockIdentifierInput` for specifying a block identifier.
+    /// * `verbosity` - An optional `Verbosity` level for controlling the output verbosity.
+    /// * `node_address` - An optional string specifying the node address to use for the request.
+    ///
+    /// # Returns
+    ///
+    /// A `Result` containing either a `SuccessResponse<_GetAccountResult>` or a `SdkError` in case of an error.
+    ///
+    /// # Errors
+    ///
+    /// Returns a `SdkError` if there is an error during the retrieval process.
+    pub async fn get_account(
+        &self,
+        account_identifier: Option<AccountIdentifier>,
+        account_identifier_as_string: Option<String>,
+        maybe_block_identifier: Option<BlockIdentifierInput>,
+        verbosity: Option<Verbosity>,
+        node_address: Option<String>,
+    ) -> Result<SuccessResponse<_GetAccountResult>, SdkError> {
+        let account_identifier = if let Some(account_identifier) = account_identifier {
+            account_identifier
+        } else if let Some(account_identifier_as_string) = account_identifier_as_string.clone() {
+            match parse_account_identifier(&account_identifier_as_string) {
+                Ok(parsed) => parsed.into(),
+                Err(err) => {
+                    error(&err.to_string());
+                    return Err(SdkError::FailedToParseAccountIdentifier);
+                }
+            }
+        } else {
+            let err = "Error: Missing account identifier";
+            error(err);
+            return Err(SdkError::FailedToParseAccountIdentifier);
+        };
+        if let Some(BlockIdentifierInput::String(maybe_block_id)) = maybe_block_identifier {
+            get_account_cli(
+                &rand::thread_rng().gen::<i64>().to_string(),
+                &self.get_node_address(node_address),
+                self.get_verbosity(verbosity).into(),
+                &maybe_block_id,
+                &account_identifier.to_string(),
+            )
+            .await
+            .map_err(SdkError::from)
+        } else {
+            let maybe_block_identifier =
+                if let Some(BlockIdentifierInput::BlockIdentifier(maybe_block_identifier)) =
+                    maybe_block_identifier
+                {
+                    Some(maybe_block_identifier)
+                } else {
+                    None
+                };
+            get_account_lib(
+                JsonRpcId::from(rand::thread_rng().gen::<i64>().to_string()),
+                &self.get_node_address(node_address),
+                self.get_verbosity(verbosity).into(),
+                maybe_block_identifier.map(Into::into),
+                account_identifier.into(),
+            )
+            .await
+            .map_err(SdkError::from)
+        }
+    }
+}
+
\ No newline at end of file diff --git a/docs/api-rust/src/casper_rust_wasm_sdk/sdk/rpcs/get_auction_info.rs.html b/docs/api-rust/src/casper_rust_wasm_sdk/sdk/rpcs/get_auction_info.rs.html new file mode 100644 index 000000000..2b261ad68 --- /dev/null +++ b/docs/api-rust/src/casper_rust_wasm_sdk/sdk/rpcs/get_auction_info.rs.html @@ -0,0 +1,395 @@ +get_auction_info.rs - source
1
+2
+3
+4
+5
+6
+7
+8
+9
+10
+11
+12
+13
+14
+15
+16
+17
+18
+19
+20
+21
+22
+23
+24
+25
+26
+27
+28
+29
+30
+31
+32
+33
+34
+35
+36
+37
+38
+39
+40
+41
+42
+43
+44
+45
+46
+47
+48
+49
+50
+51
+52
+53
+54
+55
+56
+57
+58
+59
+60
+61
+62
+63
+64
+65
+66
+67
+68
+69
+70
+71
+72
+73
+74
+75
+76
+77
+78
+79
+80
+81
+82
+83
+84
+85
+86
+87
+88
+89
+90
+91
+92
+93
+94
+95
+96
+97
+98
+99
+100
+101
+102
+103
+104
+105
+106
+107
+108
+109
+110
+111
+112
+113
+114
+115
+116
+117
+118
+119
+120
+121
+122
+123
+124
+125
+126
+127
+128
+129
+130
+131
+132
+133
+134
+135
+136
+137
+138
+139
+140
+141
+142
+143
+144
+145
+146
+147
+148
+149
+150
+151
+152
+153
+154
+155
+156
+157
+158
+159
+160
+161
+162
+163
+164
+165
+166
+167
+168
+169
+170
+171
+172
+173
+174
+175
+176
+177
+178
+179
+180
+181
+182
+183
+184
+185
+186
+187
+188
+189
+190
+191
+192
+193
+194
+195
+196
+197
+
#[cfg(target_arch = "wasm32")]
+use crate::debug::error;
+#[cfg(target_arch = "wasm32")]
+use crate::types::block_identifier::BlockIdentifier;
+use crate::{
+    types::{block_identifier::BlockIdentifierInput, sdk_error::SdkError, verbosity::Verbosity},
+    SDK,
+};
+use casper_client::{
+    cli::get_auction_info as get_auction_info_cli, get_auction_info as get_auction_info_lib,
+    rpcs::results::GetAuctionInfoResult as _GetAuctionInfoResult, JsonRpcId, SuccessResponse,
+};
+#[cfg(target_arch = "wasm32")]
+use gloo_utils::format::JsValueSerdeExt;
+use rand::Rng;
+#[cfg(target_arch = "wasm32")]
+use serde::{Deserialize, Serialize};
+#[cfg(target_arch = "wasm32")]
+use wasm_bindgen::prelude::*;
+
+// Define a struct to wrap the GetAuctionInfoResult
+#[cfg(target_arch = "wasm32")]
+#[derive(Debug, Deserialize, Clone, Serialize)]
+#[wasm_bindgen]
+pub struct GetAuctionInfoResult(_GetAuctionInfoResult);
+
+#[cfg(target_arch = "wasm32")]
+impl From<GetAuctionInfoResult> for _GetAuctionInfoResult {
+    fn from(result: GetAuctionInfoResult) -> Self {
+        result.0
+    }
+}
+
+#[cfg(target_arch = "wasm32")]
+impl From<_GetAuctionInfoResult> for GetAuctionInfoResult {
+    fn from(result: _GetAuctionInfoResult) -> Self {
+        GetAuctionInfoResult(result)
+    }
+}
+
+#[cfg(target_arch = "wasm32")]
+#[wasm_bindgen]
+impl GetAuctionInfoResult {
+    /// Gets the API version as a JsValue.
+    #[wasm_bindgen(getter)]
+    pub fn api_version(&self) -> JsValue {
+        JsValue::from_serde(&self.0.api_version).unwrap()
+    }
+
+    /// Gets the auction state as a JsValue.
+    #[wasm_bindgen(getter)]
+    pub fn auction_state(&self) -> JsValue {
+        JsValue::from_serde(&self.0.auction_state).unwrap()
+    }
+
+    /// Converts the GetAuctionInfoResult to a JsValue.
+    #[wasm_bindgen(js_name = "toJson")]
+    pub fn to_json(&self) -> JsValue {
+        JsValue::from_serde(&self.0).unwrap_or(JsValue::null())
+    }
+}
+
+/// Options for the `get_auction_info` method.
+#[derive(Debug, Deserialize, Clone, Default, Serialize)]
+#[cfg(target_arch = "wasm32")]
+#[wasm_bindgen(js_name = "getAuctionInfoOptions", getter_with_clone)]
+pub struct GetAuctionInfoOptions {
+    pub maybe_block_id_as_string: Option<String>,
+    pub maybe_block_identifier: Option<BlockIdentifier>,
+    pub node_address: Option<String>,
+    pub verbosity: Option<Verbosity>,
+}
+
+#[cfg(target_arch = "wasm32")]
+#[wasm_bindgen]
+impl SDK {
+    /// Parses auction info options from a JsValue.
+    ///
+    /// # Arguments
+    ///
+    /// * `options` - A JsValue containing auction info options to be parsed.
+    ///
+    /// # Returns
+    ///
+    /// Parsed auction info options as a `GetAuctionInfoOptions` struct.
+    #[wasm_bindgen(js_name = "get_auction_info_options")]
+    pub fn get_auction_info_options(&self, options: JsValue) -> GetAuctionInfoOptions {
+        let options_result = options.into_serde::<GetAuctionInfoOptions>();
+        match options_result {
+            Ok(options) => options,
+            Err(err) => {
+                error(&format!("Error deserializing options: {:?}", err));
+                GetAuctionInfoOptions::default()
+            }
+        }
+    }
+
+    /// Retrieves auction information using the provided options.
+    ///
+    /// # Arguments
+    ///
+    /// * `options` - An optional `GetAuctionInfoOptions` struct containing retrieval options.
+    ///
+    /// # Returns
+    ///
+    /// A `Result` containing either a `GetAuctionInfoResult` or a `JsError` in case of an error.
+    ///
+    /// # Errors
+    ///
+    /// Returns a `JsError` if there is an error during the retrieval process.
+    #[wasm_bindgen(js_name = "get_auction_info")]
+    pub async fn get_auction_info_js_alias(
+        &self,
+        options: Option<GetAuctionInfoOptions>,
+    ) -> Result<GetAuctionInfoResult, JsError> {
+        let GetAuctionInfoOptions {
+            maybe_block_id_as_string,
+            maybe_block_identifier,
+            verbosity,
+            node_address,
+        } = options.unwrap_or_default();
+
+        let maybe_block_identifier = if let Some(maybe_block_identifier) = maybe_block_identifier {
+            Some(BlockIdentifierInput::BlockIdentifier(
+                maybe_block_identifier,
+            ))
+        } else {
+            maybe_block_id_as_string.map(BlockIdentifierInput::String)
+        };
+
+        let result = self
+            .get_auction_info(maybe_block_identifier, verbosity, node_address)
+            .await;
+        match result {
+            Ok(data) => Ok(data.result.into()),
+            Err(err) => {
+                let err = &format!("Error occurred with {:?}", err);
+                error(err);
+                Err(JsError::new(err))
+            }
+        }
+    }
+}
+
+impl SDK {
+    /// Retrieves auction information based on the provided options.
+    ///
+    /// # Arguments
+    ///
+    /// * `maybe_block_identifier` - An optional `BlockIdentifierInput` for specifying a block identifier.
+    /// * `verbosity` - An optional `Verbosity` level for controlling the output verbosity.
+    /// * `node_address` - An optional string specifying the node address to use for the request.
+    ///
+    /// # Returns
+    ///
+    /// A `Result` containing either a `GetAuctionInfoResult` or a `SdkError` in case of an error.
+    ///
+    /// # Errors
+    ///
+    /// Returns a `SdkError` if there is an error during the retrieval process.
+    pub async fn get_auction_info(
+        &self,
+        maybe_block_identifier: Option<BlockIdentifierInput>,
+        verbosity: Option<Verbosity>,
+        node_address: Option<String>,
+    ) -> Result<SuccessResponse<_GetAuctionInfoResult>, SdkError> {
+        //log("get_auction_info!");
+
+        if let Some(BlockIdentifierInput::String(maybe_block_id)) = maybe_block_identifier {
+            get_auction_info_cli(
+                &rand::thread_rng().gen::<i64>().to_string(),
+                &self.get_node_address(node_address),
+                self.get_verbosity(verbosity).into(),
+                &maybe_block_id,
+            )
+            .await
+            .map_err(SdkError::from)
+        } else {
+            let maybe_block_identifier =
+                if let Some(BlockIdentifierInput::BlockIdentifier(maybe_block_identifier)) =
+                    maybe_block_identifier
+                {
+                    Some(maybe_block_identifier)
+                } else {
+                    None
+                };
+            get_auction_info_lib(
+                JsonRpcId::from(rand::thread_rng().gen::<i64>().to_string()),
+                &self.get_node_address(node_address),
+                self.get_verbosity(verbosity).into(),
+                maybe_block_identifier.map(Into::into),
+            )
+            .await
+            .map_err(SdkError::from)
+        }
+    }
+}
+
\ No newline at end of file diff --git a/docs/api-rust/src/casper_rust_wasm_sdk/sdk/rpcs/get_balance.rs.html b/docs/api-rust/src/casper_rust_wasm_sdk/sdk/rpcs/get_balance.rs.html new file mode 100644 index 000000000..45ed4832d --- /dev/null +++ b/docs/api-rust/src/casper_rust_wasm_sdk/sdk/rpcs/get_balance.rs.html @@ -0,0 +1,503 @@ +get_balance.rs - source
1
+2
+3
+4
+5
+6
+7
+8
+9
+10
+11
+12
+13
+14
+15
+16
+17
+18
+19
+20
+21
+22
+23
+24
+25
+26
+27
+28
+29
+30
+31
+32
+33
+34
+35
+36
+37
+38
+39
+40
+41
+42
+43
+44
+45
+46
+47
+48
+49
+50
+51
+52
+53
+54
+55
+56
+57
+58
+59
+60
+61
+62
+63
+64
+65
+66
+67
+68
+69
+70
+71
+72
+73
+74
+75
+76
+77
+78
+79
+80
+81
+82
+83
+84
+85
+86
+87
+88
+89
+90
+91
+92
+93
+94
+95
+96
+97
+98
+99
+100
+101
+102
+103
+104
+105
+106
+107
+108
+109
+110
+111
+112
+113
+114
+115
+116
+117
+118
+119
+120
+121
+122
+123
+124
+125
+126
+127
+128
+129
+130
+131
+132
+133
+134
+135
+136
+137
+138
+139
+140
+141
+142
+143
+144
+145
+146
+147
+148
+149
+150
+151
+152
+153
+154
+155
+156
+157
+158
+159
+160
+161
+162
+163
+164
+165
+166
+167
+168
+169
+170
+171
+172
+173
+174
+175
+176
+177
+178
+179
+180
+181
+182
+183
+184
+185
+186
+187
+188
+189
+190
+191
+192
+193
+194
+195
+196
+197
+198
+199
+200
+201
+202
+203
+204
+205
+206
+207
+208
+209
+210
+211
+212
+213
+214
+215
+216
+217
+218
+219
+220
+221
+222
+223
+224
+225
+226
+227
+228
+229
+230
+231
+232
+233
+234
+235
+236
+237
+238
+239
+240
+241
+242
+243
+244
+245
+246
+247
+248
+249
+250
+251
+
#[cfg(target_arch = "wasm32")]
+use crate::debug::error;
+#[cfg(target_arch = "wasm32")]
+use crate::types::digest::Digest;
+use crate::{
+    types::{digest::ToDigest, sdk_error::SdkError, uref::URef, verbosity::Verbosity},
+    SDK,
+};
+use casper_client::{
+    cli::get_balance as get_balance_cli, get_balance as get_balance_lib,
+    rpcs::results::GetBalanceResult as _GetBalanceResult, JsonRpcId, SuccessResponse,
+};
+#[cfg(target_arch = "wasm32")]
+use gloo_utils::format::JsValueSerdeExt;
+use rand::Rng;
+#[cfg(target_arch = "wasm32")]
+use serde::{Deserialize, Serialize};
+#[cfg(target_arch = "wasm32")]
+use wasm_bindgen::prelude::*;
+
+// Define a struct to wrap the GetBalanceResult
+#[cfg(target_arch = "wasm32")]
+#[derive(Debug, Deserialize, Clone, Serialize)]
+#[wasm_bindgen]
+pub struct GetBalanceResult(_GetBalanceResult);
+
+#[cfg(target_arch = "wasm32")]
+impl From<GetBalanceResult> for _GetBalanceResult {
+    fn from(result: GetBalanceResult) -> Self {
+        result.0
+    }
+}
+
+#[cfg(target_arch = "wasm32")]
+impl From<_GetBalanceResult> for GetBalanceResult {
+    fn from(result: _GetBalanceResult) -> Self {
+        GetBalanceResult(result)
+    }
+}
+
+#[cfg(target_arch = "wasm32")]
+#[wasm_bindgen]
+impl GetBalanceResult {
+    /// Gets the API version as a JsValue.
+    #[wasm_bindgen(getter)]
+    pub fn api_version(&self) -> JsValue {
+        JsValue::from_serde(&self.0.api_version).unwrap()
+    }
+
+    /// Gets the balance value as a JsValue.
+    #[wasm_bindgen(getter)]
+    pub fn balance_value(&self) -> JsValue {
+        JsValue::from_serde(&self.0.balance_value).unwrap()
+    }
+
+    /// Gets the Merkle proof as a string.
+    #[wasm_bindgen(getter)]
+    pub fn merkle_proof(&self) -> String {
+        self.0.merkle_proof.clone()
+    }
+
+    /// Converts the GetBalanceResult to a JsValue.
+    #[wasm_bindgen(js_name = "toJson")]
+    pub fn to_json(&self) -> JsValue {
+        JsValue::from_serde(&self.0).unwrap_or(JsValue::null())
+    }
+}
+
+/// Options for the `get_balance` method.
+#[derive(Default, Debug, Deserialize, Clone, Serialize)]
+#[cfg(target_arch = "wasm32")]
+#[wasm_bindgen(js_name = "getBalanceOptions", getter_with_clone)]
+pub struct GetBalanceOptions {
+    pub state_root_hash_as_string: Option<String>,
+    pub state_root_hash: Option<Digest>,
+    pub purse_uref_as_string: Option<String>,
+    pub purse_uref: Option<URef>,
+    pub node_address: Option<String>,
+    pub verbosity: Option<Verbosity>,
+}
+
+#[cfg(target_arch = "wasm32")]
+#[wasm_bindgen]
+impl SDK {
+    /// Parses balance options from a JsValue.
+    ///
+    /// # Arguments
+    ///
+    /// * `options` - A JsValue containing balance options to be parsed.
+    ///
+    /// # Returns
+    ///
+    /// Parsed balance options as a `GetBalanceOptions` struct.
+    #[wasm_bindgen(js_name = "get_balance_options")]
+    pub fn get_balance_options(&self, options: JsValue) -> GetBalanceOptions {
+        let options_result = options.into_serde::<GetBalanceOptions>();
+        match options_result {
+            Ok(options) => options,
+            Err(err) => {
+                error(&format!("Error deserializing options: {:?}", err));
+                GetBalanceOptions::default()
+            }
+        }
+    }
+
+    /// Retrieves balance information using the provided options.
+    ///
+    /// # Arguments
+    ///
+    /// * `options` - An optional `GetBalanceOptions` struct containing retrieval options.
+    ///
+    /// # Returns
+    ///
+    /// A `Result` containing either a `GetBalanceResult` or a `JsError` in case of an error.
+    ///
+    /// # Errors
+    ///
+    /// Returns a `JsError` if there is an error during the retrieval process.
+    #[wasm_bindgen(js_name = "get_balance")]
+    pub async fn get_balance_js_alias(
+        &self,
+        options: Option<GetBalanceOptions>,
+    ) -> Result<GetBalanceResult, JsError> {
+        let GetBalanceOptions {
+            state_root_hash_as_string,
+            state_root_hash,
+            purse_uref_as_string,
+            purse_uref,
+            verbosity,
+            node_address,
+        } = options.unwrap_or_default();
+
+        let purse_uref = if let Some(purse_uref) = purse_uref {
+            GetBalanceInput::PurseUref(purse_uref)
+        } else if let Some(purse_uref_as_string) = purse_uref_as_string {
+            GetBalanceInput::PurseUrefAsString(purse_uref_as_string)
+        } else {
+            let err = "Error: Missing purse uref as string or purse uref";
+            error(err);
+            return Err(JsError::new(err));
+        };
+
+        let result = if let Some(hash) = state_root_hash {
+            self.get_balance(hash, purse_uref, verbosity, node_address)
+                .await
+        } else if let Some(hash) = state_root_hash_as_string.clone() {
+            // Todo check state root hash validity here _Digest::LENGTH
+            self.get_balance(hash.as_str(), purse_uref, verbosity, node_address)
+                .await
+        } else {
+            let err = "Error: Missing state_root_hash";
+            error(err);
+            return Err(JsError::new(err));
+        };
+        match result {
+            Ok(data) => Ok(data.result.into()),
+            Err(err) => {
+                let err = &format!("Error occurred with {:?}", err);
+                error(err);
+                Err(JsError::new(err))
+            }
+        }
+    }
+
+    /// JS Alias for `get_balance_js_alias`.
+    ///
+    /// # Arguments
+    ///
+    /// * `options` - An optional `GetBalanceOptions` struct containing retrieval options.
+    ///
+    /// # Returns
+    ///
+    /// A `Result` containing either a `GetBalanceResult` or a `JsError` in case of an error.
+    #[wasm_bindgen(js_name = "state_get_balance")]
+    pub async fn state_get_balance_js_alias(
+        &self,
+        options: Option<GetBalanceOptions>,
+    ) -> Result<GetBalanceResult, JsError> {
+        self.get_balance_js_alias(options).await
+    }
+}
+
+/// Enum representing different ways to specify the purse uref.
+#[derive(Debug, Clone)]
+pub enum GetBalanceInput {
+    PurseUref(URef),
+    PurseUrefAsString(String),
+}
+
+impl SDK {
+    /// Retrieves balance information based on the provided options.
+    ///
+    /// # Arguments
+    ///
+    /// * `state_root_hash` - The state root hash to query for balance information.
+    /// * `purse_uref` - The purse uref specifying the purse for which to retrieve the balance.
+    /// * `verbosity` - An optional `Verbosity` level for controlling the output verbosity.
+    /// * `node_address` - An optional string specifying the node address to use for the request.
+    ///
+    /// # Returns
+    ///
+    /// A `Result` containing either a `GetBalanceResult` or a `SdkError` in case of an error.
+    ///
+    /// # Errors
+    ///
+    /// Returns a `SdkError` if there is an error during the retrieval process.
+    pub async fn get_balance(
+        &self,
+        state_root_hash: impl ToDigest,
+        purse_uref: GetBalanceInput,
+        verbosity: Option<Verbosity>,
+        node_address: Option<String>,
+    ) -> Result<SuccessResponse<_GetBalanceResult>, SdkError> {
+        //log("get_balance!");
+        let state_root_hash = if state_root_hash.is_empty() {
+            self.get_state_root_hash(
+                None,
+                None,
+                Some(self.get_node_address(node_address.clone())),
+            )
+            .await
+            .unwrap()
+            .result
+            .state_root_hash
+            .unwrap()
+            .into()
+        } else {
+            state_root_hash.to_digest()
+        };
+        match purse_uref {
+            GetBalanceInput::PurseUref(purse_uref) => get_balance_lib(
+                JsonRpcId::from(rand::thread_rng().gen::<i64>().to_string()),
+                &self.get_node_address(node_address),
+                self.get_verbosity(verbosity).into(),
+                state_root_hash.into(),
+                purse_uref.into(),
+            )
+            .await
+            .map_err(SdkError::from),
+            GetBalanceInput::PurseUrefAsString(purse_uref) => get_balance_cli(
+                &rand::thread_rng().gen::<i64>().to_string(),
+                &self.get_node_address(node_address),
+                self.get_verbosity(verbosity).into(),
+                &state_root_hash.to_string(),
+                &purse_uref,
+            )
+            .await
+            .map_err(SdkError::from),
+        }
+    }
+}
+
\ No newline at end of file diff --git a/docs/api-rust/src/casper_rust_wasm_sdk/sdk/rpcs/get_block.rs.html b/docs/api-rust/src/casper_rust_wasm_sdk/sdk/rpcs/get_block.rs.html new file mode 100644 index 000000000..4661f4136 --- /dev/null +++ b/docs/api-rust/src/casper_rust_wasm_sdk/sdk/rpcs/get_block.rs.html @@ -0,0 +1,437 @@ +get_block.rs - source
1
+2
+3
+4
+5
+6
+7
+8
+9
+10
+11
+12
+13
+14
+15
+16
+17
+18
+19
+20
+21
+22
+23
+24
+25
+26
+27
+28
+29
+30
+31
+32
+33
+34
+35
+36
+37
+38
+39
+40
+41
+42
+43
+44
+45
+46
+47
+48
+49
+50
+51
+52
+53
+54
+55
+56
+57
+58
+59
+60
+61
+62
+63
+64
+65
+66
+67
+68
+69
+70
+71
+72
+73
+74
+75
+76
+77
+78
+79
+80
+81
+82
+83
+84
+85
+86
+87
+88
+89
+90
+91
+92
+93
+94
+95
+96
+97
+98
+99
+100
+101
+102
+103
+104
+105
+106
+107
+108
+109
+110
+111
+112
+113
+114
+115
+116
+117
+118
+119
+120
+121
+122
+123
+124
+125
+126
+127
+128
+129
+130
+131
+132
+133
+134
+135
+136
+137
+138
+139
+140
+141
+142
+143
+144
+145
+146
+147
+148
+149
+150
+151
+152
+153
+154
+155
+156
+157
+158
+159
+160
+161
+162
+163
+164
+165
+166
+167
+168
+169
+170
+171
+172
+173
+174
+175
+176
+177
+178
+179
+180
+181
+182
+183
+184
+185
+186
+187
+188
+189
+190
+191
+192
+193
+194
+195
+196
+197
+198
+199
+200
+201
+202
+203
+204
+205
+206
+207
+208
+209
+210
+211
+212
+213
+214
+215
+216
+217
+218
+
#[cfg(target_arch = "wasm32")]
+use crate::debug::error;
+#[cfg(target_arch = "wasm32")]
+use crate::types::block_identifier::BlockIdentifier;
+use crate::{
+    types::{block_identifier::BlockIdentifierInput, sdk_error::SdkError, verbosity::Verbosity},
+    SDK,
+};
+use casper_client::{
+    cli::get_block as get_block_cli, get_block as get_block_lib,
+    rpcs::results::GetBlockResult as _GetBlockResult, JsonRpcId, SuccessResponse,
+};
+#[cfg(target_arch = "wasm32")]
+use gloo_utils::format::JsValueSerdeExt;
+use rand::Rng;
+#[cfg(target_arch = "wasm32")]
+use serde::{Deserialize, Serialize};
+#[cfg(target_arch = "wasm32")]
+use wasm_bindgen::prelude::*;
+
+// Define a struct to wrap the GetBlockResult
+#[cfg(target_arch = "wasm32")]
+#[derive(Debug, Deserialize, Serialize)]
+#[wasm_bindgen]
+pub struct GetBlockResult(_GetBlockResult);
+
+#[cfg(target_arch = "wasm32")]
+impl From<GetBlockResult> for _GetBlockResult {
+    fn from(result: GetBlockResult) -> Self {
+        result.0
+    }
+}
+
+#[cfg(target_arch = "wasm32")]
+impl From<_GetBlockResult> for GetBlockResult {
+    fn from(result: _GetBlockResult) -> Self {
+        GetBlockResult(result)
+    }
+}
+
+#[cfg(target_arch = "wasm32")]
+#[wasm_bindgen]
+impl GetBlockResult {
+    /// Gets the API version as a JsValue.
+    #[wasm_bindgen(getter)]
+    pub fn api_version(&self) -> JsValue {
+        JsValue::from_serde(&self.0.api_version).unwrap()
+    }
+
+    /// Gets the block information as a JsValue.
+    #[wasm_bindgen(getter)]
+    pub fn block(&self) -> JsValue {
+        JsValue::from_serde(&self.0.block).unwrap()
+    }
+
+    /// Converts the GetBlockResult to a JsValue.
+    #[wasm_bindgen(js_name = "toJson")]
+    pub fn to_json(&self) -> JsValue {
+        JsValue::from_serde(&self.0).unwrap_or(JsValue::null())
+    }
+}
+
+/// Options for the `get_block` method.
+#[derive(Debug, Deserialize, Default, Serialize)]
+#[cfg(target_arch = "wasm32")]
+#[wasm_bindgen(js_name = "getBlockOptions", getter_with_clone)]
+pub struct GetBlockOptions {
+    pub maybe_block_id_as_string: Option<String>,
+    pub maybe_block_identifier: Option<BlockIdentifier>,
+    pub node_address: Option<String>,
+    pub verbosity: Option<Verbosity>,
+}
+
+#[cfg(target_arch = "wasm32")]
+#[wasm_bindgen]
+impl SDK {
+    /// Parses block options from a JsValue.
+    ///
+    /// # Arguments
+    ///
+    /// * `options` - A JsValue containing block options to be parsed.
+    ///
+    /// # Returns
+    ///
+    /// Parsed block options as a `GetBlockOptions` struct.
+    #[wasm_bindgen(js_name = "get_block_options")]
+    pub fn get_block_options(&self, options: JsValue) -> GetBlockOptions {
+        let options_result = options.into_serde::<GetBlockOptions>();
+        match options_result {
+            Ok(options) => options,
+            Err(err) => {
+                error(&format!("Error deserializing options: {:?}", err));
+                GetBlockOptions::default()
+            }
+        }
+    }
+
+    /// Retrieves block information using the provided options.
+    ///
+    /// # Arguments
+    ///
+    /// * `options` - An optional `GetBlockOptions` struct containing retrieval options.
+    ///
+    /// # Returns
+    ///
+    /// A `Result` containing either a `GetBlockResult` or a `JsError` in case of an error.
+    ///
+    /// # Errors
+    ///
+    /// Returns a `JsError` if there is an error during the retrieval process.
+    #[wasm_bindgen(js_name = "get_block")]
+    pub async fn get_block_js_alias(
+        &self,
+        options: Option<GetBlockOptions>,
+    ) -> Result<GetBlockResult, JsError> {
+        let GetBlockOptions {
+            maybe_block_id_as_string,
+            maybe_block_identifier,
+            verbosity,
+            node_address,
+        } = options.unwrap_or_default();
+
+        let maybe_block_identifier = if let Some(maybe_block_identifier) = maybe_block_identifier {
+            Some(BlockIdentifierInput::BlockIdentifier(
+                maybe_block_identifier,
+            ))
+        } else {
+            maybe_block_id_as_string.map(BlockIdentifierInput::String)
+        };
+
+        let result = self
+            .get_block(maybe_block_identifier, verbosity, node_address)
+            .await;
+        match result {
+            Ok(data) => Ok(data.result.into()),
+            Err(err) => {
+                let err = &format!("Error occurred with {:?}", err);
+                error(err);
+                Err(JsError::new(err))
+            }
+        }
+    }
+
+    /// JS Alias for the `get_block` method to maintain compatibility.
+    ///
+    /// # Arguments
+    ///
+    /// * `options` - An optional `GetBlockOptions` struct containing retrieval options.
+    ///
+    /// # Returns
+    ///
+    /// A `Result` containing either a `GetBlockResult` or a `JsError` in case of an error.
+    ///
+    /// # Errors
+    ///
+    /// Returns a `JsError` if there is an error during the retrieval process.
+    #[wasm_bindgen(js_name = "chain_get_block")]
+    pub async fn chain_get_block_js_alias(
+        &self,
+        options: Option<GetBlockOptions>,
+    ) -> Result<GetBlockResult, JsError> {
+        self.get_block_js_alias(options).await
+    }
+}
+
+impl SDK {
+    /// Retrieves block information using the provided options.
+    ///
+    /// # Arguments
+    ///
+    /// * `maybe_block_identifier` - An optional `BlockIdentifierInput` specifying the block identifier.
+    /// * `verbosity` - An optional `Verbosity` level for the retrieval.
+    /// * `node_address` - An optional node address to target for retrieval.
+    ///
+    /// # Returns
+    ///
+    /// A `Result` containing either a `GetBlockResult` or a `SdkError` in case of an error.
+    ///
+    /// # Errors
+    ///
+    /// Returns a `SdkError` if there is an error during the retrieval process.
+    pub async fn get_block(
+        &self,
+        maybe_block_identifier: Option<BlockIdentifierInput>,
+        verbosity: Option<Verbosity>,
+        node_address: Option<String>,
+    ) -> Result<SuccessResponse<_GetBlockResult>, SdkError> {
+        //log("get_block!");
+
+        if let Some(BlockIdentifierInput::String(maybe_block_id)) = maybe_block_identifier {
+            get_block_cli(
+                &rand::thread_rng().gen::<i64>().to_string(),
+                &self.get_node_address(node_address),
+                self.get_verbosity(verbosity).into(),
+                &maybe_block_id,
+            )
+            .await
+            .map_err(SdkError::from)
+        } else {
+            let maybe_block_identifier =
+                if let Some(BlockIdentifierInput::BlockIdentifier(maybe_block_identifier)) =
+                    maybe_block_identifier
+                {
+                    Some(maybe_block_identifier)
+                } else {
+                    None
+                };
+            get_block_lib(
+                JsonRpcId::from(rand::thread_rng().gen::<i64>().to_string()),
+                &self.get_node_address(node_address),
+                self.get_verbosity(verbosity).into(),
+                maybe_block_identifier.map(Into::into),
+            )
+            .await
+            .map_err(SdkError::from)
+        }
+    }
+}
+
\ No newline at end of file diff --git a/docs/api-rust/src/casper_rust_wasm_sdk/sdk/rpcs/get_block_transfers.rs.html b/docs/api-rust/src/casper_rust_wasm_sdk/sdk/rpcs/get_block_transfers.rs.html new file mode 100644 index 000000000..528e2ce59 --- /dev/null +++ b/docs/api-rust/src/casper_rust_wasm_sdk/sdk/rpcs/get_block_transfers.rs.html @@ -0,0 +1,413 @@ +get_block_transfers.rs - source
1
+2
+3
+4
+5
+6
+7
+8
+9
+10
+11
+12
+13
+14
+15
+16
+17
+18
+19
+20
+21
+22
+23
+24
+25
+26
+27
+28
+29
+30
+31
+32
+33
+34
+35
+36
+37
+38
+39
+40
+41
+42
+43
+44
+45
+46
+47
+48
+49
+50
+51
+52
+53
+54
+55
+56
+57
+58
+59
+60
+61
+62
+63
+64
+65
+66
+67
+68
+69
+70
+71
+72
+73
+74
+75
+76
+77
+78
+79
+80
+81
+82
+83
+84
+85
+86
+87
+88
+89
+90
+91
+92
+93
+94
+95
+96
+97
+98
+99
+100
+101
+102
+103
+104
+105
+106
+107
+108
+109
+110
+111
+112
+113
+114
+115
+116
+117
+118
+119
+120
+121
+122
+123
+124
+125
+126
+127
+128
+129
+130
+131
+132
+133
+134
+135
+136
+137
+138
+139
+140
+141
+142
+143
+144
+145
+146
+147
+148
+149
+150
+151
+152
+153
+154
+155
+156
+157
+158
+159
+160
+161
+162
+163
+164
+165
+166
+167
+168
+169
+170
+171
+172
+173
+174
+175
+176
+177
+178
+179
+180
+181
+182
+183
+184
+185
+186
+187
+188
+189
+190
+191
+192
+193
+194
+195
+196
+197
+198
+199
+200
+201
+202
+203
+204
+205
+206
+
#[cfg(target_arch = "wasm32")]
+use crate::debug::error;
+#[cfg(target_arch = "wasm32")]
+use crate::types::block_hash::BlockHash;
+#[cfg(target_arch = "wasm32")]
+use crate::types::block_identifier::BlockIdentifier;
+use crate::{
+    types::{block_identifier::BlockIdentifierInput, sdk_error::SdkError, verbosity::Verbosity},
+    SDK,
+};
+use casper_client::{
+    cli::get_block_transfers as get_block_transfers_cli,
+    get_block_transfers as get_block_transfers_lib,
+    rpcs::results::GetBlockTransfersResult as _GetBlockTransfersResult, JsonRpcId, SuccessResponse,
+};
+#[cfg(target_arch = "wasm32")]
+use gloo_utils::format::JsValueSerdeExt;
+use rand::Rng;
+#[cfg(target_arch = "wasm32")]
+use serde::{Deserialize, Serialize};
+#[cfg(target_arch = "wasm32")]
+use wasm_bindgen::prelude::*;
+
+// Define a struct to wrap the GetBlockTransfersResult
+#[cfg(target_arch = "wasm32")]
+#[derive(Debug, Deserialize, Clone, Serialize)]
+#[wasm_bindgen]
+pub struct GetBlockTransfersResult(_GetBlockTransfersResult);
+
+#[cfg(target_arch = "wasm32")]
+impl From<GetBlockTransfersResult> for _GetBlockTransfersResult {
+    fn from(result: GetBlockTransfersResult) -> Self {
+        result.0
+    }
+}
+
+#[cfg(target_arch = "wasm32")]
+impl From<_GetBlockTransfersResult> for GetBlockTransfersResult {
+    fn from(result: _GetBlockTransfersResult) -> Self {
+        GetBlockTransfersResult(result)
+    }
+}
+
+#[cfg(target_arch = "wasm32")]
+#[wasm_bindgen]
+impl GetBlockTransfersResult {
+    /// Gets the API version as a JsValue.
+    #[wasm_bindgen(getter)]
+    pub fn api_version(&self) -> JsValue {
+        JsValue::from_serde(&self.0.api_version).unwrap()
+    }
+
+    /// Gets the block hash as an Option<BlockHash>.
+    #[wasm_bindgen(getter)]
+    pub fn block_hash(&self) -> Option<BlockHash> {
+        self.0.block_hash.map(Into::into)
+    }
+
+    /// Gets the transfers as a JsValue.
+    #[wasm_bindgen(getter)]
+    pub fn transfers(&self) -> JsValue {
+        JsValue::from_serde(&self.0.transfers).unwrap()
+    }
+
+    /// Converts the GetBlockTransfersResult to a JsValue.
+    #[wasm_bindgen(js_name = "toJson")]
+    pub fn to_json(&self) -> JsValue {
+        JsValue::from_serde(&self.0).unwrap_or(JsValue::null())
+    }
+}
+
+/// Options for the `get_block_transfers` method.
+#[derive(Debug, Deserialize, Clone, Default, Serialize)]
+#[cfg(target_arch = "wasm32")]
+#[wasm_bindgen(js_name = "getBlockTransfersOptions", getter_with_clone)]
+pub struct GetBlockTransfersOptions {
+    pub maybe_block_id_as_string: Option<String>,
+    pub maybe_block_identifier: Option<BlockIdentifier>,
+    pub verbosity: Option<Verbosity>,
+    pub node_address: Option<String>,
+}
+
+#[cfg(target_arch = "wasm32")]
+#[wasm_bindgen]
+impl SDK {
+    /// Parses block transfers options from a JsValue.
+    ///
+    /// # Arguments
+    ///
+    /// * `options` - A JsValue containing block transfers options to be parsed.
+    ///
+    /// # Returns
+    ///
+    /// Parsed block transfers options as a `GetBlockTransfersOptions` struct.
+    #[wasm_bindgen(js_name = "get_block_transfers_options")]
+    pub fn get_block_transfers_options(&self, options: JsValue) -> GetBlockTransfersOptions {
+        let options_result = options.into_serde::<GetBlockTransfersOptions>();
+        match options_result {
+            Ok(options) => options,
+            Err(err) => {
+                error(&format!("Error deserializing options: {:?}", err));
+                GetBlockTransfersOptions::default()
+            }
+        }
+    }
+
+    /// Retrieves block transfers information using the provided options.
+    ///
+    /// # Arguments
+    ///
+    /// * `options` - An optional `GetBlockTransfersOptions` struct containing retrieval options.
+    ///
+    /// # Returns
+    ///
+    /// A `Result` containing either a `GetBlockTransfersResult` or a `JsError` in case of an error.
+    ///
+    /// # Errors
+    ///
+    /// Returns a `JsError` if there is an error during the retrieval process.
+    #[wasm_bindgen(js_name = "get_block_transfers")]
+    pub async fn get_block_transfers_js_alias(
+        &self,
+        options: Option<GetBlockTransfersOptions>,
+    ) -> Result<GetBlockTransfersResult, JsError> {
+        let GetBlockTransfersOptions {
+            maybe_block_id_as_string,
+            maybe_block_identifier,
+            verbosity,
+            node_address,
+        } = options.unwrap_or_default();
+
+        let maybe_block_identifier = if let Some(maybe_block_identifier) = maybe_block_identifier {
+            Some(BlockIdentifierInput::BlockIdentifier(
+                maybe_block_identifier,
+            ))
+        } else {
+            maybe_block_id_as_string.map(BlockIdentifierInput::String)
+        };
+
+        let result = self
+            .get_block_transfers(maybe_block_identifier, verbosity, node_address)
+            .await;
+        match result {
+            Ok(data) => Ok(data.result.into()),
+            Err(err) => {
+                let err = &format!("Error occurred with {:?}", err);
+                error(err);
+                Err(JsError::new(err))
+            }
+        }
+    }
+}
+
+impl SDK {
+    /// Retrieves block transfers information based on the provided options.
+    ///
+    /// # Arguments
+    ///
+    /// * `maybe_block_identifier` - An optional `BlockIdentifierInput` specifying the block identifier.
+    /// * `verbosity` - An optional `Verbosity` level for controlling the output verbosity.
+    /// * `node_address` - An optional string specifying the node address to use for the request.
+    ///
+    /// # Returns
+    ///
+    /// A `Result` containing either a `GetBlockTransfersResult` or a `SdkError` in case of an error.
+    ///
+    /// # Errors
+    ///
+    /// Returns a `SdkError` if there is an error during the retrieval process.
+    pub async fn get_block_transfers(
+        &self,
+        maybe_block_identifier: Option<BlockIdentifierInput>,
+        verbosity: Option<Verbosity>,
+        node_address: Option<String>,
+    ) -> Result<SuccessResponse<_GetBlockTransfersResult>, SdkError> {
+        //log("get_block_transfers!");
+
+        if let Some(BlockIdentifierInput::String(maybe_block_id)) = maybe_block_identifier {
+            get_block_transfers_cli(
+                &rand::thread_rng().gen::<i64>().to_string(),
+                &self.get_node_address(node_address),
+                self.get_verbosity(verbosity).into(),
+                &maybe_block_id,
+            )
+            .await
+            .map_err(SdkError::from)
+        } else {
+            let maybe_block_identifier =
+                if let Some(BlockIdentifierInput::BlockIdentifier(maybe_block_identifier)) =
+                    maybe_block_identifier
+                {
+                    Some(maybe_block_identifier)
+                } else {
+                    None
+                };
+            get_block_transfers_lib(
+                JsonRpcId::from(rand::thread_rng().gen::<i64>().to_string()),
+                &self.get_node_address(node_address),
+                self.get_verbosity(verbosity).into(),
+                maybe_block_identifier.map(Into::into),
+            )
+            .await
+            .map_err(SdkError::from)
+        }
+    }
+}
+
\ No newline at end of file diff --git a/docs/api-rust/src/casper_rust_wasm_sdk/sdk/rpcs/get_chainspec.rs.html b/docs/api-rust/src/casper_rust_wasm_sdk/sdk/rpcs/get_chainspec.rs.html new file mode 100644 index 000000000..92634ee94 --- /dev/null +++ b/docs/api-rust/src/casper_rust_wasm_sdk/sdk/rpcs/get_chainspec.rs.html @@ -0,0 +1,233 @@ +get_chainspec.rs - source
1
+2
+3
+4
+5
+6
+7
+8
+9
+10
+11
+12
+13
+14
+15
+16
+17
+18
+19
+20
+21
+22
+23
+24
+25
+26
+27
+28
+29
+30
+31
+32
+33
+34
+35
+36
+37
+38
+39
+40
+41
+42
+43
+44
+45
+46
+47
+48
+49
+50
+51
+52
+53
+54
+55
+56
+57
+58
+59
+60
+61
+62
+63
+64
+65
+66
+67
+68
+69
+70
+71
+72
+73
+74
+75
+76
+77
+78
+79
+80
+81
+82
+83
+84
+85
+86
+87
+88
+89
+90
+91
+92
+93
+94
+95
+96
+97
+98
+99
+100
+101
+102
+103
+104
+105
+106
+107
+108
+109
+110
+111
+112
+113
+114
+115
+116
+
#[cfg(target_arch = "wasm32")]
+use crate::debug::error;
+use crate::{types::verbosity::Verbosity, SDK};
+use casper_client::{
+    get_chainspec, rpcs::results::GetChainspecResult as _GetChainspecResult, Error, JsonRpcId,
+    SuccessResponse,
+};
+#[cfg(target_arch = "wasm32")]
+use gloo_utils::format::JsValueSerdeExt;
+use rand::Rng;
+#[cfg(target_arch = "wasm32")]
+use serde::{Deserialize, Serialize};
+#[cfg(target_arch = "wasm32")]
+use wasm_bindgen::prelude::*;
+
+/// A struct representing the result of the `get_chainspec` function.
+#[cfg(target_arch = "wasm32")]
+#[derive(Debug, Deserialize, Clone, Serialize)]
+#[wasm_bindgen]
+pub struct GetChainspecResult(_GetChainspecResult);
+
+#[cfg(target_arch = "wasm32")]
+impl From<GetChainspecResult> for _GetChainspecResult {
+    fn from(result: GetChainspecResult) -> Self {
+        result.0
+    }
+}
+
+#[cfg(target_arch = "wasm32")]
+impl From<_GetChainspecResult> for GetChainspecResult {
+    fn from(result: _GetChainspecResult) -> Self {
+        GetChainspecResult(result)
+    }
+}
+
+/// Implementations for the `GetChainspecResult` struct.
+#[cfg(target_arch = "wasm32")]
+#[wasm_bindgen]
+impl GetChainspecResult {
+    /// Gets the API version as a JsValue.
+    #[wasm_bindgen(getter)]
+    pub fn api_version(&self) -> JsValue {
+        JsValue::from_serde(&self.0.api_version).unwrap()
+    }
+
+    /// Gets the chainspec bytes as a JsValue.
+    #[wasm_bindgen(getter)]
+    pub fn chainspec_bytes(&self) -> JsValue {
+        JsValue::from_serde(&self.0.chainspec_bytes).unwrap()
+    }
+
+    /// Converts the `GetChainspecResult` to a JsValue.
+    #[wasm_bindgen(js_name = "toJson")]
+    pub fn to_json(&self) -> JsValue {
+        JsValue::from_serde(&self.0).unwrap_or(JsValue::null())
+    }
+}
+
+/// Implementations for the `SDK` struct.
+#[cfg(target_arch = "wasm32")]
+#[wasm_bindgen]
+impl SDK {
+    /// Asynchronously retrieves the chainspec.
+    ///
+    /// # Arguments
+    ///
+    /// * `verbosity` - An optional `Verbosity` parameter.
+    /// * `node_address` - An optional node address as a string.
+    ///
+    /// # Returns
+    ///
+    /// A `Result` containing either a `GetChainspecResult` or a `JsError` in case of an error.
+    #[wasm_bindgen(js_name = "get_chainspec")]
+    pub async fn get_chainspec_js_alias(
+        &self,
+        verbosity: Option<Verbosity>,
+        node_address: Option<String>,
+    ) -> Result<GetChainspecResult, JsError> {
+        let result = self.get_chainspec(verbosity, node_address).await;
+        match result {
+            Ok(data) => Ok(data.result.into()),
+            Err(err) => {
+                let err = &format!("Error occurred with {:?}", err);
+                error(err);
+                Err(JsError::new(err))
+            }
+        }
+    }
+}
+
+/// Implementations for the `SDK` struct.
+impl SDK {
+    /// Asynchronously retrieves the chainspec.
+    ///
+    /// # Arguments
+    ///
+    /// * `verbosity` - An optional `Verbosity` parameter.
+    /// * `node_address` - An optional node address as a string.
+    ///
+    /// # Returns
+    ///
+    /// A `Result` containing either a `GetChainspecResult` or a `SdkError` in case of an error.
+    pub async fn get_chainspec(
+        &self,
+        verbosity: Option<Verbosity>,
+        node_address: Option<String>,
+    ) -> Result<SuccessResponse<_GetChainspecResult>, Error> {
+        //log("get_chainspec!");
+        get_chainspec(
+            JsonRpcId::from(rand::thread_rng().gen::<i64>().to_string()),
+            &self.get_node_address(node_address),
+            self.get_verbosity(verbosity).into(),
+        )
+        .await
+    }
+}
+
\ No newline at end of file diff --git a/docs/api-rust/src/casper_rust_wasm_sdk/sdk/rpcs/get_deploy.rs.html b/docs/api-rust/src/casper_rust_wasm_sdk/sdk/rpcs/get_deploy.rs.html new file mode 100644 index 000000000..7ab459f85 --- /dev/null +++ b/docs/api-rust/src/casper_rust_wasm_sdk/sdk/rpcs/get_deploy.rs.html @@ -0,0 +1,411 @@ +get_deploy.rs - source
1
+2
+3
+4
+5
+6
+7
+8
+9
+10
+11
+12
+13
+14
+15
+16
+17
+18
+19
+20
+21
+22
+23
+24
+25
+26
+27
+28
+29
+30
+31
+32
+33
+34
+35
+36
+37
+38
+39
+40
+41
+42
+43
+44
+45
+46
+47
+48
+49
+50
+51
+52
+53
+54
+55
+56
+57
+58
+59
+60
+61
+62
+63
+64
+65
+66
+67
+68
+69
+70
+71
+72
+73
+74
+75
+76
+77
+78
+79
+80
+81
+82
+83
+84
+85
+86
+87
+88
+89
+90
+91
+92
+93
+94
+95
+96
+97
+98
+99
+100
+101
+102
+103
+104
+105
+106
+107
+108
+109
+110
+111
+112
+113
+114
+115
+116
+117
+118
+119
+120
+121
+122
+123
+124
+125
+126
+127
+128
+129
+130
+131
+132
+133
+134
+135
+136
+137
+138
+139
+140
+141
+142
+143
+144
+145
+146
+147
+148
+149
+150
+151
+152
+153
+154
+155
+156
+157
+158
+159
+160
+161
+162
+163
+164
+165
+166
+167
+168
+169
+170
+171
+172
+173
+174
+175
+176
+177
+178
+179
+180
+181
+182
+183
+184
+185
+186
+187
+188
+189
+190
+191
+192
+193
+194
+195
+196
+197
+198
+199
+200
+201
+202
+203
+204
+205
+
#[cfg(target_arch = "wasm32")]
+use crate::types::deploy::Deploy;
+use crate::types::deploy_hash::DeployHash;
+#[cfg(target_arch = "wasm32")]
+use crate::{debug::error, types::digest::Digest};
+use crate::{types::verbosity::Verbosity, SDK};
+use casper_client::{
+    get_deploy, rpcs::results::GetDeployResult as _GetDeployResult, Error, JsonRpcId,
+    SuccessResponse,
+};
+#[cfg(target_arch = "wasm32")]
+use gloo_utils::format::JsValueSerdeExt;
+use rand::Rng;
+#[cfg(target_arch = "wasm32")]
+use serde::{Deserialize, Serialize};
+#[cfg(target_arch = "wasm32")]
+use wasm_bindgen::prelude::*;
+
+// Define a struct to wrap the GetDeployResult
+#[cfg(target_arch = "wasm32")]
+#[derive(Debug, Deserialize, Clone, Serialize)]
+#[wasm_bindgen]
+pub struct GetDeployResult(_GetDeployResult);
+
+#[cfg(target_arch = "wasm32")]
+impl From<GetDeployResult> for _GetDeployResult {
+    fn from(result: GetDeployResult) -> Self {
+        result.0
+    }
+}
+#[cfg(target_arch = "wasm32")]
+impl From<_GetDeployResult> for GetDeployResult {
+    fn from(result: _GetDeployResult) -> Self {
+        GetDeployResult(result)
+    }
+}
+
+#[cfg(target_arch = "wasm32")]
+#[wasm_bindgen]
+impl GetDeployResult {
+    #[wasm_bindgen(getter)]
+    /// Gets the API version as a JavaScript value.
+    pub fn api_version(&self) -> JsValue {
+        JsValue::from_serde(&self.0.api_version).unwrap()
+    }
+
+    #[wasm_bindgen(getter)]
+    /// Gets the deploy information.
+    pub fn deploy(&self) -> Deploy {
+        self.0.deploy.clone().into()
+    }
+
+    // #[wasm_bindgen(getter)]
+    // /// Gets the execution info as a JavaScript value.
+    // pub fn execution_info(&self) -> JsValue {
+    //     JsValue::from_serde(&self.0.execution_info).unwrap()
+    // }
+
+    #[wasm_bindgen(js_name = "toJson")]
+    /// Converts the result to a JSON JavaScript value.
+    pub fn to_json(&self) -> JsValue {
+        JsValue::from_serde(&self.0).unwrap_or(JsValue::null())
+    }
+}
+
+/// Options for the `get_deploy` method.
+#[derive(Debug, Clone, Default, Deserialize, Serialize)]
+#[cfg(target_arch = "wasm32")]
+#[wasm_bindgen(js_name = "getDeployOptions", getter_with_clone)]
+pub struct GetDeployOptions {
+    pub deploy_hash_as_string: Option<String>,
+    pub deploy_hash: Option<DeployHash>,
+    pub finalized_approvals: Option<bool>,
+    pub node_address: Option<String>,
+    pub verbosity: Option<Verbosity>,
+}
+
+#[cfg(target_arch = "wasm32")]
+#[wasm_bindgen]
+impl SDK {
+    /// Parses deploy options from a JsValue.
+    ///
+    /// # Arguments
+    ///
+    /// * `options` - A JsValue containing deploy options to be parsed.
+    ///
+    /// # Returns
+    ///
+    /// Parsed deploy options as a `GetDeployOptions` struct.
+    #[wasm_bindgen(js_name = "get_deploy_options")]
+    pub fn get_deploy_options(&self, options: JsValue) -> GetDeployOptions {
+        let options_result = options.into_serde::<GetDeployOptions>();
+        match options_result {
+            Ok(mut options) => {
+                if let Some(finalized_approvals) = options.finalized_approvals {
+                    options.finalized_approvals =
+                        Some(JsValue::from_bool(finalized_approvals) == JsValue::TRUE);
+                }
+                options
+            }
+            Err(err) => {
+                error(&format!("Error deserializing options: {:?}", err));
+                GetDeployOptions::default()
+            }
+        }
+    }
+
+    /// Retrieves deploy information using the provided options.
+    ///
+    /// # Arguments
+    ///
+    /// * `options` - An optional `GetDeployOptions` struct containing retrieval options.
+    ///
+    /// # Returns
+    ///
+    /// A `Result` containing either a `GetDeployResult` or an error.
+    #[wasm_bindgen(js_name = "get_deploy")]
+    pub async fn get_deploy_js_alias(
+        &self,
+        options: Option<GetDeployOptions>,
+    ) -> Result<GetDeployResult, JsError> {
+        let GetDeployOptions {
+            deploy_hash_as_string,
+            deploy_hash,
+            finalized_approvals,
+            verbosity,
+            node_address,
+        } = options.unwrap_or_default();
+
+        let err_msg = "Error: Missing deploy hash as string or deploy hash".to_string();
+        let deploy_hash = if let Some(deploy_hash_as_string) = deploy_hash_as_string {
+            let hash = Digest::new(&deploy_hash_as_string);
+            if let Err(err) = hash {
+                let err_msg = format!("Failed to parse AccountHash from formatted string: {}", err);
+                error(&err_msg);
+                return Err(JsError::new(&err_msg));
+            }
+            let deploy_hash = DeployHash::from_digest(hash.unwrap());
+            if deploy_hash.is_err() {
+                error(&err_msg);
+                return Err(JsError::new(&err_msg));
+            }
+            deploy_hash.unwrap()
+        } else {
+            if deploy_hash.is_none() {
+                error(&err_msg);
+                return Err(JsError::new(&err_msg));
+            }
+            deploy_hash.unwrap()
+        };
+
+        let result = self
+            .get_deploy(deploy_hash, finalized_approvals, verbosity, node_address)
+            .await;
+        match result {
+            Ok(data) => Ok(data.result.into()),
+            Err(err) => {
+                let err = &format!("Error occurred with {:?}", err);
+                error(err);
+                Err(JsError::new(err))
+            }
+        }
+    }
+
+    /// Retrieves deploy information using the provided options, alias for `get_deploy_js_alias`.
+    #[wasm_bindgen(js_name = "info_get_deploy")]
+    pub async fn info_get_deploy_js_alias(
+        &self,
+        options: Option<GetDeployOptions>,
+    ) -> Result<GetDeployResult, JsError> {
+        self.get_deploy_js_alias(options).await
+    }
+}
+
+impl SDK {
+    /// Retrieves deploy information based on the provided options.
+    ///
+    /// # Arguments
+    ///
+    /// * `deploy_hash` - The deploy hash.
+    /// * `finalized_approvals` - An optional boolean indicating finalized approvals.
+    /// * `verbosity` - An optional verbosity level.
+    /// * `node_address` - An optional node address.
+    ///
+    /// # Returns
+    ///
+    /// A `Result` containing either a `GetDeployResult` or an error.
+    pub async fn get_deploy(
+        &self,
+        deploy_hash: DeployHash,
+        finalized_approvals: Option<bool>,
+        verbosity: Option<Verbosity>,
+        node_address: Option<String>,
+    ) -> Result<SuccessResponse<_GetDeployResult>, Error> {
+        //log("get_deploy!");
+        get_deploy(
+            JsonRpcId::from(rand::thread_rng().gen::<i64>().to_string()),
+            &self.get_node_address(node_address),
+            self.get_verbosity(verbosity).into(),
+            deploy_hash.into(),
+            finalized_approvals.unwrap_or_default(),
+        )
+        .await
+    }
+}
+
\ No newline at end of file diff --git a/docs/api-rust/src/casper_rust_wasm_sdk/sdk/rpcs/get_dictionary_item.rs.html b/docs/api-rust/src/casper_rust_wasm_sdk/sdk/rpcs/get_dictionary_item.rs.html new file mode 100644 index 000000000..9aac6acc8 --- /dev/null +++ b/docs/api-rust/src/casper_rust_wasm_sdk/sdk/rpcs/get_dictionary_item.rs.html @@ -0,0 +1,551 @@ +get_dictionary_item.rs - source
1
+2
+3
+4
+5
+6
+7
+8
+9
+10
+11
+12
+13
+14
+15
+16
+17
+18
+19
+20
+21
+22
+23
+24
+25
+26
+27
+28
+29
+30
+31
+32
+33
+34
+35
+36
+37
+38
+39
+40
+41
+42
+43
+44
+45
+46
+47
+48
+49
+50
+51
+52
+53
+54
+55
+56
+57
+58
+59
+60
+61
+62
+63
+64
+65
+66
+67
+68
+69
+70
+71
+72
+73
+74
+75
+76
+77
+78
+79
+80
+81
+82
+83
+84
+85
+86
+87
+88
+89
+90
+91
+92
+93
+94
+95
+96
+97
+98
+99
+100
+101
+102
+103
+104
+105
+106
+107
+108
+109
+110
+111
+112
+113
+114
+115
+116
+117
+118
+119
+120
+121
+122
+123
+124
+125
+126
+127
+128
+129
+130
+131
+132
+133
+134
+135
+136
+137
+138
+139
+140
+141
+142
+143
+144
+145
+146
+147
+148
+149
+150
+151
+152
+153
+154
+155
+156
+157
+158
+159
+160
+161
+162
+163
+164
+165
+166
+167
+168
+169
+170
+171
+172
+173
+174
+175
+176
+177
+178
+179
+180
+181
+182
+183
+184
+185
+186
+187
+188
+189
+190
+191
+192
+193
+194
+195
+196
+197
+198
+199
+200
+201
+202
+203
+204
+205
+206
+207
+208
+209
+210
+211
+212
+213
+214
+215
+216
+217
+218
+219
+220
+221
+222
+223
+224
+225
+226
+227
+228
+229
+230
+231
+232
+233
+234
+235
+236
+237
+238
+239
+240
+241
+242
+243
+244
+245
+246
+247
+248
+249
+250
+251
+252
+253
+254
+255
+256
+257
+258
+259
+260
+261
+262
+263
+264
+265
+266
+267
+268
+269
+270
+271
+272
+273
+274
+275
+
#[cfg(target_arch = "wasm32")]
+use crate::debug::error;
+use crate::types::digest::Digest;
+use crate::{
+    types::{
+        deploy_params::dictionary_item_str_params::{
+            dictionary_item_str_params_to_casper_client, DictionaryItemStrParams,
+        },
+        dictionary_item_identifier::DictionaryItemIdentifier,
+        digest::ToDigest,
+        sdk_error::SdkError,
+        verbosity::Verbosity,
+    },
+    SDK,
+};
+use casper_client::{
+    cli::get_dictionary_item as get_dictionary_item_cli,
+    get_dictionary_item as get_dictionary_item_lib,
+    rpcs::results::GetDictionaryItemResult as _GetDictionaryItemResult, JsonRpcId, SuccessResponse,
+};
+#[cfg(target_arch = "wasm32")]
+use gloo_utils::format::JsValueSerdeExt;
+use rand::Rng;
+
+#[cfg(target_arch = "wasm32")]
+use serde::{Deserialize, Serialize};
+#[cfg(target_arch = "wasm32")]
+use wasm_bindgen::prelude::*;
+
+// Define a struct to wrap the GetDictionaryItemResult
+#[cfg(target_arch = "wasm32")]
+#[derive(Debug, Deserialize, Clone, Serialize)]
+#[wasm_bindgen]
+pub struct GetDictionaryItemResult(_GetDictionaryItemResult);
+
+#[cfg(target_arch = "wasm32")]
+impl From<GetDictionaryItemResult> for _GetDictionaryItemResult {
+    fn from(result: GetDictionaryItemResult) -> Self {
+        result.0
+    }
+}
+#[cfg(target_arch = "wasm32")]
+impl From<_GetDictionaryItemResult> for GetDictionaryItemResult {
+    fn from(result: _GetDictionaryItemResult) -> Self {
+        GetDictionaryItemResult(result)
+    }
+}
+
+#[cfg(target_arch = "wasm32")]
+#[wasm_bindgen]
+impl GetDictionaryItemResult {
+    /// Gets the API version as a JsValue.
+    #[wasm_bindgen(getter)]
+    pub fn api_version(&self) -> JsValue {
+        JsValue::from_serde(&self.0.api_version).unwrap()
+    }
+
+    /// Gets the dictionary key as a String.
+    #[wasm_bindgen(getter)]
+    pub fn dictionary_key(&self) -> String {
+        self.0.dictionary_key.clone()
+    }
+
+    /// Gets the stored value as a JsValue.
+    #[wasm_bindgen(getter)]
+    pub fn stored_value(&self) -> JsValue {
+        JsValue::from_serde(&self.0.stored_value).unwrap()
+    }
+
+    /// Gets the merkle proof as a String.
+    #[wasm_bindgen(getter)]
+    pub fn merkle_proof(&self) -> String {
+        self.0.merkle_proof.clone()
+    }
+
+    /// Converts the GetDictionaryItemResult to a JsValue.
+    #[wasm_bindgen(js_name = "toJson")]
+    pub fn to_json(&self) -> JsValue {
+        JsValue::from_serde(&self.0).unwrap_or(JsValue::null())
+    }
+}
+
+/// Options for the `get_dictionary_item` method.
+#[derive(Default, Debug, Deserialize, Clone, Serialize)]
+#[cfg(target_arch = "wasm32")]
+#[wasm_bindgen(js_name = "getDictionaryItemOptions", getter_with_clone)]
+pub struct GetDictionaryItemOptions {
+    pub state_root_hash_as_string: Option<String>,
+    pub state_root_hash: Option<Digest>,
+    pub dictionary_item_params: Option<DictionaryItemStrParams>,
+    pub dictionary_item_identifier: Option<DictionaryItemIdentifier>,
+    pub node_address: Option<String>,
+    pub verbosity: Option<Verbosity>,
+}
+
+#[cfg(target_arch = "wasm32")]
+#[wasm_bindgen]
+impl SDK {
+    /// Parses dictionary item options from a JsValue.
+    ///
+    /// # Arguments
+    ///
+    /// * `options` - A JsValue containing dictionary item options to be parsed.
+    ///
+    /// # Returns
+    ///
+    /// Parsed dictionary item options as a `GetDictionaryItemOptions` struct.
+    #[wasm_bindgen(js_name = "get_dictionary_item_options")]
+    pub fn get_dictionary_item_options(&self, options: JsValue) -> GetDictionaryItemOptions {
+        let options_result = options.into_serde::<GetDictionaryItemOptions>();
+        match options_result {
+            Ok(options) => options,
+            Err(err) => {
+                error(&format!("Error deserializing options: {:?}", err));
+                GetDictionaryItemOptions::default()
+            }
+        }
+    }
+
+    /// Retrieves dictionary item information using the provided options.
+    ///
+    /// # Arguments
+    ///
+    /// * `options` - An optional `GetDictionaryItemOptions` struct containing retrieval options.
+    ///
+    /// # Returns
+    ///
+    /// A `Result` containing either a `GetDictionaryItemResult` or a `JsError` in case of an error.
+    ///
+    /// # Errors
+    ///
+    /// Returns a `JsError` if there is an error during the retrieval process.
+    #[wasm_bindgen(js_name = "get_dictionary_item")]
+    pub async fn get_dictionary_item_js_alias(
+        &self,
+        options: Option<GetDictionaryItemOptions>,
+    ) -> Result<GetDictionaryItemResult, JsError> {
+        let GetDictionaryItemOptions {
+            state_root_hash_as_string,
+            state_root_hash,
+            dictionary_item_params,
+            dictionary_item_identifier,
+            verbosity,
+            node_address,
+        } = options.unwrap_or_default();
+
+        let dictionary_item = if let Some(identifier) = dictionary_item_identifier {
+            DictionaryItemInput::Identifier(identifier)
+        } else if let Some(params) = dictionary_item_params {
+            DictionaryItemInput::Params(params)
+        } else {
+            let err = "Error: Missing dictionary item identifier or params";
+            error(err);
+            return Err(JsError::new(err));
+        };
+
+        let result = if let Some(hash) = state_root_hash {
+            self.get_dictionary_item(hash, dictionary_item, verbosity, node_address)
+                .await
+        } else if let Some(hash) = state_root_hash_as_string.clone() {
+            self.get_dictionary_item(hash.as_str(), dictionary_item, verbosity, node_address)
+                .await
+        } else {
+            let err = "Error: Missing state_root_hash";
+            error(err);
+            return Err(JsError::new(err));
+        };
+        match result {
+            Ok(data) => Ok(data.result.into()),
+            Err(err) => {
+                let err = &format!("Error occurred with {:?}", err);
+                error(err);
+                Err(JsError::new(err))
+            }
+        }
+    }
+
+    /// JS Alias for `get_dictionary_item_js_alias`
+    #[wasm_bindgen(js_name = "state_get_dictionary_item")]
+    pub async fn state_get_dictionary_item_js_alias(
+        &self,
+        options: Option<GetDictionaryItemOptions>,
+    ) -> Result<GetDictionaryItemResult, JsError> {
+        self.get_dictionary_item_js_alias(options).await
+    }
+}
+
+pub enum DictionaryItemInput {
+    Identifier(DictionaryItemIdentifier),
+    Params(DictionaryItemStrParams),
+}
+
+impl SDK {
+    /// Retrieves dictionary item information based on the provided options.
+    ///
+    /// # Arguments
+    ///
+    /// * `state_root_hash` - A `ToDigest` implementation for specifying the state root hash.
+    /// * `dictionary_item` - A `DictionaryItemInput` enum specifying the dictionary item to retrieve.
+    /// * `verbosity` - An optional `Verbosity` level for controlling the output verbosity.
+    /// * `node_address` - An optional string specifying the node address to use for the request.
+    ///
+    /// # Returns
+    ///
+    /// A `Result` containing either a `GetDictionaryItemResult` or a `SdkError` in case of an error.
+    ///
+    /// # Errors
+    ///
+    /// Returns a `SdkError` if there is an error during the retrieval process.
+    pub async fn get_dictionary_item(
+        &self,
+        state_root_hash: impl ToDigest,
+        dictionary_item_input: DictionaryItemInput,
+        verbosity: Option<Verbosity>,
+        node_address: Option<String>,
+    ) -> Result<SuccessResponse<_GetDictionaryItemResult>, SdkError> {
+        // log("state_get_dictionary_item!");
+        match dictionary_item_input {
+            DictionaryItemInput::Params(dictionary_item_params) => {
+                let state_root_hash_as_string: String = if !state_root_hash.is_empty() {
+                    state_root_hash.to_digest().to_string()
+                } else {
+                    let state_root_hash: Digest = self
+                        .get_state_root_hash(
+                            None,
+                            None,
+                            Some(self.get_node_address(node_address.clone())),
+                        )
+                        .await
+                        .unwrap()
+                        .result
+                        .state_root_hash
+                        .unwrap()
+                        .into();
+                    state_root_hash.to_string()
+                };
+                get_dictionary_item_cli(
+                    &rand::thread_rng().gen::<i64>().to_string(),
+                    &self.get_node_address(node_address),
+                    self.get_verbosity(verbosity).into(),
+                    &state_root_hash_as_string,
+                    dictionary_item_str_params_to_casper_client(&dictionary_item_params),
+                )
+                .await
+                .map_err(SdkError::from)
+            }
+            DictionaryItemInput::Identifier(dictionary_item_identifier) => {
+                let state_root_hash = if state_root_hash.is_empty() {
+                    self.get_state_root_hash(
+                        None,
+                        None,
+                        Some(self.get_node_address(node_address.clone())),
+                    )
+                    .await
+                    .unwrap()
+                    .result
+                    .state_root_hash
+                    .unwrap()
+                    .into()
+                } else {
+                    state_root_hash.to_digest()
+                };
+                get_dictionary_item_lib(
+                    JsonRpcId::from(rand::thread_rng().gen::<i64>().to_string()),
+                    &self.get_node_address(node_address),
+                    self.get_verbosity(verbosity).into(),
+                    state_root_hash.into(),
+                    dictionary_item_identifier.into(),
+                )
+                .await
+                .map_err(SdkError::from)
+            }
+        }
+    }
+}
+
\ No newline at end of file diff --git a/docs/api-rust/src/casper_rust_wasm_sdk/sdk/rpcs/get_era_info.rs.html b/docs/api-rust/src/casper_rust_wasm_sdk/sdk/rpcs/get_era_info.rs.html new file mode 100644 index 000000000..8f56b6dc4 --- /dev/null +++ b/docs/api-rust/src/casper_rust_wasm_sdk/sdk/rpcs/get_era_info.rs.html @@ -0,0 +1,307 @@ +get_era_info.rs - source
1
+2
+3
+4
+5
+6
+7
+8
+9
+10
+11
+12
+13
+14
+15
+16
+17
+18
+19
+20
+21
+22
+23
+24
+25
+26
+27
+28
+29
+30
+31
+32
+33
+34
+35
+36
+37
+38
+39
+40
+41
+42
+43
+44
+45
+46
+47
+48
+49
+50
+51
+52
+53
+54
+55
+56
+57
+58
+59
+60
+61
+62
+63
+64
+65
+66
+67
+68
+69
+70
+71
+72
+73
+74
+75
+76
+77
+78
+79
+80
+81
+82
+83
+84
+85
+86
+87
+88
+89
+90
+91
+92
+93
+94
+95
+96
+97
+98
+99
+100
+101
+102
+103
+104
+105
+106
+107
+108
+109
+110
+111
+112
+113
+114
+115
+116
+117
+118
+119
+120
+121
+122
+123
+124
+125
+126
+127
+128
+129
+130
+131
+132
+133
+134
+135
+136
+137
+138
+139
+140
+141
+142
+143
+144
+145
+146
+147
+148
+149
+150
+151
+152
+153
+
#[cfg(target_arch = "wasm32")]
+use crate::debug::error;
+#[cfg(target_arch = "wasm32")]
+use crate::types::block_identifier::BlockIdentifier;
+use crate::{
+    types::{block_identifier::BlockIdentifierInput, sdk_error::SdkError, verbosity::Verbosity},
+    SDK,
+};
+#[allow(deprecated)]
+use casper_client::{
+    cli::get_era_info as get_era_info_cli, get_era_info as get_era_info_lib,
+    rpcs::results::GetEraInfoResult as _GetEraInfoResult, JsonRpcId, SuccessResponse,
+};
+#[cfg(target_arch = "wasm32")]
+use gloo_utils::format::JsValueSerdeExt;
+use rand::Rng;
+#[cfg(target_arch = "wasm32")]
+use serde::{Deserialize, Serialize};
+#[cfg(target_arch = "wasm32")]
+use wasm_bindgen::prelude::*;
+
+#[cfg(target_arch = "wasm32")]
+#[derive(Debug, Deserialize, Clone, Serialize)]
+#[wasm_bindgen]
+pub struct GetEraInfoResult(_GetEraInfoResult);
+
+#[cfg(target_arch = "wasm32")]
+impl From<GetEraInfoResult> for _GetEraInfoResult {
+    fn from(result: GetEraInfoResult) -> Self {
+        result.0
+    }
+}
+#[cfg(target_arch = "wasm32")]
+impl From<_GetEraInfoResult> for GetEraInfoResult {
+    fn from(result: _GetEraInfoResult) -> Self {
+        GetEraInfoResult(result)
+    }
+}
+
+#[cfg(target_arch = "wasm32")]
+#[wasm_bindgen]
+impl GetEraInfoResult {
+    #[wasm_bindgen(getter)]
+    pub fn api_version(&self) -> JsValue {
+        JsValue::from_serde(&self.0.api_version).unwrap()
+    }
+
+    #[wasm_bindgen(getter)]
+    pub fn era_summary(&self) -> JsValue {
+        JsValue::from_serde(&self.0.era_summary).unwrap()
+    }
+
+    #[wasm_bindgen(js_name = "toJson")]
+    pub fn to_json(&self) -> JsValue {
+        JsValue::from_serde(&self.0).unwrap_or(JsValue::null())
+    }
+}
+
+#[derive(Debug, Deserialize, Clone, Default, Serialize)]
+#[cfg(target_arch = "wasm32")]
+#[wasm_bindgen(js_name = "getEraInfoOptions", getter_with_clone)]
+pub struct GetEraInfoOptions {
+    pub maybe_block_id_as_string: Option<String>,
+    pub maybe_block_identifier: Option<BlockIdentifier>,
+    pub node_address: Option<String>,
+    pub verbosity: Option<Verbosity>,
+}
+
+#[cfg(target_arch = "wasm32")]
+#[wasm_bindgen]
+impl SDK {
+    #[deprecated(note = "prefer 'get_era_summary' as it doesn't require a switch block")]
+    #[allow(deprecated)]
+    #[wasm_bindgen(js_name = "get_era_info_options")]
+    pub fn get_era_info_options(&self, options: JsValue) -> GetEraInfoOptions {
+        options.into_serde().unwrap_or_default()
+    }
+
+    #[deprecated(note = "prefer 'get_era_summary' as it doesn't require a switch block")]
+    #[allow(deprecated)]
+    #[wasm_bindgen(js_name = "get_era_info")]
+    pub async fn get_era_info_js_alias(
+        &self,
+        options: Option<GetEraInfoOptions>,
+    ) -> Result<GetEraInfoResult, JsError> {
+        let GetEraInfoOptions {
+            maybe_block_id_as_string,
+            maybe_block_identifier,
+            verbosity,
+            node_address,
+        } = options.unwrap_or_default();
+
+        let maybe_block_identifier = if let Some(maybe_block_identifier) = maybe_block_identifier {
+            Some(BlockIdentifierInput::BlockIdentifier(
+                maybe_block_identifier,
+            ))
+        } else {
+            maybe_block_id_as_string.map(BlockIdentifierInput::String)
+        };
+        let result = self
+            .get_era_info(maybe_block_identifier, verbosity, node_address)
+            .await;
+        match result {
+            Ok(data) => Ok(data.result.into()),
+            Err(err) => {
+                let err = &format!("Error occurred with {:?}", err);
+                error(err);
+                Err(JsError::new(err))
+            }
+        }
+    }
+}
+
+impl SDK {
+    #[deprecated(note = "prefer 'get_era_summary' as it doesn't require a switch block")]
+    #[allow(deprecated)]
+    pub async fn get_era_info(
+        &self,
+        maybe_block_identifier: Option<BlockIdentifierInput>,
+        verbosity: Option<Verbosity>,
+        node_address: Option<String>,
+    ) -> Result<SuccessResponse<_GetEraInfoResult>, SdkError> {
+        //log("get_era_info!");
+
+        if let Some(BlockIdentifierInput::String(maybe_block_id)) = maybe_block_identifier {
+            get_era_info_cli(
+                &rand::thread_rng().gen::<i64>().to_string(),
+                &self.get_node_address(node_address),
+                self.get_verbosity(verbosity).into(),
+                &maybe_block_id,
+            )
+            .await
+            .map_err(SdkError::from)
+        } else {
+            let maybe_block_identifier =
+                if let Some(BlockIdentifierInput::BlockIdentifier(maybe_block_identifier)) =
+                    maybe_block_identifier
+                {
+                    Some(maybe_block_identifier)
+                } else {
+                    None
+                };
+            get_era_info_lib(
+                JsonRpcId::from(rand::thread_rng().gen::<i64>().to_string()),
+                &self.get_node_address(node_address),
+                self.get_verbosity(verbosity).into(),
+                maybe_block_identifier.map(Into::into),
+            )
+            .await
+            .map_err(SdkError::from)
+        }
+    }
+}
+
\ No newline at end of file diff --git a/docs/api-rust/src/casper_rust_wasm_sdk/sdk/rpcs/get_era_summary.rs.html b/docs/api-rust/src/casper_rust_wasm_sdk/sdk/rpcs/get_era_summary.rs.html new file mode 100644 index 000000000..42b6af51b --- /dev/null +++ b/docs/api-rust/src/casper_rust_wasm_sdk/sdk/rpcs/get_era_summary.rs.html @@ -0,0 +1,393 @@ +get_era_summary.rs - source
1
+2
+3
+4
+5
+6
+7
+8
+9
+10
+11
+12
+13
+14
+15
+16
+17
+18
+19
+20
+21
+22
+23
+24
+25
+26
+27
+28
+29
+30
+31
+32
+33
+34
+35
+36
+37
+38
+39
+40
+41
+42
+43
+44
+45
+46
+47
+48
+49
+50
+51
+52
+53
+54
+55
+56
+57
+58
+59
+60
+61
+62
+63
+64
+65
+66
+67
+68
+69
+70
+71
+72
+73
+74
+75
+76
+77
+78
+79
+80
+81
+82
+83
+84
+85
+86
+87
+88
+89
+90
+91
+92
+93
+94
+95
+96
+97
+98
+99
+100
+101
+102
+103
+104
+105
+106
+107
+108
+109
+110
+111
+112
+113
+114
+115
+116
+117
+118
+119
+120
+121
+122
+123
+124
+125
+126
+127
+128
+129
+130
+131
+132
+133
+134
+135
+136
+137
+138
+139
+140
+141
+142
+143
+144
+145
+146
+147
+148
+149
+150
+151
+152
+153
+154
+155
+156
+157
+158
+159
+160
+161
+162
+163
+164
+165
+166
+167
+168
+169
+170
+171
+172
+173
+174
+175
+176
+177
+178
+179
+180
+181
+182
+183
+184
+185
+186
+187
+188
+189
+190
+191
+192
+193
+194
+195
+196
+
#[cfg(target_arch = "wasm32")]
+use crate::debug::error;
+#[cfg(target_arch = "wasm32")]
+use crate::types::block_identifier::BlockIdentifier;
+use crate::{
+    types::{block_identifier::BlockIdentifierInput, sdk_error::SdkError, verbosity::Verbosity},
+    SDK,
+};
+use casper_client::{
+    cli::get_era_summary as get_era_summary_cli, get_era_summary as get_era_summary_lib,
+    rpcs::results::GetEraSummaryResult as _GetEraSummaryResult, JsonRpcId, SuccessResponse,
+};
+#[cfg(target_arch = "wasm32")]
+use gloo_utils::format::JsValueSerdeExt;
+use rand::Rng;
+#[cfg(target_arch = "wasm32")]
+use serde::{Deserialize, Serialize};
+#[cfg(target_arch = "wasm32")]
+use wasm_bindgen::prelude::*;
+
+/// Wrapper struct for the `GetEraSummaryResult` from casper_client.
+#[cfg(target_arch = "wasm32")]
+#[derive(Debug, Deserialize, Clone, Serialize)]
+#[wasm_bindgen]
+pub struct GetEraSummaryResult(_GetEraSummaryResult);
+
+#[cfg(target_arch = "wasm32")]
+impl From<GetEraSummaryResult> for _GetEraSummaryResult {
+    fn from(result: GetEraSummaryResult) -> Self {
+        result.0
+    }
+}
+
+#[cfg(target_arch = "wasm32")]
+impl From<_GetEraSummaryResult> for GetEraSummaryResult {
+    fn from(result: _GetEraSummaryResult) -> Self {
+        GetEraSummaryResult(result)
+    }
+}
+
+#[cfg(target_arch = "wasm32")]
+#[wasm_bindgen]
+impl GetEraSummaryResult {
+    /// Gets the API version as a JsValue.
+    #[wasm_bindgen(getter)]
+    pub fn api_version(&self) -> JsValue {
+        JsValue::from_serde(&self.0.api_version).unwrap()
+    }
+
+    /// Gets the era summary as a JsValue.
+    #[wasm_bindgen(getter)]
+    pub fn era_summary(&self) -> JsValue {
+        JsValue::from_serde(&self.0.era_summary).unwrap()
+    }
+
+    /// Converts the GetEraSummaryResult to a JsValue.
+    #[wasm_bindgen(js_name = "toJson")]
+    pub fn to_json(&self) -> JsValue {
+        JsValue::from_serde(&self.0).unwrap_or(JsValue::null())
+    }
+}
+
+/// Options for the `get_era_summary` method.
+#[derive(Debug, Deserialize, Clone, Default, Serialize)]
+#[cfg(target_arch = "wasm32")]
+#[wasm_bindgen(js_name = "getEraSummaryOptions", getter_with_clone)]
+pub struct GetEraSummaryOptions {
+    pub maybe_block_id_as_string: Option<String>,
+    pub maybe_block_identifier: Option<BlockIdentifier>,
+    pub node_address: Option<String>,
+    pub verbosity: Option<Verbosity>,
+}
+
+#[cfg(target_arch = "wasm32")]
+#[wasm_bindgen]
+impl SDK {
+    /// Parses era summary options from a JsValue.
+    ///
+    /// # Arguments
+    ///
+    /// * `options` - A JsValue containing era summary options to be parsed.
+    ///
+    /// # Returns
+    ///
+    /// Parsed era summary options as a `GetEraSummaryOptions` struct.
+    #[wasm_bindgen(js_name = "get_era_summary_options")]
+    pub fn get_era_summary_options(&self, options: JsValue) -> GetEraSummaryOptions {
+        let options_result = options.into_serde::<GetEraSummaryOptions>();
+        match options_result {
+            Ok(options) => options,
+            Err(err) => {
+                error(&format!("Error deserializing options: {:?}", err));
+                GetEraSummaryOptions::default()
+            }
+        }
+    }
+
+    /// Retrieves era summary information using the provided options.
+    ///
+    /// # Arguments
+    ///
+    /// * `options` - An optional `GetEraSummaryOptions` struct containing retrieval options.
+    ///
+    /// # Returns
+    ///
+    /// A `Result` containing either a `GetEraSummaryResult` or a `JsError` in case of an error.
+    ///
+    /// # Errors
+    ///
+    /// Returns a `JsError` if there is an error during the retrieval process.
+    #[wasm_bindgen(js_name = "get_era_summary")]
+    pub async fn get_era_summary_js_alias(
+        &self,
+        options: Option<GetEraSummaryOptions>,
+    ) -> Result<GetEraSummaryResult, JsError> {
+        let GetEraSummaryOptions {
+            maybe_block_id_as_string,
+            maybe_block_identifier,
+            verbosity,
+            node_address,
+        } = options.unwrap_or_default();
+
+        let maybe_block_identifier = if let Some(maybe_block_identifier) = maybe_block_identifier {
+            Some(BlockIdentifierInput::BlockIdentifier(
+                maybe_block_identifier,
+            ))
+        } else {
+            maybe_block_id_as_string.map(BlockIdentifierInput::String)
+        };
+
+        let result = self
+            .get_era_summary(maybe_block_identifier, verbosity, node_address)
+            .await;
+        match result {
+            Ok(data) => Ok(data.result.into()),
+            Err(err) => {
+                let err = &format!("Error occurred with {:?}", err);
+                error(err);
+                Err(JsError::new(err))
+            }
+        }
+    }
+}
+
+impl SDK {
+    /// Retrieves era summary information based on the provided options.
+    ///
+    /// # Arguments
+    ///
+    /// * `maybe_block_identifier` - An optional `BlockIdentifierInput` for specifying a block identifier.
+    /// * `verbosity` - An optional `Verbosity` level for controlling the output verbosity.
+    /// * `node_address` - An optional string specifying the node address to use for the request.
+    ///
+    /// # Returns
+    ///
+    /// A `Result` containing either a `GetEraSummaryResult` or a `SdkError` in case of an error.
+    ///
+    /// # Errors
+    ///
+    /// Returns a `SdkError` if there is an error during the retrieval process.
+    pub async fn get_era_summary(
+        &self,
+        maybe_block_identifier: Option<BlockIdentifierInput>,
+        verbosity: Option<Verbosity>,
+        node_address: Option<String>,
+    ) -> Result<SuccessResponse<_GetEraSummaryResult>, SdkError> {
+        //log("get_era_summary!");
+        if let Some(BlockIdentifierInput::String(maybe_block_id)) = maybe_block_identifier {
+            get_era_summary_cli(
+                &rand::thread_rng().gen::<i64>().to_string(),
+                &self.get_node_address(node_address),
+                self.get_verbosity(verbosity).into(),
+                &maybe_block_id,
+            )
+            .await
+            .map_err(SdkError::from)
+        } else {
+            let maybe_block_identifier =
+                if let Some(BlockIdentifierInput::BlockIdentifier(maybe_block_identifier)) =
+                    maybe_block_identifier
+                {
+                    Some(maybe_block_identifier)
+                } else {
+                    None
+                };
+            get_era_summary_lib(
+                JsonRpcId::from(rand::thread_rng().gen::<i64>().to_string()),
+                &self.get_node_address(node_address),
+                self.get_verbosity(verbosity).into(),
+                maybe_block_identifier.map(Into::into),
+            )
+            .await
+            .map_err(SdkError::from)
+        }
+    }
+}
+
\ No newline at end of file diff --git a/docs/api-rust/src/casper_rust_wasm_sdk/sdk/rpcs/get_node_status.rs.html b/docs/api-rust/src/casper_rust_wasm_sdk/sdk/rpcs/get_node_status.rs.html new file mode 100644 index 000000000..ac7b5d21f --- /dev/null +++ b/docs/api-rust/src/casper_rust_wasm_sdk/sdk/rpcs/get_node_status.rs.html @@ -0,0 +1,397 @@ +get_node_status.rs - source
1
+2
+3
+4
+5
+6
+7
+8
+9
+10
+11
+12
+13
+14
+15
+16
+17
+18
+19
+20
+21
+22
+23
+24
+25
+26
+27
+28
+29
+30
+31
+32
+33
+34
+35
+36
+37
+38
+39
+40
+41
+42
+43
+44
+45
+46
+47
+48
+49
+50
+51
+52
+53
+54
+55
+56
+57
+58
+59
+60
+61
+62
+63
+64
+65
+66
+67
+68
+69
+70
+71
+72
+73
+74
+75
+76
+77
+78
+79
+80
+81
+82
+83
+84
+85
+86
+87
+88
+89
+90
+91
+92
+93
+94
+95
+96
+97
+98
+99
+100
+101
+102
+103
+104
+105
+106
+107
+108
+109
+110
+111
+112
+113
+114
+115
+116
+117
+118
+119
+120
+121
+122
+123
+124
+125
+126
+127
+128
+129
+130
+131
+132
+133
+134
+135
+136
+137
+138
+139
+140
+141
+142
+143
+144
+145
+146
+147
+148
+149
+150
+151
+152
+153
+154
+155
+156
+157
+158
+159
+160
+161
+162
+163
+164
+165
+166
+167
+168
+169
+170
+171
+172
+173
+174
+175
+176
+177
+178
+179
+180
+181
+182
+183
+184
+185
+186
+187
+188
+189
+190
+191
+192
+193
+194
+195
+196
+197
+198
+
#[cfg(target_arch = "wasm32")]
+use crate::{
+    debug::error,
+    types::{digest::Digest, public_key::PublicKey},
+};
+use crate::{types::verbosity::Verbosity, SDK};
+use casper_client::{
+    get_node_status, rpcs::results::GetNodeStatusResult as _GetNodeStatusResult, Error, JsonRpcId,
+    SuccessResponse,
+};
+#[cfg(target_arch = "wasm32")]
+use gloo_utils::format::JsValueSerdeExt;
+use rand::Rng;
+#[cfg(target_arch = "wasm32")]
+use serde::{Deserialize, Serialize};
+#[cfg(target_arch = "wasm32")]
+use wasm_bindgen::prelude::*;
+
+/// Wrapper struct for the `GetNodeStatusResult` from casper_client.
+#[cfg(target_arch = "wasm32")]
+#[derive(Debug, Deserialize, Clone, Serialize)]
+#[wasm_bindgen]
+pub struct GetNodeStatusResult(_GetNodeStatusResult);
+
+#[cfg(target_arch = "wasm32")]
+impl From<GetNodeStatusResult> for _GetNodeStatusResult {
+    fn from(result: GetNodeStatusResult) -> Self {
+        result.0
+    }
+}
+
+#[cfg(target_arch = "wasm32")]
+impl From<_GetNodeStatusResult> for GetNodeStatusResult {
+    fn from(result: _GetNodeStatusResult) -> Self {
+        GetNodeStatusResult(result)
+    }
+}
+
+#[cfg(target_arch = "wasm32")]
+#[wasm_bindgen]
+impl GetNodeStatusResult {
+    /// Gets the API version as a JsValue.
+    #[wasm_bindgen(getter)]
+    pub fn api_version(&self) -> JsValue {
+        JsValue::from_serde(&self.0.api_version).unwrap()
+    }
+
+    /// Gets the chainspec name as a String.
+    #[wasm_bindgen(getter)]
+    pub fn chainspec_name(&self) -> String {
+        self.0.chainspec_name.clone()
+    }
+
+    /// Gets the starting state root hash as a Digest.
+    #[allow(deprecated)]
+    #[wasm_bindgen(getter)]
+    pub fn starting_state_root_hash(&self) -> Digest {
+        self.0.starting_state_root_hash.into()
+    }
+
+    /// Gets the list of peers as a JsValue.
+    #[wasm_bindgen(getter)]
+    pub fn peers(&self) -> JsValue {
+        JsValue::from_serde(&self.0.peers).unwrap()
+    }
+
+    /// Gets information about the last added block as a JsValue.
+    #[wasm_bindgen(getter)]
+    pub fn last_added_block_info(&self) -> JsValue {
+        JsValue::from_serde(&self.0.last_added_block_info).unwrap()
+    }
+
+    /// Gets the public signing key as an Option<PublicKey>.
+    #[wasm_bindgen(getter)]
+    pub fn our_public_signing_key(&self) -> Option<PublicKey> {
+        self.0.our_public_signing_key.clone().map(Into::into)
+    }
+
+    /// Gets the round length as a JsValue.
+    #[wasm_bindgen(getter)]
+    pub fn round_length(&self) -> JsValue {
+        JsValue::from_serde(&self.0.round_length).unwrap()
+    }
+
+    /// Gets information about the next upgrade as a JsValue.
+    #[wasm_bindgen(getter)]
+    pub fn next_upgrade(&self) -> JsValue {
+        JsValue::from_serde(&self.0.next_upgrade).unwrap()
+    }
+
+    /// Gets the build version as a String.
+    #[wasm_bindgen(getter)]
+    pub fn build_version(&self) -> String {
+        self.0.build_version.clone()
+    }
+
+    /// Gets the uptime information as a JsValue.
+    #[wasm_bindgen(getter)]
+    pub fn uptime(&self) -> JsValue {
+        JsValue::from_serde(&self.0.uptime).unwrap()
+    }
+
+    /// Gets the reactor state information as a JsValue.
+    #[wasm_bindgen(getter)]
+    pub fn reactor_state(&self) -> JsValue {
+        JsValue::from_serde(&self.0.reactor_state).unwrap()
+    }
+
+    /// Gets the last progress information as a JsValue.
+    #[wasm_bindgen(getter)]
+    pub fn last_progress(&self) -> JsValue {
+        JsValue::from_serde(&self.0.last_progress).unwrap()
+    }
+
+    /// Gets the available block range as a JsValue.
+    #[wasm_bindgen(getter)]
+    pub fn available_block_range(&self) -> JsValue {
+        JsValue::from_serde(&self.0.available_block_range).unwrap()
+    }
+
+    /// Gets the block sync information as a JsValue.
+    #[wasm_bindgen(getter)]
+    pub fn block_sync(&self) -> JsValue {
+        JsValue::from_serde(&self.0.block_sync).unwrap()
+    }
+
+    /// Converts the GetNodeStatusResult to a JsValue.
+    #[wasm_bindgen(js_name = "toJson")]
+    pub fn to_json(&self) -> JsValue {
+        JsValue::from_serde(&self.0).unwrap_or(JsValue::null())
+    }
+}
+
+/// SDK methods related to retrieving node status information.
+#[cfg(target_arch = "wasm32")]
+#[wasm_bindgen]
+impl SDK {
+    /// Retrieves node status information using the provided options.
+    ///
+    /// # Arguments
+    ///
+    /// * `verbosity` - An optional `Verbosity` level for controlling the output verbosity.
+    /// * `node_address` - An optional string specifying the node address to use for the request.
+    ///
+    /// # Returns
+    ///
+    /// A `Result` containing either a `GetNodeStatusResult` or a `JsError` in case of an error.
+    ///
+    /// # Errors
+    ///
+    /// Returns a `JsError` if there is an error during the retrieval process.
+    #[wasm_bindgen(js_name = "get_node_status")]
+    pub async fn get_node_status_js_alias(
+        &self,
+        verbosity: Option<Verbosity>,
+        node_address: Option<String>,
+    ) -> Result<GetNodeStatusResult, JsError> {
+        let result = self.get_node_status(verbosity, node_address).await;
+        match result {
+            Ok(data) => Ok(data.result.into()),
+            Err(err) => {
+                let err = &format!("Error occurred with {:?}", err);
+                error(err);
+                Err(JsError::new(err))
+            }
+        }
+    }
+}
+
+impl SDK {
+    /// Retrieves node status information based on the provided options.
+    ///
+    /// # Arguments
+    ///
+    /// * `verbosity` - An optional `Verbosity` level for controlling the output verbosity.
+    /// * `node_address` - An optional string specifying the node address to use for the request.
+    ///
+    /// # Returns
+    ///
+    /// A `Result` containing either a `GetNodeStatusResult` or an `Error` in case of an error.
+    ///
+    /// # Errors
+    ///
+    /// Returns an `Error` if there is an error during the retrieval process.
+    pub async fn get_node_status(
+        &self,
+        verbosity: Option<Verbosity>,
+        node_address: Option<String>,
+    ) -> Result<SuccessResponse<_GetNodeStatusResult>, Error> {
+        //log("get_node_status!");
+        get_node_status(
+            JsonRpcId::from(rand::thread_rng().gen::<i64>().to_string()),
+            &self.get_node_address(node_address),
+            self.get_verbosity(verbosity).into(),
+        )
+        .await
+    }
+}
+
\ No newline at end of file diff --git a/docs/api-rust/src/casper_rust_wasm_sdk/sdk/rpcs/get_peers.rs.html b/docs/api-rust/src/casper_rust_wasm_sdk/sdk/rpcs/get_peers.rs.html new file mode 100644 index 000000000..fbdf3cc6c --- /dev/null +++ b/docs/api-rust/src/casper_rust_wasm_sdk/sdk/rpcs/get_peers.rs.html @@ -0,0 +1,223 @@ +get_peers.rs - source
1
+2
+3
+4
+5
+6
+7
+8
+9
+10
+11
+12
+13
+14
+15
+16
+17
+18
+19
+20
+21
+22
+23
+24
+25
+26
+27
+28
+29
+30
+31
+32
+33
+34
+35
+36
+37
+38
+39
+40
+41
+42
+43
+44
+45
+46
+47
+48
+49
+50
+51
+52
+53
+54
+55
+56
+57
+58
+59
+60
+61
+62
+63
+64
+65
+66
+67
+68
+69
+70
+71
+72
+73
+74
+75
+76
+77
+78
+79
+80
+81
+82
+83
+84
+85
+86
+87
+88
+89
+90
+91
+92
+93
+94
+95
+96
+97
+98
+99
+100
+101
+102
+103
+104
+105
+106
+107
+108
+109
+110
+111
+
#[cfg(target_arch = "wasm32")]
+use crate::debug::error;
+use crate::{types::verbosity::Verbosity, SDK};
+use casper_client::{
+    get_peers, rpcs::results::GetPeersResult as _GetPeersResult, Error, JsonRpcId, SuccessResponse,
+};
+#[cfg(target_arch = "wasm32")]
+use gloo_utils::format::JsValueSerdeExt;
+use rand::Rng;
+#[cfg(target_arch = "wasm32")]
+use serde::{Deserialize, Serialize};
+#[cfg(target_arch = "wasm32")]
+use wasm_bindgen::prelude::*;
+
+/// A wrapper for the `GetPeersResult` type from the Casper client.
+#[cfg(target_arch = "wasm32")]
+#[derive(Debug, Deserialize, Clone, Serialize)]
+#[wasm_bindgen]
+pub struct GetPeersResult(_GetPeersResult);
+
+#[cfg(target_arch = "wasm32")]
+impl From<GetPeersResult> for _GetPeersResult {
+    fn from(result: GetPeersResult) -> Self {
+        result.0
+    }
+}
+
+#[cfg(target_arch = "wasm32")]
+impl From<_GetPeersResult> for GetPeersResult {
+    fn from(result: _GetPeersResult) -> Self {
+        GetPeersResult(result)
+    }
+}
+
+#[cfg(target_arch = "wasm32")]
+#[wasm_bindgen]
+impl GetPeersResult {
+    /// Gets the API version as a JSON value.
+    #[wasm_bindgen(getter)]
+    pub fn api_version(&self) -> JsValue {
+        JsValue::from_serde(&self.0.api_version).unwrap()
+    }
+
+    /// Gets the peers as a JSON value.
+    #[wasm_bindgen(getter)]
+    pub fn peers(&self) -> JsValue {
+        JsValue::from_serde(&self.0.peers).unwrap()
+    }
+
+    /// Converts the result to JSON format as a JavaScript value.
+    #[wasm_bindgen(js_name = "toJson")]
+    pub fn to_json(&self) -> JsValue {
+        JsValue::from_serde(&self.0).unwrap_or(JsValue::null())
+    }
+}
+
+#[cfg(target_arch = "wasm32")]
+#[wasm_bindgen]
+impl SDK {
+    /// Retrieves peers asynchronously.
+    ///
+    /// # Arguments
+    ///
+    /// * `verbosity` - Optional verbosity level.
+    /// * `node_address` - Optional node address.
+    ///
+    /// # Returns
+    ///
+    /// A `Result` containing `GetPeersResult` or a `JsError` if an error occurs.
+    #[wasm_bindgen(js_name = "get_peers")]
+    pub async fn get_peers_js_alias(
+        &self,
+        verbosity: Option<Verbosity>,
+        node_address: Option<String>,
+    ) -> Result<GetPeersResult, JsError> {
+        let result = self.get_peers(verbosity, node_address).await;
+        match result {
+            Ok(data) => Ok(data.result.into()),
+            Err(err) => {
+                let err = &format!("Error occurred with {:?}", err);
+                error(err);
+                Err(JsError::new(err))
+            }
+        }
+    }
+}
+
+impl SDK {
+    /// Retrieves peers.
+    ///
+    /// # Arguments
+    ///
+    /// * `verbosity` - Optional verbosity level.
+    /// * `node_address` - Optional node address.
+    ///
+    /// # Returns
+    ///
+    /// A `Result` containing `SuccessResponse` with `_GetPeersResult` or an `Error` if an error occurs.
+    pub async fn get_peers(
+        &self,
+        verbosity: Option<Verbosity>,
+        node_address: Option<String>,
+    ) -> Result<SuccessResponse<_GetPeersResult>, Error> {
+        get_peers(
+            JsonRpcId::from(rand::thread_rng().gen::<i64>().to_string()),
+            &self.get_node_address(node_address),
+            self.get_verbosity(verbosity).into(),
+        )
+        .await
+    }
+}
+
\ No newline at end of file diff --git a/docs/api-rust/src/casper_rust_wasm_sdk/sdk/rpcs/get_state_root_hash.rs.html b/docs/api-rust/src/casper_rust_wasm_sdk/sdk/rpcs/get_state_root_hash.rs.html new file mode 100644 index 000000000..fde7e995a --- /dev/null +++ b/docs/api-rust/src/casper_rust_wasm_sdk/sdk/rpcs/get_state_root_hash.rs.html @@ -0,0 +1,463 @@ +get_state_root_hash.rs - source
1
+2
+3
+4
+5
+6
+7
+8
+9
+10
+11
+12
+13
+14
+15
+16
+17
+18
+19
+20
+21
+22
+23
+24
+25
+26
+27
+28
+29
+30
+31
+32
+33
+34
+35
+36
+37
+38
+39
+40
+41
+42
+43
+44
+45
+46
+47
+48
+49
+50
+51
+52
+53
+54
+55
+56
+57
+58
+59
+60
+61
+62
+63
+64
+65
+66
+67
+68
+69
+70
+71
+72
+73
+74
+75
+76
+77
+78
+79
+80
+81
+82
+83
+84
+85
+86
+87
+88
+89
+90
+91
+92
+93
+94
+95
+96
+97
+98
+99
+100
+101
+102
+103
+104
+105
+106
+107
+108
+109
+110
+111
+112
+113
+114
+115
+116
+117
+118
+119
+120
+121
+122
+123
+124
+125
+126
+127
+128
+129
+130
+131
+132
+133
+134
+135
+136
+137
+138
+139
+140
+141
+142
+143
+144
+145
+146
+147
+148
+149
+150
+151
+152
+153
+154
+155
+156
+157
+158
+159
+160
+161
+162
+163
+164
+165
+166
+167
+168
+169
+170
+171
+172
+173
+174
+175
+176
+177
+178
+179
+180
+181
+182
+183
+184
+185
+186
+187
+188
+189
+190
+191
+192
+193
+194
+195
+196
+197
+198
+199
+200
+201
+202
+203
+204
+205
+206
+207
+208
+209
+210
+211
+212
+213
+214
+215
+216
+217
+218
+219
+220
+221
+222
+223
+224
+225
+226
+227
+228
+229
+230
+231
+
#[cfg(target_arch = "wasm32")]
+use crate::debug::error;
+#[cfg(target_arch = "wasm32")]
+use crate::types::block_identifier::BlockIdentifier;
+#[cfg(target_arch = "wasm32")]
+use crate::types::digest::Digest;
+use crate::{
+    types::{block_identifier::BlockIdentifierInput, sdk_error::SdkError, verbosity::Verbosity},
+    SDK,
+};
+use casper_client::{
+    cli::get_state_root_hash as get_state_root_hash_cli,
+    get_state_root_hash as get_state_root_hash_lib,
+    rpcs::results::GetStateRootHashResult as _GetStateRootHashResult, JsonRpcId, SuccessResponse,
+};
+#[cfg(target_arch = "wasm32")]
+use gloo_utils::format::JsValueSerdeExt;
+use rand::Rng;
+#[cfg(target_arch = "wasm32")]
+use serde::{Deserialize, Serialize};
+#[cfg(target_arch = "wasm32")]
+use wasm_bindgen::prelude::*;
+
+/// Wrapper struct for the `GetStateRootHashResult` from casper_client.
+#[cfg(target_arch = "wasm32")]
+#[derive(Debug, Deserialize, Clone, Serialize)]
+#[wasm_bindgen]
+pub struct GetStateRootHashResult(_GetStateRootHashResult);
+
+#[cfg(target_arch = "wasm32")]
+impl From<GetStateRootHashResult> for _GetStateRootHashResult {
+    fn from(result: GetStateRootHashResult) -> Self {
+        result.0
+    }
+}
+
+#[cfg(target_arch = "wasm32")]
+impl From<_GetStateRootHashResult> for GetStateRootHashResult {
+    fn from(result: _GetStateRootHashResult) -> Self {
+        GetStateRootHashResult(result)
+    }
+}
+
+#[cfg(target_arch = "wasm32")]
+#[wasm_bindgen]
+impl GetStateRootHashResult {
+    /// Gets the API version as a JsValue.
+    #[wasm_bindgen(getter)]
+    pub fn api_version(&self) -> JsValue {
+        JsValue::from_serde(&self.0.api_version).unwrap()
+    }
+
+    /// Gets the state root hash as an Option<Digest>.
+    #[wasm_bindgen(getter)]
+    pub fn state_root_hash(&self) -> Option<Digest> {
+        self.0.state_root_hash.map(Into::into)
+    }
+
+    /// Gets the state root hash as a String.
+    #[wasm_bindgen(getter)]
+    pub fn state_root_hash_as_string(&self) -> String {
+        self.0
+            .state_root_hash
+            .map(Into::<Digest>::into)
+            .map(|digest| digest.to_string())
+            .unwrap_or_default()
+    }
+
+    /// Converts the GetStateRootHashResult to a JsValue.
+    #[wasm_bindgen(js_name = "toJson")]
+    pub fn to_json(&self) -> JsValue {
+        JsValue::from_serde(&self.0).unwrap_or(JsValue::null())
+    }
+}
+
+/// Options for the `get_state_root_hash` method.
+#[derive(Debug, Deserialize, Clone, Default, Serialize)]
+#[cfg(target_arch = "wasm32")]
+#[wasm_bindgen(js_name = "getStateRootHashOptions", getter_with_clone)]
+pub struct GetStateRootHashOptions {
+    pub maybe_block_id_as_string: Option<String>,
+    pub maybe_block_identifier: Option<BlockIdentifier>,
+    pub node_address: Option<String>,
+    pub verbosity: Option<Verbosity>,
+}
+
+#[cfg(target_arch = "wasm32")]
+#[wasm_bindgen]
+impl SDK {
+    /// Parses state root hash options from a JsValue.
+    ///
+    /// # Arguments
+    ///
+    /// * `options` - A JsValue containing state root hash options to be parsed.
+    ///
+    /// # Returns
+    ///
+    /// Parsed state root hash options as a `GetStateRootHashOptions` struct.
+    #[wasm_bindgen(js_name = "get_state_root_hash_options")]
+    pub fn get_state_root_hash_options(&self, options: JsValue) -> GetStateRootHashOptions {
+        let options_result = options.into_serde::<GetStateRootHashOptions>();
+        match options_result {
+            Ok(options) => options,
+            Err(err) => {
+                error(&format!("Error deserializing options: {:?}", err));
+                GetStateRootHashOptions::default()
+            }
+        }
+    }
+
+    /// Retrieves state root hash information using the provided options.
+    ///
+    /// # Arguments
+    ///
+    /// * `options` - An optional `GetStateRootHashOptions` struct containing retrieval options.
+    ///
+    /// # Returns
+    ///
+    /// A `Result` containing either a `GetStateRootHashResult` or a `JsError` in case of an error.
+    ///
+    /// # Errors
+    ///
+    /// Returns a `JsError` if there is an error during the retrieval process.
+    #[wasm_bindgen(js_name = "get_state_root_hash")]
+    pub async fn get_state_root_hash_js_alias(
+        &self,
+        options: Option<GetStateRootHashOptions>,
+    ) -> Result<GetStateRootHashResult, JsError> {
+        let GetStateRootHashOptions {
+            maybe_block_id_as_string,
+            maybe_block_identifier,
+            verbosity,
+            node_address,
+        } = options.unwrap_or_default();
+
+        let maybe_block_identifier = if let Some(maybe_block_identifier) = maybe_block_identifier {
+            Some(BlockIdentifierInput::BlockIdentifier(
+                maybe_block_identifier,
+            ))
+        } else {
+            maybe_block_id_as_string.map(BlockIdentifierInput::String)
+        };
+
+        let result = self
+            .get_state_root_hash(maybe_block_identifier, verbosity, node_address)
+            .await;
+        match result {
+            Ok(data) => Ok(data.result.into()),
+            Err(err) => {
+                let err = &format!("Error occurred with {:?}", err);
+                error(err);
+                Err(JsError::new(err))
+            }
+        }
+    }
+
+    /// Retrieves state root hash information using the provided options (alias for `get_state_root_hash_js_alias`).
+    ///
+    /// # Arguments
+    ///
+    /// * `options` - An optional `GetStateRootHashOptions` struct containing retrieval options.
+    ///
+    /// # Returns
+    ///
+    /// A `Result` containing either a `GetStateRootHashResult` or a `JsError` in case of an error.
+    ///
+    /// # Errors
+    ///
+    /// Returns a `JsError` if there is an error during the retrieval process.
+    #[wasm_bindgen(js_name = "chain_get_state_root_hash")]
+    pub async fn chain_get_state_root_hash_js_alias(
+        &self,
+        options: Option<GetStateRootHashOptions>,
+    ) -> Result<GetStateRootHashResult, JsError> {
+        self.get_state_root_hash_js_alias(options).await
+    }
+}
+
+impl SDK {
+    /// Retrieves state root hash information based on the provided options.
+    ///
+    /// # Arguments
+    ///
+    /// * `maybe_block_identifier` - An optional `BlockIdentifierInput` for specifying a block identifier.
+    /// * `verbosity` - An optional `Verbosity` level for controlling the output verbosity.
+    /// * `node_address` - An optional string specifying the node address to use for the request.
+    ///
+    /// # Returns
+    ///
+    /// A `Result` containing either a `GetStateRootHashResult` or a `SdkError` in case of an error.
+    ///
+    /// # Errors
+    ///
+    /// Returns a `SdkError` if there is an error during the retrieval process.
+    pub async fn get_state_root_hash(
+        &self,
+        maybe_block_identifier: Option<BlockIdentifierInput>,
+        verbosity: Option<Verbosity>,
+        node_address: Option<String>,
+    ) -> Result<SuccessResponse<_GetStateRootHashResult>, SdkError> {
+        //log("get_state_root_hash!");
+
+        if let Some(BlockIdentifierInput::String(maybe_block_id)) = maybe_block_identifier {
+            get_state_root_hash_cli(
+                &rand::thread_rng().gen::<i64>().to_string(),
+                &self.get_node_address(node_address),
+                self.get_verbosity(verbosity).into(),
+                &maybe_block_id,
+            )
+            .await
+            .map_err(SdkError::from)
+        } else {
+            let maybe_block_identifier =
+                if let Some(BlockIdentifierInput::BlockIdentifier(maybe_block_identifier)) =
+                    maybe_block_identifier
+                {
+                    Some(maybe_block_identifier)
+                } else {
+                    None
+                };
+            get_state_root_hash_lib(
+                JsonRpcId::from(rand::thread_rng().gen::<i64>().to_string()),
+                &self.get_node_address(node_address),
+                self.get_verbosity(verbosity).into(),
+                maybe_block_identifier.map(Into::into),
+            )
+            .await
+            .map_err(SdkError::from)
+        }
+    }
+}
+
\ No newline at end of file diff --git a/docs/api-rust/src/casper_rust_wasm_sdk/sdk/rpcs/get_validator_changes.rs.html b/docs/api-rust/src/casper_rust_wasm_sdk/sdk/rpcs/get_validator_changes.rs.html new file mode 100644 index 000000000..80c72a9c5 --- /dev/null +++ b/docs/api-rust/src/casper_rust_wasm_sdk/sdk/rpcs/get_validator_changes.rs.html @@ -0,0 +1,245 @@ +get_validator_changes.rs - source
1
+2
+3
+4
+5
+6
+7
+8
+9
+10
+11
+12
+13
+14
+15
+16
+17
+18
+19
+20
+21
+22
+23
+24
+25
+26
+27
+28
+29
+30
+31
+32
+33
+34
+35
+36
+37
+38
+39
+40
+41
+42
+43
+44
+45
+46
+47
+48
+49
+50
+51
+52
+53
+54
+55
+56
+57
+58
+59
+60
+61
+62
+63
+64
+65
+66
+67
+68
+69
+70
+71
+72
+73
+74
+75
+76
+77
+78
+79
+80
+81
+82
+83
+84
+85
+86
+87
+88
+89
+90
+91
+92
+93
+94
+95
+96
+97
+98
+99
+100
+101
+102
+103
+104
+105
+106
+107
+108
+109
+110
+111
+112
+113
+114
+115
+116
+117
+118
+119
+120
+121
+122
+
#[cfg(target_arch = "wasm32")]
+use crate::debug::error;
+use crate::{types::verbosity::Verbosity, SDK};
+use casper_client::{
+    get_validator_changes, rpcs::results::GetValidatorChangesResult as _GetValidatorChangesResult,
+    Error, JsonRpcId, SuccessResponse,
+};
+#[cfg(target_arch = "wasm32")]
+use gloo_utils::format::JsValueSerdeExt;
+use rand::Rng;
+#[cfg(target_arch = "wasm32")]
+use serde::{Deserialize, Serialize};
+#[cfg(target_arch = "wasm32")]
+use wasm_bindgen::prelude::*;
+
+/// Wrapper struct for the `GetValidatorChangesResult` from casper_client.
+#[cfg(target_arch = "wasm32")]
+#[derive(Debug, Deserialize, Clone, Serialize)]
+#[wasm_bindgen]
+pub struct GetValidatorChangesResult(_GetValidatorChangesResult);
+
+#[cfg(target_arch = "wasm32")]
+impl From<GetValidatorChangesResult> for _GetValidatorChangesResult {
+    fn from(result: GetValidatorChangesResult) -> Self {
+        result.0
+    }
+}
+
+#[cfg(target_arch = "wasm32")]
+impl From<_GetValidatorChangesResult> for GetValidatorChangesResult {
+    fn from(result: _GetValidatorChangesResult) -> Self {
+        GetValidatorChangesResult(result)
+    }
+}
+
+#[cfg(target_arch = "wasm32")]
+#[wasm_bindgen]
+impl GetValidatorChangesResult {
+    /// Gets the API version as a JsValue.
+    #[wasm_bindgen(getter)]
+    pub fn api_version(&self) -> JsValue {
+        JsValue::from_serde(&self.0.api_version).unwrap()
+    }
+
+    /// Gets the validator changes as a JsValue.
+    #[wasm_bindgen(getter)]
+    pub fn changes(&self) -> JsValue {
+        JsValue::from_serde(&self.0.changes).unwrap()
+    }
+
+    /// Converts the GetValidatorChangesResult to a JsValue.
+    #[wasm_bindgen(js_name = "toJson")]
+    pub fn to_json(&self) -> JsValue {
+        JsValue::from_serde(&self.0).unwrap_or(JsValue::null())
+    }
+}
+
+/// SDK methods for working with validator changes.
+#[cfg(target_arch = "wasm32")]
+#[wasm_bindgen]
+impl SDK {
+    /// Retrieves validator changes using the provided options.
+    ///
+    /// # Arguments
+    ///
+    /// * `verbosity` - An optional `Verbosity` level for controlling the output verbosity.
+    /// * `node_address` - An optional string specifying the node address to use for the request.
+    ///
+    /// # Returns
+    ///
+    /// A `Result` containing either a `GetValidatorChangesResult` or a `JsError` in case of an error.
+    ///
+    /// # Errors
+    ///
+    /// Returns a `JsError` if there is an error during the retrieval process.
+    #[wasm_bindgen(js_name = "get_validator_changes")]
+    pub async fn get_validator_changes_js_alias(
+        &self,
+        verbosity: Option<Verbosity>,
+        node_address: Option<String>,
+    ) -> Result<GetValidatorChangesResult, JsError> {
+        let result = self.get_validator_changes(verbosity, node_address).await;
+        match result {
+            Ok(data) => Ok(data.result.into()),
+            Err(err) => {
+                let err = &format!("Error occurred with {:?}", err);
+                error(err);
+                Err(JsError::new(err))
+            }
+        }
+    }
+}
+
+impl SDK {
+    /// Retrieves validator changes based on the provided options.
+    ///
+    /// # Arguments
+    ///
+    /// * `verbosity` - An optional `Verbosity` level for controlling the output verbosity.
+    /// * `node_address` - An optional string specifying the node address to use for the request.
+    ///
+    /// # Returns
+    ///
+    /// A `Result` containing either a `GetValidatorChangesResult` or an `Error` in case of an error.
+    ///
+    /// # Errors
+    ///
+    /// Returns an `Error` if there is an error during the retrieval process.
+    pub async fn get_validator_changes(
+        &self,
+        verbosity: Option<Verbosity>,
+        node_address: Option<String>,
+    ) -> Result<SuccessResponse<_GetValidatorChangesResult>, Error> {
+        //log("get_validator_changes!");
+        get_validator_changes(
+            JsonRpcId::from(rand::thread_rng().gen::<i64>().to_string()),
+            &self.get_node_address(node_address),
+            self.get_verbosity(verbosity).into(),
+        )
+        .await
+    }
+}
+
\ No newline at end of file diff --git a/docs/api-rust/src/casper_rust_wasm_sdk/sdk/rpcs/list_rpcs.rs.html b/docs/api-rust/src/casper_rust_wasm_sdk/sdk/rpcs/list_rpcs.rs.html new file mode 100644 index 000000000..fee6e50ca --- /dev/null +++ b/docs/api-rust/src/casper_rust_wasm_sdk/sdk/rpcs/list_rpcs.rs.html @@ -0,0 +1,255 @@ +list_rpcs.rs - source
1
+2
+3
+4
+5
+6
+7
+8
+9
+10
+11
+12
+13
+14
+15
+16
+17
+18
+19
+20
+21
+22
+23
+24
+25
+26
+27
+28
+29
+30
+31
+32
+33
+34
+35
+36
+37
+38
+39
+40
+41
+42
+43
+44
+45
+46
+47
+48
+49
+50
+51
+52
+53
+54
+55
+56
+57
+58
+59
+60
+61
+62
+63
+64
+65
+66
+67
+68
+69
+70
+71
+72
+73
+74
+75
+76
+77
+78
+79
+80
+81
+82
+83
+84
+85
+86
+87
+88
+89
+90
+91
+92
+93
+94
+95
+96
+97
+98
+99
+100
+101
+102
+103
+104
+105
+106
+107
+108
+109
+110
+111
+112
+113
+114
+115
+116
+117
+118
+119
+120
+121
+122
+123
+124
+125
+126
+127
+
#[cfg(target_arch = "wasm32")]
+use crate::debug::error;
+use crate::{types::verbosity::Verbosity, SDK};
+use casper_client::{
+    list_rpcs, rpcs::results::ListRpcsResult as _ListRpcsResult, Error, JsonRpcId, SuccessResponse,
+};
+#[cfg(target_arch = "wasm32")]
+use gloo_utils::format::JsValueSerdeExt;
+use rand::Rng;
+#[cfg(target_arch = "wasm32")]
+use serde::{Deserialize, Serialize};
+#[cfg(target_arch = "wasm32")]
+use wasm_bindgen::prelude::*;
+
+/// Wrapper struct for the `ListRpcsResult` from casper_client.
+#[cfg(target_arch = "wasm32")]
+#[derive(Debug, Deserialize, Clone, Serialize)]
+#[wasm_bindgen]
+pub struct ListRpcsResult(_ListRpcsResult);
+
+#[cfg(target_arch = "wasm32")]
+impl From<ListRpcsResult> for _ListRpcsResult {
+    fn from(result: ListRpcsResult) -> Self {
+        result.0
+    }
+}
+
+#[cfg(target_arch = "wasm32")]
+impl From<_ListRpcsResult> for ListRpcsResult {
+    fn from(result: _ListRpcsResult) -> Self {
+        ListRpcsResult(result)
+    }
+}
+
+#[cfg(target_arch = "wasm32")]
+#[wasm_bindgen]
+impl ListRpcsResult {
+    /// Gets the API version as a JsValue.
+    #[wasm_bindgen(getter)]
+    pub fn api_version(&self) -> JsValue {
+        JsValue::from_serde(&self.0.api_version).unwrap()
+    }
+
+    /// Gets the name of the RPC.
+    #[wasm_bindgen(getter)]
+    pub fn name(&self) -> String {
+        self.0.name.clone()
+    }
+
+    /// Gets the schema of the RPC as a JsValue.
+    #[wasm_bindgen(getter)]
+    pub fn schema(&self) -> JsValue {
+        JsValue::from_serde(&self.0.schema).unwrap()
+    }
+
+    /// Converts the ListRpcsResult to a JsValue.
+    #[wasm_bindgen(js_name = "toJson")]
+    pub fn to_json(&self) -> JsValue {
+        JsValue::from_serde(&self.0).unwrap_or(JsValue::null())
+    }
+}
+
+/// SDK methods for listing available RPCs.
+#[cfg(target_arch = "wasm32")]
+#[wasm_bindgen]
+impl SDK {
+    /// Lists available RPCs using the provided options.
+    ///
+    /// # Arguments
+    ///
+    /// * `verbosity` - An optional `Verbosity` level for controlling the output verbosity.
+    /// * `node_address` - An optional string specifying the node address to use for the request.
+    ///
+    /// # Returns
+    ///
+    /// A `Result` containing either a `ListRpcsResult` or a `JsError` in case of an error.
+    ///
+    /// # Errors
+    ///
+    /// Returns a `JsError` if there is an error during the listing process.
+    #[wasm_bindgen(js_name = "list_rpcs")]
+    pub async fn list_rpcs_js_alias(
+        &self,
+        verbosity: Option<Verbosity>,
+        node_address: Option<String>,
+    ) -> Result<ListRpcsResult, JsError> {
+        let result = self.list_rpcs(verbosity, node_address).await;
+        match result {
+            Ok(data) => Ok(data.result.into()),
+            Err(err) => {
+                let err = &format!("Error occurred with {:?}", err);
+                error(err);
+                Err(JsError::new(err))
+            }
+        }
+    }
+}
+
+impl SDK {
+    /// Lists available RPCs based on the provided options.
+    ///
+    /// # Arguments
+    ///
+    /// * `verbosity` - An optional `Verbosity` level for controlling the output verbosity.
+    /// * `node_address` - An optional string specifying the node address to use for the request.
+    ///
+    /// # Returns
+    ///
+    /// A `Result` containing either a `ListRpcsResult` or an `Error` in case of an error.
+    ///
+    /// # Errors
+    ///
+    /// Returns an `Error` if there is an error during the listing process.
+    pub async fn list_rpcs(
+        &self,
+        verbosity: Option<Verbosity>,
+        node_address: Option<String>,
+    ) -> Result<SuccessResponse<_ListRpcsResult>, Error> {
+        //log("list_rpcs!");
+        list_rpcs(
+            JsonRpcId::from(rand::thread_rng().gen::<i64>().to_string()),
+            &self.get_node_address(node_address),
+            self.get_verbosity(verbosity).into(),
+        )
+        .await
+    }
+}
+
\ No newline at end of file diff --git a/docs/api-rust/src/casper_rust_wasm_sdk/sdk/rpcs/mod.rs.html b/docs/api-rust/src/casper_rust_wasm_sdk/sdk/rpcs/mod.rs.html new file mode 100644 index 000000000..73daf5a3c --- /dev/null +++ b/docs/api-rust/src/casper_rust_wasm_sdk/sdk/rpcs/mod.rs.html @@ -0,0 +1,39 @@ +mod.rs - source
1
+2
+3
+4
+5
+6
+7
+8
+9
+10
+11
+12
+13
+14
+15
+16
+17
+18
+19
+
pub mod get_account;
+pub mod get_auction_info;
+pub mod get_balance;
+pub mod get_block;
+pub mod get_block_transfers;
+pub mod get_chainspec;
+pub mod get_deploy;
+pub mod get_dictionary_item;
+pub mod get_era_info;
+pub mod get_era_summary;
+pub mod get_node_status;
+pub mod get_peers;
+pub mod get_state_root_hash;
+pub mod get_validator_changes;
+pub mod list_rpcs;
+pub mod put_deploy;
+pub mod query_balance;
+pub mod query_global_state;
+pub mod speculative_exec;
+
\ No newline at end of file diff --git a/docs/api-rust/src/casper_rust_wasm_sdk/sdk/rpcs/put_deploy.rs.html b/docs/api-rust/src/casper_rust_wasm_sdk/sdk/rpcs/put_deploy.rs.html new file mode 100644 index 000000000..580e062db --- /dev/null +++ b/docs/api-rust/src/casper_rust_wasm_sdk/sdk/rpcs/put_deploy.rs.html @@ -0,0 +1,197 @@ +put_deploy.rs - source
1
+2
+3
+4
+5
+6
+7
+8
+9
+10
+11
+12
+13
+14
+15
+16
+17
+18
+19
+20
+21
+22
+23
+24
+25
+26
+27
+28
+29
+30
+31
+32
+33
+34
+35
+36
+37
+38
+39
+40
+41
+42
+43
+44
+45
+46
+47
+48
+49
+50
+51
+52
+53
+54
+55
+56
+57
+58
+59
+60
+61
+62
+63
+64
+65
+66
+67
+68
+69
+70
+71
+72
+73
+74
+75
+76
+77
+78
+79
+80
+81
+82
+83
+84
+85
+86
+87
+88
+89
+90
+91
+92
+93
+94
+95
+96
+97
+98
+
use crate::types::deploy::Deploy;
+#[cfg(target_arch = "wasm32")]
+use crate::{debug::error, deploy::deploy::PutDeployResult};
+use crate::{types::verbosity::Verbosity, SDK};
+use casper_client::{
+    put_deploy, rpcs::results::PutDeployResult as _PutDeployResult, Error, JsonRpcId,
+    SuccessResponse,
+};
+use rand::Rng;
+#[cfg(target_arch = "wasm32")]
+use wasm_bindgen::prelude::*;
+
+/// SDK methods for putting a deploy.
+#[cfg(target_arch = "wasm32")]
+#[wasm_bindgen]
+impl SDK {
+    /// Puts a deploy using the provided options.
+    ///
+    /// # Arguments
+    ///
+    /// * `deploy` - The `Deploy` object to be sent.
+    /// * `verbosity` - An optional `Verbosity` level for controlling the output verbosity.
+    /// * `node_address` - An optional string specifying the node address to use for the request.
+    ///
+    /// # Returns
+    ///
+    /// A `Result` containing either a `PutDeployResult` or a `JsError` in case of an error.
+    ///
+    /// # Errors
+    ///
+    /// Returns a `JsError` if there is an error during the deploy process.
+    #[wasm_bindgen(js_name = "put_deploy")]
+    pub async fn put_deploy_js_alias(
+        &self,
+        deploy: Deploy,
+        verbosity: Option<Verbosity>,
+        node_address: Option<String>,
+    ) -> Result<PutDeployResult, JsError> {
+        let result = self
+            .put_deploy(deploy.into(), verbosity, node_address)
+            .await;
+        match result {
+            Ok(data) => Ok(data.result.into()),
+            Err(err) => {
+                let err = &format!("Error occurred with {:?}", err);
+                error(err);
+                Err(JsError::new(err))
+            }
+        }
+    }
+
+    /// JS Alias for `put_deploy_js_alias`.
+    ///
+    /// This function provides an alternative name for `put_deploy_js_alias`.
+    #[wasm_bindgen(js_name = "account_put_deploy")]
+    pub async fn account_put_deploy_js_alias(
+        &self,
+        deploy: Deploy,
+        verbosity: Option<Verbosity>,
+        node_address: Option<String>,
+    ) -> Result<PutDeployResult, JsError> {
+        self.put_deploy_js_alias(deploy, verbosity, node_address)
+            .await
+    }
+}
+
+impl SDK {
+    /// Puts a deploy based on the provided options.
+    ///
+    /// # Arguments
+    ///
+    /// * `deploy` - The `Deploy` object to be sent.
+    /// * `verbosity` - An optional `Verbosity` level for controlling the output verbosity.
+    /// * `node_address` - An optional string specifying the node address to use for the request.
+    ///
+    /// # Returns
+    ///
+    /// A `Result` containing either a `PutDeployResult` or an `Error` in case of an error.
+    ///
+    /// # Errors
+    ///
+    /// Returns an `Error` if there is an error during the deploy process.
+    pub async fn put_deploy(
+        &self,
+        deploy: Deploy,
+        verbosity: Option<Verbosity>,
+        node_address: Option<String>,
+    ) -> Result<SuccessResponse<_PutDeployResult>, Error> {
+        //log("account_put_deploy!");
+        put_deploy(
+            JsonRpcId::from(rand::thread_rng().gen::<i64>().to_string()),
+            &self.get_node_address(node_address),
+            self.get_verbosity(verbosity).into(),
+            deploy.into(),
+        )
+        .await
+    }
+}
+
\ No newline at end of file diff --git a/docs/api-rust/src/casper_rust_wasm_sdk/sdk/rpcs/query_balance.rs.html b/docs/api-rust/src/casper_rust_wasm_sdk/sdk/rpcs/query_balance.rs.html new file mode 100644 index 000000000..b1e348f17 --- /dev/null +++ b/docs/api-rust/src/casper_rust_wasm_sdk/sdk/rpcs/query_balance.rs.html @@ -0,0 +1,567 @@ +query_balance.rs - source
1
+2
+3
+4
+5
+6
+7
+8
+9
+10
+11
+12
+13
+14
+15
+16
+17
+18
+19
+20
+21
+22
+23
+24
+25
+26
+27
+28
+29
+30
+31
+32
+33
+34
+35
+36
+37
+38
+39
+40
+41
+42
+43
+44
+45
+46
+47
+48
+49
+50
+51
+52
+53
+54
+55
+56
+57
+58
+59
+60
+61
+62
+63
+64
+65
+66
+67
+68
+69
+70
+71
+72
+73
+74
+75
+76
+77
+78
+79
+80
+81
+82
+83
+84
+85
+86
+87
+88
+89
+90
+91
+92
+93
+94
+95
+96
+97
+98
+99
+100
+101
+102
+103
+104
+105
+106
+107
+108
+109
+110
+111
+112
+113
+114
+115
+116
+117
+118
+119
+120
+121
+122
+123
+124
+125
+126
+127
+128
+129
+130
+131
+132
+133
+134
+135
+136
+137
+138
+139
+140
+141
+142
+143
+144
+145
+146
+147
+148
+149
+150
+151
+152
+153
+154
+155
+156
+157
+158
+159
+160
+161
+162
+163
+164
+165
+166
+167
+168
+169
+170
+171
+172
+173
+174
+175
+176
+177
+178
+179
+180
+181
+182
+183
+184
+185
+186
+187
+188
+189
+190
+191
+192
+193
+194
+195
+196
+197
+198
+199
+200
+201
+202
+203
+204
+205
+206
+207
+208
+209
+210
+211
+212
+213
+214
+215
+216
+217
+218
+219
+220
+221
+222
+223
+224
+225
+226
+227
+228
+229
+230
+231
+232
+233
+234
+235
+236
+237
+238
+239
+240
+241
+242
+243
+244
+245
+246
+247
+248
+249
+250
+251
+252
+253
+254
+255
+256
+257
+258
+259
+260
+261
+262
+263
+264
+265
+266
+267
+268
+269
+270
+271
+272
+273
+274
+275
+276
+277
+278
+279
+280
+281
+282
+283
+
#[cfg(target_arch = "wasm32")]
+use crate::types::digest::Digest;
+use crate::types::{
+    global_state_identifier::GlobalStateIdentifier, purse_identifier::PurseIdentifier,
+};
+use crate::{
+    debug::error,
+    types::{sdk_error::SdkError, verbosity::Verbosity},
+    SDK,
+};
+use casper_client::cli::parse_purse_identifier;
+use casper_client::{
+    cli::query_balance as query_balance_cli, query_balance as query_balance_lib,
+    rpcs::results::QueryBalanceResult as _QueryBalanceResult, JsonRpcId, SuccessResponse,
+};
+#[cfg(target_arch = "wasm32")]
+use gloo_utils::format::JsValueSerdeExt;
+use rand::Rng;
+#[cfg(target_arch = "wasm32")]
+use serde::{Deserialize, Serialize};
+#[cfg(target_arch = "wasm32")]
+use wasm_bindgen::prelude::*;
+
+// Define a struct to wrap the QueryBalanceResult
+#[cfg(target_arch = "wasm32")]
+#[derive(Debug, Deserialize, Clone, Serialize)]
+#[wasm_bindgen]
+pub struct QueryBalanceResult(_QueryBalanceResult);
+
+#[cfg(target_arch = "wasm32")]
+impl From<QueryBalanceResult> for _QueryBalanceResult {
+    fn from(result: QueryBalanceResult) -> Self {
+        result.0
+    }
+}
+
+#[cfg(target_arch = "wasm32")]
+impl From<_QueryBalanceResult> for QueryBalanceResult {
+    fn from(result: _QueryBalanceResult) -> Self {
+        QueryBalanceResult(result)
+    }
+}
+
+#[cfg(target_arch = "wasm32")]
+#[wasm_bindgen]
+impl QueryBalanceResult {
+    /// Gets the API version as a JsValue.
+    #[wasm_bindgen(getter)]
+    pub fn api_version(&self) -> JsValue {
+        JsValue::from_serde(&self.0.api_version).unwrap()
+    }
+
+    /// Gets the balance as a JsValue.
+    #[wasm_bindgen(getter)]
+    pub fn balance(&self) -> JsValue {
+        JsValue::from_serde(&self.0.balance).unwrap()
+    }
+
+    /// Converts the QueryBalanceResult to a JsValue.
+    #[wasm_bindgen(js_name = "toJson")]
+    pub fn to_json(&self) -> JsValue {
+        JsValue::from_serde(&self.0).unwrap_or(JsValue::null())
+    }
+}
+
+/// Options for the `query_balance` method.
+#[derive(Debug, Deserialize, Clone, Default, Serialize)]
+#[cfg(target_arch = "wasm32")]
+#[wasm_bindgen(js_name = "queryBalanceOptions", getter_with_clone)]
+pub struct QueryBalanceOptions {
+    pub purse_identifier_as_string: Option<String>,
+    pub purse_identifier: Option<PurseIdentifier>,
+    pub global_state_identifier: Option<GlobalStateIdentifier>,
+    pub state_root_hash_as_string: Option<String>,
+    pub state_root_hash: Option<Digest>,
+    pub maybe_block_id_as_string: Option<String>,
+    pub node_address: Option<String>,
+    pub verbosity: Option<Verbosity>,
+}
+
+#[cfg(target_arch = "wasm32")]
+#[wasm_bindgen]
+impl SDK {
+    /// Parses query balance options from a JsValue.
+    ///
+    /// # Arguments
+    ///
+    /// * `options` - A JsValue containing query balance options to be parsed.
+    ///
+    /// # Returns
+    ///
+    /// Parsed query balance options as a `QueryBalanceOptions` struct.
+    #[wasm_bindgen(js_name = "query_balance_options")]
+    pub fn query_balance_options(&self, options: JsValue) -> QueryBalanceOptions {
+        let options_result = options.into_serde::<QueryBalanceOptions>();
+        match options_result {
+            Ok(options) => options,
+            Err(err) => {
+                error(&format!("Error deserializing options: {:?}", err));
+                QueryBalanceOptions::default()
+            }
+        }
+    }
+
+    /// Retrieves balance information using the provided options.
+    ///
+    /// # Arguments
+    ///
+    /// * `options` - An optional `QueryBalanceOptions` struct containing retrieval options.
+    ///
+    /// # Returns
+    ///
+    /// A `Result` containing either a `QueryBalanceResult` or a `JsError` in case of an error.
+    ///
+    /// # Errors
+    ///
+    /// Returns a `JsError` if there is an error during the retrieval process.
+    #[wasm_bindgen(js_name = "query_balance")]
+    pub async fn query_balance_js_alias(
+        &self,
+        options: Option<QueryBalanceOptions>,
+    ) -> Result<QueryBalanceResult, JsError> {
+        let QueryBalanceOptions {
+            global_state_identifier,
+            purse_identifier_as_string,
+            purse_identifier,
+            state_root_hash_as_string,
+            state_root_hash,
+            maybe_block_id_as_string,
+            verbosity,
+            node_address,
+        } = options.unwrap_or_default();
+
+        let result = if let Some(hash) = state_root_hash {
+            self.query_balance(
+                global_state_identifier,
+                purse_identifier_as_string,
+                purse_identifier.into(),
+                Some(hash.to_string()),
+                None,
+                verbosity,
+                node_address,
+            )
+            .await
+        } else if let Some(hash) = state_root_hash_as_string {
+            self.query_balance(
+                global_state_identifier,
+                purse_identifier_as_string,
+                purse_identifier.into(),
+                Some(hash.to_string()),
+                None,
+                verbosity,
+                node_address,
+            )
+            .await
+        } else if let Some(maybe_block_id_as_string) = maybe_block_id_as_string {
+            self.query_balance(
+                global_state_identifier,
+                purse_identifier_as_string,
+                purse_identifier.into(),
+                None,
+                Some(maybe_block_id_as_string),
+                verbosity,
+                node_address,
+            )
+            .await
+        } else {
+            self.query_balance(
+                global_state_identifier,
+                purse_identifier_as_string,
+                purse_identifier.into(),
+                None,
+                None,
+                verbosity,
+                node_address,
+            )
+            .await
+        };
+        match result {
+            Ok(data) => Ok(data.result.into()),
+            Err(err) => {
+                let err = &format!("Error occurred with {:?}", err);
+                error(err);
+                Err(JsError::new(err))
+            }
+        }
+    }
+}
+
+impl SDK {
+    /// Retrieves balance information based on the provided options.
+    ///
+    /// # Arguments
+    ///
+    /// * `maybe_global_state_identifier` - An optional `GlobalStateIdentifier` for specifying global state.
+    /// * `purse_identifier_as_string` - An optional string representing a purse identifier.
+    /// * `purse_identifier` - An optional `PurseIdentifier`.
+    /// * `state_root_hash` - An optional string representing a state root hash.
+    /// * `maybe_block_id` - An optional string representing a block identifier.
+    /// * `verbosity` - An optional `Verbosity` level for controlling the output verbosity.
+    /// * `node_address` - An optional string specifying the node address to use for the request.
+    ///
+    /// # Returns
+    ///
+    /// A `Result` containing either a `SuccessResponse<_QueryBalanceResult>` or a `SdkError` in case of an error.
+    ///
+    /// # Errors
+    ///
+    /// Returns a `SdkError` if there is an error during the retrieval process.
+    #[allow(clippy::too_many_arguments)]
+    pub async fn query_balance(
+        &self,
+        maybe_global_state_identifier: Option<GlobalStateIdentifier>,
+        purse_identifier_as_string: Option<String>,
+        purse_identifier: Option<PurseIdentifier>,
+        state_root_hash: Option<String>,
+        maybe_block_id: Option<String>,
+        verbosity: Option<Verbosity>,
+        node_address: Option<String>,
+    ) -> Result<SuccessResponse<_QueryBalanceResult>, SdkError> {
+        //log("query_balance!");
+
+        let purse_identifier: PurseIdentifier = if let Some(purse_identifier) = purse_identifier {
+            purse_identifier
+        } else if let Some(purse_id) = purse_identifier_as_string.clone() {
+            match parse_purse_identifier(&purse_id) {
+                Ok(parsed) => parsed.into(),
+                Err(err) => {
+                    error(&err.to_string());
+                    return Err(SdkError::FailedToParsePurseIdentifier);
+                }
+            }
+        } else {
+            let err = "Error: Missing purse identifier";
+            error(err);
+            return Err(SdkError::FailedToParsePurseIdentifier);
+        };
+
+        if let Some(maybe_global_state_identifier) = maybe_global_state_identifier {
+            query_balance_lib(
+                JsonRpcId::from(rand::thread_rng().gen::<i64>().to_string()),
+                &self.get_node_address(node_address),
+                self.get_verbosity(verbosity).into(),
+                Some(maybe_global_state_identifier.into()),
+                purse_identifier.into(),
+            )
+            .await
+            .map_err(SdkError::from)
+        } else if maybe_global_state_identifier.is_none() {
+            query_balance_lib(
+                JsonRpcId::from(rand::thread_rng().gen::<i64>().to_string()),
+                &self.get_node_address(node_address),
+                self.get_verbosity(verbosity).into(),
+                None,
+                purse_identifier.into(),
+            )
+            .await
+            .map_err(SdkError::from)
+        } else if let Some(state_root_hash) = state_root_hash {
+            query_balance_cli(
+                &rand::thread_rng().gen::<i64>().to_string(),
+                &self.get_node_address(node_address),
+                self.get_verbosity(verbosity).into(),
+                "",
+                &state_root_hash,
+                &purse_identifier.to_string(),
+            )
+            .await
+            .map_err(SdkError::from)
+        } else {
+            query_balance_cli(
+                &rand::thread_rng().gen::<i64>().to_string(),
+                &self.get_node_address(node_address),
+                self.get_verbosity(verbosity).into(),
+                &maybe_block_id.unwrap_or_default(),
+                "",
+                &purse_identifier.to_string(),
+            )
+            .await
+            .map_err(SdkError::from)
+        }
+    }
+}
+
\ No newline at end of file diff --git a/docs/api-rust/src/casper_rust_wasm_sdk/sdk/rpcs/query_global_state.rs.html b/docs/api-rust/src/casper_rust_wasm_sdk/sdk/rpcs/query_global_state.rs.html new file mode 100644 index 000000000..2a238ab8a --- /dev/null +++ b/docs/api-rust/src/casper_rust_wasm_sdk/sdk/rpcs/query_global_state.rs.html @@ -0,0 +1,805 @@ +query_global_state.rs - source
1
+2
+3
+4
+5
+6
+7
+8
+9
+10
+11
+12
+13
+14
+15
+16
+17
+18
+19
+20
+21
+22
+23
+24
+25
+26
+27
+28
+29
+30
+31
+32
+33
+34
+35
+36
+37
+38
+39
+40
+41
+42
+43
+44
+45
+46
+47
+48
+49
+50
+51
+52
+53
+54
+55
+56
+57
+58
+59
+60
+61
+62
+63
+64
+65
+66
+67
+68
+69
+70
+71
+72
+73
+74
+75
+76
+77
+78
+79
+80
+81
+82
+83
+84
+85
+86
+87
+88
+89
+90
+91
+92
+93
+94
+95
+96
+97
+98
+99
+100
+101
+102
+103
+104
+105
+106
+107
+108
+109
+110
+111
+112
+113
+114
+115
+116
+117
+118
+119
+120
+121
+122
+123
+124
+125
+126
+127
+128
+129
+130
+131
+132
+133
+134
+135
+136
+137
+138
+139
+140
+141
+142
+143
+144
+145
+146
+147
+148
+149
+150
+151
+152
+153
+154
+155
+156
+157
+158
+159
+160
+161
+162
+163
+164
+165
+166
+167
+168
+169
+170
+171
+172
+173
+174
+175
+176
+177
+178
+179
+180
+181
+182
+183
+184
+185
+186
+187
+188
+189
+190
+191
+192
+193
+194
+195
+196
+197
+198
+199
+200
+201
+202
+203
+204
+205
+206
+207
+208
+209
+210
+211
+212
+213
+214
+215
+216
+217
+218
+219
+220
+221
+222
+223
+224
+225
+226
+227
+228
+229
+230
+231
+232
+233
+234
+235
+236
+237
+238
+239
+240
+241
+242
+243
+244
+245
+246
+247
+248
+249
+250
+251
+252
+253
+254
+255
+256
+257
+258
+259
+260
+261
+262
+263
+264
+265
+266
+267
+268
+269
+270
+271
+272
+273
+274
+275
+276
+277
+278
+279
+280
+281
+282
+283
+284
+285
+286
+287
+288
+289
+290
+291
+292
+293
+294
+295
+296
+297
+298
+299
+300
+301
+302
+303
+304
+305
+306
+307
+308
+309
+310
+311
+312
+313
+314
+315
+316
+317
+318
+319
+320
+321
+322
+323
+324
+325
+326
+327
+328
+329
+330
+331
+332
+333
+334
+335
+336
+337
+338
+339
+340
+341
+342
+343
+344
+345
+346
+347
+348
+349
+350
+351
+352
+353
+354
+355
+356
+357
+358
+359
+360
+361
+362
+363
+364
+365
+366
+367
+368
+369
+370
+371
+372
+373
+374
+375
+376
+377
+378
+379
+380
+381
+382
+383
+384
+385
+386
+387
+388
+389
+390
+391
+392
+393
+394
+395
+396
+397
+398
+399
+400
+401
+402
+
use crate::debug::error;
+use crate::types::digest::Digest;
+use crate::types::global_state_identifier::GlobalStateIdentifier;
+use crate::{
+    types::{key::Key, path::Path, sdk_error::SdkError, verbosity::Verbosity},
+    SDK,
+};
+use casper_client::{
+    cli::query_global_state as query_global_state_cli,
+    query_global_state as query_global_state_lib,
+    rpcs::results::QueryGlobalStateResult as _QueryGlobalStateResult, JsonRpcId, SuccessResponse,
+};
+#[cfg(target_arch = "wasm32")]
+use gloo_utils::format::JsValueSerdeExt;
+use rand::Rng;
+use serde::{Deserialize, Serialize};
+use wasm_bindgen::prelude::*;
+
+// Define a struct to wrap the QueryGlobalStateResult
+#[derive(Debug, Deserialize, Clone, Serialize)]
+#[wasm_bindgen]
+pub struct QueryGlobalStateResult(_QueryGlobalStateResult);
+
+impl From<QueryGlobalStateResult> for _QueryGlobalStateResult {
+    fn from(result: QueryGlobalStateResult) -> Self {
+        result.0
+    }
+}
+
+impl From<_QueryGlobalStateResult> for QueryGlobalStateResult {
+    fn from(result: _QueryGlobalStateResult) -> Self {
+        QueryGlobalStateResult(result)
+    }
+}
+
+#[cfg(target_arch = "wasm32")]
+#[wasm_bindgen]
+impl QueryGlobalStateResult {
+    /// Gets the API version as a JsValue.
+    #[wasm_bindgen(getter)]
+    pub fn api_version(&self) -> JsValue {
+        JsValue::from_serde(&self.0.api_version).unwrap()
+    }
+
+    /// Gets the block header as a JsValue.
+    #[wasm_bindgen(getter)]
+    pub fn block_header(&self) -> JsValue {
+        JsValue::from_serde(&self.0.block_header).unwrap()
+    }
+
+    /// Gets the stored value as a JsValue.
+    #[wasm_bindgen(getter)]
+    pub fn stored_value(&self) -> JsValue {
+        JsValue::from_serde(&self.0.stored_value).unwrap()
+    }
+
+    /// Gets the Merkle proof as a string.
+    #[wasm_bindgen(getter)]
+    pub fn merkle_proof(&self) -> String {
+        self.0.merkle_proof.clone()
+    }
+
+    /// Converts the QueryGlobalStateResult to a JsValue.
+    #[wasm_bindgen(js_name = "toJson")]
+    pub fn to_json(&self) -> JsValue {
+        JsValue::from_serde(&self.0).unwrap_or(JsValue::null())
+    }
+}
+
+/// Options for the `query_global_state` method.
+#[derive(Debug, Deserialize, Clone, Default, Serialize)]
+#[wasm_bindgen(js_name = "queryGlobalStateOptions", getter_with_clone)]
+pub struct QueryGlobalStateOptions {
+    pub global_state_identifier: Option<GlobalStateIdentifier>,
+    pub state_root_hash_as_string: Option<String>,
+    pub state_root_hash: Option<Digest>,
+    pub maybe_block_id_as_string: Option<String>,
+    pub key_as_string: Option<String>,
+    pub key: Option<Key>,
+    pub path_as_string: Option<String>,
+    pub path: Option<Path>,
+    pub node_address: Option<String>,
+    pub verbosity: Option<Verbosity>,
+}
+
+#[cfg(target_arch = "wasm32")]
+#[wasm_bindgen]
+impl SDK {
+    /// Parses query global state options from a JsValue.
+    ///
+    /// # Arguments
+    ///
+    /// * `options` - A JsValue containing query global state options to be parsed.
+    ///
+    /// # Returns
+    ///
+    /// Parsed query global state options as a `QueryGlobalStateOptions` struct.
+    #[wasm_bindgen(js_name = "query_global_state_options")]
+    pub fn query_global_state_options(&self, options: JsValue) -> QueryGlobalStateOptions {
+        let options_result = options.into_serde::<QueryGlobalStateOptions>();
+        match options_result {
+            Ok(options) => options,
+            Err(err) => {
+                error(&format!("Error deserializing options: {:?}", err));
+                QueryGlobalStateOptions::default()
+            }
+        }
+    }
+
+    /// Retrieves global state information using the provided options.
+    ///
+    /// # Arguments
+    ///
+    /// * `options` - An optional `QueryGlobalStateOptions` struct containing retrieval options.
+    ///
+    /// # Returns
+    ///
+    /// A `Result` containing either a `QueryGlobalStateResult` or a `JsError` in case of an error.
+    ///
+    /// # Errors
+    ///
+    /// Returns a `JsError` if there is an error during the retrieval process.
+    #[wasm_bindgen(js_name = "query_global_state")]
+    pub async fn query_global_state_js_alias(
+        &self,
+        options: Option<QueryGlobalStateOptions>,
+    ) -> Result<QueryGlobalStateResult, JsError> {
+        match self.query_global_state_js_alias_params(options) {
+            Ok(params) => {
+                let result = self.query_global_state(params).await;
+                match result {
+                    Ok(data) => Ok(data.result.into()),
+                    Err(err) => {
+                        let err = &format!("Error occurred with {:?}", err);
+                        error(err);
+                        Err(JsError::new(err))
+                    }
+                }
+            }
+            Err(err) => {
+                let err = &format!("Error building parameters: {:?}", err);
+                error(err);
+                Err(JsError::new(err))
+            }
+        }
+    }
+}
+
+/// Enum to represent input for KeyIdentifier.
+#[derive(Debug, Clone)]
+pub enum KeyIdentifierInput {
+    Key(Key),
+    String(String),
+}
+
+/// Enum to represent input for PathIdentifier.
+#[derive(Debug, Clone)]
+pub enum PathIdentifierInput {
+    Path(Path),
+    String(String),
+}
+
+/// Struct to store parameters for querying global state.
+#[derive(Debug)]
+pub struct QueryGlobalStateParams {
+    pub key: KeyIdentifierInput,
+    pub path: Option<PathIdentifierInput>,
+    pub maybe_global_state_identifier: Option<GlobalStateIdentifier>,
+    pub state_root_hash: Option<String>,
+    pub maybe_block_id: Option<String>,
+    pub node_address: Option<String>,
+    pub verbosity: Option<Verbosity>,
+}
+
+impl SDK {
+    /// Builds parameters for querying global state based on the provided options.
+    ///
+    /// # Arguments
+    ///
+    /// * `options` - An optional `QueryGlobalStateOptions` struct containing retrieval options.
+    ///
+    /// # Returns
+    ///
+    /// A `Result` containing either a `QueryGlobalStateParams` struct or a `SdkError` in case of an error.
+    pub fn query_global_state_js_alias_params(
+        &self,
+        options: Option<QueryGlobalStateOptions>,
+    ) -> Result<QueryGlobalStateParams, SdkError> {
+        let QueryGlobalStateOptions {
+            global_state_identifier,
+            state_root_hash_as_string,
+            state_root_hash,
+            maybe_block_id_as_string,
+            key_as_string,
+            key,
+            path_as_string,
+            path,
+            verbosity,
+            node_address,
+        } = options.unwrap_or_default();
+
+        let key = if let Some(key) = key {
+            Some(KeyIdentifierInput::Key(key))
+        } else if let Some(key_as_string) = key_as_string {
+            Some(KeyIdentifierInput::String(key_as_string))
+        } else {
+            let err_msg = "Error: Missing Key as string or Key".to_string();
+            error(&err_msg);
+            return Err(SdkError::InvalidArgument {
+                context: "query_global_state",
+                error: err_msg,
+            });
+        };
+
+        let maybe_path = if let Some(path) = path {
+            Some(PathIdentifierInput::Path(path))
+        } else if let Some(path_str) = path_as_string {
+            if path_str.is_empty() {
+                None
+            } else {
+                Some(PathIdentifierInput::String(path_str))
+            }
+        } else {
+            None
+        };
+
+        let query_params = if let Some(hash) = state_root_hash {
+            let state_root_hash_str = hash.to_string();
+            QueryGlobalStateParams {
+                key: key.unwrap(),
+                path: maybe_path.clone(),
+                maybe_global_state_identifier: global_state_identifier.clone(),
+                state_root_hash: if state_root_hash_str.is_empty() {
+                    None
+                } else {
+                    Some(state_root_hash_str)
+                },
+                maybe_block_id: None,
+                verbosity,
+                node_address,
+            }
+        } else if let Some(hash) = state_root_hash_as_string {
+            let state_root_hash_str = hash.to_string();
+            QueryGlobalStateParams {
+                key: key.unwrap(),
+                path: maybe_path.clone(),
+                maybe_global_state_identifier: global_state_identifier.clone(),
+                state_root_hash: if state_root_hash_str.is_empty() {
+                    None
+                } else {
+                    Some(state_root_hash_str)
+                },
+                maybe_block_id: None,
+                verbosity,
+                node_address,
+            }
+        } else if let Some(maybe_block_id_as_string) = maybe_block_id_as_string {
+            QueryGlobalStateParams {
+                key: key.unwrap(),
+                path: maybe_path.clone(),
+                maybe_global_state_identifier: global_state_identifier.clone(),
+                state_root_hash: None,
+                maybe_block_id: Some(maybe_block_id_as_string),
+                verbosity,
+                node_address,
+            }
+        } else {
+            QueryGlobalStateParams {
+                key: key.unwrap(),
+                path: maybe_path.clone(),
+                maybe_global_state_identifier: global_state_identifier.clone(),
+                state_root_hash: None,
+                maybe_block_id: None,
+                verbosity,
+                node_address,
+            }
+        };
+        Ok(query_params)
+    }
+
+    /// Retrieves global state information based on the provided parameters.
+    ///
+    /// # Arguments
+    ///
+    /// * `query_params` - A `QueryGlobalStateParams` struct containing query parameters.
+    ///
+    /// # Returns
+    ///
+    /// A `Result` containing either a `SuccessResponse<_QueryGlobalStateResult>` or a `SdkError` in case of an error.
+    pub async fn query_global_state(
+        &self,
+        query_params: QueryGlobalStateParams,
+    ) -> Result<SuccessResponse<_QueryGlobalStateResult>, SdkError> {
+        //log("query_global_state!");
+
+        let QueryGlobalStateParams {
+            key,
+            path,
+            maybe_global_state_identifier,
+            state_root_hash,
+            maybe_block_id,
+            verbosity,
+            node_address,
+        } = query_params;
+
+        let key = match key {
+            KeyIdentifierInput::Key(key) => Some(key),
+            KeyIdentifierInput::String(key_string) => match Key::from_formatted_str(&key_string) {
+                Ok(key) => Some(key),
+                Err(_) => None,
+            },
+        };
+
+        if key.is_none() {
+            let err = "Error: Missing key from formatted string".to_string();
+            error(&err);
+            return Err(SdkError::InvalidArgument {
+                context: "query_global_state",
+                error: err,
+            });
+        }
+
+        let path = if let Some(path) = path {
+            let path = match path {
+                PathIdentifierInput::Path(path) => path,
+                PathIdentifierInput::String(path_string) => Path::from(path_string),
+            };
+            Some(path)
+        } else {
+            None
+        };
+
+        let path_str: String = match path.clone() {
+            Some(p) => p.to_string(),
+            None => String::new(),
+        };
+        if let Some(maybe_global_state_identifier) = maybe_global_state_identifier {
+            query_global_state_lib(
+                JsonRpcId::from(rand::thread_rng().gen::<i64>().to_string()),
+                &self.get_node_address(node_address),
+                self.get_verbosity(verbosity).into(),
+                Some(maybe_global_state_identifier.into()),
+                key.unwrap().into(),
+                match path {
+                    Some(path) if path.is_empty() => Vec::new(),
+                    Some(path) => path.into(),
+                    None => Vec::new(),
+                },
+            )
+            .await
+            .map_err(SdkError::from)
+        } else if let Some(state_root_hash) = state_root_hash {
+            query_global_state_cli(
+                &rand::thread_rng().gen::<i64>().to_string(),
+                &self.get_node_address(node_address),
+                self.get_verbosity(verbosity).into(),
+                "",
+                &state_root_hash,
+                &key.unwrap().to_formatted_string(),
+                &path_str,
+            )
+            .await
+            .map_err(SdkError::from)
+        } else if let Some(maybe_block_id) = maybe_block_id {
+            query_global_state_cli(
+                &rand::thread_rng().gen::<i64>().to_string(),
+                &self.get_node_address(node_address),
+                self.get_verbosity(verbosity).into(),
+                &maybe_block_id,
+                "",
+                &key.unwrap().to_formatted_string(),
+                &path_str,
+            )
+            .await
+            .map_err(SdkError::from)
+        } else {
+            let state_root_hash: Digest = self
+                .get_state_root_hash(
+                    None,
+                    None,
+                    Some(self.get_node_address(node_address.clone())),
+                )
+                .await
+                .unwrap()
+                .result
+                .state_root_hash
+                .unwrap()
+                .into();
+            query_global_state_cli(
+                &rand::thread_rng().gen::<i64>().to_string(),
+                &self.get_node_address(node_address),
+                self.get_verbosity(verbosity).into(),
+                "",
+                &state_root_hash.to_string(),
+                &key.unwrap().to_formatted_string(),
+                &path_str,
+            )
+            .await
+            .map_err(SdkError::from)
+        }
+    }
+}
+
\ No newline at end of file diff --git a/docs/api-rust/src/casper_rust_wasm_sdk/sdk/rpcs/speculative_exec.rs.html b/docs/api-rust/src/casper_rust_wasm_sdk/sdk/rpcs/speculative_exec.rs.html new file mode 100644 index 000000000..0ff62e89d --- /dev/null +++ b/docs/api-rust/src/casper_rust_wasm_sdk/sdk/rpcs/speculative_exec.rs.html @@ -0,0 +1,425 @@ +speculative_exec.rs - source
1
+2
+3
+4
+5
+6
+7
+8
+9
+10
+11
+12
+13
+14
+15
+16
+17
+18
+19
+20
+21
+22
+23
+24
+25
+26
+27
+28
+29
+30
+31
+32
+33
+34
+35
+36
+37
+38
+39
+40
+41
+42
+43
+44
+45
+46
+47
+48
+49
+50
+51
+52
+53
+54
+55
+56
+57
+58
+59
+60
+61
+62
+63
+64
+65
+66
+67
+68
+69
+70
+71
+72
+73
+74
+75
+76
+77
+78
+79
+80
+81
+82
+83
+84
+85
+86
+87
+88
+89
+90
+91
+92
+93
+94
+95
+96
+97
+98
+99
+100
+101
+102
+103
+104
+105
+106
+107
+108
+109
+110
+111
+112
+113
+114
+115
+116
+117
+118
+119
+120
+121
+122
+123
+124
+125
+126
+127
+128
+129
+130
+131
+132
+133
+134
+135
+136
+137
+138
+139
+140
+141
+142
+143
+144
+145
+146
+147
+148
+149
+150
+151
+152
+153
+154
+155
+156
+157
+158
+159
+160
+161
+162
+163
+164
+165
+166
+167
+168
+169
+170
+171
+172
+173
+174
+175
+176
+177
+178
+179
+180
+181
+182
+183
+184
+185
+186
+187
+188
+189
+190
+191
+192
+193
+194
+195
+196
+197
+198
+199
+200
+201
+202
+203
+204
+205
+206
+207
+208
+209
+210
+211
+212
+
#[cfg(target_arch = "wasm32")]
+use crate::debug::error;
+#[cfg(target_arch = "wasm32")]
+use crate::types::block_hash::BlockHash;
+#[cfg(target_arch = "wasm32")]
+use crate::types::block_identifier::BlockIdentifier;
+use crate::types::deploy::Deploy;
+use crate::{
+    types::{block_identifier::BlockIdentifierInput, sdk_error::SdkError, verbosity::Verbosity},
+    SDK,
+};
+use casper_client::{
+    rpcs::results::SpeculativeExecResult as _SpeculativeExecResult,
+    speculative_exec as speculative_exec_lib, JsonRpcId, SuccessResponse,
+};
+#[cfg(target_arch = "wasm32")]
+use gloo_utils::format::JsValueSerdeExt;
+use rand::Rng;
+#[cfg(target_arch = "wasm32")]
+use serde::{Deserialize, Serialize};
+#[cfg(target_arch = "wasm32")]
+use wasm_bindgen::prelude::*;
+
+// Define a struct to wrap the result of a speculative execution.
+#[cfg(target_arch = "wasm32")]
+#[derive(Debug, Deserialize, Clone, Serialize)]
+#[wasm_bindgen]
+pub struct SpeculativeExecResult(_SpeculativeExecResult);
+
+#[cfg(target_arch = "wasm32")]
+impl From<SpeculativeExecResult> for _SpeculativeExecResult {
+    fn from(result: SpeculativeExecResult) -> Self {
+        result.0
+    }
+}
+
+#[cfg(target_arch = "wasm32")]
+impl From<_SpeculativeExecResult> for SpeculativeExecResult {
+    fn from(result: _SpeculativeExecResult) -> Self {
+        SpeculativeExecResult(result)
+    }
+}
+
+#[cfg(target_arch = "wasm32")]
+#[wasm_bindgen]
+impl SpeculativeExecResult {
+    /// Get the API version of the result.
+    #[wasm_bindgen(getter)]
+    pub fn api_version(&self) -> JsValue {
+        JsValue::from_serde(&self.0.api_version).unwrap()
+    }
+
+    /// Get the block hash.
+    #[wasm_bindgen(getter)]
+    pub fn block_hash(&self) -> BlockHash {
+        self.0.block_hash.into()
+    }
+
+    /// Get the execution result.
+    #[wasm_bindgen(getter)]
+    pub fn execution_result(&self) -> JsValue {
+        JsValue::from_serde(&self.0.execution_result).unwrap()
+    }
+
+    /// Convert the result to JSON format.
+    #[wasm_bindgen(js_name = "toJson")]
+    pub fn to_json(&self) -> JsValue {
+        JsValue::from_serde(&self.0).unwrap_or(JsValue::null())
+    }
+}
+
+/// Options for speculative execution.
+#[derive(Debug, Deserialize, Clone, Default, Serialize)]
+#[cfg(target_arch = "wasm32")]
+#[wasm_bindgen(js_name = "getSpeculativeExecOptions", getter_with_clone)]
+pub struct GetSpeculativeExecOptions {
+    /// The deploy as a JSON string.
+    pub deploy_as_string: Option<String>,
+
+    /// The deploy to execute.
+    pub deploy: Option<Deploy>,
+
+    /// The block identifier as a string.
+    pub maybe_block_id_as_string: Option<String>,
+
+    /// The block identifier.
+    pub maybe_block_identifier: Option<BlockIdentifier>,
+
+    /// The node address.
+    pub node_address: Option<String>,
+
+    /// The verbosity level for logging.
+    pub verbosity: Option<Verbosity>,
+}
+
+#[cfg(target_arch = "wasm32")]
+#[wasm_bindgen]
+impl SDK {
+    /// Get options for speculative execution from a JavaScript value.
+    #[wasm_bindgen(js_name = "speculative_exec_options")]
+    pub fn get_speculative_exec_options(&self, options: JsValue) -> GetSpeculativeExecOptions {
+        let options_result = options.into_serde::<GetSpeculativeExecOptions>();
+        match options_result {
+            Ok(options) => options,
+            Err(err) => {
+                error(&format!("Error deserializing options: {:?}", err));
+                GetSpeculativeExecOptions::default()
+            }
+        }
+    }
+
+    /// JS Alias for speculative execution.
+    ///
+    /// # Arguments
+    ///
+    /// * `options` - The options for speculative execution.
+    ///
+    /// # Returns
+    ///
+    /// A `Result` containing the result of the speculative execution or a `JsError` in case of an error.
+    #[wasm_bindgen(js_name = "speculative_exec")]
+    pub async fn speculative_exec_js_alias(
+        &self,
+        options: Option<GetSpeculativeExecOptions>,
+    ) -> Result<SpeculativeExecResult, JsError> {
+        let GetSpeculativeExecOptions {
+            deploy_as_string,
+            deploy,
+            maybe_block_id_as_string,
+            maybe_block_identifier,
+            verbosity,
+            node_address,
+        } = options.unwrap_or_default();
+
+        let deploy = if let Some(deploy_as_string) = deploy_as_string {
+            Deploy::new(deploy_as_string.into())
+        } else if let Some(deploy) = deploy {
+            deploy
+        } else {
+            let err = &format!("Error: Missing deploy as json or deploy");
+            error(err);
+            return Err(JsError::new(err));
+        };
+
+        let maybe_block_identifier = if let Some(maybe_block_identifier) = maybe_block_identifier {
+            Some(BlockIdentifierInput::BlockIdentifier(
+                maybe_block_identifier,
+            ))
+        } else {
+            maybe_block_id_as_string.map(BlockIdentifierInput::String)
+        };
+
+        let result = self
+            .speculative_exec(
+                deploy.into(),
+                maybe_block_identifier,
+                verbosity,
+                node_address,
+            )
+            .await;
+        match result {
+            Ok(data) => Ok(data.result.into()),
+            Err(err) => {
+                let err = &format!("Error occurred with {:?}", err);
+                error(err);
+                Err(JsError::new(err))
+            }
+        }
+    }
+}
+
+impl SDK {
+    /// Perform speculative execution.
+    ///
+    /// # Arguments
+    ///
+    /// * `deploy` - The deploy to execute.
+    /// * `maybe_block_identifier` - The block identifier.
+    /// * `verbosity` - The verbosity level for logging.
+    /// * `node_address` - The address of the node to connect to.
+    ///
+    /// # Returns
+    ///
+    /// A `Result` containing the result of the speculative execution or a `SdkError` in case of an error.
+    pub async fn speculative_exec(
+        &self,
+        deploy: Deploy,
+        maybe_block_identifier: Option<BlockIdentifierInput>,
+        verbosity: Option<Verbosity>,
+        node_address: Option<String>,
+    ) -> Result<SuccessResponse<_SpeculativeExecResult>, SdkError> {
+        //log("speculative_exec!");
+
+        let maybe_block_identifier =
+            if let Some(BlockIdentifierInput::BlockIdentifier(maybe_block_identifier)) =
+                maybe_block_identifier
+            {
+                Some(maybe_block_identifier)
+            } else {
+                None
+            };
+        speculative_exec_lib(
+            JsonRpcId::from(rand::thread_rng().gen::<i64>().to_string()),
+            &self.get_node_address(node_address),
+            maybe_block_identifier.map(Into::into),
+            self.get_verbosity(verbosity).into(),
+            deploy.into(),
+        )
+        .await
+        .map_err(SdkError::from)
+    }
+}
+
\ No newline at end of file diff --git a/docs/api-rust/src/casper_rust_wasm_sdk/types/access_rights.rs.html b/docs/api-rust/src/casper_rust_wasm_sdk/types/access_rights.rs.html new file mode 100644 index 000000000..d59d5ea31 --- /dev/null +++ b/docs/api-rust/src/casper_rust_wasm_sdk/types/access_rights.rs.html @@ -0,0 +1,227 @@ +access_rights.rs - source
1
+2
+3
+4
+5
+6
+7
+8
+9
+10
+11
+12
+13
+14
+15
+16
+17
+18
+19
+20
+21
+22
+23
+24
+25
+26
+27
+28
+29
+30
+31
+32
+33
+34
+35
+36
+37
+38
+39
+40
+41
+42
+43
+44
+45
+46
+47
+48
+49
+50
+51
+52
+53
+54
+55
+56
+57
+58
+59
+60
+61
+62
+63
+64
+65
+66
+67
+68
+69
+70
+71
+72
+73
+74
+75
+76
+77
+78
+79
+80
+81
+82
+83
+84
+85
+86
+87
+88
+89
+90
+91
+92
+93
+94
+95
+96
+97
+98
+99
+100
+101
+102
+103
+104
+105
+106
+107
+108
+109
+110
+111
+112
+113
+
use crate::debug::error;
+use casper_types::AccessRights as _AccessRights;
+use wasm_bindgen::prelude::*;
+
+#[wasm_bindgen]
+#[derive(Debug, Default)]
+pub struct AccessRights(_AccessRights);
+
+#[wasm_bindgen]
+impl AccessRights {
+    #[wasm_bindgen(js_name = "NONE")]
+    pub fn none() -> u8 {
+        _AccessRights::NONE.bits()
+    }
+
+    #[wasm_bindgen(js_name = "READ")]
+    pub fn read() -> u8 {
+        _AccessRights::READ.bits()
+    }
+
+    #[wasm_bindgen(js_name = "WRITE")]
+    pub fn write() -> u8 {
+        _AccessRights::WRITE.bits()
+    }
+
+    #[wasm_bindgen(js_name = "ADD")]
+    pub fn add() -> u8 {
+        _AccessRights::ADD.bits()
+    }
+
+    #[wasm_bindgen(js_name = "READ_ADD")]
+    pub fn read_add() -> u8 {
+        _AccessRights::READ_ADD.bits()
+    }
+
+    #[wasm_bindgen(js_name = "READ_WRITE")]
+    pub fn read_write() -> u8 {
+        _AccessRights::READ_WRITE.bits()
+    }
+
+    #[wasm_bindgen(js_name = "ADD_WRITE")]
+    pub fn add_write() -> u8 {
+        _AccessRights::ADD_WRITE.bits()
+    }
+
+    #[wasm_bindgen(js_name = "READ_ADD_WRITE")]
+    pub fn read_add_write() -> u8 {
+        _AccessRights::READ_ADD_WRITE.bits()
+    }
+
+    // Utility method to create AccessRights with u8
+    #[wasm_bindgen(constructor)]
+    pub fn new(access_rights: u8) -> Result<AccessRights, JsValue> {
+        match _AccessRights::from_bits(access_rights) {
+            Some(rights) => Ok(AccessRights(rights)),
+            None => {
+                error("Invalid URef access rights");
+                Err(JsValue::null())
+            }
+        }
+    }
+
+    #[wasm_bindgen]
+    pub fn from_bits(read: bool, write: bool, add: bool) -> Self {
+        let mut access_rights = _AccessRights::NONE;
+        if read {
+            access_rights |= _AccessRights::READ;
+        }
+        if write {
+            access_rights |= _AccessRights::WRITE;
+        }
+        if add {
+            access_rights |= _AccessRights::ADD;
+        }
+        AccessRights(access_rights)
+    }
+
+    #[wasm_bindgen]
+    // Utility method to check if the READ flag is set.
+    pub fn is_readable(&self) -> bool {
+        self.0.is_readable()
+    }
+
+    #[wasm_bindgen]
+    // Utility method to check if the WRITE flag is set.
+    pub fn is_writeable(&self) -> bool {
+        self.0.is_writeable()
+    }
+
+    #[wasm_bindgen]
+    // Utility method to check if the ADD flag is set.
+    pub fn is_addable(&self) -> bool {
+        self.0.is_addable()
+    }
+
+    #[wasm_bindgen]
+    // Utility method to check if no flags are set.
+    pub fn is_none(&self) -> bool {
+        self.0.is_none()
+    }
+}
+
+impl From<AccessRights> for _AccessRights {
+    fn from(access_rights: AccessRights) -> Self {
+        access_rights.0
+    }
+}
+
+impl From<_AccessRights> for AccessRights {
+    fn from(access_rights: _AccessRights) -> Self {
+        AccessRights(access_rights)
+    }
+}
+
\ No newline at end of file diff --git a/docs/api-rust/src/casper_rust_wasm_sdk/types/account_hash.rs.html b/docs/api-rust/src/casper_rust_wasm_sdk/types/account_hash.rs.html new file mode 100644 index 000000000..939ea5e16 --- /dev/null +++ b/docs/api-rust/src/casper_rust_wasm_sdk/types/account_hash.rs.html @@ -0,0 +1,203 @@ +account_hash.rs - source
1
+2
+3
+4
+5
+6
+7
+8
+9
+10
+11
+12
+13
+14
+15
+16
+17
+18
+19
+20
+21
+22
+23
+24
+25
+26
+27
+28
+29
+30
+31
+32
+33
+34
+35
+36
+37
+38
+39
+40
+41
+42
+43
+44
+45
+46
+47
+48
+49
+50
+51
+52
+53
+54
+55
+56
+57
+58
+59
+60
+61
+62
+63
+64
+65
+66
+67
+68
+69
+70
+71
+72
+73
+74
+75
+76
+77
+78
+79
+80
+81
+82
+83
+84
+85
+86
+87
+88
+89
+90
+91
+92
+93
+94
+95
+96
+97
+98
+99
+100
+101
+
use super::public_key::PublicKey;
+use crate::debug::error;
+use casper_types::{
+    account::{AccountHash as _AccountHash, ACCOUNT_HASH_LENGTH},
+    bytesrepr::{self, FromBytes, ToBytes, U8_SERIALIZED_LENGTH},
+    crypto,
+};
+#[cfg(target_arch = "wasm32")]
+use gloo_utils::format::JsValueSerdeExt;
+use serde::{Deserialize, Serialize};
+use wasm_bindgen::prelude::*;
+
+#[derive(Debug, Deserialize, Clone, Serialize)]
+#[wasm_bindgen]
+pub struct AccountHash(_AccountHash);
+
+#[wasm_bindgen]
+impl AccountHash {
+    #[wasm_bindgen(constructor)]
+    pub fn new(account_hash_hex_str: &str) -> Result<AccountHash, JsValue> {
+        let bytes = hex::decode(account_hash_hex_str)
+            .map_err(|err| JsValue::from_str(&format!("Failed to decode hex string: {:?}", err)))?;
+        if bytes.len() != ACCOUNT_HASH_LENGTH {
+            return Err(JsValue::from_str("Invalid account hash length"));
+        }
+        let mut array = [0u8; ACCOUNT_HASH_LENGTH];
+        array.copy_from_slice(&bytes);
+        let account_hash = _AccountHash(array);
+        Ok(account_hash.into())
+    }
+
+    #[wasm_bindgen(js_name = "fromFormattedStr")]
+    pub fn from_formatted_str(formatted_str: &str) -> Result<AccountHash, JsValue> {
+        let account_hash = _AccountHash::from_formatted_str(formatted_str)
+            .map_err(|err| {
+                error(&format!(
+                    "Failed to parse AccountHash from formatted string: {:?}",
+                    err
+                ))
+            })
+            .unwrap();
+        Ok(AccountHash(account_hash))
+    }
+
+    #[wasm_bindgen(js_name = "fromPublicKey")]
+    pub fn from_public_key(public_key: PublicKey) -> AccountHash {
+        let account_hash = _AccountHash::from_public_key(&(public_key.into()), crypto::blake2b);
+        AccountHash(account_hash)
+    }
+
+    #[wasm_bindgen(js_name = "toFormattedString")]
+    pub fn to_formatted_string(&self) -> String {
+        self.0.to_formatted_string()
+    }
+
+    #[wasm_bindgen(js_name = "fromUint8Array")]
+    pub fn from_bytes(bytes: Vec<u8>) -> AccountHash {
+        let account_hash =
+            _AccountHash::try_from(&bytes).expect("Failed to convert bytes to AccountHash");
+        AccountHash(account_hash)
+    }
+
+    #[cfg(target_arch = "wasm32")]
+    #[wasm_bindgen(js_name = "toJson")]
+    pub fn to_json(&self) -> JsValue {
+        JsValue::from_serde(self).unwrap_or(JsValue::null())
+    }
+}
+
+impl From<AccountHash> for _AccountHash {
+    fn from(account_hash: AccountHash) -> Self {
+        account_hash.0
+    }
+}
+
+impl From<_AccountHash> for AccountHash {
+    fn from(account_hash: _AccountHash) -> Self {
+        AccountHash(account_hash)
+    }
+}
+
+impl FromBytes for AccountHash {
+    fn from_bytes(bytes: &[u8]) -> Result<(Self, &[u8]), bytesrepr::Error> {
+        let (account_hash, remainder) = _AccountHash::from_bytes(bytes)?;
+        Ok((AccountHash(account_hash), remainder))
+    }
+}
+
+impl ToBytes for AccountHash {
+    fn to_bytes(&self) -> Result<Vec<u8>, bytesrepr::Error> {
+        self.0.to_bytes()
+    }
+
+    fn serialized_length(&self) -> usize {
+        U8_SERIALIZED_LENGTH + self.0.value().len() * U8_SERIALIZED_LENGTH
+    }
+
+    fn write_bytes(&self, bytes: &mut Vec<u8>) -> Result<(), bytesrepr::Error> {
+        self.0.write_bytes(bytes)
+    }
+}
+
\ No newline at end of file diff --git a/docs/api-rust/src/casper_rust_wasm_sdk/types/account_identifier.rs.html b/docs/api-rust/src/casper_rust_wasm_sdk/types/account_identifier.rs.html new file mode 100644 index 000000000..a2ec16298 --- /dev/null +++ b/docs/api-rust/src/casper_rust_wasm_sdk/types/account_identifier.rs.html @@ -0,0 +1,195 @@ +account_identifier.rs - source
1
+2
+3
+4
+5
+6
+7
+8
+9
+10
+11
+12
+13
+14
+15
+16
+17
+18
+19
+20
+21
+22
+23
+24
+25
+26
+27
+28
+29
+30
+31
+32
+33
+34
+35
+36
+37
+38
+39
+40
+41
+42
+43
+44
+45
+46
+47
+48
+49
+50
+51
+52
+53
+54
+55
+56
+57
+58
+59
+60
+61
+62
+63
+64
+65
+66
+67
+68
+69
+70
+71
+72
+73
+74
+75
+76
+77
+78
+79
+80
+81
+82
+83
+84
+85
+86
+87
+88
+89
+90
+91
+92
+93
+94
+95
+96
+97
+
use super::{account_hash::AccountHash, public_key::PublicKey};
+use casper_client::rpcs::AccountIdentifier as _AccountIdentifier;
+#[cfg(target_arch = "wasm32")]
+use gloo_utils::format::JsValueSerdeExt;
+use serde::{Deserialize, Serialize};
+use wasm_bindgen::prelude::*;
+
+#[derive(Debug, Deserialize, Clone, Serialize)]
+#[wasm_bindgen]
+pub struct AccountIdentifier(_AccountIdentifier);
+
+#[wasm_bindgen]
+impl AccountIdentifier {
+    #[wasm_bindgen(constructor)]
+    pub fn new(formatted_str: &str) -> Result<AccountIdentifier, JsValue> {
+        Self::from_formatted_str(formatted_str)
+    }
+
+    #[wasm_bindgen(js_name = "fromFormattedStr")]
+    pub fn from_formatted_str(formatted_str: &str) -> Result<AccountIdentifier, JsValue> {
+        if formatted_str.contains("account-hash") {
+            let account_hash = AccountHash::from_formatted_str(formatted_str)?;
+            Ok(Self::from_account_under_account_hash(account_hash))
+        } else {
+            let public_key = PublicKey::new(formatted_str)?;
+            Ok(Self::from_account_account_under_public_key(public_key))
+        }
+    }
+
+    #[wasm_bindgen(js_name = "fromPublicKey")]
+    pub fn from_account_account_under_public_key(key: PublicKey) -> Self {
+        AccountIdentifier(_AccountIdentifier::PublicKey(key.into()))
+    }
+
+    #[wasm_bindgen(js_name = "fromAccountHash")]
+    pub fn from_account_under_account_hash(account_hash: AccountHash) -> Self {
+        AccountIdentifier(_AccountIdentifier::AccountHash(account_hash.into()))
+    }
+
+    #[cfg(target_arch = "wasm32")]
+    #[wasm_bindgen(js_name = "toJson")]
+    pub fn to_json(&self) -> JsValue {
+        JsValue::from_serde(self).unwrap_or(JsValue::null())
+    }
+}
+
+impl ToString for AccountIdentifier {
+    fn to_string(&self) -> String {
+        match &self.0 {
+            // TODO fix PublicKey to string not short version
+            _AccountIdentifier::PublicKey(key) => PublicKey::from(key.clone()).to_string(),
+            _AccountIdentifier::AccountHash(hash) => hash.to_formatted_string(),
+        }
+    }
+}
+
+impl From<AccountIdentifier> for PublicKey {
+    fn from(account_identifier: AccountIdentifier) -> Self {
+        match account_identifier {
+            AccountIdentifier(_AccountIdentifier::PublicKey(key)) => key.into(),
+            _ => unimplemented!("Conversion not implemented for AccountIdentifier to Key"),
+        }
+    }
+}
+
+impl From<AccountIdentifier> for _AccountIdentifier {
+    fn from(account_identifier: AccountIdentifier) -> Self {
+        account_identifier.0
+    }
+}
+
+impl From<_AccountIdentifier> for AccountIdentifier {
+    fn from(account_identifier: _AccountIdentifier) -> Self {
+        AccountIdentifier(account_identifier)
+    }
+}
+
+impl From<AccountIdentifier> for AccountHash {
+    fn from(account_identifier: AccountIdentifier) -> Self {
+        match account_identifier {
+            AccountIdentifier(_AccountIdentifier::AccountHash(account_hash)) => account_hash.into(),
+            _ => unimplemented!("Conversion not implemented for AccountIdentifier to AccountHash"),
+        }
+    }
+}
+
+impl From<PublicKey> for AccountIdentifier {
+    fn from(key: PublicKey) -> Self {
+        AccountIdentifier(_AccountIdentifier::PublicKey(key.into()))
+    }
+}
+
+impl From<AccountHash> for AccountIdentifier {
+    fn from(account_hash: AccountHash) -> Self {
+        AccountIdentifier(_AccountIdentifier::AccountHash(account_hash.into()))
+    }
+}
+
\ No newline at end of file diff --git a/docs/api-rust/src/casper_rust_wasm_sdk/types/addr/dictionary_addr.rs.html b/docs/api-rust/src/casper_rust_wasm_sdk/types/addr/dictionary_addr.rs.html new file mode 100644 index 000000000..a1e8a888c --- /dev/null +++ b/docs/api-rust/src/casper_rust_wasm_sdk/types/addr/dictionary_addr.rs.html @@ -0,0 +1,65 @@ +dictionary_addr.rs - source
1
+2
+3
+4
+5
+6
+7
+8
+9
+10
+11
+12
+13
+14
+15
+16
+17
+18
+19
+20
+21
+22
+23
+24
+25
+26
+27
+28
+29
+30
+31
+32
+
use crate::debug::error;
+use casper_types::{DictionaryAddr as _DictionaryAddr, KEY_DICTIONARY_LENGTH};
+use wasm_bindgen::prelude::*;
+
+#[wasm_bindgen]
+pub struct DictionaryAddr(_DictionaryAddr);
+
+#[wasm_bindgen]
+impl DictionaryAddr {
+    #[wasm_bindgen(constructor)]
+    pub fn new(bytes: Vec<u8>) -> Result<DictionaryAddr, JsValue> {
+        if bytes.len() != KEY_DICTIONARY_LENGTH {
+            error("Invalid DictionaryAddr length");
+            return Err(JsValue::null());
+        }
+        let mut array = [0u8; KEY_DICTIONARY_LENGTH];
+        array.copy_from_slice(&bytes);
+        Ok(DictionaryAddr(array))
+    }
+}
+
+impl From<DictionaryAddr> for _DictionaryAddr {
+    fn from(dictionary_addr: DictionaryAddr) -> Self {
+        dictionary_addr.0
+    }
+}
+
+impl From<_DictionaryAddr> for DictionaryAddr {
+    fn from(dictionary_addr: _DictionaryAddr) -> Self {
+        DictionaryAddr(dictionary_addr)
+    }
+}
+
\ No newline at end of file diff --git a/docs/api-rust/src/casper_rust_wasm_sdk/types/addr/hash_addr.rs.html b/docs/api-rust/src/casper_rust_wasm_sdk/types/addr/hash_addr.rs.html new file mode 100644 index 000000000..98a4103cf --- /dev/null +++ b/docs/api-rust/src/casper_rust_wasm_sdk/types/addr/hash_addr.rs.html @@ -0,0 +1,65 @@ +hash_addr.rs - source
1
+2
+3
+4
+5
+6
+7
+8
+9
+10
+11
+12
+13
+14
+15
+16
+17
+18
+19
+20
+21
+22
+23
+24
+25
+26
+27
+28
+29
+30
+31
+32
+
use crate::debug::error;
+use casper_types::{HashAddr as _HashAddr, KEY_HASH_LENGTH};
+use wasm_bindgen::prelude::*;
+
+#[wasm_bindgen]
+pub struct HashAddr(_HashAddr);
+
+#[wasm_bindgen]
+impl HashAddr {
+    #[wasm_bindgen(constructor)]
+    pub fn new(bytes: Vec<u8>) -> Result<HashAddr, JsValue> {
+        if bytes.len() != KEY_HASH_LENGTH {
+            error("Invalid HashAddr length");
+            return Err(JsValue::null());
+        }
+        let mut array = [0u8; KEY_HASH_LENGTH];
+        array.copy_from_slice(&bytes);
+        Ok(HashAddr(array))
+    }
+}
+
+impl From<HashAddr> for _HashAddr {
+    fn from(hash_addr: HashAddr) -> Self {
+        hash_addr.0
+    }
+}
+
+impl From<_HashAddr> for HashAddr {
+    fn from(hash_addr: _HashAddr) -> Self {
+        HashAddr(hash_addr)
+    }
+}
+
\ No newline at end of file diff --git a/docs/api-rust/src/casper_rust_wasm_sdk/types/addr/mod.rs.html b/docs/api-rust/src/casper_rust_wasm_sdk/types/addr/mod.rs.html new file mode 100644 index 000000000..f2e0db2d0 --- /dev/null +++ b/docs/api-rust/src/casper_rust_wasm_sdk/types/addr/mod.rs.html @@ -0,0 +1,9 @@ +mod.rs - source
1
+2
+3
+4
+
pub mod dictionary_addr;
+pub mod hash_addr;
+pub mod transfer_addr;
+pub mod uref_addr;
+
\ No newline at end of file diff --git a/docs/api-rust/src/casper_rust_wasm_sdk/types/addr/transfer_addr.rs.html b/docs/api-rust/src/casper_rust_wasm_sdk/types/addr/transfer_addr.rs.html new file mode 100644 index 000000000..94c3891ca --- /dev/null +++ b/docs/api-rust/src/casper_rust_wasm_sdk/types/addr/transfer_addr.rs.html @@ -0,0 +1,87 @@ +transfer_addr.rs - source
1
+2
+3
+4
+5
+6
+7
+8
+9
+10
+11
+12
+13
+14
+15
+16
+17
+18
+19
+20
+21
+22
+23
+24
+25
+26
+27
+28
+29
+30
+31
+32
+33
+34
+35
+36
+37
+38
+39
+40
+41
+42
+43
+
//use casper_types::TransferAddr as _TransferAddr;
+use crate::debug::error;
+use casper_types::TRANSFER_ADDR_LENGTH;
+use wasm_bindgen::prelude::*;
+
+// TODO Fix with TransferAddr as _TransferAddr, and [u8; 32]
+#[wasm_bindgen]
+pub struct TransferAddr([u8; TRANSFER_ADDR_LENGTH]);
+
+#[wasm_bindgen]
+impl TransferAddr {
+    #[wasm_bindgen(constructor)]
+    pub fn new(bytes: Vec<u8>) -> Result<TransferAddr, JsValue> {
+        if bytes.len() != TRANSFER_ADDR_LENGTH {
+            error("Invalid TransferAddr length");
+            return Err(JsValue::null());
+        }
+        let mut array = [0u8; TRANSFER_ADDR_LENGTH];
+        array.copy_from_slice(&bytes);
+        Ok(TransferAddr(array))
+    }
+}
+
+impl From<Vec<u8>> for TransferAddr {
+    fn from(bytes: Vec<u8>) -> Self {
+        let mut array = [0u8; TRANSFER_ADDR_LENGTH];
+        array.copy_from_slice(&bytes);
+        TransferAddr(array)
+    }
+}
+
+// TODO cannot initialize a tuple struct which contains private fields
+// Implement Into<_TransferAddr> for TransferAddr
+// impl Into<_TransferAddr> for TransferAddr {
+//     fn into(self) -> _TransferAddr {
+//         _TransferAddr(self.0)
+//     }
+// }
+
+#[wasm_bindgen(js_name = "fromTransfer")]
+pub fn from_transfer(key: Vec<u8>) -> TransferAddr {
+    TransferAddr::from(key)
+}
+
\ No newline at end of file diff --git a/docs/api-rust/src/casper_rust_wasm_sdk/types/addr/uref_addr.rs.html b/docs/api-rust/src/casper_rust_wasm_sdk/types/addr/uref_addr.rs.html new file mode 100644 index 000000000..1231b3c4c --- /dev/null +++ b/docs/api-rust/src/casper_rust_wasm_sdk/types/addr/uref_addr.rs.html @@ -0,0 +1,65 @@ +uref_addr.rs - source
1
+2
+3
+4
+5
+6
+7
+8
+9
+10
+11
+12
+13
+14
+15
+16
+17
+18
+19
+20
+21
+22
+23
+24
+25
+26
+27
+28
+29
+30
+31
+32
+
use crate::debug::error;
+use casper_types::{URefAddr as _URefAddr, UREF_ADDR_LENGTH};
+use wasm_bindgen::prelude::*;
+
+#[wasm_bindgen]
+pub struct URefAddr(_URefAddr);
+
+#[wasm_bindgen]
+impl URefAddr {
+    #[wasm_bindgen(constructor)]
+    pub fn new(bytes: Vec<u8>) -> Result<URefAddr, JsValue> {
+        if bytes.len() != UREF_ADDR_LENGTH {
+            error("Invalid URefAddr length");
+            return Err(JsValue::null());
+        }
+        let mut array = [0u8; UREF_ADDR_LENGTH];
+        array.copy_from_slice(&bytes);
+        Ok(URefAddr(array))
+    }
+}
+
+impl From<URefAddr> for _URefAddr {
+    fn from(uref_addr: URefAddr) -> Self {
+        uref_addr.0
+    }
+}
+
+impl From<_URefAddr> for URefAddr {
+    fn from(uref_addr: _URefAddr) -> Self {
+        URefAddr(uref_addr)
+    }
+}
+
\ No newline at end of file diff --git a/docs/api-rust/src/casper_rust_wasm_sdk/types/block_hash.rs.html b/docs/api-rust/src/casper_rust_wasm_sdk/types/block_hash.rs.html new file mode 100644 index 000000000..727408524 --- /dev/null +++ b/docs/api-rust/src/casper_rust_wasm_sdk/types/block_hash.rs.html @@ -0,0 +1,135 @@ +block_hash.rs - source
1
+2
+3
+4
+5
+6
+7
+8
+9
+10
+11
+12
+13
+14
+15
+16
+17
+18
+19
+20
+21
+22
+23
+24
+25
+26
+27
+28
+29
+30
+31
+32
+33
+34
+35
+36
+37
+38
+39
+40
+41
+42
+43
+44
+45
+46
+47
+48
+49
+50
+51
+52
+53
+54
+55
+56
+57
+58
+59
+60
+61
+62
+63
+64
+65
+66
+67
+
use super::digest::Digest;
+use crate::debug::error;
+use casper_client::types::BlockHash as _BlockHash;
+use casper_hashing::Digest as _Digest;
+#[cfg(target_arch = "wasm32")]
+use gloo_utils::format::JsValueSerdeExt;
+use hex::decode;
+use serde::{Deserialize, Serialize};
+use wasm_bindgen::prelude::*;
+
+#[wasm_bindgen]
+#[derive(Debug, Deserialize, Clone, Serialize)]
+pub struct BlockHash(_BlockHash);
+
+#[wasm_bindgen]
+impl BlockHash {
+    #[wasm_bindgen(constructor)]
+    pub fn new(block_hash_hex_str: &str) -> Result<BlockHash, JsValue> {
+        let bytes = decode(block_hash_hex_str)
+            .map_err(|err| error(&format!("{:?}", err)))
+            .unwrap();
+        let mut hash = [0u8; _Digest::LENGTH];
+        hash.copy_from_slice(&bytes);
+        Self::from_digest(Digest::from(hash))
+    }
+
+    #[wasm_bindgen(js_name = "fromDigest")]
+    pub fn from_digest(digest: Digest) -> Result<BlockHash, JsValue> {
+        Ok(_BlockHash::new(digest.into()).into())
+    }
+
+    #[cfg(target_arch = "wasm32")]
+    #[wasm_bindgen(js_name = "toJson")]
+    pub fn to_json(&self) -> JsValue {
+        JsValue::from_serde(self).unwrap_or(JsValue::null())
+    }
+
+    #[cfg(target_arch = "wasm32")]
+    #[wasm_bindgen(js_name = "toString")]
+    pub fn to_string_js_alias(&self) -> String {
+        self.to_string()
+    }
+}
+
+impl ToString for BlockHash {
+    fn to_string(&self) -> String {
+        hex::encode(self.0)
+    }
+}
+
+impl From<BlockHash> for _BlockHash {
+    fn from(block_hash: BlockHash) -> Self {
+        block_hash.0
+    }
+}
+
+impl From<_BlockHash> for BlockHash {
+    fn from(block_hash: _BlockHash) -> Self {
+        BlockHash(block_hash)
+    }
+}
+
+impl From<Digest> for BlockHash {
+    fn from(digest: Digest) -> Self {
+        _BlockHash::new(digest.into()).into()
+    }
+}
+
\ No newline at end of file diff --git a/docs/api-rust/src/casper_rust_wasm_sdk/types/block_identifier.rs.html b/docs/api-rust/src/casper_rust_wasm_sdk/types/block_identifier.rs.html new file mode 100644 index 000000000..86b69c3fb --- /dev/null +++ b/docs/api-rust/src/casper_rust_wasm_sdk/types/block_identifier.rs.html @@ -0,0 +1,103 @@ +block_identifier.rs - source
1
+2
+3
+4
+5
+6
+7
+8
+9
+10
+11
+12
+13
+14
+15
+16
+17
+18
+19
+20
+21
+22
+23
+24
+25
+26
+27
+28
+29
+30
+31
+32
+33
+34
+35
+36
+37
+38
+39
+40
+41
+42
+43
+44
+45
+46
+47
+48
+49
+50
+51
+
use super::block_hash::BlockHash;
+use casper_client::rpcs::common::BlockIdentifier as _BlockIdentifier;
+#[cfg(target_arch = "wasm32")]
+use gloo_utils::format::JsValueSerdeExt;
+use serde::{Deserialize, Serialize};
+use wasm_bindgen::prelude::*;
+
+#[derive(Debug, Deserialize, Clone, Serialize, Copy)]
+#[wasm_bindgen]
+pub struct BlockIdentifier(_BlockIdentifier);
+
+#[wasm_bindgen]
+impl BlockIdentifier {
+    #[wasm_bindgen(constructor)]
+    pub fn new(block_identifier: BlockIdentifier) -> BlockIdentifier {
+        block_identifier
+    }
+
+    pub fn from_hash(hash: BlockHash) -> Self {
+        BlockIdentifier(_BlockIdentifier::Hash(hash.into()))
+    }
+
+    #[wasm_bindgen(js_name = "fromHeight")]
+    pub fn from_height(height: u64) -> Self {
+        BlockIdentifier(_BlockIdentifier::Height(height))
+    }
+
+    #[cfg(target_arch = "wasm32")]
+    #[wasm_bindgen(js_name = "toJson")]
+    pub fn to_json(&self) -> JsValue {
+        JsValue::from_serde(self).unwrap_or(JsValue::null())
+    }
+}
+
+impl From<BlockIdentifier> for _BlockIdentifier {
+    fn from(block_identifier: BlockIdentifier) -> Self {
+        block_identifier.0
+    }
+}
+
+impl From<_BlockIdentifier> for BlockIdentifier {
+    fn from(block_identifier: _BlockIdentifier) -> Self {
+        BlockIdentifier(block_identifier)
+    }
+}
+
+#[derive(Debug, Clone)]
+pub enum BlockIdentifierInput {
+    BlockIdentifier(BlockIdentifier),
+    String(String),
+}
+
\ No newline at end of file diff --git a/docs/api-rust/src/casper_rust_wasm_sdk/types/cl/bytes.rs.html b/docs/api-rust/src/casper_rust_wasm_sdk/types/cl/bytes.rs.html new file mode 100644 index 000000000..25b4cc235 --- /dev/null +++ b/docs/api-rust/src/casper_rust_wasm_sdk/types/cl/bytes.rs.html @@ -0,0 +1,153 @@ +bytes.rs - source
1
+2
+3
+4
+5
+6
+7
+8
+9
+10
+11
+12
+13
+14
+15
+16
+17
+18
+19
+20
+21
+22
+23
+24
+25
+26
+27
+28
+29
+30
+31
+32
+33
+34
+35
+36
+37
+38
+39
+40
+41
+42
+43
+44
+45
+46
+47
+48
+49
+50
+51
+52
+53
+54
+55
+56
+57
+58
+59
+60
+61
+62
+63
+64
+65
+66
+67
+68
+69
+70
+71
+72
+73
+74
+75
+76
+
use casper_types::{bytesrepr::Bytes as _Bytes, CLType, CLTyped};
+use core::ops::Deref;
+use wasm_bindgen::prelude::*;
+
+#[wasm_bindgen]
+#[derive(Clone, Ord, PartialOrd, Eq, PartialEq, Debug, Default, Hash)]
+pub struct Bytes(Vec<u8>);
+
+#[wasm_bindgen]
+impl Bytes {
+    #[wasm_bindgen(constructor)]
+    pub fn new() -> Self {
+        Bytes(Vec::new())
+    }
+
+    #[wasm_bindgen(js_name = "fromUint8Array")]
+    pub fn from_uint8_array(uint8_array: js_sys::Uint8Array) -> Self {
+        let length = uint8_array.length() as usize;
+        let mut bytes_vec = Vec::with_capacity(length);
+
+        for i in 0..length {
+            bytes_vec.push(uint8_array.get_index(i.try_into().unwrap()));
+        }
+        Self::from(bytes_vec)
+    }
+}
+
+impl Deref for Bytes {
+    type Target = [u8];
+
+    fn deref(&self) -> &Self::Target {
+        self.0.deref()
+    }
+}
+
+impl From<Vec<u8>> for Bytes {
+    fn from(vec: Vec<u8>) -> Self {
+        Bytes(vec)
+    }
+}
+
+impl From<Bytes> for Vec<u8> {
+    fn from(bytes: Bytes) -> Self {
+        bytes.0
+    }
+}
+
+impl From<&[u8]> for Bytes {
+    fn from(bytes: &[u8]) -> Self {
+        Bytes(bytes.to_vec())
+    }
+}
+
+impl CLTyped for Bytes {
+    fn cl_type() -> CLType {
+        <Vec<u8>>::cl_type()
+    }
+}
+
+impl From<Bytes> for _Bytes {
+    fn from(bytes: Bytes) -> Self {
+        _Bytes::from(bytes.0)
+    }
+}
+
+impl From<_Bytes> for Bytes {
+    fn from(bytes: _Bytes) -> Self {
+        Bytes(bytes.into())
+    }
+}
+
+impl AsRef<[u8]> for Bytes {
+    fn as_ref(&self) -> &[u8] {
+        self.0.as_ref()
+    }
+}
+
\ No newline at end of file diff --git a/docs/api-rust/src/casper_rust_wasm_sdk/types/cl/mod.rs.html b/docs/api-rust/src/casper_rust_wasm_sdk/types/cl/mod.rs.html new file mode 100644 index 000000000..5fa6789ec --- /dev/null +++ b/docs/api-rust/src/casper_rust_wasm_sdk/types/cl/mod.rs.html @@ -0,0 +1,9 @@ +mod.rs - source
1
+2
+3
+4
+
pub mod bytes;
+// TODO see if we really need to re export cl values and types for result types coming from the client
+// pub mod cl_type;
+// pub mod cl_value;
+
\ No newline at end of file diff --git a/docs/api-rust/src/casper_rust_wasm_sdk/types/contract_hash.rs.html b/docs/api-rust/src/casper_rust_wasm_sdk/types/contract_hash.rs.html new file mode 100644 index 000000000..21765b180 --- /dev/null +++ b/docs/api-rust/src/casper_rust_wasm_sdk/types/contract_hash.rs.html @@ -0,0 +1,157 @@ +contract_hash.rs - source
1
+2
+3
+4
+5
+6
+7
+8
+9
+10
+11
+12
+13
+14
+15
+16
+17
+18
+19
+20
+21
+22
+23
+24
+25
+26
+27
+28
+29
+30
+31
+32
+33
+34
+35
+36
+37
+38
+39
+40
+41
+42
+43
+44
+45
+46
+47
+48
+49
+50
+51
+52
+53
+54
+55
+56
+57
+58
+59
+60
+61
+62
+63
+64
+65
+66
+67
+68
+69
+70
+71
+72
+73
+74
+75
+76
+77
+78
+
use crate::debug::error;
+use casper_types::{
+    bytesrepr::{self, FromBytes, ToBytes, U8_SERIALIZED_LENGTH},
+    ContractHash as _ContractHash,
+};
+use wasm_bindgen::prelude::*;
+
+#[wasm_bindgen]
+#[derive(Debug)]
+pub struct ContractHash(_ContractHash);
+
+#[wasm_bindgen]
+impl ContractHash {
+    #[wasm_bindgen(constructor)]
+    #[wasm_bindgen(js_name = "fromString")]
+    pub fn new(input: &str) -> Result<ContractHash, JsValue> {
+        let prefixed_input = format!("contract-{}", input);
+        ContractHash::from_formatted_str(&prefixed_input)
+    }
+
+    #[wasm_bindgen(js_name = "fromFormattedStr")]
+    pub fn from_formatted_str(input: &str) -> Result<ContractHash, JsValue> {
+        let contract_hash = _ContractHash::from_formatted_str(input)
+            .map_err(|err| {
+                error(&format!(
+                    "Failed to parse ContractHash from formatted string: {:?}",
+                    err
+                ))
+            })
+            .unwrap();
+        Ok(ContractHash(contract_hash))
+    }
+
+    #[wasm_bindgen(js_name = "toFormattedString")]
+    pub fn to_formatted_string(&self) -> String {
+        self.0.to_formatted_string()
+    }
+
+    #[wasm_bindgen(js_name = "fromUint8Array")]
+    pub fn from_bytes(bytes: Vec<u8>) -> ContractHash {
+        let contract_hash =
+            _ContractHash::try_from(&bytes).expect("Failed to convert bytes to ContractHash");
+        ContractHash(contract_hash)
+    }
+}
+
+impl From<ContractHash> for _ContractHash {
+    fn from(contract_hash: ContractHash) -> Self {
+        contract_hash.0
+    }
+}
+
+impl From<_ContractHash> for ContractHash {
+    fn from(contract_hash: _ContractHash) -> Self {
+        ContractHash(contract_hash)
+    }
+}
+
+impl FromBytes for ContractHash {
+    fn from_bytes(bytes: &[u8]) -> Result<(Self, &[u8]), bytesrepr::Error> {
+        let (contract_hash, remainder) = _ContractHash::from_bytes(bytes)?;
+        Ok((ContractHash(contract_hash), remainder))
+    }
+}
+
+impl ToBytes for ContractHash {
+    fn to_bytes(&self) -> Result<Vec<u8>, bytesrepr::Error> {
+        self.0.to_bytes()
+    }
+
+    fn serialized_length(&self) -> usize {
+        U8_SERIALIZED_LENGTH + self.0.value().len() * U8_SERIALIZED_LENGTH
+    }
+
+    fn write_bytes(&self, bytes: &mut Vec<u8>) -> Result<(), bytesrepr::Error> {
+        self.0.write_bytes(bytes)
+    }
+}
+
\ No newline at end of file diff --git a/docs/api-rust/src/casper_rust_wasm_sdk/types/contract_package_hash.rs.html b/docs/api-rust/src/casper_rust_wasm_sdk/types/contract_package_hash.rs.html new file mode 100644 index 000000000..c56f0ef43 --- /dev/null +++ b/docs/api-rust/src/casper_rust_wasm_sdk/types/contract_package_hash.rs.html @@ -0,0 +1,159 @@ +contract_package_hash.rs - source
1
+2
+3
+4
+5
+6
+7
+8
+9
+10
+11
+12
+13
+14
+15
+16
+17
+18
+19
+20
+21
+22
+23
+24
+25
+26
+27
+28
+29
+30
+31
+32
+33
+34
+35
+36
+37
+38
+39
+40
+41
+42
+43
+44
+45
+46
+47
+48
+49
+50
+51
+52
+53
+54
+55
+56
+57
+58
+59
+60
+61
+62
+63
+64
+65
+66
+67
+68
+69
+70
+71
+72
+73
+74
+75
+76
+77
+78
+79
+
use casper_types::{
+    bytesrepr::{self, FromBytes, ToBytes, U8_SERIALIZED_LENGTH},
+    ContractPackageHash as _ContractPackageHash,
+};
+use wasm_bindgen::prelude::*;
+
+use crate::debug::error;
+
+#[wasm_bindgen]
+#[derive(Debug)]
+pub struct ContractPackageHash(_ContractPackageHash);
+
+#[wasm_bindgen]
+impl ContractPackageHash {
+    #[wasm_bindgen(constructor)]
+    #[wasm_bindgen(js_name = "fromString")]
+    pub fn new(input: &str) -> Result<ContractPackageHash, JsValue> {
+        let prefixed_input = format!("contract-package-{}", input);
+        ContractPackageHash::from_formatted_str(&prefixed_input)
+    }
+
+    #[wasm_bindgen(js_name = "fromFormattedStr")]
+    pub fn from_formatted_str(input: &str) -> Result<ContractPackageHash, JsValue> {
+        let contract_package_hash = _ContractPackageHash::from_formatted_str(input)
+            .map_err(|err| {
+                error(&format!(
+                    "Failed to parse ContractPackageHash from formatted string: {:?}",
+                    err
+                ))
+            })
+            .unwrap();
+        Ok(ContractPackageHash(contract_package_hash))
+    }
+
+    #[wasm_bindgen(js_name = "toFormattedString")]
+    pub fn to_formatted_string(&self) -> String {
+        self.0.to_formatted_string()
+    }
+
+    #[wasm_bindgen(js_name = "fromUint8Array")]
+    pub fn from_bytes(bytes: Vec<u8>) -> ContractPackageHash {
+        let contract_package_hash = _ContractPackageHash::try_from(&bytes)
+            .expect("Failed to convert bytes to ContractPackageHash");
+        ContractPackageHash(contract_package_hash)
+    }
+}
+
+impl From<ContractPackageHash> for _ContractPackageHash {
+    fn from(contract_package_hash: ContractPackageHash) -> Self {
+        contract_package_hash.0
+    }
+}
+
+impl From<_ContractPackageHash> for ContractPackageHash {
+    fn from(contract_package_hash: _ContractPackageHash) -> Self {
+        ContractPackageHash(contract_package_hash)
+    }
+}
+
+impl FromBytes for ContractPackageHash {
+    fn from_bytes(bytes: &[u8]) -> Result<(Self, &[u8]), bytesrepr::Error> {
+        let (contract_package_hash, remainder) = _ContractPackageHash::from_bytes(bytes)?;
+        Ok((ContractPackageHash(contract_package_hash), remainder))
+    }
+}
+
+impl ToBytes for ContractPackageHash {
+    fn to_bytes(&self) -> Result<Vec<u8>, bytesrepr::Error> {
+        self.0.to_bytes()
+    }
+
+    fn serialized_length(&self) -> usize {
+        U8_SERIALIZED_LENGTH + self.0.value().len() * U8_SERIALIZED_LENGTH
+    }
+
+    fn write_bytes(&self, bytes: &mut Vec<u8>) -> Result<(), bytesrepr::Error> {
+        self.0.write_bytes(bytes)
+    }
+}
+
\ No newline at end of file diff --git a/docs/api-rust/src/casper_rust_wasm_sdk/types/deploy.rs.html b/docs/api-rust/src/casper_rust_wasm_sdk/types/deploy.rs.html new file mode 100644 index 000000000..6e6300df6 --- /dev/null +++ b/docs/api-rust/src/casper_rust_wasm_sdk/types/deploy.rs.html @@ -0,0 +1,1457 @@ +deploy.rs - source
1
+2
+3
+4
+5
+6
+7
+8
+9
+10
+11
+12
+13
+14
+15
+16
+17
+18
+19
+20
+21
+22
+23
+24
+25
+26
+27
+28
+29
+30
+31
+32
+33
+34
+35
+36
+37
+38
+39
+40
+41
+42
+43
+44
+45
+46
+47
+48
+49
+50
+51
+52
+53
+54
+55
+56
+57
+58
+59
+60
+61
+62
+63
+64
+65
+66
+67
+68
+69
+70
+71
+72
+73
+74
+75
+76
+77
+78
+79
+80
+81
+82
+83
+84
+85
+86
+87
+88
+89
+90
+91
+92
+93
+94
+95
+96
+97
+98
+99
+100
+101
+102
+103
+104
+105
+106
+107
+108
+109
+110
+111
+112
+113
+114
+115
+116
+117
+118
+119
+120
+121
+122
+123
+124
+125
+126
+127
+128
+129
+130
+131
+132
+133
+134
+135
+136
+137
+138
+139
+140
+141
+142
+143
+144
+145
+146
+147
+148
+149
+150
+151
+152
+153
+154
+155
+156
+157
+158
+159
+160
+161
+162
+163
+164
+165
+166
+167
+168
+169
+170
+171
+172
+173
+174
+175
+176
+177
+178
+179
+180
+181
+182
+183
+184
+185
+186
+187
+188
+189
+190
+191
+192
+193
+194
+195
+196
+197
+198
+199
+200
+201
+202
+203
+204
+205
+206
+207
+208
+209
+210
+211
+212
+213
+214
+215
+216
+217
+218
+219
+220
+221
+222
+223
+224
+225
+226
+227
+228
+229
+230
+231
+232
+233
+234
+235
+236
+237
+238
+239
+240
+241
+242
+243
+244
+245
+246
+247
+248
+249
+250
+251
+252
+253
+254
+255
+256
+257
+258
+259
+260
+261
+262
+263
+264
+265
+266
+267
+268
+269
+270
+271
+272
+273
+274
+275
+276
+277
+278
+279
+280
+281
+282
+283
+284
+285
+286
+287
+288
+289
+290
+291
+292
+293
+294
+295
+296
+297
+298
+299
+300
+301
+302
+303
+304
+305
+306
+307
+308
+309
+310
+311
+312
+313
+314
+315
+316
+317
+318
+319
+320
+321
+322
+323
+324
+325
+326
+327
+328
+329
+330
+331
+332
+333
+334
+335
+336
+337
+338
+339
+340
+341
+342
+343
+344
+345
+346
+347
+348
+349
+350
+351
+352
+353
+354
+355
+356
+357
+358
+359
+360
+361
+362
+363
+364
+365
+366
+367
+368
+369
+370
+371
+372
+373
+374
+375
+376
+377
+378
+379
+380
+381
+382
+383
+384
+385
+386
+387
+388
+389
+390
+391
+392
+393
+394
+395
+396
+397
+398
+399
+400
+401
+402
+403
+404
+405
+406
+407
+408
+409
+410
+411
+412
+413
+414
+415
+416
+417
+418
+419
+420
+421
+422
+423
+424
+425
+426
+427
+428
+429
+430
+431
+432
+433
+434
+435
+436
+437
+438
+439
+440
+441
+442
+443
+444
+445
+446
+447
+448
+449
+450
+451
+452
+453
+454
+455
+456
+457
+458
+459
+460
+461
+462
+463
+464
+465
+466
+467
+468
+469
+470
+471
+472
+473
+474
+475
+476
+477
+478
+479
+480
+481
+482
+483
+484
+485
+486
+487
+488
+489
+490
+491
+492
+493
+494
+495
+496
+497
+498
+499
+500
+501
+502
+503
+504
+505
+506
+507
+508
+509
+510
+511
+512
+513
+514
+515
+516
+517
+518
+519
+520
+521
+522
+523
+524
+525
+526
+527
+528
+529
+530
+531
+532
+533
+534
+535
+536
+537
+538
+539
+540
+541
+542
+543
+544
+545
+546
+547
+548
+549
+550
+551
+552
+553
+554
+555
+556
+557
+558
+559
+560
+561
+562
+563
+564
+565
+566
+567
+568
+569
+570
+571
+572
+573
+574
+575
+576
+577
+578
+579
+580
+581
+582
+583
+584
+585
+586
+587
+588
+589
+590
+591
+592
+593
+594
+595
+596
+597
+598
+599
+600
+601
+602
+603
+604
+605
+606
+607
+608
+609
+610
+611
+612
+613
+614
+615
+616
+617
+618
+619
+620
+621
+622
+623
+624
+625
+626
+627
+628
+629
+630
+631
+632
+633
+634
+635
+636
+637
+638
+639
+640
+641
+642
+643
+644
+645
+646
+647
+648
+649
+650
+651
+652
+653
+654
+655
+656
+657
+658
+659
+660
+661
+662
+663
+664
+665
+666
+667
+668
+669
+670
+671
+672
+673
+674
+675
+676
+677
+678
+679
+680
+681
+682
+683
+684
+685
+686
+687
+688
+689
+690
+691
+692
+693
+694
+695
+696
+697
+698
+699
+700
+701
+702
+703
+704
+705
+706
+707
+708
+709
+710
+711
+712
+713
+714
+715
+716
+717
+718
+719
+720
+721
+722
+723
+724
+725
+726
+727
+728
+
use super::{
+    cl::bytes::Bytes,
+    contract_hash::ContractHash,
+    contract_package_hash::ContractPackageHash,
+    deploy_params::{
+        deploy_str_params::DeployStrParams, payment_str_params::PaymentStrParams,
+        session_str_params::SessionStrParams,
+    },
+    public_key::PublicKey,
+};
+use crate::{
+    debug::error,
+    helpers::{
+        get_current_timestamp, get_ttl_or_default, insert_arg, parse_timestamp, parse_ttl,
+        secret_key_from_pem,
+    },
+    make_deploy, make_transfer,
+};
+use casper_client::types::{TimeDiff, Timestamp, MAX_SERIALIZED_SIZE_OF_DEPLOY};
+use casper_types::{bytesrepr::Bytes as _Bytes, RuntimeArgs, SecretKey, U512};
+
+#[cfg(target_arch = "wasm32")]
+use crate::helpers::insert_js_value_arg;
+use casper_client::types::{Deploy as _Deploy, DeployBuilder, ExecutableDeployItem};
+#[cfg(target_arch = "wasm32")]
+use gloo_utils::format::JsValueSerdeExt;
+use serde::{Deserialize, Serialize};
+use wasm_bindgen::prelude::*;
+
+#[derive(Debug, Deserialize, Clone, Serialize)]
+#[wasm_bindgen]
+pub struct Deploy(_Deploy);
+
+#[derive(Default)]
+struct BuildParams {
+    secret_key: Option<String>,
+    chain_name: Option<String>,
+    ttl: Option<TimeDiff>,
+    timestamp: Option<Timestamp>,
+    session: Option<ExecutableDeployItem>,
+    payment: Option<ExecutableDeployItem>,
+    account: Option<PublicKey>,
+}
+
+#[wasm_bindgen]
+impl Deploy {
+    #[cfg(target_arch = "wasm32")]
+    #[wasm_bindgen(constructor)]
+    pub fn new(deploy: JsValue) -> Deploy {
+        let deploy: _Deploy = deploy
+            .into_serde()
+            .map_err(|err| error(&format!("Failed to deserialize Deploy: {:?}", err)))
+            .unwrap();
+        let deploy = match deploy.is_valid_size(MAX_SERIALIZED_SIZE_OF_DEPLOY) {
+            Ok(()) => deploy,
+            Err(err) => {
+                error(&format!("Deploy has not a valid size: {:?}", err));
+                deploy
+            }
+        };
+        deploy.into()
+    }
+
+    #[cfg(target_arch = "wasm32")]
+    #[wasm_bindgen(js_name = "toJson")]
+    pub fn to_json_js_alias(&self) -> JsValue {
+        match JsValue::from_serde(&self.0) {
+            Ok(json) => json,
+            Err(err) => {
+                error(&format!("Error serializing data to JSON: {:?}", err));
+                JsValue::null()
+            }
+        }
+    }
+
+    // static context
+    #[wasm_bindgen(js_name = "withPaymentAndSession")]
+    pub fn with_payment_and_session(
+        deploy_params: DeployStrParams,
+        session_params: SessionStrParams,
+        payment_params: PaymentStrParams,
+    ) -> Result<Deploy, String> {
+        make_deploy(deploy_params, session_params, payment_params)
+            .map(Into::into)
+            .map_err(|err| {
+                let err_msg = format!("Error creating session deploy: {}", err);
+                error(&err_msg);
+                err_msg
+            })
+    }
+
+    // static context
+    #[wasm_bindgen(js_name = "withTransfer")]
+    pub fn with_transfer(
+        amount: &str,
+        target_account: &str,
+        transfer_id: Option<String>,
+        deploy_params: DeployStrParams,
+        payment_params: PaymentStrParams,
+    ) -> Result<Deploy, String> {
+        make_transfer(
+            amount,
+            target_account,
+            transfer_id,
+            deploy_params,
+            payment_params,
+        )
+        .map(Into::into)
+        .map_err(|err| format!("Error creating transfer deploy: {}", err))
+    }
+
+    #[wasm_bindgen(js_name = "withTTL")]
+    pub fn with_ttl(&self, ttl: &str, secret_key: Option<String>) -> Deploy {
+        let mut ttl = parse_ttl(ttl);
+        if let Err(err) = &ttl {
+            error(&format!("Error parsing TTL: {}", err));
+            ttl = parse_ttl(&get_ttl_or_default(None));
+        }
+        self.build(BuildParams {
+            secret_key,
+            ttl: Some(ttl.unwrap()),
+            ..Default::default()
+        })
+    }
+
+    #[wasm_bindgen(js_name = "withTimestamp")]
+    pub fn with_timestamp(&self, timestamp: &str, secret_key: Option<String>) -> Deploy {
+        let mut timestamp = parse_timestamp(timestamp);
+        if let Err(err) = &timestamp {
+            error(&format!("Error parsing Timestamp: {}", err));
+            timestamp = parse_timestamp(&get_current_timestamp(None));
+        }
+        self.build(BuildParams {
+            secret_key,
+            timestamp: Some(timestamp.unwrap()),
+            ..Default::default()
+        })
+    }
+
+    #[wasm_bindgen(js_name = "withChainName")]
+    pub fn with_chain_name(&self, chain_name: &str, secret_key: Option<String>) -> Deploy {
+        self.build(BuildParams {
+            secret_key,
+            chain_name: Some(chain_name.to_string()),
+            ..Default::default()
+        })
+    }
+
+    #[wasm_bindgen(js_name = "withAccount")]
+    pub fn with_account(&self, account: PublicKey, secret_key: Option<String>) -> Deploy {
+        self.build(BuildParams {
+            secret_key,
+            account: account.into(),
+            ..Default::default()
+        })
+    }
+
+    #[wasm_bindgen(js_name = "withEntryPointName")]
+    pub fn with_entry_point_name(
+        &self,
+        entry_point_name: &str,
+        secret_key: Option<String>,
+    ) -> Deploy {
+        let deploy = self.0.clone();
+        let session = deploy.session();
+
+        self.build(BuildParams {
+            secret_key,
+            session: Some(modify_session(
+                session,
+                NewSessionParams {
+                    new_entry_point: Some(entry_point_name.to_string()),
+                    ..Default::default()
+                },
+            )),
+            ..Default::default()
+        })
+    }
+
+    #[wasm_bindgen(js_name = "withHash")]
+    pub fn with_hash(&self, hash: ContractHash, secret_key: Option<String>) -> Deploy {
+        let deploy = self.0.clone();
+        let session = deploy.session();
+
+        self.build(BuildParams {
+            secret_key,
+            session: Some(modify_session(
+                session,
+                NewSessionParams {
+                    new_hash: Some(hash),
+                    ..Default::default()
+                },
+            )),
+            ..Default::default()
+        })
+    }
+
+    #[wasm_bindgen(js_name = "withPackageHash")]
+    pub fn with_package_hash(
+        &self,
+        package_hash: ContractPackageHash,
+        secret_key: Option<String>,
+    ) -> Deploy {
+        let deploy = self.0.clone();
+        let session = deploy.session();
+
+        self.build(BuildParams {
+            secret_key,
+            session: Some(modify_session(
+                session,
+                NewSessionParams {
+                    new_package_hash: Some(package_hash),
+                    ..Default::default()
+                },
+            )),
+            ..Default::default()
+        })
+    }
+
+    #[wasm_bindgen(js_name = "withModuleBytes")]
+    pub fn with_module_bytes(&self, module_bytes: Bytes, secret_key: Option<String>) -> Deploy {
+        let deploy = self.0.clone();
+        let session = deploy.session();
+
+        self.build(BuildParams {
+            secret_key,
+            session: Some(modify_session(
+                session,
+                NewSessionParams {
+                    new_module_bytes: Some(&module_bytes),
+                    ..Default::default()
+                },
+            )),
+            ..Default::default()
+        })
+    }
+
+    #[wasm_bindgen(js_name = "withSecretKey")]
+    pub fn with_secret_key(&self, secret_key: Option<String>) -> Deploy {
+        self.build(BuildParams {
+            secret_key,
+            ..Default::default()
+        })
+    }
+
+    #[wasm_bindgen(js_name = "withStandardPayment")]
+    pub fn with_standard_payment(&self, amount: &str, secret_key: Option<String>) -> Deploy {
+        let cloned_amount = amount.to_string();
+        let amount = U512::from_dec_str(&cloned_amount);
+        if let Err(err) = amount {
+            error(&format!("Error converting amount: {:?}", err));
+            return self.0.clone().into();
+        }
+        self.build(BuildParams {
+            secret_key,
+            payment: Some(ExecutableDeployItem::new_standard_payment(amount.unwrap())),
+            ..Default::default()
+        })
+    }
+
+    // Load payment from json
+    #[cfg(target_arch = "wasm32")]
+    #[wasm_bindgen(js_name = "withPayment")]
+    pub fn with_payment(&self, payment: JsValue, secret_key: Option<String>) -> Deploy {
+        let payment_item_result = payment.into_serde();
+
+        match payment_item_result {
+            Ok(payment_item) => self.build(BuildParams {
+                secret_key,
+                payment: Some(payment_item),
+                ..Default::default()
+            }),
+            Err(err) => {
+                error(&format!("Error parsing payment: {}", err));
+                self.0.clone().into()
+            }
+        }
+    }
+
+    // Load session from json
+    #[cfg(target_arch = "wasm32")]
+    #[wasm_bindgen(js_name = "withSession")]
+    pub fn with_session(&self, session: JsValue, secret_key: Option<String>) -> Deploy {
+        let session_item_result = session.into_serde();
+
+        match session_item_result {
+            Ok(session_item) => self.build(BuildParams {
+                secret_key,
+                session: Some(session_item),
+                ..Default::default()
+            }),
+            Err(err) => {
+                error(&format!("Error parsing session: {}", err));
+                self.0.clone().into()
+            }
+        }
+    }
+
+    #[wasm_bindgen(js_name = "validateDeploySize")]
+    pub fn validate_deploy_size(&self) -> bool {
+        let deploy: _Deploy = self.0.clone();
+        match deploy.is_valid_size(MAX_SERIALIZED_SIZE_OF_DEPLOY) {
+            Ok(()) => true,
+            Err(err) => {
+                error(&format!("Deploy has not a valid size: {:?}", err));
+                false
+            }
+        }
+    }
+
+    // #[wasm_bindgen(js_name = "isValid")]
+    // pub fn is_valid(&self) -> bool {
+    //     let deploy: _Deploy = self.0.clone();
+    //     match deploy.is_valid() {
+    //         Ok(()) => true,
+    //         Err(err) => {
+    //             error(&format!("Deploy is not valid: {:?}", err));
+    //             false
+    //         }
+    //     }
+    // }
+
+    // #[wasm_bindgen(js_name = "hasValidHash")]
+    // pub fn has_valid_hash(&self) -> bool {
+    //     let deploy: _Deploy = self.0.clone();
+    //     match deploy.has_valid_hash() {
+    //         Ok(()) => true,
+    //         Err(err) => {
+    //             error(&format!("Deploy has not a valid hash: {:?}", err));
+    //             false
+    //         }
+    //     }
+    // }
+
+    // #[wasm_bindgen(js_name = "isExpired")]
+    // pub fn expired(&self) -> bool {
+    //     let deploy: _Deploy = self.0.clone();
+    //     let now: DateTime<Utc> = Utc::now();
+    //     let now_millis = now.timestamp_millis() as u64;
+    //     let timestamp = Timestamp::from(now_millis);
+    //     match deploy.expired(timestamp) {
+    //         false => false,
+    //         true => {
+    //             error("Deploy has expired");
+    //             true
+    //         }
+    //     }
+    // }
+
+    #[wasm_bindgen(js_name = "sign")]
+    pub fn sign(&mut self, secret_key: &str) -> Deploy {
+        let mut deploy: _Deploy = self.0.clone();
+        let secret_key_from_pem = secret_key_from_pem(secret_key);
+        if let Err(err) = secret_key_from_pem {
+            error(&format!("Error loading secret key: {:?}", err));
+            return deploy.into();
+        }
+        deploy.sign(&secret_key_from_pem.unwrap());
+        if let Err(err) = deploy.is_valid_size(MAX_SERIALIZED_SIZE_OF_DEPLOY) {
+            error(&format!("Deploy has not a valid size: {:?}", err));
+        }
+        deploy.into()
+    }
+
+    // #[wasm_bindgen(js_name = "footprint")]
+    // pub fn footprint_js_alias(&self) -> JsValue {
+    //     match JsValue::from_serde(&self.footprint()) {
+    //         Ok(json) => json,
+    //         Err(err) => {
+    //             error(&format!("Error serializing footprint to JSON: {:?}", err));
+    //             JsValue::null()
+    //         }
+    //     }
+    // }
+
+    // #[wasm_bindgen(js_name = "approvalsHash")]
+    // pub fn compute_approvals_hash_js_alias(&self) -> JsValue {
+    //     match JsValue::from_serde(&self.compute_approvals_hash()) {
+    //         Ok(json) => json,
+    //         Err(err) => {
+    //             error(&format!(
+    //                 "Error serializing compute_approvals_hash to JSON: {:?}",
+    //                 err
+    //             ));
+    //             JsValue::null()
+    //         }
+    //     }
+    // }
+
+    // #[wasm_bindgen(js_name = "isTransfer")]
+    // pub fn is_transfer(&self) -> bool {
+    //     self.0.clone().session().is_transfer()
+    // }
+
+    // #[wasm_bindgen(js_name = "isStandardPayment")]
+    // pub fn is_standard_payment(&self, phase: u8) -> bool {
+    //     if let Some(phase_enum) = Phase::from_u8(phase) {
+    //         self.0.clone().session().is_standard_payment(phase_enum)
+    //     } else {
+    //         false
+    //     }
+    // }
+
+    // #[wasm_bindgen(js_name = "isStoredContract")]
+    // pub fn is_stored_contract(&self) -> bool {
+    //     self.0.clone().session().is_stored_contract()
+    // }
+
+    // #[wasm_bindgen(js_name = "isStoredContractPackage")]
+    // pub fn is_stored_contract_package(&self) -> bool {
+    //     self.0.clone().session().is_stored_contract_package()
+    // }
+
+    // #[wasm_bindgen(js_name = "isModuleBytes")]
+    // pub fn is_module_bytes(&self) -> bool {
+    //     self.0.clone().session().is_module_bytes()
+    // }
+
+    // #[wasm_bindgen(js_name = "isByName")]
+    // pub fn is_by_name(&self) -> bool {
+    //     self.0.clone().session().is_by_name()
+    // }
+
+    // #[wasm_bindgen(js_name = "byName")]
+    // pub fn by_name(&self) -> Option<String> {
+    //     self.0.clone().session().by_name()
+    // }
+
+    // #[wasm_bindgen(js_name = "entryPointName")]
+    // pub fn entry_point_name(&self) -> String {
+    //     self.0.clone().session().entry_point_name().to_string()
+    // }
+
+    #[wasm_bindgen(js_name = "TTL")]
+    pub fn ttl(&self) -> String {
+        self.0.clone().header().ttl().to_string()
+    }
+
+    #[wasm_bindgen(js_name = "timestamp")]
+    pub fn timestamp(&self) -> String {
+        self.0.clone().header().timestamp().to_string()
+    }
+
+    #[wasm_bindgen(js_name = "chainName")]
+    pub fn chain_name(&self) -> String {
+        self.0.clone().header().chain_name().to_string()
+    }
+
+    #[wasm_bindgen(js_name = "account")]
+    pub fn account(&self) -> String {
+        let public_key: PublicKey = self.0.clone().header().account().clone().into();
+        public_key.to_string()
+    }
+
+    // #[wasm_bindgen(js_name = "paymentAmount")]
+    // pub fn payment_amount(&self, conv_rate: u64) -> String {
+    //     self.0
+    //         .clone()
+    //         .payment()
+    //         .payment_amount(conv_rate)
+    //         .unwrap()
+    //         .to_string()
+    // }
+
+    #[cfg(target_arch = "wasm32")]
+    #[wasm_bindgen(js_name = "args")]
+    pub fn args_js_alias(&self) -> JsValue {
+        match JsValue::from_serde(&self.args()) {
+            Ok(json) => json,
+            Err(err) => {
+                error(&format!("Error serializing args to JSON: {:?}", err));
+                JsValue::null()
+            }
+        }
+    }
+
+    #[cfg(target_arch = "wasm32")]
+    #[wasm_bindgen(js_name = "addArg")]
+    pub fn add_arg_js_alias(
+        &mut self,
+        js_value_arg: JsValue,
+        secret_key: Option<String>,
+    ) -> Deploy {
+        let deploy = self.0.clone();
+        let session = deploy.session();
+
+        let mut args = session.args().clone();
+        let new_args = insert_js_value_arg(&mut args, js_value_arg);
+        let new_session = modify_session(
+            session,
+            NewSessionParams {
+                new_args: Some(new_args),
+                ..Default::default()
+            },
+        );
+
+        self.build(BuildParams {
+            secret_key,
+            session: Some(new_session),
+            ..Default::default()
+        })
+    }
+}
+
+impl Deploy {
+    pub fn args(&self) -> RuntimeArgs {
+        self.0.clone().session().args().clone()
+    }
+
+    pub fn add_arg(&mut self, new_value_arg: String, secret_key: Option<String>) -> Deploy {
+        let deploy = self.0.clone();
+        let session = deploy.session();
+
+        let mut args = session.args().clone();
+        let new_args = insert_arg(&mut args, new_value_arg);
+        let new_session = modify_session(
+            session,
+            NewSessionParams {
+                new_args: Some(new_args),
+                ..Default::default()
+            },
+        );
+
+        self.build(BuildParams {
+            secret_key,
+            session: Some(new_session),
+            ..Default::default()
+        })
+    }
+
+    pub fn to_json_string(&self) -> Result<String, String> {
+        let result = serde_json::to_string(&self.0);
+        match result {
+            Ok(json) => Ok(json),
+            Err(err) => {
+                let err_msg = format!("Error serializing data to JSON: {:?}", err);
+                error(&err_msg);
+                Err(err_msg)
+            }
+        }
+    }
+
+    // pub fn footprint(&self) -> DeployFootprint {
+    //     let deploy: _Deploy = self.0.clone();
+    //     match deploy.footprint() {
+    //         Ok(footprint) => footprint,
+    //         Err(err) => {
+    //             error(&format!("Error getting footprint: {:?}", err));
+    //             deploy.footprint().unwrap()
+    //         }
+    //     }
+    // }
+
+    // pub fn compute_approvals_hash(&self) -> Result<DeployApprovalsHash, bytesrepr::Error> {
+    //     let deploy: _Deploy = self.0.clone();
+    //     deploy.compute_approvals_hash()
+    // }
+
+    fn build(&self, deploy_params: BuildParams) -> Deploy {
+        let BuildParams {
+            secret_key,
+            chain_name,
+            ttl,
+            timestamp,
+            session,
+            payment,
+            account,
+        } = deploy_params;
+        let deploy: _Deploy = self.0.clone();
+        let chain_name = if let Some(chain_name) = chain_name {
+            chain_name
+        } else {
+            deploy.header().chain_name().into()
+        };
+        let ttl = if let Some(ttl) = ttl {
+            ttl
+        } else {
+            deploy.header().ttl()
+        };
+        let timestamp = if let Some(timestamp) = timestamp {
+            timestamp
+        } else {
+            deploy.header().timestamp()
+        };
+        let session = if let Some(session) = session {
+            session
+        } else {
+            deploy.session().clone()
+        };
+        let payment = if let Some(payment) = payment {
+            payment
+        } else {
+            deploy.payment().clone()
+        };
+        let account = if let Some(account) = account {
+            account
+        } else {
+            deploy.header().account().clone().into()
+        };
+        let mut deploy_builder = DeployBuilder::new(chain_name, session)
+            .with_account(account.into())
+            .with_payment(payment)
+            .with_ttl(ttl)
+            .with_timestamp(timestamp);
+
+        let secret_key_result = secret_key
+            .clone()
+            .map(|key| secret_key_from_pem(&key).unwrap())
+            .unwrap_or_else(|| {
+                if secret_key.is_some() {
+                    error("Error loading secret key");
+                }
+                // Default will never be used in next if secret_key.is_some()
+                SecretKey::generate_ed25519().unwrap()
+            });
+        if secret_key.is_some() {
+            deploy_builder = deploy_builder.with_secret_key(&secret_key_result);
+        }
+        let deploy = deploy_builder
+            .build()
+            .map_err(|err| error(&format!("Failed to build deploy: {:?}", err)))
+            .unwrap();
+
+        let deploy: Deploy = deploy.into();
+        let _ = deploy.validate_deploy_size();
+        deploy
+    }
+}
+
+#[derive(Default)]
+struct NewSessionParams<'a> {
+    new_args: Option<&'a RuntimeArgs>,
+    new_hash: Option<ContractHash>,
+    new_package_hash: Option<ContractPackageHash>,
+    new_entry_point: Option<String>,
+    new_name: Option<String>,
+    new_version: Option<u32>,
+    new_module_bytes: Option<&'a Bytes>,
+}
+
+fn modify_session(
+    session: &ExecutableDeployItem,
+    NewSessionParams {
+        new_args,
+        new_hash,
+        new_package_hash,
+        new_entry_point,
+        new_name,
+        new_version,
+        new_module_bytes,
+    }: NewSessionParams,
+) -> ExecutableDeployItem {
+    match session {
+        ExecutableDeployItem::ModuleBytes { module_bytes, args } => {
+            let default: _Bytes = module_bytes.clone();
+            let new_bytes = new_module_bytes.unwrap();
+            let new: &Bytes = new_bytes;
+            let new_module_bytes: _Bytes = {
+                let new_bytes: _Bytes = _Bytes::from((*new).to_vec());
+                if new_bytes.len() > 0 {
+                    new_bytes
+                } else {
+                    default
+                }
+            };
+
+            ExecutableDeployItem::ModuleBytes {
+                module_bytes: new_module_bytes,
+                args: new_args.cloned().unwrap_or_else(|| args.clone()),
+            }
+        }
+        ExecutableDeployItem::StoredContractByHash {
+            hash,
+            entry_point,
+            args,
+        } => ExecutableDeployItem::StoredContractByHash {
+            hash: new_hash.unwrap_or((*hash).into()).into(),
+            entry_point: new_entry_point.unwrap_or_else(|| entry_point.clone()),
+            args: new_args.cloned().unwrap_or_else(|| args.clone()),
+        },
+        ExecutableDeployItem::StoredContractByName {
+            name,
+            entry_point,
+            args,
+        } => ExecutableDeployItem::StoredContractByName {
+            name: new_name.unwrap_or_else(|| name.clone()),
+            entry_point: new_entry_point.unwrap_or_else(|| entry_point.clone()),
+            args: new_args.cloned().unwrap_or_else(|| args.clone()),
+        },
+        ExecutableDeployItem::StoredVersionedContractByHash {
+            hash,
+            version,
+            entry_point,
+            args,
+        } => ExecutableDeployItem::StoredVersionedContractByHash {
+            hash: new_package_hash.unwrap_or((*hash).into()).into(),
+            version: Some(new_version.unwrap_or(version.unwrap_or(1))),
+            entry_point: new_entry_point.unwrap_or_else(|| entry_point.clone()),
+            args: new_args.cloned().unwrap_or_else(|| args.clone()),
+        },
+        ExecutableDeployItem::StoredVersionedContractByName {
+            name,
+            version,
+            entry_point,
+            args,
+        } => ExecutableDeployItem::StoredVersionedContractByName {
+            name: new_name.unwrap_or_else(|| name.clone()),
+            version: Some(new_version.unwrap_or(version.unwrap_or(1))),
+            entry_point: new_entry_point.unwrap_or_else(|| entry_point.clone()),
+            args: new_args.cloned().unwrap_or_else(|| args.clone()),
+        },
+        ExecutableDeployItem::Transfer { args } => ExecutableDeployItem::Transfer {
+            args: new_args.cloned().unwrap_or_else(|| args.clone()),
+        },
+    }
+}
+
+impl From<Deploy> for _Deploy {
+    fn from(deploy: Deploy) -> Self {
+        deploy.0
+    }
+}
+
+impl From<_Deploy> for Deploy {
+    fn from(deploy: _Deploy) -> Self {
+        Deploy(deploy)
+    }
+}
+
\ No newline at end of file diff --git a/docs/api-rust/src/casper_rust_wasm_sdk/types/deploy_hash.rs.html b/docs/api-rust/src/casper_rust_wasm_sdk/types/deploy_hash.rs.html new file mode 100644 index 000000000..52185191e --- /dev/null +++ b/docs/api-rust/src/casper_rust_wasm_sdk/types/deploy_hash.rs.html @@ -0,0 +1,187 @@ +deploy_hash.rs - source
1
+2
+3
+4
+5
+6
+7
+8
+9
+10
+11
+12
+13
+14
+15
+16
+17
+18
+19
+20
+21
+22
+23
+24
+25
+26
+27
+28
+29
+30
+31
+32
+33
+34
+35
+36
+37
+38
+39
+40
+41
+42
+43
+44
+45
+46
+47
+48
+49
+50
+51
+52
+53
+54
+55
+56
+57
+58
+59
+60
+61
+62
+63
+64
+65
+66
+67
+68
+69
+70
+71
+72
+73
+74
+75
+76
+77
+78
+79
+80
+81
+82
+83
+84
+85
+86
+87
+88
+89
+90
+91
+92
+93
+
use super::digest::Digest;
+use crate::debug::error;
+use casper_hashing::Digest as _Digest;
+use casper_types::{DeployHash as _DeployHash, DEPLOY_HASH_LENGTH};
+// Both Node and client exposes DeployHash
+use casper_client::types::DeployHash as _DeployHashClient;
+#[cfg(target_arch = "wasm32")]
+use gloo_utils::format::JsValueSerdeExt;
+use hex::decode;
+use serde::{Deserialize, Serialize};
+use wasm_bindgen::prelude::*;
+
+#[derive(Debug, Deserialize, Clone, Serialize)]
+#[wasm_bindgen]
+pub struct DeployHash(_DeployHash);
+
+#[wasm_bindgen]
+impl DeployHash {
+    #[wasm_bindgen(constructor)]
+    pub fn new(deploy_hash_hex_str: &str) -> Result<DeployHash, JsValue> {
+        let bytes = decode(deploy_hash_hex_str)
+            .map_err(|err| error(&format!("{:?}", err)))
+            .unwrap();
+        let mut hash = [0u8; _Digest::LENGTH];
+        hash.copy_from_slice(&bytes);
+        Self::from_digest(Digest::from(hash))
+    }
+
+    #[wasm_bindgen(js_name = "fromDigest")]
+    pub fn from_digest(digest: Digest) -> Result<DeployHash, JsValue> {
+        let mut hash_bytes = [0u8; DEPLOY_HASH_LENGTH];
+        let digest_bytes: &[u8] = digest.as_ref();
+        hash_bytes.copy_from_slice(&digest_bytes[..DEPLOY_HASH_LENGTH]);
+        Ok(_DeployHash::new(hash_bytes).into())
+    }
+
+    #[cfg(target_arch = "wasm32")]
+    #[wasm_bindgen(js_name = "toJson")]
+    pub fn to_json(&self) -> JsValue {
+        JsValue::from_serde(self).unwrap_or(JsValue::null())
+    }
+
+    #[cfg(target_arch = "wasm32")]
+    #[wasm_bindgen(js_name = "toString")]
+    pub fn to_string_js_alias(&self) -> String {
+        self.to_string()
+    }
+}
+
+impl ToString for DeployHash {
+    fn to_string(&self) -> String {
+        hex::encode(self.0)
+    }
+}
+
+impl From<DeployHash> for _DeployHash {
+    fn from(deploy_hash: DeployHash) -> Self {
+        deploy_hash.0
+    }
+}
+
+impl From<_DeployHash> for DeployHash {
+    fn from(deploy_hash: _DeployHash) -> Self {
+        DeployHash(deploy_hash)
+    }
+}
+
+impl From<Digest> for DeployHash {
+    fn from(digest: Digest) -> Self {
+        let mut hash_bytes = [0u8; DEPLOY_HASH_LENGTH];
+        let digest_bytes: &[u8] = digest.as_ref();
+        hash_bytes.copy_from_slice(&digest_bytes[..DEPLOY_HASH_LENGTH]);
+        _DeployHash::new(hash_bytes).into()
+    }
+}
+
+// Both Node and Client expose DeployHash but differently
+impl From<DeployHash> for _DeployHashClient {
+    fn from(deploy_hash: DeployHash) -> Self {
+        let mut bytes: [u8; DEPLOY_HASH_LENGTH] = [0; DEPLOY_HASH_LENGTH];
+        bytes.copy_from_slice(deploy_hash.0.as_ref());
+        let digest = Digest::from_digest(bytes.to_vec()).unwrap();
+        _DeployHashClient::new(digest.into())
+    }
+}
+
+impl From<_DeployHashClient> for DeployHash {
+    fn from(deploy_hash: _DeployHashClient) -> Self {
+        let digest = deploy_hash.inner();
+        let deploy_hash = _DeployHash::new(digest.into());
+        DeployHash(deploy_hash)
+    }
+}
+
\ No newline at end of file diff --git a/docs/api-rust/src/casper_rust_wasm_sdk/types/deploy_params/args_simple.rs.html b/docs/api-rust/src/casper_rust_wasm_sdk/types/deploy_params/args_simple.rs.html new file mode 100644 index 000000000..287d5200d --- /dev/null +++ b/docs/api-rust/src/casper_rust_wasm_sdk/types/deploy_params/args_simple.rs.html @@ -0,0 +1,113 @@ +args_simple.rs - source
1
+2
+3
+4
+5
+6
+7
+8
+9
+10
+11
+12
+13
+14
+15
+16
+17
+18
+19
+20
+21
+22
+23
+24
+25
+26
+27
+28
+29
+30
+31
+32
+33
+34
+35
+36
+37
+38
+39
+40
+41
+42
+43
+44
+45
+46
+47
+48
+49
+50
+51
+52
+53
+54
+55
+56
+
use js_sys::Array;
+use wasm_bindgen::prelude::*;
+
+#[wasm_bindgen]
+#[derive(Default, Debug, Clone)]
+pub struct ArgsSimple {
+    args: Vec<String>,
+}
+
+impl ArgsSimple {
+    pub fn new(args: JsValue) -> Self {
+        let args: Array = args.into();
+        let args: Vec<String> = args
+            .iter()
+            .map(|value| {
+                value
+                    .as_string()
+                    .unwrap_or_else(|| String::from("Invalid String"))
+            })
+            .collect();
+
+        ArgsSimple { args }
+    }
+
+    pub fn args(&self) -> &[String] {
+        &self.args
+    }
+}
+
+impl From<ArgsSimple> for Vec<String> {
+    fn from(args: ArgsSimple) -> Self {
+        args.args
+    }
+}
+
+impl From<Vec<String>> for ArgsSimple {
+    fn from(args: Vec<String>) -> Self {
+        ArgsSimple { args }
+    }
+}
+
+impl FromIterator<JsValue> for ArgsSimple {
+    fn from_iter<I: IntoIterator<Item = JsValue>>(iter: I) -> Self {
+        let args: Vec<String> = iter
+            .into_iter()
+            .map(|value| {
+                if let Some(str_value) = value.as_string() {
+                    str_value
+                } else {
+                    String::from("")
+                }
+            })
+            .collect();
+        ArgsSimple { args }
+    }
+}
+
\ No newline at end of file diff --git a/docs/api-rust/src/casper_rust_wasm_sdk/types/deploy_params/deploy_str_params.rs.html b/docs/api-rust/src/casper_rust_wasm_sdk/types/deploy_params/deploy_str_params.rs.html new file mode 100644 index 000000000..8b4555d4d --- /dev/null +++ b/docs/api-rust/src/casper_rust_wasm_sdk/types/deploy_params/deploy_str_params.rs.html @@ -0,0 +1,293 @@ +deploy_str_params.rs - source
1
+2
+3
+4
+5
+6
+7
+8
+9
+10
+11
+12
+13
+14
+15
+16
+17
+18
+19
+20
+21
+22
+23
+24
+25
+26
+27
+28
+29
+30
+31
+32
+33
+34
+35
+36
+37
+38
+39
+40
+41
+42
+43
+44
+45
+46
+47
+48
+49
+50
+51
+52
+53
+54
+55
+56
+57
+58
+59
+60
+61
+62
+63
+64
+65
+66
+67
+68
+69
+70
+71
+72
+73
+74
+75
+76
+77
+78
+79
+80
+81
+82
+83
+84
+85
+86
+87
+88
+89
+90
+91
+92
+93
+94
+95
+96
+97
+98
+99
+100
+101
+102
+103
+104
+105
+106
+107
+108
+109
+110
+111
+112
+113
+114
+115
+116
+117
+118
+119
+120
+121
+122
+123
+124
+125
+126
+127
+128
+129
+130
+131
+132
+133
+134
+135
+136
+137
+138
+139
+140
+141
+142
+143
+144
+145
+146
+
use crate::helpers::get_current_timestamp;
+use crate::helpers::get_str_or_default;
+use crate::helpers::get_ttl_or_default;
+use casper_client::cli::DeployStrParams as _DeployStrParams;
+use once_cell::sync::OnceCell;
+use wasm_bindgen::prelude::*;
+
+#[wasm_bindgen]
+#[derive(Debug, Clone)]
+pub struct DeployStrParams {
+    secret_key: OnceCell<String>,
+    timestamp: OnceCell<String>,
+    ttl: OnceCell<String>,
+    chain_name: OnceCell<String>,
+    session_account: OnceCell<String>,
+}
+
+impl Default for DeployStrParams {
+    fn default() -> Self {
+        DeployStrParams {
+            secret_key: OnceCell::new(),
+            timestamp: OnceCell::new(),
+            ttl: OnceCell::new(),
+            chain_name: OnceCell::new(),
+            session_account: OnceCell::new(),
+        }
+    }
+}
+
+#[wasm_bindgen]
+impl DeployStrParams {
+    #[wasm_bindgen(constructor)]
+    pub fn new(
+        chain_name: &str,
+        session_account: &str,
+        secret_key: Option<String>,
+        timestamp: Option<String>,
+        ttl: Option<String>,
+    ) -> Self {
+        let deploy_params = DeployStrParams::default();
+        deploy_params.set_chain_name(chain_name);
+        deploy_params.set_session_account(session_account);
+        if let Some(secret_key) = secret_key {
+            deploy_params.set_secret_key(&secret_key);
+        };
+        deploy_params.set_timestamp(timestamp);
+        deploy_params.set_ttl(ttl);
+        deploy_params
+    }
+
+    // Getter and setter for secret_key field
+    #[wasm_bindgen(getter)]
+    pub fn secret_key(&self) -> Option<String> {
+        self.secret_key.get().cloned()
+    }
+
+    #[wasm_bindgen(setter)]
+    pub fn set_secret_key(&self, secret_key: &str) {
+        self.secret_key.set(secret_key.to_string()).unwrap();
+    }
+
+    // Getter and setter for timestamp field
+    #[wasm_bindgen(getter)]
+    pub fn timestamp(&self) -> Option<String> {
+        self.timestamp.get().cloned()
+    }
+
+    #[wasm_bindgen(setter)]
+    pub fn set_timestamp(&self, timestamp: Option<String>) {
+        if let Some(mut timestamp) = timestamp {
+            if timestamp.is_empty() {
+                timestamp = get_current_timestamp(None);
+            }
+            self.timestamp.set(timestamp.to_string()).unwrap();
+        } else {
+            let timestamp = get_current_timestamp(timestamp);
+            self.timestamp.set(timestamp).unwrap();
+        };
+    }
+
+    #[wasm_bindgen(js_name = "setDefaultTimestamp")]
+    pub fn set_default_timestamp(&self) {
+        let current_timestamp = get_current_timestamp(None);
+        self.timestamp.set(current_timestamp).unwrap();
+    }
+
+    // Getter and setter for ttl field
+    #[wasm_bindgen(getter)]
+    pub fn ttl(&self) -> Option<String> {
+        self.ttl.get().cloned()
+    }
+
+    #[wasm_bindgen(setter)]
+    pub fn set_ttl(&self, ttl: Option<String>) {
+        if let Some(mut ttl) = ttl {
+            if ttl.is_empty() {
+                ttl = get_ttl_or_default(None);
+            }
+            self.ttl.set(ttl.to_string()).unwrap();
+        } else {
+            let ttl = get_ttl_or_default(ttl.as_deref());
+            self.ttl.set(ttl).unwrap();
+        };
+    }
+
+    #[wasm_bindgen(js_name = "setDefaultTTL")]
+    pub fn set_default_ttl(&self) {
+        let ttl = get_ttl_or_default(None);
+        self.ttl.set(ttl).unwrap();
+    }
+
+    // Getter and setter for chain_name field
+    #[wasm_bindgen(getter)]
+    pub fn chain_name(&self) -> Option<String> {
+        self.chain_name.get().cloned()
+    }
+
+    #[wasm_bindgen(setter)]
+    pub fn set_chain_name(&self, chain_name: &str) {
+        self.chain_name.set(chain_name.to_string()).unwrap();
+    }
+
+    // Getter and setter for session_account field
+    #[wasm_bindgen(getter)]
+    pub fn session_account(&self) -> Option<String> {
+        self.session_account.get().cloned()
+    }
+
+    #[wasm_bindgen(setter)]
+    pub fn set_session_account(&self, session_account: &str) {
+        self.session_account
+            .set(session_account.to_string())
+            .unwrap();
+    }
+}
+
+// Convert DeployStrParams to casper_client::cli::DeployStrParams
+pub fn deploy_str_params_to_casper_client(deploy_params: &DeployStrParams) -> _DeployStrParams<'_> {
+    _DeployStrParams {
+        secret_key: get_str_or_default(deploy_params.secret_key.get()),
+        timestamp: get_str_or_default(deploy_params.timestamp.get()),
+        ttl: get_str_or_default(deploy_params.ttl.get()),
+        chain_name: get_str_or_default(deploy_params.chain_name.get()),
+        session_account: get_str_or_default(deploy_params.session_account.get()),
+    }
+}
+
\ No newline at end of file diff --git a/docs/api-rust/src/casper_rust_wasm_sdk/types/deploy_params/dictionary_item_str_params.rs.html b/docs/api-rust/src/casper_rust_wasm_sdk/types/deploy_params/dictionary_item_str_params.rs.html new file mode 100644 index 000000000..a2e1800a1 --- /dev/null +++ b/docs/api-rust/src/casper_rust_wasm_sdk/types/deploy_params/dictionary_item_str_params.rs.html @@ -0,0 +1,471 @@ +dictionary_item_str_params.rs - source
1
+2
+3
+4
+5
+6
+7
+8
+9
+10
+11
+12
+13
+14
+15
+16
+17
+18
+19
+20
+21
+22
+23
+24
+25
+26
+27
+28
+29
+30
+31
+32
+33
+34
+35
+36
+37
+38
+39
+40
+41
+42
+43
+44
+45
+46
+47
+48
+49
+50
+51
+52
+53
+54
+55
+56
+57
+58
+59
+60
+61
+62
+63
+64
+65
+66
+67
+68
+69
+70
+71
+72
+73
+74
+75
+76
+77
+78
+79
+80
+81
+82
+83
+84
+85
+86
+87
+88
+89
+90
+91
+92
+93
+94
+95
+96
+97
+98
+99
+100
+101
+102
+103
+104
+105
+106
+107
+108
+109
+110
+111
+112
+113
+114
+115
+116
+117
+118
+119
+120
+121
+122
+123
+124
+125
+126
+127
+128
+129
+130
+131
+132
+133
+134
+135
+136
+137
+138
+139
+140
+141
+142
+143
+144
+145
+146
+147
+148
+149
+150
+151
+152
+153
+154
+155
+156
+157
+158
+159
+160
+161
+162
+163
+164
+165
+166
+167
+168
+169
+170
+171
+172
+173
+174
+175
+176
+177
+178
+179
+180
+181
+182
+183
+184
+185
+186
+187
+188
+189
+190
+191
+192
+193
+194
+195
+196
+197
+198
+199
+200
+201
+202
+203
+204
+205
+206
+207
+208
+209
+210
+211
+212
+213
+214
+215
+216
+217
+218
+219
+220
+221
+222
+223
+224
+225
+226
+227
+228
+229
+230
+231
+232
+233
+234
+235
+
use crate::{debug::error, helpers::get_str_or_default, types::sdk_error::SdkError};
+use casper_client::cli::DictionaryItemStrParams as _DictionaryItemStrParams;
+use casper_types::URef;
+#[cfg(target_arch = "wasm32")]
+use gloo_utils::format::JsValueSerdeExt;
+use once_cell::sync::OnceCell;
+use serde::{de::Error as SerdeError, Deserialize, Serialize, Serializer};
+use wasm_bindgen::prelude::*;
+
+#[derive(Debug, Clone, Deserialize, Serialize)]
+pub struct AccountNamedKey {
+    #[serde(serialize_with = "serialize_once_cell")]
+    #[serde(deserialize_with = "deserialize_once_cell")]
+    key: OnceCell<String>,
+    #[serde(serialize_with = "serialize_once_cell")]
+    #[serde(deserialize_with = "deserialize_once_cell")]
+    dictionary_name: OnceCell<String>,
+    #[serde(serialize_with = "serialize_once_cell")]
+    #[serde(deserialize_with = "deserialize_once_cell")]
+    dictionary_item_key: OnceCell<String>,
+}
+
+#[derive(Debug, Clone, Deserialize, Serialize)]
+pub struct ContractNamedKey {
+    #[serde(serialize_with = "serialize_once_cell")]
+    #[serde(deserialize_with = "deserialize_once_cell")]
+    key: OnceCell<String>,
+    #[serde(serialize_with = "serialize_once_cell")]
+    #[serde(deserialize_with = "deserialize_once_cell")]
+    dictionary_name: OnceCell<String>,
+    #[serde(serialize_with = "serialize_once_cell")]
+    #[serde(deserialize_with = "deserialize_once_cell")]
+    dictionary_item_key: OnceCell<String>,
+}
+
+#[derive(Debug, Clone, Deserialize, Serialize)]
+pub struct URefVariant {
+    #[serde(serialize_with = "serialize_once_cell")]
+    #[serde(deserialize_with = "deserialize_once_cell")]
+    seed_uref: OnceCell<String>,
+    #[serde(serialize_with = "serialize_once_cell")]
+    #[serde(deserialize_with = "deserialize_once_cell")]
+    dictionary_item_key: OnceCell<String>,
+}
+
+#[derive(Debug, Clone, Deserialize, Serialize)]
+pub struct DictionaryVariant {
+    #[serde(serialize_with = "serialize_once_cell")]
+    #[serde(deserialize_with = "deserialize_once_cell")]
+    value: OnceCell<String>,
+}
+
+fn deserialize_once_cell<'de, D>(deserializer: D) -> Result<OnceCell<String>, D::Error>
+where
+    D: serde::Deserializer<'de>,
+{
+    let value: String = Deserialize::deserialize(deserializer)?;
+    let cell = OnceCell::new();
+    cell.set(value)
+        .map(|_| cell)
+        .map_err(|_| SerdeError::custom("Could not deser DictionaryItemStrParams"))
+}
+
+fn serialize_once_cell<S>(value: &OnceCell<String>, serializer: S) -> Result<S::Ok, S::Error>
+where
+    S: Serializer,
+{
+    let value_str = value.get().map(|s| s.as_str()).unwrap_or_default();
+    serializer.serialize_str(value_str)
+}
+
+#[wasm_bindgen]
+#[derive(Debug, Clone, Deserialize, Serialize)]
+pub struct DictionaryItemStrParams {
+    account_named_key: Option<AccountNamedKey>,
+    contract_named_key: Option<ContractNamedKey>,
+    uref: Option<URefVariant>,
+    dictionary: Option<DictionaryVariant>,
+}
+
+#[wasm_bindgen]
+impl DictionaryItemStrParams {
+    #[wasm_bindgen(constructor)]
+    pub fn new() -> Self {
+        DictionaryItemStrParams {
+            account_named_key: None,
+            contract_named_key: None,
+            uref: None,
+            dictionary: None,
+        }
+    }
+
+    #[wasm_bindgen(js_name = "setAccountNamedKey")]
+    pub fn set_account_named_key(
+        &mut self,
+        key: &str,
+        dictionary_name: &str,
+        dictionary_item_key: &str,
+    ) {
+        self.account_named_key = Some(AccountNamedKey {
+            key: OnceCell::new(),
+            dictionary_name: OnceCell::new(),
+            dictionary_item_key: OnceCell::new(),
+        });
+
+        if let Some(account_named_key) = &mut self.account_named_key {
+            let _ = account_named_key.key.set(key.to_string());
+            let _ = account_named_key
+                .dictionary_name
+                .set(dictionary_name.to_string());
+            let _ = account_named_key
+                .dictionary_item_key
+                .set(dictionary_item_key.to_string());
+        }
+    }
+
+    #[wasm_bindgen(js_name = "setContractNamedKey")]
+    pub fn set_contract_named_key(
+        &mut self,
+        key: &str,
+        dictionary_name: &str,
+        dictionary_item_key: &str,
+    ) {
+        self.contract_named_key = Some(ContractNamedKey {
+            key: OnceCell::new(),
+            dictionary_name: OnceCell::new(),
+            dictionary_item_key: OnceCell::new(),
+        });
+
+        if let Some(contract_named_key) = &mut self.contract_named_key {
+            let _ = contract_named_key.key.set(key.to_string());
+            let _ = contract_named_key
+                .dictionary_name
+                .set(dictionary_name.to_string());
+            let _ = contract_named_key
+                .dictionary_item_key
+                .set(dictionary_item_key.to_string());
+        }
+    }
+
+    #[wasm_bindgen(js_name = "setUref")]
+    pub fn set_uref(&mut self, seed_uref: &str, dictionary_item_key: &str) {
+        self.uref = Some(URefVariant {
+            seed_uref: OnceCell::new(),
+            dictionary_item_key: OnceCell::new(),
+        });
+        if let Some(uref) = &mut self.uref {
+            let seed_uref = URef::from_formatted_str(seed_uref)
+                .map_err(|error| SdkError::FailedToParseURef {
+                    context: "dictionary item uref",
+                    error,
+                })
+                .unwrap();
+            uref.seed_uref.set(seed_uref.to_formatted_string()).unwrap();
+            let _ = uref
+                .dictionary_item_key
+                .set(dictionary_item_key.to_string());
+        }
+    }
+
+    #[wasm_bindgen(js_name = "setDictionary")]
+    pub fn set_dictionary(&mut self, value: &str) {
+        self.dictionary = Some(DictionaryVariant {
+            value: OnceCell::new(),
+        });
+
+        if let Some(dictionary) = &mut self.dictionary {
+            let _ = dictionary.value.set(value.to_string());
+        }
+    }
+
+    #[cfg(target_arch = "wasm32")]
+    #[wasm_bindgen(js_name = "toJson")]
+    pub fn to_json(&self) -> JsValue {
+        JsValue::from_serde(self).unwrap_or(JsValue::null())
+    }
+}
+
+impl Default for DictionaryItemStrParams {
+    fn default() -> Self {
+        Self::new()
+    }
+}
+
+impl DictionaryItemStrParams {
+    pub fn account_named_key(&self) -> Option<AccountNamedKey> {
+        self.account_named_key.clone()
+    }
+    pub fn contract_named_key(&self) -> Option<ContractNamedKey> {
+        self.contract_named_key.clone()
+    }
+    pub fn uref(&self) -> Option<URefVariant> {
+        self.uref.clone()
+    }
+    pub fn dictionary(&self) -> Option<DictionaryVariant> {
+        self.dictionary.clone()
+    }
+}
+
+pub fn dictionary_item_str_params_to_casper_client(
+    dictionary_item_params: &DictionaryItemStrParams,
+) -> _DictionaryItemStrParams<'_> {
+    if let Some(account_named_key) = &dictionary_item_params.account_named_key {
+        let account_hash = get_str_or_default(account_named_key.key.get());
+        let dictionary_name = get_str_or_default(account_named_key.dictionary_name.get());
+        let dictionary_item_key = get_str_or_default(account_named_key.dictionary_item_key.get());
+        _DictionaryItemStrParams::AccountNamedKey {
+            account_hash,
+            dictionary_name,
+            dictionary_item_key,
+        }
+    } else if let Some(contract_named_key) = &dictionary_item_params.contract_named_key {
+        let hash_addr = get_str_or_default(contract_named_key.key.get());
+        let dictionary_name = get_str_or_default(contract_named_key.dictionary_name.get());
+        let dictionary_item_key = get_str_or_default(contract_named_key.dictionary_item_key.get());
+        return _DictionaryItemStrParams::ContractNamedKey {
+            hash_addr,
+            dictionary_name,
+            dictionary_item_key,
+        };
+    } else if let Some(uref_variant) = &dictionary_item_params.uref {
+        let seed_uref = get_str_or_default(uref_variant.seed_uref.get());
+        let dictionary_item_key = get_str_or_default(uref_variant.dictionary_item_key.get());
+        return _DictionaryItemStrParams::URef {
+            seed_uref,
+            dictionary_item_key,
+        };
+    } else if let Some(dictionary_variant) = &dictionary_item_params.dictionary {
+        let value = get_str_or_default(dictionary_variant.value.get());
+        return _DictionaryItemStrParams::Dictionary(value);
+    } else {
+        error("Error converting dictionary_item_params");
+        return _DictionaryItemStrParams::Dictionary("");
+    }
+}
+
\ No newline at end of file diff --git a/docs/api-rust/src/casper_rust_wasm_sdk/types/deploy_params/mod.rs.html b/docs/api-rust/src/casper_rust_wasm_sdk/types/deploy_params/mod.rs.html new file mode 100644 index 000000000..17639b025 --- /dev/null +++ b/docs/api-rust/src/casper_rust_wasm_sdk/types/deploy_params/mod.rs.html @@ -0,0 +1,11 @@ +mod.rs - source
1
+2
+3
+4
+5
+
pub mod args_simple;
+pub mod deploy_str_params;
+pub mod dictionary_item_str_params;
+pub mod payment_str_params;
+pub mod session_str_params;
+
\ No newline at end of file diff --git a/docs/api-rust/src/casper_rust_wasm_sdk/types/deploy_params/payment_str_params.rs.html b/docs/api-rust/src/casper_rust_wasm_sdk/types/deploy_params/payment_str_params.rs.html new file mode 100644 index 000000000..a5daf01c2 --- /dev/null +++ b/docs/api-rust/src/casper_rust_wasm_sdk/types/deploy_params/payment_str_params.rs.html @@ -0,0 +1,523 @@ +payment_str_params.rs - source
1
+2
+3
+4
+5
+6
+7
+8
+9
+10
+11
+12
+13
+14
+15
+16
+17
+18
+19
+20
+21
+22
+23
+24
+25
+26
+27
+28
+29
+30
+31
+32
+33
+34
+35
+36
+37
+38
+39
+40
+41
+42
+43
+44
+45
+46
+47
+48
+49
+50
+51
+52
+53
+54
+55
+56
+57
+58
+59
+60
+61
+62
+63
+64
+65
+66
+67
+68
+69
+70
+71
+72
+73
+74
+75
+76
+77
+78
+79
+80
+81
+82
+83
+84
+85
+86
+87
+88
+89
+90
+91
+92
+93
+94
+95
+96
+97
+98
+99
+100
+101
+102
+103
+104
+105
+106
+107
+108
+109
+110
+111
+112
+113
+114
+115
+116
+117
+118
+119
+120
+121
+122
+123
+124
+125
+126
+127
+128
+129
+130
+131
+132
+133
+134
+135
+136
+137
+138
+139
+140
+141
+142
+143
+144
+145
+146
+147
+148
+149
+150
+151
+152
+153
+154
+155
+156
+157
+158
+159
+160
+161
+162
+163
+164
+165
+166
+167
+168
+169
+170
+171
+172
+173
+174
+175
+176
+177
+178
+179
+180
+181
+182
+183
+184
+185
+186
+187
+188
+189
+190
+191
+192
+193
+194
+195
+196
+197
+198
+199
+200
+201
+202
+203
+204
+205
+206
+207
+208
+209
+210
+211
+212
+213
+214
+215
+216
+217
+218
+219
+220
+221
+222
+223
+224
+225
+226
+227
+228
+229
+230
+231
+232
+233
+234
+235
+236
+237
+238
+239
+240
+241
+242
+243
+244
+245
+246
+247
+248
+249
+250
+251
+252
+253
+254
+255
+256
+257
+258
+259
+260
+261
+
use super::args_simple::ArgsSimple;
+use crate::helpers::get_str_or_default;
+use casper_client::cli::PaymentStrParams as _PaymentStrParams;
+use js_sys::Array;
+use once_cell::sync::OnceCell;
+use wasm_bindgen::prelude::*;
+
+#[wasm_bindgen]
+#[derive(Default, Debug, Clone)]
+pub struct PaymentStrParams {
+    payment_amount: OnceCell<String>,
+    payment_hash: OnceCell<String>,
+    payment_name: OnceCell<String>,
+    payment_package_hash: OnceCell<String>,
+    payment_package_name: OnceCell<String>,
+    payment_path: OnceCell<String>,
+    payment_args_simple: OnceCell<ArgsSimple>,
+    payment_args_json: OnceCell<String>,
+    payment_args_complex: OnceCell<String>,
+    payment_version: OnceCell<String>,
+    payment_entry_point: OnceCell<String>,
+}
+
+#[wasm_bindgen]
+impl PaymentStrParams {
+    #[allow(clippy::too_many_arguments)]
+    #[wasm_bindgen(constructor)]
+    pub fn new(
+        payment_amount: Option<String>,
+        payment_hash: Option<String>,
+        payment_name: Option<String>,
+        payment_package_hash: Option<String>,
+        payment_package_name: Option<String>,
+        payment_path: Option<String>,
+        payment_args_simple: Option<Array>,
+        payment_args_json: Option<String>,
+        payment_args_complex: Option<String>,
+        payment_version: Option<String>,
+        payment_entry_point: Option<String>,
+    ) -> Self {
+        let payment_params = PaymentStrParams::default();
+        if let Some(payment_amount) = payment_amount {
+            payment_params.set_payment_amount(&payment_amount);
+        };
+        if let Some(payment_hash) = payment_hash {
+            payment_params.set_payment_hash(&payment_hash);
+        };
+        if let Some(payment_name) = payment_name {
+            payment_params.set_payment_name(&payment_name);
+        };
+        if let Some(payment_package_hash) = payment_package_hash {
+            payment_params.set_payment_package_hash(&payment_package_hash);
+        };
+        if let Some(payment_package_name) = payment_package_name {
+            payment_params.set_payment_package_name(&payment_package_name);
+        };
+        if let Some(payment_path) = payment_path {
+            payment_params.set_payment_path(&payment_path);
+        };
+        if let Some(payment_args_simple) = payment_args_simple {
+            payment_params.set_payment_args_simple(payment_args_simple);
+        };
+        if let Some(payment_args_json) = payment_args_json {
+            payment_params.set_payment_args_json(&payment_args_json);
+        };
+        if let Some(payment_args_complex) = payment_args_complex {
+            payment_params.set_payment_args_complex(&payment_args_complex);
+        };
+        if let Some(payment_version) = payment_version {
+            payment_params.set_payment_version(&payment_version);
+        };
+        if let Some(payment_entry_point) = payment_entry_point {
+            payment_params.set_payment_entry_point(&payment_entry_point);
+        };
+
+        payment_params
+    }
+
+    #[wasm_bindgen(getter)]
+    pub fn payment_amount(&self) -> Option<String> {
+        self.payment_amount.get().cloned()
+    }
+
+    #[wasm_bindgen(setter)]
+    pub fn set_payment_amount(&self, payment_amount: &str) {
+        self.payment_amount.set(payment_amount.to_string()).unwrap();
+    }
+
+    #[wasm_bindgen(getter)]
+    pub fn payment_hash(&self) -> Option<String> {
+        self.payment_hash.get().cloned()
+    }
+
+    #[wasm_bindgen(setter)]
+    pub fn set_payment_hash(&self, payment_hash: &str) {
+        self.payment_hash.set(payment_hash.to_string()).unwrap();
+    }
+
+    #[wasm_bindgen(getter)]
+    pub fn payment_name(&self) -> Option<String> {
+        self.payment_name.get().cloned()
+    }
+
+    #[wasm_bindgen(setter)]
+    pub fn set_payment_name(&self, payment_name: &str) {
+        self.payment_name.set(payment_name.to_string()).unwrap();
+    }
+
+    #[wasm_bindgen(getter)]
+    pub fn payment_package_hash(&self) -> Option<String> {
+        self.payment_package_hash.get().cloned()
+    }
+
+    #[wasm_bindgen(setter)]
+    pub fn set_payment_package_hash(&self, payment_package_hash: &str) {
+        self.payment_package_hash
+            .set(payment_package_hash.to_string())
+            .unwrap();
+    }
+
+    #[wasm_bindgen(getter)]
+    pub fn payment_package_name(&self) -> Option<String> {
+        self.payment_package_name.get().cloned()
+    }
+
+    #[wasm_bindgen(setter)]
+    pub fn set_payment_package_name(&self, payment_package_name: &str) {
+        self.payment_package_name
+            .set(payment_package_name.to_string())
+            .unwrap();
+    }
+
+    #[wasm_bindgen(getter)]
+    pub fn payment_path(&self) -> Option<String> {
+        self.payment_path.get().cloned()
+    }
+
+    #[wasm_bindgen(setter)]
+    pub fn set_payment_path(&self, payment_path: &str) {
+        self.payment_path.set(payment_path.to_string()).unwrap();
+    }
+
+    #[wasm_bindgen(getter)]
+    pub fn payment_args_simple(&self) -> Option<Array> {
+        let args_simple = self.payment_args_simple.get()?;
+        let array: Array = args_simple.args().iter().map(JsValue::from).collect();
+        Some(array)
+    }
+
+    #[wasm_bindgen(setter)]
+    pub fn set_payment_args_simple(&self, payment_args_simple: Array) {
+        let args_simple: ArgsSimple = payment_args_simple.into_iter().collect();
+        self.payment_args_simple.set(args_simple).unwrap();
+    }
+
+    #[wasm_bindgen(getter)]
+    pub fn payment_args_json(&self) -> Option<String> {
+        self.payment_args_json.get().cloned()
+    }
+
+    #[wasm_bindgen(setter)]
+    pub fn set_payment_args_json(&self, payment_args_json: &str) {
+        self.payment_args_json
+            .set(payment_args_json.to_string())
+            .unwrap();
+    }
+
+    #[wasm_bindgen(getter)]
+    pub fn payment_args_complex(&self) -> Option<String> {
+        self.payment_args_complex.get().cloned()
+    }
+
+    #[wasm_bindgen(setter)]
+    pub fn set_payment_args_complex(&self, payment_args_complex: &str) {
+        self.payment_args_complex
+            .set(payment_args_complex.to_string())
+            .unwrap();
+    }
+
+    #[wasm_bindgen(getter)]
+    pub fn payment_version(&self) -> Option<String> {
+        self.payment_version.get().cloned()
+    }
+
+    #[wasm_bindgen(setter)]
+    pub fn set_payment_version(&self, payment_version: &str) {
+        self.payment_version
+            .set(payment_version.to_string())
+            .unwrap();
+    }
+
+    #[wasm_bindgen(getter)]
+    pub fn payment_entry_point(&self) -> Option<String> {
+        self.payment_entry_point.get().cloned()
+    }
+
+    #[wasm_bindgen(setter)]
+    pub fn set_payment_entry_point(&self, payment_entry_point: &str) {
+        self.payment_entry_point
+            .set(payment_entry_point.to_string())
+            .unwrap();
+    }
+}
+
+// Convert PaymentStrParams to casper_client::cli::PaymentStrParams
+pub fn payment_str_params_to_casper_client(
+    payment_params: &PaymentStrParams,
+) -> _PaymentStrParams<'_> {
+    let payment_args_simple: Vec<&str> = payment_params
+        .payment_args_simple
+        .get()
+        .map_or_else(Vec::new, |args_simple| {
+            args_simple.args().iter().map(String::as_str).collect()
+        });
+
+    // Use the appropriate `with_` method based on available fields as PaymentStrParams is private
+    if let Some(payment_hash) = payment_params.payment_hash.get() {
+        return _PaymentStrParams::with_hash(
+            payment_hash.as_str(),
+            get_str_or_default(payment_params.payment_entry_point.get()),
+            payment_args_simple,
+            get_str_or_default(payment_params.payment_args_json.get()),
+            get_str_or_default(payment_params.payment_args_complex.get()),
+        );
+    }
+
+    if let Some(payment_name) = payment_params.payment_name.get() {
+        return _PaymentStrParams::with_name(
+            payment_name.as_str(),
+            get_str_or_default(payment_params.payment_entry_point.get()),
+            payment_args_simple,
+            get_str_or_default(payment_params.payment_args_json.get()),
+            get_str_or_default(payment_params.payment_args_complex.get()),
+        );
+    }
+
+    if let Some(payment_package_hash) = payment_params.payment_package_hash.get() {
+        return _PaymentStrParams::with_package_hash(
+            payment_package_hash.as_str(),
+            get_str_or_default(payment_params.payment_version.get()),
+            get_str_or_default(payment_params.payment_entry_point.get()),
+            payment_args_simple,
+            get_str_or_default(payment_params.payment_args_json.get()),
+            get_str_or_default(payment_params.payment_args_complex.get()),
+        );
+    }
+
+    if let Some(payment_package_name) = payment_params.payment_package_name.get() {
+        return _PaymentStrParams::with_package_name(
+            payment_package_name.as_str(),
+            get_str_or_default(payment_params.payment_version.get()),
+            get_str_or_default(payment_params.payment_entry_point.get()),
+            payment_args_simple,
+            get_str_or_default(payment_params.payment_args_json.get()),
+            get_str_or_default(payment_params.payment_args_complex.get()),
+        );
+    }
+
+    // Default to the Payment amount
+    _PaymentStrParams::with_amount(get_str_or_default(payment_params.payment_amount.get()))
+}
+
\ No newline at end of file diff --git a/docs/api-rust/src/casper_rust_wasm_sdk/types/deploy_params/session_str_params.rs.html b/docs/api-rust/src/casper_rust_wasm_sdk/types/deploy_params/session_str_params.rs.html new file mode 100644 index 000000000..f1e56af3e --- /dev/null +++ b/docs/api-rust/src/casper_rust_wasm_sdk/types/deploy_params/session_str_params.rs.html @@ -0,0 +1,635 @@ +session_str_params.rs - source
1
+2
+3
+4
+5
+6
+7
+8
+9
+10
+11
+12
+13
+14
+15
+16
+17
+18
+19
+20
+21
+22
+23
+24
+25
+26
+27
+28
+29
+30
+31
+32
+33
+34
+35
+36
+37
+38
+39
+40
+41
+42
+43
+44
+45
+46
+47
+48
+49
+50
+51
+52
+53
+54
+55
+56
+57
+58
+59
+60
+61
+62
+63
+64
+65
+66
+67
+68
+69
+70
+71
+72
+73
+74
+75
+76
+77
+78
+79
+80
+81
+82
+83
+84
+85
+86
+87
+88
+89
+90
+91
+92
+93
+94
+95
+96
+97
+98
+99
+100
+101
+102
+103
+104
+105
+106
+107
+108
+109
+110
+111
+112
+113
+114
+115
+116
+117
+118
+119
+120
+121
+122
+123
+124
+125
+126
+127
+128
+129
+130
+131
+132
+133
+134
+135
+136
+137
+138
+139
+140
+141
+142
+143
+144
+145
+146
+147
+148
+149
+150
+151
+152
+153
+154
+155
+156
+157
+158
+159
+160
+161
+162
+163
+164
+165
+166
+167
+168
+169
+170
+171
+172
+173
+174
+175
+176
+177
+178
+179
+180
+181
+182
+183
+184
+185
+186
+187
+188
+189
+190
+191
+192
+193
+194
+195
+196
+197
+198
+199
+200
+201
+202
+203
+204
+205
+206
+207
+208
+209
+210
+211
+212
+213
+214
+215
+216
+217
+218
+219
+220
+221
+222
+223
+224
+225
+226
+227
+228
+229
+230
+231
+232
+233
+234
+235
+236
+237
+238
+239
+240
+241
+242
+243
+244
+245
+246
+247
+248
+249
+250
+251
+252
+253
+254
+255
+256
+257
+258
+259
+260
+261
+262
+263
+264
+265
+266
+267
+268
+269
+270
+271
+272
+273
+274
+275
+276
+277
+278
+279
+280
+281
+282
+283
+284
+285
+286
+287
+288
+289
+290
+291
+292
+293
+294
+295
+296
+297
+298
+299
+300
+301
+302
+303
+304
+305
+306
+307
+308
+309
+310
+311
+312
+313
+314
+315
+316
+317
+
use super::args_simple::ArgsSimple;
+use crate::{helpers::get_str_or_default, types::cl::bytes::Bytes};
+use casper_client::cli::SessionStrParams as _SessionStrParams;
+use js_sys::Array;
+use once_cell::sync::OnceCell;
+use wasm_bindgen::prelude::*;
+
+#[wasm_bindgen]
+#[derive(Default, Debug, Clone)]
+pub struct SessionStrParams {
+    session_hash: OnceCell<String>,
+    session_name: OnceCell<String>,
+    session_package_hash: OnceCell<String>,
+    session_package_name: OnceCell<String>,
+    session_path: OnceCell<String>,
+    session_bytes: OnceCell<Bytes>,
+    session_args_simple: OnceCell<ArgsSimple>,
+    session_args_json: OnceCell<String>,
+    session_args_complex: OnceCell<String>,
+    session_version: OnceCell<String>,
+    session_entry_point: OnceCell<String>,
+    is_session_transfer: OnceCell<bool>,
+}
+
+#[wasm_bindgen]
+impl SessionStrParams {
+    #[wasm_bindgen(constructor)]
+    #[allow(clippy::too_many_arguments)]
+    pub fn new(
+        session_hash: Option<String>,
+        session_name: Option<String>,
+        session_package_hash: Option<String>,
+        session_package_name: Option<String>,
+        session_path: Option<String>,
+        session_bytes: Option<Bytes>,
+        session_args_simple: Option<Array>,
+        session_args_json: Option<String>,
+        session_args_complex: Option<String>,
+        session_version: Option<String>,
+        session_entry_point: Option<String>,
+        is_session_transfer: Option<bool>,
+    ) -> Self {
+        let mut session_params = SessionStrParams::default();
+        if let Some(session_hash) = session_hash {
+            session_params.set_session_hash(&session_hash);
+        };
+        if let Some(session_name) = session_name {
+            session_params.set_session_name(&session_name);
+        };
+        if let Some(session_package_hash) = session_package_hash {
+            session_params.set_session_package_hash(&session_package_hash);
+        };
+        if let Some(session_package_name) = session_package_name {
+            session_params.set_session_package_name(&session_package_name);
+        };
+        if let Some(session_path) = session_path {
+            session_params.set_session_path(&session_path);
+        };
+        if let Some(session_bytes) = session_bytes {
+            session_params.set_session_bytes(session_bytes);
+        };
+        if let Some(session_args_simple) = session_args_simple {
+            session_params.set_session_args_simple(session_args_simple);
+        };
+        if let Some(session_args_json) = session_args_json {
+            session_params.set_session_args_json(&session_args_json);
+        };
+        if let Some(session_args_complex) = session_args_complex {
+            session_params.set_session_args_complex(&session_args_complex);
+        };
+        if let Some(session_version) = session_version {
+            session_params.set_session_version(&session_version);
+        };
+        if let Some(session_entry_point) = session_entry_point {
+            session_params.set_session_entry_point(&session_entry_point);
+        };
+        if let Some(is_session_transfer) = is_session_transfer {
+            session_params.set_is_session_transfer(is_session_transfer);
+        };
+
+        session_params
+    }
+
+    // Getter and setter for session_hash field
+    #[wasm_bindgen(getter)]
+    pub fn session_hash(&self) -> Option<String> {
+        self.session_hash.get().cloned()
+    }
+
+    #[wasm_bindgen(setter)]
+    pub fn set_session_hash(&self, session_hash: &str) {
+        self.session_hash.set(session_hash.to_string()).unwrap();
+    }
+
+    // Getter and setter for session_name field
+    #[wasm_bindgen(getter)]
+    pub fn session_name(&self) -> Option<String> {
+        self.session_name.get().cloned()
+    }
+
+    #[wasm_bindgen(setter)]
+    pub fn set_session_name(&self, session_name: &str) {
+        self.session_name.set(session_name.to_string()).unwrap();
+    }
+
+    // Getter and setter for session_package_hash field
+    #[wasm_bindgen(getter)]
+    pub fn session_package_hash(&self) -> Option<String> {
+        self.session_package_hash.get().cloned()
+    }
+
+    #[wasm_bindgen(setter)]
+    pub fn set_session_package_hash(&self, session_package_hash: &str) {
+        self.session_package_hash
+            .set(session_package_hash.to_string())
+            .unwrap();
+    }
+
+    // Getter and setter for session_package_name field
+    #[wasm_bindgen(getter)]
+    pub fn session_package_name(&self) -> Option<String> {
+        self.session_package_name.get().cloned()
+    }
+
+    #[wasm_bindgen(setter)]
+    pub fn set_session_package_name(&self, session_package_name: &str) {
+        self.session_package_name
+            .set(session_package_name.to_string())
+            .unwrap();
+    }
+
+    // Getter and setter for session_path field
+    #[wasm_bindgen(getter)]
+    pub fn session_path(&self) -> Option<String> {
+        self.session_path.get().cloned()
+    }
+
+    #[wasm_bindgen(setter)]
+    pub fn set_session_path(&self, session_path: &str) {
+        self.session_path.set(session_path.to_string()).unwrap();
+    }
+
+    // Getter and setter for session_bytes field
+    #[wasm_bindgen(getter)]
+    pub fn session_bytes(&self) -> Option<Bytes> {
+        self.session_bytes.get().cloned()
+    }
+
+    #[wasm_bindgen(setter)]
+    pub fn set_session_bytes(&self, session_bytes: Bytes) {
+        self.session_bytes.set(session_bytes).unwrap();
+    }
+
+    // Getter and setter for session_args_simple field
+    #[wasm_bindgen(getter)]
+    pub fn session_args_simple(&self) -> Option<ArgsSimple> {
+        self.session_args_simple.get().cloned()
+    }
+
+    #[wasm_bindgen(setter)]
+    pub fn set_session_args_simple(&mut self, session_args_simple: Array) {
+        let args: Vec<String> = session_args_simple
+            .iter()
+            .map(|value| value.as_string().unwrap_or_default())
+            .collect();
+        self.set_session_args(args);
+    }
+
+    // Getter and setter for session_args_json field
+    #[wasm_bindgen(getter)]
+    pub fn session_args_json(&self) -> Option<String> {
+        self.session_args_json.get().cloned()
+    }
+
+    #[wasm_bindgen(setter)]
+    pub fn set_session_args_json(&self, session_args_json: &str) {
+        self.session_args_json
+            .set(session_args_json.to_string())
+            .unwrap();
+    }
+
+    // Getter and setter for session_args_complex field
+    #[wasm_bindgen(getter)]
+    pub fn session_args_complex(&self) -> Option<String> {
+        self.session_args_complex.get().cloned()
+    }
+
+    #[wasm_bindgen(setter)]
+    pub fn set_session_args_complex(&self, session_args_complex: &str) {
+        self.session_args_complex
+            .set(session_args_complex.to_string())
+            .unwrap();
+    }
+
+    // Getter and setter for session_version field
+    #[wasm_bindgen(getter)]
+    pub fn session_version(&self) -> Option<String> {
+        self.session_version.get().cloned()
+    }
+
+    #[wasm_bindgen(setter)]
+    pub fn set_session_version(&self, session_version: &str) {
+        self.session_version
+            .set(session_version.to_string())
+            .unwrap();
+    }
+
+    // Getter and setter for session_entry_point field
+    #[wasm_bindgen(getter)]
+    pub fn session_entry_point(&self) -> Option<String> {
+        self.session_entry_point.get().cloned()
+    }
+
+    #[wasm_bindgen(setter)]
+    pub fn set_session_entry_point(&self, session_entry_point: &str) {
+        self.session_entry_point
+            .set(session_entry_point.to_string())
+            .unwrap();
+    }
+
+    // Getter and setter for is_session_transfer field
+    #[wasm_bindgen(getter)]
+    pub fn is_session_transfer(&self) -> Option<bool> {
+        self.is_session_transfer.get().cloned()
+    }
+
+    #[wasm_bindgen(setter)]
+    pub fn set_is_session_transfer(&self, is_session_transfer: bool) {
+        self.is_session_transfer.set(is_session_transfer).unwrap();
+    }
+}
+
+impl SessionStrParams {
+    pub fn set_session_args(&mut self, session_args_simple: Vec<String>) {
+        let args_simple = ArgsSimple::from(session_args_simple);
+        self.session_args_simple.set(args_simple).unwrap();
+    }
+}
+
+// Convert SessionStrParams to casper_client::cli::SessionStrParam
+pub fn session_str_params_to_casper_client(
+    session_params: &SessionStrParams,
+) -> _SessionStrParams<'_> {
+    let session_args_simple: Vec<&str> = session_params
+        .session_args_simple
+        .get()
+        .map_or_else(Vec::new, |args_simple| {
+            args_simple.args().iter().map(String::as_str).collect()
+        });
+
+    if let Some(session_path) = session_params.session_path.get() {
+        return _SessionStrParams::with_path(
+            session_path,
+            session_args_simple,
+            get_str_or_default(session_params.session_args_json.get()),
+            get_str_or_default(session_params.session_args_complex.get()),
+        );
+    }
+
+    if let Some(session_bytes) = session_params.session_bytes.get() {
+        return _SessionStrParams::with_bytes(
+            (*session_bytes).clone().into(),
+            session_args_simple,
+            get_str_or_default(session_params.session_args_json.get()),
+            get_str_or_default(session_params.session_args_complex.get()),
+        );
+    }
+
+    if let Some(session_hash) = session_params.session_hash.get() {
+        return _SessionStrParams::with_hash(
+            session_hash.as_str(),
+            get_str_or_default(session_params.session_entry_point.get()),
+            session_args_simple,
+            get_str_or_default(session_params.session_args_json.get()),
+            get_str_or_default(session_params.session_args_complex.get()),
+        );
+    }
+
+    if let Some(session_name) = session_params.session_name.get() {
+        return _SessionStrParams::with_name(
+            session_name.as_str(),
+            get_str_or_default(session_params.session_entry_point.get()),
+            session_args_simple,
+            get_str_or_default(session_params.session_args_json.get()),
+            get_str_or_default(session_params.session_args_complex.get()),
+        );
+    }
+
+    if let Some(session_package_hash) = session_params.session_package_hash.get() {
+        return _SessionStrParams::with_package_hash(
+            session_package_hash.as_str(),
+            get_str_or_default(session_params.session_version.get()),
+            get_str_or_default(session_params.session_entry_point.get()),
+            session_args_simple,
+            get_str_or_default(session_params.session_args_json.get()),
+            get_str_or_default(session_params.session_args_complex.get()),
+        );
+    }
+
+    if let Some(session_package_name) = session_params.session_package_name.get() {
+        return _SessionStrParams::with_package_name(
+            session_package_name.as_str(),
+            get_str_or_default(session_params.session_version.get()),
+            get_str_or_default(session_params.session_entry_point.get()),
+            session_args_simple,
+            get_str_or_default(session_params.session_args_json.get()),
+            get_str_or_default(session_params.session_args_complex.get()),
+        );
+    }
+
+    // Default to Transfer type of Deploy
+    _SessionStrParams::with_transfer(
+        session_args_simple,
+        get_str_or_default(session_params.session_args_json.get()),
+        get_str_or_default(session_params.session_args_complex.get()),
+    )
+}
+
\ No newline at end of file diff --git a/docs/api-rust/src/casper_rust_wasm_sdk/types/dictionary_item_identifier.rs.html b/docs/api-rust/src/casper_rust_wasm_sdk/types/dictionary_item_identifier.rs.html new file mode 100644 index 000000000..bb8f160f9 --- /dev/null +++ b/docs/api-rust/src/casper_rust_wasm_sdk/types/dictionary_item_identifier.rs.html @@ -0,0 +1,263 @@ +dictionary_item_identifier.rs - source
1
+2
+3
+4
+5
+6
+7
+8
+9
+10
+11
+12
+13
+14
+15
+16
+17
+18
+19
+20
+21
+22
+23
+24
+25
+26
+27
+28
+29
+30
+31
+32
+33
+34
+35
+36
+37
+38
+39
+40
+41
+42
+43
+44
+45
+46
+47
+48
+49
+50
+51
+52
+53
+54
+55
+56
+57
+58
+59
+60
+61
+62
+63
+64
+65
+66
+67
+68
+69
+70
+71
+72
+73
+74
+75
+76
+77
+78
+79
+80
+81
+82
+83
+84
+85
+86
+87
+88
+89
+90
+91
+92
+93
+94
+95
+96
+97
+98
+99
+100
+101
+102
+103
+104
+105
+106
+107
+108
+109
+110
+111
+112
+113
+114
+115
+116
+117
+118
+119
+120
+121
+122
+123
+124
+125
+126
+127
+128
+129
+130
+131
+
use crate::debug::error;
+
+use super::key::Key;
+use casper_client::rpcs::DictionaryItemIdentifier as _DictionaryItemIdentifier;
+use casper_types::Key as _Key;
+#[cfg(target_arch = "wasm32")]
+use gloo_utils::format::JsValueSerdeExt;
+use serde::{Deserialize, Serialize};
+use wasm_bindgen::prelude::*;
+
+#[derive(Debug, Deserialize, Clone, Serialize)]
+#[wasm_bindgen]
+pub struct DictionaryItemIdentifier(_DictionaryItemIdentifier);
+
+#[wasm_bindgen]
+impl DictionaryItemIdentifier {
+    // static context
+    #[wasm_bindgen(js_name = "newFromAccountInfo")]
+    pub fn new_from_account_info(
+        account_hash: &str,
+        dictionary_name: &str,
+        dictionary_item_key: &str,
+    ) -> Result<DictionaryItemIdentifier, JsValue> {
+        let key = Key::from_formatted_str(account_hash)
+            .map_err(|err| {
+                error(&format!(
+                    "Failed to parse key from formatted string: {:?}",
+                    err
+                ));
+                JsValue::null()
+            })
+            .unwrap();
+
+        Ok(DictionaryItemIdentifier(
+            _DictionaryItemIdentifier::AccountNamedKey {
+                key: key.to_formatted_string(),
+                dictionary_name: dictionary_name.to_string(),
+                dictionary_item_key: dictionary_item_key.to_string(),
+            },
+        ))
+    }
+
+    // static context
+    #[wasm_bindgen(js_name = "newFromContractInfo")]
+    pub fn new_from_contract_info(
+        contract_addr: &str,
+        dictionary_name: &str,
+        dictionary_item_key: &str,
+    ) -> Result<DictionaryItemIdentifier, JsValue> {
+        let key = Key::from_formatted_str(contract_addr)
+            .map_err(|err| {
+                error(&format!(
+                    "Failed to parse key from formatted string: {:?}",
+                    err
+                ));
+                JsValue::null()
+            })
+            .unwrap();
+
+        Ok(DictionaryItemIdentifier(
+            _DictionaryItemIdentifier::ContractNamedKey {
+                key: key.to_formatted_string(),
+                dictionary_name: dictionary_name.to_string(),
+                dictionary_item_key: dictionary_item_key.to_string(),
+            },
+        ))
+    }
+
+    // static context
+    #[wasm_bindgen(js_name = "newFromSeedUref")]
+    pub fn new_from_seed_uref(
+        seed_uref: &str,
+        dictionary_item_key: &str,
+    ) -> Result<DictionaryItemIdentifier, JsValue> {
+        let key: _Key = Key::from_formatted_str(seed_uref)
+            .map_err(|err| {
+                error(&format!(
+                    "Failed to parse key from formatted string: {:?}",
+                    err
+                ));
+                JsValue::null()
+            })
+            .unwrap()
+            .into();
+
+        Ok(DictionaryItemIdentifier(_DictionaryItemIdentifier::URef {
+            seed_uref: *key.as_uref().ok_or_else(|| {
+                error("Key is not a URef");
+                JsValue::null()
+            })?,
+            dictionary_item_key: dictionary_item_key.to_string(),
+        }))
+    }
+
+    // static context
+    #[wasm_bindgen(js_name = "newFromDictionaryKey")]
+    pub fn new_from_dictionary_key(
+        dictionary_key: &str,
+    ) -> Result<DictionaryItemIdentifier, JsValue> {
+        let _ = Key::from_formatted_str(dictionary_key)
+            .map_err(|err| {
+                error(&format!(
+                    "Failed to parse key from formatted string: {:?}",
+                    err
+                ));
+                JsValue::null()
+            })
+            .unwrap();
+        Ok(DictionaryItemIdentifier(
+            _DictionaryItemIdentifier::Dictionary(dictionary_key.to_string()),
+        ))
+    }
+
+    #[cfg(target_arch = "wasm32")]
+    #[wasm_bindgen(js_name = "toJson")]
+    pub fn to_json(&self) -> JsValue {
+        JsValue::from_serde(self).unwrap_or(JsValue::null())
+    }
+}
+
+impl From<DictionaryItemIdentifier> for _DictionaryItemIdentifier {
+    fn from(dictionary_item_identifier: DictionaryItemIdentifier) -> Self {
+        dictionary_item_identifier.0
+    }
+}
+
+impl From<_DictionaryItemIdentifier> for DictionaryItemIdentifier {
+    fn from(identifier: _DictionaryItemIdentifier) -> Self {
+        DictionaryItemIdentifier(identifier)
+    }
+}
+
\ No newline at end of file diff --git a/docs/api-rust/src/casper_rust_wasm_sdk/types/digest.rs.html b/docs/api-rust/src/casper_rust_wasm_sdk/types/digest.rs.html new file mode 100644 index 000000000..bfcb3f3c3 --- /dev/null +++ b/docs/api-rust/src/casper_rust_wasm_sdk/types/digest.rs.html @@ -0,0 +1,331 @@ +digest.rs - source
1
+2
+3
+4
+5
+6
+7
+8
+9
+10
+11
+12
+13
+14
+15
+16
+17
+18
+19
+20
+21
+22
+23
+24
+25
+26
+27
+28
+29
+30
+31
+32
+33
+34
+35
+36
+37
+38
+39
+40
+41
+42
+43
+44
+45
+46
+47
+48
+49
+50
+51
+52
+53
+54
+55
+56
+57
+58
+59
+60
+61
+62
+63
+64
+65
+66
+67
+68
+69
+70
+71
+72
+73
+74
+75
+76
+77
+78
+79
+80
+81
+82
+83
+84
+85
+86
+87
+88
+89
+90
+91
+92
+93
+94
+95
+96
+97
+98
+99
+100
+101
+102
+103
+104
+105
+106
+107
+108
+109
+110
+111
+112
+113
+114
+115
+116
+117
+118
+119
+120
+121
+122
+123
+124
+125
+126
+127
+128
+129
+130
+131
+132
+133
+134
+135
+136
+137
+138
+139
+140
+141
+142
+143
+144
+145
+146
+147
+148
+149
+150
+151
+152
+153
+154
+155
+156
+157
+158
+159
+160
+161
+162
+163
+164
+165
+
use super::sdk_error::SdkError;
+#[cfg(target_arch = "wasm32")]
+use crate::debug::error;
+use base16::DecodeError;
+use casper_hashing::{Digest as _Digest, Error as DigestError};
+use casper_types::bytesrepr::{self, FromBytes, ToBytes};
+#[cfg(target_arch = "wasm32")]
+use gloo_utils::format::JsValueSerdeExt;
+use serde::{Deserialize, Serialize};
+use wasm_bindgen::prelude::*;
+
+#[derive(Debug, Clone, Deserialize, Serialize)]
+#[wasm_bindgen]
+pub struct Digest(_Digest);
+
+#[wasm_bindgen]
+impl Digest {
+    #[wasm_bindgen(constructor)]
+    #[wasm_bindgen(js_name = "new")]
+    pub fn new_js_alias(digest_hex_str: &str) -> Result<Digest, JsValue> {
+        Self::from_string(digest_hex_str)
+    }
+
+    #[wasm_bindgen(js_name = "fromString")]
+    pub fn from_string(digest_hex_str: &str) -> Result<Digest, JsValue> {
+        Ok(Digest::from(digest_hex_str))
+    }
+
+    #[cfg(target_arch = "wasm32")]
+    #[wasm_bindgen(js_name = "fromDigest")]
+    pub fn from_digest_js_alias(bytes: Vec<u8>) -> Result<Digest, JsValue> {
+        Self::from_digest(bytes).map_err(|err| {
+            error(&format!("Failed to parse digest from digest {}", err));
+            JsValue::from_str(&format!("{:?}", err))
+        })
+    }
+
+    #[cfg(target_arch = "wasm32")]
+    #[wasm_bindgen(js_name = "toJson")]
+    pub fn to_json(&self) -> JsValue {
+        JsValue::from_serde(self).unwrap_or(JsValue::null())
+    }
+
+    #[cfg(target_arch = "wasm32")]
+    #[wasm_bindgen(js_name = "toString")]
+    pub fn to_string_js_alias(&self) -> String {
+        self.to_string()
+    }
+}
+
+impl Digest {
+    pub fn new(digest_hex_str: &str) -> Result<Digest, SdkError> {
+        Ok(Digest::from(digest_hex_str))
+    }
+
+    pub fn from_digest(bytes: Vec<u8>) -> Result<Digest, SdkError> {
+        let hex_string = hex::encode(bytes);
+        Ok(Digest::from(&hex_string[..]))
+    }
+}
+
+impl AsRef<[u8]> for Digest {
+    fn as_ref(&self) -> &[u8] {
+        self.0.as_ref()
+    }
+}
+
+impl ToString for Digest {
+    fn to_string(&self) -> String {
+        hex::encode(self.0)
+    }
+}
+
+impl From<Digest> for _Digest {
+    fn from(digest: Digest) -> Self {
+        digest.0
+    }
+}
+
+impl From<_Digest> for Digest {
+    fn from(digest: _Digest) -> Self {
+        Digest(digest)
+    }
+}
+
+impl ToBytes for Digest {
+    fn to_bytes(&self) -> Result<Vec<u8>, bytesrepr::Error> {
+        self.0.to_bytes()
+    }
+
+    fn serialized_length(&self) -> usize {
+        self.0.serialized_length()
+    }
+
+    fn write_bytes(&self, bytes: &mut Vec<u8>) -> Result<(), bytesrepr::Error> {
+        self.0.write_bytes(bytes)
+    }
+}
+
+impl FromBytes for Digest {
+    fn from_bytes(bytes: &[u8]) -> Result<(Self, &[u8]), bytesrepr::Error> {
+        _Digest::from_bytes(bytes).map(|(digest, remainder)| (Digest(digest), remainder))
+    }
+}
+
+impl From<[u8; _Digest::LENGTH]> for Digest {
+    fn from(bytes: [u8; _Digest::LENGTH]) -> Self {
+        let digest = _Digest::try_from(bytes).unwrap();
+        Digest(digest)
+    }
+}
+
+impl From<&str> for Digest {
+    fn from(s: &str) -> Self {
+        let bytes = hex::decode(s)
+            .map_err(|err| {
+                let context = format!("Decoding hex string {:?}", err);
+                let base16_err = DecodeError::InvalidByte {
+                    byte: 0,  // TODO Fix error
+                    index: 0, // Set the index to 0 or a relevant value here
+                };
+                let error = DigestError::Base16DecodeError(base16_err);
+                SdkError::FailedToParseDigest { context, error }
+            })
+            .unwrap_or_default();
+
+        if bytes.len() != _Digest::LENGTH {
+            let context = "Invalid Digest length";
+            let error = DigestError::IncorrectDigestLength(bytes.len());
+            let sdk_error = SdkError::FailedToParseDigest {
+                context: context.to_string(),
+                error,
+            };
+            // TODO remove this unreachable
+            unreachable!("{:?}", sdk_error);
+        }
+
+        let mut digest_bytes = [0u8; _Digest::LENGTH];
+        digest_bytes.copy_from_slice(&bytes);
+        Digest(_Digest::from(digest_bytes))
+    }
+}
+
+pub trait ToDigest {
+    fn to_digest(&self) -> Digest;
+    fn is_empty(&self) -> bool;
+}
+
+impl ToDigest for Digest {
+    fn to_digest(&self) -> Digest {
+        self.0.into()
+    }
+    fn is_empty(&self) -> bool {
+        hex::encode(self.0).is_empty()
+    }
+}
+
+impl ToDigest for &str {
+    fn to_digest(&self) -> Digest {
+        Digest::from(*self)
+    }
+    fn is_empty(&self) -> bool {
+        self.trim().is_empty()
+    }
+}
+
\ No newline at end of file diff --git a/docs/api-rust/src/casper_rust_wasm_sdk/types/era_id.rs.html b/docs/api-rust/src/casper_rust_wasm_sdk/types/era_id.rs.html new file mode 100644 index 000000000..240ce520f --- /dev/null +++ b/docs/api-rust/src/casper_rust_wasm_sdk/types/era_id.rs.html @@ -0,0 +1,63 @@ +era_id.rs - source
1
+2
+3
+4
+5
+6
+7
+8
+9
+10
+11
+12
+13
+14
+15
+16
+17
+18
+19
+20
+21
+22
+23
+24
+25
+26
+27
+28
+29
+30
+31
+
use casper_types::EraId as _EraId;
+use wasm_bindgen::prelude::*;
+
+#[wasm_bindgen]
+#[derive(Default, Clone, Copy, Debug, PartialEq, Eq, PartialOrd, Ord)]
+
+pub struct EraId(_EraId);
+
+#[wasm_bindgen]
+impl EraId {
+    #[wasm_bindgen(constructor)]
+    pub fn new(value: u64) -> EraId {
+        EraId(value.into())
+    }
+
+    pub fn value(&self) -> u64 {
+        self.0.into()
+    }
+}
+
+impl From<EraId> for _EraId {
+    fn from(hash_addr: EraId) -> Self {
+        hash_addr.0
+    }
+}
+
+impl From<_EraId> for EraId {
+    fn from(hash_addr: _EraId) -> Self {
+        EraId(hash_addr)
+    }
+}
+
\ No newline at end of file diff --git a/docs/api-rust/src/casper_rust_wasm_sdk/types/global_state_identifier.rs.html b/docs/api-rust/src/casper_rust_wasm_sdk/types/global_state_identifier.rs.html new file mode 100644 index 000000000..03ecbf43e --- /dev/null +++ b/docs/api-rust/src/casper_rust_wasm_sdk/types/global_state_identifier.rs.html @@ -0,0 +1,107 @@ +global_state_identifier.rs - source
1
+2
+3
+4
+5
+6
+7
+8
+9
+10
+11
+12
+13
+14
+15
+16
+17
+18
+19
+20
+21
+22
+23
+24
+25
+26
+27
+28
+29
+30
+31
+32
+33
+34
+35
+36
+37
+38
+39
+40
+41
+42
+43
+44
+45
+46
+47
+48
+49
+50
+51
+52
+53
+
use super::{block_hash::BlockHash, digest::Digest};
+use casper_client::rpcs::GlobalStateIdentifier as _GlobalStateIdentifier;
+#[cfg(target_arch = "wasm32")]
+use gloo_utils::format::JsValueSerdeExt;
+use serde::{Deserialize, Serialize};
+use wasm_bindgen::prelude::*;
+
+#[derive(Debug, Deserialize, Clone, Serialize)]
+#[wasm_bindgen]
+pub struct GlobalStateIdentifier(_GlobalStateIdentifier);
+
+#[wasm_bindgen]
+impl GlobalStateIdentifier {
+    #[wasm_bindgen(constructor)]
+    pub fn new(global_state_identifier: GlobalStateIdentifier) -> GlobalStateIdentifier {
+        global_state_identifier
+    }
+
+    #[wasm_bindgen(js_name = "fromBlockHash")]
+    pub fn from_block_hash(block_hash: BlockHash) -> GlobalStateIdentifier {
+        GlobalStateIdentifier(_GlobalStateIdentifier::BlockHash(block_hash.into()))
+    }
+
+    #[wasm_bindgen(js_name = "fromBlockHeight")]
+    pub fn from_block_height(block_height: u64) -> GlobalStateIdentifier {
+        GlobalStateIdentifier(_GlobalStateIdentifier::BlockHeight(block_height))
+    }
+
+    #[wasm_bindgen(js_name = "fromStateRootHash")]
+    pub fn from_state_root_hash(state_root_hash: Digest) -> GlobalStateIdentifier {
+        GlobalStateIdentifier(_GlobalStateIdentifier::StateRootHash(
+            state_root_hash.into(),
+        ))
+    }
+
+    #[cfg(target_arch = "wasm32")]
+    #[wasm_bindgen(js_name = "toJson")]
+    pub fn to_json(&self) -> JsValue {
+        JsValue::from_serde(self).unwrap_or(JsValue::null())
+    }
+}
+
+impl From<GlobalStateIdentifier> for _GlobalStateIdentifier {
+    fn from(global_state_identifier: GlobalStateIdentifier) -> Self {
+        global_state_identifier.0
+    }
+}
+
+impl From<_GlobalStateIdentifier> for GlobalStateIdentifier {
+    fn from(identifier: _GlobalStateIdentifier) -> Self {
+        GlobalStateIdentifier(identifier)
+    }
+}
+
\ No newline at end of file diff --git a/docs/api-rust/src/casper_rust_wasm_sdk/types/key.rs.html b/docs/api-rust/src/casper_rust_wasm_sdk/types/key.rs.html new file mode 100644 index 000000000..f49aa8d24 --- /dev/null +++ b/docs/api-rust/src/casper_rust_wasm_sdk/types/key.rs.html @@ -0,0 +1,439 @@ +key.rs - source
1
+2
+3
+4
+5
+6
+7
+8
+9
+10
+11
+12
+13
+14
+15
+16
+17
+18
+19
+20
+21
+22
+23
+24
+25
+26
+27
+28
+29
+30
+31
+32
+33
+34
+35
+36
+37
+38
+39
+40
+41
+42
+43
+44
+45
+46
+47
+48
+49
+50
+51
+52
+53
+54
+55
+56
+57
+58
+59
+60
+61
+62
+63
+64
+65
+66
+67
+68
+69
+70
+71
+72
+73
+74
+75
+76
+77
+78
+79
+80
+81
+82
+83
+84
+85
+86
+87
+88
+89
+90
+91
+92
+93
+94
+95
+96
+97
+98
+99
+100
+101
+102
+103
+104
+105
+106
+107
+108
+109
+110
+111
+112
+113
+114
+115
+116
+117
+118
+119
+120
+121
+122
+123
+124
+125
+126
+127
+128
+129
+130
+131
+132
+133
+134
+135
+136
+137
+138
+139
+140
+141
+142
+143
+144
+145
+146
+147
+148
+149
+150
+151
+152
+153
+154
+155
+156
+157
+158
+159
+160
+161
+162
+163
+164
+165
+166
+167
+168
+169
+170
+171
+172
+173
+174
+175
+176
+177
+178
+179
+180
+181
+182
+183
+184
+185
+186
+187
+188
+189
+190
+191
+192
+193
+194
+195
+196
+197
+198
+199
+200
+201
+202
+203
+204
+205
+206
+207
+208
+209
+210
+211
+212
+213
+214
+215
+216
+217
+218
+219
+
use super::addr::transfer_addr::TransferAddr;
+use super::addr::{dictionary_addr::DictionaryAddr, hash_addr::HashAddr, uref_addr::URefAddr};
+use super::era_id::EraId;
+use super::{account_hash::AccountHash, deploy_hash::DeployHash, uref::URef};
+use crate::debug::error;
+use crate::types::sdk_error::SdkError;
+use casper_types::Key as _Key;
+#[cfg(target_arch = "wasm32")]
+use gloo_utils::format::JsValueSerdeExt;
+use serde::{Deserialize, Serialize};
+use wasm_bindgen::prelude::*;
+
+#[derive(Debug, Deserialize, Clone, Serialize)]
+#[wasm_bindgen]
+pub struct Key(_Key);
+
+#[wasm_bindgen]
+impl Key {
+    #[wasm_bindgen(constructor)]
+    pub fn new(key: Key) -> Result<Key, JsValue> {
+        let key: _Key = key.into();
+        Ok(Key(key))
+    }
+
+    #[cfg(target_arch = "wasm32")]
+    #[wasm_bindgen(js_name = "toJson")]
+    pub fn to_json(&self) -> JsValue {
+        JsValue::from_serde(self).unwrap_or(JsValue::null())
+    }
+
+    #[wasm_bindgen(js_name = "fromURef")]
+    pub fn from_uref(key: URef) -> Key {
+        Key(_Key::URef(key.into()))
+    }
+
+    #[wasm_bindgen(js_name = "fromDeployInfo")]
+    pub fn from_deploy_info(key: DeployHash) -> Key {
+        Key(_Key::DeployInfo(key.into()))
+    }
+
+    #[wasm_bindgen(js_name = "fromAccount")]
+    pub fn from_account(key: AccountHash) -> Key {
+        Key(_Key::Account(key.into()))
+    }
+
+    #[wasm_bindgen]
+    #[wasm_bindgen(js_name = "fromHash")]
+    pub fn from_hash(key: HashAddr) -> Key {
+        Key(_Key::Hash(key.into()))
+    }
+
+    #[wasm_bindgen(js_name = "fromTransfer")]
+    pub fn from_transfer(key: Vec<u8>) -> TransferAddr {
+        // TODO Fix with TransferAddr as _TransferAddr, and [u8; 32]
+        // Key(_Key::Transfer(key.into()))
+        TransferAddr::from(key)
+    }
+
+    #[wasm_bindgen(js_name = "fromEraInfo")]
+    pub fn from_era_info(key: EraId) -> Key {
+        Key(_Key::EraInfo(key.into()))
+    }
+
+    #[wasm_bindgen(js_name = "fromBalance")]
+    pub fn from_balance(key: URefAddr) -> Key {
+        Key(_Key::Balance(key.into()))
+    }
+
+    #[wasm_bindgen(js_name = "fromBid")]
+    pub fn from_bid(key: AccountHash) -> Key {
+        Key(_Key::Bid(key.into()))
+    }
+
+    #[wasm_bindgen(js_name = "fromWithdraw")]
+    pub fn from_withdraw(key: AccountHash) -> Key {
+        Key(_Key::Withdraw(key.into()))
+    }
+
+    #[wasm_bindgen(js_name = "fromDictionaryAddr")]
+    pub fn from_dictionary_addr(key: DictionaryAddr) -> Key {
+        Key(_Key::Dictionary(key.into()))
+    }
+
+    #[wasm_bindgen(js_name = "asDictionaryAddr")]
+    pub fn as_dictionary(&self) -> Option<DictionaryAddr> {
+        match &self.0 {
+            _Key::Dictionary(v) => Some((*v).into()),
+            _ => None,
+        }
+    }
+
+    #[wasm_bindgen(js_name = "fromSystemContractRegistry")]
+    pub fn from_system_contract_registry() -> Key {
+        Key(_Key::SystemContractRegistry)
+    }
+
+    #[wasm_bindgen(js_name = "fromEraSummary")]
+    pub fn from_era_summary() -> Key {
+        Key(_Key::EraSummary)
+    }
+
+    #[wasm_bindgen(js_name = "fromUnbond")]
+    pub fn from_unbond(key: AccountHash) -> Key {
+        Key(_Key::Unbond(key.into()))
+    }
+
+    #[wasm_bindgen(js_name = "fromChainspecRegistry")]
+    pub fn from_chainspec_registry() -> Key {
+        Key(_Key::ChainspecRegistry)
+    }
+
+    #[wasm_bindgen(js_name = "fromChecksumRegistry")]
+    pub fn from_checksum_registry() -> Key {
+        Key(_Key::ChecksumRegistry)
+    }
+
+    #[wasm_bindgen(js_name = "toFormattedString")]
+    pub fn to_formatted_string(&self) -> String {
+        _Key::to_formatted_string(self.0)
+    }
+
+    #[wasm_bindgen(js_name = "fromFormattedString")]
+    pub fn from_formatted_str_js_alias(input: JsValue) -> Result<Key, JsValue> {
+        let input_string = input.as_string();
+        if let Some(input_string) = input_string {
+            Key::from_formatted_str(&input_string)
+                .map_err(|err| {
+                    error(&format!("Error parsing Key from formatted string, {}", err));
+                    JsValue::null()
+                })
+                .map(Into::into)
+        } else {
+            error("Input is not a string");
+            Err(JsValue::null())
+        }
+    }
+
+    #[wasm_bindgen(js_name = "fromDictionaryKey")]
+    pub fn from_dictionary_key(seed_uref: URef, dictionary_item_key: &[u8]) -> Self {
+        _Key::dictionary(seed_uref.into(), dictionary_item_key).into()
+    }
+
+    #[wasm_bindgen(js_name = "isDictionaryKey")]
+    pub fn is_dictionary_key(&self) -> bool {
+        matches!(&self.0, _Key::Dictionary(_))
+    }
+
+    #[wasm_bindgen(js_name = "intoAccount")]
+    pub fn into_account(self) -> Option<AccountHash> {
+        match self.0 {
+            _Key::Account(bytes) => Some(bytes.into()),
+            _ => None,
+        }
+    }
+
+    #[wasm_bindgen(js_name = "intoHash")]
+    pub fn into_hash(self) -> Option<HashAddr> {
+        match self.0 {
+            _Key::Hash(hash) => Some(hash.into()),
+            _ => None,
+        }
+    }
+
+    #[wasm_bindgen(js_name = "asBalance")]
+    pub fn as_balance(&self) -> Option<URefAddr> {
+        match &self.0 {
+            _Key::Balance(v) => Some((*v).into()),
+            _ => None,
+        }
+    }
+
+    #[wasm_bindgen(js_name = "intoURef")]
+    pub fn into_uref(self) -> Option<URef> {
+        match self.0 {
+            _Key::URef(uref) => Some(uref.into()),
+            _ => None,
+        }
+    }
+
+    #[wasm_bindgen(js_name = "urefToHash")]
+    pub fn uref_to_hash(&self) -> Option<Key> {
+        if let _Key::URef(uref) = &self.0 {
+            let addr = uref.addr();
+            return Some(Key(_Key::Hash(addr)));
+        }
+        None
+    }
+
+    #[wasm_bindgen(js_name = "withdrawToUnbond")]
+    pub fn withdraw_to_unbond(&self) -> Option<Key> {
+        if let _Key::Withdraw(account_hash) = &self.0 {
+            return Some(Key(_Key::Unbond(*account_hash)));
+        }
+        None
+    }
+}
+
+impl Key {
+    pub fn from_formatted_str(input: &str) -> Result<Key, SdkError> {
+        _Key::from_formatted_str(input)
+            .map(Into::into)
+            .map_err(|error| SdkError::FailedToParseKey {
+                context: "Key from formatted string",
+                error,
+            })
+    }
+}
+
+impl From<Key> for _Key {
+    fn from(key: Key) -> Self {
+        key.0
+    }
+}
+
+impl From<_Key> for Key {
+    fn from(key: _Key) -> Self {
+        Key(key)
+    }
+}
+
\ No newline at end of file diff --git a/docs/api-rust/src/casper_rust_wasm_sdk/types/mod.rs.html b/docs/api-rust/src/casper_rust_wasm_sdk/types/mod.rs.html new file mode 100644 index 000000000..3aef0fd2b --- /dev/null +++ b/docs/api-rust/src/casper_rust_wasm_sdk/types/mod.rs.html @@ -0,0 +1,49 @@ +mod.rs - source
1
+2
+3
+4
+5
+6
+7
+8
+9
+10
+11
+12
+13
+14
+15
+16
+17
+18
+19
+20
+21
+22
+23
+24
+
pub mod access_rights;
+pub mod account_hash;
+pub mod account_identifier;
+pub mod addr;
+pub mod block_hash;
+pub mod block_identifier;
+pub mod cl;
+pub mod contract_hash;
+pub mod contract_package_hash;
+pub mod deploy;
+pub mod deploy_hash;
+pub mod deploy_params;
+pub mod dictionary_item_identifier;
+pub mod digest;
+pub mod era_id;
+pub mod global_state_identifier;
+pub mod key;
+pub mod path;
+pub mod peer_entry;
+pub mod public_key;
+pub mod purse_identifier;
+pub mod sdk_error;
+pub mod uref;
+pub mod verbosity;
+
\ No newline at end of file diff --git a/docs/api-rust/src/casper_rust_wasm_sdk/types/path.rs.html b/docs/api-rust/src/casper_rust_wasm_sdk/types/path.rs.html new file mode 100644 index 000000000..47836b434 --- /dev/null +++ b/docs/api-rust/src/casper_rust_wasm_sdk/types/path.rs.html @@ -0,0 +1,185 @@ +path.rs - source
1
+2
+3
+4
+5
+6
+7
+8
+9
+10
+11
+12
+13
+14
+15
+16
+17
+18
+19
+20
+21
+22
+23
+24
+25
+26
+27
+28
+29
+30
+31
+32
+33
+34
+35
+36
+37
+38
+39
+40
+41
+42
+43
+44
+45
+46
+47
+48
+49
+50
+51
+52
+53
+54
+55
+56
+57
+58
+59
+60
+61
+62
+63
+64
+65
+66
+67
+68
+69
+70
+71
+72
+73
+74
+75
+76
+77
+78
+79
+80
+81
+82
+83
+84
+85
+86
+87
+88
+89
+90
+91
+92
+
#[cfg(target_arch = "wasm32")]
+use gloo_utils::format::JsValueSerdeExt;
+#[cfg(target_arch = "wasm32")]
+use js_sys::Array;
+use serde::{Deserialize, Deserializer, Serialize};
+use wasm_bindgen::prelude::*;
+
+#[derive(Debug, Clone, Serialize, Default)]
+#[wasm_bindgen]
+pub struct Path {
+    path: Vec<String>,
+}
+
+#[wasm_bindgen]
+impl Path {
+    #[wasm_bindgen(constructor)]
+    pub fn new(path: JsValue) -> Self {
+        let path_string: String = if path.is_null() {
+            String::from("")
+        } else {
+            path.as_string().unwrap_or_else(|| String::from(""))
+        };
+        Path::from(path_string)
+    }
+
+    #[cfg(target_arch = "wasm32")]
+    #[wasm_bindgen(js_name = "fromArray")]
+    pub fn from_js_array(path: JsValue) -> Self {
+        let path: Array = path.into();
+        let path: Vec<String> = path
+            .iter()
+            .map(|value| {
+                value
+                    .as_string()
+                    .unwrap_or_else(|| String::from("Invalid String"))
+            })
+            .collect();
+
+        Path { path }
+    }
+
+    #[cfg(target_arch = "wasm32")]
+    #[wasm_bindgen(js_name = "toJson")]
+    pub fn to_json(&self) -> JsValue {
+        JsValue::from_serde(&self.path).unwrap_or(JsValue::null())
+    }
+
+    #[cfg(target_arch = "wasm32")]
+    #[wasm_bindgen(js_name = "toString")]
+    pub fn to_string_js_alias(&self) -> String {
+        self.to_string()
+    }
+
+    pub fn is_empty(&self) -> bool {
+        self.path.is_empty() || self.path.iter().all(|s| s.is_empty())
+    }
+}
+
+impl std::fmt::Display for Path {
+    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
+        write!(f, "{}", self.path.join("/"))
+    }
+}
+
+impl<'de> Deserialize<'de> for Path {
+    fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>
+    where
+        D: Deserializer<'de>,
+    {
+        let path: Vec<String> = Vec::deserialize(deserializer)?;
+        Ok(Path { path })
+    }
+}
+
+impl From<Path> for Vec<String> {
+    fn from(path: Path) -> Self {
+        path.path
+    }
+}
+
+impl From<Vec<String>> for Path {
+    fn from(path: Vec<String>) -> Self {
+        Path { path }
+    }
+}
+
+impl From<String> for Path {
+    fn from(path_string: String) -> Self {
+        let segments: Vec<String> = path_string.split('/').map(ToString::to_string).collect();
+        Path { path: segments }
+    }
+}
+
\ No newline at end of file diff --git a/docs/api-rust/src/casper_rust_wasm_sdk/types/peer_entry.rs.html b/docs/api-rust/src/casper_rust_wasm_sdk/types/peer_entry.rs.html new file mode 100644 index 000000000..54df68416 --- /dev/null +++ b/docs/api-rust/src/casper_rust_wasm_sdk/types/peer_entry.rs.html @@ -0,0 +1,65 @@ +peer_entry.rs - source
1
+2
+3
+4
+5
+6
+7
+8
+9
+10
+11
+12
+13
+14
+15
+16
+17
+18
+19
+20
+21
+22
+23
+24
+25
+26
+27
+28
+29
+30
+31
+32
+
use casper_client::rpcs::results::PeerEntry as _PeerEntry;
+use serde::{Deserialize, Serialize};
+use wasm_bindgen::prelude::*;
+
+#[derive(Debug, Clone, Deserialize, Serialize)]
+#[wasm_bindgen]
+pub struct PeerEntry(_PeerEntry);
+
+#[wasm_bindgen]
+impl PeerEntry {
+    #[wasm_bindgen(getter)]
+    pub fn node_id(&self) -> String {
+        self.0.node_id.clone()
+    }
+
+    #[wasm_bindgen(getter)]
+    pub fn address(&self) -> String {
+        self.0.address.clone()
+    }
+}
+
+impl From<_PeerEntry> for PeerEntry {
+    fn from(peer_entry: _PeerEntry) -> Self {
+        PeerEntry(peer_entry)
+    }
+}
+
+impl From<PeerEntry> for _PeerEntry {
+    fn from(peer_entry: PeerEntry) -> Self {
+        peer_entry.0
+    }
+}
+
\ No newline at end of file diff --git a/docs/api-rust/src/casper_rust_wasm_sdk/types/public_key.rs.html b/docs/api-rust/src/casper_rust_wasm_sdk/types/public_key.rs.html new file mode 100644 index 000000000..00da5d7d6 --- /dev/null +++ b/docs/api-rust/src/casper_rust_wasm_sdk/types/public_key.rs.html @@ -0,0 +1,193 @@ +public_key.rs - source
1
+2
+3
+4
+5
+6
+7
+8
+9
+10
+11
+12
+13
+14
+15
+16
+17
+18
+19
+20
+21
+22
+23
+24
+25
+26
+27
+28
+29
+30
+31
+32
+33
+34
+35
+36
+37
+38
+39
+40
+41
+42
+43
+44
+45
+46
+47
+48
+49
+50
+51
+52
+53
+54
+55
+56
+57
+58
+59
+60
+61
+62
+63
+64
+65
+66
+67
+68
+69
+70
+71
+72
+73
+74
+75
+76
+77
+78
+79
+80
+81
+82
+83
+84
+85
+86
+87
+88
+89
+90
+91
+92
+93
+94
+95
+96
+
use crate::{
+    debug::error,
+    types::{account_hash::AccountHash, purse_identifier::PurseIdentifier, uref::URef},
+};
+use casper_types::{
+    bytesrepr::{self, FromBytes, ToBytes},
+    PublicKey as _PublicKey,
+};
+#[cfg(target_arch = "wasm32")]
+use gloo_utils::format::JsValueSerdeExt;
+use serde::{Deserialize, Serialize};
+use std::fmt::{Display, Formatter, Result as FmtResult};
+use wasm_bindgen::prelude::*;
+
+#[wasm_bindgen]
+#[derive(Debug, Deserialize, Clone, Serialize, PartialEq, Eq, PartialOrd, Ord)]
+pub struct PublicKey(_PublicKey);
+
+#[wasm_bindgen]
+impl PublicKey {
+    #[wasm_bindgen(constructor)]
+    pub fn new(public_key_hex_str: &str) -> Result<PublicKey, JsValue> {
+        let bytes = hex::decode(public_key_hex_str).map_err(|err| {
+            error(&format!("PublicKey decode {:?}", err));
+            JsValue::null()
+        })?;
+        let (public_key, _) = _PublicKey::from_bytes(&bytes).map_err(|err| {
+            error(&format!("PublicKey from bytes {:?}", err));
+            JsValue::null()
+        })?;
+        Ok(PublicKey(public_key))
+    }
+
+    #[wasm_bindgen(js_name = "fromUint8Array")]
+    pub fn from_bytes(bytes: Vec<u8>) -> PublicKey {
+        let (public_key, _) = _PublicKey::from_bytes(&bytes).unwrap();
+        PublicKey(public_key)
+    }
+
+    #[wasm_bindgen(js_name = "toAccountHash")]
+    pub fn to_account_hash(&self) -> AccountHash {
+        AccountHash::from_public_key(self.0.clone().into())
+    }
+
+    #[wasm_bindgen(js_name = "toPurseUref")]
+    pub fn to_purse_uref(&self) -> URef {
+        PurseIdentifier::from_main_purse_under_public_key(self.0.clone().into()).into()
+    }
+
+    #[cfg(target_arch = "wasm32")]
+    #[wasm_bindgen(js_name = "toJson")]
+    pub fn to_json(&self) -> JsValue {
+        JsValue::from_serde(self).unwrap_or(JsValue::null())
+    }
+}
+
+impl Display for PublicKey {
+    fn fmt(&self, f: &mut Formatter) -> FmtResult {
+        let bytes = self.0.to_bytes().unwrap_or_default();
+        let hex_string = hex::encode(bytes);
+        write!(f, "{}", hex_string)
+    }
+}
+
+impl From<PublicKey> for _PublicKey {
+    fn from(public_key: PublicKey) -> Self {
+        public_key.0
+    }
+}
+
+impl From<_PublicKey> for PublicKey {
+    fn from(public_key: _PublicKey) -> Self {
+        PublicKey(public_key)
+    }
+}
+
+impl ToBytes for PublicKey {
+    fn to_bytes(&self) -> Result<Vec<u8>, bytesrepr::Error> {
+        self.0.to_bytes()
+    }
+
+    fn serialized_length(&self) -> usize {
+        self.0.serialized_length()
+    }
+
+    fn write_bytes(&self, bytes: &mut Vec<u8>) -> Result<(), bytesrepr::Error> {
+        self.0.write_bytes(bytes)
+    }
+}
+
+impl FromBytes for PublicKey {
+    fn from_bytes(bytes: &[u8]) -> Result<(Self, &[u8]), bytesrepr::Error> {
+        let (public_key, remainder) = _PublicKey::from_bytes(bytes)?;
+        Ok((PublicKey(public_key), remainder))
+    }
+}
+
\ No newline at end of file diff --git a/docs/api-rust/src/casper_rust_wasm_sdk/types/purse_identifier.rs.html b/docs/api-rust/src/casper_rust_wasm_sdk/types/purse_identifier.rs.html new file mode 100644 index 000000000..72bb7f8e4 --- /dev/null +++ b/docs/api-rust/src/casper_rust_wasm_sdk/types/purse_identifier.rs.html @@ -0,0 +1,207 @@ +purse_identifier.rs - source
1
+2
+3
+4
+5
+6
+7
+8
+9
+10
+11
+12
+13
+14
+15
+16
+17
+18
+19
+20
+21
+22
+23
+24
+25
+26
+27
+28
+29
+30
+31
+32
+33
+34
+35
+36
+37
+38
+39
+40
+41
+42
+43
+44
+45
+46
+47
+48
+49
+50
+51
+52
+53
+54
+55
+56
+57
+58
+59
+60
+61
+62
+63
+64
+65
+66
+67
+68
+69
+70
+71
+72
+73
+74
+75
+76
+77
+78
+79
+80
+81
+82
+83
+84
+85
+86
+87
+88
+89
+90
+91
+92
+93
+94
+95
+96
+97
+98
+99
+100
+101
+102
+103
+
use super::{account_hash::AccountHash, public_key::PublicKey, uref::URef};
+use casper_client::rpcs::PurseIdentifier as _PurseIdentifier;
+use serde::{Deserialize, Serialize};
+use wasm_bindgen::prelude::*;
+
+#[derive(Debug, Deserialize, Clone, Serialize)]
+#[wasm_bindgen]
+pub struct PurseIdentifier(_PurseIdentifier);
+
+#[wasm_bindgen]
+impl PurseIdentifier {
+    #[wasm_bindgen(constructor)]
+    #[wasm_bindgen(js_name = "fromPublicKey")]
+    pub fn from_main_purse_under_public_key(key: PublicKey) -> Self {
+        PurseIdentifier(_PurseIdentifier::MainPurseUnderPublicKey(key.into()))
+    }
+
+    #[wasm_bindgen(js_name = "fromAccountHash")]
+    pub fn from_main_purse_under_account_hash(account_hash: AccountHash) -> Self {
+        PurseIdentifier(_PurseIdentifier::MainPurseUnderAccountHash(
+            account_hash.into(),
+        ))
+    }
+
+    #[wasm_bindgen(js_name = "fromURef")]
+    pub fn from_purse_uref(uref: URef) -> Self {
+        PurseIdentifier(_PurseIdentifier::PurseUref(uref.into()))
+    }
+}
+
+impl ToString for PurseIdentifier {
+    fn to_string(&self) -> String {
+        match &self.0 {
+            // TODO fix PublicKey to string not short version
+            _PurseIdentifier::MainPurseUnderPublicKey(key) => {
+                PublicKey::from(key.clone()).to_string()
+            }
+            _PurseIdentifier::MainPurseUnderAccountHash(hash) => hash.to_formatted_string(),
+            _PurseIdentifier::PurseUref(uref) => uref.to_formatted_string(),
+        }
+    }
+}
+
+impl From<PurseIdentifier> for PublicKey {
+    fn from(purse_identifier: PurseIdentifier) -> Self {
+        match purse_identifier {
+            PurseIdentifier(_PurseIdentifier::MainPurseUnderPublicKey(key)) => key.into(),
+            _ => unimplemented!("Conversion not implemented for PurseIdentifier to Key"),
+        }
+    }
+}
+
+impl From<PurseIdentifier> for _PurseIdentifier {
+    fn from(purse_identifier: PurseIdentifier) -> Self {
+        purse_identifier.0
+    }
+}
+
+impl From<_PurseIdentifier> for PurseIdentifier {
+    fn from(purse_identifier: _PurseIdentifier) -> Self {
+        PurseIdentifier(purse_identifier)
+    }
+}
+
+impl From<PurseIdentifier> for AccountHash {
+    fn from(purse_identifier: PurseIdentifier) -> Self {
+        match purse_identifier {
+            PurseIdentifier(_PurseIdentifier::MainPurseUnderAccountHash(account_hash)) => {
+                account_hash.into()
+            }
+            _ => unimplemented!("Conversion not implemented for PurseIdentifier to AccountHash"),
+        }
+    }
+}
+
+impl From<PurseIdentifier> for URef {
+    fn from(purse_identifier: PurseIdentifier) -> Self {
+        match purse_identifier {
+            PurseIdentifier(_PurseIdentifier::PurseUref(uref)) => uref.into(),
+            _ => unimplemented!("Conversion not implemented for PurseIdentifier to URef"),
+        }
+    }
+}
+
+impl From<PublicKey> for PurseIdentifier {
+    fn from(key: PublicKey) -> Self {
+        PurseIdentifier(_PurseIdentifier::MainPurseUnderPublicKey(key.into()))
+    }
+}
+
+impl From<AccountHash> for PurseIdentifier {
+    fn from(account_hash: AccountHash) -> Self {
+        PurseIdentifier(_PurseIdentifier::MainPurseUnderAccountHash(
+            account_hash.into(),
+        ))
+    }
+}
+
+impl From<URef> for PurseIdentifier {
+    fn from(uref: URef) -> Self {
+        PurseIdentifier(_PurseIdentifier::PurseUref(uref.into()))
+    }
+}
+
\ No newline at end of file diff --git a/docs/api-rust/src/casper_rust_wasm_sdk/types/sdk_error.rs.html b/docs/api-rust/src/casper_rust_wasm_sdk/types/sdk_error.rs.html new file mode 100644 index 000000000..dffbbb364 --- /dev/null +++ b/docs/api-rust/src/casper_rust_wasm_sdk/types/sdk_error.rs.html @@ -0,0 +1,307 @@ +sdk_error.rs - source
1
+2
+3
+4
+5
+6
+7
+8
+9
+10
+11
+12
+13
+14
+15
+16
+17
+18
+19
+20
+21
+22
+23
+24
+25
+26
+27
+28
+29
+30
+31
+32
+33
+34
+35
+36
+37
+38
+39
+40
+41
+42
+43
+44
+45
+46
+47
+48
+49
+50
+51
+52
+53
+54
+55
+56
+57
+58
+59
+60
+61
+62
+63
+64
+65
+66
+67
+68
+69
+70
+71
+72
+73
+74
+75
+76
+77
+78
+79
+80
+81
+82
+83
+84
+85
+86
+87
+88
+89
+90
+91
+92
+93
+94
+95
+96
+97
+98
+99
+100
+101
+102
+103
+104
+105
+106
+107
+108
+109
+110
+111
+112
+113
+114
+115
+116
+117
+118
+119
+120
+121
+122
+123
+124
+125
+126
+127
+128
+129
+130
+131
+132
+133
+134
+135
+136
+137
+138
+139
+140
+141
+142
+143
+144
+145
+146
+147
+148
+149
+150
+151
+152
+153
+
use casper_client::{cli::CliError, cli::JsonArgsError, Error};
+use casper_types::{
+    account::FromStrError, CLValueError, KeyFromStrError, UIntParseError, URefFromStrError,
+};
+use humantime::{DurationError, TimestampError};
+use std::num::ParseIntError;
+use thiserror::Error;
+
+#[derive(Error, Debug)]
+pub enum SdkError {
+    #[error("Failed to parse {context} as a key: {error}")]
+    FailedToParseKey {
+        context: &'static str,
+        error: KeyFromStrError,
+    },
+
+    #[error("Failed to parse {context} as a public key: {error}")]
+    FailedToParsePublicKey {
+        context: String,
+        error: casper_types::crypto::Error,
+    },
+
+    #[error("Failed to parse {context} as an account hash: {error}")]
+    FailedToParseAccountHash {
+        context: &'static str,
+        error: FromStrError,
+    },
+
+    #[error("Failed to parse '{context}' as a uref: {error}")]
+    FailedToParseURef {
+        context: &'static str,
+        error: URefFromStrError,
+    },
+
+    #[error("Failed to parse '{context}' as an integer: {error}")]
+    FailedToParseInt {
+        context: &'static str,
+        error: ParseIntError,
+    },
+
+    #[error("Failed to parse '{context}' as a time diff: {error}")]
+    FailedToParseTimeDiff {
+        context: &'static str,
+        error: DurationError,
+    },
+
+    #[error("Failed to parse '{context}' as a timestamp: {error}")]
+    FailedToParseTimestamp {
+        context: &'static str,
+        error: TimestampError,
+    },
+
+    #[error("Failed to parse '{context}' as u128, u256, or u512: {error:?}")]
+    FailedToParseUint {
+        context: &'static str,
+        error: UIntParseError,
+    },
+
+    #[error("Failed to parse '{context}' as a hash digest: {error:?}")]
+    FailedToParseDigest {
+        context: String,
+        error: casper_hashing::Error,
+    },
+
+    #[error("Failed to parse state identifier")]
+    FailedToParseStateIdentifier,
+
+    #[error("Failed to parse purse identifier")]
+    FailedToParsePurseIdentifier,
+
+    #[error("Failed to parse account identifier")]
+    FailedToParseAccountIdentifier,
+
+    #[error("Conflicting arguments passed '{context}' {args:?}")]
+    ConflictingArguments { context: String, args: Vec<String> },
+
+    #[error("Invalid CLValue error: {0}")]
+    InvalidCLValue(String),
+
+    #[error("Invalid argument '{context}': {error}")]
+    InvalidArgument {
+        context: &'static str,
+        error: String,
+    },
+
+    #[error("Failed to parse json-args to JSON: {0}. They should be a JSON Array of Objects, each of the form {{\"name\":<String>,\"type\":<VALUE>,\"value\":<VALUE>}}")]
+    FailedToParseJsonArgs(#[from] serde_json::Error),
+
+    #[error(transparent)]
+    JsonArgs(#[from] JsonArgsError),
+
+    #[error(transparent)]
+    Core(#[from] Error),
+}
+
+impl From<CLValueError> for SdkError {
+    fn from(error: CLValueError) -> Self {
+        match error {
+            CLValueError::Serialization(bytesrepr_error) => SdkError::Core(bytesrepr_error.into()),
+            CLValueError::Type(type_mismatch) => {
+                SdkError::InvalidCLValue(type_mismatch.to_string())
+            }
+        }
+    }
+}
+
+impl From<CliError> for SdkError {
+    fn from(error: CliError) -> Self {
+        match error {
+            CliError::FailedToParseKey { context, error } => {
+                SdkError::FailedToParseKey { context, error }
+            }
+            CliError::FailedToParsePublicKey { context, error } => {
+                SdkError::FailedToParsePublicKey { context, error }
+            }
+            CliError::FailedToParseAccountHash { context, error } => {
+                SdkError::FailedToParseAccountHash { context, error }
+            }
+            CliError::FailedToParseURef { context, error } => {
+                SdkError::FailedToParseURef { context, error }
+            }
+            CliError::FailedToParseInt { context, error } => {
+                SdkError::FailedToParseInt { context, error }
+            }
+            CliError::FailedToParseTimeDiff { context, error } => {
+                SdkError::FailedToParseTimeDiff { context, error }
+            }
+            CliError::FailedToParseTimestamp { context, error } => {
+                SdkError::FailedToParseTimestamp { context, error }
+            }
+            CliError::FailedToParseUint { context, error } => {
+                SdkError::FailedToParseUint { context, error }
+            }
+            CliError::FailedToParseDigest { context, error } => SdkError::FailedToParseDigest {
+                context: context.to_owned(),
+                error,
+            },
+            CliError::FailedToParseStateIdentifier => SdkError::FailedToParseStateIdentifier,
+            CliError::ConflictingArguments { context, args } => {
+                SdkError::ConflictingArguments { context, args }
+            }
+            CliError::InvalidCLValue(error) => SdkError::InvalidCLValue(error),
+            CliError::InvalidArgument { context, error } => {
+                SdkError::InvalidArgument { context, error }
+            }
+            CliError::FailedToParseJsonArgs(json_error) => {
+                SdkError::FailedToParseJsonArgs(json_error)
+            }
+            CliError::JsonArgs(json_args_error) => SdkError::JsonArgs(json_args_error),
+            CliError::Core(core_error) => SdkError::Core(core_error),
+        }
+    }
+}
+
\ No newline at end of file diff --git a/docs/api-rust/src/casper_rust_wasm_sdk/types/uref.rs.html b/docs/api-rust/src/casper_rust_wasm_sdk/types/uref.rs.html new file mode 100644 index 000000000..1f0a64c21 --- /dev/null +++ b/docs/api-rust/src/casper_rust_wasm_sdk/types/uref.rs.html @@ -0,0 +1,141 @@ +uref.rs - source
1
+2
+3
+4
+5
+6
+7
+8
+9
+10
+11
+12
+13
+14
+15
+16
+17
+18
+19
+20
+21
+22
+23
+24
+25
+26
+27
+28
+29
+30
+31
+32
+33
+34
+35
+36
+37
+38
+39
+40
+41
+42
+43
+44
+45
+46
+47
+48
+49
+50
+51
+52
+53
+54
+55
+56
+57
+58
+59
+60
+61
+62
+63
+64
+65
+66
+67
+68
+69
+70
+
use crate::{
+    debug::error,
+    types::{access_rights::AccessRights, addr::uref_addr::URefAddr},
+};
+use casper_types::URef as _URef;
+#[cfg(target_arch = "wasm32")]
+use gloo_utils::format::JsValueSerdeExt;
+use serde::{Deserialize, Serialize};
+use wasm_bindgen::prelude::*;
+
+#[derive(Debug, Clone, Deserialize, Serialize)]
+#[wasm_bindgen]
+
+pub struct URef(_URef);
+
+#[wasm_bindgen]
+impl URef {
+    #[wasm_bindgen(constructor)]
+    pub fn new(uref_hex_str: &str, access_rights: u8) -> Result<URef, JsValue> {
+        // Convert the input hexadecimal string to bytes
+        let bytes = match hex::decode(uref_hex_str) {
+            Ok(bytes) => bytes,
+            Err(err) => {
+                error(&format!("Invalid hex string: {}", err));
+                return Err(JsValue::null());
+            }
+        };
+
+        let uref = _URef::new(
+            URefAddr::new(bytes).unwrap().into(),
+            AccessRights::new(access_rights).unwrap_or_default().into(),
+        );
+
+        Ok(URef(uref))
+    }
+
+    #[wasm_bindgen(js_name = "fromUint8Array")]
+    pub fn from_bytes(bytes: Vec<u8>, access_rights: u8) -> Self {
+        let mut address_array = [0u8; 32];
+        address_array[..bytes.len()].copy_from_slice(&bytes);
+
+        URef(_URef::new(
+            address_array,
+            AccessRights::new(access_rights).unwrap_or_default().into(),
+        ))
+    }
+
+    #[wasm_bindgen(js_name = "toFormattedString")]
+    pub fn to_formatted_string(&self) -> String {
+        self.0.to_formatted_string()
+    }
+
+    #[cfg(target_arch = "wasm32")]
+    #[wasm_bindgen(js_name = "toJson")]
+    pub fn to_json(&self) -> JsValue {
+        JsValue::from_serde(self).unwrap_or(JsValue::null())
+    }
+}
+
+impl From<_URef> for URef {
+    fn from(uref: _URef) -> Self {
+        URef(uref)
+    }
+}
+
+impl From<URef> for _URef {
+    fn from(uref: URef) -> Self {
+        uref.0
+    }
+}
+
\ No newline at end of file diff --git a/docs/api-rust/src/casper_rust_wasm_sdk/types/verbosity.rs.html b/docs/api-rust/src/casper_rust_wasm_sdk/types/verbosity.rs.html new file mode 100644 index 000000000..05b73c2d0 --- /dev/null +++ b/docs/api-rust/src/casper_rust_wasm_sdk/types/verbosity.rs.html @@ -0,0 +1,191 @@ +verbosity.rs - source
1
+2
+3
+4
+5
+6
+7
+8
+9
+10
+11
+12
+13
+14
+15
+16
+17
+18
+19
+20
+21
+22
+23
+24
+25
+26
+27
+28
+29
+30
+31
+32
+33
+34
+35
+36
+37
+38
+39
+40
+41
+42
+43
+44
+45
+46
+47
+48
+49
+50
+51
+52
+53
+54
+55
+56
+57
+58
+59
+60
+61
+62
+63
+64
+65
+66
+67
+68
+69
+70
+71
+72
+73
+74
+75
+76
+77
+78
+79
+80
+81
+82
+83
+84
+85
+86
+87
+88
+89
+90
+91
+92
+93
+94
+95
+
use casper_client::Verbosity as _Verbosity;
+use serde::{Deserialize, Deserializer, Serialize};
+use wasm_bindgen::prelude::*;
+
+#[derive(Debug, Serialize, Clone, Copy, PartialEq)]
+#[wasm_bindgen]
+pub enum Verbosity {
+    Low = 0,
+    Medium = 1,
+    High = 2,
+}
+
+impl<'de> Deserialize<'de> for Verbosity {
+    fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>
+    where
+        D: Deserializer<'de>,
+    {
+        #[derive(Deserialize)]
+        #[serde(untagged)]
+        enum Value {
+            IntValue(u64),
+            StrValue(String),
+        }
+
+        let value: Value = Deserialize::deserialize(deserializer)?;
+
+        match value {
+            Value::IntValue(v) => match v {
+                0 => Ok(Verbosity::Low),
+                1 => Ok(Verbosity::Medium),
+                2 => Ok(Verbosity::High),
+                _ => Err(serde::de::Error::custom("Invalid verbosity value")),
+            },
+            Value::StrValue(s) => Ok(Verbosity::from(s.as_str())),
+        }
+    }
+}
+
+impl From<Verbosity> for u64 {
+    fn from(verbosity: Verbosity) -> Self {
+        match verbosity {
+            Verbosity::Low => 0,
+            Verbosity::Medium => 1,
+            Verbosity::High => 2,
+        }
+    }
+}
+
+impl From<u64> for Verbosity {
+    fn from(value: u64) -> Self {
+        match value {
+            0 => Verbosity::Low,
+            1 => Verbosity::Medium,
+            2 => Verbosity::High,
+            _ => unreachable!("Invalid u64 value for Verbosity"),
+        }
+    }
+}
+
+impl From<&str> for Verbosity {
+    fn from(s: &str) -> Self {
+        match s.to_lowercase().as_str() {
+            "low" => Verbosity::Low,
+            "medium" => Verbosity::Medium,
+            "high" => Verbosity::High,
+            _ => unreachable!("Invalid verbosity string"),
+        }
+    }
+}
+
+impl From<String> for Verbosity {
+    fn from(s: String) -> Self {
+        s.as_str().into()
+    }
+}
+
+impl From<Verbosity> for _Verbosity {
+    fn from(verbosity: Verbosity) -> Self {
+        match verbosity {
+            Verbosity::Low => _Verbosity::Low,
+            Verbosity::Medium => _Verbosity::Medium,
+            Verbosity::High => _Verbosity::High,
+        }
+    }
+}
+
+impl From<_Verbosity> for Verbosity {
+    fn from(verbosity: _Verbosity) -> Self {
+        match verbosity {
+            _Verbosity::Low => Verbosity::Low,
+            _Verbosity::Medium => Verbosity::Medium,
+            _Verbosity::High => Verbosity::High,
+        }
+    }
+}
+
\ No newline at end of file diff --git a/docs/api-rust/static.files/COPYRIGHT-23e9bde6c69aea69.txt b/docs/api-rust/static.files/COPYRIGHT-23e9bde6c69aea69.txt new file mode 100644 index 000000000..1447df792 --- /dev/null +++ b/docs/api-rust/static.files/COPYRIGHT-23e9bde6c69aea69.txt @@ -0,0 +1,50 @@ +# REUSE-IgnoreStart + +These documentation pages include resources by third parties. This copyright +file applies only to those resources. The following third party resources are +included, and carry their own copyright notices and license terms: + +* Fira Sans (FiraSans-Regular.woff2, FiraSans-Medium.woff2): + + Copyright (c) 2014, Mozilla Foundation https://mozilla.org/ + with Reserved Font Name Fira Sans. + + Copyright (c) 2014, Telefonica S.A. + + Licensed under the SIL Open Font License, Version 1.1. + See FiraSans-LICENSE.txt. + +* rustdoc.css, main.js, and playpen.js: + + Copyright 2015 The Rust Developers. + Licensed under the Apache License, Version 2.0 (see LICENSE-APACHE.txt) or + the MIT license (LICENSE-MIT.txt) at your option. + +* normalize.css: + + Copyright (c) Nicolas Gallagher and Jonathan Neal. + Licensed under the MIT license (see LICENSE-MIT.txt). + +* Source Code Pro (SourceCodePro-Regular.ttf.woff2, + SourceCodePro-Semibold.ttf.woff2, SourceCodePro-It.ttf.woff2): + + Copyright 2010, 2012 Adobe Systems Incorporated (http://www.adobe.com/), + with Reserved Font Name 'Source'. All Rights Reserved. Source is a trademark + of Adobe Systems Incorporated in the United States and/or other countries. + + Licensed under the SIL Open Font License, Version 1.1. + See SourceCodePro-LICENSE.txt. + +* Source Serif 4 (SourceSerif4-Regular.ttf.woff2, SourceSerif4-Bold.ttf.woff2, + SourceSerif4-It.ttf.woff2): + + Copyright 2014-2021 Adobe (http://www.adobe.com/), with Reserved Font Name + 'Source'. All Rights Reserved. Source is a trademark of Adobe in the United + States and/or other countries. + + Licensed under the SIL Open Font License, Version 1.1. + See SourceSerif4-LICENSE.md. + +This copyright file is intended to be distributed with rustdoc output. + +# REUSE-IgnoreEnd diff --git a/docs/api-rust/static.files/FiraSans-LICENSE-db4b642586e02d97.txt b/docs/api-rust/static.files/FiraSans-LICENSE-db4b642586e02d97.txt new file mode 100644 index 000000000..d7e9c149b --- /dev/null +++ b/docs/api-rust/static.files/FiraSans-LICENSE-db4b642586e02d97.txt @@ -0,0 +1,98 @@ +// REUSE-IgnoreStart + +Digitized data copyright (c) 2012-2015, The Mozilla Foundation and Telefonica S.A. +with Reserved Font Name < Fira >, + +This Font Software is licensed under the SIL Open Font License, Version 1.1. +This license is copied below, and is also available with a FAQ at: +http://scripts.sil.org/OFL + + +----------------------------------------------------------- +SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 +----------------------------------------------------------- + +PREAMBLE +The goals of the Open Font License (OFL) are to stimulate worldwide +development of collaborative font projects, to support the font creation +efforts of academic and linguistic communities, and to provide a free and +open framework in which fonts may be shared and improved in partnership +with others. + +The OFL allows the licensed fonts to be used, studied, modified and +redistributed freely as long as they are not sold by themselves. The +fonts, including any derivative works, can be bundled, embedded, +redistributed and/or sold with any software provided that any reserved +names are not used by derivative works. The fonts and derivatives, +however, cannot be released under any other type of license. The +requirement for fonts to remain under this license does not apply +to any document created using the fonts or their derivatives. + +DEFINITIONS +"Font Software" refers to the set of files released by the Copyright +Holder(s) under this license and clearly marked as such. This may +include source files, build scripts and documentation. + +"Reserved Font Name" refers to any names specified as such after the +copyright statement(s). + +"Original Version" refers to the collection of Font Software components as +distributed by the Copyright Holder(s). + +"Modified Version" refers to any derivative made by adding to, deleting, +or substituting -- in part or in whole -- any of the components of the +Original Version, by changing formats or by porting the Font Software to a +new environment. + +"Author" refers to any designer, engineer, programmer, technical +writer or other person who contributed to the Font Software. + +PERMISSION & CONDITIONS +Permission is hereby granted, free of charge, to any person obtaining +a copy of the Font Software, to use, study, copy, merge, embed, modify, +redistribute, and sell modified and unmodified copies of the Font +Software, subject to the following conditions: + +1) Neither the Font Software nor any of its individual components, +in Original or Modified Versions, may be sold by itself. + +2) Original or Modified Versions of the Font Software may be bundled, +redistributed and/or sold with any software, provided that each copy +contains the above copyright notice and this license. These can be +included either as stand-alone text files, human-readable headers or +in the appropriate machine-readable metadata fields within text or +binary files as long as those fields can be easily viewed by the user. + +3) No Modified Version of the Font Software may use the Reserved Font +Name(s) unless explicit written permission is granted by the corresponding +Copyright Holder. This restriction only applies to the primary font name as +presented to the users. + +4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font +Software shall not be used to promote, endorse or advertise any +Modified Version, except to acknowledge the contribution(s) of the +Copyright Holder(s) and the Author(s) or with their explicit written +permission. + +5) The Font Software, modified or unmodified, in part or in whole, +must be distributed entirely under this license, and must not be +distributed under any other license. The requirement for fonts to +remain under this license does not apply to any document created +using the Font Software. + +TERMINATION +This license becomes null and void if any of the above conditions are +not met. + +DISCLAIMER +THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT +OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL +DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM +OTHER DEALINGS IN THE FONT SOFTWARE. + +// REUSE-IgnoreEnd diff --git a/docs/api-rust/static.files/FiraSans-Medium-8f9a781e4970d388.woff2 b/docs/api-rust/static.files/FiraSans-Medium-8f9a781e4970d388.woff2 new file mode 100644 index 000000000..7a1e5fc54 Binary files /dev/null and b/docs/api-rust/static.files/FiraSans-Medium-8f9a781e4970d388.woff2 differ diff --git a/docs/api-rust/static.files/FiraSans-Regular-018c141bf0843ffd.woff2 b/docs/api-rust/static.files/FiraSans-Regular-018c141bf0843ffd.woff2 new file mode 100644 index 000000000..e766e06cc Binary files /dev/null and b/docs/api-rust/static.files/FiraSans-Regular-018c141bf0843ffd.woff2 differ diff --git a/docs/api-rust/static.files/LICENSE-APACHE-b91fa81cba47b86a.txt b/docs/api-rust/static.files/LICENSE-APACHE-b91fa81cba47b86a.txt new file mode 100644 index 000000000..16fe87b06 --- /dev/null +++ b/docs/api-rust/static.files/LICENSE-APACHE-b91fa81cba47b86a.txt @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + +TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + +1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + +2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + +3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + +4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + +5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + +6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + +7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + +8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + +9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + +END OF TERMS AND CONDITIONS + +APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + +Copyright [yyyy] [name of copyright owner] + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. diff --git a/docs/api-rust/static.files/LICENSE-MIT-65090b722b3f6c56.txt b/docs/api-rust/static.files/LICENSE-MIT-65090b722b3f6c56.txt new file mode 100644 index 000000000..31aa79387 --- /dev/null +++ b/docs/api-rust/static.files/LICENSE-MIT-65090b722b3f6c56.txt @@ -0,0 +1,23 @@ +Permission is hereby granted, free of charge, to any +person obtaining a copy of this software and associated +documentation files (the "Software"), to deal in the +Software without restriction, including without +limitation the rights to use, copy, modify, merge, +publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software +is furnished to do so, subject to the following +conditions: + +The above copyright notice and this permission notice +shall be included in all copies or substantial portions +of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF +ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A +PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT +SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR +IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +DEALINGS IN THE SOFTWARE. diff --git a/docs/api-rust/static.files/NanumBarunGothic-0f09457c7a19b7c6.ttf.woff2 b/docs/api-rust/static.files/NanumBarunGothic-0f09457c7a19b7c6.ttf.woff2 new file mode 100644 index 000000000..1866ad4bc Binary files /dev/null and b/docs/api-rust/static.files/NanumBarunGothic-0f09457c7a19b7c6.ttf.woff2 differ diff --git a/docs/api-rust/static.files/NanumBarunGothic-LICENSE-18c5adf4b52b4041.txt b/docs/api-rust/static.files/NanumBarunGothic-LICENSE-18c5adf4b52b4041.txt new file mode 100644 index 000000000..4b3edc29e --- /dev/null +++ b/docs/api-rust/static.files/NanumBarunGothic-LICENSE-18c5adf4b52b4041.txt @@ -0,0 +1,103 @@ +// REUSE-IgnoreStart + +Copyright (c) 2010, NAVER Corporation (https://www.navercorp.com/), + +with Reserved Font Name Nanum, Naver Nanum, NanumGothic, Naver NanumGothic, +NanumMyeongjo, Naver NanumMyeongjo, NanumBrush, Naver NanumBrush, NanumPen, +Naver NanumPen, Naver NanumGothicEco, NanumGothicEco, Naver NanumMyeongjoEco, +NanumMyeongjoEco, Naver NanumGothicLight, NanumGothicLight, NanumBarunGothic, +Naver NanumBarunGothic, NanumSquareRound, NanumBarunPen, MaruBuri + +This Font Software is licensed under the SIL Open Font License, Version 1.1. +This license is copied below, and is also available with a FAQ at: +http://scripts.sil.org/OFL + + +----------------------------------------------------------- +SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 +----------------------------------------------------------- + +PREAMBLE +The goals of the Open Font License (OFL) are to stimulate worldwide +development of collaborative font projects, to support the font creation +efforts of academic and linguistic communities, and to provide a free and +open framework in which fonts may be shared and improved in partnership +with others. + +The OFL allows the licensed fonts to be used, studied, modified and +redistributed freely as long as they are not sold by themselves. The +fonts, including any derivative works, can be bundled, embedded, +redistributed and/or sold with any software provided that any reserved +names are not used by derivative works. The fonts and derivatives, +however, cannot be released under any other type of license. The +requirement for fonts to remain under this license does not apply +to any document created using the fonts or their derivatives. + +DEFINITIONS +"Font Software" refers to the set of files released by the Copyright +Holder(s) under this license and clearly marked as such. This may +include source files, build scripts and documentation. + +"Reserved Font Name" refers to any names specified as such after the +copyright statement(s). + +"Original Version" refers to the collection of Font Software components as +distributed by the Copyright Holder(s). + +"Modified Version" refers to any derivative made by adding to, deleting, +or substituting -- in part or in whole -- any of the components of the +Original Version, by changing formats or by porting the Font Software to a +new environment. + +"Author" refers to any designer, engineer, programmer, technical +writer or other person who contributed to the Font Software. + +PERMISSION & CONDITIONS +Permission is hereby granted, free of charge, to any person obtaining +a copy of the Font Software, to use, study, copy, merge, embed, modify, +redistribute, and sell modified and unmodified copies of the Font +Software, subject to the following conditions: + +1) Neither the Font Software nor any of its individual components, +in Original or Modified Versions, may be sold by itself. + +2) Original or Modified Versions of the Font Software may be bundled, +redistributed and/or sold with any software, provided that each copy +contains the above copyright notice and this license. These can be +included either as stand-alone text files, human-readable headers or +in the appropriate machine-readable metadata fields within text or +binary files as long as those fields can be easily viewed by the user. + +3) No Modified Version of the Font Software may use the Reserved Font +Name(s) unless explicit written permission is granted by the corresponding +Copyright Holder. This restriction only applies to the primary font name as +presented to the users. + +4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font +Software shall not be used to promote, endorse or advertise any +Modified Version, except to acknowledge the contribution(s) of the +Copyright Holder(s) and the Author(s) or with their explicit written +permission. + +5) The Font Software, modified or unmodified, in part or in whole, +must be distributed entirely under this license, and must not be +distributed under any other license. The requirement for fonts to +remain under this license does not apply to any document created +using the Font Software. + +TERMINATION +This license becomes null and void if any of the above conditions are +not met. + +DISCLAIMER +THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT +OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL +DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM +OTHER DEALINGS IN THE FONT SOFTWARE. + +// REUSE-IgnoreEnd diff --git a/docs/api-rust/static.files/SourceCodePro-It-1cc31594bf4f1f79.ttf.woff2 b/docs/api-rust/static.files/SourceCodePro-It-1cc31594bf4f1f79.ttf.woff2 new file mode 100644 index 000000000..462c34efc Binary files /dev/null and b/docs/api-rust/static.files/SourceCodePro-It-1cc31594bf4f1f79.ttf.woff2 differ diff --git a/docs/api-rust/static.files/SourceCodePro-LICENSE-d180d465a756484a.txt b/docs/api-rust/static.files/SourceCodePro-LICENSE-d180d465a756484a.txt new file mode 100644 index 000000000..0d2941e14 --- /dev/null +++ b/docs/api-rust/static.files/SourceCodePro-LICENSE-d180d465a756484a.txt @@ -0,0 +1,97 @@ +// REUSE-IgnoreStart + +Copyright 2010, 2012 Adobe Systems Incorporated (http://www.adobe.com/), with Reserved Font Name 'Source'. All Rights Reserved. Source is a trademark of Adobe Systems Incorporated in the United States and/or other countries. + +This Font Software is licensed under the SIL Open Font License, Version 1.1. + +This license is copied below, and is also available with a FAQ at: http://scripts.sil.org/OFL + + +----------------------------------------------------------- +SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 +----------------------------------------------------------- + +PREAMBLE +The goals of the Open Font License (OFL) are to stimulate worldwide +development of collaborative font projects, to support the font creation +efforts of academic and linguistic communities, and to provide a free and +open framework in which fonts may be shared and improved in partnership +with others. + +The OFL allows the licensed fonts to be used, studied, modified and +redistributed freely as long as they are not sold by themselves. The +fonts, including any derivative works, can be bundled, embedded, +redistributed and/or sold with any software provided that any reserved +names are not used by derivative works. The fonts and derivatives, +however, cannot be released under any other type of license. The +requirement for fonts to remain under this license does not apply +to any document created using the fonts or their derivatives. + +DEFINITIONS +"Font Software" refers to the set of files released by the Copyright +Holder(s) under this license and clearly marked as such. This may +include source files, build scripts and documentation. + +"Reserved Font Name" refers to any names specified as such after the +copyright statement(s). + +"Original Version" refers to the collection of Font Software components as +distributed by the Copyright Holder(s). + +"Modified Version" refers to any derivative made by adding to, deleting, +or substituting -- in part or in whole -- any of the components of the +Original Version, by changing formats or by porting the Font Software to a +new environment. + +"Author" refers to any designer, engineer, programmer, technical +writer or other person who contributed to the Font Software. + +PERMISSION & CONDITIONS +Permission is hereby granted, free of charge, to any person obtaining +a copy of the Font Software, to use, study, copy, merge, embed, modify, +redistribute, and sell modified and unmodified copies of the Font +Software, subject to the following conditions: + +1) Neither the Font Software nor any of its individual components, +in Original or Modified Versions, may be sold by itself. + +2) Original or Modified Versions of the Font Software may be bundled, +redistributed and/or sold with any software, provided that each copy +contains the above copyright notice and this license. These can be +included either as stand-alone text files, human-readable headers or +in the appropriate machine-readable metadata fields within text or +binary files as long as those fields can be easily viewed by the user. + +3) No Modified Version of the Font Software may use the Reserved Font +Name(s) unless explicit written permission is granted by the corresponding +Copyright Holder. This restriction only applies to the primary font name as +presented to the users. + +4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font +Software shall not be used to promote, endorse or advertise any +Modified Version, except to acknowledge the contribution(s) of the +Copyright Holder(s) and the Author(s) or with their explicit written +permission. + +5) The Font Software, modified or unmodified, in part or in whole, +must be distributed entirely under this license, and must not be +distributed under any other license. The requirement for fonts to +remain under this license does not apply to any document created +using the Font Software. + +TERMINATION +This license becomes null and void if any of the above conditions are +not met. + +DISCLAIMER +THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT +OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL +DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM +OTHER DEALINGS IN THE FONT SOFTWARE. + +// REUSE-IgnoreEnd diff --git a/docs/api-rust/static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2 b/docs/api-rust/static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2 new file mode 100644 index 000000000..10b558e0b Binary files /dev/null and b/docs/api-rust/static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2 differ diff --git a/docs/api-rust/static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2 b/docs/api-rust/static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2 new file mode 100644 index 000000000..5ec64eef0 Binary files /dev/null and b/docs/api-rust/static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2 differ diff --git a/docs/api-rust/static.files/SourceSerif4-Bold-a2c9cd1067f8b328.ttf.woff2 b/docs/api-rust/static.files/SourceSerif4-Bold-a2c9cd1067f8b328.ttf.woff2 new file mode 100644 index 000000000..181a07f63 Binary files /dev/null and b/docs/api-rust/static.files/SourceSerif4-Bold-a2c9cd1067f8b328.ttf.woff2 differ diff --git a/docs/api-rust/static.files/SourceSerif4-It-acdfaf1a8af734b1.ttf.woff2 b/docs/api-rust/static.files/SourceSerif4-It-acdfaf1a8af734b1.ttf.woff2 new file mode 100644 index 000000000..2ae08a7be Binary files /dev/null and b/docs/api-rust/static.files/SourceSerif4-It-acdfaf1a8af734b1.ttf.woff2 differ diff --git a/docs/api-rust/static.files/SourceSerif4-LICENSE-3bb119e13b1258b7.md b/docs/api-rust/static.files/SourceSerif4-LICENSE-3bb119e13b1258b7.md new file mode 100644 index 000000000..175fa4f47 --- /dev/null +++ b/docs/api-rust/static.files/SourceSerif4-LICENSE-3bb119e13b1258b7.md @@ -0,0 +1,98 @@ + + +Copyright 2014-2021 Adobe (http://www.adobe.com/), with Reserved Font Name 'Source'. All Rights Reserved. Source is a trademark of Adobe in the United States and/or other countries. +Copyright 2014 - 2023 Adobe (http://www.adobe.com/), with Reserved Font Name ‘Source’. All Rights Reserved. Source is a trademark of Adobe in the United States and/or other countries. + +This Font Software is licensed under the SIL Open Font License, Version 1.1. + +This license is copied below, and is also available with a FAQ at: http://scripts.sil.org/OFL + + +----------------------------------------------------------- +SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 +----------------------------------------------------------- + +PREAMBLE +The goals of the Open Font License (OFL) are to stimulate worldwide +development of collaborative font projects, to support the font creation +efforts of academic and linguistic communities, and to provide a free and +open framework in which fonts may be shared and improved in partnership +with others. + +The OFL allows the licensed fonts to be used, studied, modified and +redistributed freely as long as they are not sold by themselves. The +fonts, including any derivative works, can be bundled, embedded, +redistributed and/or sold with any software provided that any reserved +names are not used by derivative works. The fonts and derivatives, +however, cannot be released under any other type of license. The +requirement for fonts to remain under this license does not apply +to any document created using the fonts or their derivatives. + +DEFINITIONS +"Font Software" refers to the set of files released by the Copyright +Holder(s) under this license and clearly marked as such. This may +include source files, build scripts and documentation. + +"Reserved Font Name" refers to any names specified as such after the +copyright statement(s). + +"Original Version" refers to the collection of Font Software components as +distributed by the Copyright Holder(s). + +"Modified Version" refers to any derivative made by adding to, deleting, +or substituting -- in part or in whole -- any of the components of the +Original Version, by changing formats or by porting the Font Software to a +new environment. + +"Author" refers to any designer, engineer, programmer, technical +writer or other person who contributed to the Font Software. + +PERMISSION & CONDITIONS +Permission is hereby granted, free of charge, to any person obtaining +a copy of the Font Software, to use, study, copy, merge, embed, modify, +redistribute, and sell modified and unmodified copies of the Font +Software, subject to the following conditions: + +1) Neither the Font Software nor any of its individual components, +in Original or Modified Versions, may be sold by itself. + +2) Original or Modified Versions of the Font Software may be bundled, +redistributed and/or sold with any software, provided that each copy +contains the above copyright notice and this license. These can be +included either as stand-alone text files, human-readable headers or +in the appropriate machine-readable metadata fields within text or +binary files as long as those fields can be easily viewed by the user. + +3) No Modified Version of the Font Software may use the Reserved Font +Name(s) unless explicit written permission is granted by the corresponding +Copyright Holder. This restriction only applies to the primary font name as +presented to the users. + +4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font +Software shall not be used to promote, endorse or advertise any +Modified Version, except to acknowledge the contribution(s) of the +Copyright Holder(s) and the Author(s) or with their explicit written +permission. + +5) The Font Software, modified or unmodified, in part or in whole, +must be distributed entirely under this license, and must not be +distributed under any other license. The requirement for fonts to +remain under this license does not apply to any document created +using the Font Software. + +TERMINATION +This license becomes null and void if any of the above conditions are +not met. + +DISCLAIMER +THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT +OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL +DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM +OTHER DEALINGS IN THE FONT SOFTWARE. + + diff --git a/docs/api-rust/static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2 b/docs/api-rust/static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2 new file mode 100644 index 000000000..0263fc304 Binary files /dev/null and b/docs/api-rust/static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2 differ diff --git a/docs/api-rust/static.files/clipboard-7571035ce49a181d.svg b/docs/api-rust/static.files/clipboard-7571035ce49a181d.svg new file mode 100644 index 000000000..8adbd9963 --- /dev/null +++ b/docs/api-rust/static.files/clipboard-7571035ce49a181d.svg @@ -0,0 +1 @@ + diff --git a/docs/api-rust/static.files/favicon-16x16-8b506e7a72182f1c.png b/docs/api-rust/static.files/favicon-16x16-8b506e7a72182f1c.png new file mode 100644 index 000000000..ea4b45cae Binary files /dev/null and b/docs/api-rust/static.files/favicon-16x16-8b506e7a72182f1c.png differ diff --git a/docs/api-rust/static.files/favicon-2c020d218678b618.svg b/docs/api-rust/static.files/favicon-2c020d218678b618.svg new file mode 100644 index 000000000..8b34b5119 --- /dev/null +++ b/docs/api-rust/static.files/favicon-2c020d218678b618.svg @@ -0,0 +1,24 @@ + + + + + diff --git a/docs/api-rust/static.files/favicon-32x32-422f7d1d52889060.png b/docs/api-rust/static.files/favicon-32x32-422f7d1d52889060.png new file mode 100644 index 000000000..69b8613ce Binary files /dev/null and b/docs/api-rust/static.files/favicon-32x32-422f7d1d52889060.png differ diff --git a/docs/api-rust/static.files/main-c5bd66d33317d69f.js b/docs/api-rust/static.files/main-c5bd66d33317d69f.js new file mode 100644 index 000000000..43133d66e --- /dev/null +++ b/docs/api-rust/static.files/main-c5bd66d33317d69f.js @@ -0,0 +1,12 @@ +"use strict";window.RUSTDOC_TOOLTIP_HOVER_MS=300;window.RUSTDOC_TOOLTIP_HOVER_EXIT_MS=450;function resourcePath(basename,extension){return getVar("root-path")+basename+getVar("resource-suffix")+extension}function hideMain(){addClass(document.getElementById(MAIN_ID),"hidden")}function showMain(){removeClass(document.getElementById(MAIN_ID),"hidden")}function elemIsInParent(elem,parent){while(elem&&elem!==document.body){if(elem===parent){return true}elem=elem.parentElement}return false}function blurHandler(event,parentElem,hideCallback){if(!elemIsInParent(document.activeElement,parentElem)&&!elemIsInParent(event.relatedTarget,parentElem)){hideCallback()}}window.rootPath=getVar("root-path");window.currentCrate=getVar("current-crate");function setMobileTopbar(){const mobileTopbar=document.querySelector(".mobile-topbar");const locationTitle=document.querySelector(".sidebar h2.location");if(mobileTopbar&&locationTitle){const mobileTitle=document.createElement("h2");mobileTitle.innerHTML=locationTitle.innerHTML;mobileTopbar.appendChild(mobileTitle)}}function getVirtualKey(ev){if("key"in ev&&typeof ev.key!=="undefined"){return ev.key}const c=ev.charCode||ev.keyCode;if(c===27){return"Escape"}return String.fromCharCode(c)}const MAIN_ID="main-content";const SETTINGS_BUTTON_ID="settings-menu";const ALTERNATIVE_DISPLAY_ID="alternative-display";const NOT_DISPLAYED_ID="not-displayed";const HELP_BUTTON_ID="help-button";function getSettingsButton(){return document.getElementById(SETTINGS_BUTTON_ID)}function getHelpButton(){return document.getElementById(HELP_BUTTON_ID)}function getNakedUrl(){return window.location.href.split("?")[0].split("#")[0]}function insertAfter(newNode,referenceNode){referenceNode.parentNode.insertBefore(newNode,referenceNode.nextSibling)}function getOrCreateSection(id,classes){let el=document.getElementById(id);if(!el){el=document.createElement("section");el.id=id;el.className=classes;insertAfter(el,document.getElementById(MAIN_ID))}return el}function getAlternativeDisplayElem(){return getOrCreateSection(ALTERNATIVE_DISPLAY_ID,"content hidden")}function getNotDisplayedElem(){return getOrCreateSection(NOT_DISPLAYED_ID,"hidden")}function switchDisplayedElement(elemToDisplay){const el=getAlternativeDisplayElem();if(el.children.length>0){getNotDisplayedElem().appendChild(el.firstElementChild)}if(elemToDisplay===null){addClass(el,"hidden");showMain();return}el.appendChild(elemToDisplay);hideMain();removeClass(el,"hidden")}function browserSupportsHistoryApi(){return window.history&&typeof window.history.pushState==="function"}function preLoadCss(cssUrl){const link=document.createElement("link");link.href=cssUrl;link.rel="preload";link.as="style";document.getElementsByTagName("head")[0].appendChild(link)}(function(){const isHelpPage=window.location.pathname.endsWith("/help.html");function loadScript(url){const script=document.createElement("script");script.src=url;document.head.append(script)}getSettingsButton().onclick=event=>{if(event.ctrlKey||event.altKey||event.metaKey){return}window.hideAllModals(false);addClass(getSettingsButton(),"rotate");event.preventDefault();loadScript(getVar("static-root-path")+getVar("settings-js"));setTimeout(()=>{const themes=getVar("themes").split(",");for(const theme of themes){if(theme!==""){preLoadCss(getVar("root-path")+theme+".css")}}},0)};window.searchState={loadingText:"Loading search results...",input:document.getElementsByClassName("search-input")[0],outputElement:()=>{let el=document.getElementById("search");if(!el){el=document.createElement("section");el.id="search";getNotDisplayedElem().appendChild(el)}return el},title:document.title,titleBeforeSearch:document.title,timeout:null,currentTab:0,focusedByTab:[null,null,null],clearInputTimeout:()=>{if(searchState.timeout!==null){clearTimeout(searchState.timeout);searchState.timeout=null}},isDisplayed:()=>searchState.outputElement().parentElement.id===ALTERNATIVE_DISPLAY_ID,focus:()=>{searchState.input.focus()},defocus:()=>{searchState.input.blur()},showResults:search=>{if(search===null||typeof search==="undefined"){search=searchState.outputElement()}switchDisplayedElement(search);searchState.mouseMovedAfterSearch=false;document.title=searchState.title},removeQueryParameters:()=>{document.title=searchState.titleBeforeSearch;if(browserSupportsHistoryApi()){history.replaceState(null,"",getNakedUrl()+window.location.hash)}},hideResults:()=>{switchDisplayedElement(null);searchState.removeQueryParameters()},getQueryStringParams:()=>{const params={};window.location.search.substring(1).split("&").map(s=>{const pair=s.split("=");params[decodeURIComponent(pair[0])]=typeof pair[1]==="undefined"?null:decodeURIComponent(pair[1])});return params},setup:()=>{const search_input=searchState.input;if(!searchState.input){return}let searchLoaded=false;function loadSearch(){if(!searchLoaded){searchLoaded=true;loadScript(getVar("static-root-path")+getVar("search-js"));loadScript(resourcePath("search-index",".js"))}}search_input.addEventListener("focus",()=>{search_input.origPlaceholder=search_input.placeholder;search_input.placeholder="Type your search here.";loadSearch()});if(search_input.value!==""){loadSearch()}const params=searchState.getQueryStringParams();if(params.search!==undefined){searchState.setLoadingSearch();loadSearch()}},setLoadingSearch:()=>{const search=searchState.outputElement();search.innerHTML="

"+searchState.loadingText+"

";searchState.showResults(search)},};const toggleAllDocsId="toggle-all-docs";let savedHash="";function handleHashes(ev){if(ev!==null&&searchState.isDisplayed()&&ev.newURL){switchDisplayedElement(null);const hash=ev.newURL.slice(ev.newURL.indexOf("#")+1);if(browserSupportsHistoryApi()){history.replaceState(null,"",getNakedUrl()+window.location.search+"#"+hash)}const elem=document.getElementById(hash);if(elem){elem.scrollIntoView()}}const pageId=window.location.hash.replace(/^#/,"");if(savedHash!==pageId){savedHash=pageId;if(pageId!==""){expandSection(pageId)}}}function onHashChange(ev){hideSidebar();handleHashes(ev)}function openParentDetails(elem){while(elem){if(elem.tagName==="DETAILS"){elem.open=true}elem=elem.parentNode}}function expandSection(id){openParentDetails(document.getElementById(id))}function handleEscape(ev){searchState.clearInputTimeout();searchState.hideResults();ev.preventDefault();searchState.defocus();window.hideAllModals(true)}function handleShortcut(ev){const disableShortcuts=getSettingValue("disable-shortcuts")==="true";if(ev.ctrlKey||ev.altKey||ev.metaKey||disableShortcuts){return}if(document.activeElement.tagName==="INPUT"&&document.activeElement.type!=="checkbox"&&document.activeElement.type!=="radio"){switch(getVirtualKey(ev)){case"Escape":handleEscape(ev);break}}else{switch(getVirtualKey(ev)){case"Escape":handleEscape(ev);break;case"s":case"S":ev.preventDefault();searchState.focus();break;case"+":ev.preventDefault();expandAllDocs();break;case"-":ev.preventDefault();collapseAllDocs();break;case"?":showHelp();break;default:break}}}document.addEventListener("keypress",handleShortcut);document.addEventListener("keydown",handleShortcut);function addSidebarItems(){if(!window.SIDEBAR_ITEMS){return}const sidebar=document.getElementsByClassName("sidebar-elems")[0];function block(shortty,id,longty){const filtered=window.SIDEBAR_ITEMS[shortty];if(!filtered){return}const h3=document.createElement("h3");h3.innerHTML=`${longty}`;const ul=document.createElement("ul");ul.className="block "+shortty;for(const name of filtered){let path;if(shortty==="mod"){path=name+"/index.html"}else{path=shortty+"."+name+".html"}const current_page=document.location.href.split("/").pop();const link=document.createElement("a");link.href=path;if(path===current_page){link.className="current"}link.textContent=name;const li=document.createElement("li");li.appendChild(link);ul.appendChild(li)}sidebar.appendChild(h3);sidebar.appendChild(ul)}if(sidebar){block("primitive","primitives","Primitive Types");block("mod","modules","Modules");block("macro","macros","Macros");block("struct","structs","Structs");block("enum","enums","Enums");block("union","unions","Unions");block("constant","constants","Constants");block("static","static","Statics");block("trait","traits","Traits");block("fn","functions","Functions");block("type","types","Type Aliases");block("foreigntype","foreign-types","Foreign Types");block("keyword","keywords","Keywords");block("traitalias","trait-aliases","Trait Aliases")}}window.register_implementors=imp=>{const implementors=document.getElementById("implementors-list");const synthetic_implementors=document.getElementById("synthetic-implementors-list");const inlined_types=new Set();const TEXT_IDX=0;const SYNTHETIC_IDX=1;const TYPES_IDX=2;if(synthetic_implementors){onEachLazy(synthetic_implementors.getElementsByClassName("impl"),el=>{const aliases=el.getAttribute("data-aliases");if(!aliases){return}aliases.split(",").forEach(alias=>{inlined_types.add(alias)})})}let currentNbImpls=implementors.getElementsByClassName("impl").length;const traitName=document.querySelector(".main-heading h1 > .trait").textContent;const baseIdName="impl-"+traitName+"-";const libs=Object.getOwnPropertyNames(imp);const script=document.querySelector("script[data-ignore-extern-crates]");const ignoreExternCrates=new Set((script?script.getAttribute("data-ignore-extern-crates"):"").split(","));for(const lib of libs){if(lib===window.currentCrate||ignoreExternCrates.has(lib)){continue}const structs=imp[lib];struct_loop:for(const struct of structs){const list=struct[SYNTHETIC_IDX]?synthetic_implementors:implementors;if(struct[SYNTHETIC_IDX]){for(const struct_type of struct[TYPES_IDX]){if(inlined_types.has(struct_type)){continue struct_loop}inlined_types.add(struct_type)}}const code=document.createElement("h3");code.innerHTML=struct[TEXT_IDX];addClass(code,"code-header");onEachLazy(code.getElementsByTagName("a"),elem=>{const href=elem.getAttribute("href");if(href&&!/^(?:[a-z+]+:)?\/\//.test(href)){elem.setAttribute("href",window.rootPath+href)}});const currentId=baseIdName+currentNbImpls;const anchor=document.createElement("a");anchor.href="#"+currentId;addClass(anchor,"anchor");const display=document.createElement("div");display.id=currentId;addClass(display,"impl");display.appendChild(anchor);display.appendChild(code);list.appendChild(display);currentNbImpls+=1}}};if(window.pending_implementors){window.register_implementors(window.pending_implementors)}function addSidebarCrates(){if(!window.ALL_CRATES){return}const sidebarElems=document.getElementsByClassName("sidebar-elems")[0];if(!sidebarElems){return}const h3=document.createElement("h3");h3.innerHTML="Crates";const ul=document.createElement("ul");ul.className="block crate";for(const crate of window.ALL_CRATES){const link=document.createElement("a");link.href=window.rootPath+crate+"/index.html";if(window.rootPath!=="./"&&crate===window.currentCrate){link.className="current"}link.textContent=crate;const li=document.createElement("li");li.appendChild(link);ul.appendChild(li)}sidebarElems.appendChild(h3);sidebarElems.appendChild(ul)}function expandAllDocs(){const innerToggle=document.getElementById(toggleAllDocsId);removeClass(innerToggle,"will-expand");onEachLazy(document.getElementsByClassName("toggle"),e=>{if(!hasClass(e,"type-contents-toggle")&&!hasClass(e,"more-examples-toggle")){e.open=true}});innerToggle.title="collapse all docs";innerToggle.children[0].innerText="\u2212"}function collapseAllDocs(){const innerToggle=document.getElementById(toggleAllDocsId);addClass(innerToggle,"will-expand");onEachLazy(document.getElementsByClassName("toggle"),e=>{if(e.parentNode.id!=="implementations-list"||(!hasClass(e,"implementors-toggle")&&!hasClass(e,"type-contents-toggle"))){e.open=false}});innerToggle.title="expand all docs";innerToggle.children[0].innerText="+"}function toggleAllDocs(){const innerToggle=document.getElementById(toggleAllDocsId);if(!innerToggle){return}if(hasClass(innerToggle,"will-expand")){expandAllDocs()}else{collapseAllDocs()}}(function(){const toggles=document.getElementById(toggleAllDocsId);if(toggles){toggles.onclick=toggleAllDocs}const hideMethodDocs=getSettingValue("auto-hide-method-docs")==="true";const hideImplementations=getSettingValue("auto-hide-trait-implementations")==="true";const hideLargeItemContents=getSettingValue("auto-hide-large-items")!=="false";function setImplementorsTogglesOpen(id,open){const list=document.getElementById(id);if(list!==null){onEachLazy(list.getElementsByClassName("implementors-toggle"),e=>{e.open=open})}}if(hideImplementations){setImplementorsTogglesOpen("trait-implementations-list",false);setImplementorsTogglesOpen("blanket-implementations-list",false)}onEachLazy(document.getElementsByClassName("toggle"),e=>{if(!hideLargeItemContents&&hasClass(e,"type-contents-toggle")){e.open=true}if(hideMethodDocs&&hasClass(e,"method-toggle")){e.open=false}})}());window.rustdoc_add_line_numbers_to_examples=()=>{onEachLazy(document.getElementsByClassName("rust-example-rendered"),x=>{const parent=x.parentNode;const line_numbers=parent.querySelectorAll(".example-line-numbers");if(line_numbers.length>0){return}const count=x.textContent.split("\n").length;const elems=[];for(let i=0;i{onEachLazy(document.getElementsByClassName("rust-example-rendered"),x=>{const parent=x.parentNode;const line_numbers=parent.querySelectorAll(".example-line-numbers");for(const node of line_numbers){parent.removeChild(node)}})};if(getSettingValue("line-numbers")==="true"){window.rustdoc_add_line_numbers_to_examples()}function showSidebar(){window.hideAllModals(false);const sidebar=document.getElementsByClassName("sidebar")[0];addClass(sidebar,"shown")}function hideSidebar(){const sidebar=document.getElementsByClassName("sidebar")[0];removeClass(sidebar,"shown")}window.addEventListener("resize",()=>{if(window.CURRENT_TOOLTIP_ELEMENT){const base=window.CURRENT_TOOLTIP_ELEMENT.TOOLTIP_BASE;const force_visible=base.TOOLTIP_FORCE_VISIBLE;hideTooltip(false);if(force_visible){showTooltip(base);base.TOOLTIP_FORCE_VISIBLE=true}}});const mainElem=document.getElementById(MAIN_ID);if(mainElem){mainElem.addEventListener("click",hideSidebar)}onEachLazy(document.querySelectorAll("a[href^='#']"),el=>{el.addEventListener("click",()=>{expandSection(el.hash.slice(1));hideSidebar()})});onEachLazy(document.querySelectorAll(".toggle > summary:not(.hideme)"),el=>{el.addEventListener("click",e=>{if(e.target.tagName!=="SUMMARY"&&e.target.tagName!=="A"){e.preventDefault()}})});function showTooltip(e){const notable_ty=e.getAttribute("data-notable-ty");if(!window.NOTABLE_TRAITS&¬able_ty){const data=document.getElementById("notable-traits-data");if(data){window.NOTABLE_TRAITS=JSON.parse(data.innerText)}else{throw new Error("showTooltip() called with notable without any notable traits!")}}if(window.CURRENT_TOOLTIP_ELEMENT&&window.CURRENT_TOOLTIP_ELEMENT.TOOLTIP_BASE===e){clearTooltipHoverTimeout(window.CURRENT_TOOLTIP_ELEMENT);return}window.hideAllModals(false);const wrapper=document.createElement("div");if(notable_ty){wrapper.innerHTML="
"+window.NOTABLE_TRAITS[notable_ty]+"
"}else{if(e.getAttribute("title")!==null){e.setAttribute("data-title",e.getAttribute("title"));e.removeAttribute("title")}if(e.getAttribute("data-title")!==null){const titleContent=document.createElement("div");titleContent.className="content";titleContent.appendChild(document.createTextNode(e.getAttribute("data-title")));wrapper.appendChild(titleContent)}}wrapper.className="tooltip popover";const focusCatcher=document.createElement("div");focusCatcher.setAttribute("tabindex","0");focusCatcher.onfocus=hideTooltip;wrapper.appendChild(focusCatcher);const pos=e.getBoundingClientRect();wrapper.style.top=(pos.top+window.scrollY+pos.height)+"px";wrapper.style.left=0;wrapper.style.right="auto";wrapper.style.visibility="hidden";const body=document.getElementsByTagName("body")[0];body.appendChild(wrapper);const wrapperPos=wrapper.getBoundingClientRect();const finalPos=pos.left+window.scrollX-wrapperPos.width+24;if(finalPos>0){wrapper.style.left=finalPos+"px"}else{wrapper.style.setProperty("--popover-arrow-offset",(wrapperPos.right-pos.right+4)+"px")}wrapper.style.visibility="";window.CURRENT_TOOLTIP_ELEMENT=wrapper;window.CURRENT_TOOLTIP_ELEMENT.TOOLTIP_BASE=e;clearTooltipHoverTimeout(window.CURRENT_TOOLTIP_ELEMENT);wrapper.onpointerenter=ev=>{if(ev.pointerType!=="mouse"){return}clearTooltipHoverTimeout(e)};wrapper.onpointerleave=ev=>{if(ev.pointerType!=="mouse"){return}if(!e.TOOLTIP_FORCE_VISIBLE&&!elemIsInParent(ev.relatedTarget,e)){setTooltipHoverTimeout(e,false);addClass(wrapper,"fade-out")}}}function setTooltipHoverTimeout(element,show){clearTooltipHoverTimeout(element);if(!show&&!window.CURRENT_TOOLTIP_ELEMENT){return}if(show&&window.CURRENT_TOOLTIP_ELEMENT){return}if(window.CURRENT_TOOLTIP_ELEMENT&&window.CURRENT_TOOLTIP_ELEMENT.TOOLTIP_BASE!==element){return}element.TOOLTIP_HOVER_TIMEOUT=setTimeout(()=>{if(show){showTooltip(element)}else if(!element.TOOLTIP_FORCE_VISIBLE){hideTooltip(false)}},show?window.RUSTDOC_TOOLTIP_HOVER_MS:window.RUSTDOC_TOOLTIP_HOVER_EXIT_MS)}function clearTooltipHoverTimeout(element){if(element.TOOLTIP_HOVER_TIMEOUT!==undefined){removeClass(window.CURRENT_TOOLTIP_ELEMENT,"fade-out");clearTimeout(element.TOOLTIP_HOVER_TIMEOUT);delete element.TOOLTIP_HOVER_TIMEOUT}}function tooltipBlurHandler(event){if(window.CURRENT_TOOLTIP_ELEMENT&&!elemIsInParent(document.activeElement,window.CURRENT_TOOLTIP_ELEMENT)&&!elemIsInParent(event.relatedTarget,window.CURRENT_TOOLTIP_ELEMENT)&&!elemIsInParent(document.activeElement,window.CURRENT_TOOLTIP_ELEMENT.TOOLTIP_BASE)&&!elemIsInParent(event.relatedTarget,window.CURRENT_TOOLTIP_ELEMENT.TOOLTIP_BASE)){setTimeout(()=>hideTooltip(false),0)}}function hideTooltip(focus){if(window.CURRENT_TOOLTIP_ELEMENT){if(window.CURRENT_TOOLTIP_ELEMENT.TOOLTIP_BASE.TOOLTIP_FORCE_VISIBLE){if(focus){window.CURRENT_TOOLTIP_ELEMENT.TOOLTIP_BASE.focus()}window.CURRENT_TOOLTIP_ELEMENT.TOOLTIP_BASE.TOOLTIP_FORCE_VISIBLE=false}const body=document.getElementsByTagName("body")[0];body.removeChild(window.CURRENT_TOOLTIP_ELEMENT);clearTooltipHoverTimeout(window.CURRENT_TOOLTIP_ELEMENT);window.CURRENT_TOOLTIP_ELEMENT=null}}onEachLazy(document.getElementsByClassName("tooltip"),e=>{e.onclick=()=>{e.TOOLTIP_FORCE_VISIBLE=e.TOOLTIP_FORCE_VISIBLE?false:true;if(window.CURRENT_TOOLTIP_ELEMENT&&!e.TOOLTIP_FORCE_VISIBLE){hideTooltip(true)}else{showTooltip(e);window.CURRENT_TOOLTIP_ELEMENT.setAttribute("tabindex","0");window.CURRENT_TOOLTIP_ELEMENT.focus();window.CURRENT_TOOLTIP_ELEMENT.onblur=tooltipBlurHandler}return false};e.onpointerenter=ev=>{if(ev.pointerType!=="mouse"){return}setTooltipHoverTimeout(e,true)};e.onpointermove=ev=>{if(ev.pointerType!=="mouse"){return}setTooltipHoverTimeout(e,true)};e.onpointerleave=ev=>{if(ev.pointerType!=="mouse"){return}if(!e.TOOLTIP_FORCE_VISIBLE&&!elemIsInParent(ev.relatedTarget,window.CURRENT_TOOLTIP_ELEMENT)){setTooltipHoverTimeout(e,false);addClass(window.CURRENT_TOOLTIP_ELEMENT,"fade-out")}}});const sidebar_menu_toggle=document.getElementsByClassName("sidebar-menu-toggle")[0];if(sidebar_menu_toggle){sidebar_menu_toggle.addEventListener("click",()=>{const sidebar=document.getElementsByClassName("sidebar")[0];if(!hasClass(sidebar,"shown")){showSidebar()}else{hideSidebar()}})}function helpBlurHandler(event){blurHandler(event,getHelpButton(),window.hidePopoverMenus)}function buildHelpMenu(){const book_info=document.createElement("span");const channel=getVar("channel");book_info.className="top";book_info.innerHTML=`You can find more information in \ +the rustdoc book.`;const shortcuts=[["?","Show this help dialog"],["S","Focus the search field"],["↑","Move up in search results"],["↓","Move down in search results"],["← / →","Switch result tab (when results focused)"],["⏎","Go to active search result"],["+","Expand all sections"],["-","Collapse all sections"],].map(x=>"
"+x[0].split(" ").map((y,index)=>((index&1)===0?""+y+"":" "+y+" ")).join("")+"
"+x[1]+"
").join("");const div_shortcuts=document.createElement("div");addClass(div_shortcuts,"shortcuts");div_shortcuts.innerHTML="

Keyboard Shortcuts

"+shortcuts+"
";const infos=[`For a full list of all search features, take a look here.`,"Prefix searches with a type followed by a colon (e.g., fn:) to \ + restrict the search to a given item kind.","Accepted kinds are: fn, mod, struct, \ + enum, trait, type, macro, \ + and const.","Search functions by type signature (e.g., vec -> usize or \ + -> vec or String, enum:Cow -> bool)","You can look for items with an exact name by putting double quotes around \ + your request: \"string\"","Look for functions that accept or return \ + slices and \ + arrays by writing \ + square brackets (e.g., -> [u8] or [] -> Option)","Look for items inside another one by searching for a path: vec::Vec",].map(x=>"

"+x+"

").join("");const div_infos=document.createElement("div");addClass(div_infos,"infos");div_infos.innerHTML="

Search Tricks

"+infos;const rustdoc_version=document.createElement("span");rustdoc_version.className="bottom";const rustdoc_version_code=document.createElement("code");rustdoc_version_code.innerText="rustdoc "+getVar("rustdoc-version");rustdoc_version.appendChild(rustdoc_version_code);const container=document.createElement("div");if(!isHelpPage){container.className="popover"}container.id="help";container.style.display="none";const side_by_side=document.createElement("div");side_by_side.className="side-by-side";side_by_side.appendChild(div_shortcuts);side_by_side.appendChild(div_infos);container.appendChild(book_info);container.appendChild(side_by_side);container.appendChild(rustdoc_version);if(isHelpPage){const help_section=document.createElement("section");help_section.appendChild(container);document.getElementById("main-content").appendChild(help_section);container.style.display="block"}else{const help_button=getHelpButton();help_button.appendChild(container);container.onblur=helpBlurHandler;help_button.onblur=helpBlurHandler;help_button.children[0].onblur=helpBlurHandler}return container}window.hideAllModals=switchFocus=>{hideSidebar();window.hidePopoverMenus();hideTooltip(switchFocus)};window.hidePopoverMenus=()=>{onEachLazy(document.querySelectorAll(".search-form .popover"),elem=>{elem.style.display="none"})};function getHelpMenu(buildNeeded){let menu=getHelpButton().querySelector(".popover");if(!menu&&buildNeeded){menu=buildHelpMenu()}return menu}function showHelp(){getHelpButton().querySelector("a").focus();const menu=getHelpMenu(true);if(menu.style.display==="none"){window.hideAllModals();menu.style.display=""}}if(isHelpPage){showHelp();document.querySelector(`#${HELP_BUTTON_ID} > a`).addEventListener("click",event=>{const target=event.target;if(target.tagName!=="A"||target.parentElement.id!==HELP_BUTTON_ID||event.ctrlKey||event.altKey||event.metaKey){return}event.preventDefault()})}else{document.querySelector(`#${HELP_BUTTON_ID} > a`).addEventListener("click",event=>{const target=event.target;if(target.tagName!=="A"||target.parentElement.id!==HELP_BUTTON_ID||event.ctrlKey||event.altKey||event.metaKey){return}event.preventDefault();const menu=getHelpMenu(true);const shouldShowHelp=menu.style.display==="none";if(shouldShowHelp){showHelp()}else{window.hidePopoverMenus()}})}setMobileTopbar();addSidebarItems();addSidebarCrates();onHashChange(null);window.addEventListener("hashchange",onHashChange);searchState.setup()}());(function(){let reset_button_timeout=null;const but=document.getElementById("copy-path");if(!but){return}but.onclick=()=>{const parent=but.parentElement;const path=[];onEach(parent.childNodes,child=>{if(child.tagName==="A"){path.push(child.textContent)}});const el=document.createElement("textarea");el.value=path.join("::");el.setAttribute("readonly","");el.style.position="absolute";el.style.left="-9999px";document.body.appendChild(el);el.select();document.execCommand("copy");document.body.removeChild(el);but.children[0].style.display="none";let tmp;if(but.childNodes.length<2){tmp=document.createTextNode("✓");but.appendChild(tmp)}else{onEachLazy(but.childNodes,e=>{if(e.nodeType===Node.TEXT_NODE){tmp=e;return true}});tmp.textContent="✓"}if(reset_button_timeout!==null){window.clearTimeout(reset_button_timeout)}function reset_button(){tmp.textContent="";reset_button_timeout=null;but.children[0].style.display=""}reset_button_timeout=window.setTimeout(reset_button,1000)}}()) \ No newline at end of file diff --git a/docs/api-rust/static.files/normalize-76eba96aa4d2e634.css b/docs/api-rust/static.files/normalize-76eba96aa4d2e634.css new file mode 100644 index 000000000..469959f13 --- /dev/null +++ b/docs/api-rust/static.files/normalize-76eba96aa4d2e634.css @@ -0,0 +1,2 @@ + /*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */ +html{line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type="button"],[type="reset"],[type="submit"],button{-webkit-appearance:button}[type="button"]::-moz-focus-inner,[type="reset"]::-moz-focus-inner,[type="submit"]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type="button"]:-moz-focusring,[type="reset"]:-moz-focusring,[type="submit"]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto}[type="checkbox"],[type="radio"]{box-sizing:border-box;padding:0}[type="number"]::-webkit-inner-spin-button,[type="number"]::-webkit-outer-spin-button{height:auto}[type="search"]{-webkit-appearance:textfield;outline-offset:-2px}[type="search"]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none} \ No newline at end of file diff --git a/docs/api-rust/static.files/noscript-5d8b3c7633ad77ba.css b/docs/api-rust/static.files/noscript-5d8b3c7633ad77ba.css new file mode 100644 index 000000000..8c63ef065 --- /dev/null +++ b/docs/api-rust/static.files/noscript-5d8b3c7633ad77ba.css @@ -0,0 +1 @@ + #main-content .attributes{margin-left:0 !important;}#copy-path{display:none;}nav.sub{display:none;}.src .sidebar{display:none;}.notable-traits{display:none;}:root{--main-background-color:white;--main-color:black;--settings-input-color:#2196f3;--settings-input-border-color:#717171;--settings-button-color:#000;--settings-button-border-focus:#717171;--sidebar-background-color:#f5f5f5;--sidebar-background-color-hover:#e0e0e0;--code-block-background-color:#f5f5f5;--scrollbar-track-background-color:#dcdcdc;--scrollbar-thumb-background-color:rgba(36,37,39,0.6);--scrollbar-color:rgba(36,37,39,0.6) #d9d9d9;--headings-border-bottom-color:#ddd;--border-color:#e0e0e0;--button-background-color:#fff;--right-side-color:grey;--code-attribute-color:#999;--toggles-color:#999;--toggle-filter:none;--search-input-focused-border-color:#66afe9;--copy-path-button-color:#999;--copy-path-img-filter:invert(50%);--copy-path-img-hover-filter:invert(35%);--codeblock-error-hover-color:rgb(255,0,0);--codeblock-error-color:rgba(255,0,0,.5);--codeblock-ignore-hover-color:rgb(255,142,0);--codeblock-ignore-color:rgba(255,142,0,.6);--warning-border-color:#ff8e00;--type-link-color:#ad378a;--trait-link-color:#6e4fc9;--assoc-item-link-color:#3873ad;--function-link-color:#ad7c37;--macro-link-color:#068000;--keyword-link-color:#3873ad;--mod-link-color:#3873ad;--link-color:#3873ad;--sidebar-link-color:#356da4;--sidebar-current-link-background-color:#fff;--search-result-link-focus-background-color:#ccc;--search-result-border-color:#aaa3;--search-color:#000;--search-error-code-background-color:#d0cccc;--search-results-alias-color:#000;--search-results-grey-color:#999;--search-tab-title-count-color:#888;--search-tab-button-not-selected-border-top-color:#e6e6e6;--search-tab-button-not-selected-background:#e6e6e6;--search-tab-button-selected-border-top-color:#0089ff;--search-tab-button-selected-background:#fff;--stab-background-color:#fff5d6;--stab-code-color:#000;--code-highlight-kw-color:#8959a8;--code-highlight-kw-2-color:#4271ae;--code-highlight-lifetime-color:#b76514;--code-highlight-prelude-color:#4271ae;--code-highlight-prelude-val-color:#c82829;--code-highlight-number-color:#718c00;--code-highlight-string-color:#718c00;--code-highlight-literal-color:#c82829;--code-highlight-attribute-color:#c82829;--code-highlight-self-color:#c82829;--code-highlight-macro-color:#3e999f;--code-highlight-question-mark-color:#ff9011;--code-highlight-comment-color:#8e908c;--code-highlight-doc-comment-color:#4d4d4c;--src-line-numbers-span-color:#c67e2d;--src-line-number-highlighted-background-color:#fdffd3;--test-arrow-color:#f5f5f5;--test-arrow-background-color:rgba(78,139,202,0.2);--test-arrow-hover-color:#f5f5f5;--test-arrow-hover-background-color:rgb(78,139,202);--target-background-color:#fdffd3;--target-border-color:#ad7c37;--kbd-color:#000;--kbd-background:#fafbfc;--kbd-box-shadow-color:#c6cbd1;--rust-logo-filter:initial;--crate-search-div-filter:invert(100%) sepia(0%) saturate(4223%) hue-rotate(289deg) brightness(114%) contrast(76%);--crate-search-div-hover-filter:invert(44%) sepia(18%) saturate(23%) hue-rotate(317deg) brightness(96%) contrast(93%);--crate-search-hover-border:#717171;--src-sidebar-background-selected:#fff;--src-sidebar-background-hover:#e0e0e0;--table-alt-row-background-color:#f5f5f5;--codeblock-link-background:#eee;--scrape-example-toggle-line-background:#ccc;--scrape-example-toggle-line-hover-background:#999;--scrape-example-code-line-highlight:#fcffd6;--scrape-example-code-line-highlight-focus:#f6fdb0;--scrape-example-help-border-color:#555;--scrape-example-help-color:#333;--scrape-example-help-hover-border-color:#000;--scrape-example-help-hover-color:#000;--scrape-example-code-wrapper-background-start:rgba(255,255,255,1);--scrape-example-code-wrapper-background-end:rgba(255,255,255,0);}@media (prefers-color-scheme:dark){:root{--main-background-color:#353535;--main-color:#ddd;--settings-input-color:#2196f3;--settings-input-border-color:#999;--settings-button-color:#000;--settings-button-border-focus:#ffb900;--sidebar-background-color:#505050;--sidebar-background-color-hover:#676767;--code-block-background-color:#2A2A2A;--scrollbar-track-background-color:#717171;--scrollbar-thumb-background-color:rgba(32,34,37,.6);--scrollbar-color:rgba(32,34,37,.6) #5a5a5a;--headings-border-bottom-color:#d2d2d2;--border-color:#e0e0e0;--button-background-color:#f0f0f0;--right-side-color:grey;--code-attribute-color:#999;--toggles-color:#999;--toggle-filter:invert(100%);--search-input-focused-border-color:#008dfd;--copy-path-button-color:#999;--copy-path-img-filter:invert(50%);--copy-path-img-hover-filter:invert(65%);--codeblock-error-hover-color:rgb(255,0,0);--codeblock-error-color:rgba(255,0,0,.5);--codeblock-ignore-hover-color:rgb(255,142,0);--codeblock-ignore-color:rgba(255,142,0,.6);--warning-border-color:#ff8e00;--type-link-color:#2dbfb8;--trait-link-color:#b78cf2;--assoc-item-link-color:#d2991d;--function-link-color:#2bab63;--macro-link-color:#09bd00;--keyword-link-color:#d2991d;--mod-link-color:#d2991d;--link-color:#d2991d;--sidebar-link-color:#fdbf35;--sidebar-current-link-background-color:#444;--search-result-link-focus-background-color:#616161;--search-result-border-color:#aaa3;--search-color:#111;--search-error-code-background-color:#484848;--search-results-alias-color:#fff;--search-results-grey-color:#ccc;--search-tab-title-count-color:#888;--search-tab-button-not-selected-border-top-color:#252525;--search-tab-button-not-selected-background:#252525;--search-tab-button-selected-border-top-color:#0089ff;--search-tab-button-selected-background:#353535;--stab-background-color:#314559;--stab-code-color:#e6e1cf;--code-highlight-kw-color:#ab8ac1;--code-highlight-kw-2-color:#769acb;--code-highlight-lifetime-color:#d97f26;--code-highlight-prelude-color:#769acb;--code-highlight-prelude-val-color:#ee6868;--code-highlight-number-color:#83a300;--code-highlight-string-color:#83a300;--code-highlight-literal-color:#ee6868;--code-highlight-attribute-color:#ee6868;--code-highlight-self-color:#ee6868;--code-highlight-macro-color:#3e999f;--code-highlight-question-mark-color:#ff9011;--code-highlight-comment-color:#8d8d8b;--code-highlight-doc-comment-color:#8ca375;--src-line-numbers-span-color:#3b91e2;--src-line-number-highlighted-background-color:#0a042f;--test-arrow-color:#dedede;--test-arrow-background-color:rgba(78,139,202,0.2);--test-arrow-hover-color:#dedede;--test-arrow-hover-background-color:#4e8bca;--target-background-color:#494a3d;--target-border-color:#bb7410;--kbd-color:#000;--kbd-background:#fafbfc;--kbd-box-shadow-color:#c6cbd1;--rust-logo-filter:drop-shadow(1px 0 0px #fff) drop-shadow(0 1px 0 #fff) drop-shadow(-1px 0 0 #fff) drop-shadow(0 -1px 0 #fff);--crate-search-div-filter:invert(94%) sepia(0%) saturate(721%) hue-rotate(255deg) brightness(90%) contrast(90%);--crate-search-div-hover-filter:invert(69%) sepia(60%) saturate(6613%) hue-rotate(184deg) brightness(100%) contrast(91%);--crate-search-hover-border:#2196f3;--src-sidebar-background-selected:#333;--src-sidebar-background-hover:#444;--table-alt-row-background-color:#2a2a2a;--codeblock-link-background:#333;--scrape-example-toggle-line-background:#999;--scrape-example-toggle-line-hover-background:#c5c5c5;--scrape-example-code-line-highlight:#5b3b01;--scrape-example-code-line-highlight-focus:#7c4b0f;--scrape-example-help-border-color:#aaa;--scrape-example-help-color:#eee;--scrape-example-help-hover-border-color:#fff;--scrape-example-help-hover-color:#fff;--scrape-example-code-wrapper-background-start:rgba(53,53,53,1);--scrape-example-code-wrapper-background-end:rgba(53,53,53,0);}} \ No newline at end of file diff --git a/docs/api-rust/static.files/rust-logo-151179464ae7ed46.svg b/docs/api-rust/static.files/rust-logo-151179464ae7ed46.svg new file mode 100644 index 000000000..62424d8ff --- /dev/null +++ b/docs/api-rust/static.files/rust-logo-151179464ae7ed46.svg @@ -0,0 +1,61 @@ + + + diff --git a/docs/api-rust/static.files/rustdoc-fa3bb1812debf86c.css b/docs/api-rust/static.files/rustdoc-fa3bb1812debf86c.css new file mode 100644 index 000000000..2dd5cebca --- /dev/null +++ b/docs/api-rust/static.files/rustdoc-fa3bb1812debf86c.css @@ -0,0 +1,10 @@ + :root{--nav-sub-mobile-padding:8px;--search-typename-width:6.75rem;}@font-face {font-family:'Fira Sans';font-style:normal;font-weight:400;src:local('Fira Sans'),url("FiraSans-Regular-018c141bf0843ffd.woff2") format("woff2");font-display:swap;}@font-face {font-family:'Fira Sans';font-style:normal;font-weight:500;src:local('Fira Sans Medium'),url("FiraSans-Medium-8f9a781e4970d388.woff2") format("woff2");font-display:swap;}@font-face {font-family:'Source Serif 4';font-style:normal;font-weight:400;src:local('Source Serif 4'),url("SourceSerif4-Regular-46f98efaafac5295.ttf.woff2") format("woff2");font-display:swap;}@font-face {font-family:'Source Serif 4';font-style:italic;font-weight:400;src:local('Source Serif 4 Italic'),url("SourceSerif4-It-acdfaf1a8af734b1.ttf.woff2") format("woff2");font-display:swap;}@font-face {font-family:'Source Serif 4';font-style:normal;font-weight:700;src:local('Source Serif 4 Bold'),url("SourceSerif4-Bold-a2c9cd1067f8b328.ttf.woff2") format("woff2");font-display:swap;}@font-face {font-family:'Source Code Pro';font-style:normal;font-weight:400;src:url("SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2") format("woff2");font-display:swap;}@font-face {font-family:'Source Code Pro';font-style:italic;font-weight:400;src:url("SourceCodePro-It-1cc31594bf4f1f79.ttf.woff2") format("woff2");font-display:swap;}@font-face {font-family:'Source Code Pro';font-style:normal;font-weight:600;src:url("SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2") format("woff2");font-display:swap;}@font-face {font-family:'NanumBarunGothic';src:url("NanumBarunGothic-0f09457c7a19b7c6.ttf.woff2") format("woff2");font-display:swap;unicode-range:U+AC00-D7AF,U+1100-11FF,U+3130-318F,U+A960-A97F,U+D7B0-D7FF;}*{box-sizing:border-box;}body{font:1rem/1.5 "Source Serif 4",NanumBarunGothic,serif;margin:0;position:relative;overflow-wrap:break-word;overflow-wrap:anywhere;font-feature-settings:"kern","liga";background-color:var(--main-background-color);color:var(--main-color);}h1{font-size:1.5rem;}h2{font-size:1.375rem;}h3{font-size:1.25rem;}h1,h2,h3,h4,h5,h6{font-weight:500;}h1,h2,h3,h4{margin:25px 0 15px 0;padding-bottom:6px;}.docblock h3,.docblock h4,h5,h6{margin:15px 0 5px 0;}.docblock>h2:first-child,.docblock>h3:first-child,.docblock>h4:first-child,.docblock>h5:first-child,.docblock>h6:first-child{margin-top:0;}.main-heading h1{margin:0;padding:0;flex-grow:1;overflow-wrap:break-word;overflow-wrap:anywhere;}.main-heading{display:flex;flex-wrap:wrap;padding-bottom:6px;margin-bottom:15px;}.content h2,.top-doc .docblock>h3,.top-doc .docblock>h4{border-bottom:1px solid var(--headings-border-bottom-color);}h1,h2{line-height:1.25;padding-top:3px;padding-bottom:9px;}h3.code-header{font-size:1.125rem;}h4.code-header{font-size:1rem;}.code-header{font-weight:600;margin:0;padding:0;white-space:pre-wrap;}#crate-search,h1,h2,h3,h4,h5,h6,.sidebar,.mobile-topbar,.search-input,.search-results .result-name,.item-name>a,.out-of-band,span.since,a.src,#help-button>a,summary.hideme,.scraped-example-list,ul.all-items{font-family:"Fira Sans",Arial,NanumBarunGothic,sans-serif;}#toggle-all-docs,a.anchor,.small-section-header a,#src-sidebar a,.rust a,.sidebar h2 a,.sidebar h3 a,.mobile-topbar h2 a,h1 a,.search-results a,.stab,.result-name i{color:var(--main-color);}span.enum,a.enum,span.struct,a.struct,span.union,a.union,span.primitive,a.primitive,span.type,a.type,span.foreigntype,a.foreigntype{color:var(--type-link-color);}span.trait,a.trait,span.traitalias,a.traitalias{color:var(--trait-link-color);}span.associatedtype,a.associatedtype,span.constant,a.constant,span.static,a.static{color:var(--assoc-item-link-color);}span.fn,a.fn,span.method,a.method,span.tymethod,a.tymethod{color:var(--function-link-color);}span.attr,a.attr,span.derive,a.derive,span.macro,a.macro{color:var(--macro-link-color);}span.mod,a.mod{color:var(--mod-link-color);}span.keyword,a.keyword{color:var(--keyword-link-color);}a{color:var(--link-color);text-decoration:none;}ol,ul{padding-left:24px;}ul ul,ol ul,ul ol,ol ol{margin-bottom:.625em;}p,.docblock>.warning{margin:0 0 .75em 0;}p:last-child,.docblock>.warning:last-child{margin:0;}button{padding:1px 6px;cursor:pointer;}button#toggle-all-docs{padding:0;background:none;border:none;-webkit-appearance:none;opacity:1;}.rustdoc{display:flex;flex-direction:row;flex-wrap:nowrap;}main{position:relative;flex-grow:1;padding:10px 15px 40px 45px;min-width:0;}.src main{padding:15px;}.width-limiter{max-width:960px;margin-right:auto;}details:not(.toggle) summary{margin-bottom:.6em;}code,pre,a.test-arrow,.code-header{font-family:"Source Code Pro",monospace;}.docblock code,.docblock-short code{border-radius:3px;padding:0 0.125em;}.docblock pre code,.docblock-short pre code{padding:0;}pre{padding:14px;line-height:1.5;}pre.item-decl{overflow-x:auto;}.item-decl .type-contents-toggle{contain:initial;}.src .content pre{padding:20px;}.rustdoc.src .example-wrap pre.src-line-numbers{padding:20px 0 20px 4px;}img{max-width:100%;}.sub-logo-container,.logo-container{line-height:0;display:block;}.sub-logo-container{margin-right:32px;}.sub-logo-container>img{height:60px;width:60px;object-fit:contain;}.rust-logo{filter:var(--rust-logo-filter);}.sidebar{font-size:0.875rem;flex:0 0 200px;overflow-y:scroll;overscroll-behavior:contain;position:sticky;height:100vh;top:0;left:0;}.rustdoc.src .sidebar{flex-basis:50px;border-right:1px solid;overflow-x:hidden;overflow-y:hidden;z-index:1;}.sidebar,.mobile-topbar,.sidebar-menu-toggle,#src-sidebar-toggle,#src-sidebar{background-color:var(--sidebar-background-color);}#src-sidebar-toggle>button:hover,#src-sidebar-toggle>button:focus{background-color:var(--sidebar-background-color-hover);}.src .sidebar>*:not(#src-sidebar-toggle){visibility:hidden;}.src-sidebar-expanded .src .sidebar{overflow-y:auto;flex-basis:300px;}.src-sidebar-expanded .src .sidebar>*:not(#src-sidebar-toggle){visibility:visible;}#all-types{margin-top:1em;}*{scrollbar-width:initial;scrollbar-color:var(--scrollbar-color);}.sidebar{scrollbar-width:thin;scrollbar-color:var(--scrollbar-color);}::-webkit-scrollbar{width:12px;}.sidebar::-webkit-scrollbar{width:8px;}::-webkit-scrollbar-track{-webkit-box-shadow:inset 0;background-color:var(--scrollbar-track-background-color);}.sidebar::-webkit-scrollbar-track{background-color:var(--scrollbar-track-background-color);}::-webkit-scrollbar-thumb,.sidebar::-webkit-scrollbar-thumb{background-color:var(--scrollbar-thumb-background-color);}.hidden{display:none !important;}.sidebar .logo-container{margin-top:10px;margin-bottom:10px;text-align:center;}.version{overflow-wrap:break-word;}.logo-container>img{height:100px;width:100px;}ul.block,.block li{padding:0;margin:0;list-style:none;}.sidebar-elems a,.sidebar>h2 a{display:block;padding:0.25rem;margin-left:-0.25rem;}.sidebar h2{overflow-wrap:anywhere;padding:0;margin:0.7rem 0;}.sidebar h3{font-size:1.125rem;padding:0;margin:0;}.sidebar-elems,.sidebar>h2{padding-left:24px;}.sidebar a{color:var(--sidebar-link-color);}.sidebar .current,.sidebar a:hover:not(.logo-container){background-color:var(--sidebar-current-link-background-color);}.sidebar-elems .block{margin-bottom:2em;}.sidebar-elems .block li a{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;}.mobile-topbar{display:none;}.rustdoc .example-wrap{display:flex;position:relative;margin-bottom:10px;}.rustdoc .example-wrap:last-child{margin-bottom:0px;}.rustdoc .example-wrap pre{margin:0;flex-grow:1;}.rustdoc:not(.src) .example-wrap pre{overflow:auto hidden;}.rustdoc .example-wrap pre.example-line-numbers,.rustdoc .example-wrap pre.src-line-numbers{flex-grow:0;min-width:fit-content;overflow:initial;text-align:right;-webkit-user-select:none;user-select:none;padding:14px 8px;color:var(--src-line-numbers-span-color);}.rustdoc .example-wrap pre.src-line-numbers{padding:14px 0;}.src-line-numbers a,.src-line-numbers span{color:var(--src-line-numbers-span-color);padding:0 8px;}.src-line-numbers :target{background-color:transparent;border-right:none;padding:0 8px;}.src-line-numbers .line-highlighted{background-color:var(--src-line-number-highlighted-background-color);}.search-loading{text-align:center;}.docblock-short{overflow-wrap:break-word;overflow-wrap:anywhere;}.docblock :not(pre)>code,.docblock-short code{white-space:pre-wrap;}.top-doc .docblock h2{font-size:1.375rem;}.top-doc .docblock h3{font-size:1.25rem;}.top-doc .docblock h4,.top-doc .docblock h5{font-size:1.125rem;}.top-doc .docblock h6{font-size:1rem;}.docblock h5{font-size:1rem;}.docblock h6{font-size:0.875rem;}.docblock{margin-left:24px;position:relative;}.docblock>:not(.more-examples-toggle):not(.example-wrap){max-width:100%;overflow-x:auto;}.out-of-band{flex-grow:0;font-size:1.125rem;}.docblock code,.docblock-short code,pre,.rustdoc.src .example-wrap{background-color:var(--code-block-background-color);}#main-content{position:relative;}.docblock table{margin:.5em 0;border-collapse:collapse;}.docblock table td,.docblock table th{padding:.5em;border:1px solid var(--border-color);}.docblock table tbody tr:nth-child(2n){background:var(--table-alt-row-background-color);}.method .where,.fn .where,.where.fmt-newline{display:block;white-space:pre-wrap;font-size:0.875rem;}.item-info{display:block;margin-left:24px;}.item-info code{font-size:0.875rem;}#main-content>.item-info{margin-left:0;}nav.sub{flex-grow:1;flex-flow:row nowrap;margin:4px 0 25px 0;display:flex;align-items:center;}.search-form{position:relative;display:flex;height:34px;flex-grow:1;}.src nav.sub{margin:0 0 15px 0;}.small-section-header{display:block;position:relative;}.small-section-header:hover>.anchor,.impl:hover>.anchor,.trait-impl:hover>.anchor,.variant:hover>.anchor{display:initial;}.anchor{display:none;position:absolute;left:-0.5em;background:none !important;}.anchor.field{left:-5px;}.small-section-header>.anchor{left:-15px;padding-right:8px;}h2.small-section-header>.anchor{padding-right:6px;}.main-heading a:hover,.example-wrap .rust a:hover,.all-items a:hover,.docblock a:not(.test-arrow):not(.scrape-help):not(.tooltip):hover,.docblock-short a:not(.test-arrow):not(.scrape-help):not(.tooltip):hover,.item-info a{text-decoration:underline;}.crate.block a.current{font-weight:500;}table,.item-table{overflow-wrap:break-word;}.item-table{display:table;padding:0;margin:0;}.item-table>li{display:table-row;}.item-table>li>div{display:table-cell;}.item-table>li>.item-name{padding-right:1.25rem;}.search-results-title{margin-top:0;white-space:nowrap;display:flex;align-items:baseline;}#crate-search-div{position:relative;min-width:5em;}#crate-search{min-width:115px;padding:0 23px 0 4px;max-width:100%;text-overflow:ellipsis;border:1px solid var(--border-color);border-radius:4px;outline:none;cursor:pointer;-moz-appearance:none;-webkit-appearance:none;text-indent:0.01px;background-color:var(--main-background-color);color:inherit;line-height:1.5;font-weight:500;}#crate-search:hover,#crate-search:focus{border-color:var(--crate-search-hover-border);}#crate-search-div::after{pointer-events:none;width:100%;height:100%;position:absolute;top:0;left:0;content:"";background-repeat:no-repeat;background-size:20px;background-position:calc(100% - 2px) 56%;background-image:url('data:image/svg+xml, \ + ');filter:var(--crate-search-div-filter);}#crate-search-div:hover::after,#crate-search-div:focus-within::after{filter:var(--crate-search-div-hover-filter);}#crate-search>option{font-size:1rem;}.search-input{-webkit-appearance:none;outline:none;border:1px solid var(--border-color);border-radius:2px;padding:8px;font-size:1rem;flex-grow:1;background-color:var(--button-background-color);color:var(--search-color);}.search-input:focus{border-color:var(--search-input-focused-border-color);}.search-results{display:none;}.search-results.active{display:block;}.search-results>a{display:flex;margin-left:2px;margin-right:2px;border-bottom:1px solid var(--search-result-border-color);gap:1em;}.search-results>a>div.desc{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;flex:2;}.search-results a:hover,.search-results a:focus{background-color:var(--search-result-link-focus-background-color);}.search-results .result-name{display:flex;align-items:center;justify-content:start;flex:3;}.search-results .result-name .alias{color:var(--search-results-alias-color);}.search-results .result-name .grey{color:var(--search-results-grey-color);}.search-results .result-name .typename{color:var(--search-results-grey-color);font-size:0.875rem;width:var(--search-typename-width);}.search-results .result-name .path{word-break:break-all;max-width:calc(100% - var(--search-typename-width));display:inline-block;}.search-results .result-name .path>*{display:inline;}.popover{position:absolute;top:100%;right:0;z-index:2;margin-top:7px;border-radius:3px;border:1px solid var(--border-color);background-color:var(--main-background-color);color:var(--main-color);--popover-arrow-offset:11px;}.popover::before{content:'';position:absolute;right:var(--popover-arrow-offset);border:solid var(--border-color);border-width:1px 1px 0 0;background-color:var(--main-background-color);padding:4px;transform:rotate(-45deg);top:-5px;}.setting-line{margin:1.2em 0.6em;}.setting-radio input,.setting-check input{margin-right:0.3em;height:1.2rem;width:1.2rem;border:2px solid var(--settings-input-border-color);outline:none;-webkit-appearance:none;cursor:pointer;}.setting-radio input{border-radius:50%;}.setting-radio span,.setting-check span{padding-bottom:1px;}.setting-radio{margin-top:0.1em;margin-bottom:0.1em;min-width:3.8em;padding:0.3em;display:inline-flex;align-items:center;cursor:pointer;}.setting-radio+.setting-radio{margin-left:0.5em;}.setting-check{margin-right:20px;display:flex;align-items:center;cursor:pointer;}.setting-radio input:checked{box-shadow:inset 0 0 0 3px var(--main-background-color);background-color:var(--settings-input-color);}.setting-check input:checked{background-color:var(--settings-input-color);border-width:1px;content:url('data:image/svg+xml,\ + \ + ');}.setting-radio input:focus,.setting-check input:focus{box-shadow:0 0 1px 1px var(--settings-input-color);}.setting-radio input:checked:focus{box-shadow:inset 0 0 0 3px var(--main-background-color),0 0 2px 2px var(--settings-input-color);}.setting-radio input:hover,.setting-check input:hover{border-color:var(--settings-input-color) !important;}#help.popover{max-width:600px;--popover-arrow-offset:48px;}#help dt{float:left;clear:left;margin-right:0.5rem;}#help span.top,#help span.bottom{text-align:center;display:block;font-size:1.125rem;}#help span.top{margin:10px 0;border-bottom:1px solid var(--border-color);padding-bottom:4px;margin-bottom:6px;}#help span.bottom{clear:both;border-top:1px solid var(--border-color);}.side-by-side>div{width:50%;float:left;padding:0 20px 20px 17px;}.item-info .stab{min-height:36px;display:flex;padding:3px;margin-bottom:5px;align-items:center;vertical-align:text-bottom;}.item-name .stab{margin-left:0.3125em;}.stab{padding:0 2px;font-size:0.875rem;font-weight:normal;color:var(--main-color);background-color:var(--stab-background-color);width:fit-content;white-space:pre-wrap;border-radius:3px;display:inline;}.stab.portability>code{background:none;color:var(--stab-code-color);}.stab .emoji{font-size:1.25rem;margin-right:0.3rem;}.emoji{text-shadow:1px 0 0 black,-1px 0 0 black,0 1px 0 black,0 -1px 0 black;}.since{font-weight:normal;font-size:initial;}.rightside{padding-left:12px;float:right;}.rightside:not(a),.out-of-band{color:var(--right-side-color);}pre.rust{tab-size:4;-moz-tab-size:4;}pre.rust .kw{color:var(--code-highlight-kw-color);}pre.rust .kw-2{color:var(--code-highlight-kw-2-color);}pre.rust .lifetime{color:var(--code-highlight-lifetime-color);}pre.rust .prelude-ty{color:var(--code-highlight-prelude-color);}pre.rust .prelude-val{color:var(--code-highlight-prelude-val-color);}pre.rust .string{color:var(--code-highlight-string-color);}pre.rust .number{color:var(--code-highlight-number-color);}pre.rust .bool-val{color:var(--code-highlight-literal-color);}pre.rust .self{color:var(--code-highlight-self-color);}pre.rust .attr{color:var(--code-highlight-attribute-color);}pre.rust .macro,pre.rust .macro-nonterminal{color:var(--code-highlight-macro-color);}pre.rust .question-mark{font-weight:bold;color:var(--code-highlight-question-mark-color);}pre.rust .comment{color:var(--code-highlight-comment-color);}pre.rust .doccomment{color:var(--code-highlight-doc-comment-color);}.rustdoc.src .example-wrap pre.rust a{background:var(--codeblock-link-background);}.example-wrap.compile_fail,.example-wrap.should_panic{border-left:2px solid var(--codeblock-error-color);}.ignore.example-wrap{border-left:2px solid var(--codeblock-ignore-color);}.example-wrap.compile_fail:hover,.example-wrap.should_panic:hover{border-left:2px solid var(--codeblock-error-hover-color);}.example-wrap.ignore:hover{border-left:2px solid var(--codeblock-ignore-hover-color);}.example-wrap.compile_fail .tooltip,.example-wrap.should_panic .tooltip{color:var(--codeblock-error-color);}.example-wrap.ignore .tooltip{color:var(--codeblock-ignore-color);}.example-wrap.compile_fail:hover .tooltip,.example-wrap.should_panic:hover .tooltip{color:var(--codeblock-error-hover-color);}.example-wrap.ignore:hover .tooltip{color:var(--codeblock-ignore-hover-color);}.example-wrap .tooltip{position:absolute;display:block;left:-25px;top:5px;margin:0;line-height:1;}.example-wrap.compile_fail .tooltip,.example-wrap.should_panic .tooltip,.example-wrap.ignore .tooltip{font-weight:bold;font-size:1.25rem;}.content .docblock .warning{border-left:2px solid var(--warning-border-color);padding:14px;position:relative;overflow-x:visible !important;}.content .docblock .warning::before{color:var(--warning-border-color);content:"ⓘ";position:absolute;left:-25px;top:5px;font-weight:bold;font-size:1.25rem;}a.test-arrow{visibility:hidden;position:absolute;padding:5px 10px 5px 10px;border-radius:5px;font-size:1.375rem;top:5px;right:5px;z-index:1;color:var(--test-arrow-color);background-color:var(--test-arrow-background-color);}a.test-arrow:hover{color:var(--test-arrow-hover-color);background-color:var(--test-arrow-hover-background-color);}.example-wrap:hover .test-arrow{visibility:visible;}.code-attribute{font-weight:300;color:var(--code-attribute-color);}.item-spacer{width:100%;height:12px;display:block;}.out-of-band>span.since{font-size:1.25rem;}.sub-variant h4{font-size:1rem;font-weight:400;margin-top:0;margin-bottom:0;}.sub-variant{margin-left:24px;margin-bottom:40px;}.sub-variant>.sub-variant-field{margin-left:24px;}:target{padding-right:3px;background-color:var(--target-background-color);border-right:3px solid var(--target-border-color);}.code-header a.tooltip{color:inherit;margin-right:15px;position:relative;}.code-header a.tooltip:hover{color:var(--link-color);}a.tooltip:hover::after{position:absolute;top:calc(100% - 10px);left:-15px;right:-15px;height:20px;content:"\00a0";}.fade-out{opacity:0;transition:opacity 0.45s cubic-bezier(0,0,0.1,1.0);}.popover.tooltip .content{margin:0.25em 0.5em;}.popover.tooltip .content pre,.popover.tooltip .content code{background:transparent;margin:0;padding:0;font-size:1.25rem;white-space:pre-wrap;}.popover.tooltip .content>h3:first-child{margin:0 0 5px 0;}.search-failed{text-align:center;margin-top:20px;display:none;}.search-failed.active{display:block;}.search-failed>ul{text-align:left;max-width:570px;margin-left:auto;margin-right:auto;}#search-tabs{display:flex;flex-direction:row;gap:1px;margin-bottom:4px;}#search-tabs button{text-align:center;font-size:1.125rem;border:0;border-top:2px solid;flex:1;line-height:1.5;color:inherit;}#search-tabs button:not(.selected){background-color:var(--search-tab-button-not-selected-background);border-top-color:var(--search-tab-button-not-selected-border-top-color);}#search-tabs button:hover,#search-tabs button.selected{background-color:var(--search-tab-button-selected-background);border-top-color:var(--search-tab-button-selected-border-top-color);}#search-tabs .count{font-size:1rem;font-variant-numeric:tabular-nums;color:var(--search-tab-title-count-color);}#search .error code{border-radius:3px;background-color:var(--search-error-code-background-color);}.search-corrections{font-weight:normal;}#src-sidebar-toggle{position:sticky;top:0;left:0;font-size:1.25rem;border-bottom:1px solid;display:flex;height:40px;justify-content:stretch;align-items:stretch;z-index:10;}#src-sidebar{width:100%;overflow:auto;}#src-sidebar>.title{font-size:1.5rem;text-align:center;border-bottom:1px solid var(--border-color);margin-bottom:6px;}#src-sidebar div.files>a:hover,details.dir-entry summary:hover,#src-sidebar div.files>a:focus,details.dir-entry summary:focus{background-color:var(--src-sidebar-background-hover);}#src-sidebar div.files>a.selected{background-color:var(--src-sidebar-background-selected);}#src-sidebar-toggle>button{font-size:inherit;font-weight:bold;background:none;color:inherit;text-align:center;border:none;outline:none;flex:1 1;-webkit-appearance:none;opacity:1;}#settings-menu,#help-button{margin-left:4px;display:flex;}#settings-menu>a,#help-button>a{display:flex;align-items:center;justify-content:center;background-color:var(--button-background-color);border:1px solid var(--border-color);border-radius:2px;color:var(--settings-button-color);font-size:20px;width:33px;}#settings-menu>a:hover,#settings-menu>a:focus,#help-button>a:hover,#help-button>a:focus{border-color:var(--settings-button-border-focus);}#copy-path{color:var(--copy-path-button-color);background:var(--main-background-color);height:34px;margin-left:10px;padding:0;padding-left:2px;border:0;width:33px;}#copy-path>img{filter:var(--copy-path-img-filter);}#copy-path:hover>img{filter:var(--copy-path-img-hover-filter);}@keyframes rotating{from{transform:rotate(0deg);}to{transform:rotate(360deg);}}#settings-menu.rotate>a img{animation:rotating 2s linear infinite;}kbd{display:inline-block;padding:3px 5px;font:15px monospace;line-height:10px;vertical-align:middle;border:solid 1px var(--border-color);border-radius:3px;color:var(--kbd-color);background-color:var(--kbd-background);box-shadow:inset 0 -1px 0 var(--kbd-box-shadow-color);}ul.all-items>li{list-style:none;}details.dir-entry{padding-left:4px;}details.dir-entry>summary{margin:0 0 0 -4px;padding:0 0 0 4px;cursor:pointer;}details.dir-entry div.folders,details.dir-entry div.files{padding-left:23px;}details.dir-entry a{display:block;}details.toggle{contain:layout;position:relative;}details.toggle>summary.hideme{cursor:pointer;font-size:1rem;}details.toggle>summary{list-style:none;outline:none;}details.toggle>summary::-webkit-details-marker,details.toggle>summary::marker{display:none;}details.toggle>summary.hideme>span{margin-left:9px;}details.toggle>summary::before{background:url('data:image/svg+xml,') no-repeat top left;content:"";cursor:pointer;width:16px;height:16px;display:inline-block;vertical-align:middle;opacity:.5;filter:var(--toggle-filter);}details.toggle>summary.hideme>span,.more-examples-toggle summary,.more-examples-toggle .hide-more{color:var(--toggles-color);}details.toggle>summary::after{content:"Expand";overflow:hidden;width:0;height:0;position:absolute;}details.toggle>summary.hideme::after{content:"";}details.toggle>summary:focus::before,details.toggle>summary:hover::before{opacity:1;}details.toggle>summary:focus-visible::before{outline:1px dotted #000;outline-offset:1px;}details.non-exhaustive{margin-bottom:8px;}details.toggle>summary.hideme::before{position:relative;}details.toggle>summary:not(.hideme)::before{position:absolute;left:-24px;top:4px;}.impl-items>details.toggle>summary:not(.hideme)::before{position:absolute;left:-24px;}details.toggle[open] >summary.hideme{position:absolute;}details.toggle[open] >summary.hideme>span{display:none;}details.toggle[open] >summary::before{background:url('data:image/svg+xml,') no-repeat top left;}details.toggle[open] >summary::after{content:"Collapse";}.docblock summary>*{display:inline-block;}.docblock>.example-wrap:first-child .tooltip{margin-top:16px;}@media (max-width:850px){#search-tabs .count{display:block;}}@media (max-width:700px){*[id]{scroll-margin-top:45px;}.rustdoc{display:block;}main{padding-left:15px;padding-top:0px;}.main-heading{flex-direction:column;}.out-of-band{text-align:left;margin-left:initial;padding:initial;}.out-of-band .since::before{content:"Since ";}.sidebar .logo-container,.sidebar .location{display:none;}.sidebar{position:fixed;top:45px;left:-1000px;z-index:11;height:calc(100vh - 45px);width:200px;}.src main,.rustdoc.src .sidebar{top:0;padding:0;height:100vh;border:0;}.sidebar.shown,.src-sidebar-expanded .src .sidebar,.rustdoc:not(.src) .sidebar:focus-within{left:0;}.mobile-topbar h2{padding-bottom:0;margin:auto 0.5em auto auto;overflow:hidden;font-size:24px;}.mobile-topbar h2 a{display:block;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;}.mobile-topbar .logo-container>img{max-width:35px;max-height:35px;margin:5px 0 5px 20px;}.mobile-topbar{display:flex;flex-direction:row;position:sticky;z-index:10;font-size:2rem;height:45px;width:100%;left:0;top:0;}.sidebar-menu-toggle{width:45px;font-size:32px;border:none;color:var(--main-color);}.sidebar-elems{margin-top:1em;}.anchor{display:none !important;}#main-content>details.toggle>summary::before,#main-content>div>details.toggle>summary::before{left:-11px;}#src-sidebar-toggle{position:fixed;left:1px;top:100px;width:30px;font-size:1.5rem;padding:0;z-index:10;border-top-right-radius:3px;border-bottom-right-radius:3px;border:1px solid;border-left:0;}.src-sidebar-expanded #src-sidebar-toggle{left:unset;top:unset;width:unset;border-top-right-radius:unset;border-bottom-right-radius:unset;position:sticky;border:0;border-bottom:1px solid;}#copy-path,#help-button{display:none;}.item-table,.item-row,.item-table>li,.item-table>li>div,.search-results>a,.search-results>a>div{display:block;}.search-results>a{padding:5px 0px;}.search-results>a>div.desc,.item-table>li>div.desc{padding-left:2em;}.search-results .result-name{display:block;}.search-results .result-name .typename{width:initial;margin-right:0;}.search-results .result-name .typename,.search-results .result-name .path{display:inline;}.src-sidebar-expanded .src .sidebar{max-width:100vw;width:100vw;}details.toggle:not(.top-doc)>summary{margin-left:10px;}.impl-items>details.toggle>summary:not(.hideme)::before,#main-content>details.toggle:not(.top-doc)>summary::before,#main-content>div>details.toggle>summary::before{left:-11px;}.impl-items>.item-info{margin-left:34px;}.src nav.sub{margin:0;padding:var(--nav-sub-mobile-padding);}}@media (min-width:701px){.scraped-example-title{position:absolute;z-index:10;background:var(--main-background-color);bottom:8px;right:5px;padding:2px 4px;box-shadow:0 0 4px var(--main-background-color);}}@media print{nav.sidebar,nav.sub,.out-of-band,a.src,#copy-path,details.toggle[open] >summary::before,details.toggle>summary::before,details.toggle.top-doc>summary{display:none;}.docblock{margin-left:0;}main{padding:10px;}}@media (max-width:464px){.docblock{margin-left:12px;}.docblock code{overflow-wrap:break-word;overflow-wrap:anywhere;}nav.sub{flex-direction:column;}.search-form{align-self:stretch;}.sub-logo-container>img{height:35px;width:35px;margin-bottom:var(--nav-sub-mobile-padding);}}.variant,.implementors-toggle>summary,.impl,#implementors-list>.docblock,.impl-items>section,.impl-items>.toggle>summary,.methods>section,.methods>.toggle>summary{margin-bottom:0.75em;}.variants>.docblock,.implementors-toggle>.docblock,.impl-items>.toggle[open]:not(:last-child),.methods>.toggle[open]:not(:last-child),.implementors-toggle[open]:not(:last-child){margin-bottom:2em;}#trait-implementations-list .impl-items>.toggle:not(:last-child),#synthetic-implementations-list .impl-items>.toggle:not(:last-child),#blanket-implementations-list .impl-items>.toggle:not(:last-child){margin-bottom:1em;}.scraped-example-list .scrape-help{margin-left:10px;padding:0 4px;font-weight:normal;font-size:12px;position:relative;bottom:1px;border:1px solid var(--scrape-example-help-border-color);border-radius:50px;color:var(--scrape-example-help-color);}.scraped-example-list .scrape-help:hover{border-color:var(--scrape-example-help-hover-border-color);color:var(--scrape-example-help-hover-color);}.scraped-example{position:relative;}.scraped-example .code-wrapper{position:relative;display:flex;flex-direction:row;flex-wrap:wrap;width:100%;}.scraped-example:not(.expanded) .code-wrapper{max-height:calc(1.5em * 5 + 10px);}.scraped-example:not(.expanded) .code-wrapper pre{overflow-y:hidden;padding-bottom:0;max-height:calc(1.5em * 5 + 10px);}.more-scraped-examples .scraped-example:not(.expanded) .code-wrapper,.more-scraped-examples .scraped-example:not(.expanded) .code-wrapper pre{max-height:calc(1.5em * 10 + 10px);}.scraped-example .code-wrapper .next,.scraped-example .code-wrapper .prev,.scraped-example .code-wrapper .expand{color:var(--main-color);position:absolute;top:0.25em;z-index:1;padding:0;background:none;border:none;-webkit-appearance:none;opacity:1;}.scraped-example .code-wrapper .prev{right:2.25em;}.scraped-example .code-wrapper .next{right:1.25em;}.scraped-example .code-wrapper .expand{right:0.25em;}.scraped-example:not(.expanded) .code-wrapper::before,.scraped-example:not(.expanded) .code-wrapper::after{content:" ";width:100%;height:5px;position:absolute;z-index:1;}.scraped-example:not(.expanded) .code-wrapper::before{top:0;background:linear-gradient(to bottom,var(--scrape-example-code-wrapper-background-start),var(--scrape-example-code-wrapper-background-end));}.scraped-example:not(.expanded) .code-wrapper::after{bottom:0;background:linear-gradient(to top,var(--scrape-example-code-wrapper-background-start),var(--scrape-example-code-wrapper-background-end));}.scraped-example .code-wrapper .example-wrap{width:100%;overflow-y:hidden;margin-bottom:0;}.scraped-example:not(.expanded) .code-wrapper .example-wrap{overflow-x:hidden;}.scraped-example .example-wrap .rust span.highlight{background:var(--scrape-example-code-line-highlight);}.scraped-example .example-wrap .rust span.highlight.focus{background:var(--scrape-example-code-line-highlight-focus);}.more-examples-toggle{max-width:calc(100% + 25px);margin-top:10px;margin-left:-25px;}.more-examples-toggle .hide-more{margin-left:25px;cursor:pointer;}.more-scraped-examples{margin-left:25px;position:relative;}.toggle-line{position:absolute;top:5px;bottom:0;right:calc(100% + 10px);padding:0 4px;cursor:pointer;}.toggle-line-inner{min-width:2px;height:100%;background:var(--scrape-example-toggle-line-background);}.toggle-line:hover .toggle-line-inner{background:var(--scrape-example-toggle-line-hover-background);}.more-scraped-examples .scraped-example,.example-links{margin-top:20px;}.more-scraped-examples .scraped-example:first-child{margin-top:5px;}.example-links ul{margin-bottom:0;}:root[data-theme="light"]{--main-background-color:white;--main-color:black;--settings-input-color:#2196f3;--settings-input-border-color:#717171;--settings-button-color:#000;--settings-button-border-focus:#717171;--sidebar-background-color:#f5f5f5;--sidebar-background-color-hover:#e0e0e0;--code-block-background-color:#f5f5f5;--scrollbar-track-background-color:#dcdcdc;--scrollbar-thumb-background-color:rgba(36,37,39,0.6);--scrollbar-color:rgba(36,37,39,0.6) #d9d9d9;--headings-border-bottom-color:#ddd;--border-color:#e0e0e0;--button-background-color:#fff;--right-side-color:grey;--code-attribute-color:#999;--toggles-color:#999;--toggle-filter:none;--search-input-focused-border-color:#66afe9;--copy-path-button-color:#999;--copy-path-img-filter:invert(50%);--copy-path-img-hover-filter:invert(35%);--codeblock-error-hover-color:rgb(255,0,0);--codeblock-error-color:rgba(255,0,0,.5);--codeblock-ignore-hover-color:rgb(255,142,0);--codeblock-ignore-color:rgba(255,142,0,.6);--warning-border-color:#ff8e00;--type-link-color:#ad378a;--trait-link-color:#6e4fc9;--assoc-item-link-color:#3873ad;--function-link-color:#ad7c37;--macro-link-color:#068000;--keyword-link-color:#3873ad;--mod-link-color:#3873ad;--link-color:#3873ad;--sidebar-link-color:#356da4;--sidebar-current-link-background-color:#fff;--search-result-link-focus-background-color:#ccc;--search-result-border-color:#aaa3;--search-color:#000;--search-error-code-background-color:#d0cccc;--search-results-alias-color:#000;--search-results-grey-color:#999;--search-tab-title-count-color:#888;--search-tab-button-not-selected-border-top-color:#e6e6e6;--search-tab-button-not-selected-background:#e6e6e6;--search-tab-button-selected-border-top-color:#0089ff;--search-tab-button-selected-background:#fff;--stab-background-color:#fff5d6;--stab-code-color:#000;--code-highlight-kw-color:#8959a8;--code-highlight-kw-2-color:#4271ae;--code-highlight-lifetime-color:#b76514;--code-highlight-prelude-color:#4271ae;--code-highlight-prelude-val-color:#c82829;--code-highlight-number-color:#718c00;--code-highlight-string-color:#718c00;--code-highlight-literal-color:#c82829;--code-highlight-attribute-color:#c82829;--code-highlight-self-color:#c82829;--code-highlight-macro-color:#3e999f;--code-highlight-question-mark-color:#ff9011;--code-highlight-comment-color:#8e908c;--code-highlight-doc-comment-color:#4d4d4c;--src-line-numbers-span-color:#c67e2d;--src-line-number-highlighted-background-color:#fdffd3;--test-arrow-color:#f5f5f5;--test-arrow-background-color:rgba(78,139,202,0.2);--test-arrow-hover-color:#f5f5f5;--test-arrow-hover-background-color:rgb(78,139,202);--target-background-color:#fdffd3;--target-border-color:#ad7c37;--kbd-color:#000;--kbd-background:#fafbfc;--kbd-box-shadow-color:#c6cbd1;--rust-logo-filter:initial;--crate-search-div-filter:invert(100%) sepia(0%) saturate(4223%) hue-rotate(289deg) brightness(114%) contrast(76%);--crate-search-div-hover-filter:invert(44%) sepia(18%) saturate(23%) hue-rotate(317deg) brightness(96%) contrast(93%);--crate-search-hover-border:#717171;--src-sidebar-background-selected:#fff;--src-sidebar-background-hover:#e0e0e0;--table-alt-row-background-color:#f5f5f5;--codeblock-link-background:#eee;--scrape-example-toggle-line-background:#ccc;--scrape-example-toggle-line-hover-background:#999;--scrape-example-code-line-highlight:#fcffd6;--scrape-example-code-line-highlight-focus:#f6fdb0;--scrape-example-help-border-color:#555;--scrape-example-help-color:#333;--scrape-example-help-hover-border-color:#000;--scrape-example-help-hover-color:#000;--scrape-example-code-wrapper-background-start:rgba(255,255,255,1);--scrape-example-code-wrapper-background-end:rgba(255,255,255,0);}:root[data-theme="dark"]{--main-background-color:#353535;--main-color:#ddd;--settings-input-color:#2196f3;--settings-input-border-color:#999;--settings-button-color:#000;--settings-button-border-focus:#ffb900;--sidebar-background-color:#505050;--sidebar-background-color-hover:#676767;--code-block-background-color:#2A2A2A;--scrollbar-track-background-color:#717171;--scrollbar-thumb-background-color:rgba(32,34,37,.6);--scrollbar-color:rgba(32,34,37,.6) #5a5a5a;--headings-border-bottom-color:#d2d2d2;--border-color:#e0e0e0;--button-background-color:#f0f0f0;--right-side-color:grey;--code-attribute-color:#999;--toggles-color:#999;--toggle-filter:invert(100%);--search-input-focused-border-color:#008dfd;--copy-path-button-color:#999;--copy-path-img-filter:invert(50%);--copy-path-img-hover-filter:invert(65%);--codeblock-error-hover-color:rgb(255,0,0);--codeblock-error-color:rgba(255,0,0,.5);--codeblock-ignore-hover-color:rgb(255,142,0);--codeblock-ignore-color:rgba(255,142,0,.6);--warning-border-color:#ff8e00;--type-link-color:#2dbfb8;--trait-link-color:#b78cf2;--assoc-item-link-color:#d2991d;--function-link-color:#2bab63;--macro-link-color:#09bd00;--keyword-link-color:#d2991d;--mod-link-color:#d2991d;--link-color:#d2991d;--sidebar-link-color:#fdbf35;--sidebar-current-link-background-color:#444;--search-result-link-focus-background-color:#616161;--search-result-border-color:#aaa3;--search-color:#111;--search-error-code-background-color:#484848;--search-results-alias-color:#fff;--search-results-grey-color:#ccc;--search-tab-title-count-color:#888;--search-tab-button-not-selected-border-top-color:#252525;--search-tab-button-not-selected-background:#252525;--search-tab-button-selected-border-top-color:#0089ff;--search-tab-button-selected-background:#353535;--stab-background-color:#314559;--stab-code-color:#e6e1cf;--code-highlight-kw-color:#ab8ac1;--code-highlight-kw-2-color:#769acb;--code-highlight-lifetime-color:#d97f26;--code-highlight-prelude-color:#769acb;--code-highlight-prelude-val-color:#ee6868;--code-highlight-number-color:#83a300;--code-highlight-string-color:#83a300;--code-highlight-literal-color:#ee6868;--code-highlight-attribute-color:#ee6868;--code-highlight-self-color:#ee6868;--code-highlight-macro-color:#3e999f;--code-highlight-question-mark-color:#ff9011;--code-highlight-comment-color:#8d8d8b;--code-highlight-doc-comment-color:#8ca375;--src-line-numbers-span-color:#3b91e2;--src-line-number-highlighted-background-color:#0a042f;--test-arrow-color:#dedede;--test-arrow-background-color:rgba(78,139,202,0.2);--test-arrow-hover-color:#dedede;--test-arrow-hover-background-color:#4e8bca;--target-background-color:#494a3d;--target-border-color:#bb7410;--kbd-color:#000;--kbd-background:#fafbfc;--kbd-box-shadow-color:#c6cbd1;--rust-logo-filter:drop-shadow(1px 0 0px #fff) drop-shadow(0 1px 0 #fff) drop-shadow(-1px 0 0 #fff) drop-shadow(0 -1px 0 #fff);--crate-search-div-filter:invert(94%) sepia(0%) saturate(721%) hue-rotate(255deg) brightness(90%) contrast(90%);--crate-search-div-hover-filter:invert(69%) sepia(60%) saturate(6613%) hue-rotate(184deg) brightness(100%) contrast(91%);--crate-search-hover-border:#2196f3;--src-sidebar-background-selected:#333;--src-sidebar-background-hover:#444;--table-alt-row-background-color:#2a2a2a;--codeblock-link-background:#333;--scrape-example-toggle-line-background:#999;--scrape-example-toggle-line-hover-background:#c5c5c5;--scrape-example-code-line-highlight:#5b3b01;--scrape-example-code-line-highlight-focus:#7c4b0f;--scrape-example-help-border-color:#aaa;--scrape-example-help-color:#eee;--scrape-example-help-hover-border-color:#fff;--scrape-example-help-hover-color:#fff;--scrape-example-code-wrapper-background-start:rgba(53,53,53,1);--scrape-example-code-wrapper-background-end:rgba(53,53,53,0);}:root[data-theme="ayu"]{--main-background-color:#0f1419;--main-color:#c5c5c5;--settings-input-color:#ffb454;--settings-input-border-color:#999;--settings-button-color:#fff;--settings-button-border-focus:#e0e0e0;--sidebar-background-color:#14191f;--sidebar-background-color-hover:rgba(70,70,70,0.33);--code-block-background-color:#191f26;--scrollbar-track-background-color:transparent;--scrollbar-thumb-background-color:#5c6773;--scrollbar-color:#5c6773 #24292f;--headings-border-bottom-color:#5c6773;--border-color:#5c6773;--button-background-color:#141920;--right-side-color:grey;--code-attribute-color:#999;--toggles-color:#999;--toggle-filter:invert(100%);--search-input-focused-border-color:#5c6773;--copy-path-button-color:#fff;--copy-path-img-filter:invert(70%);--copy-path-img-hover-filter:invert(100%);--codeblock-error-hover-color:rgb(255,0,0);--codeblock-error-color:rgba(255,0,0,.5);--codeblock-ignore-hover-color:rgb(255,142,0);--codeblock-ignore-color:rgba(255,142,0,.6);--warning-border-color:#ff8e00;--type-link-color:#ffa0a5;--trait-link-color:#39afd7;--assoc-item-link-color:#39afd7;--function-link-color:#fdd687;--macro-link-color:#a37acc;--keyword-link-color:#39afd7;--mod-link-color:#39afd7;--link-color:#39afd7;--sidebar-link-color:#53b1db;--sidebar-current-link-background-color:transparent;--search-result-link-focus-background-color:#3c3c3c;--search-result-border-color:#aaa3;--search-color:#fff;--search-error-code-background-color:#4f4c4c;--search-results-alias-color:#c5c5c5;--search-results-grey-color:#999;--search-tab-title-count-color:#888;--search-tab-button-not-selected-border-top-color:none;--search-tab-button-not-selected-background:transparent !important;--search-tab-button-selected-border-top-color:none;--search-tab-button-selected-background:#141920 !important;--stab-background-color:#314559;--stab-code-color:#e6e1cf;--code-highlight-kw-color:#ff7733;--code-highlight-kw-2-color:#ff7733;--code-highlight-lifetime-color:#ff7733;--code-highlight-prelude-color:#69f2df;--code-highlight-prelude-val-color:#ff7733;--code-highlight-number-color:#b8cc52;--code-highlight-string-color:#b8cc52;--code-highlight-literal-color:#ff7733;--code-highlight-attribute-color:#e6e1cf;--code-highlight-self-color:#36a3d9;--code-highlight-macro-color:#a37acc;--code-highlight-question-mark-color:#ff9011;--code-highlight-comment-color:#788797;--code-highlight-doc-comment-color:#a1ac88;--src-line-numbers-span-color:#5c6773;--src-line-number-highlighted-background-color:rgba(255,236,164,0.06);--test-arrow-color:#788797;--test-arrow-background-color:rgba(57,175,215,0.09);--test-arrow-hover-color:#c5c5c5;--test-arrow-hover-background-color:rgba(57,175,215,0.368);--target-background-color:rgba(255,236,164,0.06);--target-border-color:rgba(255,180,76,0.85);--kbd-color:#c5c5c5;--kbd-background:#314559;--kbd-box-shadow-color:#5c6773;--rust-logo-filter:drop-shadow(1px 0 0px #fff) drop-shadow(0 1px 0 #fff) drop-shadow(-1px 0 0 #fff) drop-shadow(0 -1px 0 #fff);--crate-search-div-filter:invert(41%) sepia(12%) saturate(487%) hue-rotate(171deg) brightness(94%) contrast(94%);--crate-search-div-hover-filter:invert(98%) sepia(12%) saturate(81%) hue-rotate(343deg) brightness(113%) contrast(76%);--crate-search-hover-border:#e0e0e0;--src-sidebar-background-selected:#14191f;--src-sidebar-background-hover:#14191f;--table-alt-row-background-color:#191f26;--codeblock-link-background:#333;--scrape-example-toggle-line-background:#999;--scrape-example-toggle-line-hover-background:#c5c5c5;--scrape-example-code-line-highlight:#5b3b01;--scrape-example-code-line-highlight-focus:#7c4b0f;--scrape-example-help-border-color:#aaa;--scrape-example-help-color:#eee;--scrape-example-help-hover-border-color:#fff;--scrape-example-help-hover-color:#fff;--scrape-example-code-wrapper-background-start:rgba(15,20,25,1);--scrape-example-code-wrapper-background-end:rgba(15,20,25,0);}:root[data-theme="ayu"] h1,:root[data-theme="ayu"] h2,:root[data-theme="ayu"] h3,:root[data-theme="ayu"] h4,:where(:root[data-theme="ayu"]) h1 a,:root[data-theme="ayu"] .sidebar h2 a,:root[data-theme="ayu"] .sidebar h3 a,:root[data-theme="ayu"] #source-sidebar>.title{color:#fff;}:root[data-theme="ayu"] .docblock code{color:#ffb454;}:root[data-theme="ayu"] .docblock a>code{color:#39AFD7 !important;}:root[data-theme="ayu"] .code-header,:root[data-theme="ayu"] .docblock pre>code,:root[data-theme="ayu"] pre,:root[data-theme="ayu"] pre>code,:root[data-theme="ayu"] .item-info code,:root[data-theme="ayu"] .rustdoc.source .example-wrap{color:#e6e1cf;}:root[data-theme="ayu"] .sidebar .current,:root[data-theme="ayu"] .sidebar a:hover,:root[data-theme="ayu"] #src-sidebar div.files>a:hover,:root[data-theme="ayu"] details.dir-entry summary:hover,:root[data-theme="ayu"] #src-sidebar div.files>a:focus,:root[data-theme="ayu"] details.dir-entry summary:focus,:root[data-theme="ayu"] #src-sidebar div.files>a.selected{color:#ffb44c;}:root[data-theme="ayu"] .sidebar-elems .location{color:#ff7733;}:root[data-theme="ayu"] .src-line-numbers .line-highlighted{color:#708090;padding-right:7px;border-right:1px solid #ffb44c;}:root[data-theme="ayu"] .search-results a:hover,:root[data-theme="ayu"] .search-results a:focus{color:#fff !important;background-color:#3c3c3c;}:root[data-theme="ayu"] .search-results a{color:#0096cf;}:root[data-theme="ayu"] .search-results a div.desc{color:#c5c5c5;}:root[data-theme="ayu"] .result-name .primitive>i,:root[data-theme="ayu"] .result-name .keyword>i{color:#788797;}:root[data-theme="ayu"] #search-tabs>button.selected{border-bottom:1px solid #ffb44c !important;border-top:none;}:root[data-theme="ayu"] #search-tabs>button:not(.selected){border:none;background-color:transparent !important;}:root[data-theme="ayu"] #search-tabs>button:hover{border-bottom:1px solid rgba(242,151,24,0.3);}:root[data-theme="ayu"] #settings-menu>a img{filter:invert(100);} \ No newline at end of file diff --git a/docs/api-rust/static.files/scrape-examples-ef1e698c1d417c0c.js b/docs/api-rust/static.files/scrape-examples-ef1e698c1d417c0c.js new file mode 100644 index 000000000..ba830e374 --- /dev/null +++ b/docs/api-rust/static.files/scrape-examples-ef1e698c1d417c0c.js @@ -0,0 +1 @@ +"use strict";(function(){const DEFAULT_MAX_LINES=5;const HIDDEN_MAX_LINES=10;function scrollToLoc(elt,loc,isHidden){const lines=elt.querySelector(".src-line-numbers");let scrollOffset;const maxLines=isHidden?HIDDEN_MAX_LINES:DEFAULT_MAX_LINES;if(loc[1]-loc[0]>maxLines){const line=Math.max(0,loc[0]-1);scrollOffset=lines.children[line].offsetTop}else{const wrapper=elt.querySelector(".code-wrapper");const halfHeight=wrapper.offsetHeight/2;const offsetTop=lines.children[loc[0]].offsetTop;const lastLine=lines.children[loc[1]];const offsetBot=lastLine.offsetTop+lastLine.offsetHeight;const offsetMid=(offsetTop+offsetBot)/2;scrollOffset=offsetMid-halfHeight}lines.scrollTo(0,scrollOffset);elt.querySelector(".rust").scrollTo(0,scrollOffset)}function updateScrapedExample(example,isHidden){const locs=JSON.parse(example.attributes.getNamedItem("data-locs").textContent);let locIndex=0;const highlights=Array.prototype.slice.call(example.querySelectorAll(".highlight"));const link=example.querySelector(".scraped-example-title a");if(locs.length>1){const onChangeLoc=changeIndex=>{removeClass(highlights[locIndex],"focus");changeIndex();scrollToLoc(example,locs[locIndex][0],isHidden);addClass(highlights[locIndex],"focus");const url=locs[locIndex][1];const title=locs[locIndex][2];link.href=url;link.innerHTML=title};example.querySelector(".prev").addEventListener("click",()=>{onChangeLoc(()=>{locIndex=(locIndex-1+locs.length)%locs.length})});example.querySelector(".next").addEventListener("click",()=>{onChangeLoc(()=>{locIndex=(locIndex+1)%locs.length})})}const expandButton=example.querySelector(".expand");if(expandButton){expandButton.addEventListener("click",()=>{if(hasClass(example,"expanded")){removeClass(example,"expanded");scrollToLoc(example,locs[0][0],isHidden)}else{addClass(example,"expanded")}})}scrollToLoc(example,locs[0][0],isHidden)}const firstExamples=document.querySelectorAll(".scraped-example-list > .scraped-example");onEachLazy(firstExamples,el=>updateScrapedExample(el,false));onEachLazy(document.querySelectorAll(".more-examples-toggle"),toggle=>{onEachLazy(toggle.querySelectorAll(".toggle-line, .hide-more"),button=>{button.addEventListener("click",()=>{toggle.open=false})});const moreExamples=toggle.querySelectorAll(".scraped-example");toggle.querySelector("summary").addEventListener("click",()=>{setTimeout(()=>{onEachLazy(moreExamples,el=>updateScrapedExample(el,true))})},{once:true})})})() \ No newline at end of file diff --git a/docs/api-rust/static.files/search-8be46b629f5f14a8.js b/docs/api-rust/static.files/search-8be46b629f5f14a8.js new file mode 100644 index 000000000..4ecf5c55f --- /dev/null +++ b/docs/api-rust/static.files/search-8be46b629f5f14a8.js @@ -0,0 +1,5 @@ +"use strict";if(!Array.prototype.toSpliced){Array.prototype.toSpliced=function(){const me=this.slice();Array.prototype.splice.apply(me,arguments);return me}}(function(){const itemTypes=["mod","externcrate","import","struct","enum","fn","type","static","trait","impl","tymethod","method","structfield","variant","macro","primitive","associatedtype","constant","associatedconstant","union","foreigntype","keyword","existential","attr","derive","traitalias","generic",];const longItemTypes=["module","extern crate","re-export","struct","enum","function","type alias","static","trait","","trait method","method","struct field","enum variant","macro","primitive type","assoc type","constant","assoc const","union","foreign type","keyword","existential type","attribute macro","derive macro","trait alias",];const TY_PRIMITIVE=itemTypes.indexOf("primitive");const TY_KEYWORD=itemTypes.indexOf("keyword");const TY_GENERIC=itemTypes.indexOf("generic");const ROOT_PATH=typeof window!=="undefined"?window.rootPath:"../";function hasOwnPropertyRustdoc(obj,property){return Object.prototype.hasOwnProperty.call(obj,property)}function printTab(nb){let iter=0;let foundCurrentTab=false;let foundCurrentResultSet=false;onEachLazy(document.getElementById("search-tabs").childNodes,elem=>{if(nb===iter){addClass(elem,"selected");foundCurrentTab=true}else{removeClass(elem,"selected")}iter+=1});const isTypeSearch=(nb>0||iter===1);iter=0;onEachLazy(document.getElementById("results").childNodes,elem=>{if(nb===iter){addClass(elem,"active");foundCurrentResultSet=true}else{removeClass(elem,"active")}iter+=1});if(foundCurrentTab&&foundCurrentResultSet){searchState.currentTab=nb;const correctionsElem=document.getElementsByClassName("search-corrections");if(isTypeSearch){removeClass(correctionsElem[0],"hidden")}else{addClass(correctionsElem[0],"hidden")}}else if(nb!==0){printTab(0)}}const editDistanceState={current:[],prev:[],prevPrev:[],calculate:function calculate(a,b,limit){if(a.lengthlimit){return limit+1}while(b.length>0&&b[0]===a[0]){a=a.substring(1);b=b.substring(1)}while(b.length>0&&b[b.length-1]===a[a.length-1]){a=a.substring(0,a.length-1);b=b.substring(0,b.length-1)}if(b.length===0){return minDist}const aLength=a.length;const bLength=b.length;for(let i=0;i<=bLength;++i){this.current[i]=0;this.prev[i]=i;this.prevPrev[i]=Number.MAX_VALUE}for(let i=1;i<=aLength;++i){this.current[0]=i;const aIdx=i-1;for(let j=1;j<=bLength;++j){const bIdx=j-1;const substitutionCost=a[aIdx]===b[bIdx]?0:1;this.current[j]=Math.min(this.prev[j]+1,this.current[j-1]+1,this.prev[j-1]+substitutionCost);if((i>1)&&(j>1)&&(a[aIdx]===b[bIdx-1])&&(a[aIdx-1]===b[bIdx])){this.current[j]=Math.min(this.current[j],this.prevPrev[j-2]+1)}}const prevPrevTmp=this.prevPrev;this.prevPrev=this.prev;this.prev=this.current;this.current=prevPrevTmp}const distance=this.prev[bLength];return distance<=limit?distance:(limit+1)},};function editDistance(a,b,limit){return editDistanceState.calculate(a,b,limit)}function initSearch(rawSearchIndex){const MAX_RESULTS=200;const NO_TYPE_FILTER=-1;let searchIndex;let currentResults;let typeNameIdMap;const ALIASES=new Map();let typeNameIdOfArray;let typeNameIdOfSlice;let typeNameIdOfArrayOrSlice;function buildTypeMapIndex(name){if(name===""||name===null){return null}if(typeNameIdMap.has(name)){return typeNameIdMap.get(name)}else{const id=typeNameIdMap.size;typeNameIdMap.set(name,id);return id}}function isWhitespace(c){return" \t\n\r".indexOf(c)!==-1}function isSpecialStartCharacter(c){return"<\"".indexOf(c)!==-1}function isEndCharacter(c){return",>-]".indexOf(c)!==-1}function isStopCharacter(c){return isEndCharacter(c)}function isErrorCharacter(c){return"()".indexOf(c)!==-1}function itemTypeFromName(typename){const index=itemTypes.findIndex(i=>i===typename);if(index<0){throw["Unknown type filter ",typename]}return index}function getStringElem(query,parserState,isInGenerics){if(isInGenerics){throw["Unexpected ","\""," in generics"]}else if(query.literalSearch){throw["Cannot have more than one literal search element"]}else if(parserState.totalElems-parserState.genericsElems>0){throw["Cannot use literal search when there is more than one element"]}parserState.pos+=1;const start=parserState.pos;const end=getIdentEndPosition(parserState);if(parserState.pos>=parserState.length){throw["Unclosed ","\""]}else if(parserState.userQuery[end]!=="\""){throw["Unexpected ",parserState.userQuery[end]," in a string element"]}else if(start===end){throw["Cannot have empty string element"]}parserState.pos+=1;query.literalSearch=true}function isPathStart(parserState){return parserState.userQuery.slice(parserState.pos,parserState.pos+2)==="::"}function isReturnArrow(parserState){return parserState.userQuery.slice(parserState.pos,parserState.pos+2)==="->"}function isIdentCharacter(c){return(c==="_"||(c>="0"&&c<="9")||(c>="a"&&c<="z")||(c>="A"&&c<="Z"))}function isSeparatorCharacter(c){return c===","}function isPathSeparator(c){return c===":"||isWhitespace(c)}function prevIs(parserState,lookingFor){let pos=parserState.pos;while(pos>0){const c=parserState.userQuery[pos-1];if(c===lookingFor){return true}else if(!isWhitespace(c)){break}pos-=1}return false}function isLastElemGeneric(elems,parserState){return(elems.length>0&&elems[elems.length-1].generics.length>0)||prevIs(parserState,">")}function skipWhitespace(parserState){while(parserState.pos0){throw["Cannot have more than one element if you use quotes"]}const typeFilter=parserState.typeFilter;parserState.typeFilter=null;if(name==="!"){if(typeFilter!==null&&typeFilter!=="primitive"){throw["Invalid search type: primitive never type ","!"," and ",typeFilter," both specified",]}if(generics.length!==0){throw["Never type ","!"," does not accept generic parameters",]}return{name:"never",id:null,fullPath:["never"],pathWithoutLast:[],pathLast:"never",generics:[],typeFilter:"primitive",}}if(path.startsWith("::")){throw["Paths cannot start with ","::"]}else if(path.endsWith("::")){throw["Paths cannot end with ","::"]}else if(path.includes("::::")){throw["Unexpected ","::::"]}else if(path.includes(" ::")){throw["Unexpected "," ::"]}else if(path.includes(":: ")){throw["Unexpected ",":: "]}const pathSegments=path.split(/::|\s+/);if(pathSegments.length===0||(pathSegments.length===1&&pathSegments[0]==="")){if(generics.length>0||prevIs(parserState,">")){throw["Found generics without a path"]}else{throw["Unexpected ",parserState.userQuery[parserState.pos]]}}for(const[i,pathSegment]of pathSegments.entries()){if(pathSegment==="!"){if(i!==0){throw["Never type ","!"," is not associated item"]}pathSegments[i]="never"}}parserState.totalElems+=1;if(isInGenerics){parserState.genericsElems+=1}return{name:name.trim(),id:null,fullPath:pathSegments,pathWithoutLast:pathSegments.slice(0,pathSegments.length-1),pathLast:pathSegments[pathSegments.length-1],generics:generics,typeFilter,}}function getIdentEndPosition(parserState){const start=parserState.pos;let end=parserState.pos;let foundExclamation=-1;while(parserState.pos=end){throw["Found generics without a path"]}parserState.pos+=1;getItemsBefore(query,parserState,generics,">")}if(isStringElem){skipWhitespace(parserState)}if(start>=end&&generics.length===0){return}elems.push(createQueryElement(query,parserState,parserState.userQuery.slice(start,end),generics,isInGenerics))}}function getItemsBefore(query,parserState,elems,endChar){let foundStopChar=true;let start=parserState.pos;const oldTypeFilter=parserState.typeFilter;parserState.typeFilter=null;let extra="";if(endChar===">"){extra="<"}else if(endChar==="]"){extra="["}else if(endChar===""){extra="->"}else{extra=endChar}while(parserState.pos"]}else if(prevIs(parserState,"\"")){throw["Cannot have more than one element if you use quotes"]}if(endChar!==""){throw["Expected ",","," or ",endChar,...extra,", found ",c,]}throw["Expected ",",",...extra,", found ",c,]}const posBefore=parserState.pos;start=parserState.pos;getNextElem(query,parserState,elems,endChar!=="");if(endChar!==""&&parserState.pos>=parserState.length){throw["Unclosed ",extra]}if(posBefore===parserState.pos){parserState.pos+=1}foundStopChar=false}if(parserState.pos>=parserState.length&&endChar!==""){throw["Unclosed ",extra]}parserState.pos+=1;parserState.typeFilter=oldTypeFilter}function checkExtraTypeFilterCharacters(start,parserState){const query=parserState.userQuery.slice(start,parserState.pos).trim();for(const c in query){if(!isIdentCharacter(query[c])){throw["Unexpected ",query[c]," in type filter (before ",":",")",]}}}function parseInput(query,parserState){let foundStopChar=true;let start=parserState.pos;while(parserState.pos"){if(isReturnArrow(parserState)){break}throw["Unexpected ",c," (did you mean ","->","?)"]}throw["Unexpected ",c]}else if(c===":"&&!isPathStart(parserState)){if(parserState.typeFilter!==null){throw["Unexpected ",":"," (expected path after type filter ",parserState.typeFilter+":",")",]}else if(query.elems.length===0){throw["Expected type filter before ",":"]}else if(query.literalSearch){throw["Cannot use quotes on type filter"]}const typeFilterElem=query.elems.pop();checkExtraTypeFilterCharacters(start,parserState);parserState.typeFilter=typeFilterElem.name;parserState.pos+=1;parserState.totalElems-=1;query.literalSearch=false;foundStopChar=true;continue}else if(isWhitespace(c)){skipWhitespace(parserState);continue}if(!foundStopChar){let extra="";if(isLastElemGeneric(query.elems,parserState)){extra=[" after ",">"]}else if(prevIs(parserState,"\"")){throw["Cannot have more than one element if you use quotes"]}if(parserState.typeFilter!==null){throw["Expected ",","," or ","->",...extra,", found ",c,]}throw["Expected ",",",", ",":"," or ","->",...extra,", found ",c,]}const before=query.elems.length;start=parserState.pos;getNextElem(query,parserState,query.elems,false);if(query.elems.length===before){parserState.pos+=1}foundStopChar=false}if(parserState.typeFilter!==null){throw["Unexpected ",":"," (expected path after type filter ",parserState.typeFilter+":",")",]}while(parserState.pos"]}break}else{parserState.pos+=1}}}function newParsedQuery(userQuery){return{original:userQuery,userQuery:userQuery.toLowerCase(),elems:[],returned:[],foundElems:0,totalElems:0,literalSearch:false,error:null,correction:null,proposeCorrectionFrom:null,proposeCorrectionTo:null,}}function buildUrl(search,filterCrates){let extra="?search="+encodeURIComponent(search);if(filterCrates!==null){extra+="&filter-crate="+encodeURIComponent(filterCrates)}return getNakedUrl()+extra+window.location.hash}function getFilterCrates(){const elem=document.getElementById("crate-search");if(elem&&elem.value!=="all crates"&&hasOwnPropertyRustdoc(rawSearchIndex,elem.value)){return elem.value}return null}function parseQuery(userQuery){function convertTypeFilterOnElem(elem){if(elem.typeFilter!==null){let typeFilter=elem.typeFilter;if(typeFilter==="const"){typeFilter="constant"}elem.typeFilter=itemTypeFromName(typeFilter)}else{elem.typeFilter=NO_TYPE_FILTER}for(const elem2 of elem.generics){convertTypeFilterOnElem(elem2)}}userQuery=userQuery.trim();const parserState={length:userQuery.length,pos:0,totalElems:0,genericsElems:0,typeFilter:null,userQuery:userQuery.toLowerCase(),};let query=newParsedQuery(userQuery);try{parseInput(query,parserState);for(const elem of query.elems){convertTypeFilterOnElem(elem)}for(const elem of query.returned){convertTypeFilterOnElem(elem)}}catch(err){query=newParsedQuery(userQuery);query.error=err;return query}if(!query.literalSearch){query.literalSearch=parserState.totalElems>1}query.foundElems=query.elems.length+query.returned.length;query.totalElems=parserState.totalElems;return query}function createQueryResults(results_in_args,results_returned,results_others,parsedQuery){return{"in_args":results_in_args,"returned":results_returned,"others":results_others,"query":parsedQuery,}}function execQuery(parsedQuery,searchWords,filterCrates,currentCrate){const results_others=new Map(),results_in_args=new Map(),results_returned=new Map();function transformResults(results){const duplicates=new Set();const out=[];for(const result of results){if(result.id!==-1){const obj=searchIndex[result.id];obj.dist=result.dist;const res=buildHrefAndPath(obj);obj.displayPath=pathSplitter(res[0]);obj.fullPath=obj.displayPath+obj.name;obj.fullPath+="|"+obj.ty;if(duplicates.has(obj.fullPath)){continue}duplicates.add(obj.fullPath);obj.href=res[1];out.push(obj);if(out.length>=MAX_RESULTS){break}}}return out}function sortResults(results,isType,preferredCrate){if(results.size===0){return[]}const userQuery=parsedQuery.userQuery;const result_list=[];for(const result of results.values()){result.word=searchWords[result.id];result.item=searchIndex[result.id]||{};result_list.push(result)}result_list.sort((aaa,bbb)=>{let a,b;a=(aaa.word!==userQuery);b=(bbb.word!==userQuery);if(a!==b){return a-b}a=(aaa.index<0);b=(bbb.index<0);if(a!==b){return a-b}a=aaa.path_dist;b=bbb.path_dist;if(a!==b){return a-b}a=aaa.index;b=bbb.index;if(a!==b){return a-b}a=(aaa.dist);b=(bbb.dist);if(a!==b){return a-b}a=aaa.item.deprecated;b=bbb.item.deprecated;if(a!==b){return a-b}a=(aaa.item.crate!==preferredCrate);b=(bbb.item.crate!==preferredCrate);if(a!==b){return a-b}a=aaa.word.length;b=bbb.word.length;if(a!==b){return a-b}a=aaa.word;b=bbb.word;if(a!==b){return(a>b?+1:-1)}if((aaa.item.ty===TY_PRIMITIVE&&bbb.item.ty!==TY_KEYWORD)||(aaa.item.ty===TY_KEYWORD&&bbb.item.ty!==TY_PRIMITIVE)){return-1}if((bbb.item.ty===TY_PRIMITIVE&&aaa.item.ty!==TY_PRIMITIVE)||(bbb.item.ty===TY_KEYWORD&&aaa.item.ty!==TY_KEYWORD)){return 1}a=(aaa.item.desc==="");b=(bbb.item.desc==="");if(a!==b){return a-b}a=aaa.item.ty;b=bbb.item.ty;if(a!==b){return a-b}a=aaa.item.path;b=bbb.item.path;if(a!==b){return(a>b?+1:-1)}return 0});let nameSplit=null;if(parsedQuery.elems.length===1){const hasPath=typeof parsedQuery.elems[0].path==="undefined";nameSplit=hasPath?null:parsedQuery.elems[0].path}for(const result of result_list){if(result.dontValidate){continue}const name=result.item.name.toLowerCase(),path=result.item.path.toLowerCase(),parent=result.item.parent;if(!isType&&!validateResult(name,path,nameSplit,parent)){result.id=-1}}return transformResults(result_list)}function checkGenerics(fnType,queryElem,whereClause,mgensInout){return unifyFunctionTypes(fnType.generics,queryElem.generics,whereClause,mgensInout,mgens=>{if(mgensInout){for(const[fid,qid]of mgens.entries()){mgensInout.set(fid,qid)}}return true})}function unifyFunctionTypes(fnTypesIn,queryElems,whereClause,mgensIn,solutionCb){let mgens=new Map(mgensIn);if(queryElems.length===0){return!solutionCb||solutionCb(mgens)}if(!fnTypesIn||fnTypesIn.length===0){return false}const ql=queryElems.length;let fl=fnTypesIn.length;let fnTypes=fnTypesIn.slice();const backtracking=[];let i=0;let j=0;const backtrack=()=>{while(backtracking.length!==0){const{fnTypesScratch,mgensScratch,queryElemsOffset,fnTypesOffset,unbox,}=backtracking.pop();mgens=new Map(mgensScratch);const fnType=fnTypesScratch[fnTypesOffset];const queryElem=queryElems[queryElemsOffset];if(unbox){if(fnType.id<0){if(mgens.has(fnType.id)&&mgens.get(fnType.id)!==0){continue}mgens.set(fnType.id,0)}const generics=fnType.id<0?whereClause[(-fnType.id)-1]:fnType.generics;fnTypes=fnTypesScratch.toSpliced(fnTypesOffset,1,...generics);fl=fnTypes.length;i=queryElemsOffset-1}else{if(fnType.id<0){if(mgens.has(fnType.id)&&mgens.get(fnType.id)!==queryElem.id){continue}mgens.set(fnType.id,queryElem.id)}fnTypes=fnTypesScratch.slice();fl=fnTypes.length;const tmp=fnTypes[queryElemsOffset];fnTypes[queryElemsOffset]=fnTypes[fnTypesOffset];fnTypes[fnTypesOffset]=tmp;i=queryElemsOffset}return true}return false};for(i=0;i!==ql;++i){const queryElem=queryElems[i];const matchCandidates=[];let fnTypesScratch=null;let mgensScratch=null;for(j=i;j!==fl;++j){const fnType=fnTypes[j];if(unifyFunctionTypeIsMatchCandidate(fnType,queryElem,whereClause,mgens)){if(!fnTypesScratch){fnTypesScratch=fnTypes.slice()}unifyFunctionTypes(fnType.generics,queryElem.generics,whereClause,mgens,mgensScratch=>{matchCandidates.push({fnTypesScratch,mgensScratch,queryElemsOffset:i,fnTypesOffset:j,unbox:false,});return false})}if(unifyFunctionTypeIsUnboxCandidate(fnType,queryElem,whereClause,mgens)){if(!fnTypesScratch){fnTypesScratch=fnTypes.slice()}if(!mgensScratch){mgensScratch=new Map(mgens)}backtracking.push({fnTypesScratch,mgensScratch,queryElemsOffset:i,fnTypesOffset:j,unbox:true,})}}if(matchCandidates.length===0){if(backtrack()){continue}else{return false}}const{fnTypesOffset:candidate,mgensScratch:mgensNew}=matchCandidates.pop();if(fnTypes[candidate].id<0&&queryElems[i].id<0){mgens.set(fnTypes[candidate].id,queryElems[i].id)}for(const[fid,qid]of mgensNew){mgens.set(fid,qid)}const tmp=fnTypes[candidate];fnTypes[candidate]=fnTypes[i];fnTypes[i]=tmp;for(const otherCandidate of matchCandidates){backtracking.push(otherCandidate)}while(i===(ql-1)&&solutionCb&&!solutionCb(mgens)){if(!backtrack()){return false}}}return true}function unifyFunctionTypeIsMatchCandidate(fnType,queryElem,whereClause,mgens){if(!typePassesFilter(queryElem.typeFilter,fnType.ty)){return false}if(fnType.id<0&&queryElem.id<0){if(mgens.has(fnType.id)&&mgens.get(fnType.id)!==queryElem.id){return false}for(const[fid,qid]of mgens.entries()){if(fnType.id!==fid&&queryElem.id===qid){return false}if(fnType.id===fid&&queryElem.id!==qid){return false}}}else if(fnType.id!==null){if(queryElem.id===typeNameIdOfArrayOrSlice&&(fnType.id===typeNameIdOfSlice||fnType.id===typeNameIdOfArray)){}else if(fnType.id!==queryElem.id){return false}if(fnType.generics.length===0&&queryElem.generics.length!==0){return false}const queryElemPathLength=queryElem.pathWithoutLast.length;if(queryElemPathLength>0){const fnTypePath=fnType.path!==undefined&&fnType.path!==null?fnType.path.split("::"):[];if(queryElemPathLength>fnTypePath.length){return false}let i=0;for(const path of fnTypePath){if(path===queryElem.pathWithoutLast[i]){i+=1;if(i>=queryElemPathLength){break}}}if(i=0){if(!whereClause){return false}if(mgens.has(fnType.id)&&mgens.get(fnType.id)!==0){return false}return checkIfInList(whereClause[(-fnType.id)-1],queryElem,whereClause)}else if(fnType.generics&&fnType.generics.length>0){return checkIfInList(fnType.generics,queryElem,whereClause)}return false}function checkIfInList(list,elem,whereClause){for(const entry of list){if(checkType(entry,elem,whereClause)){return true}}return false}function checkType(row,elem,whereClause){if(row.id===null){return row.generics.length>0?checkIfInList(row.generics,elem,whereClause):false}if(row.id<0&&elem.id>=0){const gid=(-row.id)-1;return checkIfInList(whereClause[gid],elem,whereClause)}if(row.id<0&&elem.id<0){return true}const matchesExact=row.id===elem.id;const matchesArrayOrSlice=elem.id===typeNameIdOfArrayOrSlice&&(row.id===typeNameIdOfSlice||row.id===typeNameIdOfArray);if((matchesExact||matchesArrayOrSlice)&&typePassesFilter(elem.typeFilter,row.ty)){if(elem.generics.length>0){return checkGenerics(row,elem,whereClause,new Map())}return true}return checkIfInList(row.generics,elem,whereClause)}function checkPath(contains,ty,maxEditDistance){if(contains.length===0){return 0}let ret_dist=maxEditDistance+1;const path=ty.path.split("::");if(ty.parent&&ty.parent.name){path.push(ty.parent.name.toLowerCase())}const length=path.length;const clength=contains.length;if(clength>length){return maxEditDistance+1}for(let i=0;ilength){break}let dist_total=0;let aborted=false;for(let x=0;xmaxEditDistance){aborted=true;break}dist_total+=dist}if(!aborted){ret_dist=Math.min(ret_dist,Math.round(dist_total/clength))}}return ret_dist}function typePassesFilter(filter,type){if(filter<=NO_TYPE_FILTER||filter===type)return true;const name=itemTypes[type];switch(itemTypes[filter]){case"constant":return name==="associatedconstant";case"fn":return name==="method"||name==="tymethod";case"type":return name==="primitive"||name==="associatedtype";case"trait":return name==="traitalias"}return false}function createAliasFromItem(item){return{crate:item.crate,name:item.name,path:item.path,desc:item.desc,ty:item.ty,parent:item.parent,type:item.type,is_alias:true,deprecated:item.deprecated,}}function handleAliases(ret,query,filterCrates,currentCrate){const lowerQuery=query.toLowerCase();const aliases=[];const crateAliases=[];if(filterCrates!==null){if(ALIASES.has(filterCrates)&&ALIASES.get(filterCrates).has(lowerQuery)){const query_aliases=ALIASES.get(filterCrates).get(lowerQuery);for(const alias of query_aliases){aliases.push(createAliasFromItem(searchIndex[alias]))}}}else{for(const[crate,crateAliasesIndex]of ALIASES){if(crateAliasesIndex.has(lowerQuery)){const pushTo=crate===currentCrate?crateAliases:aliases;const query_aliases=crateAliasesIndex.get(lowerQuery);for(const alias of query_aliases){pushTo.push(createAliasFromItem(searchIndex[alias]))}}}}const sortFunc=(aaa,bbb)=>{if(aaa.path{alias.alias=query;const res=buildHrefAndPath(alias);alias.displayPath=pathSplitter(res[0]);alias.fullPath=alias.displayPath+alias.name;alias.href=res[1];ret.others.unshift(alias);if(ret.others.length>MAX_RESULTS){ret.others.pop()}};aliases.forEach(pushFunc);crateAliases.forEach(pushFunc)}function addIntoResults(results,fullId,id,index,dist,path_dist,maxEditDistance){const inBounds=dist<=maxEditDistance||index!==-1;if(dist===0||(!parsedQuery.literalSearch&&inBounds)){if(results.has(fullId)){const result=results.get(fullId);if(result.dontValidate||result.dist<=dist){return}}results.set(fullId,{id:id,index:index,dontValidate:parsedQuery.literalSearch,dist:dist,path_dist:path_dist,})}}function handleSingleArg(row,pos,elem,results_others,results_in_args,results_returned,maxEditDistance){if(!row||(filterCrates!==null&&row.crate!==filterCrates)){return}let index=-1,path_dist=0;const fullId=row.id;const searchWord=searchWords[pos];const in_args=row.type&&row.type.inputs&&checkIfInList(row.type.inputs,elem,row.type.where_clause);if(in_args){addIntoResults(results_in_args,fullId,pos,-1,0,0,maxEditDistance)}const returned=row.type&&row.type.output&&checkIfInList(row.type.output,elem,row.type.where_clause);if(returned){addIntoResults(results_returned,fullId,pos,-1,0,0,maxEditDistance)}if(!typePassesFilter(elem.typeFilter,row.ty)){return}const row_index=row.normalizedName.indexOf(elem.pathLast);const word_index=searchWord.indexOf(elem.pathLast);if(row_index===-1){index=word_index}else if(word_index===-1){index=row_index}else if(word_index1){path_dist=checkPath(elem.pathWithoutLast,row,maxEditDistance);if(path_dist>maxEditDistance){return}}if(parsedQuery.literalSearch){if(searchWord===elem.name){addIntoResults(results_others,fullId,pos,index,0,path_dist)}return}const dist=editDistance(searchWord,elem.pathLast,maxEditDistance);if(index===-1&&dist+path_dist>maxEditDistance){return}addIntoResults(results_others,fullId,pos,index,dist,path_dist,maxEditDistance)}function handleArgs(row,pos,results){if(!row||(filterCrates!==null&&row.crate!==filterCrates)||!row.type){return}if(!unifyFunctionTypes(row.type.inputs,parsedQuery.elems,row.type.where_clause,null,mgens=>{return unifyFunctionTypes(row.type.output,parsedQuery.returned,row.type.where_clause,mgens)})){return}addIntoResults(results,row.id,pos,0,0,0,Number.MAX_VALUE)}function innerRunQuery(){let elem,i,nSearchWords,in_returned,row;let queryLen=0;for(const elem of parsedQuery.elems){queryLen+=elem.name.length}for(const elem of parsedQuery.returned){queryLen+=elem.name.length}const maxEditDistance=Math.floor(queryLen/3);const genericSymbols=new Map();function convertNameToId(elem){if(typeNameIdMap.has(elem.pathLast)){elem.id=typeNameIdMap.get(elem.pathLast)}else if(!parsedQuery.literalSearch){let match=null;let matchDist=maxEditDistance+1;let matchName="";for(const[name,id]of typeNameIdMap){const dist=editDistance(name,elem.pathLast,maxEditDistance);if(dist<=matchDist&&dist<=maxEditDistance){if(dist===matchDist&&matchName>name){continue}match=id;matchDist=dist;matchName=name}}if(match!==null){parsedQuery.correction=matchName}elem.id=match}if((elem.id===null&&parsedQuery.totalElems>1&&elem.typeFilter===-1&&elem.generics.length===0)||elem.typeFilter===TY_GENERIC){if(genericSymbols.has(elem.name)){elem.id=genericSymbols.get(elem.name)}else{elem.id=-(genericSymbols.size+1);genericSymbols.set(elem.name,elem.id)}if(elem.typeFilter===-1&&elem.name.length>=3){const maxPartDistance=Math.floor(elem.name.length/3);let matchDist=maxPartDistance+1;let matchName="";for(const name of typeNameIdMap.keys()){const dist=editDistance(name,elem.name,maxPartDistance);if(dist<=matchDist&&dist<=maxPartDistance){if(dist===matchDist&&matchName>name){continue}matchDist=dist;matchName=name}}if(matchName!==""){parsedQuery.proposeCorrectionFrom=elem.name;parsedQuery.proposeCorrectionTo=matchName}}elem.typeFilter=TY_GENERIC}if(elem.generics.length>0&&elem.typeFilter===TY_GENERIC){parsedQuery.error=["Generic type parameter ",elem.name," does not accept generic parameters",]}for(const elem2 of elem.generics){convertNameToId(elem2)}}for(const elem of parsedQuery.elems){convertNameToId(elem)}for(const elem of parsedQuery.returned){convertNameToId(elem)}if(parsedQuery.foundElems===1){if(parsedQuery.elems.length===1){elem=parsedQuery.elems[0];for(i=0,nSearchWords=searchWords.length;i0){for(i=0,nSearchWords=searchWords.length;i-1||path.indexOf(key)>-1||(parent!==undefined&&parent.name!==undefined&&parent.name.toLowerCase().indexOf(key)>-1)||editDistance(name,key,maxEditDistance)<=maxEditDistance)){return false}}return true}function nextTab(direction){const next=(searchState.currentTab+direction+3)%searchState.focusedByTab.length;searchState.focusedByTab[searchState.currentTab]=document.activeElement;printTab(next);focusSearchResult()}function focusSearchResult(){const target=searchState.focusedByTab[searchState.currentTab]||document.querySelectorAll(".search-results.active a").item(0)||document.querySelectorAll("#search-tabs button").item(searchState.currentTab);searchState.focusedByTab[searchState.currentTab]=null;if(target){target.focus()}}function buildHrefAndPath(item){let displayPath;let href;const type=itemTypes[item.ty];const name=item.name;let path=item.path;if(type==="mod"){displayPath=path+"::";href=ROOT_PATH+path.replace(/::/g,"/")+"/"+name+"/index.html"}else if(type==="import"){displayPath=item.path+"::";href=ROOT_PATH+item.path.replace(/::/g,"/")+"/index.html#reexport."+name}else if(type==="primitive"||type==="keyword"){displayPath="";href=ROOT_PATH+path.replace(/::/g,"/")+"/"+type+"."+name+".html"}else if(type==="externcrate"){displayPath="";href=ROOT_PATH+name+"/index.html"}else if(item.parent!==undefined){const myparent=item.parent;let anchor="#"+type+"."+name;const parentType=itemTypes[myparent.ty];let pageType=parentType;let pageName=myparent.name;if(parentType==="primitive"){displayPath=myparent.name+"::"}else if(type==="structfield"&&parentType==="variant"){const enumNameIdx=item.path.lastIndexOf("::");const enumName=item.path.substr(enumNameIdx+2);path=item.path.substr(0,enumNameIdx);displayPath=path+"::"+enumName+"::"+myparent.name+"::";anchor="#variant."+myparent.name+".field."+name;pageType="enum";pageName=enumName}else{displayPath=path+"::"+myparent.name+"::"}href=ROOT_PATH+path.replace(/::/g,"/")+"/"+pageType+"."+pageName+".html"+anchor}else{displayPath=item.path+"::";href=ROOT_PATH+item.path.replace(/::/g,"/")+"/"+type+"."+name+".html"}return[displayPath,href]}function pathSplitter(path){const tmp=""+path.replace(/::/g,"::");if(tmp.endsWith("")){return tmp.slice(0,tmp.length-6)}return tmp}function addTab(array,query,display){let extraClass="";if(display===true){extraClass=" active"}const output=document.createElement("div");let length=0;if(array.length>0){output.className="search-results "+extraClass;array.forEach(item=>{const name=item.name;const type=itemTypes[item.ty];const longType=longItemTypes[item.ty];const typeName=longType.length!==0?`${longType}`:"?";length+=1;const link=document.createElement("a");link.className="result-"+type;link.href=item.href;const resultName=document.createElement("div");resultName.className="result-name";resultName.insertAdjacentHTML("beforeend",`${typeName}`);link.appendChild(resultName);let alias=" ";if(item.is_alias){alias=`
\ +${item.alias} - see \ +
`}resultName.insertAdjacentHTML("beforeend",`
${alias}\ +${item.displayPath}${name}\ +
`);const description=document.createElement("div");description.className="desc";description.insertAdjacentHTML("beforeend",item.desc);link.appendChild(description);output.appendChild(link)})}else if(query.error===null){output.className="search-failed"+extraClass;output.innerHTML="No results :(
"+"Try on DuckDuckGo?

"+"Or try looking in one of these:"}return[output,length]}function makeTabHeader(tabNb,text,nbElems){const fmtNbElems=nbElems<10?`\u{2007}(${nbElems})\u{2007}\u{2007}`:nbElems<100?`\u{2007}(${nbElems})\u{2007}`:`\u{2007}(${nbElems})`;if(searchState.currentTab===tabNb){return""}return""}function showResults(results,go_to_first,filterCrates){const search=searchState.outputElement();if(go_to_first||(results.others.length===1&&getSettingValue("go-to-only-result")==="true")){window.onunload=()=>{};searchState.removeQueryParameters();const elem=document.createElement("a");elem.href=results.others[0].href;removeClass(elem,"active");document.body.appendChild(elem);elem.click();return}if(results.query===undefined){results.query=parseQuery(searchState.input.value)}currentResults=results.query.userQuery;const ret_others=addTab(results.others,results.query,true);const ret_in_args=addTab(results.in_args,results.query,false);const ret_returned=addTab(results.returned,results.query,false);let currentTab=searchState.currentTab;if((currentTab===0&&ret_others[1]===0)||(currentTab===1&&ret_in_args[1]===0)||(currentTab===2&&ret_returned[1]===0)){if(ret_others[1]!==0){currentTab=0}else if(ret_in_args[1]!==0){currentTab=1}else if(ret_returned[1]!==0){currentTab=2}}let crates="";const crates_list=Object.keys(rawSearchIndex);if(crates_list.length>1){crates=" in 
"}let output=`

Results${crates}

`;if(results.query.error!==null){const error=results.query.error;error.forEach((value,index)=>{value=value.split("<").join("<").split(">").join(">");if(index%2!==0){error[index]=`${value.replaceAll(" ", " ")}`}else{error[index]=value}});output+=`

Query parser error: "${error.join("")}".

`;output+="
"+makeTabHeader(0,"In Names",ret_others[1])+"
";currentTab=0}else if(results.query.foundElems<=1&&results.query.returned.length===0){output+="
"+makeTabHeader(0,"In Names",ret_others[1])+makeTabHeader(1,"In Parameters",ret_in_args[1])+makeTabHeader(2,"In Return Types",ret_returned[1])+"
"}else{const signatureTabTitle=results.query.elems.length===0?"In Function Return Types":results.query.returned.length===0?"In Function Parameters":"In Function Signatures";output+="
"+makeTabHeader(0,signatureTabTitle,ret_others[1])+"
";currentTab=0}if(results.query.correction!==null){const orig=results.query.returned.length>0?results.query.returned[0].name:results.query.elems[0].name;output+="

"+`Type "${orig}" not found. `+"Showing results for closest type name "+`"${results.query.correction}" instead.

`}if(results.query.proposeCorrectionFrom!==null){const orig=results.query.proposeCorrectionFrom;const targ=results.query.proposeCorrectionTo;output+="

"+`Type "${orig}" not found and used as generic parameter. `+`Consider searching for "${targ}" instead.

`}const resultsElem=document.createElement("div");resultsElem.id="results";resultsElem.appendChild(ret_others[0]);resultsElem.appendChild(ret_in_args[0]);resultsElem.appendChild(ret_returned[0]);search.innerHTML=output;const crateSearch=document.getElementById("crate-search");if(crateSearch){crateSearch.addEventListener("input",updateCrate)}search.appendChild(resultsElem);searchState.showResults(search);const elems=document.getElementById("search-tabs").childNodes;searchState.focusedByTab=[];let i=0;for(const elem of elems){const j=i;elem.onclick=()=>printTab(j);searchState.focusedByTab.push(null);i+=1}printTab(currentTab)}function updateSearchHistory(url){if(!browserSupportsHistoryApi()){return}const params=searchState.getQueryStringParams();if(!history.state&&!params.search){history.pushState(null,"",url)}else{history.replaceState(null,"",url)}}function search(e,forced){if(e){e.preventDefault()}const query=parseQuery(searchState.input.value.trim());let filterCrates=getFilterCrates();if(!forced&&query.userQuery===currentResults){if(query.userQuery.length>0){putBackSearch()}return}searchState.setLoadingSearch();const params=searchState.getQueryStringParams();if(filterCrates===null&¶ms["filter-crate"]!==undefined){filterCrates=params["filter-crate"]}searchState.title="Results for "+query.original+" - Rust";updateSearchHistory(buildUrl(query.original,filterCrates));showResults(execQuery(query,searchWords,filterCrates,window.currentCrate),params.go_to_first,filterCrates)}function buildItemSearchTypeAll(types,lowercasePaths){return types.map(type=>buildItemSearchType(type,lowercasePaths))}function buildItemSearchType(type,lowercasePaths){const PATH_INDEX_DATA=0;const GENERICS_DATA=1;let pathIndex,generics;if(typeof type==="number"){pathIndex=type;generics=[]}else{pathIndex=type[PATH_INDEX_DATA];generics=buildItemSearchTypeAll(type[GENERICS_DATA],lowercasePaths)}if(pathIndex<0){return{id:pathIndex,ty:TY_GENERIC,path:null,generics,}}if(pathIndex===0){return{id:null,ty:null,path:null,generics,}}const item=lowercasePaths[pathIndex-1];return{id:buildTypeMapIndex(item.name),ty:item.ty,path:item.path,generics,}}function buildFunctionSearchType(functionSearchType,lowercasePaths){const INPUTS_DATA=0;const OUTPUT_DATA=1;if(functionSearchType===0){return null}let inputs,output;if(typeof functionSearchType[INPUTS_DATA]==="number"){inputs=[buildItemSearchType(functionSearchType[INPUTS_DATA],lowercasePaths)]}else{inputs=buildItemSearchTypeAll(functionSearchType[INPUTS_DATA],lowercasePaths)}if(functionSearchType.length>1){if(typeof functionSearchType[OUTPUT_DATA]==="number"){output=[buildItemSearchType(functionSearchType[OUTPUT_DATA],lowercasePaths)]}else{output=buildItemSearchTypeAll(functionSearchType[OUTPUT_DATA],lowercasePaths)}}else{output=[]}const where_clause=[];const l=functionSearchType.length;for(let i=2;i2){path=itemPaths.has(elem[2])?itemPaths.get(elem[2]):lastPath;lastPath=path}lowercasePaths.push({ty:ty,name:name.toLowerCase(),path:path});paths[i]={ty:ty,name:name,path:path}}lastPath="";len=itemTypes.length;for(let i=0;i0?paths[itemParentIdxs[i]-1]:undefined,type:buildFunctionSearchType(itemFunctionSearchTypes[i],lowercasePaths),id:id,normalizedName:word.indexOf("_")===-1?word:word.replace(/_/g,""),deprecated:deprecatedItems.has(i),};id+=1;searchIndex.push(row);lastPath=row.path;crateSize+=1}if(aliases){const currentCrateAliases=new Map();ALIASES.set(crate,currentCrateAliases);for(const alias_name in aliases){if(!hasOwnPropertyRustdoc(aliases,alias_name)){continue}let currentNameAliases;if(currentCrateAliases.has(alias_name)){currentNameAliases=currentCrateAliases.get(alias_name)}else{currentNameAliases=[];currentCrateAliases.set(alias_name,currentNameAliases)}for(const local_alias of aliases[alias_name]){currentNameAliases.push(local_alias+currentIndex)}}}currentIndex+=crateSize}return searchWords}function onSearchSubmit(e){e.preventDefault();searchState.clearInputTimeout();search()}function putBackSearch(){const search_input=searchState.input;if(!searchState.input){return}if(search_input.value!==""&&!searchState.isDisplayed()){searchState.showResults();if(browserSupportsHistoryApi()){history.replaceState(null,"",buildUrl(search_input.value,getFilterCrates()))}document.title=searchState.title}}function registerSearchEvents(){const params=searchState.getQueryStringParams();if(searchState.input.value===""){searchState.input.value=params.search||""}const searchAfter500ms=()=>{searchState.clearInputTimeout();if(searchState.input.value.length===0){searchState.hideResults()}else{searchState.timeout=setTimeout(search,500)}};searchState.input.onkeyup=searchAfter500ms;searchState.input.oninput=searchAfter500ms;document.getElementsByClassName("search-form")[0].onsubmit=onSearchSubmit;searchState.input.onchange=e=>{if(e.target!==document.activeElement){return}searchState.clearInputTimeout();setTimeout(search,0)};searchState.input.onpaste=searchState.input.onchange;searchState.outputElement().addEventListener("keydown",e=>{if(e.altKey||e.ctrlKey||e.shiftKey||e.metaKey){return}if(e.which===38){const previous=document.activeElement.previousElementSibling;if(previous){previous.focus()}else{searchState.focus()}e.preventDefault()}else if(e.which===40){const next=document.activeElement.nextElementSibling;if(next){next.focus()}const rect=document.activeElement.getBoundingClientRect();if(window.innerHeight-rect.bottom{if(e.which===40){focusSearchResult();e.preventDefault()}});searchState.input.addEventListener("focus",()=>{putBackSearch()});searchState.input.addEventListener("blur",()=>{searchState.input.placeholder=searchState.input.origPlaceholder});if(browserSupportsHistoryApi()){const previousTitle=document.title;window.addEventListener("popstate",e=>{const params=searchState.getQueryStringParams();document.title=previousTitle;currentResults=null;if(params.search&¶ms.search.length>0){searchState.input.value=params.search;search(e)}else{searchState.input.value="";searchState.hideResults()}})}window.onpageshow=()=>{const qSearch=searchState.getQueryStringParams().search;if(searchState.input.value===""&&qSearch){searchState.input.value=qSearch}search()}}function updateCrate(ev){if(ev.target.value==="all crates"){const query=searchState.input.value.trim();updateSearchHistory(buildUrl(query,null))}currentResults=null;search(undefined,true)}const searchWords=buildIndex(rawSearchIndex);if(typeof window!=="undefined"){registerSearchEvents();if(window.searchState.getQueryStringParams().search){search()}}if(typeof exports!=="undefined"){exports.initSearch=initSearch;exports.execQuery=execQuery;exports.parseQuery=parseQuery}return searchWords}if(typeof window!=="undefined"){window.initSearch=initSearch;if(window.searchIndex!==undefined){initSearch(window.searchIndex)}}else{initSearch({})}})() \ No newline at end of file diff --git a/docs/api-rust/static.files/settings-74424d7eec62a23e.js b/docs/api-rust/static.files/settings-74424d7eec62a23e.js new file mode 100644 index 000000000..3014f75c5 --- /dev/null +++ b/docs/api-rust/static.files/settings-74424d7eec62a23e.js @@ -0,0 +1,17 @@ +"use strict";(function(){const isSettingsPage=window.location.pathname.endsWith("/settings.html");function changeSetting(settingName,value){if(settingName==="theme"){const useSystem=value==="system preference"?"true":"false";updateLocalStorage("use-system-theme",useSystem)}updateLocalStorage(settingName,value);switch(settingName){case"theme":case"preferred-dark-theme":case"preferred-light-theme":updateTheme();updateLightAndDark();break;case"line-numbers":if(value===true){window.rustdoc_add_line_numbers_to_examples()}else{window.rustdoc_remove_line_numbers_from_examples()}break}}function showLightAndDark(){removeClass(document.getElementById("preferred-light-theme"),"hidden");removeClass(document.getElementById("preferred-dark-theme"),"hidden")}function hideLightAndDark(){addClass(document.getElementById("preferred-light-theme"),"hidden");addClass(document.getElementById("preferred-dark-theme"),"hidden")}function updateLightAndDark(){const useSystem=getSettingValue("use-system-theme");if(useSystem==="true"||(useSystem===null&&getSettingValue("theme")===null)){showLightAndDark()}else{hideLightAndDark()}}function setEvents(settingsElement){updateLightAndDark();onEachLazy(settingsElement.querySelectorAll("input[type=\"checkbox\"]"),toggle=>{const settingId=toggle.id;const settingValue=getSettingValue(settingId);if(settingValue!==null){toggle.checked=settingValue==="true"}toggle.onchange=()=>{changeSetting(toggle.id,toggle.checked)}});onEachLazy(settingsElement.querySelectorAll("input[type=\"radio\"]"),elem=>{const settingId=elem.name;let settingValue=getSettingValue(settingId);if(settingId==="theme"){const useSystem=getSettingValue("use-system-theme");if(useSystem==="true"||settingValue===null){settingValue=useSystem==="false"?"light":"system preference"}}if(settingValue!==null&&settingValue!=="null"){elem.checked=settingValue===elem.value}elem.addEventListener("change",ev=>{changeSetting(ev.target.name,ev.target.value)})})}function buildSettingsPageSections(settings){let output="";for(const setting of settings){const js_data_name=setting["js_name"];const setting_name=setting["name"];if(setting["options"]!==undefined){output+=`\ +
+
${setting_name}
+
`;onEach(setting["options"],option=>{const checked=option===setting["default"]?" checked":"";const full=`${js_data_name}-${option.replace(/ /g,"-")}`;output+=`\ + `});output+=`\ +
+
`}else{const checked=setting["default"]===true?" checked":"";output+=`\ +
\ + \ +
`}}return output}function buildSettingsPage(){const theme_names=getVar("themes").split(",").filter(t=>t);theme_names.push("light","dark","ayu");const settings=[{"name":"Theme","js_name":"theme","default":"system preference","options":theme_names.concat("system preference"),},{"name":"Preferred light theme","js_name":"preferred-light-theme","default":"light","options":theme_names,},{"name":"Preferred dark theme","js_name":"preferred-dark-theme","default":"dark","options":theme_names,},{"name":"Auto-hide item contents for large items","js_name":"auto-hide-large-items","default":true,},{"name":"Auto-hide item methods' documentation","js_name":"auto-hide-method-docs","default":false,},{"name":"Auto-hide trait implementation documentation","js_name":"auto-hide-trait-implementations","default":false,},{"name":"Directly go to item in search if there is only one result","js_name":"go-to-only-result","default":false,},{"name":"Show line numbers on code examples","js_name":"line-numbers","default":false,},{"name":"Disable keyboard shortcuts","js_name":"disable-shortcuts","default":false,},];const elementKind=isSettingsPage?"section":"div";const innerHTML=`
${buildSettingsPageSections(settings)}
`;const el=document.createElement(elementKind);el.id="settings";if(!isSettingsPage){el.className="popover"}el.innerHTML=innerHTML;if(isSettingsPage){document.getElementById(MAIN_ID).appendChild(el)}else{el.setAttribute("tabindex","-1");getSettingsButton().appendChild(el)}return el}const settingsMenu=buildSettingsPage();function displaySettings(){settingsMenu.style.display=""}function settingsBlurHandler(event){blurHandler(event,getSettingsButton(),window.hidePopoverMenus)}if(isSettingsPage){getSettingsButton().onclick=event=>{event.preventDefault()}}else{const settingsButton=getSettingsButton();const settingsMenu=document.getElementById("settings");settingsButton.onclick=event=>{if(elemIsInParent(event.target,settingsMenu)){return}event.preventDefault();const shouldDisplaySettings=settingsMenu.style.display==="none";window.hideAllModals();if(shouldDisplaySettings){displaySettings()}};settingsButton.onblur=settingsBlurHandler;settingsButton.querySelector("a").onblur=settingsBlurHandler;onEachLazy(settingsMenu.querySelectorAll("input"),el=>{el.onblur=settingsBlurHandler});settingsMenu.onblur=settingsBlurHandler}setTimeout(()=>{setEvents(settingsMenu);if(!isSettingsPage){displaySettings()}removeClass(getSettingsButton(),"rotate")},0)})() \ No newline at end of file diff --git a/docs/api-rust/static.files/src-script-3280b574d94e47b4.js b/docs/api-rust/static.files/src-script-3280b574d94e47b4.js new file mode 100644 index 000000000..9ea88921e --- /dev/null +++ b/docs/api-rust/static.files/src-script-3280b574d94e47b4.js @@ -0,0 +1 @@ +"use strict";(function(){const rootPath=getVar("root-path");const NAME_OFFSET=0;const DIRS_OFFSET=1;const FILES_OFFSET=2;const RUSTDOC_MOBILE_BREAKPOINT=700;function closeSidebarIfMobile(){if(window.innerWidth"){addClass(document.documentElement,"src-sidebar-expanded");child.innerText="<";updateLocalStorage("source-sidebar-show","true")}else{removeClass(document.documentElement,"src-sidebar-expanded");child.innerText=">";updateLocalStorage("source-sidebar-show","false")}}function createSidebarToggle(){const sidebarToggle=document.createElement("div");sidebarToggle.id="src-sidebar-toggle";const inner=document.createElement("button");if(getCurrentValue("source-sidebar-show")==="true"){inner.innerText="<"}else{inner.innerText=">"}inner.onclick=toggleSidebar;sidebarToggle.appendChild(inner);return sidebarToggle}function createSrcSidebar(){const container=document.querySelector("nav.sidebar");const sidebarToggle=createSidebarToggle();container.insertBefore(sidebarToggle,container.firstChild);const sidebar=document.createElement("div");sidebar.id="src-sidebar";let hasFoundFile=false;const title=document.createElement("div");title.className="title";title.innerText="Files";sidebar.appendChild(title);Object.keys(srcIndex).forEach(key=>{srcIndex[key][NAME_OFFSET]=key;hasFoundFile=createDirEntry(srcIndex[key],sidebar,"",hasFoundFile)});container.appendChild(sidebar);const selected_elem=sidebar.getElementsByClassName("selected")[0];if(typeof selected_elem!=="undefined"){selected_elem.focus()}}const lineNumbersRegex=/^#?(\d+)(?:-(\d+))?$/;function highlightSrcLines(match){if(typeof match==="undefined"){match=window.location.hash.match(lineNumbersRegex)}if(!match){return}let from=parseInt(match[1],10);let to=from;if(typeof match[2]!=="undefined"){to=parseInt(match[2],10)}if(to{onEachLazy(e.getElementsByTagName("a"),i_e=>{removeClass(i_e,"line-highlighted")})});for(let i=from;i<=to;++i){elem=document.getElementById(i);if(!elem){break}addClass(elem,"line-highlighted")}}const handleSrcHighlight=(function(){let prev_line_id=0;const set_fragment=name=>{const x=window.scrollX,y=window.scrollY;if(browserSupportsHistoryApi()){history.replaceState(null,null,"#"+name);highlightSrcLines()}else{location.replace("#"+name)}window.scrollTo(x,y)};return ev=>{let cur_line_id=parseInt(ev.target.id,10);if(isNaN(cur_line_id)||ev.ctrlKey||ev.altKey||ev.metaKey){return}ev.preventDefault();if(ev.shiftKey&&prev_line_id){if(prev_line_id>cur_line_id){const tmp=prev_line_id;prev_line_id=cur_line_id;cur_line_id=tmp}set_fragment(prev_line_id+"-"+cur_line_id)}else{prev_line_id=cur_line_id;set_fragment(cur_line_id)}}}());window.addEventListener("hashchange",()=>{const match=window.location.hash.match(lineNumbersRegex);if(match){return highlightSrcLines(match)}});onEachLazy(document.getElementsByClassName("src-line-numbers"),el=>{el.addEventListener("click",handleSrcHighlight)});highlightSrcLines();window.createSrcSidebar=createSrcSidebar})() \ No newline at end of file diff --git a/docs/api-rust/static.files/storage-fec3eaa3851e447d.js b/docs/api-rust/static.files/storage-fec3eaa3851e447d.js new file mode 100644 index 000000000..a687118f3 --- /dev/null +++ b/docs/api-rust/static.files/storage-fec3eaa3851e447d.js @@ -0,0 +1 @@ +"use strict";const builtinThemes=["light","dark","ayu"];const darkThemes=["dark","ayu"];window.currentTheme=document.getElementById("themeStyle");const settingsDataset=(function(){const settingsElement=document.getElementById("default-settings");return settingsElement&&settingsElement.dataset?settingsElement.dataset:null})();function getSettingValue(settingName){const current=getCurrentValue(settingName);if(current===null&&settingsDataset!==null){const def=settingsDataset[settingName.replace(/-/g,"_")];if(def!==undefined){return def}}return current}const localStoredTheme=getSettingValue("theme");function hasClass(elem,className){return elem&&elem.classList&&elem.classList.contains(className)}function addClass(elem,className){if(elem&&elem.classList){elem.classList.add(className)}}function removeClass(elem,className){if(elem&&elem.classList){elem.classList.remove(className)}}function onEach(arr,func,reversed){if(arr&&arr.length>0){if(reversed){for(let i=arr.length-1;i>=0;--i){if(func(arr[i])){return true}}}else{for(const elem of arr){if(func(elem)){return true}}}}return false}function onEachLazy(lazyArray,func,reversed){return onEach(Array.prototype.slice.call(lazyArray),func,reversed)}function updateLocalStorage(name,value){try{window.localStorage.setItem("rustdoc-"+name,value)}catch(e){}}function getCurrentValue(name){try{return window.localStorage.getItem("rustdoc-"+name)}catch(e){return null}}const getVar=(function getVar(name){const el=document.querySelector("head > meta[name='rustdoc-vars']");return el?el.attributes["data-"+name].value:null});function switchTheme(newThemeName,saveTheme){if(saveTheme){updateLocalStorage("theme",newThemeName)}document.documentElement.setAttribute("data-theme",newThemeName);if(builtinThemes.indexOf(newThemeName)!==-1){if(window.currentTheme){window.currentTheme.parentNode.removeChild(window.currentTheme);window.currentTheme=null}}else{const newHref=getVar("root-path")+newThemeName+getVar("resource-suffix")+".css";if(!window.currentTheme){if(document.readyState==="loading"){document.write(``);window.currentTheme=document.getElementById("themeStyle")}else{window.currentTheme=document.createElement("link");window.currentTheme.rel="stylesheet";window.currentTheme.id="themeStyle";window.currentTheme.href=newHref;document.documentElement.appendChild(window.currentTheme)}}else if(newHref!==window.currentTheme.href){window.currentTheme.href=newHref}}}const updateTheme=(function(){const mql=window.matchMedia("(prefers-color-scheme: dark)");function updateTheme(){if(getSettingValue("use-system-theme")!=="false"){const lightTheme=getSettingValue("preferred-light-theme")||"light";const darkTheme=getSettingValue("preferred-dark-theme")||"dark";updateLocalStorage("use-system-theme","true");switchTheme(mql.matches?darkTheme:lightTheme,true)}else{switchTheme(getSettingValue("theme"),false)}}mql.addEventListener("change",updateTheme);return updateTheme})();if(getSettingValue("use-system-theme")!=="false"&&window.matchMedia){if(getSettingValue("use-system-theme")===null&&getSettingValue("preferred-dark-theme")===null&&darkThemes.indexOf(localStoredTheme)>=0){updateLocalStorage("preferred-dark-theme",localStoredTheme)}}updateTheme();if(getSettingValue("source-sidebar-show")==="true"){addClass(document.documentElement,"src-sidebar-expanded")}window.addEventListener("pageshow",ev=>{if(ev.persisted){setTimeout(updateTheme,0)}}) \ No newline at end of file diff --git a/docs/api-rust/static.files/wheel-7b819b6101059cd0.svg b/docs/api-rust/static.files/wheel-7b819b6101059cd0.svg new file mode 100644 index 000000000..83c07f63d --- /dev/null +++ b/docs/api-rust/static.files/wheel-7b819b6101059cd0.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/docs/api-wasm/.nojekyll b/docs/api-wasm/.nojekyll new file mode 100644 index 000000000..e2ac6616a --- /dev/null +++ b/docs/api-wasm/.nojekyll @@ -0,0 +1 @@ +TypeDoc added this file to prevent GitHub Pages from using Jekyll. You can turn off this behavior by setting the `githubPages` option to false. \ No newline at end of file diff --git a/docs/api-wasm/assets/highlight.css b/docs/api-wasm/assets/highlight.css new file mode 100644 index 000000000..5674cf392 --- /dev/null +++ b/docs/api-wasm/assets/highlight.css @@ -0,0 +1,22 @@ +:root { + --light-code-background: #FFFFFF; + --dark-code-background: #1E1E1E; +} + +@media (prefers-color-scheme: light) { :root { + --code-background: var(--light-code-background); +} } + +@media (prefers-color-scheme: dark) { :root { + --code-background: var(--dark-code-background); +} } + +:root[data-theme='light'] { + --code-background: var(--light-code-background); +} + +:root[data-theme='dark'] { + --code-background: var(--dark-code-background); +} + +pre, code { background: var(--code-background); } diff --git a/docs/api-wasm/assets/main.js b/docs/api-wasm/assets/main.js new file mode 100644 index 000000000..01bcad55f --- /dev/null +++ b/docs/api-wasm/assets/main.js @@ -0,0 +1,59 @@ +"use strict"; +"use strict";(()=>{var Pe=Object.create;var ne=Object.defineProperty;var Ie=Object.getOwnPropertyDescriptor;var Oe=Object.getOwnPropertyNames;var _e=Object.getPrototypeOf,Re=Object.prototype.hasOwnProperty;var Me=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var Fe=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Oe(e))!Re.call(t,i)&&i!==n&&ne(t,i,{get:()=>e[i],enumerable:!(r=Ie(e,i))||r.enumerable});return t};var De=(t,e,n)=>(n=t!=null?Pe(_e(t)):{},Fe(e||!t||!t.__esModule?ne(n,"default",{value:t,enumerable:!0}):n,t));var ae=Me((se,oe)=>{(function(){var t=function(e){var n=new t.Builder;return n.pipeline.add(t.trimmer,t.stopWordFilter,t.stemmer),n.searchPipeline.add(t.stemmer),e.call(n,n),n.build()};t.version="2.3.9";t.utils={},t.utils.warn=function(e){return function(n){e.console&&console.warn&&console.warn(n)}}(this),t.utils.asString=function(e){return e==null?"":e.toString()},t.utils.clone=function(e){if(e==null)return e;for(var n=Object.create(null),r=Object.keys(e),i=0;i0){var d=t.utils.clone(n)||{};d.position=[a,u],d.index=s.length,s.push(new t.Token(r.slice(a,o),d))}a=o+1}}return s},t.tokenizer.separator=/[\s\-]+/;t.Pipeline=function(){this._stack=[]},t.Pipeline.registeredFunctions=Object.create(null),t.Pipeline.registerFunction=function(e,n){n in this.registeredFunctions&&t.utils.warn("Overwriting existing registered function: "+n),e.label=n,t.Pipeline.registeredFunctions[e.label]=e},t.Pipeline.warnIfFunctionNotRegistered=function(e){var n=e.label&&e.label in this.registeredFunctions;n||t.utils.warn(`Function is not registered with pipeline. This may cause problems when serialising the index. +`,e)},t.Pipeline.load=function(e){var n=new t.Pipeline;return e.forEach(function(r){var i=t.Pipeline.registeredFunctions[r];if(i)n.add(i);else throw new Error("Cannot load unregistered function: "+r)}),n},t.Pipeline.prototype.add=function(){var e=Array.prototype.slice.call(arguments);e.forEach(function(n){t.Pipeline.warnIfFunctionNotRegistered(n),this._stack.push(n)},this)},t.Pipeline.prototype.after=function(e,n){t.Pipeline.warnIfFunctionNotRegistered(n);var r=this._stack.indexOf(e);if(r==-1)throw new Error("Cannot find existingFn");r=r+1,this._stack.splice(r,0,n)},t.Pipeline.prototype.before=function(e,n){t.Pipeline.warnIfFunctionNotRegistered(n);var r=this._stack.indexOf(e);if(r==-1)throw new Error("Cannot find existingFn");this._stack.splice(r,0,n)},t.Pipeline.prototype.remove=function(e){var n=this._stack.indexOf(e);n!=-1&&this._stack.splice(n,1)},t.Pipeline.prototype.run=function(e){for(var n=this._stack.length,r=0;r1&&(oe&&(r=s),o!=e);)i=r-n,s=n+Math.floor(i/2),o=this.elements[s*2];if(o==e||o>e)return s*2;if(ol?d+=2:a==l&&(n+=r[u+1]*i[d+1],u+=2,d+=2);return n},t.Vector.prototype.similarity=function(e){return this.dot(e)/this.magnitude()||0},t.Vector.prototype.toArray=function(){for(var e=new Array(this.elements.length/2),n=1,r=0;n0){var o=s.str.charAt(0),a;o in s.node.edges?a=s.node.edges[o]:(a=new t.TokenSet,s.node.edges[o]=a),s.str.length==1&&(a.final=!0),i.push({node:a,editsRemaining:s.editsRemaining,str:s.str.slice(1)})}if(s.editsRemaining!=0){if("*"in s.node.edges)var l=s.node.edges["*"];else{var l=new t.TokenSet;s.node.edges["*"]=l}if(s.str.length==0&&(l.final=!0),i.push({node:l,editsRemaining:s.editsRemaining-1,str:s.str}),s.str.length>1&&i.push({node:s.node,editsRemaining:s.editsRemaining-1,str:s.str.slice(1)}),s.str.length==1&&(s.node.final=!0),s.str.length>=1){if("*"in s.node.edges)var u=s.node.edges["*"];else{var u=new t.TokenSet;s.node.edges["*"]=u}s.str.length==1&&(u.final=!0),i.push({node:u,editsRemaining:s.editsRemaining-1,str:s.str.slice(1)})}if(s.str.length>1){var d=s.str.charAt(0),v=s.str.charAt(1),f;v in s.node.edges?f=s.node.edges[v]:(f=new t.TokenSet,s.node.edges[v]=f),s.str.length==1&&(f.final=!0),i.push({node:f,editsRemaining:s.editsRemaining-1,str:d+s.str.slice(2)})}}}return r},t.TokenSet.fromString=function(e){for(var n=new t.TokenSet,r=n,i=0,s=e.length;i=e;n--){var r=this.uncheckedNodes[n],i=r.child.toString();i in this.minimizedNodes?r.parent.edges[r.char]=this.minimizedNodes[i]:(r.child._str=i,this.minimizedNodes[i]=r.child),this.uncheckedNodes.pop()}};t.Index=function(e){this.invertedIndex=e.invertedIndex,this.fieldVectors=e.fieldVectors,this.tokenSet=e.tokenSet,this.fields=e.fields,this.pipeline=e.pipeline},t.Index.prototype.search=function(e){return this.query(function(n){var r=new t.QueryParser(e,n);r.parse()})},t.Index.prototype.query=function(e){for(var n=new t.Query(this.fields),r=Object.create(null),i=Object.create(null),s=Object.create(null),o=Object.create(null),a=Object.create(null),l=0;l1?this._b=1:this._b=e},t.Builder.prototype.k1=function(e){this._k1=e},t.Builder.prototype.add=function(e,n){var r=e[this._ref],i=Object.keys(this._fields);this._documents[r]=n||{},this.documentCount+=1;for(var s=0;s=this.length)return t.QueryLexer.EOS;var e=this.str.charAt(this.pos);return this.pos+=1,e},t.QueryLexer.prototype.width=function(){return this.pos-this.start},t.QueryLexer.prototype.ignore=function(){this.start==this.pos&&(this.pos+=1),this.start=this.pos},t.QueryLexer.prototype.backup=function(){this.pos-=1},t.QueryLexer.prototype.acceptDigitRun=function(){var e,n;do e=this.next(),n=e.charCodeAt(0);while(n>47&&n<58);e!=t.QueryLexer.EOS&&this.backup()},t.QueryLexer.prototype.more=function(){return this.pos1&&(e.backup(),e.emit(t.QueryLexer.TERM)),e.ignore(),e.more())return t.QueryLexer.lexText},t.QueryLexer.lexEditDistance=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(t.QueryLexer.EDIT_DISTANCE),t.QueryLexer.lexText},t.QueryLexer.lexBoost=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(t.QueryLexer.BOOST),t.QueryLexer.lexText},t.QueryLexer.lexEOS=function(e){e.width()>0&&e.emit(t.QueryLexer.TERM)},t.QueryLexer.termSeparator=t.tokenizer.separator,t.QueryLexer.lexText=function(e){for(;;){var n=e.next();if(n==t.QueryLexer.EOS)return t.QueryLexer.lexEOS;if(n.charCodeAt(0)==92){e.escapeCharacter();continue}if(n==":")return t.QueryLexer.lexField;if(n=="~")return e.backup(),e.width()>0&&e.emit(t.QueryLexer.TERM),t.QueryLexer.lexEditDistance;if(n=="^")return e.backup(),e.width()>0&&e.emit(t.QueryLexer.TERM),t.QueryLexer.lexBoost;if(n=="+"&&e.width()===1||n=="-"&&e.width()===1)return e.emit(t.QueryLexer.PRESENCE),t.QueryLexer.lexText;if(n.match(t.QueryLexer.termSeparator))return t.QueryLexer.lexTerm}},t.QueryParser=function(e,n){this.lexer=new t.QueryLexer(e),this.query=n,this.currentClause={},this.lexemeIdx=0},t.QueryParser.prototype.parse=function(){this.lexer.run(),this.lexemes=this.lexer.lexemes;for(var e=t.QueryParser.parseClause;e;)e=e(this);return this.query},t.QueryParser.prototype.peekLexeme=function(){return this.lexemes[this.lexemeIdx]},t.QueryParser.prototype.consumeLexeme=function(){var e=this.peekLexeme();return this.lexemeIdx+=1,e},t.QueryParser.prototype.nextClause=function(){var e=this.currentClause;this.query.clause(e),this.currentClause={}},t.QueryParser.parseClause=function(e){var n=e.peekLexeme();if(n!=null)switch(n.type){case t.QueryLexer.PRESENCE:return t.QueryParser.parsePresence;case t.QueryLexer.FIELD:return t.QueryParser.parseField;case t.QueryLexer.TERM:return t.QueryParser.parseTerm;default:var r="expected either a field or a term, found "+n.type;throw n.str.length>=1&&(r+=" with value '"+n.str+"'"),new t.QueryParseError(r,n.start,n.end)}},t.QueryParser.parsePresence=function(e){var n=e.consumeLexeme();if(n!=null){switch(n.str){case"-":e.currentClause.presence=t.Query.presence.PROHIBITED;break;case"+":e.currentClause.presence=t.Query.presence.REQUIRED;break;default:var r="unrecognised presence operator'"+n.str+"'";throw new t.QueryParseError(r,n.start,n.end)}var i=e.peekLexeme();if(i==null){var r="expecting term or field, found nothing";throw new t.QueryParseError(r,n.start,n.end)}switch(i.type){case t.QueryLexer.FIELD:return t.QueryParser.parseField;case t.QueryLexer.TERM:return t.QueryParser.parseTerm;default:var r="expecting term or field, found '"+i.type+"'";throw new t.QueryParseError(r,i.start,i.end)}}},t.QueryParser.parseField=function(e){var n=e.consumeLexeme();if(n!=null){if(e.query.allFields.indexOf(n.str)==-1){var r=e.query.allFields.map(function(o){return"'"+o+"'"}).join(", "),i="unrecognised field '"+n.str+"', possible fields: "+r;throw new t.QueryParseError(i,n.start,n.end)}e.currentClause.fields=[n.str];var s=e.peekLexeme();if(s==null){var i="expecting term, found nothing";throw new t.QueryParseError(i,n.start,n.end)}switch(s.type){case t.QueryLexer.TERM:return t.QueryParser.parseTerm;default:var i="expecting term, found '"+s.type+"'";throw new t.QueryParseError(i,s.start,s.end)}}},t.QueryParser.parseTerm=function(e){var n=e.consumeLexeme();if(n!=null){e.currentClause.term=n.str.toLowerCase(),n.str.indexOf("*")!=-1&&(e.currentClause.usePipeline=!1);var r=e.peekLexeme();if(r==null){e.nextClause();return}switch(r.type){case t.QueryLexer.TERM:return e.nextClause(),t.QueryParser.parseTerm;case t.QueryLexer.FIELD:return e.nextClause(),t.QueryParser.parseField;case t.QueryLexer.EDIT_DISTANCE:return t.QueryParser.parseEditDistance;case t.QueryLexer.BOOST:return t.QueryParser.parseBoost;case t.QueryLexer.PRESENCE:return e.nextClause(),t.QueryParser.parsePresence;default:var i="Unexpected lexeme type '"+r.type+"'";throw new t.QueryParseError(i,r.start,r.end)}}},t.QueryParser.parseEditDistance=function(e){var n=e.consumeLexeme();if(n!=null){var r=parseInt(n.str,10);if(isNaN(r)){var i="edit distance must be numeric";throw new t.QueryParseError(i,n.start,n.end)}e.currentClause.editDistance=r;var s=e.peekLexeme();if(s==null){e.nextClause();return}switch(s.type){case t.QueryLexer.TERM:return e.nextClause(),t.QueryParser.parseTerm;case t.QueryLexer.FIELD:return e.nextClause(),t.QueryParser.parseField;case t.QueryLexer.EDIT_DISTANCE:return t.QueryParser.parseEditDistance;case t.QueryLexer.BOOST:return t.QueryParser.parseBoost;case t.QueryLexer.PRESENCE:return e.nextClause(),t.QueryParser.parsePresence;default:var i="Unexpected lexeme type '"+s.type+"'";throw new t.QueryParseError(i,s.start,s.end)}}},t.QueryParser.parseBoost=function(e){var n=e.consumeLexeme();if(n!=null){var r=parseInt(n.str,10);if(isNaN(r)){var i="boost must be numeric";throw new t.QueryParseError(i,n.start,n.end)}e.currentClause.boost=r;var s=e.peekLexeme();if(s==null){e.nextClause();return}switch(s.type){case t.QueryLexer.TERM:return e.nextClause(),t.QueryParser.parseTerm;case t.QueryLexer.FIELD:return e.nextClause(),t.QueryParser.parseField;case t.QueryLexer.EDIT_DISTANCE:return t.QueryParser.parseEditDistance;case t.QueryLexer.BOOST:return t.QueryParser.parseBoost;case t.QueryLexer.PRESENCE:return e.nextClause(),t.QueryParser.parsePresence;default:var i="Unexpected lexeme type '"+s.type+"'";throw new t.QueryParseError(i,s.start,s.end)}}},function(e,n){typeof define=="function"&&define.amd?define(n):typeof se=="object"?oe.exports=n():e.lunr=n()}(this,function(){return t})})()});var re=[];function G(t,e){re.push({selector:e,constructor:t})}var U=class{constructor(){this.alwaysVisibleMember=null;this.createComponents(document.body),this.ensureActivePageVisible(),this.ensureFocusedElementVisible(),this.listenForCodeCopies(),window.addEventListener("hashchange",()=>this.ensureFocusedElementVisible())}createComponents(e){re.forEach(n=>{e.querySelectorAll(n.selector).forEach(r=>{r.dataset.hasInstance||(new n.constructor({el:r,app:this}),r.dataset.hasInstance=String(!0))})})}filterChanged(){this.ensureFocusedElementVisible()}ensureActivePageVisible(){let e=document.querySelector(".tsd-navigation .current"),n=e?.parentElement;for(;n&&!n.classList.contains(".tsd-navigation");)n instanceof HTMLDetailsElement&&(n.open=!0),n=n.parentElement;if(e){let r=e.getBoundingClientRect().top-document.documentElement.clientHeight/4;document.querySelector(".site-menu").scrollTop=r}}ensureFocusedElementVisible(){if(this.alwaysVisibleMember&&(this.alwaysVisibleMember.classList.remove("always-visible"),this.alwaysVisibleMember.firstElementChild.remove(),this.alwaysVisibleMember=null),!location.hash)return;let e=document.getElementById(location.hash.substring(1));if(!e)return;let n=e.parentElement;for(;n&&n.tagName!=="SECTION";)n=n.parentElement;if(n&&n.offsetParent==null){this.alwaysVisibleMember=n,n.classList.add("always-visible");let r=document.createElement("p");r.classList.add("warning"),r.textContent="This member is normally hidden due to your filter settings.",n.prepend(r)}}listenForCodeCopies(){document.querySelectorAll("pre > button").forEach(e=>{let n;e.addEventListener("click",()=>{e.previousElementSibling instanceof HTMLElement&&navigator.clipboard.writeText(e.previousElementSibling.innerText.trim()),e.textContent="Copied!",e.classList.add("visible"),clearTimeout(n),n=setTimeout(()=>{e.classList.remove("visible"),n=setTimeout(()=>{e.textContent="Copy"},100)},1e3)})})}};var ie=(t,e=100)=>{let n;return()=>{clearTimeout(n),n=setTimeout(()=>t(),e)}};var de=De(ae());async function le(t,e){if(!window.searchData)return;let n=await fetch(window.searchData),r=new Blob([await n.arrayBuffer()]).stream().pipeThrough(new DecompressionStream("gzip")),i=await new Response(r).json();t.data=i,t.index=de.Index.load(i.index),e.classList.remove("loading"),e.classList.add("ready")}function he(){let t=document.getElementById("tsd-search");if(!t)return;let e={base:t.dataset.base+"/"},n=document.getElementById("tsd-search-script");t.classList.add("loading"),n&&(n.addEventListener("error",()=>{t.classList.remove("loading"),t.classList.add("failure")}),n.addEventListener("load",()=>{le(e,t)}),le(e,t));let r=document.querySelector("#tsd-search input"),i=document.querySelector("#tsd-search .results");if(!r||!i)throw new Error("The input field or the result list wrapper was not found");let s=!1;i.addEventListener("mousedown",()=>s=!0),i.addEventListener("mouseup",()=>{s=!1,t.classList.remove("has-focus")}),r.addEventListener("focus",()=>t.classList.add("has-focus")),r.addEventListener("blur",()=>{s||(s=!1,t.classList.remove("has-focus"))}),Ae(t,i,r,e)}function Ae(t,e,n,r){n.addEventListener("input",ie(()=>{Ne(t,e,n,r)},200));let i=!1;n.addEventListener("keydown",s=>{i=!0,s.key=="Enter"?Ve(e,n):s.key=="Escape"?n.blur():s.key=="ArrowUp"?ue(e,-1):s.key==="ArrowDown"?ue(e,1):i=!1}),n.addEventListener("keypress",s=>{i&&s.preventDefault()}),document.body.addEventListener("keydown",s=>{s.altKey||s.ctrlKey||s.metaKey||!n.matches(":focus")&&s.key==="/"&&(n.focus(),s.preventDefault())})}function Ne(t,e,n,r){if(!r.index||!r.data)return;e.textContent="";let i=n.value.trim(),s=i?r.index.search(`*${i}*`):[];for(let o=0;oa.score-o.score);for(let o=0,a=Math.min(10,s.length);o`,d=ce(l.name,i);globalThis.DEBUG_SEARCH_WEIGHTS&&(d+=` (score: ${s[o].score.toFixed(2)})`),l.parent&&(d=` + ${ce(l.parent,i)}.${d}`);let v=document.createElement("li");v.classList.value=l.classes??"";let f=document.createElement("a");f.href=r.base+l.url,f.innerHTML=u+d,v.append(f),e.appendChild(v)}}function ue(t,e){let n=t.querySelector(".current");if(!n)n=t.querySelector(e==1?"li:first-child":"li:last-child"),n&&n.classList.add("current");else{let r=n;if(e===1)do r=r.nextElementSibling??void 0;while(r instanceof HTMLElement&&r.offsetParent==null);else do r=r.previousElementSibling??void 0;while(r instanceof HTMLElement&&r.offsetParent==null);r&&(n.classList.remove("current"),r.classList.add("current"))}}function Ve(t,e){let n=t.querySelector(".current");if(n||(n=t.querySelector("li:first-child")),n){let r=n.querySelector("a");r&&(window.location.href=r.href),e.blur()}}function ce(t,e){if(e==="")return t;let n=t.toLocaleLowerCase(),r=e.toLocaleLowerCase(),i=[],s=0,o=n.indexOf(r);for(;o!=-1;)i.push(K(t.substring(s,o)),`${K(t.substring(o,o+r.length))}`),s=o+r.length,o=n.indexOf(r,s);return i.push(K(t.substring(s))),i.join("")}var Be={"&":"&","<":"<",">":">","'":"'",'"':"""};function K(t){return t.replace(/[&<>"'"]/g,e=>Be[e])}var C=class{constructor(e){this.el=e.el,this.app=e.app}};var F="mousedown",pe="mousemove",B="mouseup",J={x:0,y:0},fe=!1,ee=!1,He=!1,D=!1,me=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);document.documentElement.classList.add(me?"is-mobile":"not-mobile");me&&"ontouchstart"in document.documentElement&&(He=!0,F="touchstart",pe="touchmove",B="touchend");document.addEventListener(F,t=>{ee=!0,D=!1;let e=F=="touchstart"?t.targetTouches[0]:t;J.y=e.pageY||0,J.x=e.pageX||0});document.addEventListener(pe,t=>{if(ee&&!D){let e=F=="touchstart"?t.targetTouches[0]:t,n=J.x-(e.pageX||0),r=J.y-(e.pageY||0);D=Math.sqrt(n*n+r*r)>10}});document.addEventListener(B,()=>{ee=!1});document.addEventListener("click",t=>{fe&&(t.preventDefault(),t.stopImmediatePropagation(),fe=!1)});var X=class extends C{constructor(n){super(n);this.className=this.el.dataset.toggle||"",this.el.addEventListener(B,r=>this.onPointerUp(r)),this.el.addEventListener("click",r=>r.preventDefault()),document.addEventListener(F,r=>this.onDocumentPointerDown(r)),document.addEventListener(B,r=>this.onDocumentPointerUp(r))}setActive(n){if(this.active==n)return;this.active=n,document.documentElement.classList.toggle("has-"+this.className,n),this.el.classList.toggle("active",n);let r=(this.active?"to-has-":"from-has-")+this.className;document.documentElement.classList.add(r),setTimeout(()=>document.documentElement.classList.remove(r),500)}onPointerUp(n){D||(this.setActive(!0),n.preventDefault())}onDocumentPointerDown(n){if(this.active){if(n.target.closest(".col-sidebar, .tsd-filter-group"))return;this.setActive(!1)}}onDocumentPointerUp(n){if(!D&&this.active&&n.target.closest(".col-sidebar")){let r=n.target.closest("a");if(r){let i=window.location.href;i.indexOf("#")!=-1&&(i=i.substring(0,i.indexOf("#"))),r.href.substring(0,i.length)==i&&setTimeout(()=>this.setActive(!1),250)}}}};var te;try{te=localStorage}catch{te={getItem(){return null},setItem(){}}}var Q=te;var ve=document.head.appendChild(document.createElement("style"));ve.dataset.for="filters";var Y=class extends C{constructor(n){super(n);this.key=`filter-${this.el.name}`,this.value=this.el.checked,this.el.addEventListener("change",()=>{this.setLocalStorage(this.el.checked)}),this.setLocalStorage(this.fromLocalStorage()),ve.innerHTML+=`html:not(.${this.key}) .tsd-is-${this.el.name} { display: none; } +`}fromLocalStorage(){let n=Q.getItem(this.key);return n?n==="true":this.el.checked}setLocalStorage(n){Q.setItem(this.key,n.toString()),this.value=n,this.handleValueChange()}handleValueChange(){this.el.checked=this.value,document.documentElement.classList.toggle(this.key,this.value),this.app.filterChanged(),document.querySelectorAll(".tsd-index-section").forEach(n=>{n.style.display="block";let r=Array.from(n.querySelectorAll(".tsd-index-link")).every(i=>i.offsetParent==null);n.style.display=r?"none":"block"})}};var Z=class extends C{constructor(n){super(n);this.summary=this.el.querySelector(".tsd-accordion-summary"),this.icon=this.summary.querySelector("svg"),this.key=`tsd-accordion-${this.summary.dataset.key??this.summary.textContent.trim().replace(/\s+/g,"-").toLowerCase()}`;let r=Q.getItem(this.key);this.el.open=r?r==="true":this.el.open,this.el.addEventListener("toggle",()=>this.update());let i=this.summary.querySelector("a");i&&i.addEventListener("click",()=>{location.assign(i.href)}),this.update()}update(){this.icon.style.transform=`rotate(${this.el.open?0:-90}deg)`,Q.setItem(this.key,this.el.open.toString())}};function ge(t){let e=Q.getItem("tsd-theme")||"os";t.value=e,ye(e),t.addEventListener("change",()=>{Q.setItem("tsd-theme",t.value),ye(t.value)})}function ye(t){document.documentElement.dataset.theme=t}var Le;function be(){let t=document.getElementById("tsd-nav-script");t&&(t.addEventListener("load",xe),xe())}async function xe(){let t=document.getElementById("tsd-nav-container");if(!t||!window.navigationData)return;let n=await(await fetch(window.navigationData)).arrayBuffer(),r=new Blob([n]).stream().pipeThrough(new DecompressionStream("gzip")),i=await new Response(r).json();Le=t.dataset.base+"/",t.innerHTML="";for(let s of i)we(s,t,[]);window.app.createComponents(t),window.app.ensureActivePageVisible()}function we(t,e,n){let r=e.appendChild(document.createElement("li"));if(t.children){let i=[...n,t.text],s=r.appendChild(document.createElement("details"));s.className=t.class?`${t.class} tsd-index-accordion`:"tsd-index-accordion",s.dataset.key=i.join("$");let o=s.appendChild(document.createElement("summary"));o.className="tsd-accordion-summary",o.innerHTML='',Ee(t,o);let a=s.appendChild(document.createElement("div"));a.className="tsd-accordion-details";let l=a.appendChild(document.createElement("ul"));l.className="tsd-nested-navigation";for(let u of t.children)we(u,l,i)}else Ee(t,r,t.class)}function Ee(t,e,n){if(t.path){let r=e.appendChild(document.createElement("a"));r.href=Le+t.path,n&&(r.className=n),location.href===r.href&&r.classList.add("current"),t.kind&&(r.innerHTML=``),r.appendChild(document.createElement("span")).textContent=t.text}else e.appendChild(document.createElement("span")).textContent=t.text}G(X,"a[data-toggle]");G(Z,".tsd-index-accordion");G(Y,".tsd-filter-item input[type=checkbox]");var Se=document.getElementById("tsd-theme");Se&&ge(Se);var je=new U;Object.defineProperty(window,"app",{value:je});he();be();})(); +/*! Bundled license information: + +lunr/lunr.js: + (** + * lunr - http://lunrjs.com - A bit like Solr, but much smaller and not as bright - 2.3.9 + * Copyright (C) 2020 Oliver Nightingale + * @license MIT + *) + (*! + * lunr.utils + * Copyright (C) 2020 Oliver Nightingale + *) + (*! + * lunr.Set + * Copyright (C) 2020 Oliver Nightingale + *) + (*! + * lunr.tokenizer + * Copyright (C) 2020 Oliver Nightingale + *) + (*! + * lunr.Pipeline + * Copyright (C) 2020 Oliver Nightingale + *) + (*! + * lunr.Vector + * Copyright (C) 2020 Oliver Nightingale + *) + (*! + * lunr.stemmer + * Copyright (C) 2020 Oliver Nightingale + * Includes code from - http://tartarus.org/~martin/PorterStemmer/js.txt + *) + (*! + * lunr.stopWordFilter + * Copyright (C) 2020 Oliver Nightingale + *) + (*! + * lunr.trimmer + * Copyright (C) 2020 Oliver Nightingale + *) + (*! + * lunr.TokenSet + * Copyright (C) 2020 Oliver Nightingale + *) + (*! + * lunr.Index + * Copyright (C) 2020 Oliver Nightingale + *) + (*! + * lunr.Builder + * Copyright (C) 2020 Oliver Nightingale + *) +*/ diff --git a/docs/api-wasm/assets/navigation.js b/docs/api-wasm/assets/navigation.js new file mode 100644 index 000000000..1bc638227 --- /dev/null +++ b/docs/api-wasm/assets/navigation.js @@ -0,0 +1 @@ +window.navigationData = "data:application/octet-stream;base64,H4sIAAAAAAAAA43YzXLTMBQF4HfJmqG0w/+ulA5kYCAkaTcMC9VRElFbMpLcqYfh3ZHTxJbkm3Oz1T33i23JltqffydePvrJ+8mttHfGKd9Onk1q4bdhSOqmcmd94fnWV2Wo3iu9mrx/++9Z33tZFNK5udpsvRvai1I4J91ZXE2N84tMMY32n4XbksiheIIxXUnt1VpJe1QaItCzG7dQVV1KAuprSPhQmuKevqe+xPaj+8kC0Gq9JCZoN4z6roz2VhRHpiaunqLMRHEvNhJjUQiZH2VdmnbMPI3znfRFDDVeWHg7E1ZUxHPNAtBShVdGC9terlbEJKf106SplxVaOMeSp+vo3ukgtjfSeYrqxlHntRXT1bhxN4z6Pkm//xrMpWtK4rfzBKc1u7ue6rVBYp5i1A+iFLqQQEwSnNZ9L5A11E+RllZot5bWcWQWZOyrrVDa1bIAbJZhxKe3EXBxgLOS1Y1MIsjY3arF6ydJ8NqiqapwARhMQoz5zazkwgvfoDnPQ4w5k3gJRXVG6n5Uzo3Z7UdAJHKMfCtKtRLe2LDwdPgmAZyOQr80d6LcXRT6aJMx5HZ3R+8phwrq/iKJzTUMop6vyvl5XRx9PGkdSbOucdTfjeKutgpPBmxOeQJqYeFdhzMJ8Rz6Euxv7kpVkM+xL+F+6+CKyALYYr6CWQBZPxppW2ZnGmdYMVrfUB3lkLz4+GXMhEHYE/5mCV9usIryBNTCLtWUwqsHef14fFMjY8g9bKr0Gx5XkXIzl+txdzfKddG/e6ig7k1/svped1sk8YBHEc4bzlXQHMUYd7+CkZlGOK87DkEtCpxi9UcrFs2TjP70MUBqkuC05DAEVSrJ6PtTEWLTCO/tD0UMmaYYNXvDEU1HOT8+1UCdCCL7T/QtP+oSIdY8/MXfzTmGieTJethlT8OHIGtHexC2x0FkT7Xy3xtfN9EGobSXdi2KIA7lFLl49TpDpjoxfFvv23eFrPvFuzfnry7iLavVxVElKXLSSq5Fst2tG717v93ZvpQKr19GzWtrqsNXixLiOmDCil+qSjovqppi4jpgtvJxacKOr/SGUqIyh9yEKX17aa1oj0JDBGAqzEI3G5RyqIH2387omZXet7Nw1eQcZRGAVcZLtzRXi9mcgqIyQGqrHsKLsjTEyXmwxilANv2DXJrsf6CDOAqNwF//Ad1OA+guFwAA" \ No newline at end of file diff --git a/docs/api-wasm/assets/search.js b/docs/api-wasm/assets/search.js new file mode 100644 index 000000000..dddc99c60 --- /dev/null +++ b/docs/api-wasm/assets/search.js @@ -0,0 +1 @@ +window.searchData = "data:application/octet-stream;base64,H4sIAAAAAAAAA8y9XZPkNnK/+12kWx25iRe++E672j27x/ZaR6NdX0w4Omq6a0a902+urpY0/sf57qeKqCaJHzOTCRRFliM2rOkCkIlMJAA+TAL/56vd068vX/3r+//z1ee7x9uv/rV033z1uHnYfvWvX/28/e2np3f73d3jp6+++ep1d3/428fXx5v93dPjy78Mfv325/3D/aHIzf3m5WV7aO2rr/6/b7gG/373uK+/2+02X7hG+xLahl+7Gj89/eHL/lBy3PSojLbxh6dD4Z+e/vjuhx+JZge/ahv858vT4w+77X7/5YeD9fZEo1BC2/Dz7u6XzX7709MPrx/u727+bUuZeFxI2/yn7f6nu4fty37z8Ew0PPxZ2+TH3dPDT7vN48vH7Y5ocviztsm7x7v9uy+PN0Rzbz+JTdVdS//Y7j48vdzteytuH18fXv6l+7vYTlF2Df37069iE1+HAoNmvvnqebPbHsbGUAuy7f/Y3t69PsjNd2WyJPzl7tPPcvunEgmtm97K393cbF9efjw0se/D9tTUvwx/FK1trlzf5N/+829/mm7q61MxWu1ILUbOj3/67nuFnFOxfDn/9eNff9J06K1cvqTvvtd0KJQ6z27XOlGDomfK0xoxKnyWJdUih2XPt2paT+eRfZyorz/caSL462HZJIm+MJ3Am8N8vt+93uyfdgqRcelzurndqnrYFsuXc/dyvdtubjcf7jXi4tJnSf11d7ff6sUOi58ld3Ob0Nm+8FkyH58elQJPJZOkwRL39Pq4/8vm5WdK4Ntv+gXuGEJ/fto9bPb77e1hDz7Z6tdEDbY7na6C9PEOUxQ9LH6WXOLpQRQclU+RnDDZxFKVc810Z+mpBrsozzRTUvZPw0ExfNBjRVJVzpD//xwedTRCT+VSJBEh+NfbQ4W7j3db1pF9ifnDEdpODsqB9ueEJqWGOkB1OihmPEqLuFq6HolBiyokhK7GDHwAj/s+HcbTEuVgQpm6kCKlRoG1+/Ty7u7hmVq8u5/EUFI7LW5O561euyQ3gSjZP5SMoYn+cP9085kMhe6XtLnm+7tP25f9RGtfRyVp1XvN0t0B0jTeoMRNO2PULcEXkxKYGAEZE7GhkMKspiM5E0soJWk0tIRFDX5PG2bXP7Njlpq834oLPdEtHn/ZHjfTesFd+VTJSUM9Z7FQd5ob9kkLhVKaFAKJiwQvMRqkEZHv5E0y+JTNf9+adtsftMoYDL0k1RAAMQrHD7siuRtaHpr8j0+P+93mht6ADX+ccZM7ala/v43UzRsAtHTFOGBka4fDWK5mVOg6TAwOqpvCGNHImX4GHAvVPwQyGlCD9YfNzefNp604Zgdlfoehi62nj+BhH84byKQuCeOZ1iR1WI+0SBndKmMIg5wwgWKsK6Tqh/xIhfSRT+szDIDvt8/3T+OREP6sH+a/3u1//mHz5eEg/rvH23fbl5c7Yp0ftPo1V4Pu0ElNQfroVS4ndFBQKUs7cIeSNGNV7hQ5PIcixBEpt83sw4atT2y/FA756d+nfdGWyZYwyghg5QxK5kr748+bu8e/Hf89JW1YMlfaiYFMyurL5Ur602Gq+PLD02F2V3VuVDxXLrnWojQRx03LkJb18WQ0LJsr8T+ebl/vt/RjB0qMy+ZKfLe92W33FHNFecOS2dL2m8fbze72NHVPyxyVz/elTuL5krTL13mL1i+b+7vbzX4bSr27+1859sjiOXJf7j7JXTsVyGl7as7Pn+/3qrl+f+Y8f6Oa42/OnN83irl9c9a8vtl9kqefU4Gstm9vv9uNd61R629FlO2PN6TCjD0bs4bmNNB6oFzu9jDtcYYUqN0mKh9epmWI20U1utbIYR6JxpImHoBIWeNhdmjlh81u88AFS/f7LG+RqDYTRkGvbPpQAKGK8TAp7WW7/377cfN6T2TmisLpinPpwq5AvBaTixIlv7gyLl43rh/5hQOdPix/luSXdk93/Znd/o26PSh/puR293Mtr2Yj8VjpLB2mdgUgXbs9mJa7v1dK3N/nyBpOVHdtBvlm9+W721tiTol+nmeaGjepm6ViTZMmKUKkPEdxsmjT/XW/fRBeVXIF9duMx+2vf+6TSP76+PEpTcjXZANTfYduybq9McF85aCFWbV7t93e/n23/Zin2aD2rFr11cjna41q2ES2funhS2mVFsg6Y02ENKWGMrh18rntqajB1GZ1Wgd+qhG2lXS5meftcdsZfs/cbkpKJHhds+U7TZbHJ/Hb6fgc7//G9efS7G2mzFaNaGAu3RSz7FifhMlVtVnvaiRrElWdRR/V9IH7upTZY3qLR/OJ9s9pqIN7fu6b+joqxqnfKpSBVEDOFE5BOfqprpejm9nkDpET2bAr4rwltc0Orr71ybEkt69w+TQuQRnD4fmn3eavt6P227/Osm71Lal8GdRJceVAgOhJseVfNvevYtNvBXRtDw38f3dL0Y/bl9f7cVhhgVnMTjaq8sBI3xRn0GJFv2jlMbFGS5yIOkFmRAI4+kELncIeaqnPd9e/bHfkWypGclTjPOkP293n++318+7pabyToMVDlXT5EC6v7fp6fBAVQgYLzRY2ZMPq0Bnpnho+tPjJENLKFcKIlqwIJUF20sCmFdAObrUWoeD1y36zT3EB1svTJB7qf9jcbx5vtvwwjwrMNcTHjWqHd6xv4tAmxE4Na5U8fkgTEqeHMyczZSgTgpXDWCX9Qyh0TW9baPlY5zwNplYJQgHtKsHKh9A5fiIgBE7/82xhA02qg2agaWrIoMjJgJmWJYQLSlMECykvKVRQqDZQpiV/OBZRyXwrmSqNGJJvGagvE2MTys06SKm2k0YrdiJn2JJKqMavUvrEQCblK0c0r0Hy0CbVSBnjSl3aIUx/WSeqEtWbRZP9W7FE1wyqZesRB2Sbq/vyvL3hYxGKzBWGVLPaCEStE4OPFD0Vd0qZfMiRUqejjZebEmikcGWMKTW4eSt2/YFM/2V9PqqXo0k8rENuAT+mh7/PNaBHbWpHc6Rs4lAeC50axxpp/CAey5sewYzElOE7FqscuxrZt/Q3QKTYrmyyRBig0RsSYaAS5WYbsFzb6oFLdSJ1ALNKTA7kBOnCgGblKwa2rEHSAGfV0A70BF1uu7Jk4pyozqjuLBpNPSzz+mifmVO0eTmM++0tzw54baBmtjbxZHF8eSKi3qjAXNPDuFHtvBDrmzghEGKnZgKVPH4KICROxz4nMyXoCcHKaFdJ3+421y+vDw9UmgEtPa6RLn00bN+FxsSRG5WZcfCO200Yv7Hi6UOYEK4YxSqp4kAm5KrGMic5cTgT4vUjWqXD9KAmdNCPa1aHeGj/7el2+26/2b8KDAvLzDW0yXa1Q3ukeOLQpoVPDW2tVH5o03Knh7YgOWVo0+KVQ1utwy+bu/vj8arXgTjtNo+fEpzAVT9br9Dcy/Bg90llojrna/B6d3+b7h+sdrYePaogv3XhgxPrna3Jof7+eBrvYbMZTH1HpbWzCnHV59HrsBn/tNu+kAhI0GdQ7Ww9Hre/7a9fnz/tNrcJfoJaZ2vx9Lq7fm6P97w+flV89/iJe+Ci9WHrn63Z85ahz7Qib8XPlrvbbo5LFJ9aQMvHaufr8fT6eHt9v338tCffBjBqxLXO1uLQnd3+6NW2X9eHZ9g9+36C1kho4WztXp+PH4zpdenKZ0mON1g/bMX3g4Of59pWYZPaHdVQ08TN1Ejk1D5KIYvfQo2kTe+eaHkpG6eRUOWeSSGZncJGMidnL0ZaPCSPA3f74yHAjp9V80OTKDbXEOWa1g5VqgeJQ5ZVYWroJsjmhzArfXooy/JThjSrhHJoJ2iiWBZYbRIWhHyNrjcvh5WHTMBP0C1qJVfLOFj/EY6Ledr98efjY5CwlNAl5wpZoXVt1DJdSQxcSZGp2E3TgA9fSYfpCJ7UIiWIJVWUcZymz00olDxGumpn6DEMjfunD5v7NpSED8LJUmlfYvEnr/ONf40VmT6TfZjUhT7aWqWNfMp1sj7RTJaqEVbO00k9hfHKqKavNNNQU5dkDWnaSpHMTVm87KnpakL6MCSPfiTPtnj7YZa1KGpM5btOrxR3xWJEDxHtD81CfTY8dWPm+LDfH4mPfd9a+XpQglbxqIP0FWib6kEeKBHJiMplSeKOw4zETJ2FOSGDnIwiAeKMM9E6ez5tJGHycNoJKac3k7KQvlCWjFP2vSyjL5Qn4278xWncflsgq+3/utv/fLvb/CoLGJTKiw353J44PrBslsR3X1722+6Qlh+3n+4OUxw/h3wt1skdfe+YV5M4AN9NvI2ckPT3xw9PjxNDpCuTJWGQaqkxJFU8U+725vPL64NW7Kh0ltSpM8kjodpTyNURIi11X1NFNfK0G4NOkGZPIHaJ2A4MeiHsBIRWmZ1Z1+7EPkxoefOinaKIkhn9UA8x/TH3gry7F+XwGhdMl/W4f5rcoMSFsmTIG5RBiYyxMLmoD4tkaS9vRQclklt/3W0//jRhnahMsoRfT5uBn56mFh6ipEbacOP/74eZ/MfnGw7ZxT/P8mxENKmaDUHTlImREinOkTpZzHRJSZuYOVl5aspGCdWgNZ1kMgGDEilmXOhkvdz8vH3YqKR1RVPlDQLghw3xTvr4x7RnX/qOm66dr4dlaG1bRdLDqRehCSIQMh06wx4IASO1y4RJ3/JEcMhtMwv8sPWJhV1q/+7levvwvJc8Oyiiaj8efO31AfwRflhglhmYbFQ5fEDftKFEiZ0YVqy8+O10KHe9eSD3RbTkUaWZdNh9erm+eTrek/pbqiZx1Rn1+ScdgZPK/FMOzAxNXug7dBW6dDXn0WZ7vFvm+vl4uUyiNnHNebQh3zjLaogvmlPlkyu8LF9c61PlP4cLcXLsAFXn1SfDLlB1Ln3IbYqsh5A3lyqf23fKKkztPiUthsvkdrtrr4Iai3/7ZZ6FMWpNtyJ2qiUthbEgeQ0kJMSPBbe3ZP4vCOmLZcp5fLrdXhOoHOT0xRLkDJ3dpuBSGKX7JfG1FH8HZdyi9ubJXsOMIRZLVA0xQpxiiGHXpCE2JaGjSST3AFFYOFvmD6+7ly15gvBI4rBotjz6MQVFyc8qhJR4cB/0FHJB4PfEZ1DRR+OGvx5X4noVa536DpgVLkI4Xqo+2Ai5upBTdpgMPLKzYvhx0uKhIx+0Ab/PsyASbSoNmH/QBil0woDnHLRBypuM87MP2iDFapCdUnY4PIPZUFOy4wrJsgdD9f993e6+yGdJjovMMmCZZlVjltA6ZdhyosWRq5fJDF5O6sT4FeWqhzAnXDOK9Rp8YN4WcdI/TLw6kiXjMB4kl0lDeVRsvuFMN60f0uMeJA9rRoXpoa2WLQ1vRrpmiEvy04Y5o4R6qKs1OR2At93cEvtDSRWoOIcu4kkxki6qg2LSdBHPiZF0UR0TM63LYGJ49/2/jTQ4/G2WkH9rRxXfR0VSgrlrXIxcodVP2/31aZ/w9HxMZBhjh04GWfYMiRpJORKOX2Nfa8SMC2b15ng+RtuUyoJE6bOk6qTlSsFvjVRd5CvNoUOS7ByZ4X7NJMlSlWT5x0TA1/vN/u6X7fX2t+3NtNGFGmdL10vN9O/xs+bvGOQ5dG1cLr1fSkmjcjl9+sd29+Hp5Y54zzzs0bBUTn8UUl7OlPL8Oj2NRmWSJZxuNbnWSCLLJkt82HzeToqKC50VRXsueZ+MpP1UEr8k9e7T42TP4kJZM3LYmXYHKutWBb7SHDokyc6R+T/HDeX12y0Hkz3mip8nVykvR87UsMkfMdPj/5wxf3Tv27ygGofjwufIVMnKiuV2IzFUWN7tseWzd5enM9/029pxhXNlq2Xmympfbr60h6rIsuKCWbJ+efvU+Jr7nDmSSBVPlnt/97K/3j3fCLKGRTJnp0/tc/Zp76ucGpk6M2iQIjk7+k+XNemf+5gaZ0vXSz1vpU1Y4+dY2RVyznu2m5AyLpjVF/qYnagv8vk6U/vY6cUVi521l53cXFJl80aBdqdFFz5HpkrWeWv6pCSqaFafutMT5V4Ni+Uxvf5o87v99kGJE9lKc+iQJPs8f6olS1Uy176b0we4bYva5ZerNIcOSbJnkPl5q9ikinVm0CBFco7EQ3TuN/f3vJi+QPqqeKgXsqDp9Ol+VRwV1MiKXrVsX47v1vgvJLDAPC9hqEZ1b2RQ36TXM6RY+V0NLy96e3b3cv0SigpbAFI8XfM8bd4aFL+VoNVhqs6oD/mthEIZ8VuJLE2YbyUUukx8K5GqDX3HlKyHfL9UqgZb4WsNWY+t4muNVG3otzuiGvLbnUT55FcJsnzxa4RU+eLXGrIeqq81cvXJsIvqa410fYivNab0EL7WSJXPZbLIKkzlsUhaDJfs/pnuT7+xdx2SpeZZvNmWdSs4qX7SMs4rIK/lKZKZhClB9kS+1JR0dbqUoIImWypJD+GWUUENxR2jSVoc32a/ttxslzrYvybqZmo0CMG3k73Io1aGP84ScKMGVXEW6ZgSXmNxYlQxcobmIj9aOP5xtg+Nusa03xi1KqW7opejcQEImTb9sBuCyaV2p8/m6YXoD+eRJZIz5VCMODFC2zhwyBh7+2GW+IoaUzs2Oa5iMZMOFuLp03Z/+qzoPxnMMioxi6HoVlUWG6ucYjpGsGhDSWK81r69n+U/G2PkkzVn10Y4llytl+JQcrWGD5svH96uZbq7TddOqD+rZqneZGufqVX7qpr7iJjRBeqcqcEvbGIaI/6XyRw1UTZMVeGd5/GUUmm6GpWabcqiW1ZPW2P1U6cuRoHJ6UuSnB+SjDZZYZmpoRiaKv1U4anWbjJEGZ3UYarWRA5VRg1duIo6xCF7+npLCNe4xFyhSrSqDVNQOTFEKcFT4clKTBpalGTtsNJp8Hz8/Pn6lfrOn5Ef1ZhNujwtyXropiOdRlNfETDKaL8kyNUj3TzpF8+odROnIUoX1RTEy4bp5zjJS5PP4PfZph5sUz3xDJVNnXZGQicnHVpa9m5grEHOPiBdK2kHMKWTZu3XaDQ5NY/0UE/MCulyiI1E6wKMkUuE1xu2e5mKMyw4a8CRjSdF3qgfOSFIq6GKRUH+eUFJ65QdnXl6ToapRkt1vGp1VAUurVlSBGv1mQ5lWhl9TEuaxMEdjg8RgjoqMFcwjxvVBnGsb2LwEmKngpaTpz7bhRarOdwlQ7o8T8h66CYHlUYf7x4393f/uz1MOM/Pu6dfNvfKofU1XfM8babCn1BDG/Yq+WK4E8JVYc5KhvDuslT/ut8+SGFOFZwt3NnG1WFP9iM1/Hk1JqeBCflxQEJatLwuClqJDf0+uj7TaZ1penaNzKPjZADzmqkDOUUfBREQVEoAA+doNbEUqPVTLgspmsoTIq+ZbmKc0iSeIE/3oQkzY1xirimRaFU7F4LKiZMgJXhq9mMlZj+yUFrkPKvkaCZNxtN6aWZgnVZT0xqli3Y+02kgBiIlXhWBvOxR6J1ugpOjLy40YwASDSfEIOieHoaUeEUksnLPCUZKl8x4zNFvIiSntVNGpU43RWBSGiXEpk6PqfCklNBGKK9BHKSQ5ihEKl1yrnAVWtfGLNOVxMCVFJmK3kkNiOf6VB0mPtvN1EKeQKb10c0eaZqlTHGShjnz3DmaSpOdXk/NjJem5dS0J+mmnfvSNBInQEkd1Sw4rQtMhcPL56WJkCg32zTIta2eBKlOpE6BrBKTE6AsPT+8WY2ygjtbSzG0lTqqAjtBw8mwZvVSB3WCNnJIs6roAnpCj0E4/8/g0GkulIkys4Qx164qhCnFU8KXFS6Griw1cnB0MJAQEawifANn66aeUljlkqeTBO3EQGU1UgVpghYhiSrHcUTN2bXJ8ZnYxtkaTsFgVi0tB87XJcdY6fQ3QT9+8mf1mZ74J+TjpP/H00EeR04szvxEwfmmf65x/RpA9SN5IWDVmF4NZPm578NkrTLeh52rK/M+LE3PifdhqTpOLxSsZvrVIkEf1RTIqpQ0D+ZrNTUZavXTzogJmk5Mi6xmyrlxQhNugvy3LcvlmXLzT4/QdvrsOOhE9uSISujnRlJ65HrxCKopU0wfSHWGNtp4kfRKjZVpDZOeLjgVs54w9DqmPWVwSuY9aei11C8iqFn6GjKtDXlCi6iFeEBLhvRcP43qzqJR0pKKKmWtqMk65RrszPV0Wk/lcop6Ja6mtB64mA6uMBIX03G5+RZTpm39Ykp0Inkx5ZSYXkxF6fmLA6dQ1uKg15Fd5zl9Jpf3JNlTQStooQ1UvT5pCyWnWt5CqddyeqHkNNMvlHpt+IWS02J6oUyTnuunlIVSr5FqoeRUSloos3XKNVjmQqnXc2Kh5PRSLpQTq0ZTFb5fxP76eLf/6+Pza39W1/7L80GR7u/icmh8GbX0n6/7YVN3j/vt7uPm5tRe+FVsEG5dfHga3GXBt/Z1V5I2y0A1RtT19a8fPh1vADnMGLu7Tz/vX66jJVWQzVdNUKb03pYDbY5OOEP4t10LUzp8y6nPGCoq+Lf//NufNFpSlRYwzkjsySz/l2uMxjRjtTVG+fFP332frN2p0tJGOYrtjeKSjdKqrTHKf/3415/Sh8pbraXN0sp9s4u/Sh8sQXGNYb77Pn2whDpLG+UgtRsqdZ1skqPS2vDJssqg4hphFNmnKbNCKc1IeTEVVV3FUBBdV3mmSgqxTFsNa64QbrGlXJNuqb4DKaF3zsha02SxAr3d0icr6IrGeI/bX5MVDnWWNtNBahd9Rfqaf1RaY5DjAa/XH+72L8kKDmsubZxOdj9BpZuo74DGUHcv17vt5nbz4T5d3bju0sYaSO9HVPosNeyE0mC/7u7221yLDSuvYLJOfG+z9B1m1A2l0Ta32YOsr7qCwU7C+4hM310NuqA01uPTY5ayp3ormOkoubdR+qL3pryISE5flaTBkbjSYlhkIPbNLoXKLGOt5W90lGt/VHoBK/TyumFRqxazgaJyx+FI8WldJo4Y/z26H0R2FtDtomN1ZSP8erf/+YfNl4dDI9893p4uB0lQkKu/nIlIDd4sVuqmErEz0wb8CS/j0mn909RNXL+Xud4Ed1YyKeMqUl1hnJ/+PVW9tsbCJvnp3ztrFKolGhRWGOLuYfuy3zw8p6o2qLewUd4k96ZJDade+WkD/fF4Henfjn9OU3NYb1kDdZL7GTp17PTKTxvoO7h+XqfkdxP30f9exjnJ7U2TsnwPFZ82zJ+O18P9cLwdLmP4jCova6ZYfG+t1EiDbkwb7S/DN986Xf8ive/+vQx0FNqv56krVauyZg/U3iCXYZO45tL7nk52b6HUMBt2YNpQ//F0+3q//UN0l6RO2bjmsoYayO4NpQIXTAemDfVue7PbHhP+ElUd1lvWSJ3kfrlPjbZeeYWB9pvH283u9rTjTlV2VHthY8Xye5Olhh92RP28lveMtNazWR92qTskvWHyHl/XemjFR1UdSCUUlw3zy+b+7naz34azP9/d/W+KnmTl5cw0Ft/vj1KsRXRDNtrL3aeUYXQqvpxhjgJ7LpYSUa2qcufTntiXflofPKn7KmWynX5K32c8oe9XeTrf45O512W1jJSWDXKT8UR+s8rT+M3oSbxOmSBulE/hm+Qn8M0KT98bePKuUiaIjeqp+3hBfYpGofiCJjgI7IdCyja2VXWi87e33+0+pWjzVmFBA7Qi+yGQMj2c1FW8S3vZ78Jn6lkv1Ua1F367Fst/s5VRTRxCP8TB05dNevGG1RYbSJHgbq9qEybXWHWlcV7aB8noA+cEVaPaK5iql99bLGGrQnZEbbj92cbbX4AB95QRXaYR9xmGzNgM0pVXMN9oe1j6rIBV7hNjU59lOGxgpbE3NqBLWEC57uiN+P324+b1fp/xynCqmXUMior0Zk3Ymsld04b1/j4rovb3K4Xy/r4P4qzp76h6SvjmGaivulbIDg2VO6oSjfU2CFOACd/AuqE5SICwuXPdoDtKI7YP3tePSYiBqb2C+Xr5ve2yht6gIwmhep7xRi2sFLiEEV3WbgU6pDZkS9HT0Y7UxCqmjJToB2QC/OG7lPT0MYNBqWZWew6hDesyDTvumgha2oNIB+eQpoEWpvZioIWS34EWHb4XOsIdODEq+/Tww+uH+7sb5ev4qQYWMJ+owpsFGx3ZlbuTYMRTRpY2S2a6iZUMOVCiN6VqME51KcGYf/9x+zG3A6e6K5nvKL23m2qzyHZCnPs+bfdh/txtXw77ysS5j6m92NxHye/mPh1BFTrCGA7Lbp7vrn/Z7rR5EXL1BUwnKPBmu0oHDaSuKI0X/pGjdldzBZOFf/TWUo00pgNKQ+m/pWFrrmCo+OuaSkeXmQ7o5rGncKZR7kQG1ZefyYYK9FOZKhylrkwZb1zt9KaSOSlL0yF9m0uaWanVm+11n8Ql91n0x8vv4I+kNhfzh16rN39Y3RyS3OmzAmS+AXhJwdCFQNpGSu7fWQN/voF1SYO8H9oJhp7sYPqA/nj3uLm/+9/t7WEj97x7+mVzr0pASm5x3QFO6NQNdNWzfmJ/0wf8WX5IaHHdABD8YHXgL7HD6QFBHjGbN+pUZ84uFQJDZbqxn3D0wXQP0wd9nq01Ta07zClbW12qg7aL6QN7fMJs3kCaPnJ2qSHdadJRs7RHJqlv6YM5w76T7aw7jEf2tboMAFXnGAO/3H5uXXPa1TzBQf1CR9iaCxiRlt2dMHOlQ2tMD1SWStdyDcv0FtElQ4DGgiXuHj8+ZZhjXG0hm4Dg3jCl6lGX0n1qSdjuNscqudCfrL7kAjBWoGNluviSusIT2bhwOviX6i9DZ1kNOkbrVXtvsTNaAx7+df3y+vCw0R3jPlF/DQMONOgNqJrOxM5oDZj0UoCpuobZ4LVAqX3bRHZBOddlvxig668w29GvBtKe26jOaJ4foN7kFTHaXby+3aWfL5SaDTZ2yQ8c2s5rHkBmd1Byu0s/oCQ6yOp2U1mdPzuCtngn1iyjdDt1SdZK0fOm12CnO2/sdB0/O3LSHZPY6kVFDTrGlukgdgbH0C4+i8bKba0cHRQjLHTnaqo7mREJZyHZCzH4tDb9WE+HstkGpx2Wj2WFhlYe2yNwWOiOvNJ1L2NU57PZSzDyhCrdYK7S6Wyqkd+A3PHBteVPGYCWqLsgiETpg718EpIc9UJpsRxd17HQwDKqHcFI66nZsL1U8Xin4jF3IRdLCo0sOQtyanTP7LqvTKe7xWMiqko6rpxuZRl4NKFH9wpb9wiu6FiaYbm7TtM7pb34dAkDgy69kbV8WNPBswydRjUy2rwY4xNpqbrHg+ROpzkkiT+LDaxn6phF17rdqdydieUfrZ+xb+KbWHBzwCgxoDpJr7q5PqVZ84wOrGq93mq690dcHwRrhS+3z7CZ1MBClmNV6O2nmxnl/sjPlc/bm9f7zf7ul+32t+OpRxm7VbGN5Z4mWS266xGTqAjfKW5YkjUSd6qaRpYYnlNq9AREh1Wn+5Vk1cBg1fE+3cZqNu21GJhUF/VTvUqy6PE/X4+L1HX4Q36PiJZWsy7q0ttYB5WUPUyytH6jOVF/NavG28yDLVXfeoi9mWQqceXsBAi5nUXJCq9JD1fS8LLUOQ3CZ+qf8jbzEyP07S4N+JWadUM95bTXxM5r8P/sDkpud+mXA4kOsinf9yV2/uwImnd0Xlq09DGS/k5M7ujZkTHvqLu0KOjHfvp7sjMML7tutqS69PYvJComk+xMepJdqjHOiJzZku4u2IF5Gvbxlp6EN6sDUwZFdlJeausXGX2jJD2TnqSXZojZIi87ae9iHZejXx9z6Ul8MzpOHgpnJfXp2ryQ6CKT/Ex6kp+m02dE0llJfxfmEL1WfaykJwGe7RDZsflJgYoGLyQ2xkmCiSdeqbp7RlTkJw1ekhOUKnXBkPINvba7wvvJQd0WF6e+GBfqL/R2ktNgkPuq/qSX7U2CBXP1Xs9iA0vpADmlvRzohxqJ72r7GsuF6klmh7WTYvFNYWGoKO/G6osuNCAGd2AVV7oTg990lBNF/nZYj7/T72vIWsulhwzk9ubQ3V9LaC5NGVmWGdVaarpgLNPop1W1ZQ42/EfKsk/UWW68/GO0g7rS3ZM90loeK8kWeVnFIi+kRRp17vqLwiI/b3/76emdGvDFxReww0Bgl92o21YPVZU6//eD9Pq73W6jGg3jKksZoRfaG0I1laLKjDFeuxI/Pf3hy36rmkapSgsYZCR2kJKgCo+x3oxVHp4OP/709Md3P/yoUSwuvoAlBgL7Q8NU8TFUlen8P1+eHn/Ybff7Lz8cwkiVGTSusoARQGgfH6rFA1VmjPG8u/tls9/+9JR2RQhVawGTjOV2w6NUzRqE4nxafdIFhFB+maT58ZWCunU0UlYFwIYZ9TPgr6nmFodfokI9+spgwnJXkz6+y08TE1pZ7fM7OkUsLSOJ75iKKFK153tTnNj64qwxRb8ePGZkJCUZIttx570eUbR4EQ4iX43oZv3EDs8UQflvfJPavgjnTLzt1aGQbCNkL+Rz5VZcpsPStevX+4ycprkcJg2AM955XczOS6VQHzoZL3/P23n9jhuEzNYvMGKIPMDEu91m3iBILZ6X0HJJGwStTr1TMhLEcjcIR0h7aC3xiOeoxkIoupc5eK+lBtEDjQVLnK65zbAIWXMhy4xlDz7iVb/qInogWOph83mbaKK4ykK2GQgdDBv19/RDnZX5Avvd5vHlo25HJtRdIW/gTfogd0D/oofqhWSxu0+PieMnrrKUfXqhg/df6i/jhzqLS+Ep+toDG9KIEVFzsaUNZXdkSL+AjdRnzDQsp8y5GFdZwDAg9M0iXvf1HqqsMMbxfuI/P+0eNvv99vbdXjXvTNRf2EyoQWezQjX9iJ1RGjDphYpUeQXTjV6v+EI1P/HdUBht/zQ0s/KBaqqBhY03UqEPVhVKkLujHHlp7/7F2iuMvXFGgNd9gil0RDX6tMcYkLUWH2fDIwu87vsfQnHGMG/breOTnnZpJOosYBSUOkiZUAXcSGvGIscB9VPCNhzKL2CJocT+dbDKCJGyXCLNbvsxZThA+SXSZwYS+2Gg+8Iq0paxQIuiUjaLWGEBG0Qiu+lBd+9SrO6kEY6D5vu7T9sXVQYNU29Rk/SSO8voXuiTyk8aSL+iEHUWNQysJrq7jkdKKwyi39eRtRY2CuzgdLebE4qLT+kfjnl6ic/nUZ3Fnsx7qf03kvqH8oHO3EBpS2jn1kHhJYbFm7huNOjuYuvVFDudvmtn6i1mCmanrjs+m1SeMdDN0+Nhj3bTb+v1cwhfdQEzMcI7S+kOYOW6oDVWKsWZamANw5EcR3cSq9wdjRGzoMRkC0ubkccSupu3JjqkHY1pU5xcfY2RSEx4urRjqSuM8QLhT3ncGNVYwESxzO6xUwe7QOFpQ6Q9cnAVlzXL+KGj1HF7Wv1pI+kfO6hKyxonfvAodRhrrLbGKPrZm662tGHiebrUnUZCqS4+fRwvFrpNfPqI6iz29NFL7XLCEp4+Bjoz9ggllFPtsPACFujE9VxPtXvs1RQ7/cvm/jVBj7fii3W8Fdh3XeX2oapiBDxv9qmvx4dVFhv/ndDuhXjKBZC9ytx3YMcCytE/KLvEN18naf2HgKp+d0pKHT4urOr96KjGUp3vZPYm0H3sFissGUK/aYiLL2WCeKPQ6O6RGKoqd16/OcAKyxkg3hA0ustwYnUlI9y9XG8fnnUZ5VhhKSO8iezHgeo5I1ZXXg3ahIXP2y+pSwLWW25diCR3i4PuDHtSeW6UdKW0ywRUWGKUDEX2nwbrFoxI3UkjpPMMoe6ipqFJRqMjQWwnJg22f/ou5B/8RXnNCV91UXNFwntr6VYgpgsKY/3wunvZ/n23/Ziq7bDiwobqRHdm0k1DtPoKI6k3LeM6C5sm2r7oksVHSosr1zGDIXHRGlZZbL3qhHbXWKUsVb3KQppKSorKsukpkJqiGgadllKP01cjutpSdqDXoKKoVNMqpbtknayXOGzNpWzEvrQ5jBxVyDA9kC2lnVLj4svZJL6qSXdm/VDXqa8H2/yNt6zAl9zrrqVWlvxKkNWje1BIPDqe7xh/jg5ZJ/3Ka0Uzy5y6M6XIm20rnW01XUs0btp9gqpWVjTt+E7BSvc6RNGxRMN2/z6nP8NGVjRr9+/Oqro3KtPdSjVqylXVcgtrmjNamirdcY4THUpbrLKPhxKbWW+5Ig+ISrxmSOia5hwBuvpsJ0AkN7/0CQNpCnaDP/3YlERLaE5O+b18l9v80ier5PnOppx5k2eKuQIv+6CixMYvMejwqCLdsRX5Vpgr4NJ9ltf4JQYb+symnMqSY4b8QMs/2nO6vcsIp9ERUynXTSr7mh80+Qd8XZD9dRp10aD7Si2ps/kBcNZZUaomLyMMqNOidBA2tcf5wXDWwZ6X5Qu1Uv0akX7wXb4zTjdOnFaSronU257kJhY6ZkdQoj92R7fZnepTmjXP6MCq1htYLeWym1EfxIngf163uy8fNvebx5ttFnznG1gsyBkVOoSRstPgusMYkSieCNonW1jAjLIO3Wt03af9Ex3SG/L0r8wO9LXXMeDpX73xVOuK0BG94fR8V6q8jtkgc0OXd893Qz335bFcoYVVZj+S4KZsL9kOTe7sqZrPx9yiwQNyLrlNbnvRvX6adt2q7hJ3/YlGmNz+/14Oy2p70QeCPIc5XRJ8thFmibD5R+4lRlMfQ4kUVtXhWSJn/hF5iVHSx0YiWT3fEZw7P90/Hf5y3Z6mPWtg8A2vHh+Man2YJKLWlO5nRcvZTkpvePXYmXCS0923l9f9rEgKrRxPpG9Td+bcvElNrx5NrHJdPCVempVogqyImsFZOU2vHlWTznIph2alm2COyJp9yF5gFPWxM8NahN2dI2JmH4oXGB19TMyw1iQ5gfPkPJldiS2vHhuTd/roToTMNEBWtMyTxnWpjkrVrd+0zbC45OdtUa3lv0hXtLZ65JCXLekOCk3oaFaE5L81vyTDa/TpR39i6uJ5hudcl5k7NdXU6mN9fB2y7rRPbRezRnlmotTFGHtSmX6PNMPgnjT28Z19W/HtNV9q6gdXeaG0BVJ8n7ige/PO90NrtSx1V7LS4A4z9R1Usd5i4EYXLKS9zaSqLhaYI+H99+oJDyvjLkx+xJ9hKKy26Mf8hIESZqpYddE4w1P4k05Lx3qLmSeW3CUa660DqovmgTNmUyxEVV3MSCPh/T5ab6hxD0RbRWerplhqXHExO4HoLp0iYTZC7Sd2XC/HBKnDs9+hwc1DaioKV33BnRWhQGc13SmSUle4vQAWVh5GwtRbYkdASO5PWNBd/EZqr7XQ6Q9q7DnVwBo2G6rQG0/3EbDcH70V93NYctTIOtbcMxbVPXJO9yt1bLa/nzMwTg2sOTaPLQ3Gpi6JW+xPztg8w5KjRtYem7FFdVfCTPcrdWw+b24+bz5tz58/oaE1x+pQlcGYzY1+on85Y3cGS7ONrT2WaYvr7lnR9zN3bJ89/0JDlzC2YT7OnT2I/p0ztmeZny/C2rQ6vcV1VzDp+5k+tvfnztf79efp/XB+zp0tBv3JG7vZlhw1sv5YHVpUd7/QdL9Sx2Z7RdtZI+OthTVHZ6tDb0zdeWwTPcoZn+dYc9zK2iMUrKrLoFL0LHWMbnafDv+4e3i+P2+UxO2sOV4HmgxG7Xmb3mHvcsbu+Vbm2lp7HJPW1n0Gpe5l1pj+p/JzSVUrq4/nf0YntuouP1P0LHssn2FduqWLGMexlXUfIil7mDWGb56O4/+384dP39DqI/mkymAwn8d3o/5lj+fzLM02dhGjemRxXW6dvp+pYzvhJAVFG2uOaDhNoVB+lTXZq5xxfJ5VqXbWHr0j6+quV1H1LnXMHqTsvlw/Px36ctaIidtZc+wONBlMxufBh2Hvcsbw+Vbm2lp7LJPW1n1zpu6l1uJ3vcPecquy+ke3s4alCU0Gb9/z9nFU71LG9FxW5ttaa0yL1tZ95qLupZhec2gppONknXLF1F4suYaS3x/wknIxKdURxnBYNvFkK7n6AqYTFOiPZVJeDcV3RWm88A/1m0y5+grGGyjQG0952xjfFaXxUm4eY2quYDI4y0p3dw7TASETPhRXzdDD0gvlvgd5fdK77tPTgaZCz5PWyrj8Qr0ndhjqEzB169qn7X4TbjrMvTuJrL7k109jBbqlLeVDZborjPFGhdPvR5LqL2A+SYPuZGHdoSJiZ9QGDP/KU72ru4rhwr/ejFY22suO6E5oDfaw3X2+314/756eVJeOTjWwhumGKvSDTnutkdAdrRGT7jJiqq5hOLi9SPclLdcF5QKRfV8RXX+FJYI83zLlXD6mM5PfHY/rnf55zrUomhYX/QpZo1N/fUCS1XX9nfwkeV4/JLS46AfKKX4wTfr9QWc6QuvOMy7qSmv74oKEuOYp/b6gFBvMEjhnXM51of5K164Pq/S7gmZzGD0AZrsFT9/uyoE1eXda+sUp2r5nBNRsN91doH/SNOuDKP0ylVkcpHH2XNu29a9ES9GrP7tn3tA5Zws30411F+eXFL26KS31GNh5HEO7+KxLueS2Vg4O8jirxEP3JvqYEQhnXbx1Ifae1qYf6omH551jcNph+dcuCg2tPLTHJ1md/aSedsPi+Taebmjl4Ty+TDH1KLwMI7/d7/X2XJFxSdy46kLvwQjhg1eC6nOwqD7orJWh6CrWGVhFl4oEOgvWCAf2Dk149/jxSasjW3shG9Hy+/eqOgos9GRq+djuNi+vDw+bXV4GkdDCkgsGqUP3vJa4VNAd4l/djMqnv3SdaGKZVzmSEt0rHd2XpFNdSjDm4Q/Xp7/k9iNuYiVjDpTojal9PyZ2KcGYSe8V+dormRDeLpaqpUToiH5uzH7HyDaxzuxIvmlMfEJkuqR5ThlXnY3+JjW99LOMXrnBdwjJjzcJJtA88PwezsppeumHonRn2Sr9kX8uZ7G+P4tyTTa3fgSRZ+brni5SupoXKWchr8sxvkqhPgrS3y2eY3zWf/n4S25r/TE/PjtfBxnUncwb7fks7EIMPq1NP8jT3/1lGPyNfwy2+TlgjK6+IP4hFOhRkPLbP6EveutlKr2atQZWUn9ZgLpPzZ7HqfZIjV5fctEP18KSMyWpQ/9sk7YhoDvEP2CPyqejn4kmlnnUlpTon7e1CeRilxKMefPz5u7x5Xl7oz5NUNXKSiaN9eisqts1KTqWYNjDP3b7w6NFzm2Bie2tZGxOo87supPbkzqb4IDn7SEacvv2Vnkl07biOzvW2cM3dCPBaAch++Ojwfb27SlZ+aInpbGVjEqq088R2TMv3c0Eoz+97q6fXz/c391cv9x9ejyO+89bLYnXt7aS2Wl9+sGt5fPajiYYfvf0+nh7fb99/KQ7lFTRxkpGHmrRz7/aT/jkTiUY9HH72/769fnTbnOb3RVoYyWDDrXox2r2ghZ1KsGgH17v7m/P3e1iIyuZNFKjn3ez4z/uVoJRXw+Ptvl73a72SmYM8vsgz94cnDqSMl9uNzf7p13YlWVPVdDIWjPmUI0+wrN3AXG3Urdcz7unT1qQrWlkzS3Wmxq9UbPXobhbKYzgl83d/ebD/dvLnt3m8VP+gzrT2FrcgFKnn0+zjU13M2Wxaqu9fHm8yV4ihi2stUx1OvQ2zV73Bx1KMGRSCglfeyUDQgqJ7itToSMTBLp9mxXqpYDguNqCBHogeECg1We7oO5TBPqXzf3d7eawMt38fIznbA4tt7MkjRY06Zi07oInVef4uGVqpfNpVUPLRPO0Kt3lqLr0GV33ko18+td5veobWdW4p3/1htXOmBPdSjZq0roz1caqJo3XoFqXszLZqYmVqKucMjqlyguuSiPx/dqkvNiG7Ye4Qt3fHU/nvMlblujKi61FhPhuAdKlHfPdYIwGRROXGrH2Ambj5XeRqntnJHREZzjty0662vKmGr7OrHU7akp1nXFebn7ePmwytOwqLm+gILo3kWrCp9XXGUm/VnIVlzcSrIq6MxZo9YWl8Fjh+lhDu/4MKyy05HUiB8uc+jOwXl9xafuf1+3uy6f7pw+b+xYKZi1xciOLLXWCGt2Sp2On091ijMpUSVwCVa0sYNZpPbrTf3VLoqJjaYYN6Orn7eZWd6KGrpn1TDtUpLetainVdC3NuC+HDfL29rhZfj2nT9DMesYdKtIbVzUhaLqWZtzU41F1zaxnXOqo1Ea3w9F0Lc24+n3PVAPrGTTeBxVXupNz5P4kbQXyvnWcaGW1zQD5xaMuaU3RsckPVLja4U+nFMLcU7vSG1/0E5ZE9bohn7JXyzHD5Ecuv5vT8hpf9DOYTKc53YWn+WbIjjTI0s39xDin+YuINlbB/qTpxJOU0k2RHXEzOC+3+YuIuknnuRSWm2eKuSLvdxnOFxplfWwlfsav7fZcEfW7DNMLjZ4+ZhI/15/FKZJ35zkFI6P1i4idybMwUs6CzzJEdjTNcyLGJTsuR78u0HSZQ2cYIjviPm+/zB1m2ORFxFakVB9QM61KcZezoyjTGSlNXkS8kM5wus/gU7t8TmTMNvQuKAr6sZ94RLjUvXNG/GxD6oJGdz+mE4/7zjay5KHnzX72x/1RmxcxvmOt+oePmYY6dDp71Oc6JKnNi4gF2iGunCksUhwy5dj5RuAlRUM/3c8Ek9sOnjXy5xtZlzTK+yl/JgA8bWjJTfmn3ilbvIgRTp59l3K1k7rD2SM+/wS8S3OEVqc+EhLPwTvfEZI7M0/D0zR3EbEwOqLNXM0UCAnH4s1ofG1zFzH+x7dy6A5lTumqkM3ZVo5fGSaekie2sFC+J69DnwWiIzYTPUqyZL72a1puYDH1uXlED+Y4HzkvPSCt4fVPyJy490t3gkZe9/NOh53purxLdFKiav0hsulXKc3jpNNNJYOrRNOSztj6i5mc1qBbDfV2ZbrCmI8q/fTw56fdw2a/396+26sGtKqVBUw5rcebQb1VzeqKjiUZ9of2JK9/00Hb6SZWM2mnRG9P1b5iqktJxvwu/PUvyuwDTSOrGXSgRmdSowIh091SG1Wf9SzUXcWEca6z190mznZCXGpunh73u83N/nlz83nzadvmOKUtNkILiy03nA7dUp7w9MX2h7EjXf7p4Z2a5k+2sIAdZR26oaj74G6iQ4mGTF2+le2saFRyCdcRAlXnEgy8fxrWPGPAUg2tZOKRKp2NdYdC6bqXOIr/fuhE/d1ut1FtllStrDiCez1626q2oIqOievV7d3N8bnq8IB1t98+ZD8hTTWz2MolKtKfTKFfvuSeMbZlKz1uf/1zv//6q/Jg6bTmFrB1gkJvNi91L+5Suppp/D+eQmYu60N7F2D+oUad/XVJAUmdzXTAu+329u+7req71IS2LsDwb9r0RlehGXUnMw3+ffe7ki2kNngBpo9U6u2v2qCkdTfVCfrn5ukm1jR0/BRd6vbXU11ijflp+7K/PjpAp/Ow+CJG6gR2BtEd8TtUVe78x3bkHf8zQaOo0nKG6MX25lCGHqotGyUlmOIKyxkDAkX3FXis7pQR9M+W4ypLGiJ+Xix1n1yjyuIDzDEdPe1ZZVBjsceSN5n9E0hCNn6nMGOI4+/KibIvukDXT8K6s7Z0M8KbikJn9ZNAVHqhLsMJY7rwHygqdLx9sv9Rt3OG8gt1/k1i130d4YyUnTDA99vn+6cv2qc3staCxujldibRfbVAKD5hmNOzcYp2fZUFTXIS2tnDJdnjTeUJY2jf+0H5Bc0wfJtX69aDSNkJA/y02zy+fNSlnBB1FjTEm9TeGOopM1J6wiB/2m1SJ42+yoLmOAntp4ska7ypPGGMP2zuN483SXr1VRY0xkloP1ckxcmbylPGuLtN0qktvqQR7m57A6iI0lDVic7/193+59vdRr19hDoLmuFNamcL3eunkdJT+4sOWXx3e5s0fY5qLrnPiGT3k0eSiaADgqE2L3lmIuotZCSU3JnIqneoI+UnRtK7Ly/7bYfMf9x+Oh4jrAKwky0sOLJoHfrFOmlCYjo0vXS/01+wTtZadgF/F1+vXutefhGKTz0MPn54ekxavLoaSz4QtjL7aTtpv39SeMIQf3y7pDonyqjKC5pnJL5f7JO2fuNuTBpte/P55fUhz2ajuouaLJbeWywp0EadEKFTRmYPV3ExFMVk7tS6K4dp9SdGVaaZ6KoLjinOVLoX51wX1JtN5atZruIqW83Bq9ZadwgTrb5gpLuXLBONqy1kIBDcB5x6FKHqknEe90+J1C+uspRReqH9LkA9XoYqTxgjhfoNyi9ohoj6Ver1vVNWfCZLpDrDCos9hSHR0WXjx+pOjIKUVySD8guOgugVSaXes3TKCgZ43W0//pQUCFGNhYzQy+xnSLUZBgoLhvj1xHt+ekp7SiLqLWQUlNzfUqRePEbKT329unlt15q7x49Pudeisk0s+UUqrUT3vj3x21OmS4wxyQrpV6BOtbGAOae06G401h1+MdmpJIOGv+iPDVC1sppRh3r0ZlXNgYqOpRg26cpTofpapoTLtgvt7e9sVxLmzLxbTMQ2Vpo1yRtMdPcbT3ZKc4QCUXee86qT2176IIUE7frzb5L8kmoDzbkkv4u/stpe+nSSDH/ZlMOiMowwS4C95WbPP4AHLV9ccL3p1oVW4kmOSf2fJbDS/ZTR8sUFFfrJ6vZKmQbIDKj8cyFV7V1A8FBHEaYcw6zsa2ag5B8HeVn212nUhYJuy5vU2cwAyDwGcrqxCxj6o1MIU47U1/Qyc9Bnnv54QTZXqNOP9cR7DDKNfjyx7+izt8fqY+XUUx+F+guYVtKgP7/QqE98ZHuTYMFcvdez2MBS6pMeR9pPTabt9iMXvxKVl5wsUXzHDnQji+8Gj7CGRdMxK197GYDFyO/4lW6cCR3RGa797wyV3+otb6z2v3szqYYXqbzOQElYlKy4vIkAhRrVWw9a/YlZPTwxZSyIWHHBeT0S3U/susMeaf01VkpWcQWrDJY51WN1rK9ghZtjUmK6LcbVFrIICO7toiN4lO5Tq//z9jBx567+ROUlV38U363+iRht1A1+jh4WTV/9+drLzNaM/G7K1l0kI3REZ7j2vzNUfqu3vLHa/+4yInR3TpHK6wyUtPqTFZc3EXx5rrsUmFZ/Yl1TDx+ssOC6Fg2Y4kr3GWWsr2CFh83n7fU+4RtbqtJC1ojE9hbRfT431luDBtuV73woyDazNA6kFek32skgkOmZihRkJx1QtRdnBWSige6hV+iIhp1GtWZ7Wa1tdWmaqtKrw6opZ2ImdTzZMWe9w5FaWtUB5Hsb3ZOnsoNnRkD2W2Vdmxc0+kdvknWPvMmdTl4nZ0rHuDCH6LXqzwk7bzlN88f4oH/lYVpcxQUsS4ruLzhQYT9afcZIg3P6ks+eW/rs/ZHYflwpj2NFtZOn1vxXsuvveEVF+qUr/TVszpa380XaaeTDSosZbiC2T1LSW2mo9ZlLxxmpshe3m03Rqz+cds4FJDHPcobNrKKlVe1PbWZ1pzoo+zcxJ7x9Hnssnn1TwbDygnPESHyPzFPminEv2JU7Kqo+UZmotcjajXL7CwQSD5zuFGcMc7wrI8UkUH4BYwwldlRX97ASKStGUxuE2Rd/MLUXiydKfk849QFF9oOxG5ZVjh+62gKWIgR3jwq61F1KdaVxjrvo65+VXyNLlVcwVCe+M5furSbfjQSj/WV79+ln1bEOYu2VzBbk93ZTzd1CR5SG07+1Y2uuYDC4n1CXVsx0QJzrN7tPLy93D8/328RpflxxsRkeRHfbAf3cjsorN5fHCysO2/5Du5uH1HctE62ssN0c69HtOxNom9ivyQ1oXCd5J0pVX3RLOlKgf97MuNwq7kqi8V62+9OROH87FLzNutdnorUVTTvWp7O07jEzoaPphn87vXImyxPNrWt6VKi3fcZtSnJX042fd3EY1cS6Ro6uCdOdAzXVpXRj9geNndmbqKF1Ddur0ps34xY2rnuJRs69/ItoYUWzwo1GugOrJjrEpeHdP33Y3LeHmMCTwLvj3358elJf6a5vaolUPZ0yPebRJe8pu5hk7ITUR7n+amaFREhdbovYGfGZ4ZgseKiwS72JalRvseeCWHL3JJDC8EF5xkB9qZbv6y5aoCotYJqR2De7NLojYMdqTxol4c0QVWlRo8D7nkZ3pvlYbSGp9nh49ev9Zn/3y/b6tr33SKMiW3Oh9Nqx7I5AF7o8daYHk8mg4TjM7A9HqeqLpoOOFOgPnkpLASK6InzkFxXO+IBUqL/QJ3+cBv0haOqvI9nOaA14+tf1L5v717wOYAtrGDHSoTej+gNKoUNaQz5sd5/vt9fPu6cn1SPuVANrmHGoQm9F7WGRQne0Rkz7apeuuobh8BBD7WdgZBeUC0f+dwRk/RWWDvrQwrTsH6ozqjyfuF774HB9GKv79lXfOSlY+oYXzwJSqtahgowPY7S9VyVlzu6j9IYXT9xM9JFNOagjtfvnB9LMY/TigqYLlYz8Obmn5wfIzGPv4oKhD4GMD3HOMD7tv+fX3cu2Pdx+vsWDaXPlEKC06tIfMj7+UPQ5IxjO80dSmyuHheQPm/IontDpswJkvgF4ScHQhUBG+jrbv7MG/nwD65IGeT+0Mz56zTM07abzvg4Q21p5UJPHxKbdwTHVx4yBfd6nxZdh72lt+uGdYHBFJzMG+BknP/ANrTy0R9/C6W7A1fUuY1Cf8a3hBdh4QpV+h372WFYf+fpGb3MOtxtVXfIgt1j44Ei3pKNvsA86a2Uouop1BlZRjSjUWXp72T4CZtiEqrjUu0sU3b+61H0+Q+s/tVTcvF1VnPvukmlgyaWBUqE/zybtKZbsDv/KA4unv8OUW1jmBYigQ/ceRHeUwUSH9Ibs/n394ct+qz0gb7qVdQwKevRG1b6Pm+qY3rBJr+XYyuuYEV7NWe2rOaYbE+tpVytlcRtWWnBN7cQODtNN2mv0ek+tGHE2ae6yIbWy5NrB6tEtIDo7KjrGxyhZJ30pUTSzTNxOKdJFsO5rRE3XEo3b//H6s+67EXVLK5o41qW3snae1HQw0dAv+6fd9jYpJUnTzopGHmrSmVj3paiqc4kGzshV0rSzooHJzCXd5/GqziUaOGnDJLewolFh66QjwBMdStspZOc4ic2st1cgM550T0marmkYL119vvyn9PaXJsKJGg4uEUgmxanG0ADk382B2e0vjZszHWhTknQyjTFbBP4+o/pSo637LCU9fUTX79kC6/cZrJcaRF3opOT1JHU8P2AGzxjHP1+HD1RnGp9s45cRPrR6XRSlv9JMskJ+MJ3rs7zGLyO0ZJ/ZlPyKHDPMF2hnHG6dIeAyA2587HWTniyfbI35Au+ME+Mv2YeZKvZBmJ5MP68TxZFxVsKZqsnLCDYqHapJz6pU9Dg/oM5KRrssX6iV6sMkPfPyXGeIPs1PVJtu7zJCYpRSVejuB0vqbH405GexXZADdBr1NGGutUKd2oaLSkaKG9/Egi+eGSX6oe2Skru4PqVZ84wOrGq9gdWSLoPHPqhS4zJtJjWweKocZ79Cd+qC3B/Biv/zuj2UujkdotfWTI1guYmFLCko0Y9F3V0tU31Ks+YZHVjVegOrqUcg1Qdx+W4rvJX/vP2S92ZtopXFlmpJj/5k3ASiInZscmPK1Q6Hkp2mi1xskt74olvWRPW6wZ5662aqGSY3s7+b0/IaX3Sbm+k0l3pv1KxOk0bBTO+vc5q/iGibfnudMhvmmSI74mZ6d33RzstSsIs73QPROaaYK/J+l+F8oVHWx9ZMa1nyW+vZnZLW6CVGTx8zM61VyW+suYbmueUvo/WLiJ2pW/8K3TnfZxgiO5rmuWz8kh2Xo1+/KZxpccq/t5FrsXs+Pvxt7nhj276IaKO162MtMZUx0QjZkXauw7Lavogokx3mUu+an9Nh2gEw/8i9xGjqYij1nnNVh2eJnPlH5CVGSRcbKV9rqzucHRHPm/3s+GHU5kVERaxV/zA009oCnc6OjFyHJLV5EdFBO8S5mdaOFIdMOXa+EXhJ0dDvr2ZaG9oOnjXy5xtZlzTK+33RTHP/tKElN+Un5ilbvIgRTqWCFbrLzxI7nD3i87PyLs0RWp36SEjMyTvfEZI7MzPyNM1dRCyM8/HqmQIhIR1vRuNrm7uI8T8yvtOdCZHSVX3qyfFJ+rw8nriFdRJRBjoM8lFUq+tEj5Isma/9mpYbWEx9gA7RA+6QAfaawD8cWan+qnltQ0scOaBR5c2ste6Ad1330pa0Y2LVnGsa1956ixqpUQ+5zlnV6M6mLWvDNub4ejC98fWWvGn1ugUw9Zj3VDPkO+33SO7Qtn8ZrptO70g9HjfDGPkOnOmZSmjyMtxEPlWlXi2i6/Js0fT7jNCLcQmX2pF655G645k7sLOvtB42cwG7r+FV1sq77BRd0+enD110RoI60cw6GeqoSJ+injCQ5a7Nt6uaJeVZLeAyJprpT8Nd6m0jOebIfzaZLwvzQtaFFL36p5Vz8jAz1gWFt+dgcas/NOo06pfnuUJF+dB4dNFxa5W4VmC1xcwZCe7WgpTTyWLV5WmDWZmTDlSU2lhuSmC16GyYdP0c36nZ5uFZEkEu7mk3T8N+lj4n0XeGp12xzZle5V7C065aqd4z56Tu5D3tis3MccTbBQO/DPU6V6VetDkr8EtqcJbvXi/veSJTxd6Bc5H19OcJeuV73P6azw5C5dXQxUF8/7JId0w12w1x5D9vvjwcSh+WmRAniRsprvpio5ZUoN+CJkwqdFcY440KKwcbU28Bc1GSu7PIdCeFkMprDXT6w/Xm4en1UfV2d7qJNcwWK9FbUBWkU13SGvP4kDmDQclm1jDqWJHOsLo0ME3XUkeqljtNNbDmKI3OotYtJHJ3ckZotiGJRtYenZFBdVla091KHZnt7+cMi1MDa47MY0v9yMwzZNSdnJGZbUiikbVHZmRQ3W1H091KHZnPm5vPm0/b8+dOaGjNkTpUpR+xeQYmu5czcs82tNDY2iOZNLju7iN9N3NH9tlzLzR0CSM7mjp0X+bqunfOyJ5lbr4AY3Pq9CM77+GL7Wb6yNZ9VTXVwLojuf+GqtEd6iV3J2/kZhqSaGT9kTowqO4qh+luJbOC3adDK3cPz/dnPqtH7axKDXpN+q3EeRPusHNZ/OBMI/NtrT2GKWPrDlFSdzJrRP9TeZWiqpXVR/M/B1cqNrrkOkXHskdytnG5li5iFEdG1n3/ruxg1gi+eTqO/t/OHzx9Q6uP45Mq/VA+j0lE3csezecYWmjsIsY0Glz36bu+m6kjO+GecUUba45nuGG80R1oNtmpnFF8jlHpdtYeu2hc3XtvVedSR+zhf7sv189Pd2e+UIvbWXPkDjTp98fnPc4NO5czgs81Mt/W2iOZMrbuYF51J4Vvpe8eX/ab+3tNL+LiC30VfRLYfwqt+3R0qKvQ+5vD78FS6pFFV1vIGiC4t8qV+mIM1F3ISzn89dP28frhUOPpRqMiVWmhHJRIbJcyrv8QJlZ72ii7bY5V+lrLmuUkt7eLOlcWFJ82zPa356fd/tokajiolmCaWInbL4+Hbedue3399Pxyff3x9bFNYbu+/vPjf7zur6+/uz78X2jj8B8/HhN7f928PFy/6XB9c//08nqs/1+HP//x7R/Xt9uXm93dh8N/3j3+8vT58P9/3jabq6K0xruN+2Da1OPp3q6r3xIjbsUe9mNblwG5pjOmo2hze3u9fzqmot98Dou4Ps9VbmLZiYdSovOU/pAvqUvTxkxJpoyrLGusYdKk0593OVRZMz8/Hgx4GPjJE3Rfb1mzdJL7gaNOKB0pzxgIQvvp8fAwuO9i/OUtmM31w3E6+PnKbKqNr1358fawIb21mh6dL2IBs5+pZH/rne6Mp3Nt0nfYXDVV4U3X5XdfHm+Ogv76eDTMW8+Pyr38S/Rb2+9Y14EZ+xFyu/24eb3vm3pbMF7+5fQL1dB/f3Mw9u32t6/+9f989YYX/vUr8639tjmU/Hi3vb89FHz/1duL8aeH47PbV/99+u0f25vDoD2WCEX+5TAnvL/6pvTflr7+7//+5v1bjfaH9g9tseLwr4IqVkTFDput94YqZqJih6H33lLFbFTssMd476hiLirmD//yVDEfFTssDe9LqlgZFasO/6q+Kc23pnFRsSoqdhiM7+tvqqtvq7KKitVRsYNT3jffuPLbqo6FNrF5j9Yurqj2CnBE64mCLBn74pj7/b4wZMnYHcXR7IUlS8YeOWZDvy8cWTJ2SnE0fuHJkrFfjjz+fVGSJWPXFEcXFBVZMvbO8XXV+4L0TxE7qDg6omjIkrGPjq9z3xvSRyb2kTk6wpA+MhAvbcCQPjKxj8zREcZ+Y+23hfdxydhHx2zg94eFiCoZ+8gcHWFIH5nYR8c8zveG9JGJfWSOjjCkj0zso2Om3XtD+sjEPjJHRxjSRyb20THH6b29+sY3h4CLZ5bYRfboB0vOaDZ20THp5L013/jy2+LKxiVhVuNdZGMXWd5FNnaRPfrB2m989W1VxfORjV10zKd/bw9tHrp+VcYlYxfZox8s6XYbu+j45oYxZ+wh2/DmjD3kWg+R87CLXeQK1pwudpEzrDld7CJnWSM5WHuOfrDkOHaxi5zn9Yxd5Epez9hFrnURGRsudpFrXdRQC5aLfeQaXs/YR/6K1dPHPvIFa08f++iYDPfeUUPJxy7yRz84cvL0sYt8uz8gJ08PO4SjHxy5wPnYRb5kjeRjF/mKN1LsIl/zRopd5I9+cOTy6mMXlVfsrFTGLir5MCpjF5V8GJWxj8rWR+QMUsY+Kh03g5Sxi0rPdwj2cbyLythFJe+iMnZRWbPTbBm7qGxdRK6EZeyiil2LqthDVcF2vYo9VBm261XsocqyXa9iD1WO7XoVu6hqo6iiOhR76Ehh3jty9qpgs310gyNX9ir2UFXzXY89VDV812MP1VdsYNaxi+qjHzy596tjFx3fD7z35PRVxy6qj37w5PRVxy46svX3npy+6thFdfssRE4gdeyjI9N878kQrmMf1UdHeHLE1/BMdHSEJ9fMOvZRfXSEp5+fYh81R0d4coQ0sY+aoyNK0kdN7KPm6IiS9FET+6g5OqIkfdTEPmqOjihJHzWxj5qjI0ryubaJfdS0j6zko20T+6g5OqIkfdTEPmqOjigrsk14dD06oiR91ODT69ETJf0QdQXPr1dHX1TMoy48wV4ZdnMTfhuW5Xff4bdhWX7/HX4blvXsJBF+G5YtuU1O+GlYtOUM9HP8FTzMXvFzX/htWJaf/cJvg7ItWqhoQjDCDq3baEaA4KHFCxVNCRA9tIChojkBwocWMVQ0KUD80EIGOnYKBBAtZqAjskAE0YKGimYQCCEKwW+IIQrBbwAiihY3VDTdABRRtMChokPTIDA6+qamQxNwRNFCh5oevwAkihY71AyJAr8Z/mmqAChRGP55qgAsUbTwgQljABNFix9qeqwDmigM/1RVAJwoLP9cVQCfKFoKUdMxBISiaDlETceQRdTX+o2OIaAURcsianqsA6corDBNAqkoWh5R0+MXWEXREomaHr9AKwrLPwsXACwKK/gNkEXhBL8BtCgc/0RcALYoHPtMXAC3KFo60dCh6ZDROr5rwC6KAC+YroHbWkbR0CEP/KJoKUVDhzwQjMIJ0yQwjMIJ0yRQjMLz2/sCOEbR0gp6W1QAyShaYNHYb5z/9jDlQ1nwW4ssGke5GGhG0TKLhiHmCNeFWRKIRuGFWRKYRuGFWRKoRnuwF2sGcFtLLxp61gGy0Z7t9r6hZx1gG4UANwqgG4WANwrgG0XJc8ICCEd7SiBnB4AcRYsyGnrmK/G1SMkOHeAcRUszGnqSBNLR3gbLmgzcVgrRBrSjqIRoA+BRtFiDMRkgj6IFG4enCPqtD/itZRuHxwi6MDiuEuZJQB9FJcyTQD/am+ZYS+AbrUqwBHiu5RyH5x5ykgIIUrSo4/DgQ1sCfFeH14/0bgNQSFELMQcwpKiFmAMcUtRCzAEQKWoh5gCJFC34ODyq0Z0D37Xs4/CwRhcG57X4g7MEvpCsBUuA71oEwlkCXNdCEMYSAEiKFoOQAK8AQlI0IeroWRggSdEIj96ASYpGePQGUFI0wp4SUEnRAhHODuC3FokcnpzpzoHjWipCT8MATIomxFxDBigwE9NykYJ+528AmpgrPuYMQBNzxcecAWhirviYMwBNzBUfcwagiWnBSFGQLwQNUBPTopGCzlQwwE3MFR9zBriJueJjzgA3MVd8zBngJqbgY84ANzGnfA3aEgBOTEjZoDMxDJATUwgZAUBOTCHkBAA5MQUfdQbIiSn4qDNATkzI3qCTRwygExMSOOj8EQPsxIQcDjqFxGAWhwlxR2coYCKHCd6jkxRGuRzBe3SeAqZztIykYNJJMKOjhSQFk1GCSR0tJSkMnYaFeR0tJikMPeIwtaPlJIWhPYjZHS0oKZjsEkzwaElJwSSYAEYxLSopmBwT4CjGCjMncBRjhZkTOIqxwswJHMVYYeYEjmKs5D0AKcYG79HDE0iKscLMCSTFWGHmBJJirDBzAkkxTpg5gaSYlpYUpvnGu2/LykBhcF3LS4rj21aqMPjOhXw3OpyAphiBphigKUagKQZoinH8U4IBmmIc/5RggKaYlpgUll5NAaeYFpkUlg5/4CmmZSaFpcMfgIppoUlBZxkZICrGB+/R4Q9IxXhh3QOmYryw7gFTMV5Y94CpmJabFHR6kAGoYrwQeABV2nshWIXBeT44ryanCqAq7aUdh8Lk3tQAVjEtOikcvTgBVzEtOynojB0DYMW08KSgk3YMkJX2IyM6F9cAWDEtPCnoFB8DZMW0+KSg82wMsBXT8pOCTnYxAFfac6kPhZlESfBfS1AKRw8iwCumRSgFnVRhgK+YKviP3okAYDEBsNDJDQYAiwmAhc5vMABYTAtRCjrFwQBhMVVIGKY9CIjFtBiloBMdDDAWUwnxB4zFVEL8AWIxlbDwAWExgbDQ+RYGCItpKQqdkmOAsLQXsx0apkccIBZTB+/RIw4Yi6mD95gEXfBegCx0noYByGICZKFTNQxAFtOClILO1jBAWUxLUgo6YcMAZjEtSinonA0DnMW0LIUZRMBZTAtTmEEEoMW0LIUZRMBZTMtSmG0AcBbTspSipCMEQItpYUpR0qMTSItpgvdKcl4G1GICainpEQeoxTQ8mjbAWkzDo2kDqMVe8WjaAmmxLU0h38lZAC22hSkFnSFjgbTYlqYUdI6MBdRir/g9pwXUYq/4PacF0mIDaaGTbyyQFnsVvrYgA88CarEtTinoXBILrMW2PKWgk0kswBYbPo2hs0ks0BYbaAudTmKBtthAW+h8Egu0xYZvZOjEDwu4xYbPZOgMDQu8xYYvZegUDQvAxYaPZegcDQvExQbiQidpWCAuVkhWsQBcrJCsYoG32MBb6OwPC7zFBt5Cp15Y4C028BY6R8ICb7EtUuE+4wD3GSH8gLZYI4QfwBYbYAudqGEBttgAW+hMDQuwxRo+xdwCa7GBtdBpHRa/p7H85xoWP6mx4ZGPfMSw+FWN5VOZ7ei7Gj6Z2eKXNS1PKejkEosf11j+NbrFz2ss/xrd4gc2ln+NbvETG8u/Rrf4lY0NrmMsDK5reUpB54xYgC1W+NjGAmuxwuc2FlCLFT64sUBarOMxmQXSYluaUtDJKBZQi21xSkFno1hgLdbxTwsWWIt1/NOCBdRiHf+0YIG0WM9jMgugxQbQ0tBTJoAWG1JXqJdZFjCL9eFVOj3WgLPYlqUUDT0VA2ixQvKKBdBiheQVC5zFtiyloDNoLIAW28KUgk5JsUBabCAtdE6KBdJiA2mhkzwskBYbSAudumGBtNiQwUKnQlggLbaFKYZOhbBAWmyLU8wVHSHAWmyLUwydWmCBtdjwtQ6dWmCBtdjwwQ79qt4Ca7EhkYV+VW+BtdiQyUK/z7bAWmwVvvSlPQisxbY4xVzRHgTWYsMHPPRLXwusxYZveOhvvS2wFhuSWeiXqBZYiw3ZLPR7RgusxbY4xdDv7SywFhtYC/3ezgJssQG20O/tLNAWGz7rod/bWcAttiUqZKaDBdhiQzoL/YrPAm2xIZ+FfsVngbbYFqgY+hWfBdpiW6Bi6Fd8FmiLbYGKob8bt0BbbAtUDP2KzwJtsSGlhX7FZ4G22JDTQr/is0BbbAtUDP2KzwJtsYG20K/4LOAWG3AL/RbMAm+xTfjinvYgABd7SmyhPQjExYbMFvqtkgXiYpuwBtIeBOJim/DFI+1BIC62CfsX2oNAXOyJuNAeBORiA3Kh39JYYC7uKvAy+gNqgC7ulN5Cf+8M2MWF/BZLetABdnHhqyD6TYYD7OJOnwWRHnTAXdyJu5AedABe3FXYxpAedABeXEhxoV9POAAv7pTjQnrQAXhxp4+DSA86AC+uCFnvtAcBvLgiIE/agwBeXBEeIGgPAnhxIc2Ffj3hALy4gn9yd8BdXME/uTvALq4lK4Z+7eEAu7iWrBj6tYcD7OICdqFfezjgLi5wF/q1hwPw4sJ5JfQrBwfgxYUjS+jXCA7AiwunltCvERyAFxcOLqFfIzggLy6QF/o1ggP04gJ6oV8jOGAv7nSCCe1BYC8uHGJCv0ZwwF5cOMeEfo3gAL444XMhB+zFCZ8LOWAvzvKfnThAL87y3y84QC/OhqdAMh3FAXtx4VgT+p2DA/biAnuh3zk4gC/O8t/8O4AvzvJf/TuALy7kudAfzjqgLy4kupAI0eEpJ45/XeTwnBPHvy5yeNJJy1foV4MOzzqRDjsZnXYSXMecdwKuk048wSNPpDNP8NCTgF7oFyoOzz0RvhpyePKJ8NWQA/biwuEn9IsaB/DFtXzF0C9UHMAX1xIWUxXf+KtvD5srKAzOC1ku1WG02W8PEzAUBu+FNJfqENLVt4c1EQrjcTXtNyjUmWQO6IsL9IV+9+IAvzghzcUBfXFCmosD+OJavsKaDbzX8hXObABfXPh6iDEbwBfX8hXabIBeXEAv9FsoB+jFlcKWBciLK4UtC4AXF8AL1znwXQAv9KswB+DFBfBCvwpzAF5cSHKhs/gcgBcXklzoLD4H4MWFj4hIhwB2cQG70O/jHGAXV/H5ZQ6oi6v4/DIH0MUF6MKMY4AuLkAXZhwDdHEBujCuBujSnnTKmQ18F5AL/WbSAXJpT5flzAbMxdXCigfIxdXSrAnIxdXSrAnIxdXSrAnIxdX8rAnAxQXgQr+jdQBcnPANkQPe4oRviBzgFlcLr4oc4BYXcAv9otgBbnEBt9AvdB3gFhdwC2NjwC0u5LeQNgbY4gJsoV8UO4AtrhH2K8BaXCPsVwC1uIBaavqIUkAtLqCWmjyRwgFqcQG1cGbD09qu+CnWA2rxVwU/xXpALf6KXfM8gBYfQAv9utoDaPFCfosHzuKF/BYPmMUHzELPFR4wiw+YhZ4rPGAWHzAL7RAPmMVfsae+eoAsPkAW+mW8B8jiC/4lrQfG4gv+Ja0HxOIDYmHMBojFB8TCmA0Yiw+MhTEbQBYfPiYizQaIxQfEQr/l94BYvJDZ4oGweCGzxQNg8YZ9yeABr/iAV+hjLDzgFW+EFc8DXvFGWPE84BVvhBXPA17xhl3xPMAVH+AKnWrgAa54w694HtiKN/yK5wGteCM8J3hgK94Kzwke4Iq3wnOCB7riLT9nAlzxIa+FTmLwAFe8FeZMYCveCnMmoBUf0EpjqHROD2zFB7bC2BjgirfSnAlwxYfzWOg0Bg90xQe6QqcbeMArXvqOyANf8dJ3RB4Ai3fsfsUDX/GBr9C5CR74ihf4ige+4gW+4oGveCfsVzzwFe+E/YoHwOKdsF/xeLqsl/YreMCsl/YreMas52MPT5kNfIXO//B40KwXYm901KwQe3jYbOArdF6Jx/NmA1+h80o8HjkbAAsT1XjqrERYPBAWfyIstKuBsPiQ3kLninsgLD6ktzTkI4sHxuLDh0TMIALG4luOwg0igCy+5Nc9YCy+xSiWTsjxwFh8Kax7gFh8Kax7QFh8SG1hXA2ExZ8IC/nNmAfC4sPBtHQKkQfG4itp1wKMxQfGwgwigCw+fEbEDCKgLD5QFmYQAWXx4TMiZhABZfEtSOEGEVAWz1MWD5TFh8+I6NwrD5TFhyNr6dwrD5jFh++I6NwrD5zFtyjF0rlXHjiLD2e1XJXfFFffNgYLg//qcAY0PcsBZ/EtTGFbBv/VIf7oKRFIi29pCtsyHtkdTr6nN+zAWnw4r4VrGTzY4hRLp4B5YC2+KYSWgbX48CkRnS/mgbX4RvIg0BbfAhVLJ5d5oC2+kTwIuMW3SMXSmWgeeItvJA8Cb/EtUrF02poH3uIbyYPAW8rwORGd41YCbymvBA+WwFvKcN4tnRBXAnEprwQPlkBcyqvgQTIGS0Au5ZXgwRKYS3kVPEjGYAnMpbwSPFgCcymvggfJGCyBuZRXggdLoC5lEU7PJ2OwBOpSFpIHAbuURbgthIzBErhLWUgeBO5StmjF0jl/JXCXspA8CNylbOGKpRMESyAvZSF5EMhL2dIVS2cTloBeykLyILCX0gQP0jEI9KU0kgeBvpQmeJCOQaAvpZE8CPSlNMGDdAwCfSmN5EHgL6UJHqRjEPhLaSQPAoApw4dFdLpkCQSmNJIHgcCU4csiOreyBAJTWsmDQGDKcGMPnYhZAoMpreRBYDClDXcl0DEIEKa0kgeBwpTh9h46xbMEClNayYNAYcpwKC6dD1oChSmt5EGgMGW4yodOHi2BwpRO8iBQmPKU5ULHIFCY0kkeBA5Thmt96LTUEjhM6SQPAogpw3kudA5rCSSmdJIHgcSU4YofOuG1BBJTOsmDQGLK0wm5dAwCiSm95EEgMaUPn7XTMQgspvSSB4HFlC1vsXTebQkwpvSSB4HGlD6cyEPHINCY0kseBBpTnm4AomMQaEzpJQ/iNUDhHiDmKh68CaiUPIiXAZXBg3QM4n1ApeRBvBIo3AlEJxaXeC1QKXlwdDNQ8CAdg3g5UCl5EO8HChcE0SnLJV4RVEoeBCJThnNz6fzmEohMWUkeBCJTttDF0knLJRCZspI8CESmDHcG0RnOJRCZspI8CESmDGfn0unQJRCZspI8CESmbLGLpXOnS2AyZSV5EJhMGZgMnWhdApMpa8mDwGTKwGTorOwSmEwpMZkSmEwZmAydwl0CkyklJlMCkykDk6HzvUtgMqXEZEpgMmVgMnRyeAlMppSYTAlMpgxMhs4kL4HJlBKTKYHJlIHJ0GnnJTCZUmIyJTCZMjAZOke9BCZTSkymBCZTBiZDJ7SXwGRKicmUwGTKwGToBPESmEwpMZkSmEwVmAydTV4Bk6kkJlMBk6kCk6FTxCtgMpXEZCpgMlVgMnTOdQVMppKYTAVMpgpMhk6kroDJVBKTqYDJVIHJ0NnRFTCZSmIyFTCZKjAZOpW6AiZTSUymAiZTBSZDH2RTAZOpJCZTAZOpApOhT72pgMlUEpOpgMlUgcnQR+RUwGQqiclUwGSqwGTonO4KmEwlMZkKmEwVmAyd9lwBk6kkJlMBk6kCk6HTkytgMpXEZCpgMlVgMnQucwVMppKYTAVMpgpMhs45roDJVBKTqYDJVIHJ0Gm5FTCZSmIyFTCZKjAZOnO1AiZTSUymAiZTBSZDZ5hWwGQqiclUwGSqwGTodNQKmEwlMZkKmEwVmAydY1oBk6kkJlMBk6kCk6FPLqqAyVQSk6mAyVSBydBHDFXAZCqJyVTAZKrAZOgEzwqYTCUxmQqYTBWYDJ0DWQGTqSQmUwGTqQKTodMEK2AylcRkKmAyVWAydEJfBUymkphMBUymCkyGzqWrgMlUEpOpgMlUgcnQ6WYVMJlKYjIVMJkqMBn6gJ0KmEwlMZkKmEwVmAydFlYBk6kkJlMBk6kCk6FzyCpgMpXEZCpgMlVgMnSuVwVMppKYTAVMpgpMhk5aqoDJVBKTqYDJVIHJ0JlIFTCZSmIyFTCZKjAZOm2pAiZTSUymAiZTBSZDn51TAZOpJCZT4c3NLXZxdF5Phbc3S0ymwgucq3DlGx2DeIezxGQqvMa5xS6OTiOp8CZniclUeJtzuM6ZzjmpRhc6Sx7EO51b7OLoBJUKr3WWmEwFTKYKB8DQ2SwVMJlKYjIVMJmqDh6kYxCYTCUxmQqYTFUHD9IxCEymkphMBUymqoMH6RgEJlNJTKYCJlPVwYN0DAKTqSQmUwGTqVrs4ug8mQqYTCUxmQqYTNViF0fnyVTAZCqJyVTAZKoWuzg6T6YCJlNJTKYCJlO12MXReTIVMJlKYjIVMJmqxS6OzpOpgMlUEpOpgMnUV8GD9B3jwGRqicnUwGTqq+BB+k5yYDK1xGRqYDL1VfAgfYc5MJlaYjI1MJk63A1N58nUwGRqicnUwGTqq+BBMgZrYDK1xGRqYDJ1i10cnSdTA5OpJSZTA5OpW+zi6DyZGphMLTGZGphM3WIXR+fJ1MBkaonJ1MBk6ha7ODpPpgYmU0tMpgYmU7fYxdF5MjUwmVpiMjUwmTp8o0TnydTAZGqJydTAZGoTPEjHIDCZWmIyNTCZ2gQP0jEITKaWmEwNTKY2wYN0DAKTqSUmUwOTqU3wIB2DwGRqicnUwGTqFrs4Ok+mBiZTS0ymBiZTt9jlikqUroHI1BKRqYHI1OEIXrpd8J7EY2rgMXX4UoluF3wn0ZgaaEwdaAzdLnhOYjE1sJi6xS3kxzY1kJhaIjE1kJi6hS3kdzk1cJha4jA1cJi6RS3kUc81UJhaojA1UJi6BS2OzseqgcLUEoWpgcLULWhxdD5WDRSmlihMDRSm9iHq6LkeKEwtUZgaKEzdghZH52PVQGFqicLUQGHqFrQ4Oh+rBgpTSxSmBgpT++BBeq4HClNLFKYGClP74EF6rgcKU0sUpgYKU5fBg/RcDxSmlihMDRSmLoMH6bkeKEwtUZgaKEzdghZH52PVQGFqicLUQGHqFrQ4Oh+rBgpTSxSmBgpTt6DF0flYNVCYWqIwNVCYOlAYOh+rBgpTSxSmBgpTBwpD52PVQGFqicLUQGHqQGHofKwaKEwtUZgaKEwdKAydj1UDhaklClMDhakDhaHzsWqgMLVEYWqgMHWgMHQ+Vg0UppYoTA0Upg4Uhs7HqoHC1BKFqYHC1IHC0PlYNVCYWqIwNVCYOlAYOh+rBgpTSxSmBgpTBwpD52PVQGFqicLUQGHqFrSQV7DVwGBqicHUwGDqwGDoPK8aGEwtMZgaGEwdGAyd51UDg6klBlMDg6kDg6HzvGpgMLXEYGpgMHVgMHSeVw0MppYYTA0MpgkMhs7zaoDBNBKDaYDBNIHB0HleDTCYRmIwDTCYJjAYOs+rAQbTSAymAQbTBAZD53k1wGAaicE0wGCawGDoPK8GGEwjMZgGGEwTGAyd59UAg2kkBtMAg2kCg6HzvBpgMI3EYBpgME1gMHSeVwMMppEYTAMMpgkMhs7zaoDBNBKDaYDBNIHB0HleDTCYRmIwDTCYJjAYOs+rAQbTSAymAQbTBAZD53k1wGAaicE0wGCawGDoPK8GGEwjMZgGGEwTGAyd59UAg2kkBtMAg2kCg6HzvBpgMI3EYBpgME1gMHSeVwMMppEYTAMMpmlBi6PzvBqgMI1EYRqgME2LWhyd59UAh2kkDtMAh2ls8CAdg0BiGonENEBiGhs8SMcgsJhGYjENsJgmsBg6z6sBGtNINKYBGtO44EE6BoHHNBKPaYDHNC54kI5BIDKNRGQaIDJNIDJ0nlcDRKaRiEwDRKYJRIbO82qAyDQSkWmAyDSByNB5Xg0QmUYiMg0QmSYQGTrPqwEi00hEpgEi0wQiQ+d5NUBkGonINEBkmkBk6DyvBohMIxGZBohME4gMnefVAJFpJCLTAJFpApGh87waIDKNRGQaIDJNIDJ0nlcDRKaRiEwDRKYJRIbO82qAyDQSkWmAyDSByNB5Xg0QmUYiMg0QmSYQGTrPqwEi00hEpgEi0wQiQ+d5NUBkGonINEBkmkBk6DyvBohMIxGZBohME4gMnefVAJFpJCLTAJFpApGh87waIDKNRGQaIDJNIDJ0nlcDRKaRiEwDRKYJRIbO82qAyDQSkWmAyDSByNB5Xg0QmUYiMg0QmSYQGTrPqwEi00hEpgEi07TQxdN5Xg0QmUYiMg0QmaaFLp7O82qAyDQSkWmAyDQtdvF0nlcDTKaRmEwDTKZpsYun87waYDKNxGQaYDJNi108nefVAJNpJCbTAJNpmuBBOgaByTQSk2mAyTRN8CAdg8BkGonJNMBkiqur4EIyCE+/RsUFJ55+jYoHN5KBePo1Ki448vRrVDy4kgzG069RccGZp1+j4q076aSv069RccGhp1+j4q1L6cSv069RccGpp1+HxVsW4+nkr9OvUXHRqwV6teUxnk4AO/0aFRe9WqBXWybj6SSw069RcdGrBXq1CF4lg/T0a1Rc9GqBXi2CV8lAPf0aFRe9WqBXTfAqE6sGvSrhm9OvUfHgVSZWDXpVQjinX6PiwatMrBr0qoRxTr9GxVuv0slhp1+j4qJXDXq15TWeThA7/RoVF71q0Ksts/F0ktjp16i46FWLXm25jacTxU6/RsVFr1r0astuPJ0sdvo1Ki561aJXbfAqE6sWvSrhndOvUfHgVSZWLXpVQjynX4fFXfAqE6sOvSphntOvUfHgVSZWHXpVQj2nX6PiwatMrDr0qoR7Tr9GxVuv0klkp1+j4qJXHXq15TqeTvA5/RoVF73q0Kst2/F0ks/p16i46FWPXm35jqcTfU6/RsVFr3r0ast4PJ3sc/o1Ki561aNXffAqE6sevSphoNOvUfHgVSZWPXpVQkGnX4fFy+BVJlZL9KqEg06/RsWDV5lYLdGrEhI6/RoVD15lYrVEr0pY6PRrVLz1Kp0EdPo1Ki56tUSvtvzH04lAp1+j4qJXS/Rqy4A8nQx0+jUqLnq1Qq+2HMjTCUGnX6Piolcr9GrLgjydFHT6NSouerVCr1bBq0ysVuhVCRedfo2KB68ysVqhVyVkdPp1WLwOXmVitUavStjo9GtUPHiVidUavSqho9OvUfHgVSZWa/SqhI9Ov0bFW6/SyUKnX6Pioldr9GqASHTC0OnXqLjo1Rq9GkASnTR0+jUqLnq1Qa8GmEQn+Jx+jYqLXm3QqwEo0Uk+p1+j4qJXG/RqgEp0os/p16i46NUGvRrAEp3sc/o1Ki56FdlSEdgSnfBz+jUqLnm1QLZUBLZEJ/2cfo2KS14tkC0VgS3RiT+nX6PiklcLZEtFYEt08s/p16i45NUC2VIR2BKdAHT6NSouebVAtlQEtkQnAZ1+jYqLXkW2VAS2RCcCnX6NioteRbZUBLZEJwOdfo2Ki15FtlQEtkQnBJ1+jYqLXkW2VAS2RCcFnX6NioteRbZUBLZEJwadfo2Ki15FtlQEtkQnB51+jYqLXkW2VAS2RCcInX6NioteRbZUBLZEJwmdfo2Ki15FtlQEtkQnCp1+jYqLXkW2VAS2RCcLnX6NioteRbZUBLZEJwydfo2Ki15FtlQEtkQnDZ1+jYqLXkW2VAS2RCcOnX6NioteRbZUBLZEJw+dfo2Ki15FtlQEtkQnEJ1+jYqLXkW2VAS2RCcRnX6NioteRbZUBLZEJxKdfo2Ki15FtlQEtkQnE51+jYqLXkW2VAS2RCcUnX6NioteRbZUBLZEJxWdfo2Ki15FtlQEtkQnFp1+jYqLXkW2VAS2RCcXnX6NioteRbZUBLZEJxidfo2Ki15FtlQEtkQnGZ1+jYqLXkW2VAS2RCcanX6NioteRbZUBLZEJxudfo2Ki15FtlQEtkQnHJ1+jYqLXkW2VAS2RCcdnX6NioteRbZUBLZEJx6dfo2Ki15FtlQEtkQnH51+jYqLXkW2VAS2RCcgnX6NioteRbZUBLZEJyGdfo2Ki15FtlQEtkQnIp1+jYqLXkW2VAS2RCcjnX6NioteRbZUBLZEJySdfo2Ki15FtlQEtkQnJZ1+jYqLXkW2VAS2RCcmnX6NioteRbZUtPSopJOTTr9GxUWvIlsqWnpU0glKp1+j4qJXkS0VLT0q6SSl069RcdGryJaKlh6VdKLS6deouOhVZEtFS49KOlnp9GtUXPQqsqWiCV5lYhXZUiGypQLZUtEErzKximypENlSgWzJXAWv0rFqkC0ZkS0ZZEvmKniVjlWDbMmIbMkgWzJXwat0rBpkS0ZkSwbZkmnpUcnkLRlkS0ZkSwbZkmnpUcnkLRlkS0ZkSwbZkmnpUcnkLRlkS0ZkSwbZkmnpUcnkLRlkS0ZkSwbZkmnpUcnkLRlkS0ZkSwbZkimCV+lYNciWjMiWDLIlUwSv0rFqkC0ZkS0ZZEvGBK8ysYpsyYhsySBbMiZ4lYlVZEtGZEsG2ZIxwatMrCJbMiJbMsiWTEuPSiZvySBbMiJbMsiWTEuPSiZvySBbMiJbMsiWTEuPSiZvySBbMiJbMsiWTEuPSiZvySBbMiJbMsiWTEuPSiZvySBbMiJbMsiWjA1eZWIV2ZIR2ZJBtmRs8CoTq8iWjMiWDLIl44JXmVhFtmREtmSQLRkXvMrEKrIlI7Ilg2zJhEODmLwlg2zJiGzJIFsyLT0qmbwlg2zJiGzJIFsyLT0qmbwlg2zJiGzJIFsyLT0qmbwlg2zJiGzJIFsyLT0qmbwlg2zJiGzJIFsyLT0qmbwlg2zJiGzJIFsyPniViVVkS0ZkSwbZkvHBq0ysIlsyIlsyyJZMGbzKxCqyJSOyJYNsyZTBq0ysIlsyIlsyyJZMGbzKxCqyJSOyJYNsybT0qGTylgyyJSOyJYNsybT0qGTylgyyJSOyJYNsybT0qGTylgyyJSOyJYNsybT0qGTylgyyJSOyJYNsybT0qGTylgyyJSOyJYNsyVTBq0ysIlsyIlsyyJZMFbzKxCqyJSOyJYNsydTBq0ysIlsyIlsyyJZMHbzKxCqyJSOyJYNsydTBq0ysIlsyIlsyyJZMYEtM3pJBtmREtmSQLZnAlpi8JYNsyYhsySBbMoEtMXlLBtmSEdmSQbZkAlti8pYMsiUjsiWDbMkEtsTkLRlkS0ZkSwbZkglsiclbMsiWjMiWDLIlE9gSk7dkkC0ZkS0ZZEs2sCUmb8kiW7IiW7LIlmxgS0zekkW2ZEW2ZJEt2cCWmLwli2zJimzJIluygS0xeUsW2ZIV2ZJFtmQDW2LyliyyJSuyJYtsyQa2xOQtWWRLVmRLFtmSDWyJyVuyyJasyJYssiUb2BKTt2SRLVmRLVlkSzawJSZvySJbsiJbssiWbGBLTN6SRbZkRbZkkS3ZwJaYvCWLbMmKbMkiW7KBLTF5SxbZkhXZkkW2ZANbYvKWLLIlK7Ili2zJBrbE5C1ZZEtWZEsW2ZINbInJW7LIlqzIliyyJRvYEpO3ZJEtWZEtWWRLNrAlJm/JIluyIluyyJZsYEtM3pJFtmRFtmSRLdnAlpi8JYtsyYpsySJbsoEtMXlLFtmSFdmSRbZkA1ti8pYssiUrsiWLbMkGtsTkLVlkS1ZkSxbZkg1siclbssiWrMiWLLIlG9gSk7dkkS1ZkS1ZZEs2sCUmb8kiW7IiW7LIlmxgS0zekkW2ZEW2ZJEt2cCWmLwli2zJimzJIluygS0xeUsW2ZIV2ZJFtmQDW2LyliyyJSuyJYtsyQa2xOQtWWRLVmRLFtmSDWyJyVuyyJasyJYssiUb2BKTt2SRLVmRLVlkSzawJSZvySJbsiJbssiWbGBLTN6SRbZkRbZkkS3ZwJaYvCWLbMmKbMkiW7KBLTF5SxbZkhXZkkW2ZANbYvKWLLIlK7Ili2zJBrbE5C1ZZEtWZEsW2ZINbInJW7LIlqzIliyyJRvYEpO3ZJEtWZEtWWRLNrAlJm/JIluyIluyyJZsYEtM3pJFtmRFtmSRLdnAlpi8JYtsyYpsySJbsi09qpi8JYtsyYpsySJbsi09qpi8JYtsyYpsySJbsuG4ayZvySJbsiJbssiWbEuPKiZvySJbsiJbssiWbEuPKiZvySJbsiJbssiWbBO8ysQqsiUrsiWLbMk2watMrCJbsiJbssiW3FXwKh2rDtmSE9mSQ7bkroJX6Vh1yJacyJYcsiV3FbxKx6pDtuREtuSQLbmWHlVM3pJDtuREtuSQLbmWHlVM3pJDtuREtuSQLbmWHlVM3pJDtuREtuSQLbmWHlVM3pJDtuREtuSQLbmWHlVM3pJDtuREtuSQLbkieJWOVYdsyYlsySFbckXwKh2rDtmSE9mSQ7bkTPAqE6vIlpzIlhyyJWeCV5lYRbbkRLbkkC05E7zKxCqyJSeyJYdsybX0qGLylhyyJSeyJYdsybX0qGLylhyyJSeyJYdsybX0qGLylhyyJSeyJYdsybX0qGLylhyyJSeyJYdsybX0qGLylhyyJSeyJYdsydngVSZWkS05kS05ZEvOBq8ysYpsyYlsySFbci54lYlVZEtOZEsO2ZJzwatMrCJbciJbcsiWnAteZWIV2ZIT2ZJDtuRaelQxeUsO2ZIT2ZJDtuRaelQxeUsO2ZIT2ZJDtuRaelQxeUsO2ZIT2ZJDtuRaelQxeUsO2ZIT2ZJDtuRaelQxeUsO2ZIT2ZJDtuR88CoTq8iWnMiWHLIl54NXmVhFtuREtuSQLbkyeJWJVWRLTmRLDtmSK4NXmVhFtuREtuSQLbkyeJWJVWRLTmRLDtmSa+lRxeQtOWRLTmRLDtmSa+lRxeQtOWRLTmRLDtmSa+lRxeQtOWRLTmRLDtmSa+lRxeQtOWRLTmRLDtmSa+lRxeQtOWRLTmRLDtmSq4JXmVhFtuREtuSQLbkqeJWJVWRLTmRLDtmSq4NXmVhFtuREtuSQLbk6eJWJVWRLTmRLDtmSq4NXmVhFtuREtuSQLbnAlpi8JYdsyYlsySFbcoEtMXlLDtmSE9mSQ7bkAlti8pYcsiUnsiWHbMkFtsTkLTlkS05kSw7ZkgtsiclbcsiWnMiWHLIlF9gSk7fkkC05kS05ZEsusCUmb8khW3IiW3LIlnxgS0zekke25EW25JEt+cCWmLwlj2zJi2zJI1vygS0xeUse2ZIX2ZJHtuQDW2LyljyyJS+yJY9syQe2xOQteWRLXmRLHtmSD2yJyVvyyJa8yJY8siUf2BKTt+SRLXmRLXlkSz6wJSZvySNb8iJb8siWfGBLTN6SR7bkRbbkkS35wJaYvCWPbMmLbMkjW/KBLTF5Sx7ZkhfZkke25ANbYvKWPLIlL7Ilj2zJB7bE5C15ZEteZEse2ZIPbInJW/LIlrzIljyyJR/YEpO35JEteZEteWRLPrAlJm/JI1vyIlvyyJZ8YEtM3pJHtuRFtuSRLfnAlpi8JY9syYtsySNb8oEtMXlLHtmSF9mSR7bkA1ti8pY8siUvsiWPbMkHtsTkLXlkS15kSx7Zkg9siclb8siWvMiWPLIlH9gSk7fkkS15kS15ZEs+sCUmb8kjW/IiW/LIlnxgS0zekke25EW25JEt+cCWmLwlj2zJi2zJI1vygS0xeUse2ZIX2ZJHtuQDW2LyljyyJS+yJY9syQe2xOQteWRLXmRLHtmSD2yJyVvyyJa8yJY8siUf2BKTt+SRLXmRLXlkSz6wJSZvySNb8iJb8siWfGBLTN6SR7bkRbbkkS35wJaYvCWPbMmLbMkjW/KBLTF5Sx7ZkhfZkke25ANbYvKWPLIlL7Ilj2zJB7bE5C15ZEteZEse2ZIPbInJW/LIlrzIljyyJR/YEpO35JEteZEteWRLPrAlJm/JI1vyIlvy/39rX7bkSI4k+S/13A/EDe8/2G8YaaGwMphZsRXXBBlVnTPS/770wyzMACjgjNwRGWlWhkP9UBwGhcJQakth1ZaAbymU2lLoakuh1JbCqi0B31IotaXQ1ZZCqS2FVVsCvqVQakuhqy2FUlsKi3qUgW8plNpS6GpLodSWwqIeZeBbCqW2FLraUii1pbCoRxn4lkKpLYWuthRKbSks6lEGvqVQakuhqy2FUlsKi3qUgW8plNpS6GpLodSWwrSyCtpqqS2FrrYUSm0pTCuroK2W2lLoakuh1JbiYWW13VZjqS3FrrYUS20pHlZW2201ltpS7GpLsdSW4mFltd1WY6ktxa62FEttKS7qUQa+pVhqS7GrLcVSW4qLepSBbymW2lLsakux1Jbioh5l4FuKpbYUu9pSLLWluKhHGfiWYqktxa62FEttKS7qUQa+pVhqS7GrLcVSW4pmZbXdVmOpLcWuthRLbSmaldV2W42lthS72lIstaVoV1ZBWy21pdjVlmKpLUW7sgraaqktxa62FEttKdqVVdBWS20pdrWlWGpLcVGPMvAtxVJbil1tKZbaUlzUowx8S7HUlmJXW4qlthQX9SgD31IstaXY1ZZiqS3FRT3KwLcUS20pdrWlWGpLcVGPMvAtxVJbil1tKZbaUnQrq6CtltpS7GpLsdSWoltZBW211JZiV1uKpbYU/coqaKulthS72lIstaXoV1ZBWy21pdjVlmKpLUW/sgraaqktxa62FEttKS7qUQa+pVhqS7GrLcVSW4qLepSBbymW2lLsakux1Jbioh5l4FuKpbYUu9pSLLWluKhHGfiWYqktxa62FEttKS7qUQa+pVhqS7GrLcVSW4phZRW01VJbil1tKZbaUgwrq6CtltpS7GpLsdSWYlxZBW211JZiV1uKpbYU48oqaKulthS72lIstaUYV1ZBWy21pdjVlmKpLcVFPcrAtxRLbSl2taVYaktxUY8y8C3FUluKXW0pltpSXNSjDHxLsdSWYldbiqW2FBf1KAPfUiy1pdjVlmKpLcVFPcrAtxRLbSl2taVYaksxrayCtlpqS7GrLcVSW4ppZRW01VJbil1tKZbaUswrq6CtltpS7GpLsdSWYl5ZBW211JZiV1uKpbYU88oqaKulthS72lIstaW4akvAtxRLbSl2taVYaktx1ZaAbymW2lLsakux1Jbiqi0B31IstaXY1ZZiqS3FVVsCvqVYakuxqy3FUluKq7YEfEux1JZiV1uKpbYUV20J+JZiqS3FrrYUS20prtoS8C3FUluKXW0pltpSWrUl4FtKpbaUutpSKrWltGpLwLeUSm0pdbWlVGpLadWWgG8pldpS6mpLqdSW0qotAd9SKrWl1NWWUqktpVVbAr6lVGpLqastpVJbSqu2BHxLqdSWUldbSqW2lFZtCfiWUqktpa62lEptKa3aEvAtpVJbSl1tKZXaUlq1JeBbSqW2lLraUiq1pbRqS8C3lEptKXW1pVRqS2nVloBvKZXaUupqS6nUltKqLQHfUiq1pdTVllKpLaVVWwK+pVRqS6mrLaVSW0qrtgR8S6nUllJXW0qltpRWbQn4llKpLaWutpRKbSmt2hLwLaVSW0pdbSmV2lJatSXgW0qltpS62lIqtaW0akvAt5RKbSl1taVUaktp1ZaAbymV2lLqakup1JbSqi0B31IqtaXU1ZZSqS2lVVsCvqVUakupqy2lUltKq7YEfEup1JZSV1tKpbaUVm0J+JZSqS2lrraUSm0prdoS8C2lUltKXW0pldpSWrUl4FtKpbaUutpSKrWltGpLwLeUSm0pdbWlVGpLadWWgG8pldpS6mpLqdSW0qotAd9SKrWl1NWWUqktpVVbAr6lVGpLqastpVJbSqu2BHxLqdSWUldbSqW2lFZtCfiWUqktpa62lEptKa3aEvAtpVJbSot6lIERKZXaUlrUI/wwJauLepSBESmV2lJa1COMXrK6qEcZGJFSqS2lRT3C6CWri3qUgREpldpSWtQjiF5qS2lRjzIwIqVSW0qLeoTRS1YX9SgDI1IqtaW0akvAWZQ2belf//jt8eWv8/v1/PB/Xh7O//7tn//1X78dj9efb+ff/vG/vx0f13+cH3LB/e2f//vbbKb55//+5x+/zb6X7UeiH9P24zY5337QxRNdPNHF03bx7CfYfjj6EehHoh90saGLDV1s6GJDFxu62NLFli62dLGliy1d7OhiRxc7utjRxY4u9nSxp4s9XezpYk8XB7o40MWBLg50caCLI10c6eJIF0e6ONLFiS5OdHGiixNdnOjiTBcTg5EYjMRgJAYjMRiJwUgMRmIwEoOJGEzEYCIGEzGYiMFEDCZiMBGDiRhMxGAiBhMxmIjBRAwmYjARg4kYTMRgIgYTMZiIwUQMJmIwEYOJGEzEYCIGEzGYiMFEDCZiMBGDiRhMxGAiBhMxmIjBRAwmYjARg4kYTMRgIgYTMZiIwUQMJmIwEYOJGEzEYCYGMzGYicFMDGZiMBODmRjMxGAmBjMxmInBTAxmYjATg5kYzMRgJgYzMZiJwUwMZmIwE4OZGMzEYCYGMzGYicFMDGZiMBODmRjMxGAmBjMxmInBTAxmYjATg5kYzMRgJgYzMZiJwUwMZmIwE4OZGMzEYCYGMzE4EYMTMTgRgxMxOBGDEzE4EYMTMTgRgxMxOBGDEzE4EYMTMTgRgxMxOBGDEzE4EYMTMTgRgxMxOBGDEzE4EYMTMTgRgxMxOBGDEzE4EYMTMTgRgxMxOBGDEzE4EYMTMTgRgxMxOBGDEzE4EYMTMTgRgxMxOBGDEzE4EYMTMWgOROHtl+NfgX8l/sUlDJcwXMJwCcMlDJewXMJyCcslLJewXMJxCcclHJdwXMJxCc8lPJfwXMJzCc8lApcIXCJwicAlApeIXCJyicglIpeIXCJxicQlEpdIXCJxicwlMpfIXCJzicwlJi4xcYmJS0xcgjk3zLlhzg1zbphzw5wb5tww54Y5N8y5Yc4Nc26Yc8OcG+bcMOeGOTfMuWHODXNumHPDnBvm3DDnhjk3zLlhzg1zbphzw5wb5tww54Y5N8y5Yc4Nc26Yc8OcG+bcMOeGOTfMuWHODXNumHPDnBvm3DDnhjk3zLlhzi1zbplzy5xb5twy55Y5t8y5Zc4tc26Zc8ucW+bcMueWObfMuWXOLXNumXPLnFvm3DLnljm3zLllzi1zbplzy5xb5twy55Y5t8y5Zc4tc26Zc8ucW+bcMueWObfMuWXOLXNumXPLnFvm3DLnljm3zLllzi1zbplzx5w75twx5445d8y5Y84dc+6Yc8ecO+bcMeeOOXfMuWPOHXPumHPHnDvm3DHnjjl3zLljzh1z7phzx5w75twx5445d8y5Y84dc+6Yc8ecO+bcMeeOOXfMuWPOHXPumHPHnDvm3DHnjjl3zLljzh1z7phzx5w75twz554598y5Z849c+6Zc8+ce+bcM+eeOffMuWfOPXPumXPPnHvm3DPnnjn3zLlnzj1z7plzz5x75twz554598y5Z849c+6Zc8+ce+bcM+eeOffMuWfOPXPumXPPnHvm3DPnnjn3zLlnzj1z7plzz5x75twz5545D8x5YM4Dcx6Y88CcB+Y8MOeBOQ/MeWDOA3MemPPAnAfmPDDngTkPzHlgzgNzHpjzwJwH5jww54E5D8x5YM4Dcx6Y88CcB+Y8MOeBOQ/MeWDOA3MemPPAnAfmPDDngTkPzDnrVoaFK8PKlWHpyrB2ZVi8MqxeGZavDOtXhgUswwqWYQnLsIZlWMQyrGIZlrEM61iGhSzDSpZhKcuwlmVYzDKsZhmWswzrWYYFLcOKlmFJy7CmZVjUMqxqGZa1DOtahoUtw8qWYWnLsLZlWNwyrG4ZlrcM61uGBS7DCpdhicuwxmVY5DKschmWuQzrXIaFLsNKl2Gpy7DWZVjsMqx2GZa7DOtdhgUvw4qXYcnLsOZlWPQyrHoZlr0M616GhS/Dypdh6cuw9mVY/DKsfhmWvwzrX4YFMMMKmGEJzLAGZlgEM6yCGZbBDOtghoUww0qYYSnMsBZmWAwzrIYZlsMM62GGBbFlNYF+Rf6V6Vc68C87/7r93CTr5b9mCft4/Pv3H8fTt2/ny+X98ccf18vx+/u5UKuDVKuHSK8fL9c/Tpc/KqDbGPcJlJPfA/T4cPvT4/fH83sFNx8ax3DLUXFdvPcfl8vj89vTuQKa81t9As1ZrXpAvz+9fvuz+X7BHQTOwe/A6bzenEtNPFUeoP28nmvqvPxE0+ALfXt9ub6fvrW5u4146t3yLqi307c/Tz/OTcT5dDhBn+k/3MP57en1Z103rXisuAsDvJ6VrxcOO4Au1/e30/vpudFivFjfmb3qXbDHb9fH15fT+8/Tw0OjGvikqsHgyRjs8Xp+7jWeqBqP3fuMMyx+8TmXm2xJ/Vry8PjjfLk23thLkEE/cX4/PT7UFT9OouLbPsSP83X+/63HeX2bX/VCHdDx8yOqCpNke7hNZf+/3OF4uhxvX/fx5Ye+l2wpN7K+cK/n08/fz2ufc7sfuk9Q9+n3OHvu0/5yskLfJmtfuMvL68P5ODeX26ilsSeF/RXe/zq///56ebz+VMBZ0T3o/gj4Y2k1jy/fX++hYT44QdR/s+8Dje7VomI+5kDead/nqu+E6JiPIpD4X/1qTUrmswIE+KAH28B/Pz2dXr6dhw+eZYub8xPdj/328X45Hz/ez981sqxIYV9FgsigAqlWEPa1guIel+vpej6+v75ej/OAqeGTgt9VP/vw6D1kfxT29UfFjdpVJyvgsA94bkh3tWOvwsr0q3dptmCvgsR4/z1gE/Cq7aZ9FVUitz+9Ux/ljk9/CyhfLt/P75d7OPCTuN10BwWDu7W48JNoF9MgUOveCw5vByPvsJ+S6g5Nbvwkg6a8q9tYQ2GC3aL0ssdwMlhKgyh9BNwm2smAb96scfctvj++nJ4e/+d8q0lvb++vf52eLvodnHyHXTVJ3wCx6mQ3N+8ZuBu5yaaT3XTaFwLrOJ8/Pv/rcf5nUP3nfDWfLTsOJpt33XCdbeibyd4pDCYa3ZshWuYcNvJ99jHevEVnMJ2zK8kX+QWado2pcyYqeb99ta15v2atyyp4jfuC13kOd2eQ7LKs3ftCnO5tWlXaZdmp7IvVipvARj/JLnFfgFlAt1v9JLupfcPrDffy8fx8o/eu2eKkpkRx79fp3qrFQgwy3nSHvVWquBEcVCc1ux4opRC+PW2c1Ix6X/xxeTt/+3g6XR//Op//ff6mh0A1XhvJ9UC23AMOYigjq+q06/uA2+wK2YxUifexvet2zZjNJHmzXd0IuBmqX95M8ha7mgm4RTtqkxJo3hdcLUPFPFLMA8Vd5DgxyOe4j5zxzZrUODHE5309WfNWkBgniRmotL0btGmRgnkerAXM6P/9cX7/Wcxefzy93v5lG9mBnKY0nMMODad1o10dvlXLG/ZrrwS7YasUeDeuWi30VRpBX0rdYUdosucO4Fup4PGwI3hs3asTNwalfh12qF87boDeJarvNu7BWrdqj49WVV63s/LS8tIcl945SVFrhmnHJGX3DRuTFBW4pB1DGbwZnKSoBZe4Yx4Eb9GbpAQZ6sUdwsPeu4BJilqQjTsiG3i/9iTFy5Av7gj5FP6fZ4766J+Ot39Td1BLwXFv9z+4A/haVk28/dffZsdwk9UgEPcOAo2b7Rly5jyD4m7uzoon7gYbkFN3CF+/w9vpqhuN8wr5zr6tQAbfRy1bx8Gyde8evdavOul4byeNb4I4V++0NxBo3K7d9p1qLTvCvgV+bRrLC9zRWqKqA3ZvHWjcrOhfolojt4M18gFwm4dbR6JusZOHxi32tPSoFjLsjoUMdDfU0qPy09iBn6Z3h7KlR58V8terFG7pUS3H2B3LMegenZYeVduwv9A2drX0qPpeu7fvbdyu2dJjUBV4LHUWRoDKI5RkBTLjoW/Du1XEj6fa5hKi0obGKwqNhfHKOiOlGuPHYoPABI+ZDsp/NA5ii7i/wktK8B6PJhseeryo1rrHyxxqibJCUzXSj2vkgoYeTQ1kfjyQtZfqKmvTJD7gNO75NSp4Vi+V7ikOQb/9cXp8mVUq9O6TbCth3J0Xa3GloU661dJ4Nr2igWdzUXzAHVOm9upHiZoPytgxniNpWPgdlVNhLCAXawTVu2dRwdN4qrDBoS+ZRQ1P46Zcq+ZVp6jqjRnXm09I1M3KNzZm3KTn+GEeXD5QWwmTMpmN18nfzrjhJSvB/HghC0jDVYOWAlQaj31NYbMCldONPF4PU6CoDknXRBr3PH+dnh4fTtfX91sX9PLjjL5rVKKVHYlWnyFFxzM7ZyuVskT/Wed3bjp655SqEqbfCOf4vHq5pMy7g2b89Dgbdr/BLyXXD4wdOFmXCLWqF0nUi2kw0L2dfs7/ik3Ec4JPKZv1+4C5cd3+9b3+SkkFWGEQYL19/P70+K31tb382tPgYy/ycKcOOflycdAu3z76I1kIqicaLF+1VNkK8SARD3cgokeUm0emgZIHVbyqinj5mHHQBSN9oEI1CnUQS6K5SNW+nGzudrDUX6LCRiujcjvwYF4e/qxrtZXLrAPX0eU2l55fDrbZoF7yMHjJy5cM9zKaNoNOZu8dkBHeq3v1K0L7XvsM9yo2Gcibe+7T/nJytDCDDqx9F7hql1W8NtC529jAcK/oHiibBPxVw72svH6whL73Xi0qklHu18GQhO+EDfdqsj5s1Xca7lWoOugeL3ca7pUqMBBK29jIcK8Mb/sq0r2Ge9UKwr5WcI/hPiv4XfXza4Z75arc1x/tM9wr4MEkjIDvNtw7VfsH7pTxXZot2KlGMJivtO4Bm4ASX/1AfG0htz+9Wuv0g7VOCftFw71gehrI1HfcrekQmmRgPpDdu/fChns5sRlE6907tAe5w0G+wK5uY6fhXgozA0/QCBgYcKUangZmmuYthoZ7L2+wqybtNdxLEWxgnWkiA8O9FCkHywME+0uGezVdGczV7rphy3Cf1M328X2n4V65TAaLF91bdA33ShUYzEjvuQsy3KuthAO1p3s/YLhXatK+4PVLhntZu/eFOPcb7qX8m/bFarsN97JL3Bdg7jPcy25qX2TzVcO9mhINFuR33qrpWlCmMjtYIYE3woZ7NbserGBBeGC4VzPqffHHHYZ7yfW+7/Ilw72sqgOZuX+bfYZ7abQeWCLvuV0zZpO+1TzQdvs3g75uaVHL+yKT+wz3chVkX3D1C4Z70b3nfT3ilw33UhHc10Peabj38gb7Ktodhnu5lWNHR/xlw70MIA47NJyvG+5Vzp3Bygy6EzbcK8l2kFUEofcN9+oOO0KTXzHcq2+1I3i823CvVkZ2qF+/YLhP6lbjRn+H4V5V3kFKBYb+FcO98gvvmOP+iuFeuSLjjsjifsO98uHFHQHGlwz3KulTHOQSuOcuYJKiUlXEgc2ke7/2JEVZ8UbLnhX+LsO9mjwOvAl774AcymriPfBs9O61y3CvXmzvIPBlw72qeKN1xS8Z7tUddoi0+w33qhIPdgyOkJHhXs22d8QwXzLcqxe5t5O+33Cv3mlvILDfcK9ayw7F/JcM9/LT2b11YI/hXgHv7SHvM9wro8AOpf7XDPfK9jPYvt+7GzbcqzsMHJG9O9SG+0khf71K9Qz3ymGxdwi+13CvXuQX2sZOw716p719737DvarAI6lTT7mRMVnKtWnAAq26NG13QW2TOwxWUZfF3tolLa3XgxnyjAAeRM0kuuHDrciP88vcuo7X15nkW4t+e318uRZBgrLNbsdj9SHP/3654b2+aweUkhi3Q7VGOG+v79ejVTBZ7bLtLmVuMJUXS2UX2c756kM8n55uPZ5+Dhms98XZDeT93EBR23hxq3n4+XKLHt/Px+Pr2+V4/P7xskxYbr9enj+ux+PpePu/14/r2/wfx2Ui+/fp8nykex+/Pb1ePuby8z/zfxwfzpdv74+3Hv32RH+9/nn73z/O0+kwD9XBn/zvc7+hnndSz+vA88qkz7K8mrXvKTxXTyWJS+8xTjFUQhz/fr/N6zSQk0BozC2yV7/OX1S/kpMSJ05NpYAel4c6/f5UPNIkkVCNKpFeXl+KvMXSBgo1yhLmVjsbT5TkE6HepIRaPnaNlSXWrg/+cv5bQwQJsevNqq8jFxsDHN4VxvxpNEaWGLteZcaoK7ORdXBX1SGcVo32Em1X9VnQGkhWIu36RjWIXELGe1Y2w54a61Wuw/nK5UiNPgAI2q3cw+Whxr3XvWmlM8EPn2nujeulHiv7MAdjcZHuXpUWL2TRIKpT5b8+f399fz5dr+eH2yupqENGohkqTiUcG9o1llx+geFUifVxizjy6f39pMGktpd7zZTBis7CSzUtw0mVRLi+yu9UrpbIiUGGjiCN938vry/6tWTmnl7PoQ8oUA0ryNqzF2H51qBKxSgDItcbeRqgqG5FtYPA9UaPBmqzikW1fcP1BpECsqgcSc1QPZyh1kA1pzHKwNbhAVd3/kqIhzS2Ono5vkMBf44v3vUMTW+/wOXKybaRNleH7/j2OM/dZjO/LK1S4K2i1nKGz/bj85QRPniETiXJ9KeJzhqZtoNI7GH7kzUH+kF/cvQnT3+ig1H4/Dfntrs7v13swnaxhxLVfMiH+pzSIAj7YT4ZRLu5xCACm8VlW3RRVMg2tZ171yyrT37QEEFCQDZX5/Y6+Vd86uyoqPhfp8enOQTcpKL3eUOdegwZrVjYAFrfQE7ftvPscMnjX6enD/0CKkkHLD4/trrtQc2DUTVZX7fsYY1KjZoyVTY0BdpQbtGZ7vuNbE0Oxh9r8cvPl2/6k0vmoeuRD6HRFi1RZSFZ4via1+f1CA49+kkXAJxzfcKUQ7rcJJlhXPpZvjUAy6gABskSohEKyORbE+xKi1N4tFVFxMbdSlAMi7WBXy1/eTgjboH9cZ5jd42mHN1wSlKilcOrkmc9DP5LmJqvpPbFesz5x+PTQ2v4MXJ6vp252io/n3Gkwz05BeqV6kWxMl6ZYLiywlSVXaZNgNHTt9PT0/E8b1JdtDsVJ8iIFW89WvItLClQqj7PyiUpBxvsJ0JHj7ayC3RQjl6xlutUvCatd903KYtGtWmgV3JWjY9VRTDK1AuH3E+E8gGMjPQsDJ+2PedaLROfzMJ152/L7snbeP2qp76CO8uRzzbybMEWnR5HJ8aFLYqiU+Do5Le0xW00cn0egH2gfzH04/Pk4s/jWLcfFG5th9wsJ0xuPz7PGuQj5uhiPiKQTwOkQI5PZ+aDmPnMZT4imU9DtnR3Ps+YDzHmk4YthZqWhAdHoaajF3SW/sVZ+rG9BZ+4y4fr8um52wk4tx/0WbzbPq6nSJUPavX0ffj4VU9xMh+guh3XNf+ga+gUxEDPzOeVBnp4PnE0UJzMJ4VuO+PmSgCbCXBIWJloAZ95MrY/WBmcbeeQdoDKPkYupEJtujiLriOOyIndBOd1FV4jYJAT7AnOryskNKrIpSJoElVofWlDHpc34e61PnlPo4iPj0bM9ul9HRFBJVpw0BGJcBsLlfLr3RBHn69EbHMSo0okj3v5BmqXmyjHL+Ng1P5w/n76eFLjf1YJfhK0rDXM6DJvCvXQdO6qo44nwLckB3qt7TppRMA+GgKoRAynmjhcL6PyxZzdyagOJ+TsGeitXAHbTnfGEM2IxMnshzh5J9h/Z+QD8GHv2znYfRj0RqJzwhOIDadckpGG9Qgb01b48vhDBedOehSwsW4rfX18nrMnPb/pjylP6YSmKYKoJhhOhkkR9i9U/vqkby6X2uDqwlZ4Sy903o74fPwfXSvkFBtn9d2w/n689euN5iVXB7ChT4C0a6j0M+BEvALmcwZSYcl0xTjlqsCqtAfpv8QeMoHw/Prw8XSuQnknpzPY+yaAwFDnZGCOs9YqoCUzkQaRAyb0jNQgp5eHLWmK5kz2bZ1xguEuszPmWoRyTm6kwFmRFUz9LFLhxCZWCTK/1en9ofmdZJcPbaMCrN1RSPspTsAjYTbLj0aRDzMaABeUosuQaacj3CD8eZ6wmgarzP/9saenw6k58aCqNIU4GZVNg04TKXFqmXfwJbEUp2T4wefkHEPqm6rNHWjGUR7L3JYpnFQXI1wjLMHKMVWGX9jUWqKszbmcmjm5Khth0sMabGnUzRBOnnOAd13UiFf41eT7wrXeFiB6ZzkKwsW9NmDnvSUq1DRbqO0OSYqk+KCAJl7Rp0iRFO8baSBtswbwfHKQG8wemqjlU8quEy48lXjg2WRQAbcrV1jlE8l4AFoE9u1GstLA6SeSWeBiyXjLkZVHyXoSpPC5vgKxaBBGnZ8IVVC8aKjP1d5Xvl5zV0locO8IzplXWCqZOKQfnVh/ezJhh5j34esptzIu4FBhAE9z/QpfDeMOh9cD/M+/lzYJlc/O4Zh7cIPL+fxQ5ryKarx0eIqBsBsGCnUGvcMBvoJsDubqbO2dzwbH4aTO2AlwnQ/BXTgd3QzyUJCU1HFBARpHO+hUwdrwKnk5XD/qwH/+SQErs1CAYmYHuMqjpmw9Aa6TIcjGsqHy5ASo3daxsbKX4yniUu5Y1pio1qkcnhiuxdvReVRHk7vRM7RVzqRO2PB4hFxBWo1S6Y54IkgADelSjRoOztzO76fjloBDr5uJimYPmwxpDZr2zBlVlMNKbVzwaDlgKVZNcGQXPcEeei1bOUy87CMn2A3NW1M+FpPNukFFjf1SpfawIg3yXFnp3PIT+nLlBgmpJPBiFy9fbf+7LV6RcYoWquL297j9Ny1XJVoDpLUpc6B/MfTDbphbBtZ5nZB/kApNK5WGlioN3dFE+hNL1pn+lGlRcaI1wIOlH5kqFv2JlvUs2cQs3d0GXkKkP9GKqCV53E7bYziqso5e0NHSqHO8Hhvp89JaIi39OXpBb2hV0LFJjVb8eB3X81oiCcL0hD5ScVpQ9bSg6umz+InZpMVAY+kHLQ1bCkBptTNwHaBFzgDnWs2tE1I7hlP3putF9m5QQBchnupXpGKMD6Lp+GWlcEc1FEdZC1C5XmSk+mFhRD6XbVng5DoGPtBoKa37RCPXTyxc6F1KtnxgRsqDFiren+Uri5GRcp6FFrYlgP48CeTHnGhef0E5fbYJde8rzvnbn7cRpg0jKyGc5S5D9TKbLKN5I9cAbOy9T8eUKSUfC1dPu1G/kSoA3kXcDjrkQgybM6iPxNmjZ7Atk5l+Hek9gR7LrXRr7JcKjk29j4pWjuWyA3Wc1KGTmQKGRSVwEdkYKRzY1Hu/qgHJrstCk0Lbnic/a+jdtemel8so5I5xvaqmEiTpNixNdXDRrR2aqi2EcAPDUvbn5Rbn0yyn2XqlpoDPkZvBWmq+XObeRm+qGhkuhGITgFM++a2qbVWPRmGyuTuyZPkuBR8vv7++6B5cSl94J/9SuJhnGdnKbeSRq9e85iWMh/fT3/qrS/rhmD8bAhvjr5X7F1xGLUCUPm5bwxWK3CzpoJi0oGxW9rKXsqqLmLoPIiCaTyPXXR20zS4my3o4t8pdDdd1ROnmM6htBVCtAEZPWXUn1LVw2fb9Zf8CnbqfGJzIWPOqtjeh7qGB0q4lXqKhMfEHrU3MwYaeCcn9fodeFaldNEZulXDQbfJZuPUGRpp4HHTELSBaUdbvISeChx6/pS7d+qoygvZQWprR5rl9FR3IQ64cjJhk8faXyRKmV9+BwmCl98PBlawCod3+ZfuBJuEZaUlpsh4CphFkTc09npczv3TLk2XhZGJo0JbtF0YmDZTmF5HbZRycZc1ofOzWseGBtnLB3cFVt+roDy2myP4VrsiUx2oqLUnLaTsRWsNfUE5BvHhRY7X31wVlEDRwNb/Cu4Xefz6dj283Gr9rQHWmC5yYV4C1iBjUSoqBKynNk0IUg1JY9dA22Dp1VLGo8nPve5r+109qZc1DFb+NifbYJZV+vdvD1qgNNdwoJRTq69WJG5oCuRrZ6x7UqV3q8+s87zsR4KdXy2gBirQVHtwZmNTaVoDCbYWImlJSC3EBSkQVYINDtUgW4CJZcXCHZlBt4hshNPhT2dY6naA8uhaxpzLD4W23BVoVuSZ1gjxWygucxgdWmfE8XHZBx3DoLy3llIQmeOAEXb1yr3IV9Vpd6yxe8PG9XBqZoH6IUNt7XL3clzv1ZoVN0IZDTG52nYb1tQJsTS+8HMgnKBjUxxBrUmSdg06WxlnGqDGojFRYRW8gdnauJRW0hDtettU89D7+HhvqPBO9HCVnU714Wx5Nqb+8DHb2IqDP7qSNMfVmzAqtnuk5GYOlXhCggBpudBkcpt643zzGQ39sQRjeOAtOi9YfXY7bPXGjee40rPMqkQB0rSFY7HZKKs4IvfbZRIajuRr/cO4ohLukxGssFyeVkSD0tKwmbl2NsspVgDNUVeeQ6AokCAo97UOd5K2X8FWqkg4R+jBw1F5llU69EVrDgem/k469BNc4KrhGs5VOvQSNDq2zRvQXl9sooWnlR300uf7ocoWhF+xXB5yjKabKUtiN3CtI8O2D8tmYnj5QQTbmmWpNwUDL9I/1CPZGjhsrd3m7XmxbnuGuP71cF4IbKRso6NNH1ZK7I14NOcrBEmVNMbZX4SrwdoqRqBI83vcFYAqHeNBuz3tA8bb8qCJr01OWKtSn0+U6b0689eZbJuTS4qkiRNMbfdvgt8HnR5X0WJ1DYaHzrgX6cv739fjx9uP99FB8BZW2t9dFV5ivH+/b0ebLxr7Hlx9VZmuVO8HABBIt9ErljOq0s24cUoG9n09zeoRaaYlKGun2ljXo68fLw/Hp/PKjSCGtglQDk8y0MG//8X6dv2Qvs7NKJmTgQmULv2H0k0skxsItnC20j7fZna+fTWWd7kWwC8GNPlTu07I9yUQAwCDTKeUL7qos0Kq6l9QREB5a8AucxjTKKSEZGmjguVE6XpDZEqAtHxx1pJCkINCV0hRSiz25IN8L0RpAMO6TAXLqyRUt0E5LcjKiT71p9w5gcMiWHMBTbw7eukVDFJHDVupNw5sbZ+T+tPnif/yW4fbMGwYvzWwrMw3CZcuw0GULsWDgo/Ij4rQ5GLixmBSNiiR6SxsAtNV/qh6vt8bRzGxv5QjsoPVrxwEVVuo9wbE5k3ybA+wFuo1s5MZp6+/COUIvYVYbgvB2yRFsZZPKyvyOt4dhYOh8SlHJYDjAbUIXLvOs9mh05J4mWGvXgzrpHg7l80tVDkTpHsGHm1DRenOXWrGC2sgftzi0sVVA9JGbKynDFYEFom3AkoM0wcAnudUaPXLJZgwKLV4E5PaQ7RimjHt8ebzFd28f2n0pI7oA1wvmsmuOf11YugKh2jUXLqdrMmEzLHard09q26SV7dbD/Rg3hl5b9mu5q8pC+9dcurIdyi1T+GiWuWhlfZNbjCycRrcT86uIFEVZt6Ln57dr4fKWFhU4cW0k8VdhFOSmnbXfKoM1Lkt7nVvOSCvd1R7u8EfJ/q0yCMLCHS+zBIAjw9wBvr3fQp2fb+9F8kPpF6BABzWN8ubSjmcD7X+AwwjMZuZkrBagi3kt3/AFJjXjxbbCFQC7y6NaXnIwzp1xwKaJqHZWutB7FLBpISoVERu2GELvXIjFzrzRE3Q3D0TlBMHGwE8wvIMgqoUMBxcyCKu9jSBmtWcXTgwZpcO22l4Mp0s1UqneqPUOB/tbAmpsBIjqlBzsgRQQDbE4qrVHfGICofTSqam1FuwbJqhKe8lqhyf0EFH5sYU9qlVa1+1lkI89ZlWdYfRGGLWrPKqD0x3cB8MI5bbwrLoYKJBQ+ZatPOqdAVDFnzFAcJGUqIvtggRRJ9hRZEBpjcpXO5mV7otN0Et5PPwlpfpjZ+oMU21BVh8RTu7nov3Eg2oV1cG4cgWqZsVZvQEU3ubS80dsUaHqNNSOZwSqTTdCqpqdlBrroBo71PSNFA8szPwH5XsjhQKsPTzdeojj+9u3wgUrreQw199cdi7akGnkvNXuBIDajFVzJajRFmjVCoyygFk44StgLrfB+PmkgZSEDad8BVCj1ioPGJYvn171fhiVlguUeT79eW4eBiRd19DgtZRuBurqOBhYu/cc22ml/dEH2uhNAbCnbdWetlVvmRrmTcLbZqZg6U+U5TjQXuXwGUgjovVDNiUuaaj0lMfZ01Ymn2gbdKYHosTQgbZ3B9p4he2Yz+eHx49n3Xbligss9vxaOAzkcBAyLtg2nKgxmV7WUE5uwymqYTT+/Ho9X66v3y5vemukqDErRIbuh7LRGqkxWTjA9TPsqDEK9qSDNDpqhIHd6ShXjgq7oXjbSYijAh+L2i9afzXqMB9cHJyDa6Ur2FN2Ak/J1D3VFU8Jzj0dqrOd7TD/oHZJmRACJRwIlPwh0HbRQDtow2fGeE4A0X34Yhu6nE46XAMKVUQtVSKuxsvSRp57jhX78mhgI11+llMm0McOMGjGJwFbOcUKlMkiwB3FC1IzoYCXOyQmOAQuAC2pystkLROUSpbyVbIU6dOFw/hStLGgJfcVTHDI3Uo3FthkopoJ9mNbYtHj6bkSJJPaKY4fYAN4/3E53v749nQrrGDkQA4TSSqY8lsYObzhc9gURn28lJF8uAOK9QjlPKfuPVanhxhZofCpZoRSabWSVgfHTCpeDTOSVQf1eCq+5eltPIUU5eGJsyVM/TRSx4U9zydM0XHI8c4Z3LjX4q1TbORgh7PgbwjN1GhG7sVy0M5ZQlRrVir9VxrV0U8c3ACzStaVRlWtAQmaZFZpAhNMsdwHrsy1KjMW9o32Uetmm1XysNTpwgEuaMhZhTgJKosQt1q3VcuMadQcasCyeWW1hTHBLYwQEDX/rLYyJhgkDoGrJ1Z7zxJc4ugA6y4iq51iCU5NIGCj08gqQk5Qg6kw5xSzvebqFFu7P6qChU1WLYlD+WoMXjdbdeBmJ8IZIbearjppoxPEdLBh81WfG871uth1w1APvHtAUaB1M1ZfGFp2uqC4KauK0Qnad4DXzVkNanDBdQBeNmlFXCcu7oA2m7V6WCi1z0bEpU7pQEIlAYJRKpVtTTqT4hmfAvMJ0pgBJtXnB9znl1ZMo7PGUWY+B6Oq98e/Ttfz9bWZE0k0gw0p4zChBWDkgpDDIwyV7Z3rJPvrCXfXDFXNw+SJgbjr5PK8hFJt5ZS1ZMI1TCBV0zrZbU241xIQbx/vl3Mpr3gZvUw4eJnLQl+cNMjAdEslBJqxS0kPjyILWPkyVoaOHu4y+SyMhFqZ6Qcu5y8wwNAn1+IdPEa+QOidIe5kEB+hLthCbCcrk/OMCK0PLbzyqzsZsES4kPT20bJ1WWlod9DDcSsM96xK4wLOCVwg4HQfakMQlis+WptWq2E1qOmcwdO5j9HW1aBmcQbO4v7743wbEVpZsKTj10ETnCrfzvkkpQNox1hx+EjCWSBWKDJRpoffpYHSzpgk/UhQHCrQylMWZZJIP/jA6qzF5hOpJKb9ry3Nx3pZUlZtmF+4BmnnUJL8w6X3BayTpkR6nQI8YFuiNJqstNDgxNU1CGy1chF6gqt0DcBGQwlqz9YB7tlqoDWardpcd4AexQWMKtVczZvfXoZTMABRULfq2USSe4/hCdkLknBHN5CctFIEaIYqkVp1QmqzMDprA+GVdLUhAYaeABUdEx+tWmDrM1HDovXIqHZB4QOJASza/x7VJi1776dtLOOrTVY4SzHcFWjU2clQ3ZnNt6qYSi/VKTTPqnSIIAqir0oFV8etHvHE06JOeCleFVWbV9AggDY6GpUoHjqja8OGkfKDhekmLw9/6meVUy1ovbuV4sSh7ZjOy/yFGfYJM1DnePWsTHcJmu4WGHzGelJdgIddgIbpbGrz0nSQYPwz49WfJihxDx+1PpcG+V2DskjiNGsFRCskCEr7MnAWyVAg02uyavsm1HdaOK3nSlZtK4UdBOG1vN3KzhygnbmAaD6NMlYHaKxmqLoKJlUFdwG0v4sUdTxcGtFAzURNQdbiCc4nAVKzMkk3/QRnlITYzAebtCUHrvgTSCNVkBR5sM6vAVqv46TagyVLBsLJYbMat/AZuACq9XBZOTXwucAE2UoT62QMmIYNpJcq1snANA0bCMpZorzjBnrHGzDN+qgMtjiNGMGBxLFRsWeH7DX2tqtMfMNOtjv0yAQ9cFcFQGp9JC8N2fgIc0LsppKNVjvGBo8HMsV42VlmuA6xgTS3/HoZnudu0+1sOHRSpMXLCytKtYkvq1E6dUfppiU5qr7edvt64H31cp9uhjomIzRT+DvlCeu+R6mXyzfIULqfS6I48iCfv3drqHoFNfYeumPvUPoKipNDl5OB/pXVnAQfVAyg2oOCyv8K140akKVpUwbwBp/w2kZqPpuk0uBzcj8RkSYWg+qPodzcRmo9WwzK3t6NhS6dfkvu9u12fhfUb8mJeu7GLrPzstlixKtkaARfED7TnzSAknJ2hG71lEhzJhX9VeQDwbl3C6Y5XEnhIHfHYgnX6ti8POwlw21hC9RSc+Rcqoylgpqrmu5c9ROtOW1RORC7fd4nUDf4lF0WPrd+Bmx9pqDMSAZHms2TopVvA9oDO4dCKy9Y5+YbAHC9WHkIlYer8gqmFL2sPJPI4+8oMWoni5V9jYeKEKFUOWet7P087uK38ue258XK7d8eSlqEUp1kIFMMeNw3bMVLN4iVaQY89ORTceRYsTK7h8eBYgFTPY1c8PNwP/8njNborFzg6ygVW/GGRm3lwp7HKt+K0PSeWnlmkR+1s08nzCBJQVAH9Bq4EFLhFoFgUDHkAceQJc6oXQeZRcEc4HbUPnC1ZKNyrRzgvuw+at32g1ehKJ6QItyqNwhyEdUc8IQQIYL+IagY64BjLIRbLYM7BYjHRwRYttrg1LfEkgMCRL1KcIp8PACPgKsnVjH1AcfUGFj3PEEGMDfyB91wDdhaRw0KE4t4NeZ13JsoeQeuhDaxxz2BVQ9+R324DnqDoHafwr3iY+RWj6AWh7Hi1cNu9ApqlopXKHqosGdQ2HClvYtdtzkFCrNYdEHrHkJ9W6xv9kBhL6Gmswc8nd0DXvcUqi7jqUkfvOwt1BiMlb4eaLPHULh48synGc0XP1SCgwCB5yXeMEhnaIKohAaY7+vD+fvp46mdwFHtE4AeIAFyVbJf0st7neI8ZVOvoE90x8Vhmm3pzeqMMddqm60+jh4XBEkWpVEJ19jHH4WRQKwYwbdtSx1WpsJ2cEdnX+awsudxE5yOdRQOKxfScDagPeqGlfK+g8f6jpQNK1Pt4VQzRf7b2pFjJT2dRd0WDjwZR1bQhAe8JiY4F0fatRKO1puQ88+PZS26fn8vK3XCA38TuJVZVi4o4rnKjgzVRqWgw8wMdSsrF+5xBqquZGXV2dY4rNujVlkZ0+KD1LqfRmaB8bxRnzfh03Z6+lMI9C+RElfgedSejMRGqrib5WzOEEC3OdCN6U8h0L/Q4cgBnsuKPF5G5QWnlAMOOvvmTJXNVJlZrcAnmHSgnf1YbjWnNBrQqQW3Rxg5kjuoqXTTK8lFV7dtPYlbcoW0fWabqXpAV1DjLBLV3W/lqeYQkduN8sa5OWxPYOyWJ8LQMxmqh4bqoQl0DVVIQ3XHUP4VQ/lXTN6oNhPt1Dk4+rH9yRrexEN/cvQnvwHaQNck+hMlsHDUZJylhCiUc8bRiztKV+Edf1JYc9obUYyMQByUwZopClRydfrk9Kk8vwcKx9qDqIxoYGoZKlomCbSyKXi4eUoWr5ZP5ZQ2w/Gi6e4xKrMl9PoXwauU+qk6GbjI8rnJ6vpa69SiC9zaAty1WZ9yYFR+U7h9ptr+I/e8YXfUsvGnt01MesnhZHRBKSmTHdcEVa6laLf38nIiMEF1awOq94ZlWRr1bXPput5KaR8am6loXWflohqUj9oZ6YyU0i08onnzoJzXaP7y+D9F0jPx6qgLqoZPlcAVGqSbUx+5J3Dr+qgv9ZEHf+oV09aF+kzXTJxJi7N+UaxiKAUO7cLcjiWdYwcqRf1diHQN1Hv+Pl2ej7/fHvvH+eU4r9jf3ud6+/H0erkRcjne3uiv1z/P9vj8cfvnPw72lE4h+/j94RDjg9NRgupf4LatOXFgy8IqawmqY3PZxSRY6SOyX0QU91IWGllJLOxZZ4gzW5NrlUY8BerfZ4hKOxJ9BJxUzAWfXx8+ns61vCf9Ub1n3/SlekuaXPfull/2SKvWJXfQ9kjfyp5eHjbtSPdPYiLU+wLronK5pVj6LNDQsJau7ix7GNg7LWXnRz+9PzS+gVx2hDrzjNEMkeWKFZz+LqVbngU5g+xRVwzsUsKGoUy9d0E5B1ql/vWP394e385Pjy+3i/7rX//5z/8DOP8pnzqMBgA="; \ No newline at end of file diff --git a/docs/api-wasm/assets/style.css b/docs/api-wasm/assets/style.css new file mode 100644 index 000000000..108428c3f --- /dev/null +++ b/docs/api-wasm/assets/style.css @@ -0,0 +1,1383 @@ +:root { + /* Light */ + --light-color-background: #f2f4f8; + --light-color-background-secondary: #eff0f1; + --light-color-warning-text: #222; + --light-color-background-warning: #e6e600; + --light-color-icon-background: var(--light-color-background); + --light-color-accent: #c5c7c9; + --light-color-active-menu-item: var(--light-color-accent); + --light-color-text: #222; + --light-color-text-aside: #6e6e6e; + --light-color-link: #1f70c2; + + --light-color-ts-project: #b111c9; + --light-color-ts-module: var(--light-color-ts-project); + --light-color-ts-namespace: var(--light-color-ts-project); + --light-color-ts-enum: #7e6f15; + --light-color-ts-enum-member: var(--light-color-ts-enum); + --light-color-ts-variable: #4760ec; + --light-color-ts-function: #572be7; + --light-color-ts-class: #1f70c2; + --light-color-ts-interface: #108024; + --light-color-ts-constructor: var(--light-color-ts-class); + --light-color-ts-property: var(--light-color-ts-variable); + --light-color-ts-method: var(--light-color-ts-function); + --light-color-ts-call-signature: var(--light-color-ts-method); + --light-color-ts-index-signature: var(--light-color-ts-property); + --light-color-ts-constructor-signature: var(--light-color-ts-constructor); + --light-color-ts-parameter: var(--light-color-ts-variable); + /* type literal not included as links will never be generated to it */ + --light-color-ts-type-parameter: var(--light-color-ts-type-alias); + --light-color-ts-accessor: var(--light-color-ts-property); + --light-color-ts-get-signature: var(--light-color-ts-accessor); + --light-color-ts-set-signature: var(--light-color-ts-accessor); + --light-color-ts-type-alias: #d51270; + /* reference not included as links will be colored with the kind that it points to */ + + --light-external-icon: url("data:image/svg+xml;utf8,"); + --light-color-scheme: light; + + /* Dark */ + --dark-color-background: #2b2e33; + --dark-color-background-secondary: #1e2024; + --dark-color-background-warning: #bebe00; + --dark-color-warning-text: #222; + --dark-color-icon-background: var(--dark-color-background-secondary); + --dark-color-accent: #9096a2; + --dark-color-active-menu-item: #5d5d6a; + --dark-color-text: #f5f5f5; + --dark-color-text-aside: #dddddd; + --dark-color-link: #00aff4; + + --dark-color-ts-project: #e358ff; + --dark-color-ts-module: var(--dark-color-ts-project); + --dark-color-ts-namespace: var(--dark-color-ts-project); + --dark-color-ts-enum: #f4d93e; + --dark-color-ts-enum-member: var(--dark-color-ts-enum); + --dark-color-ts-variable: #798dff; + --dark-color-ts-function: #a280ff; + --dark-color-ts-class: #8ac4ff; + --dark-color-ts-interface: #6cff87; + --dark-color-ts-constructor: var(--dark-color-ts-class); + --dark-color-ts-property: var(--dark-color-ts-variable); + --dark-color-ts-method: var(--dark-color-ts-function); + --dark-color-ts-call-signature: var(--dark-color-ts-method); + --dark-color-ts-index-signature: var(--dark-color-ts-property); + --dark-color-ts-constructor-signature: var(--dark-color-ts-constructor); + --dark-color-ts-parameter: var(--dark-color-ts-variable); + /* type literal not included as links will never be generated to it */ + --dark-color-ts-type-parameter: var(--dark-color-ts-type-alias); + --dark-color-ts-accessor: var(--dark-color-ts-property); + --dark-color-ts-get-signature: var(--dark-color-ts-accessor); + --dark-color-ts-set-signature: var(--dark-color-ts-accessor); + --dark-color-ts-type-alias: #ff6492; + /* reference not included as links will be colored with the kind that it points to */ + + --dark-external-icon: url("data:image/svg+xml;utf8,"); + --dark-color-scheme: dark; +} + +@media (prefers-color-scheme: light) { + :root { + --color-background: var(--light-color-background); + --color-background-secondary: var(--light-color-background-secondary); + --color-background-warning: var(--light-color-background-warning); + --color-warning-text: var(--light-color-warning-text); + --color-icon-background: var(--light-color-icon-background); + --color-accent: var(--light-color-accent); + --color-active-menu-item: var(--light-color-active-menu-item); + --color-text: var(--light-color-text); + --color-text-aside: var(--light-color-text-aside); + --color-link: var(--light-color-link); + + --color-ts-module: var(--light-color-ts-module); + --color-ts-namespace: var(--light-color-ts-namespace); + --color-ts-enum: var(--light-color-ts-enum); + --color-ts-enum-member: var(--light-color-ts-enum-member); + --color-ts-variable: var(--light-color-ts-variable); + --color-ts-function: var(--light-color-ts-function); + --color-ts-class: var(--light-color-ts-class); + --color-ts-interface: var(--light-color-ts-interface); + --color-ts-constructor: var(--light-color-ts-constructor); + --color-ts-property: var(--light-color-ts-property); + --color-ts-method: var(--light-color-ts-method); + --color-ts-call-signature: var(--light-color-ts-call-signature); + --color-ts-index-signature: var(--light-color-ts-index-signature); + --color-ts-constructor-signature: var( + --light-color-ts-constructor-signature + ); + --color-ts-parameter: var(--light-color-ts-parameter); + --color-ts-type-parameter: var(--light-color-ts-type-parameter); + --color-ts-accessor: var(--light-color-ts-accessor); + --color-ts-get-signature: var(--light-color-ts-get-signature); + --color-ts-set-signature: var(--light-color-ts-set-signature); + --color-ts-type-alias: var(--light-color-ts-type-alias); + + --external-icon: var(--light-external-icon); + --color-scheme: var(--light-color-scheme); + } +} + +@media (prefers-color-scheme: dark) { + :root { + --color-background: var(--dark-color-background); + --color-background-secondary: var(--dark-color-background-secondary); + --color-background-warning: var(--dark-color-background-warning); + --color-warning-text: var(--dark-color-warning-text); + --color-icon-background: var(--dark-color-icon-background); + --color-accent: var(--dark-color-accent); + --color-active-menu-item: var(--dark-color-active-menu-item); + --color-text: var(--dark-color-text); + --color-text-aside: var(--dark-color-text-aside); + --color-link: var(--dark-color-link); + + --color-ts-module: var(--dark-color-ts-module); + --color-ts-namespace: var(--dark-color-ts-namespace); + --color-ts-enum: var(--dark-color-ts-enum); + --color-ts-enum-member: var(--dark-color-ts-enum-member); + --color-ts-variable: var(--dark-color-ts-variable); + --color-ts-function: var(--dark-color-ts-function); + --color-ts-class: var(--dark-color-ts-class); + --color-ts-interface: var(--dark-color-ts-interface); + --color-ts-constructor: var(--dark-color-ts-constructor); + --color-ts-property: var(--dark-color-ts-property); + --color-ts-method: var(--dark-color-ts-method); + --color-ts-call-signature: var(--dark-color-ts-call-signature); + --color-ts-index-signature: var(--dark-color-ts-index-signature); + --color-ts-constructor-signature: var( + --dark-color-ts-constructor-signature + ); + --color-ts-parameter: var(--dark-color-ts-parameter); + --color-ts-type-parameter: var(--dark-color-ts-type-parameter); + --color-ts-accessor: var(--dark-color-ts-accessor); + --color-ts-get-signature: var(--dark-color-ts-get-signature); + --color-ts-set-signature: var(--dark-color-ts-set-signature); + --color-ts-type-alias: var(--dark-color-ts-type-alias); + + --external-icon: var(--dark-external-icon); + --color-scheme: var(--dark-color-scheme); + } +} + +html { + color-scheme: var(--color-scheme); +} + +body { + margin: 0; +} + +:root[data-theme="light"] { + --color-background: var(--light-color-background); + --color-background-secondary: var(--light-color-background-secondary); + --color-background-warning: var(--light-color-background-warning); + --color-warning-text: var(--light-color-warning-text); + --color-icon-background: var(--light-color-icon-background); + --color-accent: var(--light-color-accent); + --color-active-menu-item: var(--light-color-active-menu-item); + --color-text: var(--light-color-text); + --color-text-aside: var(--light-color-text-aside); + --color-link: var(--light-color-link); + + --color-ts-module: var(--light-color-ts-module); + --color-ts-namespace: var(--light-color-ts-namespace); + --color-ts-enum: var(--light-color-ts-enum); + --color-ts-enum-member: var(--light-color-ts-enum-member); + --color-ts-variable: var(--light-color-ts-variable); + --color-ts-function: var(--light-color-ts-function); + --color-ts-class: var(--light-color-ts-class); + --color-ts-interface: var(--light-color-ts-interface); + --color-ts-constructor: var(--light-color-ts-constructor); + --color-ts-property: var(--light-color-ts-property); + --color-ts-method: var(--light-color-ts-method); + --color-ts-call-signature: var(--light-color-ts-call-signature); + --color-ts-index-signature: var(--light-color-ts-index-signature); + --color-ts-constructor-signature: var( + --light-color-ts-constructor-signature + ); + --color-ts-parameter: var(--light-color-ts-parameter); + --color-ts-type-parameter: var(--light-color-ts-type-parameter); + --color-ts-accessor: var(--light-color-ts-accessor); + --color-ts-get-signature: var(--light-color-ts-get-signature); + --color-ts-set-signature: var(--light-color-ts-set-signature); + --color-ts-type-alias: var(--light-color-ts-type-alias); + + --external-icon: var(--light-external-icon); + --color-scheme: var(--light-color-scheme); +} + +:root[data-theme="dark"] { + --color-background: var(--dark-color-background); + --color-background-secondary: var(--dark-color-background-secondary); + --color-background-warning: var(--dark-color-background-warning); + --color-warning-text: var(--dark-color-warning-text); + --color-icon-background: var(--dark-color-icon-background); + --color-accent: var(--dark-color-accent); + --color-active-menu-item: var(--dark-color-active-menu-item); + --color-text: var(--dark-color-text); + --color-text-aside: var(--dark-color-text-aside); + --color-link: var(--dark-color-link); + + --color-ts-module: var(--dark-color-ts-module); + --color-ts-namespace: var(--dark-color-ts-namespace); + --color-ts-enum: var(--dark-color-ts-enum); + --color-ts-enum-member: var(--dark-color-ts-enum-member); + --color-ts-variable: var(--dark-color-ts-variable); + --color-ts-function: var(--dark-color-ts-function); + --color-ts-class: var(--dark-color-ts-class); + --color-ts-interface: var(--dark-color-ts-interface); + --color-ts-constructor: var(--dark-color-ts-constructor); + --color-ts-property: var(--dark-color-ts-property); + --color-ts-method: var(--dark-color-ts-method); + --color-ts-call-signature: var(--dark-color-ts-call-signature); + --color-ts-index-signature: var(--dark-color-ts-index-signature); + --color-ts-constructor-signature: var( + --dark-color-ts-constructor-signature + ); + --color-ts-parameter: var(--dark-color-ts-parameter); + --color-ts-type-parameter: var(--dark-color-ts-type-parameter); + --color-ts-accessor: var(--dark-color-ts-accessor); + --color-ts-get-signature: var(--dark-color-ts-get-signature); + --color-ts-set-signature: var(--dark-color-ts-set-signature); + --color-ts-type-alias: var(--dark-color-ts-type-alias); + + --external-icon: var(--dark-external-icon); + --color-scheme: var(--dark-color-scheme); +} + +.always-visible, +.always-visible .tsd-signatures { + display: inherit !important; +} + +h1, +h2, +h3, +h4, +h5, +h6 { + line-height: 1.2; +} + +h1 > a, +h2 > a, +h3 > a, +h4 > a, +h5 > a, +h6 > a { + text-decoration: none; + color: var(--color-text); +} + +h1 { + font-size: 1.875rem; + margin: 0.67rem 0; +} + +h2 { + font-size: 1.5rem; + margin: 0.83rem 0; +} + +h3 { + font-size: 1.25rem; + margin: 1rem 0; +} + +h4 { + font-size: 1.05rem; + margin: 1.33rem 0; +} + +h5 { + font-size: 1rem; + margin: 1.5rem 0; +} + +h6 { + font-size: 0.875rem; + margin: 2.33rem 0; +} + +.uppercase { + text-transform: uppercase; +} + +dl, +menu, +ol, +ul { + margin: 1em 0; +} + +dd { + margin: 0 0 0 40px; +} + +.container { + max-width: 1700px; + padding: 0 2rem; +} + +/* Footer */ +.tsd-generator { + border-top: 1px solid var(--color-accent); + padding-top: 1rem; + padding-bottom: 1rem; + max-height: 3.5rem; +} + +.tsd-generator > p { + margin-top: 0; + margin-bottom: 0; + padding: 0 1rem; +} + +.container-main { + margin: 0 auto; + /* toolbar, footer, margin */ + min-height: calc(100vh - 41px - 56px - 4rem); +} + +@keyframes fade-in { + from { + opacity: 0; + } + to { + opacity: 1; + } +} +@keyframes fade-out { + from { + opacity: 1; + visibility: visible; + } + to { + opacity: 0; + } +} +@keyframes fade-in-delayed { + 0% { + opacity: 0; + } + 33% { + opacity: 0; + } + 100% { + opacity: 1; + } +} +@keyframes fade-out-delayed { + 0% { + opacity: 1; + visibility: visible; + } + 66% { + opacity: 0; + } + 100% { + opacity: 0; + } +} +@keyframes pop-in-from-right { + from { + transform: translate(100%, 0); + } + to { + transform: translate(0, 0); + } +} +@keyframes pop-out-to-right { + from { + transform: translate(0, 0); + visibility: visible; + } + to { + transform: translate(100%, 0); + } +} +body { + background: var(--color-background); + font-family: "Segoe UI", sans-serif; + font-size: 16px; + color: var(--color-text); +} + +a { + color: var(--color-link); + text-decoration: none; +} +a:hover { + text-decoration: underline; +} +a.external[target="_blank"] { + background-image: var(--external-icon); + background-position: top 3px right; + background-repeat: no-repeat; + padding-right: 13px; +} + +code, +pre { + font-family: Menlo, Monaco, Consolas, "Courier New", monospace; + padding: 0.2em; + margin: 0; + font-size: 0.875rem; + border-radius: 0.8em; +} + +pre { + position: relative; + white-space: pre; + white-space: pre-wrap; + word-wrap: break-word; + padding: 10px; + border: 1px solid var(--color-accent); +} +pre code { + padding: 0; + font-size: 100%; +} +pre > button { + position: absolute; + top: 10px; + right: 10px; + opacity: 0; + transition: opacity 0.1s; + box-sizing: border-box; +} +pre:hover > button, +pre > button.visible { + opacity: 1; +} + +blockquote { + margin: 1em 0; + padding-left: 1em; + border-left: 4px solid gray; +} + +.tsd-typography { + line-height: 1.333em; +} +.tsd-typography ul { + list-style: square; + padding: 0 0 0 20px; + margin: 0; +} +.tsd-typography .tsd-index-panel h3, +.tsd-index-panel .tsd-typography h3, +.tsd-typography h4, +.tsd-typography h5, +.tsd-typography h6 { + font-size: 1em; +} +.tsd-typography h5, +.tsd-typography h6 { + font-weight: normal; +} +.tsd-typography p, +.tsd-typography ul, +.tsd-typography ol { + margin: 1em 0; +} +.tsd-typography table { + border-collapse: collapse; + border: none; +} +.tsd-typography td, +.tsd-typography th { + padding: 6px 13px; + border: 1px solid var(--color-accent); +} +.tsd-typography thead, +.tsd-typography tr:nth-child(even) { + background-color: var(--color-background-secondary); +} + +.tsd-breadcrumb { + margin: 0; + padding: 0; + color: var(--color-text-aside); +} +.tsd-breadcrumb a { + color: var(--color-text-aside); + text-decoration: none; +} +.tsd-breadcrumb a:hover { + text-decoration: underline; +} +.tsd-breadcrumb li { + display: inline; +} +.tsd-breadcrumb li:after { + content: " / "; +} + +.tsd-comment-tags { + display: flex; + flex-direction: column; +} +dl.tsd-comment-tag-group { + display: flex; + align-items: center; + overflow: hidden; + margin: 0.5em 0; +} +dl.tsd-comment-tag-group dt { + display: flex; + margin-right: 0.5em; + font-size: 0.875em; + font-weight: normal; +} +dl.tsd-comment-tag-group dd { + margin: 0; +} +code.tsd-tag { + padding: 0.25em 0.4em; + border: 0.1em solid var(--color-accent); + margin-right: 0.25em; + font-size: 70%; +} +h1 code.tsd-tag:first-of-type { + margin-left: 0.25em; +} + +dl.tsd-comment-tag-group dd:before, +dl.tsd-comment-tag-group dd:after { + content: " "; +} +dl.tsd-comment-tag-group dd pre, +dl.tsd-comment-tag-group dd:after { + clear: both; +} +dl.tsd-comment-tag-group p { + margin: 0; +} + +.tsd-panel.tsd-comment .lead { + font-size: 1.1em; + line-height: 1.333em; + margin-bottom: 2em; +} +.tsd-panel.tsd-comment .lead:last-child { + margin-bottom: 0; +} + +.tsd-filter-visibility h4 { + font-size: 1rem; + padding-top: 0.75rem; + padding-bottom: 0.5rem; + margin: 0; +} +.tsd-filter-item:not(:last-child) { + margin-bottom: 0.5rem; +} +.tsd-filter-input { + display: flex; + width: fit-content; + width: -moz-fit-content; + align-items: center; + user-select: none; + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + cursor: pointer; +} +.tsd-filter-input input[type="checkbox"] { + cursor: pointer; + position: absolute; + width: 1.5em; + height: 1.5em; + opacity: 0; +} +.tsd-filter-input input[type="checkbox"]:disabled { + pointer-events: none; +} +.tsd-filter-input svg { + cursor: pointer; + width: 1.5em; + height: 1.5em; + margin-right: 0.5em; + border-radius: 0.33em; + /* Leaving this at full opacity breaks event listeners on Firefox. + Don't remove unless you know what you're doing. */ + opacity: 0.99; +} +.tsd-filter-input input[type="checkbox"]:focus + svg { + transform: scale(0.95); +} +.tsd-filter-input input[type="checkbox"]:focus:not(:focus-visible) + svg { + transform: scale(1); +} +.tsd-checkbox-background { + fill: var(--color-accent); +} +input[type="checkbox"]:checked ~ svg .tsd-checkbox-checkmark { + stroke: var(--color-text); +} +.tsd-filter-input input:disabled ~ svg > .tsd-checkbox-background { + fill: var(--color-background); + stroke: var(--color-accent); + stroke-width: 0.25rem; +} +.tsd-filter-input input:disabled ~ svg > .tsd-checkbox-checkmark { + stroke: var(--color-accent); +} + +.tsd-theme-toggle { + padding-top: 0.75rem; +} +.tsd-theme-toggle > h4 { + display: inline; + vertical-align: middle; + margin-right: 0.75rem; +} + +.tsd-hierarchy { + list-style: square; + margin: 0; +} +.tsd-hierarchy .target { + font-weight: bold; +} + +.tsd-panel-group.tsd-index-group { + margin-bottom: 0; +} +.tsd-index-panel .tsd-index-list { + list-style: none; + line-height: 1.333em; + margin: 0; + padding: 0.25rem 0 0 0; + overflow: hidden; + display: grid; + grid-template-columns: repeat(3, 1fr); + column-gap: 1rem; + grid-template-rows: auto; +} +@media (max-width: 1024px) { + .tsd-index-panel .tsd-index-list { + grid-template-columns: repeat(2, 1fr); + } +} +@media (max-width: 768px) { + .tsd-index-panel .tsd-index-list { + grid-template-columns: repeat(1, 1fr); + } +} +.tsd-index-panel .tsd-index-list li { + -webkit-page-break-inside: avoid; + -moz-page-break-inside: avoid; + -ms-page-break-inside: avoid; + -o-page-break-inside: avoid; + page-break-inside: avoid; +} + +.tsd-flag { + display: inline-block; + padding: 0.25em 0.4em; + border-radius: 4px; + color: var(--color-comment-tag-text); + background-color: var(--color-comment-tag); + text-indent: 0; + font-size: 75%; + line-height: 1; + font-weight: normal; +} + +.tsd-anchor { + position: relative; + top: -100px; +} + +.tsd-member { + position: relative; +} +.tsd-member .tsd-anchor + h3 { + display: flex; + align-items: center; + margin-top: 0; + margin-bottom: 0; + border-bottom: none; +} + +.tsd-navigation.settings { + margin: 1rem 0; +} +.tsd-navigation > a, +.tsd-navigation .tsd-accordion-summary { + width: calc(100% - 0.5rem); +} +.tsd-navigation a, +.tsd-navigation summary > span, +.tsd-page-navigation a { + display: inline-flex; + align-items: center; + padding: 0.25rem; + color: var(--color-text); + text-decoration: none; + box-sizing: border-box; +} +.tsd-navigation a.current, +.tsd-page-navigation a.current { + background: var(--color-active-menu-item); +} +.tsd-navigation a:hover, +.tsd-page-navigation a:hover { + text-decoration: underline; +} +.tsd-navigation ul, +.tsd-page-navigation ul { + margin-top: 0; + margin-bottom: 0; + padding: 0; + list-style: none; +} +.tsd-navigation li, +.tsd-page-navigation li { + padding: 0; + max-width: 100%; +} +.tsd-nested-navigation { + margin-left: 3rem; +} +.tsd-nested-navigation > li > details { + margin-left: -1.5rem; +} +.tsd-small-nested-navigation { + margin-left: 1.5rem; +} +.tsd-small-nested-navigation > li > details { + margin-left: -1.5rem; +} + +.tsd-nested-navigation > li > a, +.tsd-nested-navigation > li > span { + width: calc(100% - 1.75rem - 0.5rem); +} + +.tsd-page-navigation ul { + padding-left: 1.75rem; +} + +#tsd-sidebar-links a { + margin-top: 0; + margin-bottom: 0.5rem; + line-height: 1.25rem; +} +#tsd-sidebar-links a:last-of-type { + margin-bottom: 0; +} + +a.tsd-index-link { + padding: 0.25rem 0 !important; + font-size: 1rem; + line-height: 1.25rem; + display: inline-flex; + align-items: center; + color: var(--color-text); +} +.tsd-accordion-summary { + list-style-type: none; /* hide marker on non-safari */ + outline: none; /* broken on safari, so just hide it */ +} +.tsd-accordion-summary::-webkit-details-marker { + display: none; /* hide marker on safari */ +} +.tsd-accordion-summary, +.tsd-accordion-summary a { + user-select: none; + -moz-user-select: none; + -webkit-user-select: none; + -ms-user-select: none; + + cursor: pointer; +} +.tsd-accordion-summary a { + width: calc(100% - 1.5rem); +} +.tsd-accordion-summary > * { + margin-top: 0; + margin-bottom: 0; + padding-top: 0; + padding-bottom: 0; +} +.tsd-index-accordion .tsd-accordion-summary > svg { + margin-left: 0.25rem; +} +.tsd-index-content > :not(:first-child) { + margin-top: 0.75rem; +} +.tsd-index-heading { + margin-top: 1.5rem; + margin-bottom: 0.75rem; +} + +.tsd-kind-icon { + margin-right: 0.5rem; + width: 1.25rem; + height: 1.25rem; + min-width: 1.25rem; + min-height: 1.25rem; +} +.tsd-kind-icon path { + transform-origin: center; + transform: scale(1.1); +} +.tsd-signature > .tsd-kind-icon { + margin-right: 0.8rem; +} + +.tsd-panel { + margin-bottom: 2.5rem; +} +.tsd-panel.tsd-member { + margin-bottom: 4rem; +} +.tsd-panel:empty { + display: none; +} +.tsd-panel > h1, +.tsd-panel > h2, +.tsd-panel > h3 { + margin: 1.5rem -1.5rem 0.75rem -1.5rem; + padding: 0 1.5rem 0.75rem 1.5rem; +} +.tsd-panel > h1.tsd-before-signature, +.tsd-panel > h2.tsd-before-signature, +.tsd-panel > h3.tsd-before-signature { + margin-bottom: 0; + border-bottom: none; +} + +.tsd-panel-group { + margin: 4rem 0; +} +.tsd-panel-group.tsd-index-group { + margin: 2rem 0; +} +.tsd-panel-group.tsd-index-group details { + margin: 2rem 0; +} + +#tsd-search { + transition: background-color 0.2s; +} +#tsd-search .title { + position: relative; + z-index: 2; +} +#tsd-search .field { + position: absolute; + left: 0; + top: 0; + right: 2.5rem; + height: 100%; +} +#tsd-search .field input { + box-sizing: border-box; + position: relative; + top: -50px; + z-index: 1; + width: 100%; + padding: 0 10px; + opacity: 0; + outline: 0; + border: 0; + background: transparent; + color: var(--color-text); +} +#tsd-search .field label { + position: absolute; + overflow: hidden; + right: -40px; +} +#tsd-search .field input, +#tsd-search .title, +#tsd-toolbar-links a { + transition: opacity 0.2s; +} +#tsd-search .results { + position: absolute; + visibility: hidden; + top: 40px; + width: 100%; + margin: 0; + padding: 0; + list-style: none; + box-shadow: 0 0 4px rgba(0, 0, 0, 0.25); +} +#tsd-search .results li { + background-color: var(--color-background); + line-height: initial; + padding: 4px; +} +#tsd-search .results li:nth-child(even) { + background-color: var(--color-background-secondary); +} +#tsd-search .results li.state { + display: none; +} +#tsd-search .results li.current:not(.no-results), +#tsd-search .results li:hover:not(.no-results) { + background-color: var(--color-accent); +} +#tsd-search .results a { + display: flex; + align-items: center; + padding: 0.25rem; + box-sizing: border-box; +} +#tsd-search .results a:before { + top: 10px; +} +#tsd-search .results span.parent { + color: var(--color-text-aside); + font-weight: normal; +} +#tsd-search.has-focus { + background-color: var(--color-accent); +} +#tsd-search.has-focus .field input { + top: 0; + opacity: 1; +} +#tsd-search.has-focus .title, +#tsd-search.has-focus #tsd-toolbar-links a { + z-index: 0; + opacity: 0; +} +#tsd-search.has-focus .results { + visibility: visible; +} +#tsd-search.loading .results li.state.loading { + display: block; +} +#tsd-search.failure .results li.state.failure { + display: block; +} + +#tsd-toolbar-links { + position: absolute; + top: 0; + right: 2rem; + height: 100%; + display: flex; + align-items: center; + justify-content: flex-end; +} +#tsd-toolbar-links a { + margin-left: 1.5rem; +} +#tsd-toolbar-links a:hover { + text-decoration: underline; +} + +.tsd-signature { + margin: 0 0 1rem 0; + padding: 1rem 0.5rem; + border: 1px solid var(--color-accent); + font-family: Menlo, Monaco, Consolas, "Courier New", monospace; + font-size: 14px; + overflow-x: auto; +} + +.tsd-signature-symbol { + color: var(--color-text-aside); + font-weight: normal; +} + +.tsd-signature-type { + font-style: italic; + font-weight: normal; +} + +.tsd-signatures { + padding: 0; + margin: 0 0 1em 0; + list-style-type: none; +} +.tsd-signatures .tsd-signature { + margin: 0; + border-color: var(--color-accent); + border-width: 1px 0; + transition: background-color 0.1s; +} +.tsd-description .tsd-signatures .tsd-signature { + border-width: 1px; +} + +ul.tsd-parameter-list, +ul.tsd-type-parameter-list { + list-style: square; + margin: 0; + padding-left: 20px; +} +ul.tsd-parameter-list > li.tsd-parameter-signature, +ul.tsd-type-parameter-list > li.tsd-parameter-signature { + list-style: none; + margin-left: -20px; +} +ul.tsd-parameter-list h5, +ul.tsd-type-parameter-list h5 { + font-size: 16px; + margin: 1em 0 0.5em 0; +} +.tsd-sources { + margin-top: 1rem; + font-size: 0.875em; +} +.tsd-sources a { + color: var(--color-text-aside); + text-decoration: underline; +} +.tsd-sources ul { + list-style: none; + padding: 0; +} + +.tsd-page-toolbar { + position: sticky; + z-index: 1; + top: 0; + left: 0; + width: 100%; + color: var(--color-text); + background: var(--color-background-secondary); + border-bottom: 1px var(--color-accent) solid; + transition: transform 0.3s ease-in-out; +} +.tsd-page-toolbar a { + color: var(--color-text); + text-decoration: none; +} +.tsd-page-toolbar a.title { + font-weight: bold; +} +.tsd-page-toolbar a.title:hover { + text-decoration: underline; +} +.tsd-page-toolbar .tsd-toolbar-contents { + display: flex; + justify-content: space-between; + height: 2.5rem; + margin: 0 auto; +} +.tsd-page-toolbar .table-cell { + position: relative; + white-space: nowrap; + line-height: 40px; +} +.tsd-page-toolbar .table-cell:first-child { + width: 100%; +} +.tsd-page-toolbar .tsd-toolbar-icon { + box-sizing: border-box; + line-height: 0; + padding: 12px 0; +} + +.tsd-widget { + display: inline-block; + overflow: hidden; + opacity: 0.8; + height: 40px; + transition: + opacity 0.1s, + background-color 0.2s; + vertical-align: bottom; + cursor: pointer; +} +.tsd-widget:hover { + opacity: 0.9; +} +.tsd-widget.active { + opacity: 1; + background-color: var(--color-accent); +} +.tsd-widget.no-caption { + width: 40px; +} +.tsd-widget.no-caption:before { + margin: 0; +} + +.tsd-widget.options, +.tsd-widget.menu { + display: none; +} +input[type="checkbox"] + .tsd-widget:before { + background-position: -120px 0; +} +input[type="checkbox"]:checked + .tsd-widget:before { + background-position: -160px 0; +} + +img { + max-width: 100%; +} + +.tsd-anchor-icon { + display: inline-flex; + align-items: center; + margin-left: 0.5rem; + vertical-align: middle; + color: var(--color-text); +} + +.tsd-anchor-icon svg { + width: 1em; + height: 1em; + visibility: hidden; +} + +.tsd-anchor-link:hover > .tsd-anchor-icon svg { + visibility: visible; +} + +.deprecated { + text-decoration: line-through !important; +} + +.warning { + padding: 1rem; + color: var(--color-warning-text); + background: var(--color-background-warning); +} + +.tsd-kind-project { + color: var(--color-ts-project); +} +.tsd-kind-module { + color: var(--color-ts-module); +} +.tsd-kind-namespace { + color: var(--color-ts-namespace); +} +.tsd-kind-enum { + color: var(--color-ts-enum); +} +.tsd-kind-enum-member { + color: var(--color-ts-enum-member); +} +.tsd-kind-variable { + color: var(--color-ts-variable); +} +.tsd-kind-function { + color: var(--color-ts-function); +} +.tsd-kind-class { + color: var(--color-ts-class); +} +.tsd-kind-interface { + color: var(--color-ts-interface); +} +.tsd-kind-constructor { + color: var(--color-ts-constructor); +} +.tsd-kind-property { + color: var(--color-ts-property); +} +.tsd-kind-method { + color: var(--color-ts-method); +} +.tsd-kind-call-signature { + color: var(--color-ts-call-signature); +} +.tsd-kind-index-signature { + color: var(--color-ts-index-signature); +} +.tsd-kind-constructor-signature { + color: var(--color-ts-constructor-signature); +} +.tsd-kind-parameter { + color: var(--color-ts-parameter); +} +.tsd-kind-type-literal { + color: var(--color-ts-type-literal); +} +.tsd-kind-type-parameter { + color: var(--color-ts-type-parameter); +} +.tsd-kind-accessor { + color: var(--color-ts-accessor); +} +.tsd-kind-get-signature { + color: var(--color-ts-get-signature); +} +.tsd-kind-set-signature { + color: var(--color-ts-set-signature); +} +.tsd-kind-type-alias { + color: var(--color-ts-type-alias); +} + +/* if we have a kind icon, don't color the text by kind */ +.tsd-kind-icon ~ span { + color: var(--color-text); +} + +* { + scrollbar-width: thin; + scrollbar-color: var(--color-accent) var(--color-icon-background); +} + +*::-webkit-scrollbar { + width: 0.75rem; +} + +*::-webkit-scrollbar-track { + background: var(--color-icon-background); +} + +*::-webkit-scrollbar-thumb { + background-color: var(--color-accent); + border-radius: 999rem; + border: 0.25rem solid var(--color-icon-background); +} + +/* mobile */ +@media (max-width: 769px) { + .tsd-widget.options, + .tsd-widget.menu { + display: inline-block; + } + + .container-main { + display: flex; + } + html .col-content { + float: none; + max-width: 100%; + width: 100%; + } + html .col-sidebar { + position: fixed !important; + overflow-y: auto; + -webkit-overflow-scrolling: touch; + z-index: 1024; + top: 0 !important; + bottom: 0 !important; + left: auto !important; + right: 0 !important; + padding: 1.5rem 1.5rem 0 0; + width: 75vw; + visibility: hidden; + background-color: var(--color-background); + transform: translate(100%, 0); + } + html .col-sidebar > *:last-child { + padding-bottom: 20px; + } + html .overlay { + content: ""; + display: block; + position: fixed; + z-index: 1023; + top: 0; + left: 0; + right: 0; + bottom: 0; + background-color: rgba(0, 0, 0, 0.75); + visibility: hidden; + } + + .to-has-menu .overlay { + animation: fade-in 0.4s; + } + + .to-has-menu .col-sidebar { + animation: pop-in-from-right 0.4s; + } + + .from-has-menu .overlay { + animation: fade-out 0.4s; + } + + .from-has-menu .col-sidebar { + animation: pop-out-to-right 0.4s; + } + + .has-menu body { + overflow: hidden; + } + .has-menu .overlay { + visibility: visible; + } + .has-menu .col-sidebar { + visibility: visible; + transform: translate(0, 0); + display: flex; + flex-direction: column; + gap: 1.5rem; + max-height: 100vh; + padding: 1rem 2rem; + } + .has-menu .tsd-navigation { + max-height: 100%; + } +} + +/* one sidebar */ +@media (min-width: 770px) { + .container-main { + display: grid; + grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); + grid-template-areas: "sidebar content"; + margin: 2rem auto; + } + + .col-sidebar { + grid-area: sidebar; + } + .col-content { + grid-area: content; + padding: 0 1rem; + } +} +@media (min-width: 770px) and (max-width: 1399px) { + .col-sidebar { + max-height: calc(100vh - 2rem - 42px); + overflow: auto; + position: sticky; + top: 42px; + padding-top: 1rem; + } + .site-menu { + margin-top: 1rem; + } +} + +/* two sidebars */ +@media (min-width: 1200px) { + .container-main { + grid-template-columns: minmax(0, 1fr) minmax(0, 2.5fr) minmax(0, 20rem); + grid-template-areas: "sidebar content toc"; + } + + .col-sidebar { + display: contents; + } + + .page-menu { + grid-area: toc; + padding-left: 1rem; + } + .site-menu { + grid-area: sidebar; + } + + .site-menu { + margin-top: 1rem 0; + } + + .page-menu, + .site-menu { + max-height: calc(100vh - 2rem - 42px); + overflow: auto; + position: sticky; + top: 42px; + } +} diff --git a/docs/api-wasm/classes/AccessRights.html b/docs/api-wasm/classes/AccessRights.html new file mode 100644 index 000000000..48d613b50 --- /dev/null +++ b/docs/api-wasm/classes/AccessRights.html @@ -0,0 +1,267 @@ +AccessRights | casper-rust-wasm-sdk
+
+ +
+
+
+
+ +

Class AccessRights

+
+

Hierarchy

+
    +
  • AccessRights
+
+
+
+ +
+
+

Constructors

+
+ +
    + +
  • +
    +

    Parameters

    +
      +
    • +
      access_rights: number
      +
    +

    Returns AccessRights

    +
+
+

Methods

+
+ +
    + +
  • +

    Returns void

+
+ +
    + +
  • +

    Returns boolean

    +
+
+ +
    + +
  • +

    Returns boolean

    +
+
+ +
    + +
  • +

    Returns boolean

    +
+
+ +
    + +
  • +

    Returns boolean

    +
+
+ +
    + +
  • +

    Returns number

    +
+
+ +
    + +
  • +

    Returns number

    +
+
+ +
    + +
  • +

    Returns number

    +
+
+ +
    + +
  • +

    Returns number

    +
+
+ +
    + +
  • +

    Returns number

    +
+
+ +
    + +
  • +

    Returns number

    +
+
+ +
    + +
  • +

    Returns number

    +
+
+ +
    + +
  • +

    Returns number

    +
+
+ +
    + +
  • +
    +

    Parameters

    +
      +
    • +
      read: boolean
      +
    • +
    • +
      write: boolean
      +
    • +
    • +
      add: boolean
      +
    +

    Returns AccessRights

    +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/docs/api-wasm/classes/AccountHash.html b/docs/api-wasm/classes/AccountHash.html new file mode 100644 index 000000000..ae7ffb428 --- /dev/null +++ b/docs/api-wasm/classes/AccountHash.html @@ -0,0 +1,185 @@ +AccountHash | casper-rust-wasm-sdk
+
+ +
+
+
+
+ +

Class AccountHash

+
+

Hierarchy

+
    +
  • AccountHash
+
+
+
+ +
+
+

Constructors

+
+ +
    + +
  • +
    +

    Parameters

    +
      +
    • +
      account_hash_hex_str: string
      +
    +

    Returns AccountHash

    +
+
+

Methods

+
+ +
    + +
  • +

    Returns void

+
+ +
    + +
  • +

    Returns string

    +
+
+ +
    + +
  • +

    Returns any

    +
+
+ +
    + +
  • +
    +

    Parameters

    +
      +
    • +
      formatted_str: string
      +
    +

    Returns AccountHash

    +
+
+ +
+
+ +
    + +
  • +
    +

    Parameters

    +
      +
    • +
      bytes: Uint8Array
      +
    +

    Returns AccountHash

    +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/docs/api-wasm/classes/AccountIdentifier.html b/docs/api-wasm/classes/AccountIdentifier.html new file mode 100644 index 000000000..a60a7bbc1 --- /dev/null +++ b/docs/api-wasm/classes/AccountIdentifier.html @@ -0,0 +1,174 @@ +AccountIdentifier | casper-rust-wasm-sdk
+
+ +
+
+
+
+ +

Class AccountIdentifier

+
+

Hierarchy

+
    +
  • AccountIdentifier
+
+
+
+ +
+
+

Constructors

+
+ +
    + +
  • +
    +

    Parameters

    +
      +
    • +
      formatted_str: string
      +
    +

    Returns AccountIdentifier

    +
+
+

Methods

+
+ +
    + +
  • +

    Returns void

+
+ +
    + +
  • +

    Returns any

    +
+
+ +
+
+ +
    + +
  • +
    +

    Parameters

    +
      +
    • +
      formatted_str: string
      +
    +

    Returns AccountIdentifier

    +
+
+ +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/docs/api-wasm/classes/ArgsSimple.html b/docs/api-wasm/classes/ArgsSimple.html new file mode 100644 index 000000000..59a7c7313 --- /dev/null +++ b/docs/api-wasm/classes/ArgsSimple.html @@ -0,0 +1,103 @@ +ArgsSimple | casper-rust-wasm-sdk
+
+ +
+
+
+
+ +

Class ArgsSimple

+
+

Hierarchy

+
    +
  • ArgsSimple
+
+
+
+ +
+
+

Constructors

+
+
+

Methods

+
+
+

Constructors

+
+ +
+
+

Methods

+
+ +
    + +
  • +

    Returns void

+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/docs/api-wasm/classes/BlockHash.html b/docs/api-wasm/classes/BlockHash.html new file mode 100644 index 000000000..d04bb55bf --- /dev/null +++ b/docs/api-wasm/classes/BlockHash.html @@ -0,0 +1,151 @@ +BlockHash | casper-rust-wasm-sdk
+
+ +
+
+
+
+ +

Class BlockHash

+
+

Hierarchy

+
    +
  • BlockHash
+
+
+
+ +
+
+

Constructors

+
+
+

Methods

+
+
+

Constructors

+
+ +
    + +
  • +
    +

    Parameters

    +
      +
    • +
      block_hash_hex_str: string
      +
    +

    Returns BlockHash

    +
+
+

Methods

+
+ +
    + +
  • +

    Returns void

+
+ +
    + +
  • +

    Returns any

    +
+
+ +
    + +
  • +

    Returns string

    +
+
+ +
    + +
  • +
    +

    Parameters

    +
    +

    Returns BlockHash

    +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/docs/api-wasm/classes/BlockIdentifier.html b/docs/api-wasm/classes/BlockIdentifier.html new file mode 100644 index 000000000..9b89ccf49 --- /dev/null +++ b/docs/api-wasm/classes/BlockIdentifier.html @@ -0,0 +1,157 @@ +BlockIdentifier | casper-rust-wasm-sdk
+
+ +
+
+
+
+ +

Class BlockIdentifier

+
+

Hierarchy

+
    +
  • BlockIdentifier
+
+
+
+ +
+
+

Constructors

+
+
+

Methods

+
+
+

Constructors

+
+ +
+
+

Methods

+
+ +
    + +
  • +

    Returns void

+
+ +
    + +
  • +

    Returns any

    +
+
+ +
+
+ +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/docs/api-wasm/classes/Bytes.html b/docs/api-wasm/classes/Bytes.html new file mode 100644 index 000000000..cc6e06d32 --- /dev/null +++ b/docs/api-wasm/classes/Bytes.html @@ -0,0 +1,123 @@ +Bytes | casper-rust-wasm-sdk
+
+ +
+
+
+
+ +

Class Bytes

+
+

Hierarchy

+
    +
  • Bytes
+
+
+
+ +
+
+

Constructors

+
+
+

Methods

+
+
+

Constructors

+
+ +
    + +
  • +

    Returns Bytes

    +
+
+

Methods

+
+ +
    + +
  • +

    Returns void

+
+ +
    + +
  • +
    +

    Parameters

    +
      +
    • +
      uint8_array: Uint8Array
      +
    +

    Returns Bytes

    +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/docs/api-wasm/classes/ContractHash.html b/docs/api-wasm/classes/ContractHash.html new file mode 100644 index 000000000..c203d70c7 --- /dev/null +++ b/docs/api-wasm/classes/ContractHash.html @@ -0,0 +1,157 @@ +ContractHash | casper-rust-wasm-sdk
+
+ +
+
+
+
+ +

Class ContractHash

+
+

Hierarchy

+
    +
  • ContractHash
+
+
+
+ +
+
+

Constructors

+
+ +
    + +
  • +
    +

    Parameters

    +
      +
    • +
      input: string
      +
    +

    Returns ContractHash

    +
+
+

Methods

+
+ +
    + +
  • +

    Returns void

+
+ +
    + +
  • +

    Returns string

    +
+
+ +
    + +
  • +
    +

    Parameters

    +
      +
    • +
      input: string
      +
    +

    Returns ContractHash

    +
+
+ +
    + +
  • +
    +

    Parameters

    +
      +
    • +
      bytes: Uint8Array
      +
    +

    Returns ContractHash

    +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/docs/api-wasm/classes/ContractPackageHash.html b/docs/api-wasm/classes/ContractPackageHash.html new file mode 100644 index 000000000..ed5b17a2d --- /dev/null +++ b/docs/api-wasm/classes/ContractPackageHash.html @@ -0,0 +1,157 @@ +ContractPackageHash | casper-rust-wasm-sdk
+
+ +
+
+
+
+ +

Class ContractPackageHash

+
+

Hierarchy

+
    +
  • ContractPackageHash
+
+
+
+ +
+
+

Constructors

+
+ +
+
+

Methods

+
+ +
    + +
  • +

    Returns void

+
+ +
    + +
  • +

    Returns string

    +
+
+ +
+
+ +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/docs/api-wasm/classes/Deploy.html b/docs/api-wasm/classes/Deploy.html new file mode 100644 index 000000000..d6f035621 --- /dev/null +++ b/docs/api-wasm/classes/Deploy.html @@ -0,0 +1,515 @@ +Deploy | casper-rust-wasm-sdk
+
+ +
+
+
+
+ +

Class Deploy

+
+

Hierarchy

+
    +
  • Deploy
+
+
+
+ +
+
+

Constructors

+
+ +
    + +
  • +
    +

    Parameters

    +
      +
    • +
      deploy: any
      +
    +

    Returns Deploy

    +
+
+

Methods

+
+ +
    + +
  • +

    Returns string

    +
+
+ +
    + +
  • +

    Returns string

    +
+
+ +
    + +
  • +
    +

    Parameters

    +
      +
    • +
      js_value_arg: any
      +
    • +
    • +
      Optional secret_key: string
      +
    +

    Returns Deploy

    +
+
+ +
    + +
  • +

    Returns any

    +
+
+ +
    + +
  • +

    Returns string

    +
+
+ +
    + +
  • +

    Returns void

+
+ +
    + +
  • +
    +

    Parameters

    +
      +
    • +
      secret_key: string
      +
    +

    Returns Deploy

    +
+
+ +
    + +
  • +

    Returns string

    +
+
+ +
    + +
  • +

    Returns any

    +
+
+ +
    + +
  • +

    Returns boolean

    +
+
+ +
    + +
  • +
    +

    Parameters

    +
      +
    • +
      account: PublicKey
      +
    • +
    • +
      Optional secret_key: string
      +
    +

    Returns Deploy

    +
+
+ +
    + +
  • +
    +

    Parameters

    +
      +
    • +
      chain_name: string
      +
    • +
    • +
      Optional secret_key: string
      +
    +

    Returns Deploy

    +
+
+ +
    + +
  • +
    +

    Parameters

    +
      +
    • +
      entry_point_name: string
      +
    • +
    • +
      Optional secret_key: string
      +
    +

    Returns Deploy

    +
+
+ +
    + +
  • +
    +

    Parameters

    +
    +

    Returns Deploy

    +
+
+ +
    + +
  • +
    +

    Parameters

    +
      +
    • +
      module_bytes: Bytes
      +
    • +
    • +
      Optional secret_key: string
      +
    +

    Returns Deploy

    +
+
+ +
    + +
  • +
    +

    Parameters

    +
    +

    Returns Deploy

    +
+
+ +
    + +
  • +
    +

    Parameters

    +
      +
    • +
      payment: any
      +
    • +
    • +
      Optional secret_key: string
      +
    +

    Returns Deploy

    +
+
+ +
    + +
  • +
    +

    Parameters

    +
      +
    • +
      Optional secret_key: string
      +
    +

    Returns Deploy

    +
+
+ +
    + +
  • +
    +

    Parameters

    +
      +
    • +
      session: any
      +
    • +
    • +
      Optional secret_key: string
      +
    +

    Returns Deploy

    +
+
+ +
    + +
  • +
    +

    Parameters

    +
      +
    • +
      amount: string
      +
    • +
    • +
      Optional secret_key: string
      +
    +

    Returns Deploy

    +
+
+ +
    + +
  • +
    +

    Parameters

    +
      +
    • +
      ttl: string
      +
    • +
    • +
      Optional secret_key: string
      +
    +

    Returns Deploy

    +
+
+ +
    + +
  • +
    +

    Parameters

    +
      +
    • +
      timestamp: string
      +
    • +
    • +
      Optional secret_key: string
      +
    +

    Returns Deploy

    +
+
+ +
+
+ +
    + +
  • +
    +

    Parameters

    +
    +

    Returns Deploy

    +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/docs/api-wasm/classes/DeployHash.html b/docs/api-wasm/classes/DeployHash.html new file mode 100644 index 000000000..ebc2d21b9 --- /dev/null +++ b/docs/api-wasm/classes/DeployHash.html @@ -0,0 +1,151 @@ +DeployHash | casper-rust-wasm-sdk
+
+ +
+
+
+
+ +

Class DeployHash

+
+

Hierarchy

+
    +
  • DeployHash
+
+
+
+ +
+
+

Constructors

+
+
+

Methods

+
+
+

Constructors

+
+ +
    + +
  • +
    +

    Parameters

    +
      +
    • +
      deploy_hash_hex_str: string
      +
    +

    Returns DeployHash

    +
+
+

Methods

+
+ +
    + +
  • +

    Returns void

+
+ +
    + +
  • +

    Returns any

    +
+
+ +
    + +
  • +

    Returns string

    +
+
+ +
    + +
  • +
    +

    Parameters

    +
    +

    Returns DeployHash

    +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/docs/api-wasm/classes/DeployStrParams.html b/docs/api-wasm/classes/DeployStrParams.html new file mode 100644 index 000000000..1921e68a5 --- /dev/null +++ b/docs/api-wasm/classes/DeployStrParams.html @@ -0,0 +1,191 @@ +DeployStrParams | casper-rust-wasm-sdk
+
+ +
+
+
+
+ +

Class DeployStrParams

+
+

Hierarchy

+
    +
  • DeployStrParams
+
+
+
+ +
+
+

Constructors

+
+
+

Properties

+
+
+

Methods

+
+
+

Constructors

+
+ +
    + +
  • +
    +

    Parameters

    +
      +
    • +
      chain_name: string
      +
    • +
    • +
      session_account: string
      +
    • +
    • +
      Optional secret_key: string
      +
    • +
    • +
      Optional timestamp: string
      +
    • +
    • +
      Optional ttl: string
      +
    +

    Returns DeployStrParams

    +
+
+

Properties

+
+ +
chain_name: string
+
+
+ +
secret_key: string
+
+
+ +
session_account: string
+
+
+ +
timestamp?: string
+
+
+ +
ttl?: string
+
+
+

Methods

+
+ +
    + +
  • +

    Returns void

+
+ +
    + +
  • +

    Returns void

    +
+
+ +
    + +
  • +

    Returns void

    +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/docs/api-wasm/classes/DictionaryAddr.html b/docs/api-wasm/classes/DictionaryAddr.html new file mode 100644 index 000000000..59e9869cb --- /dev/null +++ b/docs/api-wasm/classes/DictionaryAddr.html @@ -0,0 +1,112 @@ +DictionaryAddr | casper-rust-wasm-sdk
+
+ +
+
+
+
+ +

Class DictionaryAddr

+
+

Hierarchy

+
    +
  • DictionaryAddr
+
+
+
+ +
+
+

Constructors

+
+
+

Methods

+
+
+

Constructors

+
+ +
    + +
  • +
    +

    Parameters

    +
      +
    • +
      bytes: Uint8Array
      +
    +

    Returns DictionaryAddr

    +
+
+

Methods

+
+ +
    + +
  • +

    Returns void

+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/docs/api-wasm/classes/DictionaryItemIdentifier.html b/docs/api-wasm/classes/DictionaryItemIdentifier.html new file mode 100644 index 000000000..fdf0a8f9f --- /dev/null +++ b/docs/api-wasm/classes/DictionaryItemIdentifier.html @@ -0,0 +1,197 @@ +DictionaryItemIdentifier | casper-rust-wasm-sdk
+
+ +
+
+
+
+ +

Class DictionaryItemIdentifier

+
+

Hierarchy

+
    +
  • DictionaryItemIdentifier
+
+
+
+ +
+
+

Constructors

+
+ +
+
+

Methods

+
+ +
    + +
  • +

    Returns void

+
+ +
    + +
  • +

    Returns any

    +
+
+ +
    + +
  • +
    +

    Parameters

    +
      +
    • +
      account_hash: string
      +
    • +
    • +
      dictionary_name: string
      +
    • +
    • +
      dictionary_item_key: string
      +
    +

    Returns DictionaryItemIdentifier

    +
+
+ +
    + +
  • +
    +

    Parameters

    +
      +
    • +
      contract_addr: string
      +
    • +
    • +
      dictionary_name: string
      +
    • +
    • +
      dictionary_item_key: string
      +
    +

    Returns DictionaryItemIdentifier

    +
+
+ +
+
+ +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/docs/api-wasm/classes/DictionaryItemStrParams.html b/docs/api-wasm/classes/DictionaryItemStrParams.html new file mode 100644 index 000000000..c92bdf2ae --- /dev/null +++ b/docs/api-wasm/classes/DictionaryItemStrParams.html @@ -0,0 +1,200 @@ +DictionaryItemStrParams | casper-rust-wasm-sdk
+
+ +
+
+
+
+ +

Class DictionaryItemStrParams

+
+

Hierarchy

+
    +
  • DictionaryItemStrParams
+
+
+
+ +
+
+

Constructors

+
+ +
+
+

Methods

+
+ +
    + +
  • +

    Returns void

+
+ +
    + +
  • +
    +

    Parameters

    +
      +
    • +
      key: string
      +
    • +
    • +
      dictionary_name: string
      +
    • +
    • +
      dictionary_item_key: string
      +
    +

    Returns void

    +
+
+ +
    + +
  • +
    +

    Parameters

    +
      +
    • +
      key: string
      +
    • +
    • +
      dictionary_name: string
      +
    • +
    • +
      dictionary_item_key: string
      +
    +

    Returns void

    +
+
+ +
    + +
  • +
    +

    Parameters

    +
      +
    • +
      value: string
      +
    +

    Returns void

    +
+
+ +
    + +
  • +
    +

    Parameters

    +
      +
    • +
      seed_uref: string
      +
    • +
    • +
      dictionary_item_key: string
      +
    +

    Returns void

    +
+
+ +
    + +
  • +

    Returns any

    +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/docs/api-wasm/classes/Digest.html b/docs/api-wasm/classes/Digest.html new file mode 100644 index 000000000..70d5df3fe --- /dev/null +++ b/docs/api-wasm/classes/Digest.html @@ -0,0 +1,168 @@ +Digest | casper-rust-wasm-sdk
+
+ +
+
+
+
+ +

Class Digest

+
+

Hierarchy

+
    +
  • Digest
+
+
+
+ +
+
+

Constructors

+
+
+

Methods

+
+
+

Constructors

+
+ +
    + +
  • +
    +

    Parameters

    +
      +
    • +
      digest_hex_str: string
      +
    +

    Returns Digest

    +
+
+

Methods

+
+ +
    + +
  • +

    Returns void

+
+ +
    + +
  • +

    Returns any

    +
+
+ +
    + +
  • +

    Returns string

    +
+
+ +
    + +
  • +
    +

    Parameters

    +
      +
    • +
      bytes: Uint8Array
      +
    +

    Returns Digest

    +
+
+ +
    + +
  • +
    +

    Parameters

    +
      +
    • +
      digest_hex_str: string
      +
    +

    Returns Digest

    +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/docs/api-wasm/classes/EraId.html b/docs/api-wasm/classes/EraId.html new file mode 100644 index 000000000..b5f99080e --- /dev/null +++ b/docs/api-wasm/classes/EraId.html @@ -0,0 +1,123 @@ +EraId | casper-rust-wasm-sdk
+
+ +
+
+
+
+ +

Class EraId

+
+

Hierarchy

+
    +
  • EraId
+
+
+
+ +
+
+

Constructors

+
+
+

Methods

+
+
+

Constructors

+
+ +
    + +
  • +
    +

    Parameters

    +
      +
    • +
      value: bigint
      +
    +

    Returns EraId

    +
+
+

Methods

+
+ +
    + +
  • +

    Returns void

+
+ +
    + +
  • +

    Returns bigint

    +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/docs/api-wasm/classes/GetAccountResult.html b/docs/api-wasm/classes/GetAccountResult.html new file mode 100644 index 000000000..63970088b --- /dev/null +++ b/docs/api-wasm/classes/GetAccountResult.html @@ -0,0 +1,143 @@ +GetAccountResult | casper-rust-wasm-sdk
+
+ +
+
+
+
+ +

Class GetAccountResult

+
+

Hierarchy

+
    +
  • GetAccountResult
+
+
+
+ +
+
+

Constructors

+
+
+

Properties

+
+
+

Methods

+
+
+

Constructors

+
+ +
+
+

Properties

+
+ +
account: any
+
+
+ +
api_version: any
+
+
+ +
merkle_proof: string
+
+
+

Methods

+
+ +
    + +
  • +

    Returns void

+
+ +
    + +
  • +

    Returns any

    +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/docs/api-wasm/classes/GetAuctionInfoResult.html b/docs/api-wasm/classes/GetAuctionInfoResult.html new file mode 100644 index 000000000..918324a32 --- /dev/null +++ b/docs/api-wasm/classes/GetAuctionInfoResult.html @@ -0,0 +1,141 @@ +GetAuctionInfoResult | casper-rust-wasm-sdk
+
+ +
+
+
+
+ +

Class GetAuctionInfoResult

+
+

Hierarchy

+
    +
  • GetAuctionInfoResult
+
+
+
+ +
+
+

Constructors

+
+
+

Properties

+
+
+

Methods

+
+
+

Constructors

+
+ +
+
+

Properties

+
+ +
api_version: any
+

Gets the API version as a JsValue.

+
+
+
+ +
auction_state: any
+

Gets the auction state as a JsValue.

+
+
+
+

Methods

+
+ +
    + +
  • +

    Returns void

+
+ +
    + +
  • +

    Converts the GetAuctionInfoResult to a JsValue.

    +
    +

    Returns any

    +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/docs/api-wasm/classes/GetBalanceResult.html b/docs/api-wasm/classes/GetBalanceResult.html new file mode 100644 index 000000000..6dcdceb29 --- /dev/null +++ b/docs/api-wasm/classes/GetBalanceResult.html @@ -0,0 +1,151 @@ +GetBalanceResult | casper-rust-wasm-sdk
+
+ +
+
+
+
+ +

Class GetBalanceResult

+
+

Hierarchy

+
    +
  • GetBalanceResult
+
+
+
+ +
+
+

Constructors

+
+
+

Properties

+
+
+

Methods

+
+
+

Constructors

+
+ +
+
+

Properties

+
+ +
api_version: any
+

Gets the API version as a JsValue.

+
+
+
+ +
balance_value: any
+

Gets the balance value as a JsValue.

+
+
+
+ +
merkle_proof: string
+

Gets the Merkle proof as a string.

+
+
+
+

Methods

+
+ +
    + +
  • +

    Returns void

+
+ +
    + +
  • +

    Converts the GetBalanceResult to a JsValue.

    +
    +

    Returns any

    +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/docs/api-wasm/classes/GetBlockResult.html b/docs/api-wasm/classes/GetBlockResult.html new file mode 100644 index 000000000..7e76c9383 --- /dev/null +++ b/docs/api-wasm/classes/GetBlockResult.html @@ -0,0 +1,141 @@ +GetBlockResult | casper-rust-wasm-sdk
+
+ +
+
+
+
+ +

Class GetBlockResult

+
+

Hierarchy

+
    +
  • GetBlockResult
+
+
+
+ +
+
+

Constructors

+
+
+

Properties

+
+
+

Methods

+
+
+

Constructors

+
+ +
+
+

Properties

+
+ +
api_version: any
+

Gets the API version as a JsValue.

+
+
+
+ +
block: any
+

Gets the block information as a JsValue.

+
+
+
+

Methods

+
+ +
    + +
  • +

    Returns void

+
+ +
    + +
  • +

    Converts the GetBlockResult to a JsValue.

    +
    +

    Returns any

    +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/docs/api-wasm/classes/GetBlockTransfersResult.html b/docs/api-wasm/classes/GetBlockTransfersResult.html new file mode 100644 index 000000000..05f07ca07 --- /dev/null +++ b/docs/api-wasm/classes/GetBlockTransfersResult.html @@ -0,0 +1,151 @@ +GetBlockTransfersResult | casper-rust-wasm-sdk
+
+ +
+
+
+
+ +

Class GetBlockTransfersResult

+
+

Hierarchy

+
    +
  • GetBlockTransfersResult
+
+
+
+ +
+
+

Constructors

+
+
+

Properties

+
+
+

Methods

+
+
+

Constructors

+
+ +
+
+

Properties

+
+ +
api_version: any
+

Gets the API version as a JsValue.

+
+
+
+ +
block_hash: BlockHash
+

Gets the block hash as an Option.

+
+
+
+ +
transfers: any
+

Gets the transfers as a JsValue.

+
+
+
+

Methods

+
+ +
    + +
  • +

    Returns void

+
+ +
    + +
  • +

    Converts the GetBlockTransfersResult to a JsValue.

    +
    +

    Returns any

    +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/docs/api-wasm/classes/GetChainspecResult.html b/docs/api-wasm/classes/GetChainspecResult.html new file mode 100644 index 000000000..fc92c66aa --- /dev/null +++ b/docs/api-wasm/classes/GetChainspecResult.html @@ -0,0 +1,145 @@ +GetChainspecResult | casper-rust-wasm-sdk
+
+ +
+
+
+
+ +

Class GetChainspecResult

+
+

A struct representing the result of the get_chainspec function.

+
+
+
+

Hierarchy

+
    +
  • GetChainspecResult
+
+
+
+ +
+
+

Constructors

+
+
+

Properties

+
+
+

Methods

+
+
+

Constructors

+
+ +
+
+

Properties

+
+ +
api_version: any
+

Gets the API version as a JsValue.

+
+
+
+ +
chainspec_bytes: any
+

Gets the chainspec bytes as a JsValue.

+
+
+
+

Methods

+
+ +
    + +
  • +

    Returns void

+
+ +
    + +
  • +

    Converts the GetChainspecResult to a JsValue.

    +
    +

    Returns any

    +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/docs/api-wasm/classes/GetDeployResult.html b/docs/api-wasm/classes/GetDeployResult.html new file mode 100644 index 000000000..8c7bacd4c --- /dev/null +++ b/docs/api-wasm/classes/GetDeployResult.html @@ -0,0 +1,141 @@ +GetDeployResult | casper-rust-wasm-sdk
+
+ +
+
+
+
+ +

Class GetDeployResult

+
+

Hierarchy

+
    +
  • GetDeployResult
+
+
+
+ +
+
+

Constructors

+
+
+

Properties

+
+
+

Methods

+
+
+

Constructors

+
+ +
+
+

Properties

+
+ +
api_version: any
+

Gets the API version as a JavaScript value.

+
+
+
+ +
deploy: Deploy
+

Gets the deploy information.

+
+
+
+

Methods

+
+ +
    + +
  • +

    Returns void

+
+ +
    + +
  • +

    Converts the result to a JSON JavaScript value.

    +
    +

    Returns any

    +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/docs/api-wasm/classes/GetDictionaryItemResult.html b/docs/api-wasm/classes/GetDictionaryItemResult.html new file mode 100644 index 000000000..2dd232502 --- /dev/null +++ b/docs/api-wasm/classes/GetDictionaryItemResult.html @@ -0,0 +1,161 @@ +GetDictionaryItemResult | casper-rust-wasm-sdk
+
+ +
+
+
+
+ +

Class GetDictionaryItemResult

+
+

Hierarchy

+
    +
  • GetDictionaryItemResult
+
+
+
+ +
+
+

Constructors

+
+
+

Properties

+
+
+

Methods

+
+
+

Constructors

+
+ +
+
+

Properties

+
+ +
api_version: any
+

Gets the API version as a JsValue.

+
+
+
+ +
dictionary_key: string
+

Gets the dictionary key as a String.

+
+
+
+ +
merkle_proof: string
+

Gets the merkle proof as a String.

+
+
+
+ +
stored_value: any
+

Gets the stored value as a JsValue.

+
+
+
+

Methods

+
+ +
    + +
  • +

    Returns void

+
+ +
    + +
  • +

    Converts the GetDictionaryItemResult to a JsValue.

    +
    +

    Returns any

    +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/docs/api-wasm/classes/GetEraInfoResult.html b/docs/api-wasm/classes/GetEraInfoResult.html new file mode 100644 index 000000000..eb6d1e5a7 --- /dev/null +++ b/docs/api-wasm/classes/GetEraInfoResult.html @@ -0,0 +1,135 @@ +GetEraInfoResult | casper-rust-wasm-sdk
+
+ +
+
+
+
+ +

Class GetEraInfoResult

+
+

Hierarchy

+
    +
  • GetEraInfoResult
+
+
+
+ +
+
+

Constructors

+
+
+

Properties

+
+
+

Methods

+
+
+

Constructors

+
+ +
+
+

Properties

+
+ +
api_version: any
+
+
+ +
era_summary: any
+
+
+

Methods

+
+ +
    + +
  • +

    Returns void

+
+ +
    + +
  • +

    Returns any

    +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/docs/api-wasm/classes/GetEraSummaryResult.html b/docs/api-wasm/classes/GetEraSummaryResult.html new file mode 100644 index 000000000..3452131ad --- /dev/null +++ b/docs/api-wasm/classes/GetEraSummaryResult.html @@ -0,0 +1,145 @@ +GetEraSummaryResult | casper-rust-wasm-sdk
+
+ +
+
+
+
+ +

Class GetEraSummaryResult

+
+

Wrapper struct for the GetEraSummaryResult from casper_client.

+
+
+
+

Hierarchy

+
    +
  • GetEraSummaryResult
+
+
+
+ +
+
+

Constructors

+
+
+

Properties

+
+
+

Methods

+
+
+

Constructors

+
+ +
+
+

Properties

+
+ +
api_version: any
+

Gets the API version as a JsValue.

+
+
+
+ +
era_summary: any
+

Gets the era summary as a JsValue.

+
+
+
+

Methods

+
+ +
    + +
  • +

    Returns void

+
+ +
    + +
  • +

    Converts the GetEraSummaryResult to a JsValue.

    +
    +

    Returns any

    +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/docs/api-wasm/classes/GetNodeStatusResult.html b/docs/api-wasm/classes/GetNodeStatusResult.html new file mode 100644 index 000000000..6866319d0 --- /dev/null +++ b/docs/api-wasm/classes/GetNodeStatusResult.html @@ -0,0 +1,265 @@ +GetNodeStatusResult | casper-rust-wasm-sdk
+
+ +
+
+
+
+ +

Class GetNodeStatusResult

+
+

Wrapper struct for the GetNodeStatusResult from casper_client.

+
+
+
+

Hierarchy

+
    +
  • GetNodeStatusResult
+
+
+
+ +
+
+

Constructors

+
+ +
+
+

Properties

+
+ +
api_version: any
+

Gets the API version as a JsValue.

+
+
+
+ +
available_block_range: any
+

Gets the available block range as a JsValue.

+
+
+
+ +
block_sync: any
+

Gets the block sync information as a JsValue.

+
+
+
+ +
build_version: string
+

Gets the build version as a String.

+
+
+
+ +
chainspec_name: string
+

Gets the chainspec name as a String.

+
+
+
+ +
last_added_block_info: any
+

Gets information about the last added block as a JsValue.

+
+
+
+ +
last_progress: any
+

Gets the last progress information as a JsValue.

+
+
+
+ +
next_upgrade: any
+

Gets information about the next upgrade as a JsValue.

+
+
+
+ +
our_public_signing_key: PublicKey
+

Gets the public signing key as an Option.

+
+
+
+ +
peers: any
+

Gets the list of peers as a JsValue.

+
+
+
+ +
reactor_state: any
+

Gets the reactor state information as a JsValue.

+
+
+
+ +
round_length: any
+

Gets the round length as a JsValue.

+
+
+
+ +
starting_state_root_hash: Digest
+

Gets the starting state root hash as a Digest.

+
+
+
+ +
uptime: any
+

Gets the uptime information as a JsValue.

+
+
+
+

Methods

+
+ +
    + +
  • +

    Returns void

+
+ +
    + +
  • +

    Converts the GetNodeStatusResult to a JsValue.

    +
    +

    Returns any

    +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/docs/api-wasm/classes/GetPeersResult.html b/docs/api-wasm/classes/GetPeersResult.html new file mode 100644 index 000000000..73e9459ab --- /dev/null +++ b/docs/api-wasm/classes/GetPeersResult.html @@ -0,0 +1,145 @@ +GetPeersResult | casper-rust-wasm-sdk
+
+ +
+
+
+
+ +

Class GetPeersResult

+
+

A wrapper for the GetPeersResult type from the Casper client.

+
+
+
+

Hierarchy

+
    +
  • GetPeersResult
+
+
+
+ +
+
+

Constructors

+
+
+

Properties

+
+
+

Methods

+
+
+

Constructors

+
+ +
+
+

Properties

+
+ +
api_version: any
+

Gets the API version as a JSON value.

+
+
+
+ +
peers: any
+

Gets the peers as a JSON value.

+
+
+
+

Methods

+
+ +
    + +
  • +

    Returns void

+
+ +
    + +
  • +

    Converts the result to JSON format as a JavaScript value.

    +
    +

    Returns any

    +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/docs/api-wasm/classes/GetStateRootHashResult.html b/docs/api-wasm/classes/GetStateRootHashResult.html new file mode 100644 index 000000000..a23398d3a --- /dev/null +++ b/docs/api-wasm/classes/GetStateRootHashResult.html @@ -0,0 +1,155 @@ +GetStateRootHashResult | casper-rust-wasm-sdk
+
+ +
+
+
+
+ +

Class GetStateRootHashResult

+
+

Wrapper struct for the GetStateRootHashResult from casper_client.

+
+
+
+

Hierarchy

+
    +
  • GetStateRootHashResult
+
+
+
+ +
+
+

Constructors

+
+
+

Properties

+
+
+

Methods

+
+
+

Constructors

+
+ +
+
+

Properties

+
+ +
api_version: any
+

Gets the API version as a JsValue.

+
+
+
+ +
state_root_hash: Digest
+

Gets the state root hash as an Option.

+
+
+
+ +
state_root_hash_as_string: string
+

Gets the state root hash as a String.

+
+
+
+

Methods

+
+ +
    + +
  • +

    Returns void

+
+ +
    + +
  • +

    Converts the GetStateRootHashResult to a JsValue.

    +
    +

    Returns any

    +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/docs/api-wasm/classes/GetValidatorChangesResult.html b/docs/api-wasm/classes/GetValidatorChangesResult.html new file mode 100644 index 000000000..9e71c493f --- /dev/null +++ b/docs/api-wasm/classes/GetValidatorChangesResult.html @@ -0,0 +1,145 @@ +GetValidatorChangesResult | casper-rust-wasm-sdk
+
+ +
+
+
+
+ +

Class GetValidatorChangesResult

+
+

Wrapper struct for the GetValidatorChangesResult from casper_client.

+
+
+
+

Hierarchy

+
    +
  • GetValidatorChangesResult
+
+
+
+ +
+
+

Constructors

+
+
+

Properties

+
+
+

Methods

+
+
+

Constructors

+
+ +
+
+

Properties

+
+ +
api_version: any
+

Gets the API version as a JsValue.

+
+
+
+ +
changes: any
+

Gets the validator changes as a JsValue.

+
+
+
+

Methods

+
+ +
    + +
  • +

    Returns void

+
+ +
    + +
  • +

    Converts the GetValidatorChangesResult to a JsValue.

    +
    +

    Returns any

    +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/docs/api-wasm/classes/GlobalStateIdentifier.html b/docs/api-wasm/classes/GlobalStateIdentifier.html new file mode 100644 index 000000000..45716935b --- /dev/null +++ b/docs/api-wasm/classes/GlobalStateIdentifier.html @@ -0,0 +1,174 @@ +GlobalStateIdentifier | casper-rust-wasm-sdk
+
+ +
+
+
+
+ +

Class GlobalStateIdentifier

+
+

Hierarchy

+
    +
  • GlobalStateIdentifier
+
+
+
+ +
+
+

Constructors

+
+ +
+
+

Methods

+
+ +
    + +
  • +

    Returns void

+
+ +
    + +
  • +

    Returns any

    +
+
+ +
+
+ +
+
+ +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/docs/api-wasm/classes/HashAddr.html b/docs/api-wasm/classes/HashAddr.html new file mode 100644 index 000000000..cceffef8e --- /dev/null +++ b/docs/api-wasm/classes/HashAddr.html @@ -0,0 +1,112 @@ +HashAddr | casper-rust-wasm-sdk
+
+ +
+
+
+
+ +

Class HashAddr

+
+

Hierarchy

+
    +
  • HashAddr
+
+
+
+ +
+
+

Constructors

+
+
+

Methods

+
+
+

Constructors

+
+ +
    + +
  • +
    +

    Parameters

    +
      +
    • +
      bytes: Uint8Array
      +
    +

    Returns HashAddr

    +
+
+

Methods

+
+ +
    + +
  • +

    Returns void

+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/docs/api-wasm/classes/Key.html b/docs/api-wasm/classes/Key.html new file mode 100644 index 000000000..2bc371f64 --- /dev/null +++ b/docs/api-wasm/classes/Key.html @@ -0,0 +1,490 @@ +Key | casper-rust-wasm-sdk
+
+ +
+
+
+
+ +

Class Key

+
+

Hierarchy

+
    +
  • Key
+
+
+
+ +
+
+

Constructors

+
+ +
    + +
  • +
    +

    Parameters

    +
    +

    Returns Key

    +
+
+

Methods

+
+ +
    + +
  • +

    Returns URefAddr

    +
+
+ +
+
+ +
    + +
  • +

    Returns void

+
+ +
+
+ +
    + +
  • +

    Returns HashAddr

    +
+
+ +
    + +
  • +

    Returns URef

    +
+
+ +
    + +
  • +

    Returns boolean

    +
+
+ +
    + +
  • +

    Returns string

    +
+
+ +
    + +
  • +

    Returns any

    +
+
+ +
    + +
  • +

    Returns Key

    +
+
+ +
    + +
  • +

    Returns Key

    +
+
+ +
    + +
  • +
    +

    Parameters

    +
    +

    Returns Key

    +
+
+ +
    + +
  • +
    +

    Parameters

    +
    +

    Returns Key

    +
+
+ +
    + +
  • +
    +

    Parameters

    +
    +

    Returns Key

    +
+
+ +
    + +
  • +

    Returns Key

    +
+
+ +
    + +
  • +

    Returns Key

    +
+
+ +
    + +
  • +
    +

    Parameters

    +
    +

    Returns Key

    +
+
+ +
    + +
  • +
    +

    Parameters

    +
    +

    Returns Key

    +
+
+ +
    + +
  • +
    +

    Parameters

    +
      +
    • +
      seed_uref: URef
      +
    • +
    • +
      dictionary_item_key: Uint8Array
      +
    +

    Returns Key

    +
+
+ +
    + +
  • +
    +

    Parameters

    +
    +

    Returns Key

    +
+
+ +
    + +
  • +

    Returns Key

    +
+
+ +
    + +
  • +
    +

    Parameters

    +
      +
    • +
      input: any
      +
    +

    Returns Key

    +
+
+ +
    + +
  • +
    +

    Parameters

    +
    +

    Returns Key

    +
+
+ +
    + +
  • +

    Returns Key

    +
+
+ +
    + +
  • +
    +

    Parameters

    +
      +
    • +
      key: Uint8Array
      +
    +

    Returns TransferAddr

    +
+
+ +
    + +
  • +
    +

    Parameters

    +
    +

    Returns Key

    +
+
+ +
    + +
  • +
    +

    Parameters

    +
    +

    Returns Key

    +
+
+ +
    + +
  • +
    +

    Parameters

    +
    +

    Returns Key

    +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/docs/api-wasm/classes/ListRpcsResult.html b/docs/api-wasm/classes/ListRpcsResult.html new file mode 100644 index 000000000..0c0ba81ab --- /dev/null +++ b/docs/api-wasm/classes/ListRpcsResult.html @@ -0,0 +1,155 @@ +ListRpcsResult | casper-rust-wasm-sdk
+
+ +
+
+
+
+ +

Class ListRpcsResult

+
+

Wrapper struct for the ListRpcsResult from casper_client.

+
+
+
+

Hierarchy

+
    +
  • ListRpcsResult
+
+
+
+ +
+
+

Constructors

+
+
+

Properties

+
+
+

Methods

+
+
+

Constructors

+
+ +
+
+

Properties

+
+ +
api_version: any
+

Gets the API version as a JsValue.

+
+
+
+ +
name: string
+

Gets the name of the RPC.

+
+
+
+ +
schema: any
+

Gets the schema of the RPC as a JsValue.

+
+
+
+

Methods

+
+ +
    + +
  • +

    Returns void

+
+ +
    + +
  • +

    Converts the ListRpcsResult to a JsValue.

    +
    +

    Returns any

    +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/docs/api-wasm/classes/Path.html b/docs/api-wasm/classes/Path.html new file mode 100644 index 000000000..c67b25a06 --- /dev/null +++ b/docs/api-wasm/classes/Path.html @@ -0,0 +1,162 @@ +Path | casper-rust-wasm-sdk
+
+ +
+
+
+
+ +

Class Path

+
+

Hierarchy

+
    +
  • Path
+
+
+
+ +
+
+

Constructors

+
+
+

Methods

+
+
+

Constructors

+
+ +
    + +
  • +
    +

    Parameters

    +
      +
    • +
      path: any
      +
    +

    Returns Path

    +
+
+

Methods

+
+ +
    + +
  • +

    Returns void

+
+ +
    + +
  • +

    Returns boolean

    +
+
+ +
    + +
  • +

    Returns any

    +
+
+ +
    + +
  • +

    Returns string

    +
+
+ +
    + +
  • +
    +

    Parameters

    +
      +
    • +
      path: any
      +
    +

    Returns Path

    +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/docs/api-wasm/classes/PaymentStrParams.html b/docs/api-wasm/classes/PaymentStrParams.html new file mode 100644 index 000000000..48f21e3cb --- /dev/null +++ b/docs/api-wasm/classes/PaymentStrParams.html @@ -0,0 +1,235 @@ +PaymentStrParams | casper-rust-wasm-sdk
+
+ +
+
+
+
+ +

Class PaymentStrParams

+
+

Hierarchy

+
    +
  • PaymentStrParams
+
+
+
+ +
+
+

Constructors

+
+ +
    + +
  • +
    +

    Parameters

    +
      +
    • +
      Optional payment_amount: string
      +
    • +
    • +
      Optional payment_hash: string
      +
    • +
    • +
      Optional payment_name: string
      +
    • +
    • +
      Optional payment_package_hash: string
      +
    • +
    • +
      Optional payment_package_name: string
      +
    • +
    • +
      Optional payment_path: string
      +
    • +
    • +
      Optional payment_args_simple: any[]
      +
    • +
    • +
      Optional payment_args_json: string
      +
    • +
    • +
      Optional payment_args_complex: string
      +
    • +
    • +
      Optional payment_version: string
      +
    • +
    • +
      Optional payment_entry_point: string
      +
    +

    Returns PaymentStrParams

    +
+
+

Properties

+
+ +
payment_amount: string
+
+
+ +
payment_args_complex: string
+
+
+ +
payment_args_json: string
+
+
+ +
payment_args_simple: any[]
+
+
+ +
payment_entry_point: string
+
+
+ +
payment_hash: string
+
+
+ +
payment_name: string
+
+
+ +
payment_package_hash: string
+
+
+ +
payment_package_name: string
+
+
+ +
payment_path: string
+
+
+ +
payment_version: string
+
+
+

Methods

+
+ +
    + +
  • +

    Returns void

+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/docs/api-wasm/classes/PeerEntry.html b/docs/api-wasm/classes/PeerEntry.html new file mode 100644 index 000000000..018afca45 --- /dev/null +++ b/docs/api-wasm/classes/PeerEntry.html @@ -0,0 +1,124 @@ +PeerEntry | casper-rust-wasm-sdk
+
+ +
+
+
+
+ +

Class PeerEntry

+
+

Hierarchy

+
    +
  • PeerEntry
+
+
+
+ +
+
+

Constructors

+
+
+

Properties

+
+
+

Methods

+
+
+

Constructors

+
+ +
+
+

Properties

+
+ +
address: string
+
+
+ +
node_id: string
+
+
+

Methods

+
+ +
    + +
  • +

    Returns void

+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/docs/api-wasm/classes/PublicKey.html b/docs/api-wasm/classes/PublicKey.html new file mode 100644 index 000000000..15d321160 --- /dev/null +++ b/docs/api-wasm/classes/PublicKey.html @@ -0,0 +1,162 @@ +PublicKey | casper-rust-wasm-sdk
+
+ +
+
+
+
+ +

Class PublicKey

+
+

Hierarchy

+
    +
  • PublicKey
+
+
+
+ +
+
+

Constructors

+
+
+

Methods

+
+
+

Constructors

+
+ +
    + +
  • +
    +

    Parameters

    +
      +
    • +
      public_key_hex_str: string
      +
    +

    Returns PublicKey

    +
+
+

Methods

+
+ +
    + +
  • +

    Returns void

+
+ +
+
+ +
    + +
  • +

    Returns any

    +
+
+ +
    + +
  • +

    Returns URef

    +
+
+ +
    + +
  • +
    +

    Parameters

    +
      +
    • +
      bytes: Uint8Array
      +
    +

    Returns PublicKey

    +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/docs/api-wasm/classes/PurseIdentifier.html b/docs/api-wasm/classes/PurseIdentifier.html new file mode 100644 index 000000000..10a06da8a --- /dev/null +++ b/docs/api-wasm/classes/PurseIdentifier.html @@ -0,0 +1,146 @@ +PurseIdentifier | casper-rust-wasm-sdk
+
+ +
+
+
+
+ +

Class PurseIdentifier

+
+

Hierarchy

+
    +
  • PurseIdentifier
+
+
+
+ +
+
+

Constructors

+
+
+

Methods

+
+
+

Constructors

+
+ +
+
+

Methods

+
+ +
    + +
  • +

    Returns void

+
+ +
+
+ +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/docs/api-wasm/classes/PutDeployResult.html b/docs/api-wasm/classes/PutDeployResult.html new file mode 100644 index 000000000..bddc5db96 --- /dev/null +++ b/docs/api-wasm/classes/PutDeployResult.html @@ -0,0 +1,141 @@ +PutDeployResult | casper-rust-wasm-sdk
+
+ +
+
+
+
+ +

Class PutDeployResult

+
+

Hierarchy

+
    +
  • PutDeployResult
+
+
+
+ +
+
+

Constructors

+
+
+

Properties

+
+
+

Methods

+
+
+

Constructors

+
+ +
+
+

Properties

+
+ +
api_version: any
+

Gets the API version as a JavaScript value.

+
+
+
+ +
deploy_hash: DeployHash
+

Gets the deploy hash associated with this result.

+
+
+
+

Methods

+
+ +
    + +
  • +

    Returns void

+
+ +
    + +
  • +

    Converts PutDeployResult to a JavaScript object.

    +
    +

    Returns any

    +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/docs/api-wasm/classes/QueryBalanceResult.html b/docs/api-wasm/classes/QueryBalanceResult.html new file mode 100644 index 000000000..6ba7296eb --- /dev/null +++ b/docs/api-wasm/classes/QueryBalanceResult.html @@ -0,0 +1,141 @@ +QueryBalanceResult | casper-rust-wasm-sdk
+
+ +
+
+
+
+ +

Class QueryBalanceResult

+
+

Hierarchy

+
    +
  • QueryBalanceResult
+
+
+
+ +
+
+

Constructors

+
+
+

Properties

+
+
+

Methods

+
+
+

Constructors

+
+ +
+
+

Properties

+
+ +
api_version: any
+

Gets the API version as a JsValue.

+
+
+
+ +
balance: any
+

Gets the balance as a JsValue.

+
+
+
+

Methods

+
+ +
    + +
  • +

    Returns void

+
+ +
    + +
  • +

    Converts the QueryBalanceResult to a JsValue.

    +
    +

    Returns any

    +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/docs/api-wasm/classes/QueryGlobalStateResult.html b/docs/api-wasm/classes/QueryGlobalStateResult.html new file mode 100644 index 000000000..096be9645 --- /dev/null +++ b/docs/api-wasm/classes/QueryGlobalStateResult.html @@ -0,0 +1,161 @@ +QueryGlobalStateResult | casper-rust-wasm-sdk
+
+ +
+
+
+
+ +

Class QueryGlobalStateResult

+
+

Hierarchy

+
    +
  • QueryGlobalStateResult
+
+
+
+ +
+
+

Constructors

+
+
+

Properties

+
+
+

Methods

+
+
+

Constructors

+
+ +
+
+

Properties

+
+ +
api_version: any
+

Gets the API version as a JsValue.

+
+
+
+ +
block_header: any
+

Gets the block header as a JsValue.

+
+
+
+ +
merkle_proof: string
+

Gets the Merkle proof as a string.

+
+
+
+ +
stored_value: any
+

Gets the stored value as a JsValue.

+
+
+
+

Methods

+
+ +
    + +
  • +

    Returns void

+
+ +
    + +
  • +

    Converts the QueryGlobalStateResult to a JsValue.

    +
    +

    Returns any

    +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/docs/api-wasm/classes/SDK.html b/docs/api-wasm/classes/SDK.html new file mode 100644 index 000000000..7c65b58fb --- /dev/null +++ b/docs/api-wasm/classes/SDK.html @@ -0,0 +1,1686 @@ +SDK | casper-rust-wasm-sdk
+
+ +
+
+
+
+ +

Class SDK

+
+

Hierarchy

+
    +
  • SDK
+
+
+
+ +
+
+

Constructors

+
+ +
    + +
  • +
    +

    Parameters

    +
      +
    • +
      Optional node_address: string
      +
    • +
    • +
      Optional verbosity: number
      +
    +

    Returns SDK

    +
+
+

Methods

+
+ +
    + +
  • +

    JS Alias for put_deploy_js_alias.

    +

    This function provides an alternative name for put_deploy_js_alias.

    +
    +
    +

    Parameters

    +
      +
    • +
      deploy: Deploy
      +
    • +
    • +
      Optional verbosity: number
      +
    • +
    • +
      Optional node_address: string
      +
    +

    Returns Promise<PutDeployResult>

    +
+
+ +
    + +
  • +

    Calls a smart contract entry point with the specified parameters and returns the result.

    +

    Arguments

      +
    • deploy_params - The deploy parameters.
    • +
    • session_params - The session parameters.
    • +
    • payment_amount - The payment amount as a string.
    • +
    • node_address - An optional node address to send the request to.
    • +
    +

    Returns

    A Result containing either a PutDeployResult or a JsError in case of an error.

    +

    Errors

    Returns a JsError if there is an error during the call.

    +
    +
    +

    Parameters

    +
    +

    Returns Promise<PutDeployResult>

    +
+
+ +
    + +
  • +

    JS Alias for the get_block method to maintain compatibility.

    +

    Arguments

      +
    • options - An optional GetBlockOptions struct containing retrieval options.
    • +
    +

    Returns

    A Result containing either a GetBlockResult or a JsError in case of an error.

    +

    Errors

    Returns a JsError if there is an error during the retrieval process.

    +
    +
    +

    Parameters

    +
    +

    Returns Promise<GetBlockResult>

    +
+
+ +
    + +
  • +

    Retrieves state root hash information using the provided options (alias for get_state_root_hash_js_alias).

    +

    Arguments

      +
    • options - An optional GetStateRootHashOptions struct containing retrieval options.
    • +
    +

    Returns

    A Result containing either a GetStateRootHashResult or a JsError in case of an error.

    +

    Errors

    Returns a JsError if there is an error during the retrieval process.

    +
    +
    +

    Parameters

    +
    +

    Returns Promise<GetStateRootHashResult>

    +
+
+ +
    + +
  • +

    JavaScript alias for deploying with deserialized parameters.

    +

    Arguments

      +
    • deploy_params - Deploy parameters.
    • +
    • session_params - Session parameters.
    • +
    • payment_params - Payment parameters.
    • +
    • verbosity - An optional verbosity level.
    • +
    • node_address - An optional node address.
    • +
    +

    Returns

    A result containing PutDeployResult or a JsError.

    +
    +
    +

    Parameters

    +
    +

    Returns Promise<PutDeployResult>

    +
+
+ +
    + +
  • +

    Returns void

+
+ +
    + +
  • +
    +

    Parameters

    +
      +
    • +
      Optional node_address: string
      +
    +

    Returns string

    +
+
+ +
    + +
  • +
    +

    Parameters

    +
      +
    • +
      Optional verbosity: number
      +
    +

    Returns number

    +
+
+ +
+
+ +
+
+ +
    + +
  • +

    Retrieves auction information using the provided options.

    +

    Arguments

      +
    • options - An optional GetAuctionInfoOptions struct containing retrieval options.
    • +
    +

    Returns

    A Result containing either a GetAuctionInfoResult or a JsError in case of an error.

    +

    Errors

    Returns a JsError if there is an error during the retrieval process.

    +
    +
    +

    Parameters

    +
    +

    Returns Promise<GetAuctionInfoResult>

    +
+
+ +
    + +
  • +

    Parses auction info options from a JsValue.

    +

    Arguments

      +
    • options - A JsValue containing auction info options to be parsed.
    • +
    +

    Returns

    Parsed auction info options as a GetAuctionInfoOptions struct.

    +
    +
    +

    Parameters

    +
      +
    • +
      options: any
      +
    +

    Returns getAuctionInfoOptions

    +
+
+ +
    + +
  • +

    Retrieves balance information using the provided options.

    +

    Arguments

      +
    • options - An optional GetBalanceOptions struct containing retrieval options.
    • +
    +

    Returns

    A Result containing either a GetBalanceResult or a JsError in case of an error.

    +

    Errors

    Returns a JsError if there is an error during the retrieval process.

    +
    +
    +

    Parameters

    +
    +

    Returns Promise<GetBalanceResult>

    +
+
+ +
    + +
  • +

    Parses balance options from a JsValue.

    +

    Arguments

      +
    • options - A JsValue containing balance options to be parsed.
    • +
    +

    Returns

    Parsed balance options as a GetBalanceOptions struct.

    +
    +
    +

    Parameters

    +
      +
    • +
      options: any
      +
    +

    Returns getBalanceOptions

    +
+
+ +
    + +
  • +

    Retrieves block information using the provided options.

    +

    Arguments

      +
    • options - An optional GetBlockOptions struct containing retrieval options.
    • +
    +

    Returns

    A Result containing either a GetBlockResult or a JsError in case of an error.

    +

    Errors

    Returns a JsError if there is an error during the retrieval process.

    +
    +
    +

    Parameters

    +
    +

    Returns Promise<GetBlockResult>

    +
+
+ +
    + +
  • +

    Parses block options from a JsValue.

    +

    Arguments

      +
    • options - A JsValue containing block options to be parsed.
    • +
    +

    Returns

    Parsed block options as a GetBlockOptions struct.

    +
    +
    +

    Parameters

    +
      +
    • +
      options: any
      +
    +

    Returns getBlockOptions

    +
+
+ +
    + +
  • +

    Retrieves block transfers information using the provided options.

    +

    Arguments

      +
    • options - An optional GetBlockTransfersOptions struct containing retrieval options.
    • +
    +

    Returns

    A Result containing either a GetBlockTransfersResult or a JsError in case of an error.

    +

    Errors

    Returns a JsError if there is an error during the retrieval process.

    +
    +
    +

    Parameters

    +
    +

    Returns Promise<GetBlockTransfersResult>

    +
+
+ +
    + +
  • +

    Parses block transfers options from a JsValue.

    +

    Arguments

      +
    • options - A JsValue containing block transfers options to be parsed.
    • +
    +

    Returns

    Parsed block transfers options as a GetBlockTransfersOptions struct.

    +
    +
    +

    Parameters

    +
      +
    • +
      options: any
      +
    +

    Returns getBlockTransfersOptions

    +
+
+ +
    + +
  • +

    Asynchronously retrieves the chainspec.

    +

    Arguments

      +
    • verbosity - An optional Verbosity parameter.
    • +
    • node_address - An optional node address as a string.
    • +
    +

    Returns

    A Result containing either a GetChainspecResult or a JsError in case of an error.

    +
    +
    +

    Parameters

    +
      +
    • +
      Optional verbosity: number
      +
    • +
    • +
      Optional node_address: string
      +
    +

    Returns Promise<GetChainspecResult>

    +
+
+ +
    + +
  • +

    Retrieves deploy information using the provided options.

    +

    Arguments

      +
    • options - An optional GetDeployOptions struct containing retrieval options.
    • +
    +

    Returns

    A Result containing either a GetDeployResult or an error.

    +
    +
    +

    Parameters

    +
    +

    Returns Promise<GetDeployResult>

    +
+
+ +
    + +
  • +

    Parses deploy options from a JsValue.

    +

    Arguments

      +
    • options - A JsValue containing deploy options to be parsed.
    • +
    +

    Returns

    Parsed deploy options as a GetDeployOptions struct.

    +
    +
    +

    Parameters

    +
      +
    • +
      options: any
      +
    +

    Returns getDeployOptions

    +
+
+ +
    + +
  • +

    Retrieves dictionary item information using the provided options.

    +

    Arguments

      +
    • options - An optional GetDictionaryItemOptions struct containing retrieval options.
    • +
    +

    Returns

    A Result containing either a GetDictionaryItemResult or a JsError in case of an error.

    +

    Errors

    Returns a JsError if there is an error during the retrieval process.

    +
    +
    +

    Parameters

    +
    +

    Returns Promise<GetDictionaryItemResult>

    +
+
+ +
    + +
  • +

    Parses dictionary item options from a JsValue.

    +

    Arguments

      +
    • options - A JsValue containing dictionary item options to be parsed.
    • +
    +

    Returns

    Parsed dictionary item options as a GetDictionaryItemOptions struct.

    +
    +
    +

    Parameters

    +
      +
    • +
      options: any
      +
    +

    Returns getDictionaryItemOptions

    +
+
+ +
+
+ +
+
+ +
    + +
  • +

    Retrieves era summary information using the provided options.

    +

    Arguments

      +
    • options - An optional GetEraSummaryOptions struct containing retrieval options.
    • +
    +

    Returns

    A Result containing either a GetEraSummaryResult or a JsError in case of an error.

    +

    Errors

    Returns a JsError if there is an error during the retrieval process.

    +
    +
    +

    Parameters

    +
    +

    Returns Promise<GetEraSummaryResult>

    +
+
+ +
    + +
  • +

    Parses era summary options from a JsValue.

    +

    Arguments

      +
    • options - A JsValue containing era summary options to be parsed.
    • +
    +

    Returns

    Parsed era summary options as a GetEraSummaryOptions struct.

    +
    +
    +

    Parameters

    +
      +
    • +
      options: any
      +
    +

    Returns getEraSummaryOptions

    +
+
+ +
    + +
  • +

    Retrieves node status information using the provided options.

    +

    Arguments

      +
    • verbosity - An optional Verbosity level for controlling the output verbosity.
    • +
    • node_address - An optional string specifying the node address to use for the request.
    • +
    +

    Returns

    A Result containing either a GetNodeStatusResult or a JsError in case of an error.

    +

    Errors

    Returns a JsError if there is an error during the retrieval process.

    +
    +
    +

    Parameters

    +
      +
    • +
      Optional verbosity: number
      +
    • +
    • +
      Optional node_address: string
      +
    +

    Returns Promise<GetNodeStatusResult>

    +
+
+ +
    + +
  • +

    Retrieves peers asynchronously.

    +

    Arguments

      +
    • verbosity - Optional verbosity level.
    • +
    • node_address - Optional node address.
    • +
    +

    Returns

    A Result containing GetPeersResult or a JsError if an error occurs.

    +
    +
    +

    Parameters

    +
      +
    • +
      Optional verbosity: number
      +
    • +
    • +
      Optional node_address: string
      +
    +

    Returns Promise<GetPeersResult>

    +
+
+ +
    + +
  • +

    Retrieves state root hash information using the provided options.

    +

    Arguments

      +
    • options - An optional GetStateRootHashOptions struct containing retrieval options.
    • +
    +

    Returns

    A Result containing either a GetStateRootHashResult or a JsError in case of an error.

    +

    Errors

    Returns a JsError if there is an error during the retrieval process.

    +
    +
    +

    Parameters

    +
    +

    Returns Promise<GetStateRootHashResult>

    +
+
+ +
    + +
  • +

    Parses state root hash options from a JsValue.

    +

    Arguments

      +
    • options - A JsValue containing state root hash options to be parsed.
    • +
    +

    Returns

    Parsed state root hash options as a GetStateRootHashOptions struct.

    +
    +
    +

    Parameters

    +
      +
    • +
      options: any
      +
    +

    Returns getStateRootHashOptions

    +
+
+ +
    + +
  • +

    Retrieves validator changes using the provided options.

    +

    Arguments

      +
    • verbosity - An optional Verbosity level for controlling the output verbosity.
    • +
    • node_address - An optional string specifying the node address to use for the request.
    • +
    +

    Returns

    A Result containing either a GetValidatorChangesResult or a JsError in case of an error.

    +

    Errors

    Returns a JsError if there is an error during the retrieval process.

    +
    +
    +

    Parameters

    +
      +
    • +
      Optional verbosity: number
      +
    • +
    • +
      Optional node_address: string
      +
    +

    Returns Promise<GetValidatorChangesResult>

    +
+
+ +
    + +
  • +

    Retrieves deploy information using the provided options, alias for get_deploy_js_alias.

    +
    +
    +

    Parameters

    +
    +

    Returns Promise<GetDeployResult>

    +
+
+ +
    + +
  • +

    Installs a smart contract with the specified parameters and returns the result.

    +

    Arguments

      +
    • deploy_params - The deploy parameters.
    • +
    • session_params - The session parameters.
    • +
    • payment_amount - The payment amount as a string.
    • +
    • node_address - An optional node address to send the request to.
    • +
    +

    Returns

    A Result containing either a PutDeployResult or a JsError in case of an error.

    +

    Errors

    Returns a JsError if there is an error during the installation.

    +
    +
    +

    Parameters

    +
    +

    Returns Promise<PutDeployResult>

    +
+
+ +
    + +
  • +

    Lists available RPCs using the provided options.

    +

    Arguments

      +
    • verbosity - An optional Verbosity level for controlling the output verbosity.
    • +
    • node_address - An optional string specifying the node address to use for the request.
    • +
    +

    Returns

    A Result containing either a ListRpcsResult or a JsError in case of an error.

    +

    Errors

    Returns a JsError if there is an error during the listing process.

    +
    +
    +

    Parameters

    +
      +
    • +
      Optional verbosity: number
      +
    • +
    • +
      Optional node_address: string
      +
    +

    Returns Promise<ListRpcsResult>

    +
+
+ +
    + +
  • +

    JS Alias for make_deploy.

    +

    Arguments

      +
    • deploy_params - The deploy parameters.
    • +
    • session_params - The session parameters.
    • +
    • payment_params - The payment parameters.
    • +
    +

    Returns

    A Result containing the created Deploy or a JsError in case of an error.

    +
    +
    +

    Parameters

    +
    +

    Returns Deploy

    +
+
+ +
    + +
  • +

    JS Alias for make_transfer.

    +

    Arguments

      +
    • amount - The transfer amount.
    • +
    • target_account - The target account.
    • +
    • transfer_id - Optional transfer identifier.
    • +
    • deploy_params - The deploy parameters.
    • +
    • payment_params - The payment parameters.
    • +
    +

    Returns

    A Result containing the created Deploy or a JsError in case of an error.

    +
    +
    +

    Parameters

    +
    +

    Returns Deploy

    +
+
+ +
    + +
  • +

    Puts a deploy using the provided options.

    +

    Arguments

      +
    • deploy - The Deploy object to be sent.
    • +
    • verbosity - An optional Verbosity level for controlling the output verbosity.
    • +
    • node_address - An optional string specifying the node address to use for the request.
    • +
    +

    Returns

    A Result containing either a PutDeployResult or a JsError in case of an error.

    +

    Errors

    Returns a JsError if there is an error during the deploy process.

    +
    +
    +

    Parameters

    +
      +
    • +
      deploy: Deploy
      +
    • +
    • +
      Optional verbosity: number
      +
    • +
    • +
      Optional node_address: string
      +
    +

    Returns Promise<PutDeployResult>

    +
+
+ +
    + +
  • +

    Retrieves balance information using the provided options.

    +

    Arguments

      +
    • options - An optional QueryBalanceOptions struct containing retrieval options.
    • +
    +

    Returns

    A Result containing either a QueryBalanceResult or a JsError in case of an error.

    +

    Errors

    Returns a JsError if there is an error during the retrieval process.

    +
    +
    +

    Parameters

    +
    +

    Returns Promise<QueryBalanceResult>

    +
+
+ +
    + +
  • +

    Parses query balance options from a JsValue.

    +

    Arguments

      +
    • options - A JsValue containing query balance options to be parsed.
    • +
    +

    Returns

    Parsed query balance options as a QueryBalanceOptions struct.

    +
    +
    +

    Parameters

    +
      +
    • +
      options: any
      +
    +

    Returns queryBalanceOptions

    +
+
+ +
+
+ +
    + +
  • +

    Deserialize query_contract_dict_options from a JavaScript object.

    +
    +
    +

    Parameters

    +
      +
    • +
      options: any
      +
    +

    Returns queryContractDictOptions

    +
+
+ +
+
+ +
    + +
  • +

    Deserialize query_contract_key_options from a JavaScript object.

    +
    +
    +

    Parameters

    +
      +
    • +
      options: any
      +
    +

    Returns queryContractKeyOptions

    +
+
+ +
    + +
  • +

    Retrieves global state information using the provided options.

    +

    Arguments

      +
    • options - An optional QueryGlobalStateOptions struct containing retrieval options.
    • +
    +

    Returns

    A Result containing either a QueryGlobalStateResult or a JsError in case of an error.

    +

    Errors

    Returns a JsError if there is an error during the retrieval process.

    +
    +
    +

    Parameters

    +
    +

    Returns Promise<QueryGlobalStateResult>

    +
+
+ +
    + +
  • +

    Parses query global state options from a JsValue.

    +

    Arguments

      +
    • options - A JsValue containing query global state options to be parsed.
    • +
    +

    Returns

    Parsed query global state options as a QueryGlobalStateOptions struct.

    +
    +
    +

    Parameters

    +
      +
    • +
      options: any
      +
    +

    Returns queryGlobalStateOptions

    +
+
+ +
    + +
  • +
    +

    Parameters

    +
      +
    • +
      Optional node_address: string
      +
    +

    Returns void

    +
+
+ +
    + +
  • +
    +

    Parameters

    +
      +
    • +
      Optional verbosity: number
      +
    +

    Returns void

    +
+
+ +
    + +
  • +

    JS Alias for sign_deploy.

    +

    Arguments

      +
    • deploy - The deploy to sign.
    • +
    • secret_key - The secret key for signing.
    • +
    +

    Returns

    The signed Deploy.

    +
    +
    +

    Parameters

    +
      +
    • +
      deploy: Deploy
      +
    • +
    • +
      secret_key: string
      +
    +

    Returns Deploy

    +
+
+ +
    + +
  • +

    This function allows executing a deploy speculatively.

    +

    Arguments

      +
    • deploy_params - Deployment parameters for the deploy.
    • +
    • session_params - Session parameters for the deploy.
    • +
    • payment_params - Payment parameters for the deploy.
    • +
    • maybe_block_identifier - Optional block identifier.
    • +
    • verbosity - Optional verbosity level.
    • +
    • node_address - Optional node address.
    • +
    +

    Returns

    A Result containing either a SpeculativeExecResult or a JsError in case of an error.

    +
    +
    +

    Parameters

    +
    +

    Returns Promise<SpeculativeExecResult>

    +
+
+ +
    + +
  • +

    JS Alias for speculative execution.

    +

    Arguments

      +
    • options - The options for speculative execution.
    • +
    +

    Returns

    A Result containing the result of the speculative execution or a JsError in case of an error.

    +
    +
    +

    Parameters

    +
    +

    Returns Promise<SpeculativeExecResult>

    +
+
+ +
+
+ +
    + +
  • +

    JS Alias for speculative transfer.

    +

    Arguments

      +
    • amount - The amount to transfer.
    • +
    • target_account - The target account.
    • +
    • transfer_id - An optional transfer ID (defaults to a random number).
    • +
    • deploy_params - The deployment parameters.
    • +
    • payment_params - The payment parameters.
    • +
    • maybe_block_id_as_string - An optional block ID as a string.
    • +
    • maybe_block_identifier - An optional block identifier.
    • +
    • verbosity - The verbosity level for logging (optional).
    • +
    • node_address - The address of the node to connect to (optional).
    • +
    +

    Returns

    A Result containing the result of the speculative transfer or a JsError in case of an error.

    +
    +
    +

    Parameters

    +
      +
    • +
      amount: string
      +
    • +
    • +
      target_account: string
      +
    • +
    • +
      transfer_id: string
      +
    • +
    • +
      deploy_params: DeployStrParams
      +
    • +
    • +
      payment_params: PaymentStrParams
      +
    • +
    • +
      Optional maybe_block_id_as_string: string
      +
    • +
    • +
      Optional maybe_block_identifier: BlockIdentifier
      +
    • +
    • +
      Optional verbosity: number
      +
    • +
    • +
      Optional node_address: string
      +
    +

    Returns Promise<SpeculativeExecResult>

    +
+
+ +
+
+ +
    + +
  • +

    JS Alias for get_balance_js_alias.

    +

    Arguments

      +
    • options - An optional GetBalanceOptions struct containing retrieval options.
    • +
    +

    Returns

    A Result containing either a GetBalanceResult or a JsError in case of an error.

    +
    +
    +

    Parameters

    +
    +

    Returns Promise<GetBalanceResult>

    +
+
+ +
+
+ +
    + +
  • +

    JS Alias for transferring funds.

    +

    Arguments

      +
    • amount - The amount to transfer.
    • +
    • target_account - The target account.
    • +
    • transfer_id - An optional transfer ID (defaults to a random number).
    • +
    • deploy_params - The deployment parameters.
    • +
    • payment_params - The payment parameters.
    • +
    • verbosity - The verbosity level for logging (optional).
    • +
    • node_address - The address of the node to connect to (optional).
    • +
    +

    Returns

    A Result containing the result of the transfer or a JsError in case of an error.

    +
    +
    +

    Parameters

    +
      +
    • +
      amount: string
      +
    • +
    • +
      target_account: string
      +
    • +
    • +
      transfer_id: string
      +
    • +
    • +
      deploy_params: DeployStrParams
      +
    • +
    • +
      payment_params: PaymentStrParams
      +
    • +
    • +
      Optional verbosity: number
      +
    • +
    • +
      Optional node_address: string
      +
    +

    Returns Promise<PutDeployResult>

    +
+
+ +
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/docs/api-wasm/classes/SessionStrParams.html b/docs/api-wasm/classes/SessionStrParams.html new file mode 100644 index 000000000..36fb414dd --- /dev/null +++ b/docs/api-wasm/classes/SessionStrParams.html @@ -0,0 +1,246 @@ +SessionStrParams | casper-rust-wasm-sdk
+
+ +
+
+
+
+ +

Class SessionStrParams

+
+

Hierarchy

+
    +
  • SessionStrParams
+
+
+
+ +
+
+

Constructors

+
+ +
    + +
  • +
    +

    Parameters

    +
      +
    • +
      Optional session_hash: string
      +
    • +
    • +
      Optional session_name: string
      +
    • +
    • +
      Optional session_package_hash: string
      +
    • +
    • +
      Optional session_package_name: string
      +
    • +
    • +
      Optional session_path: string
      +
    • +
    • +
      Optional session_bytes: Bytes
      +
    • +
    • +
      Optional session_args_simple: any[]
      +
    • +
    • +
      Optional session_args_json: string
      +
    • +
    • +
      Optional session_args_complex: string
      +
    • +
    • +
      Optional session_version: string
      +
    • +
    • +
      Optional session_entry_point: string
      +
    • +
    • +
      Optional is_session_transfer: boolean
      +
    +

    Returns SessionStrParams

    +
+
+

Properties

+
+ +
is_session_transfer: boolean
+
+
+ +
session_args_complex: string
+
+
+ +
session_args_json: string
+
+
+ +
session_args_simple: any[]
+
+
+ +
session_bytes: Bytes
+
+
+ +
session_entry_point: string
+
+
+ +
session_hash: string
+
+
+ +
session_name: string
+
+
+ +
session_package_hash: string
+
+
+ +
session_package_name: string
+
+
+ +
session_path: string
+
+
+ +
session_version: string
+
+
+

Methods

+
+ +
    + +
  • +

    Returns void

+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/docs/api-wasm/classes/SpeculativeExecResult.html b/docs/api-wasm/classes/SpeculativeExecResult.html new file mode 100644 index 000000000..2f76f99c9 --- /dev/null +++ b/docs/api-wasm/classes/SpeculativeExecResult.html @@ -0,0 +1,151 @@ +SpeculativeExecResult | casper-rust-wasm-sdk
+
+ +
+
+
+
+ +

Class SpeculativeExecResult

+
+

Hierarchy

+
    +
  • SpeculativeExecResult
+
+
+
+ +
+
+

Constructors

+
+
+

Properties

+
+
+

Methods

+
+
+

Constructors

+
+ +
+
+

Properties

+
+ +
api_version: any
+

Get the API version of the result.

+
+
+
+ +
block_hash: BlockHash
+

Get the block hash.

+
+
+
+ +
execution_result: any
+

Get the execution result.

+
+
+
+

Methods

+
+ +
    + +
  • +

    Returns void

+
+ +
    + +
  • +

    Convert the result to JSON format.

    +
    +

    Returns any

    +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/docs/api-wasm/classes/TransferAddr.html b/docs/api-wasm/classes/TransferAddr.html new file mode 100644 index 000000000..564a1bbf6 --- /dev/null +++ b/docs/api-wasm/classes/TransferAddr.html @@ -0,0 +1,112 @@ +TransferAddr | casper-rust-wasm-sdk
+
+ +
+
+
+
+ +

Class TransferAddr

+
+

Hierarchy

+
    +
  • TransferAddr
+
+
+
+ +
+
+

Constructors

+
+
+

Methods

+
+
+

Constructors

+
+ +
    + +
  • +
    +

    Parameters

    +
      +
    • +
      bytes: Uint8Array
      +
    +

    Returns TransferAddr

    +
+
+

Methods

+
+ +
    + +
  • +

    Returns void

+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/docs/api-wasm/classes/URef.html b/docs/api-wasm/classes/URef.html new file mode 100644 index 000000000..925bcd5bd --- /dev/null +++ b/docs/api-wasm/classes/URef.html @@ -0,0 +1,157 @@ +URef | casper-rust-wasm-sdk
+
+ +
+
+
+
+ +

Class URef

+
+

Hierarchy

+
    +
  • URef
+
+
+
+ +
+
+

Constructors

+
+
+

Methods

+
+
+

Constructors

+
+ +
    + +
  • +
    +

    Parameters

    +
      +
    • +
      uref_hex_str: string
      +
    • +
    • +
      access_rights: number
      +
    +

    Returns URef

    +
+
+

Methods

+
+ +
    + +
  • +

    Returns void

+
+ +
    + +
  • +

    Returns string

    +
+
+ +
    + +
  • +

    Returns any

    +
+
+ +
    + +
  • +
    +

    Parameters

    +
      +
    • +
      bytes: Uint8Array
      +
    • +
    • +
      access_rights: number
      +
    +

    Returns URef

    +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/docs/api-wasm/classes/URefAddr.html b/docs/api-wasm/classes/URefAddr.html new file mode 100644 index 000000000..c77c84cae --- /dev/null +++ b/docs/api-wasm/classes/URefAddr.html @@ -0,0 +1,112 @@ +URefAddr | casper-rust-wasm-sdk
+
+ +
+
+
+
+ +

Class URefAddr

+
+

Hierarchy

+
    +
  • URefAddr
+
+
+
+ +
+
+

Constructors

+
+
+

Methods

+
+
+

Constructors

+
+ +
    + +
  • +
    +

    Parameters

    +
      +
    • +
      bytes: Uint8Array
      +
    +

    Returns URefAddr

    +
+
+

Methods

+
+ +
    + +
  • +

    Returns void

+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/docs/api-wasm/classes/getAccountOptions.html b/docs/api-wasm/classes/getAccountOptions.html new file mode 100644 index 000000000..e6d509b66 --- /dev/null +++ b/docs/api-wasm/classes/getAccountOptions.html @@ -0,0 +1,156 @@ +getAccountOptions | casper-rust-wasm-sdk
+
+ +
+
+
+
+ +

Class getAccountOptions

+
+

Hierarchy

+
    +
  • getAccountOptions
+
+
+
+ +
+
+

Constructors

+
+ +
+
+

Properties

+
+ +
account_identifier?: AccountIdentifier
+
+
+ +
account_identifier_as_string?: string
+
+
+ +
maybe_block_id_as_string?: string
+
+
+ +
maybe_block_identifier?: BlockIdentifier
+
+
+ +
node_address?: string
+
+
+ +
verbosity?: number
+
+
+

Methods

+
+ +
    + +
  • +

    Returns void

+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/docs/api-wasm/classes/getAuctionInfoOptions.html b/docs/api-wasm/classes/getAuctionInfoOptions.html new file mode 100644 index 000000000..784fb23a6 --- /dev/null +++ b/docs/api-wasm/classes/getAuctionInfoOptions.html @@ -0,0 +1,144 @@ +getAuctionInfoOptions | casper-rust-wasm-sdk
+
+ +
+
+
+
+ +

Class getAuctionInfoOptions

+
+

Options for the get_auction_info method.

+
+
+
+

Hierarchy

+
    +
  • getAuctionInfoOptions
+
+
+
+ +
+
+

Constructors

+
+
+

Properties

+
+
+

Methods

+
+
+

Constructors

+
+ +
+
+

Properties

+
+ +
maybe_block_id_as_string?: string
+
+
+ +
maybe_block_identifier?: BlockIdentifier
+
+
+ +
node_address?: string
+
+
+ +
verbosity?: number
+
+
+

Methods

+
+ +
    + +
  • +

    Returns void

+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/docs/api-wasm/classes/getBalanceOptions.html b/docs/api-wasm/classes/getBalanceOptions.html new file mode 100644 index 000000000..41e780ff2 --- /dev/null +++ b/docs/api-wasm/classes/getBalanceOptions.html @@ -0,0 +1,160 @@ +getBalanceOptions | casper-rust-wasm-sdk
+
+ +
+
+
+
+ +

Class getBalanceOptions

+
+

Options for the get_balance method.

+
+
+
+

Hierarchy

+
    +
  • getBalanceOptions
+
+
+
+ +
+
+

Constructors

+
+ +
+
+

Properties

+
+ +
node_address?: string
+
+
+ +
purse_uref?: URef
+
+
+ +
purse_uref_as_string?: string
+
+
+ +
state_root_hash?: Digest
+
+
+ +
state_root_hash_as_string?: string
+
+
+ +
verbosity?: number
+
+
+

Methods

+
+ +
    + +
  • +

    Returns void

+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/docs/api-wasm/classes/getBlockOptions.html b/docs/api-wasm/classes/getBlockOptions.html new file mode 100644 index 000000000..3c8006e7e --- /dev/null +++ b/docs/api-wasm/classes/getBlockOptions.html @@ -0,0 +1,144 @@ +getBlockOptions | casper-rust-wasm-sdk
+
+ +
+
+
+
+ +

Class getBlockOptions

+
+

Options for the get_block method.

+
+
+
+

Hierarchy

+
    +
  • getBlockOptions
+
+
+
+ +
+
+

Constructors

+
+
+

Properties

+
+
+

Methods

+
+
+

Constructors

+
+ +
+
+

Properties

+
+ +
maybe_block_id_as_string?: string
+
+
+ +
maybe_block_identifier?: BlockIdentifier
+
+
+ +
node_address?: string
+
+
+ +
verbosity?: number
+
+
+

Methods

+
+ +
    + +
  • +

    Returns void

+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/docs/api-wasm/classes/getBlockTransfersOptions.html b/docs/api-wasm/classes/getBlockTransfersOptions.html new file mode 100644 index 000000000..15d230a1b --- /dev/null +++ b/docs/api-wasm/classes/getBlockTransfersOptions.html @@ -0,0 +1,144 @@ +getBlockTransfersOptions | casper-rust-wasm-sdk
+
+ +
+
+
+
+ +

Class getBlockTransfersOptions

+
+

Options for the get_block_transfers method.

+
+
+
+

Hierarchy

+
    +
  • getBlockTransfersOptions
+
+
+
+ +
+
+

Constructors

+
+
+

Properties

+
+
+

Methods

+
+
+

Constructors

+
+ +
+
+

Properties

+
+ +
maybe_block_id_as_string?: string
+
+
+ +
maybe_block_identifier?: BlockIdentifier
+
+
+ +
node_address?: string
+
+
+ +
verbosity?: number
+
+
+

Methods

+
+ +
    + +
  • +

    Returns void

+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/docs/api-wasm/classes/getDeployOptions.html b/docs/api-wasm/classes/getDeployOptions.html new file mode 100644 index 000000000..425366bfc --- /dev/null +++ b/docs/api-wasm/classes/getDeployOptions.html @@ -0,0 +1,152 @@ +getDeployOptions | casper-rust-wasm-sdk
+
+ +
+
+
+
+ +

Class getDeployOptions

+
+

Options for the get_deploy method.

+
+
+
+

Hierarchy

+
    +
  • getDeployOptions
+
+
+
+ +
+
+

Constructors

+
+ +
+
+

Properties

+
+ +
deploy_hash?: DeployHash
+
+
+ +
deploy_hash_as_string?: string
+
+
+ +
finalized_approvals?: boolean
+
+
+ +
node_address?: string
+
+
+ +
verbosity?: number
+
+
+

Methods

+
+ +
    + +
  • +

    Returns void

+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/docs/api-wasm/classes/getDictionaryItemOptions.html b/docs/api-wasm/classes/getDictionaryItemOptions.html new file mode 100644 index 000000000..20f831e4d --- /dev/null +++ b/docs/api-wasm/classes/getDictionaryItemOptions.html @@ -0,0 +1,160 @@ +getDictionaryItemOptions | casper-rust-wasm-sdk
+
+ +
+
+
+
+ +

Class getDictionaryItemOptions

+
+

Options for the get_dictionary_item method.

+
+
+
+

Hierarchy

+
    +
  • getDictionaryItemOptions
+
+
+
+ +
+
+

Constructors

+
+ +
+
+

Properties

+
+ +
dictionary_item_identifier?: DictionaryItemIdentifier
+
+
+ +
dictionary_item_params?: DictionaryItemStrParams
+
+
+ +
node_address?: string
+
+
+ +
state_root_hash?: Digest
+
+
+ +
state_root_hash_as_string?: string
+
+
+ +
verbosity?: number
+
+
+

Methods

+
+ +
    + +
  • +

    Returns void

+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/docs/api-wasm/classes/getEraInfoOptions.html b/docs/api-wasm/classes/getEraInfoOptions.html new file mode 100644 index 000000000..b0953ec82 --- /dev/null +++ b/docs/api-wasm/classes/getEraInfoOptions.html @@ -0,0 +1,140 @@ +getEraInfoOptions | casper-rust-wasm-sdk
+
+ +
+
+
+
+ +

Class getEraInfoOptions

+
+

Hierarchy

+
    +
  • getEraInfoOptions
+
+
+
+ +
+
+

Constructors

+
+
+

Properties

+
+
+

Methods

+
+
+

Constructors

+
+ +
+
+

Properties

+
+ +
maybe_block_id_as_string?: string
+
+
+ +
maybe_block_identifier?: BlockIdentifier
+
+
+ +
node_address?: string
+
+
+ +
verbosity?: number
+
+
+

Methods

+
+ +
    + +
  • +

    Returns void

+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/docs/api-wasm/classes/getEraSummaryOptions.html b/docs/api-wasm/classes/getEraSummaryOptions.html new file mode 100644 index 000000000..dbc10883a --- /dev/null +++ b/docs/api-wasm/classes/getEraSummaryOptions.html @@ -0,0 +1,144 @@ +getEraSummaryOptions | casper-rust-wasm-sdk
+
+ +
+
+
+
+ +

Class getEraSummaryOptions

+
+

Options for the get_era_summary method.

+
+
+
+

Hierarchy

+
    +
  • getEraSummaryOptions
+
+
+
+ +
+
+

Constructors

+
+
+

Properties

+
+
+

Methods

+
+
+

Constructors

+
+ +
+
+

Properties

+
+ +
maybe_block_id_as_string?: string
+
+
+ +
maybe_block_identifier?: BlockIdentifier
+
+
+ +
node_address?: string
+
+
+ +
verbosity?: number
+
+
+

Methods

+
+ +
    + +
  • +

    Returns void

+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/docs/api-wasm/classes/getSpeculativeExecOptions.html b/docs/api-wasm/classes/getSpeculativeExecOptions.html new file mode 100644 index 000000000..80c84be38 --- /dev/null +++ b/docs/api-wasm/classes/getSpeculativeExecOptions.html @@ -0,0 +1,172 @@ +getSpeculativeExecOptions | casper-rust-wasm-sdk
+
+ +
+
+
+
+ +

Class getSpeculativeExecOptions

+
+

Options for speculative execution.

+
+
+
+

Hierarchy

+
    +
  • getSpeculativeExecOptions
+
+
+
+ +
+
+

Constructors

+
+ +
+
+

Properties

+
+ +
deploy?: Deploy
+

The deploy to execute.

+
+
+
+ +
deploy_as_string?: string
+

The deploy as a JSON string.

+
+
+
+ +
maybe_block_id_as_string?: string
+

The block identifier as a string.

+
+
+
+ +
maybe_block_identifier?: BlockIdentifier
+

The block identifier.

+
+
+
+ +
node_address?: string
+

The node address.

+
+
+
+ +
verbosity?: number
+

The verbosity level for logging.

+
+
+
+

Methods

+
+ +
    + +
  • +

    Returns void

+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/docs/api-wasm/classes/getStateRootHashOptions.html b/docs/api-wasm/classes/getStateRootHashOptions.html new file mode 100644 index 000000000..44f7eecfb --- /dev/null +++ b/docs/api-wasm/classes/getStateRootHashOptions.html @@ -0,0 +1,144 @@ +getStateRootHashOptions | casper-rust-wasm-sdk
+
+ +
+
+
+
+ +

Class getStateRootHashOptions

+
+

Options for the get_state_root_hash method.

+
+
+
+

Hierarchy

+
    +
  • getStateRootHashOptions
+
+
+
+ +
+
+

Constructors

+
+
+

Properties

+
+
+

Methods

+
+
+

Constructors

+
+ +
+
+

Properties

+
+ +
maybe_block_id_as_string?: string
+
+
+ +
maybe_block_identifier?: BlockIdentifier
+
+
+ +
node_address?: string
+
+
+ +
verbosity?: number
+
+
+

Methods

+
+ +
    + +
  • +

    Returns void

+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/docs/api-wasm/classes/queryBalanceOptions.html b/docs/api-wasm/classes/queryBalanceOptions.html new file mode 100644 index 000000000..bc7b53df6 --- /dev/null +++ b/docs/api-wasm/classes/queryBalanceOptions.html @@ -0,0 +1,176 @@ +queryBalanceOptions | casper-rust-wasm-sdk
+
+ +
+
+
+
+ +

Class queryBalanceOptions

+
+

Options for the query_balance method.

+
+
+
+

Hierarchy

+
    +
  • queryBalanceOptions
+
+
+
+ +
+
+

Constructors

+
+ +
+
+

Properties

+
+ +
global_state_identifier?: GlobalStateIdentifier
+
+
+ +
maybe_block_id_as_string?: string
+
+
+ +
node_address?: string
+
+
+ +
purse_identifier?: PurseIdentifier
+
+
+ +
purse_identifier_as_string?: string
+
+
+ +
state_root_hash?: Digest
+
+
+ +
state_root_hash_as_string?: string
+
+
+ +
verbosity?: number
+
+
+

Methods

+
+ +
    + +
  • +

    Returns void

+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/docs/api-wasm/classes/queryContractDictOptions.html b/docs/api-wasm/classes/queryContractDictOptions.html new file mode 100644 index 000000000..547c7555a --- /dev/null +++ b/docs/api-wasm/classes/queryContractDictOptions.html @@ -0,0 +1,156 @@ +queryContractDictOptions | casper-rust-wasm-sdk
+
+ +
+
+
+
+ +

Class queryContractDictOptions

+
+

Hierarchy

+
    +
  • queryContractDictOptions
+
+
+
+ +
+
+

Constructors

+
+ +
+
+

Properties

+
+ +
dictionary_item_identifier?: DictionaryItemIdentifier
+
+
+ +
dictionary_item_params?: DictionaryItemStrParams
+
+
+ +
node_address?: string
+
+
+ +
state_root_hash?: Digest
+
+
+ +
state_root_hash_as_string?: string
+
+
+ +
verbosity?: number
+
+
+

Methods

+
+ +
    + +
  • +

    Returns void

+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/docs/api-wasm/classes/queryContractKeyOptions.html b/docs/api-wasm/classes/queryContractKeyOptions.html new file mode 100644 index 000000000..b4d145beb --- /dev/null +++ b/docs/api-wasm/classes/queryContractKeyOptions.html @@ -0,0 +1,188 @@ +queryContractKeyOptions | casper-rust-wasm-sdk
+
+ +
+
+
+
+ +

Class queryContractKeyOptions

+
+

Hierarchy

+
    +
  • queryContractKeyOptions
+
+
+
+ +
+
+

Constructors

+
+ +
+
+

Properties

+
+ +
contract_key?: Key
+
+
+ +
contract_key_as_string?: string
+
+
+ +
global_state_identifier?: GlobalStateIdentifier
+
+
+ +
maybe_block_id_as_string?: string
+
+
+ +
node_address?: string
+
+
+ +
path?: Path
+
+
+ +
path_as_string?: string
+
+
+ +
state_root_hash?: Digest
+
+
+ +
state_root_hash_as_string?: string
+
+
+ +
verbosity?: number
+
+
+

Methods

+
+ +
    + +
  • +

    Returns void

+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/docs/api-wasm/classes/queryGlobalStateOptions.html b/docs/api-wasm/classes/queryGlobalStateOptions.html new file mode 100644 index 000000000..2c2bc77ed --- /dev/null +++ b/docs/api-wasm/classes/queryGlobalStateOptions.html @@ -0,0 +1,192 @@ +queryGlobalStateOptions | casper-rust-wasm-sdk
+
+ +
+
+
+
+ +

Class queryGlobalStateOptions

+
+

Options for the query_global_state method.

+
+
+
+

Hierarchy

+
    +
  • queryGlobalStateOptions
+
+
+
+ +
+
+

Constructors

+
+ +
+
+

Properties

+
+ +
global_state_identifier?: GlobalStateIdentifier
+
+
+ +
key?: Key
+
+
+ +
key_as_string?: string
+
+
+ +
maybe_block_id_as_string?: string
+
+
+ +
node_address?: string
+
+
+ +
path?: Path
+
+
+ +
path_as_string?: string
+
+
+ +
state_root_hash?: Digest
+
+
+ +
state_root_hash_as_string?: string
+
+
+ +
verbosity?: number
+
+
+

Methods

+
+ +
    + +
  • +

    Returns void

+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/docs/api-wasm/enums/Verbosity.html b/docs/api-wasm/enums/Verbosity.html new file mode 100644 index 000000000..3eb787d11 --- /dev/null +++ b/docs/api-wasm/enums/Verbosity.html @@ -0,0 +1,97 @@ +Verbosity | casper-rust-wasm-sdk
+
+ +
+
+
+
+ +

Enumeration Verbosity

+
+
+
+ +
+
+

Enumeration Members

+
+
+

Enumeration Members

+
+ +
High: 2
+
+ +
Low: 0
+
+ +
Medium: 1
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/docs/api-wasm/functions/default.html b/docs/api-wasm/functions/default.html new file mode 100644 index 000000000..17f0c2141 --- /dev/null +++ b/docs/api-wasm/functions/default.html @@ -0,0 +1,77 @@ +default | casper-rust-wasm-sdk
+
+ +
+
+
+
+ +

Function default

+
+
    + +
  • +

    If module_or_path is {RequestInfo} or {URL}, makes a request and +for everything else, calls WebAssembly.instantiate directly.

    +
    +
    +

    Parameters

    +
    +

    Returns Promise<InitOutput>

    +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/docs/api-wasm/functions/fromTransfer.html b/docs/api-wasm/functions/fromTransfer.html new file mode 100644 index 000000000..ea53c1633 --- /dev/null +++ b/docs/api-wasm/functions/fromTransfer.html @@ -0,0 +1,74 @@ +fromTransfer | casper-rust-wasm-sdk
+
+ +
+
+
+
+ +

Function fromTransfer

+
+
    + +
  • +
    +

    Parameters

    +
      +
    • +
      key: Uint8Array
      +
    +

    Returns TransferAddr

    +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/docs/api-wasm/functions/getTimestamp.html b/docs/api-wasm/functions/getTimestamp.html new file mode 100644 index 000000000..ce03de8ff --- /dev/null +++ b/docs/api-wasm/functions/getTimestamp.html @@ -0,0 +1,78 @@ +getTimestamp | casper-rust-wasm-sdk
+
+ +
+
+
+
+ +

Function getTimestamp

+
+
    + +
  • +

    Gets the current timestamp.

    +

    Returns

    A JsValue containing the current timestamp.

    +
    +

    Returns any

    +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/docs/api-wasm/functions/hexToString.html b/docs/api-wasm/functions/hexToString.html new file mode 100644 index 000000000..875a0bfb9 --- /dev/null +++ b/docs/api-wasm/functions/hexToString.html @@ -0,0 +1,88 @@ +hexToString | casper-rust-wasm-sdk
+
+ +
+
+
+
+ +

Function hexToString

+
+
    + +
  • +

    Converts a hexadecimal string to a regular string.

    +

    Arguments

      +
    • hex_string - The hexadecimal string to convert.
    • +
    +

    Returns

    A regular string containing the converted value.

    +
    +
    +

    Parameters

    +
      +
    • +
      hex_string: string
      +
    +

    Returns string

    +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/docs/api-wasm/functions/hexToUint8Array.html b/docs/api-wasm/functions/hexToUint8Array.html new file mode 100644 index 000000000..a209d2fdb --- /dev/null +++ b/docs/api-wasm/functions/hexToUint8Array.html @@ -0,0 +1,88 @@ +hexToUint8Array | casper-rust-wasm-sdk
+
+ +
+
+
+
+ +

Function hexToUint8Array

+
+
    + +
  • +

    Converts a hexadecimal string to a Uint8Array.

    +

    Arguments

      +
    • hex_string - The hexadecimal string to convert.
    • +
    +

    Returns

    A Uint8Array containing the converted value.

    +
    +
    +

    Parameters

    +
      +
    • +
      hex_string: string
      +
    +

    Returns Uint8Array

    +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/docs/api-wasm/functions/initSync.html b/docs/api-wasm/functions/initSync.html new file mode 100644 index 000000000..58a73f5af --- /dev/null +++ b/docs/api-wasm/functions/initSync.html @@ -0,0 +1,77 @@ +initSync | casper-rust-wasm-sdk
+
+ +
+
+
+
+ +

Function initSync

+
+
    + +
  • +

    Instantiates the given module, which can either be bytes or +a precompiled WebAssembly.Module.

    +
    +
    +

    Parameters

    +
    +

    Returns InitOutput

    +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/docs/api-wasm/functions/jsonPrettyPrint.html b/docs/api-wasm/functions/jsonPrettyPrint.html new file mode 100644 index 000000000..e9f45a870 --- /dev/null +++ b/docs/api-wasm/functions/jsonPrettyPrint.html @@ -0,0 +1,92 @@ +jsonPrettyPrint | casper-rust-wasm-sdk
+
+ +
+
+
+
+ +

Function jsonPrettyPrint

+
+
    + +
  • +

    Pretty prints a JSON value.

    +

    Arguments

      +
    • value - The JSON value to pretty print.
    • +
    • verbosity - An optional verbosity level for pretty printing.
    • +
    +

    Returns

    A pretty printed JSON value as a JsValue.

    +
    +
    +

    Parameters

    +
      +
    • +
      value: any
      +
    • +
    • +
      Optional verbosity: number
      +
    +

    Returns any

    +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/docs/api-wasm/functions/motesToCSPR.html b/docs/api-wasm/functions/motesToCSPR.html new file mode 100644 index 000000000..4fdd35489 --- /dev/null +++ b/docs/api-wasm/functions/motesToCSPR.html @@ -0,0 +1,88 @@ +motesToCSPR | casper-rust-wasm-sdk
+
+ +
+
+
+
+ +

Function motesToCSPR

+
+
    + +
  • +

    Converts motes to CSPR (Casper tokens).

    +

    Arguments

      +
    • motes - The motes value to convert.
    • +
    +

    Returns

    A string representing the CSPR amount.

    +
    +
    +

    Parameters

    +
      +
    • +
      motes: string
      +
    +

    Returns string

    +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/docs/api-wasm/functions/privateToPublicKey.html b/docs/api-wasm/functions/privateToPublicKey.html new file mode 100644 index 000000000..673eb84f6 --- /dev/null +++ b/docs/api-wasm/functions/privateToPublicKey.html @@ -0,0 +1,89 @@ +privateToPublicKey | casper-rust-wasm-sdk
+
+ +
+
+
+
+ +

Function privateToPublicKey

+
+
    + +
  • +

    Converts a secret key to a corresponding public key.

    +

    Arguments

      +
    • secret_key - The secret key in PEM format.
    • +
    +

    Returns

    A JsValue containing the corresponding public key. +If an error occurs during the conversion, JsValue::null() is returned.

    +
    +
    +

    Parameters

    +
      +
    • +
      secret_key: string
      +
    +

    Returns any

    +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/docs/api-wasm/functions/uint8ArrayToBytes.html b/docs/api-wasm/functions/uint8ArrayToBytes.html new file mode 100644 index 000000000..775879a77 --- /dev/null +++ b/docs/api-wasm/functions/uint8ArrayToBytes.html @@ -0,0 +1,88 @@ +uint8ArrayToBytes | casper-rust-wasm-sdk
+
+ +
+
+
+
+ +

Function uint8ArrayToBytes

+
+
    + +
  • +

    Converts a Uint8Array to a Bytes object.

    +

    Arguments

      +
    • uint8_array - The Uint8Array to convert.
    • +
    +

    Returns

    A Bytes object containing the converted value.

    +
    +
    +

    Parameters

    +
      +
    • +
      uint8_array: Uint8Array
      +
    +

    Returns Bytes

    +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/docs/api-wasm/index.html b/docs/api-wasm/index.html new file mode 100644 index 000000000..929a1ecab --- /dev/null +++ b/docs/api-wasm/index.html @@ -0,0 +1,58 @@ +casper-rust-wasm-sdk
+
+ +
+ +
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/docs/api-wasm/interfaces/InitOutput.html b/docs/api-wasm/interfaces/InitOutput.html new file mode 100644 index 000000000..9aa4a17c4 --- /dev/null +++ b/docs/api-wasm/interfaces/InitOutput.html @@ -0,0 +1,13161 @@ +InitOutput | casper-rust-wasm-sdk
+
+ +
+
+
+
+ +

Interface InitOutput

+
+

Hierarchy

+
    +
  • InitOutput
+
+
+
+ +
+
+

Properties

+
__wbg_accessrights_free +__wbg_accounthash_free +__wbg_accountidentifier_free +__wbg_argssimple_free +__wbg_blockhash_free +__wbg_blockidentifier_free +__wbg_bytes_free +__wbg_contracthash_free +__wbg_contractpackagehash_free +__wbg_deploy_free +__wbg_deployhash_free +__wbg_deploystrparams_free +__wbg_dictionaryaddr_free +__wbg_dictionaryitemidentifier_free +__wbg_dictionaryitemstrparams_free +__wbg_digest_free +__wbg_eraid_free +__wbg_get_getaccountoptions_account_identifier +__wbg_get_getaccountoptions_account_identifier_as_string +__wbg_get_getaccountoptions_maybe_block_id_as_string +__wbg_get_getaccountoptions_maybe_block_identifier +__wbg_get_getaccountoptions_node_address +__wbg_get_getaccountoptions_verbosity +__wbg_get_getauctioninfooptions_maybe_block_id_as_string +__wbg_get_getauctioninfooptions_maybe_block_identifier +__wbg_get_getauctioninfooptions_node_address +__wbg_get_getauctioninfooptions_verbosity +__wbg_get_getbalanceoptions_node_address +__wbg_get_getbalanceoptions_purse_uref +__wbg_get_getbalanceoptions_purse_uref_as_string +__wbg_get_getbalanceoptions_state_root_hash +__wbg_get_getbalanceoptions_state_root_hash_as_string +__wbg_get_getbalanceoptions_verbosity +__wbg_get_getblockoptions_maybe_block_id_as_string +__wbg_get_getblockoptions_maybe_block_identifier +__wbg_get_getblockoptions_node_address +__wbg_get_getblockoptions_verbosity +__wbg_get_getblocktransfersoptions_maybe_block_id_as_string +__wbg_get_getblocktransfersoptions_maybe_block_identifier +__wbg_get_getblocktransfersoptions_node_address +__wbg_get_getblocktransfersoptions_verbosity +__wbg_get_getdeployoptions_deploy_hash +__wbg_get_getdeployoptions_deploy_hash_as_string +__wbg_get_getdeployoptions_finalized_approvals +__wbg_get_getdeployoptions_node_address +__wbg_get_getdeployoptions_verbosity +__wbg_get_getdictionaryitemoptions_dictionary_item_identifier +__wbg_get_getdictionaryitemoptions_dictionary_item_params +__wbg_get_getdictionaryitemoptions_node_address +__wbg_get_getdictionaryitemoptions_state_root_hash +__wbg_get_getdictionaryitemoptions_state_root_hash_as_string +__wbg_get_getdictionaryitemoptions_verbosity +__wbg_get_geterainfooptions_maybe_block_id_as_string +__wbg_get_geterainfooptions_maybe_block_identifier +__wbg_get_geterainfooptions_node_address +__wbg_get_geterainfooptions_verbosity +__wbg_get_geterasummaryoptions_maybe_block_id_as_string +__wbg_get_geterasummaryoptions_maybe_block_identifier +__wbg_get_geterasummaryoptions_node_address +__wbg_get_geterasummaryoptions_verbosity +__wbg_get_getspeculativeexecoptions_deploy +__wbg_get_getspeculativeexecoptions_deploy_as_string +__wbg_get_getspeculativeexecoptions_maybe_block_id_as_string +__wbg_get_getspeculativeexecoptions_maybe_block_identifier +__wbg_get_getspeculativeexecoptions_node_address +__wbg_get_getspeculativeexecoptions_verbosity +__wbg_get_getstateroothashoptions_maybe_block_id_as_string +__wbg_get_getstateroothashoptions_maybe_block_identifier +__wbg_get_getstateroothashoptions_node_address +__wbg_get_getstateroothashoptions_verbosity +__wbg_get_querybalanceoptions_global_state_identifier +__wbg_get_querybalanceoptions_maybe_block_id_as_string +__wbg_get_querybalanceoptions_node_address +__wbg_get_querybalanceoptions_purse_identifier +__wbg_get_querybalanceoptions_purse_identifier_as_string +__wbg_get_querybalanceoptions_state_root_hash +__wbg_get_querybalanceoptions_state_root_hash_as_string +__wbg_get_querybalanceoptions_verbosity +__wbg_get_querycontractdictoptions_dictionary_item_identifier +__wbg_get_querycontractdictoptions_dictionary_item_params +__wbg_get_querycontractdictoptions_node_address +__wbg_get_querycontractdictoptions_state_root_hash +__wbg_get_querycontractdictoptions_state_root_hash_as_string +__wbg_get_querycontractdictoptions_verbosity +__wbg_get_querycontractkeyoptions_contract_key +__wbg_get_querycontractkeyoptions_contract_key_as_string +__wbg_get_querycontractkeyoptions_global_state_identifier +__wbg_get_querycontractkeyoptions_maybe_block_id_as_string +__wbg_get_querycontractkeyoptions_node_address +__wbg_get_querycontractkeyoptions_path +__wbg_get_querycontractkeyoptions_path_as_string +__wbg_get_querycontractkeyoptions_state_root_hash +__wbg_get_querycontractkeyoptions_state_root_hash_as_string +__wbg_get_querycontractkeyoptions_verbosity +__wbg_get_queryglobalstateoptions_global_state_identifier +__wbg_get_queryglobalstateoptions_key +__wbg_get_queryglobalstateoptions_key_as_string +__wbg_get_queryglobalstateoptions_maybe_block_id_as_string +__wbg_get_queryglobalstateoptions_node_address +__wbg_get_queryglobalstateoptions_path +__wbg_get_queryglobalstateoptions_path_as_string +__wbg_get_queryglobalstateoptions_state_root_hash +__wbg_get_queryglobalstateoptions_state_root_hash_as_string +__wbg_get_queryglobalstateoptions_verbosity +__wbg_getaccountoptions_free +__wbg_getaccountresult_free +__wbg_getauctioninfooptions_free +__wbg_getauctioninforesult_free +__wbg_getbalanceoptions_free +__wbg_getbalanceresult_free +__wbg_getblockoptions_free +__wbg_getblockresult_free +__wbg_getblocktransfersoptions_free +__wbg_getblocktransfersresult_free +__wbg_getchainspecresult_free +__wbg_getdeployoptions_free +__wbg_getdeployresult_free +__wbg_getdictionaryitemoptions_free +__wbg_getdictionaryitemresult_free +__wbg_geterainfooptions_free +__wbg_geterainforesult_free +__wbg_geterasummaryoptions_free +__wbg_geterasummaryresult_free +__wbg_getnodestatusresult_free +__wbg_getpeersresult_free +__wbg_getspeculativeexecoptions_free +__wbg_getstateroothashoptions_free +__wbg_getstateroothashresult_free +__wbg_getvalidatorchangesresult_free +__wbg_globalstateidentifier_free +__wbg_hashaddr_free +__wbg_key_free +__wbg_listrpcsresult_free +__wbg_path_free +__wbg_paymentstrparams_free +__wbg_peerentry_free +__wbg_publickey_free +__wbg_purseidentifier_free +__wbg_putdeployresult_free +__wbg_querybalanceoptions_free +__wbg_querybalanceresult_free +__wbg_querycontractdictoptions_free +__wbg_querycontractkeyoptions_free +__wbg_queryglobalstateoptions_free +__wbg_queryglobalstateresult_free +__wbg_sdk_free +__wbg_sessionstrparams_free +__wbg_set_getaccountoptions_account_identifier +__wbg_set_getaccountoptions_account_identifier_as_string +__wbg_set_getaccountoptions_maybe_block_id_as_string +__wbg_set_getaccountoptions_maybe_block_identifier +__wbg_set_getaccountoptions_node_address +__wbg_set_getaccountoptions_verbosity +__wbg_set_getauctioninfooptions_maybe_block_id_as_string +__wbg_set_getauctioninfooptions_maybe_block_identifier +__wbg_set_getauctioninfooptions_node_address +__wbg_set_getauctioninfooptions_verbosity +__wbg_set_getbalanceoptions_node_address +__wbg_set_getbalanceoptions_purse_uref +__wbg_set_getbalanceoptions_purse_uref_as_string +__wbg_set_getbalanceoptions_state_root_hash +__wbg_set_getbalanceoptions_state_root_hash_as_string +__wbg_set_getbalanceoptions_verbosity +__wbg_set_getblockoptions_maybe_block_id_as_string +__wbg_set_getblockoptions_maybe_block_identifier +__wbg_set_getblockoptions_node_address +__wbg_set_getblockoptions_verbosity +__wbg_set_getblocktransfersoptions_maybe_block_id_as_string +__wbg_set_getblocktransfersoptions_maybe_block_identifier +__wbg_set_getblocktransfersoptions_node_address +__wbg_set_getblocktransfersoptions_verbosity +__wbg_set_getdeployoptions_deploy_hash +__wbg_set_getdeployoptions_deploy_hash_as_string +__wbg_set_getdeployoptions_finalized_approvals +__wbg_set_getdeployoptions_node_address +__wbg_set_getdeployoptions_verbosity +__wbg_set_getdictionaryitemoptions_dictionary_item_identifier +__wbg_set_getdictionaryitemoptions_dictionary_item_params +__wbg_set_getdictionaryitemoptions_node_address +__wbg_set_getdictionaryitemoptions_state_root_hash +__wbg_set_getdictionaryitemoptions_state_root_hash_as_string +__wbg_set_getdictionaryitemoptions_verbosity +__wbg_set_geterainfooptions_maybe_block_id_as_string +__wbg_set_geterainfooptions_maybe_block_identifier +__wbg_set_geterainfooptions_node_address +__wbg_set_geterainfooptions_verbosity +__wbg_set_geterasummaryoptions_maybe_block_id_as_string +__wbg_set_geterasummaryoptions_maybe_block_identifier +__wbg_set_geterasummaryoptions_node_address +__wbg_set_geterasummaryoptions_verbosity +__wbg_set_getspeculativeexecoptions_deploy +__wbg_set_getspeculativeexecoptions_deploy_as_string +__wbg_set_getspeculativeexecoptions_maybe_block_id_as_string +__wbg_set_getspeculativeexecoptions_maybe_block_identifier +__wbg_set_getspeculativeexecoptions_node_address +__wbg_set_getspeculativeexecoptions_verbosity +__wbg_set_getstateroothashoptions_maybe_block_id_as_string +__wbg_set_getstateroothashoptions_maybe_block_identifier +__wbg_set_getstateroothashoptions_node_address +__wbg_set_getstateroothashoptions_verbosity +__wbg_set_querybalanceoptions_global_state_identifier +__wbg_set_querybalanceoptions_maybe_block_id_as_string +__wbg_set_querybalanceoptions_node_address +__wbg_set_querybalanceoptions_purse_identifier +__wbg_set_querybalanceoptions_purse_identifier_as_string +__wbg_set_querybalanceoptions_state_root_hash +__wbg_set_querybalanceoptions_state_root_hash_as_string +__wbg_set_querybalanceoptions_verbosity +__wbg_set_querycontractdictoptions_dictionary_item_identifier +__wbg_set_querycontractdictoptions_dictionary_item_params +__wbg_set_querycontractdictoptions_node_address +__wbg_set_querycontractdictoptions_state_root_hash +__wbg_set_querycontractdictoptions_state_root_hash_as_string +__wbg_set_querycontractdictoptions_verbosity +__wbg_set_querycontractkeyoptions_contract_key +__wbg_set_querycontractkeyoptions_contract_key_as_string +__wbg_set_querycontractkeyoptions_global_state_identifier +__wbg_set_querycontractkeyoptions_maybe_block_id_as_string +__wbg_set_querycontractkeyoptions_node_address +__wbg_set_querycontractkeyoptions_path +__wbg_set_querycontractkeyoptions_path_as_string +__wbg_set_querycontractkeyoptions_state_root_hash +__wbg_set_querycontractkeyoptions_state_root_hash_as_string +__wbg_set_querycontractkeyoptions_verbosity +__wbg_set_queryglobalstateoptions_global_state_identifier +__wbg_set_queryglobalstateoptions_key +__wbg_set_queryglobalstateoptions_key_as_string +__wbg_set_queryglobalstateoptions_maybe_block_id_as_string +__wbg_set_queryglobalstateoptions_node_address +__wbg_set_queryglobalstateoptions_path +__wbg_set_queryglobalstateoptions_path_as_string +__wbg_set_queryglobalstateoptions_state_root_hash +__wbg_set_queryglobalstateoptions_state_root_hash_as_string +__wbg_set_queryglobalstateoptions_verbosity +__wbg_speculativeexecresult_free +__wbg_transferaddr_free +__wbg_uref_free +__wbg_urefaddr_free +__wbindgen_add_to_stack_pointer +__wbindgen_exn_store +__wbindgen_export_2 +__wbindgen_free +__wbindgen_malloc +__wbindgen_realloc +_dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__he9a0163254a4b264 +accessrights_ADD +accessrights_ADD_WRITE +accessrights_NONE +accessrights_READ +accessrights_READ_ADD +accessrights_READ_ADD_WRITE +accessrights_READ_WRITE +accessrights_WRITE +accessrights_from_bits +accessrights_is_addable +accessrights_is_none +accessrights_is_readable +accessrights_is_writeable +accessrights_new +accounthash_fromFormattedStr +accounthash_fromPublicKey +accounthash_fromUint8Array +accounthash_new +accounthash_toFormattedString +accounthash_toJson +accountidentifier_fromAccountHash +accountidentifier_fromFormattedStr +accountidentifier_fromPublicKey +accountidentifier_new +accountidentifier_toJson +blockhash_fromDigest +blockhash_new +blockhash_toJson +blockhash_toString +blockidentifier_fromHeight +blockidentifier_from_hash +blockidentifier_new +blockidentifier_toJson +bytes_fromUint8Array +bytes_new +contracthash_fromFormattedStr +contracthash_fromString +contracthash_fromUint8Array +contracthash_toFormattedString +contractpackagehash_fromFormattedStr +contractpackagehash_fromString +contractpackagehash_fromUint8Array +contractpackagehash_toFormattedString +deploy_TTL +deploy_account +deploy_addArg +deploy_args +deploy_chainName +deploy_new +deploy_sign +deploy_timestamp +deploy_toJson +deploy_validateDeploySize +deploy_withAccount +deploy_withChainName +deploy_withEntryPointName +deploy_withHash +deploy_withModuleBytes +deploy_withPackageHash +deploy_withPayment +deploy_withPaymentAndSession +deploy_withSecretKey +deploy_withSession +deploy_withStandardPayment +deploy_withTTL +deploy_withTimestamp +deploy_withTransfer +deployhash_fromDigest +deployhash_new +deployhash_toJson +deployhash_toString +deploystrparams_chain_name +deploystrparams_new +deploystrparams_secret_key +deploystrparams_session_account +deploystrparams_setDefaultTTL +deploystrparams_setDefaultTimestamp +deploystrparams_set_chain_name +deploystrparams_set_secret_key +deploystrparams_set_session_account +deploystrparams_set_timestamp +deploystrparams_set_ttl +deploystrparams_timestamp +deploystrparams_ttl +dictionaryaddr_new +dictionaryitemidentifier_newFromAccountInfo +dictionaryitemidentifier_newFromContractInfo +dictionaryitemidentifier_newFromDictionaryKey +dictionaryitemidentifier_newFromSeedUref +dictionaryitemidentifier_toJson +dictionaryitemstrparams_new +dictionaryitemstrparams_setAccountNamedKey +dictionaryitemstrparams_setContractNamedKey +dictionaryitemstrparams_setDictionary +dictionaryitemstrparams_setUref +dictionaryitemstrparams_toJson +digest__new +digest_fromDigest +digest_fromString +digest_toJson +digest_toString +eraid_new +eraid_value +fromTransfer +getTimestamp +getaccountresult_account +getaccountresult_api_version +getaccountresult_merkle_proof +getaccountresult_toJson +getauctioninforesult_api_version +getauctioninforesult_auction_state +getauctioninforesult_toJson +getbalanceresult_api_version +getbalanceresult_balance_value +getbalanceresult_merkle_proof +getbalanceresult_toJson +getblockresult_api_version +getblockresult_block +getblockresult_toJson +getblocktransfersresult_api_version +getblocktransfersresult_block_hash +getblocktransfersresult_toJson +getblocktransfersresult_transfers +getchainspecresult_api_version +getchainspecresult_chainspec_bytes +getchainspecresult_toJson +getdeployresult_api_version +getdeployresult_deploy +getdeployresult_toJson +getdictionaryitemresult_api_version +getdictionaryitemresult_dictionary_key +getdictionaryitemresult_merkle_proof +getdictionaryitemresult_stored_value +getdictionaryitemresult_toJson +geterainforesult_api_version +geterainforesult_era_summary +geterainforesult_toJson +geterasummaryresult_api_version +geterasummaryresult_era_summary +geterasummaryresult_toJson +getnodestatusresult_api_version +getnodestatusresult_available_block_range +getnodestatusresult_block_sync +getnodestatusresult_build_version +getnodestatusresult_chainspec_name +getnodestatusresult_last_added_block_info +getnodestatusresult_last_progress +getnodestatusresult_next_upgrade +getnodestatusresult_our_public_signing_key +getnodestatusresult_peers +getnodestatusresult_reactor_state +getnodestatusresult_round_length +getnodestatusresult_starting_state_root_hash +getnodestatusresult_toJson +getnodestatusresult_uptime +getpeersresult_api_version +getpeersresult_peers +getpeersresult_toJson +getstateroothashresult_api_version +getstateroothashresult_state_root_hash +getstateroothashresult_state_root_hash_as_string +getstateroothashresult_toJson +getvalidatorchangesresult_api_version +getvalidatorchangesresult_changes +getvalidatorchangesresult_toJson +globalstateidentifier_fromBlockHash +globalstateidentifier_fromBlockHeight +globalstateidentifier_fromStateRootHash +globalstateidentifier_new +globalstateidentifier_toJson +hashaddr_new +hexToString +hexToUint8Array +jsonPrettyPrint +key_asBalance +key_asDictionaryAddr +key_fromAccount +key_fromBalance +key_fromBid +key_fromChainspecRegistry +key_fromChecksumRegistry +key_fromDeployInfo +key_fromDictionaryAddr +key_fromDictionaryKey +key_fromEraInfo +key_fromEraSummary +key_fromFormattedString +key_fromHash +key_fromSystemContractRegistry +key_fromTransfer +key_fromURef +key_fromUnbond +key_fromWithdraw +key_intoAccount +key_intoHash +key_intoURef +key_isDictionaryKey +key_new +key_toFormattedString +key_toJson +key_urefToHash +key_withdrawToUnbond +listrpcsresult_api_version +listrpcsresult_name +listrpcsresult_schema +listrpcsresult_toJson +memory +motesToCSPR +path_fromArray +path_is_empty +path_new +path_toJson +path_toString +paymentstrparams_new +paymentstrparams_payment_amount +paymentstrparams_payment_args_complex +paymentstrparams_payment_args_json +paymentstrparams_payment_args_simple +paymentstrparams_payment_entry_point +paymentstrparams_payment_hash +paymentstrparams_payment_name +paymentstrparams_payment_package_hash +paymentstrparams_payment_package_name +paymentstrparams_payment_path +paymentstrparams_payment_version +paymentstrparams_set_payment_amount +paymentstrparams_set_payment_args_complex +paymentstrparams_set_payment_args_json +paymentstrparams_set_payment_args_simple +paymentstrparams_set_payment_entry_point +paymentstrparams_set_payment_hash +paymentstrparams_set_payment_name +paymentstrparams_set_payment_package_hash +paymentstrparams_set_payment_package_name +paymentstrparams_set_payment_path +paymentstrparams_set_payment_version +peerentry_address +peerentry_node_id +privateToPublicKey +publickey_fromUint8Array +publickey_new +publickey_toAccountHash +publickey_toJson +publickey_toPurseUref +purseidentifier_fromAccountHash +purseidentifier_fromPublicKey +purseidentifier_fromURef +putdeployresult_api_version +putdeployresult_deploy_hash +putdeployresult_toJson +querybalanceresult_api_version +querybalanceresult_balance +querybalanceresult_toJson +queryglobalstateresult_api_version +queryglobalstateresult_block_header +queryglobalstateresult_merkle_proof +queryglobalstateresult_stored_value +queryglobalstateresult_toJson +sdk_account_put_deploy +sdk_call_entrypoint +sdk_chain_get_block +sdk_chain_get_state_root_hash +sdk_deploy +sdk_getNodeAddress +sdk_getVerbosity +sdk_get_account +sdk_get_account_options +sdk_get_auction_info +sdk_get_auction_info_options +sdk_get_balance +sdk_get_balance_options +sdk_get_block +sdk_get_block_options +sdk_get_block_transfers +sdk_get_block_transfers_options +sdk_get_chainspec +sdk_get_deploy +sdk_get_deploy_options +sdk_get_dictionary_item +sdk_get_dictionary_item_options +sdk_get_era_info +sdk_get_era_info_options +sdk_get_era_summary +sdk_get_era_summary_options +sdk_get_node_status +sdk_get_peers +sdk_get_state_root_hash +sdk_get_state_root_hash_options +sdk_get_validator_changes +sdk_info_get_deploy +sdk_install +sdk_list_rpcs +sdk_make_deploy +sdk_make_transfer +sdk_new +sdk_put_deploy +sdk_query_balance +sdk_query_balance_options +sdk_query_contract_dict +sdk_query_contract_dict_options +sdk_query_contract_key +sdk_query_contract_key_options +sdk_query_global_state +sdk_query_global_state_options +sdk_setNodeAddress +sdk_setVerbosity +sdk_sign_deploy +sdk_speculative_deploy +sdk_speculative_exec +sdk_speculative_exec_options +sdk_speculative_transfer +sdk_state_get_account_info +sdk_state_get_balance +sdk_state_get_dictionary_item +sdk_transfer +sessionstrparams_is_session_transfer +sessionstrparams_new +sessionstrparams_session_args_complex +sessionstrparams_session_args_json +sessionstrparams_session_args_simple +sessionstrparams_session_bytes +sessionstrparams_session_entry_point +sessionstrparams_session_hash +sessionstrparams_session_name +sessionstrparams_session_package_hash +sessionstrparams_session_package_name +sessionstrparams_session_path +sessionstrparams_session_version +sessionstrparams_set_is_session_transfer +sessionstrparams_set_session_args_complex +sessionstrparams_set_session_args_json +sessionstrparams_set_session_args_simple +sessionstrparams_set_session_bytes +sessionstrparams_set_session_entry_point +sessionstrparams_set_session_hash +sessionstrparams_set_session_name +sessionstrparams_set_session_package_hash +sessionstrparams_set_session_package_name +sessionstrparams_set_session_path +sessionstrparams_set_session_version +speculativeexecresult_api_version +speculativeexecresult_block_hash +speculativeexecresult_execution_result +speculativeexecresult_toJson +transferaddr_new +uint8ArrayToBytes +uref_fromUint8Array +uref_new +uref_toFormattedString +uref_toJson +urefaddr_new +wasm_bindgen__convert__closures__invoke2_mut__h02a7a5846fd066d3 +
+
+

Properties

+
+ +
__wbg_accessrights_free: ((a) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns void

+
+ +
__wbg_accounthash_free: ((a) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns void

+
+ +
__wbg_accountidentifier_free: ((a) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns void

+
+ +
__wbg_argssimple_free: ((a) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns void

+
+ +
__wbg_blockhash_free: ((a) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns void

+
+ +
__wbg_blockidentifier_free: ((a) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns void

+
+ +
__wbg_bytes_free: ((a) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns void

+
+ +
__wbg_contracthash_free: ((a) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns void

+
+ +
__wbg_contractpackagehash_free: ((a) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns void

+
+ +
__wbg_deploy_free: ((a) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns void

+
+ +
__wbg_deployhash_free: ((a) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns void

+
+ +
__wbg_deploystrparams_free: ((a) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns void

+
+ +
__wbg_dictionaryaddr_free: ((a) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns void

+
+ +
__wbg_dictionaryitemidentifier_free: ((a) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns void

+
+ +
__wbg_dictionaryitemstrparams_free: ((a) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns void

+
+ +
__wbg_digest_free: ((a) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns void

+
+ +
__wbg_eraid_free: ((a) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns void

+
+ +
__wbg_get_getaccountoptions_account_identifier: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
__wbg_get_getaccountoptions_account_identifier_as_string: ((a, b) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns void

+
+ +
__wbg_get_getaccountoptions_maybe_block_id_as_string: ((a, b) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns void

+
+ +
__wbg_get_getaccountoptions_maybe_block_identifier: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
__wbg_get_getaccountoptions_node_address: ((a, b) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns void

+
+ +
__wbg_get_getaccountoptions_verbosity: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
__wbg_get_getauctioninfooptions_maybe_block_id_as_string: ((a, b) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns void

+
+ +
__wbg_get_getauctioninfooptions_maybe_block_identifier: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
__wbg_get_getauctioninfooptions_node_address: ((a, b) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns void

+
+ +
__wbg_get_getauctioninfooptions_verbosity: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
__wbg_get_getbalanceoptions_node_address: ((a, b) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns void

+
+ +
__wbg_get_getbalanceoptions_purse_uref: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
__wbg_get_getbalanceoptions_purse_uref_as_string: ((a, b) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns void

+
+ +
__wbg_get_getbalanceoptions_state_root_hash: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
__wbg_get_getbalanceoptions_state_root_hash_as_string: ((a, b) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns void

+
+ +
__wbg_get_getbalanceoptions_verbosity: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
__wbg_get_getblockoptions_maybe_block_id_as_string: ((a, b) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns void

+
+ +
__wbg_get_getblockoptions_maybe_block_identifier: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
__wbg_get_getblockoptions_node_address: ((a, b) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns void

+
+ +
__wbg_get_getblockoptions_verbosity: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
__wbg_get_getblocktransfersoptions_maybe_block_id_as_string: ((a, b) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns void

+
+ +
__wbg_get_getblocktransfersoptions_maybe_block_identifier: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
__wbg_get_getblocktransfersoptions_node_address: ((a, b) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns void

+
+ +
__wbg_get_getblocktransfersoptions_verbosity: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
__wbg_get_getdeployoptions_deploy_hash: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
__wbg_get_getdeployoptions_deploy_hash_as_string: ((a, b) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns void

+
+ +
__wbg_get_getdeployoptions_finalized_approvals: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
__wbg_get_getdeployoptions_node_address: ((a, b) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns void

+
+ +
__wbg_get_getdeployoptions_verbosity: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
__wbg_get_getdictionaryitemoptions_dictionary_item_identifier: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
__wbg_get_getdictionaryitemoptions_dictionary_item_params: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
__wbg_get_getdictionaryitemoptions_node_address: ((a, b) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns void

+
+ +
__wbg_get_getdictionaryitemoptions_state_root_hash: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
__wbg_get_getdictionaryitemoptions_state_root_hash_as_string: ((a, b) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns void

+
+ +
__wbg_get_getdictionaryitemoptions_verbosity: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
__wbg_get_geterainfooptions_maybe_block_id_as_string: ((a, b) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns void

+
+ +
__wbg_get_geterainfooptions_maybe_block_identifier: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
__wbg_get_geterainfooptions_node_address: ((a, b) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns void

+
+ +
__wbg_get_geterainfooptions_verbosity: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
__wbg_get_geterasummaryoptions_maybe_block_id_as_string: ((a, b) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns void

+
+ +
__wbg_get_geterasummaryoptions_maybe_block_identifier: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
__wbg_get_geterasummaryoptions_node_address: ((a, b) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns void

+
+ +
__wbg_get_geterasummaryoptions_verbosity: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
__wbg_get_getspeculativeexecoptions_deploy: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
__wbg_get_getspeculativeexecoptions_deploy_as_string: ((a, b) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns void

+
+ +
__wbg_get_getspeculativeexecoptions_maybe_block_id_as_string: ((a, b) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns void

+
+ +
__wbg_get_getspeculativeexecoptions_maybe_block_identifier: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
__wbg_get_getspeculativeexecoptions_node_address: ((a, b) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns void

+
+ +
__wbg_get_getspeculativeexecoptions_verbosity: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
__wbg_get_getstateroothashoptions_maybe_block_id_as_string: ((a, b) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns void

+
+ +
__wbg_get_getstateroothashoptions_maybe_block_identifier: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
__wbg_get_getstateroothashoptions_node_address: ((a, b) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns void

+
+ +
__wbg_get_getstateroothashoptions_verbosity: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
__wbg_get_querybalanceoptions_global_state_identifier: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
__wbg_get_querybalanceoptions_maybe_block_id_as_string: ((a, b) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns void

+
+ +
__wbg_get_querybalanceoptions_node_address: ((a, b) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns void

+
+ +
__wbg_get_querybalanceoptions_purse_identifier: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
__wbg_get_querybalanceoptions_purse_identifier_as_string: ((a, b) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns void

+
+ +
__wbg_get_querybalanceoptions_state_root_hash: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
__wbg_get_querybalanceoptions_state_root_hash_as_string: ((a, b) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns void

+
+ +
__wbg_get_querybalanceoptions_verbosity: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
__wbg_get_querycontractdictoptions_dictionary_item_identifier: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
__wbg_get_querycontractdictoptions_dictionary_item_params: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
__wbg_get_querycontractdictoptions_node_address: ((a, b) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns void

+
+ +
__wbg_get_querycontractdictoptions_state_root_hash: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
__wbg_get_querycontractdictoptions_state_root_hash_as_string: ((a, b) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns void

+
+ +
__wbg_get_querycontractdictoptions_verbosity: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
__wbg_get_querycontractkeyoptions_contract_key: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
__wbg_get_querycontractkeyoptions_contract_key_as_string: ((a, b) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns void

+
+ +
__wbg_get_querycontractkeyoptions_global_state_identifier: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
__wbg_get_querycontractkeyoptions_maybe_block_id_as_string: ((a, b) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns void

+
+ +
__wbg_get_querycontractkeyoptions_node_address: ((a, b) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns void

+
+ +
__wbg_get_querycontractkeyoptions_path: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
__wbg_get_querycontractkeyoptions_path_as_string: ((a, b) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns void

+
+ +
__wbg_get_querycontractkeyoptions_state_root_hash: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
__wbg_get_querycontractkeyoptions_state_root_hash_as_string: ((a, b) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns void

+
+ +
__wbg_get_querycontractkeyoptions_verbosity: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
__wbg_get_queryglobalstateoptions_global_state_identifier: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
__wbg_get_queryglobalstateoptions_key: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
__wbg_get_queryglobalstateoptions_key_as_string: ((a, b) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns void

+
+ +
__wbg_get_queryglobalstateoptions_maybe_block_id_as_string: ((a, b) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns void

+
+ +
__wbg_get_queryglobalstateoptions_node_address: ((a, b) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns void

+
+ +
__wbg_get_queryglobalstateoptions_path: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
__wbg_get_queryglobalstateoptions_path_as_string: ((a, b) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns void

+
+ +
__wbg_get_queryglobalstateoptions_state_root_hash: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
__wbg_get_queryglobalstateoptions_state_root_hash_as_string: ((a, b) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns void

+
+ +
__wbg_get_queryglobalstateoptions_verbosity: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
__wbg_getaccountoptions_free: ((a) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns void

+
+ +
__wbg_getaccountresult_free: ((a) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns void

+
+ +
__wbg_getauctioninfooptions_free: ((a) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns void

+
+ +
__wbg_getauctioninforesult_free: ((a) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns void

+
+ +
__wbg_getbalanceoptions_free: ((a) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns void

+
+ +
__wbg_getbalanceresult_free: ((a) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns void

+
+ +
__wbg_getblockoptions_free: ((a) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns void

+
+ +
__wbg_getblockresult_free: ((a) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns void

+
+ +
__wbg_getblocktransfersoptions_free: ((a) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns void

+
+ +
__wbg_getblocktransfersresult_free: ((a) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns void

+
+ +
__wbg_getchainspecresult_free: ((a) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns void

+
+ +
__wbg_getdeployoptions_free: ((a) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns void

+
+ +
__wbg_getdeployresult_free: ((a) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns void

+
+ +
__wbg_getdictionaryitemoptions_free: ((a) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns void

+
+ +
__wbg_getdictionaryitemresult_free: ((a) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns void

+
+ +
__wbg_geterainfooptions_free: ((a) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns void

+
+ +
__wbg_geterainforesult_free: ((a) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns void

+
+ +
__wbg_geterasummaryoptions_free: ((a) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns void

+
+ +
__wbg_geterasummaryresult_free: ((a) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns void

+
+ +
__wbg_getnodestatusresult_free: ((a) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns void

+
+ +
__wbg_getpeersresult_free: ((a) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns void

+
+ +
__wbg_getspeculativeexecoptions_free: ((a) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns void

+
+ +
__wbg_getstateroothashoptions_free: ((a) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns void

+
+ +
__wbg_getstateroothashresult_free: ((a) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns void

+
+ +
__wbg_getvalidatorchangesresult_free: ((a) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns void

+
+ +
__wbg_globalstateidentifier_free: ((a) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns void

+
+ +
__wbg_hashaddr_free: ((a) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns void

+
+ +
__wbg_key_free: ((a) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns void

+
+ +
__wbg_listrpcsresult_free: ((a) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns void

+
+ +
__wbg_path_free: ((a) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns void

+
+ +
__wbg_paymentstrparams_free: ((a) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns void

+
+ +
__wbg_peerentry_free: ((a) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns void

+
+ +
__wbg_publickey_free: ((a) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns void

+
+ +
__wbg_purseidentifier_free: ((a) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns void

+
+ +
__wbg_putdeployresult_free: ((a) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns void

+
+ +
__wbg_querybalanceoptions_free: ((a) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns void

+
+ +
__wbg_querybalanceresult_free: ((a) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns void

+
+ +
__wbg_querycontractdictoptions_free: ((a) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns void

+
+ +
__wbg_querycontractkeyoptions_free: ((a) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns void

+
+ +
__wbg_queryglobalstateoptions_free: ((a) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns void

+
+ +
__wbg_queryglobalstateresult_free: ((a) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns void

+
+ +
__wbg_sdk_free: ((a) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns void

+
+ +
__wbg_sessionstrparams_free: ((a) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns void

+
+ +
__wbg_set_getaccountoptions_account_identifier: ((a, b) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns void

+
+ +
__wbg_set_getaccountoptions_account_identifier_as_string: ((a, b, c) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b, c): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      • +
      • +
        c: number
      +

      Returns void

+
+ +
__wbg_set_getaccountoptions_maybe_block_id_as_string: ((a, b, c) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b, c): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      • +
      • +
        c: number
      +

      Returns void

+
+ +
__wbg_set_getaccountoptions_maybe_block_identifier: ((a, b) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns void

+
+ +
__wbg_set_getaccountoptions_node_address: ((a, b, c) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b, c): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      • +
      • +
        c: number
      +

      Returns void

+
+ +
__wbg_set_getaccountoptions_verbosity: ((a, b) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns void

+
+ +
__wbg_set_getauctioninfooptions_maybe_block_id_as_string: ((a, b, c) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b, c): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      • +
      • +
        c: number
      +

      Returns void

+
+ +
__wbg_set_getauctioninfooptions_maybe_block_identifier: ((a, b) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns void

+
+ +
__wbg_set_getauctioninfooptions_node_address: ((a, b, c) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b, c): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      • +
      • +
        c: number
      +

      Returns void

+
+ +
__wbg_set_getauctioninfooptions_verbosity: ((a, b) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns void

+
+ +
__wbg_set_getbalanceoptions_node_address: ((a, b, c) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b, c): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      • +
      • +
        c: number
      +

      Returns void

+
+ +
__wbg_set_getbalanceoptions_purse_uref: ((a, b) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns void

+
+ +
__wbg_set_getbalanceoptions_purse_uref_as_string: ((a, b, c) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b, c): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      • +
      • +
        c: number
      +

      Returns void

+
+ +
__wbg_set_getbalanceoptions_state_root_hash: ((a, b) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns void

+
+ +
__wbg_set_getbalanceoptions_state_root_hash_as_string: ((a, b, c) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b, c): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      • +
      • +
        c: number
      +

      Returns void

+
+ +
__wbg_set_getbalanceoptions_verbosity: ((a, b) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns void

+
+ +
__wbg_set_getblockoptions_maybe_block_id_as_string: ((a, b, c) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b, c): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      • +
      • +
        c: number
      +

      Returns void

+
+ +
__wbg_set_getblockoptions_maybe_block_identifier: ((a, b) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns void

+
+ +
__wbg_set_getblockoptions_node_address: ((a, b, c) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b, c): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      • +
      • +
        c: number
      +

      Returns void

+
+ +
__wbg_set_getblockoptions_verbosity: ((a, b) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns void

+
+ +
__wbg_set_getblocktransfersoptions_maybe_block_id_as_string: ((a, b, c) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b, c): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      • +
      • +
        c: number
      +

      Returns void

+
+ +
__wbg_set_getblocktransfersoptions_maybe_block_identifier: ((a, b) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns void

+
+ +
__wbg_set_getblocktransfersoptions_node_address: ((a, b, c) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b, c): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      • +
      • +
        c: number
      +

      Returns void

+
+ +
__wbg_set_getblocktransfersoptions_verbosity: ((a, b) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns void

+
+ +
__wbg_set_getdeployoptions_deploy_hash: ((a, b) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns void

+
+ +
__wbg_set_getdeployoptions_deploy_hash_as_string: ((a, b, c) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b, c): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      • +
      • +
        c: number
      +

      Returns void

+
+ +
__wbg_set_getdeployoptions_finalized_approvals: ((a, b) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns void

+
+ +
__wbg_set_getdeployoptions_node_address: ((a, b, c) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b, c): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      • +
      • +
        c: number
      +

      Returns void

+
+ +
__wbg_set_getdeployoptions_verbosity: ((a, b) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns void

+
+ +
__wbg_set_getdictionaryitemoptions_dictionary_item_identifier: ((a, b) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns void

+
+ +
__wbg_set_getdictionaryitemoptions_dictionary_item_params: ((a, b) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns void

+
+ +
__wbg_set_getdictionaryitemoptions_node_address: ((a, b, c) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b, c): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      • +
      • +
        c: number
      +

      Returns void

+
+ +
__wbg_set_getdictionaryitemoptions_state_root_hash: ((a, b) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns void

+
+ +
__wbg_set_getdictionaryitemoptions_state_root_hash_as_string: ((a, b, c) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b, c): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      • +
      • +
        c: number
      +

      Returns void

+
+ +
__wbg_set_getdictionaryitemoptions_verbosity: ((a, b) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns void

+
+ +
__wbg_set_geterainfooptions_maybe_block_id_as_string: ((a, b, c) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b, c): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      • +
      • +
        c: number
      +

      Returns void

+
+ +
__wbg_set_geterainfooptions_maybe_block_identifier: ((a, b) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns void

+
+ +
__wbg_set_geterainfooptions_node_address: ((a, b, c) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b, c): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      • +
      • +
        c: number
      +

      Returns void

+
+ +
__wbg_set_geterainfooptions_verbosity: ((a, b) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns void

+
+ +
__wbg_set_geterasummaryoptions_maybe_block_id_as_string: ((a, b, c) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b, c): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      • +
      • +
        c: number
      +

      Returns void

+
+ +
__wbg_set_geterasummaryoptions_maybe_block_identifier: ((a, b) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns void

+
+ +
__wbg_set_geterasummaryoptions_node_address: ((a, b, c) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b, c): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      • +
      • +
        c: number
      +

      Returns void

+
+ +
__wbg_set_geterasummaryoptions_verbosity: ((a, b) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns void

+
+ +
__wbg_set_getspeculativeexecoptions_deploy: ((a, b) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns void

+
+ +
__wbg_set_getspeculativeexecoptions_deploy_as_string: ((a, b, c) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b, c): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      • +
      • +
        c: number
      +

      Returns void

+
+ +
__wbg_set_getspeculativeexecoptions_maybe_block_id_as_string: ((a, b, c) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b, c): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      • +
      • +
        c: number
      +

      Returns void

+
+ +
__wbg_set_getspeculativeexecoptions_maybe_block_identifier: ((a, b) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns void

+
+ +
__wbg_set_getspeculativeexecoptions_node_address: ((a, b, c) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b, c): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      • +
      • +
        c: number
      +

      Returns void

+
+ +
__wbg_set_getspeculativeexecoptions_verbosity: ((a, b) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns void

+
+ +
__wbg_set_getstateroothashoptions_maybe_block_id_as_string: ((a, b, c) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b, c): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      • +
      • +
        c: number
      +

      Returns void

+
+ +
__wbg_set_getstateroothashoptions_maybe_block_identifier: ((a, b) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns void

+
+ +
__wbg_set_getstateroothashoptions_node_address: ((a, b, c) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b, c): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      • +
      • +
        c: number
      +

      Returns void

+
+ +
__wbg_set_getstateroothashoptions_verbosity: ((a, b) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns void

+
+ +
__wbg_set_querybalanceoptions_global_state_identifier: ((a, b) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns void

+
+ +
__wbg_set_querybalanceoptions_maybe_block_id_as_string: ((a, b, c) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b, c): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      • +
      • +
        c: number
      +

      Returns void

+
+ +
__wbg_set_querybalanceoptions_node_address: ((a, b, c) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b, c): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      • +
      • +
        c: number
      +

      Returns void

+
+ +
__wbg_set_querybalanceoptions_purse_identifier: ((a, b) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns void

+
+ +
__wbg_set_querybalanceoptions_purse_identifier_as_string: ((a, b, c) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b, c): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      • +
      • +
        c: number
      +

      Returns void

+
+ +
__wbg_set_querybalanceoptions_state_root_hash: ((a, b) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns void

+
+ +
__wbg_set_querybalanceoptions_state_root_hash_as_string: ((a, b, c) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b, c): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      • +
      • +
        c: number
      +

      Returns void

+
+ +
__wbg_set_querybalanceoptions_verbosity: ((a, b) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns void

+
+ +
__wbg_set_querycontractdictoptions_dictionary_item_identifier: ((a, b) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns void

+
+ +
__wbg_set_querycontractdictoptions_dictionary_item_params: ((a, b) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns void

+
+ +
__wbg_set_querycontractdictoptions_node_address: ((a, b, c) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b, c): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      • +
      • +
        c: number
      +

      Returns void

+
+ +
__wbg_set_querycontractdictoptions_state_root_hash: ((a, b) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns void

+
+ +
__wbg_set_querycontractdictoptions_state_root_hash_as_string: ((a, b, c) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b, c): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      • +
      • +
        c: number
      +

      Returns void

+
+ +
__wbg_set_querycontractdictoptions_verbosity: ((a, b) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns void

+
+ +
__wbg_set_querycontractkeyoptions_contract_key: ((a, b) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns void

+
+ +
__wbg_set_querycontractkeyoptions_contract_key_as_string: ((a, b, c) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b, c): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      • +
      • +
        c: number
      +

      Returns void

+
+ +
__wbg_set_querycontractkeyoptions_global_state_identifier: ((a, b) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns void

+
+ +
__wbg_set_querycontractkeyoptions_maybe_block_id_as_string: ((a, b, c) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b, c): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      • +
      • +
        c: number
      +

      Returns void

+
+ +
__wbg_set_querycontractkeyoptions_node_address: ((a, b, c) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b, c): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      • +
      • +
        c: number
      +

      Returns void

+
+ +
__wbg_set_querycontractkeyoptions_path: ((a, b) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns void

+
+ +
__wbg_set_querycontractkeyoptions_path_as_string: ((a, b, c) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b, c): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      • +
      • +
        c: number
      +

      Returns void

+
+ +
__wbg_set_querycontractkeyoptions_state_root_hash: ((a, b) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns void

+
+ +
__wbg_set_querycontractkeyoptions_state_root_hash_as_string: ((a, b, c) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b, c): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      • +
      • +
        c: number
      +

      Returns void

+
+ +
__wbg_set_querycontractkeyoptions_verbosity: ((a, b) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns void

+
+ +
__wbg_set_queryglobalstateoptions_global_state_identifier: ((a, b) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns void

+
+ +
__wbg_set_queryglobalstateoptions_key: ((a, b) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns void

+
+ +
__wbg_set_queryglobalstateoptions_key_as_string: ((a, b, c) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b, c): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      • +
      • +
        c: number
      +

      Returns void

+
+ +
__wbg_set_queryglobalstateoptions_maybe_block_id_as_string: ((a, b, c) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b, c): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      • +
      • +
        c: number
      +

      Returns void

+
+ +
__wbg_set_queryglobalstateoptions_node_address: ((a, b, c) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b, c): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      • +
      • +
        c: number
      +

      Returns void

+
+ +
__wbg_set_queryglobalstateoptions_path: ((a, b) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns void

+
+ +
__wbg_set_queryglobalstateoptions_path_as_string: ((a, b, c) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b, c): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      • +
      • +
        c: number
      +

      Returns void

+
+ +
__wbg_set_queryglobalstateoptions_state_root_hash: ((a, b) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns void

+
+ +
__wbg_set_queryglobalstateoptions_state_root_hash_as_string: ((a, b, c) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b, c): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      • +
      • +
        c: number
      +

      Returns void

+
+ +
__wbg_set_queryglobalstateoptions_verbosity: ((a, b) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns void

+
+ +
__wbg_speculativeexecresult_free: ((a) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns void

+
+ +
__wbg_transferaddr_free: ((a) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns void

+
+ +
__wbg_uref_free: ((a) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns void

+
+ +
__wbg_urefaddr_free: ((a) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns void

+
+ +
__wbindgen_add_to_stack_pointer: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
__wbindgen_exn_store: ((a) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns void

+
+ +
__wbindgen_export_2: Table
+
+ +
__wbindgen_free: ((a, b, c) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b, c): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      • +
      • +
        c: number
      +

      Returns void

+
+ +
__wbindgen_malloc: ((a, b) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns number

+
+ +
__wbindgen_realloc: ((a, b, c, d) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b, c, d): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      • +
      • +
        c: number
      • +
      • +
        d: number
      +

      Returns number

+
+ +
_dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__he9a0163254a4b264: ((a, b, c) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b, c): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      • +
      • +
        c: number
      +

      Returns void

+
+ +
accessrights_ADD: (() => number)
+
+

Type declaration

+
    +
  • +
      +
    • (): number
    • +
    • +

      Returns number

+
+ +
accessrights_ADD_WRITE: (() => number)
+
+

Type declaration

+
    +
  • +
      +
    • (): number
    • +
    • +

      Returns number

+
+ +
accessrights_NONE: (() => number)
+
+

Type declaration

+
    +
  • +
      +
    • (): number
    • +
    • +

      Returns number

+
+ +
accessrights_READ: (() => number)
+
+

Type declaration

+
    +
  • +
      +
    • (): number
    • +
    • +

      Returns number

+
+ +
accessrights_READ_ADD: (() => number)
+
+

Type declaration

+
    +
  • +
      +
    • (): number
    • +
    • +

      Returns number

+
+ +
accessrights_READ_ADD_WRITE: (() => number)
+
+

Type declaration

+
    +
  • +
      +
    • (): number
    • +
    • +

      Returns number

+
+ +
accessrights_READ_WRITE: (() => number)
+
+

Type declaration

+
    +
  • +
      +
    • (): number
    • +
    • +

      Returns number

+
+ +
accessrights_WRITE: (() => number)
+
+

Type declaration

+
    +
  • +
      +
    • (): number
    • +
    • +

      Returns number

+
+ +
accessrights_from_bits: ((a, b, c) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b, c): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      • +
      • +
        c: number
      +

      Returns number

+
+ +
accessrights_is_addable: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
accessrights_is_none: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
accessrights_is_readable: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
accessrights_is_writeable: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
accessrights_new: ((a, b) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns void

+
+ +
accounthash_fromFormattedStr: ((a, b, c) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b, c): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      • +
      • +
        c: number
      +

      Returns void

+
+ +
accounthash_fromPublicKey: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
accounthash_fromUint8Array: ((a, b) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns number

+
+ +
accounthash_new: ((a, b, c) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b, c): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      • +
      • +
        c: number
      +

      Returns void

+
+ +
accounthash_toFormattedString: ((a, b) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns void

+
+ +
accounthash_toJson: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
accountidentifier_fromAccountHash: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
accountidentifier_fromFormattedStr: ((a, b, c) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b, c): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      • +
      • +
        c: number
      +

      Returns void

+
+ +
accountidentifier_fromPublicKey: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
accountidentifier_new: ((a, b, c) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b, c): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      • +
      • +
        c: number
      +

      Returns void

+
+ +
accountidentifier_toJson: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
blockhash_fromDigest: ((a, b) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns void

+
+ +
blockhash_new: ((a, b, c) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b, c): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      • +
      • +
        c: number
      +

      Returns void

+
+ +
blockhash_toJson: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
blockhash_toString: ((a, b) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns void

+
+ +
blockidentifier_fromHeight: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
blockidentifier_from_hash: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
blockidentifier_new: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
blockidentifier_toJson: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
bytes_fromUint8Array: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
bytes_new: (() => number)
+
+

Type declaration

+
    +
  • +
      +
    • (): number
    • +
    • +

      Returns number

+
+ +
contracthash_fromFormattedStr: ((a, b, c) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b, c): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      • +
      • +
        c: number
      +

      Returns void

+
+ +
contracthash_fromString: ((a, b, c) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b, c): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      • +
      • +
        c: number
      +

      Returns void

+
+ +
contracthash_fromUint8Array: ((a, b) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns number

+
+ +
contracthash_toFormattedString: ((a, b) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns void

+
+ +
contractpackagehash_fromFormattedStr: ((a, b, c) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b, c): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      • +
      • +
        c: number
      +

      Returns void

+
+ +
contractpackagehash_fromString: ((a, b, c) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b, c): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      • +
      • +
        c: number
      +

      Returns void

+
+ +
contractpackagehash_fromUint8Array: ((a, b) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns number

+
+ +
contractpackagehash_toFormattedString: ((a, b) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns void

+
+ +
deploy_TTL: ((a, b) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns void

+
+ +
deploy_account: ((a, b) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns void

+
+ +
deploy_addArg: ((a, b, c, d) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b, c, d): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      • +
      • +
        c: number
      • +
      • +
        d: number
      +

      Returns number

+
+ +
deploy_args: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
deploy_chainName: ((a, b) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns void

+
+ +
deploy_new: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
deploy_sign: ((a, b, c) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b, c): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      • +
      • +
        c: number
      +

      Returns number

+
+ +
deploy_timestamp: ((a, b) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns void

+
+ +
deploy_toJson: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
deploy_validateDeploySize: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
deploy_withAccount: ((a, b, c, d) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b, c, d): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      • +
      • +
        c: number
      • +
      • +
        d: number
      +

      Returns number

+
+ +
deploy_withChainName: ((a, b, c, d, e) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b, c, d, e): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      • +
      • +
        c: number
      • +
      • +
        d: number
      • +
      • +
        e: number
      +

      Returns number

+
+ +
deploy_withEntryPointName: ((a, b, c, d, e) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b, c, d, e): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      • +
      • +
        c: number
      • +
      • +
        d: number
      • +
      • +
        e: number
      +

      Returns number

+
+ +
deploy_withHash: ((a, b, c, d) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b, c, d): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      • +
      • +
        c: number
      • +
      • +
        d: number
      +

      Returns number

+
+ +
deploy_withModuleBytes: ((a, b, c, d) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b, c, d): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      • +
      • +
        c: number
      • +
      • +
        d: number
      +

      Returns number

+
+ +
deploy_withPackageHash: ((a, b, c, d) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b, c, d): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      • +
      • +
        c: number
      • +
      • +
        d: number
      +

      Returns number

+
+ +
deploy_withPayment: ((a, b, c, d) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b, c, d): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      • +
      • +
        c: number
      • +
      • +
        d: number
      +

      Returns number

+
+ +
deploy_withPaymentAndSession: ((a, b, c, d) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b, c, d): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      • +
      • +
        c: number
      • +
      • +
        d: number
      +

      Returns void

+
+ +
deploy_withSecretKey: ((a, b, c) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b, c): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      • +
      • +
        c: number
      +

      Returns number

+
+ +
deploy_withSession: ((a, b, c, d) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b, c, d): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      • +
      • +
        c: number
      • +
      • +
        d: number
      +

      Returns number

+
+ +
deploy_withStandardPayment: ((a, b, c, d, e) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b, c, d, e): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      • +
      • +
        c: number
      • +
      • +
        d: number
      • +
      • +
        e: number
      +

      Returns number

+
+ +
deploy_withTTL: ((a, b, c, d, e) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b, c, d, e): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      • +
      • +
        c: number
      • +
      • +
        d: number
      • +
      • +
        e: number
      +

      Returns number

+
+ +
deploy_withTimestamp: ((a, b, c, d, e) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b, c, d, e): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      • +
      • +
        c: number
      • +
      • +
        d: number
      • +
      • +
        e: number
      +

      Returns number

+
+ +
deploy_withTransfer: ((a, b, c, d, e, f, g, h, i) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b, c, d, e, f, g, h, i): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      • +
      • +
        c: number
      • +
      • +
        d: number
      • +
      • +
        e: number
      • +
      • +
        f: number
      • +
      • +
        g: number
      • +
      • +
        h: number
      • +
      • +
        i: number
      +

      Returns void

+
+ +
deployhash_fromDigest: ((a, b) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns void

+
+ +
deployhash_new: ((a, b, c) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b, c): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      • +
      • +
        c: number
      +

      Returns void

+
+ +
deployhash_toJson: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
deployhash_toString: ((a, b) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns void

+
+ +
deploystrparams_chain_name: ((a, b) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns void

+
+ +
deploystrparams_new: ((a, b, c, d, e, f, g, h, i, j) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b, c, d, e, f, g, h, i, j): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      • +
      • +
        c: number
      • +
      • +
        d: number
      • +
      • +
        e: number
      • +
      • +
        f: number
      • +
      • +
        g: number
      • +
      • +
        h: number
      • +
      • +
        i: number
      • +
      • +
        j: number
      +

      Returns number

+
+ +
deploystrparams_secret_key: ((a, b) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns void

+
+ +
deploystrparams_session_account: ((a, b) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns void

+
+ +
deploystrparams_setDefaultTTL: ((a) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns void

+
+ +
deploystrparams_setDefaultTimestamp: ((a) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns void

+
+ +
deploystrparams_set_chain_name: ((a, b, c) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b, c): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      • +
      • +
        c: number
      +

      Returns void

+
+ +
deploystrparams_set_secret_key: ((a, b, c) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b, c): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      • +
      • +
        c: number
      +

      Returns void

+
+ +
deploystrparams_set_session_account: ((a, b, c) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b, c): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      • +
      • +
        c: number
      +

      Returns void

+
+ +
deploystrparams_set_timestamp: ((a, b, c) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b, c): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      • +
      • +
        c: number
      +

      Returns void

+
+ +
deploystrparams_set_ttl: ((a, b, c) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b, c): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      • +
      • +
        c: number
      +

      Returns void

+
+ +
deploystrparams_timestamp: ((a, b) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns void

+
+ +
deploystrparams_ttl: ((a, b) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns void

+
+ +
dictionaryaddr_new: ((a, b, c) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b, c): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      • +
      • +
        c: number
      +

      Returns void

+
+ +
dictionaryitemidentifier_newFromAccountInfo: ((a, b, c, d, e, f, g) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b, c, d, e, f, g): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      • +
      • +
        c: number
      • +
      • +
        d: number
      • +
      • +
        e: number
      • +
      • +
        f: number
      • +
      • +
        g: number
      +

      Returns void

+
+ +
dictionaryitemidentifier_newFromContractInfo: ((a, b, c, d, e, f, g) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b, c, d, e, f, g): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      • +
      • +
        c: number
      • +
      • +
        d: number
      • +
      • +
        e: number
      • +
      • +
        f: number
      • +
      • +
        g: number
      +

      Returns void

+
+ +
dictionaryitemidentifier_newFromDictionaryKey: ((a, b, c) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b, c): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      • +
      • +
        c: number
      +

      Returns void

+
+ +
dictionaryitemidentifier_newFromSeedUref: ((a, b, c, d, e) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b, c, d, e): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      • +
      • +
        c: number
      • +
      • +
        d: number
      • +
      • +
        e: number
      +

      Returns void

+
+ +
dictionaryitemidentifier_toJson: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
dictionaryitemstrparams_new: (() => number)
+
+

Type declaration

+
    +
  • +
      +
    • (): number
    • +
    • +

      Returns number

+
+ +
dictionaryitemstrparams_setAccountNamedKey: ((a, b, c, d, e, f, g) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b, c, d, e, f, g): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      • +
      • +
        c: number
      • +
      • +
        d: number
      • +
      • +
        e: number
      • +
      • +
        f: number
      • +
      • +
        g: number
      +

      Returns void

+
+ +
dictionaryitemstrparams_setContractNamedKey: ((a, b, c, d, e, f, g) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b, c, d, e, f, g): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      • +
      • +
        c: number
      • +
      • +
        d: number
      • +
      • +
        e: number
      • +
      • +
        f: number
      • +
      • +
        g: number
      +

      Returns void

+
+ +
dictionaryitemstrparams_setDictionary: ((a, b, c) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b, c): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      • +
      • +
        c: number
      +

      Returns void

+
+ +
dictionaryitemstrparams_setUref: ((a, b, c, d, e) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b, c, d, e): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      • +
      • +
        c: number
      • +
      • +
        d: number
      • +
      • +
        e: number
      +

      Returns void

+
+ +
dictionaryitemstrparams_toJson: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
digest__new: ((a, b, c) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b, c): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      • +
      • +
        c: number
      +

      Returns void

+
+ +
digest_fromDigest: ((a, b, c) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b, c): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      • +
      • +
        c: number
      +

      Returns void

+
+ +
digest_fromString: ((a, b, c) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b, c): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      • +
      • +
        c: number
      +

      Returns void

+
+ +
digest_toJson: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
digest_toString: ((a, b) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns void

+
+ +
eraid_new: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
eraid_value: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
fromTransfer: ((a, b) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns number

+
+ +
getTimestamp: (() => number)
+
+

Type declaration

+
    +
  • +
      +
    • (): number
    • +
    • +

      Returns number

+
+ +
getaccountresult_account: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
getaccountresult_api_version: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
getaccountresult_merkle_proof: ((a, b) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns void

+
+ +
getaccountresult_toJson: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
getauctioninforesult_api_version: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
getauctioninforesult_auction_state: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
getauctioninforesult_toJson: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
getbalanceresult_api_version: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
getbalanceresult_balance_value: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
getbalanceresult_merkle_proof: ((a, b) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns void

+
+ +
getbalanceresult_toJson: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
getblockresult_api_version: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
getblockresult_block: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
getblockresult_toJson: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
getblocktransfersresult_api_version: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
getblocktransfersresult_block_hash: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
getblocktransfersresult_toJson: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
getblocktransfersresult_transfers: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
getchainspecresult_api_version: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
getchainspecresult_chainspec_bytes: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
getchainspecresult_toJson: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
getdeployresult_api_version: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
getdeployresult_deploy: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
getdeployresult_toJson: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
getdictionaryitemresult_api_version: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
getdictionaryitemresult_dictionary_key: ((a, b) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns void

+
+ +
getdictionaryitemresult_merkle_proof: ((a, b) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns void

+
+ +
getdictionaryitemresult_stored_value: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
getdictionaryitemresult_toJson: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
geterainforesult_api_version: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
geterainforesult_era_summary: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
geterainforesult_toJson: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
geterasummaryresult_api_version: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
geterasummaryresult_era_summary: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
geterasummaryresult_toJson: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
getnodestatusresult_api_version: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
getnodestatusresult_available_block_range: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
getnodestatusresult_block_sync: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
getnodestatusresult_build_version: ((a, b) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns void

+
+ +
getnodestatusresult_chainspec_name: ((a, b) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns void

+
+ +
getnodestatusresult_last_added_block_info: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
getnodestatusresult_last_progress: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
getnodestatusresult_next_upgrade: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
getnodestatusresult_our_public_signing_key: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
getnodestatusresult_peers: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
getnodestatusresult_reactor_state: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
getnodestatusresult_round_length: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
getnodestatusresult_starting_state_root_hash: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
getnodestatusresult_toJson: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
getnodestatusresult_uptime: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
getpeersresult_api_version: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
getpeersresult_peers: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
getpeersresult_toJson: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
getstateroothashresult_api_version: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
getstateroothashresult_state_root_hash: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
getstateroothashresult_state_root_hash_as_string: ((a, b) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns void

+
+ +
getstateroothashresult_toJson: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
getvalidatorchangesresult_api_version: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
getvalidatorchangesresult_changes: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
getvalidatorchangesresult_toJson: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
globalstateidentifier_fromBlockHash: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
globalstateidentifier_fromBlockHeight: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
globalstateidentifier_fromStateRootHash: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
globalstateidentifier_new: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
globalstateidentifier_toJson: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
hashaddr_new: ((a, b, c) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b, c): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      • +
      • +
        c: number
      +

      Returns void

+
+ +
hexToString: ((a, b, c) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b, c): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      • +
      • +
        c: number
      +

      Returns void

+
+ +
hexToUint8Array: ((a, b, c) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b, c): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      • +
      • +
        c: number
      +

      Returns void

+
+ +
jsonPrettyPrint: ((a, b) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns number

+
+ +
key_asBalance: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
key_asDictionaryAddr: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
key_fromAccount: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
key_fromBalance: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
key_fromBid: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
key_fromChainspecRegistry: (() => number)
+
+

Type declaration

+
    +
  • +
      +
    • (): number
    • +
    • +

      Returns number

+
+ +
key_fromChecksumRegistry: (() => number)
+
+

Type declaration

+
    +
  • +
      +
    • (): number
    • +
    • +

      Returns number

+
+ +
key_fromDeployInfo: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
key_fromDictionaryAddr: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
key_fromDictionaryKey: ((a, b, c) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b, c): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      • +
      • +
        c: number
      +

      Returns number

+
+ +
key_fromEraInfo: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
key_fromEraSummary: (() => number)
+
+

Type declaration

+
    +
  • +
      +
    • (): number
    • +
    • +

      Returns number

+
+ +
key_fromFormattedString: ((a, b) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns void

+
+ +
key_fromHash: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
key_fromSystemContractRegistry: (() => number)
+
+

Type declaration

+
    +
  • +
      +
    • (): number
    • +
    • +

      Returns number

+
+ +
key_fromTransfer: ((a, b) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns number

+
+ +
key_fromURef: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
key_fromUnbond: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
key_fromWithdraw: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
key_intoAccount: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
key_intoHash: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
key_intoURef: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
key_isDictionaryKey: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
key_new: ((a, b) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns void

+
+ +
key_toFormattedString: ((a, b) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns void

+
+ +
key_toJson: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
key_urefToHash: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
key_withdrawToUnbond: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
listrpcsresult_api_version: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
listrpcsresult_name: ((a, b) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns void

+
+ +
listrpcsresult_schema: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
listrpcsresult_toJson: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
memory: Memory
+
+ +
motesToCSPR: ((a, b, c) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b, c): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      • +
      • +
        c: number
      +

      Returns void

+
+ +
path_fromArray: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
path_is_empty: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
path_new: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
path_toJson: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
path_toString: ((a, b) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns void

+
+ +
paymentstrparams_new: ((a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      • +
      • +
        c: number
      • +
      • +
        d: number
      • +
      • +
        e: number
      • +
      • +
        f: number
      • +
      • +
        g: number
      • +
      • +
        h: number
      • +
      • +
        i: number
      • +
      • +
        j: number
      • +
      • +
        k: number
      • +
      • +
        l: number
      • +
      • +
        m: number
      • +
      • +
        n: number
      • +
      • +
        o: number
      • +
      • +
        p: number
      • +
      • +
        q: number
      • +
      • +
        r: number
      • +
      • +
        s: number
      • +
      • +
        t: number
      • +
      • +
        u: number
      +

      Returns number

+
+ +
paymentstrparams_payment_amount: ((a, b) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns void

+
+ +
paymentstrparams_payment_args_complex: ((a, b) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns void

+
+ +
paymentstrparams_payment_args_json: ((a, b) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns void

+
+ +
paymentstrparams_payment_args_simple: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
paymentstrparams_payment_entry_point: ((a, b) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns void

+
+ +
paymentstrparams_payment_hash: ((a, b) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns void

+
+ +
paymentstrparams_payment_name: ((a, b) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns void

+
+ +
paymentstrparams_payment_package_hash: ((a, b) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns void

+
+ +
paymentstrparams_payment_package_name: ((a, b) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns void

+
+ +
paymentstrparams_payment_path: ((a, b) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns void

+
+ +
paymentstrparams_payment_version: ((a, b) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns void

+
+ +
paymentstrparams_set_payment_amount: ((a, b, c) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b, c): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      • +
      • +
        c: number
      +

      Returns void

+
+ +
paymentstrparams_set_payment_args_complex: ((a, b, c) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b, c): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      • +
      • +
        c: number
      +

      Returns void

+
+ +
paymentstrparams_set_payment_args_json: ((a, b, c) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b, c): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      • +
      • +
        c: number
      +

      Returns void

+
+ +
paymentstrparams_set_payment_args_simple: ((a, b) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns void

+
+ +
paymentstrparams_set_payment_entry_point: ((a, b, c) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b, c): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      • +
      • +
        c: number
      +

      Returns void

+
+ +
paymentstrparams_set_payment_hash: ((a, b, c) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b, c): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      • +
      • +
        c: number
      +

      Returns void

+
+ +
paymentstrparams_set_payment_name: ((a, b, c) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b, c): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      • +
      • +
        c: number
      +

      Returns void

+
+ +
paymentstrparams_set_payment_package_hash: ((a, b, c) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b, c): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      • +
      • +
        c: number
      +

      Returns void

+
+ +
paymentstrparams_set_payment_package_name: ((a, b, c) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b, c): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      • +
      • +
        c: number
      +

      Returns void

+
+ +
paymentstrparams_set_payment_path: ((a, b, c) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b, c): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      • +
      • +
        c: number
      +

      Returns void

+
+ +
paymentstrparams_set_payment_version: ((a, b, c) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b, c): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      • +
      • +
        c: number
      +

      Returns void

+
+ +
peerentry_address: ((a, b) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns void

+
+ +
peerentry_node_id: ((a, b) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns void

+
+ +
privateToPublicKey: ((a, b) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns number

+
+ +
publickey_fromUint8Array: ((a, b) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns number

+
+ +
publickey_new: ((a, b, c) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b, c): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      • +
      • +
        c: number
      +

      Returns void

+
+ +
publickey_toAccountHash: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
publickey_toJson: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
publickey_toPurseUref: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
purseidentifier_fromAccountHash: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
purseidentifier_fromPublicKey: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
purseidentifier_fromURef: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
putdeployresult_api_version: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
putdeployresult_deploy_hash: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
putdeployresult_toJson: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
querybalanceresult_api_version: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
querybalanceresult_balance: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
querybalanceresult_toJson: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
queryglobalstateresult_api_version: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
queryglobalstateresult_block_header: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
queryglobalstateresult_merkle_proof: ((a, b) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns void

+
+ +
queryglobalstateresult_stored_value: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
queryglobalstateresult_toJson: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
sdk_account_put_deploy: ((a, b, c, d, e) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b, c, d, e): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      • +
      • +
        c: number
      • +
      • +
        d: number
      • +
      • +
        e: number
      +

      Returns number

+
+ +
sdk_call_entrypoint: ((a, b, c, d, e, f, g) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b, c, d, e, f, g): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      • +
      • +
        c: number
      • +
      • +
        d: number
      • +
      • +
        e: number
      • +
      • +
        f: number
      • +
      • +
        g: number
      +

      Returns number

+
+ +
sdk_chain_get_block: ((a, b) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns number

+
+ +
sdk_chain_get_state_root_hash: ((a, b) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns number

+
+ +
sdk_deploy: ((a, b, c, d, e, f, g) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b, c, d, e, f, g): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      • +
      • +
        c: number
      • +
      • +
        d: number
      • +
      • +
        e: number
      • +
      • +
        f: number
      • +
      • +
        g: number
      +

      Returns number

+
+ +
sdk_getNodeAddress: ((a, b, c, d) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b, c, d): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      • +
      • +
        c: number
      • +
      • +
        d: number
      +

      Returns void

+
+ +
sdk_getVerbosity: ((a, b) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns number

+
+ +
sdk_get_account: ((a, b) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns number

+
+ +
sdk_get_account_options: ((a, b) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns number

+
+ +
sdk_get_auction_info: ((a, b) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns number

+
+ +
sdk_get_auction_info_options: ((a, b) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns number

+
+ +
sdk_get_balance: ((a, b) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns number

+
+ +
sdk_get_balance_options: ((a, b) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns number

+
+ +
sdk_get_block: ((a, b) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns number

+
+ +
sdk_get_block_options: ((a, b) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns number

+
+ +
sdk_get_block_transfers: ((a, b) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns number

+
+ +
sdk_get_block_transfers_options: ((a, b) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns number

+
+ +
sdk_get_chainspec: ((a, b, c, d) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b, c, d): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      • +
      • +
        c: number
      • +
      • +
        d: number
      +

      Returns number

+
+ +
sdk_get_deploy: ((a, b) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns number

+
+ +
sdk_get_deploy_options: ((a, b) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns number

+
+ +
sdk_get_dictionary_item: ((a, b) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns number

+
+ +
sdk_get_dictionary_item_options: ((a, b) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns number

+
+ +
sdk_get_era_info: ((a, b) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns number

+
+ +
sdk_get_era_info_options: ((a, b) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns number

+
+ +
sdk_get_era_summary: ((a, b) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns number

+
+ +
sdk_get_era_summary_options: ((a, b) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns number

+
+ +
sdk_get_node_status: ((a, b, c, d) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b, c, d): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      • +
      • +
        c: number
      • +
      • +
        d: number
      +

      Returns number

+
+ +
sdk_get_peers: ((a, b, c, d) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b, c, d): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      • +
      • +
        c: number
      • +
      • +
        d: number
      +

      Returns number

+
+ +
sdk_get_state_root_hash: ((a, b) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns number

+
+ +
sdk_get_state_root_hash_options: ((a, b) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns number

+
+ +
sdk_get_validator_changes: ((a, b, c, d) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b, c, d): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      • +
      • +
        c: number
      • +
      • +
        d: number
      +

      Returns number

+
+ +
sdk_info_get_deploy: ((a, b) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns number

+
+ +
sdk_install: ((a, b, c, d, e, f, g) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b, c, d, e, f, g): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      • +
      • +
        c: number
      • +
      • +
        d: number
      • +
      • +
        e: number
      • +
      • +
        f: number
      • +
      • +
        g: number
      +

      Returns number

+
+ +
sdk_list_rpcs: ((a, b, c, d) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b, c, d): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      • +
      • +
        c: number
      • +
      • +
        d: number
      +

      Returns number

+
+ +
sdk_make_deploy: ((a, b, c, d, e) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b, c, d, e): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      • +
      • +
        c: number
      • +
      • +
        d: number
      • +
      • +
        e: number
      +

      Returns void

+
+ +
sdk_make_transfer: ((a, b, c, d, e, f, g, h, i, j) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b, c, d, e, f, g, h, i, j): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      • +
      • +
        c: number
      • +
      • +
        d: number
      • +
      • +
        e: number
      • +
      • +
        f: number
      • +
      • +
        g: number
      • +
      • +
        h: number
      • +
      • +
        i: number
      • +
      • +
        j: number
      +

      Returns void

+
+ +
sdk_new: ((a, b, c) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b, c): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      • +
      • +
        c: number
      +

      Returns number

+
+ +
sdk_put_deploy: ((a, b, c, d, e) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b, c, d, e): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      • +
      • +
        c: number
      • +
      • +
        d: number
      • +
      • +
        e: number
      +

      Returns number

+
+ +
sdk_query_balance: ((a, b) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns number

+
+ +
sdk_query_balance_options: ((a, b) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns number

+
+ +
sdk_query_contract_dict: ((a, b) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns number

+
+ +
sdk_query_contract_dict_options: ((a, b) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns number

+
+ +
sdk_query_contract_key: ((a, b) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns number

+
+ +
sdk_query_contract_key_options: ((a, b) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns number

+
+ +
sdk_query_global_state: ((a, b) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns number

+
+ +
sdk_query_global_state_options: ((a, b) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns number

+
+ +
sdk_setNodeAddress: ((a, b, c, d) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b, c, d): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      • +
      • +
        c: number
      • +
      • +
        d: number
      +

      Returns void

+
+ +
sdk_setVerbosity: ((a, b, c) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b, c): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      • +
      • +
        c: number
      +

      Returns void

+
+ +
sdk_sign_deploy: ((a, b, c, d) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b, c, d): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      • +
      • +
        c: number
      • +
      • +
        d: number
      +

      Returns number

+
+ +
sdk_speculative_deploy: ((a, b, c, d, e, f, g, h) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b, c, d, e, f, g, h): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      • +
      • +
        c: number
      • +
      • +
        d: number
      • +
      • +
        e: number
      • +
      • +
        f: number
      • +
      • +
        g: number
      • +
      • +
        h: number
      +

      Returns number

+
+ +
sdk_speculative_exec: ((a, b) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns number

+
+ +
sdk_speculative_exec_options: ((a, b) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns number

+
+ +
sdk_speculative_transfer: ((a, b, c, d, e, f, g, h, i, j, k, l, m, n, o) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      • +
      • +
        c: number
      • +
      • +
        d: number
      • +
      • +
        e: number
      • +
      • +
        f: number
      • +
      • +
        g: number
      • +
      • +
        h: number
      • +
      • +
        i: number
      • +
      • +
        j: number
      • +
      • +
        k: number
      • +
      • +
        l: number
      • +
      • +
        m: number
      • +
      • +
        n: number
      • +
      • +
        o: number
      +

      Returns number

+
+ +
sdk_state_get_account_info: ((a, b) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns number

+
+ +
sdk_state_get_balance: ((a, b) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns number

+
+ +
sdk_state_get_dictionary_item: ((a, b) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns number

+
+ +
sdk_transfer: ((a, b, c, d, e, f, g, h, i, j, k, l) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b, c, d, e, f, g, h, i, j, k, l): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      • +
      • +
        c: number
      • +
      • +
        d: number
      • +
      • +
        e: number
      • +
      • +
        f: number
      • +
      • +
        g: number
      • +
      • +
        h: number
      • +
      • +
        i: number
      • +
      • +
        j: number
      • +
      • +
        k: number
      • +
      • +
        l: number
      +

      Returns number

+
+ +
sessionstrparams_is_session_transfer: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
sessionstrparams_new: ((a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      • +
      • +
        c: number
      • +
      • +
        d: number
      • +
      • +
        e: number
      • +
      • +
        f: number
      • +
      • +
        g: number
      • +
      • +
        h: number
      • +
      • +
        i: number
      • +
      • +
        j: number
      • +
      • +
        k: number
      • +
      • +
        l: number
      • +
      • +
        m: number
      • +
      • +
        n: number
      • +
      • +
        o: number
      • +
      • +
        p: number
      • +
      • +
        q: number
      • +
      • +
        r: number
      • +
      • +
        s: number
      • +
      • +
        t: number
      • +
      • +
        u: number
      +

      Returns number

+
+ +
sessionstrparams_session_args_complex: ((a, b) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns void

+
+ +
sessionstrparams_session_args_json: ((a, b) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns void

+
+ +
sessionstrparams_session_args_simple: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
sessionstrparams_session_bytes: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
sessionstrparams_session_entry_point: ((a, b) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns void

+
+ +
sessionstrparams_session_hash: ((a, b) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns void

+
+ +
sessionstrparams_session_name: ((a, b) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns void

+
+ +
sessionstrparams_session_package_hash: ((a, b) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns void

+
+ +
sessionstrparams_session_package_name: ((a, b) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns void

+
+ +
sessionstrparams_session_path: ((a, b) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns void

+
+ +
sessionstrparams_session_version: ((a, b) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns void

+
+ +
sessionstrparams_set_is_session_transfer: ((a, b) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns void

+
+ +
sessionstrparams_set_session_args_complex: ((a, b, c) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b, c): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      • +
      • +
        c: number
      +

      Returns void

+
+ +
sessionstrparams_set_session_args_json: ((a, b, c) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b, c): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      • +
      • +
        c: number
      +

      Returns void

+
+ +
sessionstrparams_set_session_args_simple: ((a, b) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns void

+
+ +
sessionstrparams_set_session_bytes: ((a, b) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns void

+
+ +
sessionstrparams_set_session_entry_point: ((a, b, c) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b, c): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      • +
      • +
        c: number
      +

      Returns void

+
+ +
sessionstrparams_set_session_hash: ((a, b, c) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b, c): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      • +
      • +
        c: number
      +

      Returns void

+
+ +
sessionstrparams_set_session_name: ((a, b, c) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b, c): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      • +
      • +
        c: number
      +

      Returns void

+
+ +
sessionstrparams_set_session_package_hash: ((a, b, c) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b, c): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      • +
      • +
        c: number
      +

      Returns void

+
+ +
sessionstrparams_set_session_package_name: ((a, b, c) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b, c): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      • +
      • +
        c: number
      +

      Returns void

+
+ +
sessionstrparams_set_session_path: ((a, b, c) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b, c): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      • +
      • +
        c: number
      +

      Returns void

+
+ +
sessionstrparams_set_session_version: ((a, b, c) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b, c): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      • +
      • +
        c: number
      +

      Returns void

+
+ +
speculativeexecresult_api_version: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
speculativeexecresult_block_hash: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
speculativeexecresult_execution_result: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
speculativeexecresult_toJson: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
transferaddr_new: ((a, b, c) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b, c): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      • +
      • +
        c: number
      +

      Returns void

+
+ +
uint8ArrayToBytes: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
uref_fromUint8Array: ((a, b, c) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b, c): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      • +
      • +
        c: number
      +

      Returns number

+
+ +
uref_new: ((a, b, c, d) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b, c, d): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      • +
      • +
        c: number
      • +
      • +
        d: number
      +

      Returns void

+
+ +
uref_toFormattedString: ((a, b) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      +

      Returns void

+
+ +
uref_toJson: ((a) => number)
+
+

Type declaration

+
    +
  • +
      +
    • (a): number
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      +

      Returns number

+
+ +
urefaddr_new: ((a, b, c) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b, c): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      • +
      • +
        c: number
      +

      Returns void

+
+ +
wasm_bindgen__convert__closures__invoke2_mut__h02a7a5846fd066d3: ((a, b, c, d) => void)
+
+

Type declaration

+
    +
  • +
      +
    • (a, b, c, d): void
    • +
    • +
      +

      Parameters

      +
        +
      • +
        a: number
      • +
      • +
        b: number
      • +
      • +
        c: number
      • +
      • +
        d: number
      +

      Returns void

+
+ +
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/docs/api-wasm/modules.html b/docs/api-wasm/modules.html new file mode 100644 index 000000000..76ded03ab --- /dev/null +++ b/docs/api-wasm/modules.html @@ -0,0 +1,153 @@ +casper-rust-wasm-sdk
+
+ +
+
+ +
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/docs/api-wasm/types/InitInput.html b/docs/api-wasm/types/InitInput.html new file mode 100644 index 000000000..8fb027fcd --- /dev/null +++ b/docs/api-wasm/types/InitInput.html @@ -0,0 +1,63 @@ +InitInput | casper-rust-wasm-sdk
+
+ +
+
+
+
+ +

Type alias InitInput

+
InitInput: RequestInfo | URL | Response | BufferSource | WebAssembly.Module
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/docs/api-wasm/types/SyncInitInput.html b/docs/api-wasm/types/SyncInitInput.html new file mode 100644 index 000000000..710c1e88e --- /dev/null +++ b/docs/api-wasm/types/SyncInitInput.html @@ -0,0 +1,63 @@ +SyncInitInput | casper-rust-wasm-sdk
+
+ +
+
+
+
+ +

Type alias SyncInitInput

+
SyncInitInput: BufferSource | WebAssembly.Module
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/docs/images/get_status-electron.png b/docs/images/get_status-electron.png new file mode 100644 index 000000000..1f0b2bb81 Binary files /dev/null and b/docs/images/get_status-electron.png differ diff --git a/examples/desktop/electron/.gitignore b/examples/desktop/electron/.gitignore new file mode 100644 index 000000000..bfd0012d5 --- /dev/null +++ b/examples/desktop/electron/.gitignore @@ -0,0 +1,25 @@ +# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. + +# dependencies +/node_modules +/.pnp +.pnp.js + +# testing +/coverage + +# production +/build + +# misc +.DS_Store +.env.local +.env.development.local +.env.test.local +.env.production.local + +npm-debug.log* +yarn-debug.log* +yarn-error.log* + +/release/*/* diff --git a/examples/desktop/electron/favicon.png b/examples/desktop/electron/favicon.png new file mode 100644 index 000000000..3c1776bdf Binary files /dev/null and b/examples/desktop/electron/favicon.png differ diff --git a/examples/desktop/electron/index.js b/examples/desktop/electron/index.js new file mode 100644 index 000000000..3dd57eb83 --- /dev/null +++ b/examples/desktop/electron/index.js @@ -0,0 +1,30 @@ +const { app, BrowserWindow } = require('electron'); +const url = require('url'); +const path = require('path'); + +let win; + +function createWindow() { + win = new BrowserWindow({ + width: 1024, + height: 728, + webPreferences: { + nodeIntegration: true, + webSecurity: false, + }, + icon: path.join(__dirname, 'favicon.png'), + }); + + win.loadURL( + url.format({ + pathname: path.join( + __dirname, + '../../frontend/angular/dist/casper/index.html' + ), + protocol: 'file:', + slashes: true, + }) + ); +} + +app.on('ready', createWindow); diff --git a/examples/desktop/electron/package-lock.json b/examples/desktop/electron/package-lock.json new file mode 100644 index 000000000..8c1a73438 --- /dev/null +++ b/examples/desktop/electron/package-lock.json @@ -0,0 +1,3046 @@ +{ + "name": "casper", + "version": "1.0.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "casper", + "version": "1.0.0", + "license": "ISC", + "devDependencies": { + "electron": "^26.1.0", + "electron-builder": "^24.6.3", + "electron-updater": "^6.1.1" + } + }, + "node_modules/@develar/schema-utils": { + "version": "2.6.5", + "resolved": "https://registry.npmjs.org/@develar/schema-utils/-/schema-utils-2.6.5.tgz", + "integrity": "sha512-0cp4PsWQ/9avqTVMCtZ+GirikIA36ikvjtHweU4/j8yLtgObI0+JUPhYFScgwlteveGB1rt3Cm8UhN04XayDig==", + "dev": true, + "dependencies": { + "ajv": "^6.12.0", + "ajv-keywords": "^3.4.1" + }, + "engines": { + "node": ">= 8.9.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + } + }, + "node_modules/@electron/asar": { + "version": "3.2.4", + "resolved": "https://registry.npmjs.org/@electron/asar/-/asar-3.2.4.tgz", + "integrity": "sha512-lykfY3TJRRWFeTxccEKdf1I6BLl2Plw81H0bbp4Fc5iEc67foDCa5pjJQULVgo0wF+Dli75f3xVcdb/67FFZ/g==", + "dev": true, + "dependencies": { + "chromium-pickle-js": "^0.2.0", + "commander": "^5.0.0", + "glob": "^7.1.6", + "minimatch": "^3.0.4" + }, + "bin": { + "asar": "bin/asar.js" + }, + "engines": { + "node": ">=10.12.0" + } + }, + "node_modules/@electron/asar/node_modules/brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dev": true, + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/@electron/asar/node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dev": true, + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/@electron/get": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/@electron/get/-/get-2.0.2.tgz", + "integrity": "sha512-eFZVFoRXb3GFGd7Ak7W4+6jBl9wBtiZ4AaYOse97ej6mKj5tkyO0dUnUChs1IhJZtx1BENo4/p4WUTXpi6vT+g==", + "dev": true, + "dependencies": { + "debug": "^4.1.1", + "env-paths": "^2.2.0", + "fs-extra": "^8.1.0", + "got": "^11.8.5", + "progress": "^2.0.3", + "semver": "^6.2.0", + "sumchecker": "^3.0.1" + }, + "engines": { + "node": ">=12" + }, + "optionalDependencies": { + "global-agent": "^3.0.0" + } + }, + "node_modules/@electron/notarize": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/@electron/notarize/-/notarize-1.2.4.tgz", + "integrity": "sha512-W5GQhJEosFNafewnS28d3bpQ37/s91CDWqxVchHfmv2dQSTWpOzNlUVQwYzC1ay5bChRV/A9BTL68yj0Pa+TSg==", + "dev": true, + "dependencies": { + "debug": "^4.1.1", + "fs-extra": "^9.0.1" + }, + "engines": { + "node": ">= 10.0.0" + } + }, + "node_modules/@electron/notarize/node_modules/fs-extra": { + "version": "9.1.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-9.1.0.tgz", + "integrity": "sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ==", + "dev": true, + "dependencies": { + "at-least-node": "^1.0.0", + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@electron/notarize/node_modules/jsonfile": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", + "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==", + "dev": true, + "dependencies": { + "universalify": "^2.0.0" + }, + "optionalDependencies": { + "graceful-fs": "^4.1.6" + } + }, + "node_modules/@electron/notarize/node_modules/universalify": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.0.tgz", + "integrity": "sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ==", + "dev": true, + "engines": { + "node": ">= 10.0.0" + } + }, + "node_modules/@electron/osx-sign": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/@electron/osx-sign/-/osx-sign-1.0.5.tgz", + "integrity": "sha512-k9ZzUQtamSoweGQDV2jILiRIHUu7lYlJ3c6IEmjv1hC17rclE+eb9U+f6UFlOOETo0JzY1HNlXy4YOlCvl+Lww==", + "dev": true, + "dependencies": { + "compare-version": "^0.1.2", + "debug": "^4.3.4", + "fs-extra": "^10.0.0", + "isbinaryfile": "^4.0.8", + "minimist": "^1.2.6", + "plist": "^3.0.5" + }, + "bin": { + "electron-osx-flat": "bin/electron-osx-flat.js", + "electron-osx-sign": "bin/electron-osx-sign.js" + }, + "engines": { + "node": ">=12.0.0" + } + }, + "node_modules/@electron/osx-sign/node_modules/fs-extra": { + "version": "10.1.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-10.1.0.tgz", + "integrity": "sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==", + "dev": true, + "dependencies": { + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/@electron/osx-sign/node_modules/isbinaryfile": { + "version": "4.0.10", + "resolved": "https://registry.npmjs.org/isbinaryfile/-/isbinaryfile-4.0.10.tgz", + "integrity": "sha512-iHrqe5shvBUcFbmZq9zOQHBoeOhZJu6RQGrDpBgenUm/Am+F3JM2MgQj+rK3Z601fzrL5gLZWtAPH2OBaSVcyw==", + "dev": true, + "engines": { + "node": ">= 8.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/gjtorikian/" + } + }, + "node_modules/@electron/osx-sign/node_modules/jsonfile": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", + "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==", + "dev": true, + "dependencies": { + "universalify": "^2.0.0" + }, + "optionalDependencies": { + "graceful-fs": "^4.1.6" + } + }, + "node_modules/@electron/osx-sign/node_modules/universalify": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.0.tgz", + "integrity": "sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ==", + "dev": true, + "engines": { + "node": ">= 10.0.0" + } + }, + "node_modules/@electron/universal": { + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/@electron/universal/-/universal-1.3.4.tgz", + "integrity": "sha512-BdhBgm2ZBnYyYRLRgOjM5VHkyFItsbggJ0MHycOjKWdFGYwK97ZFXH54dTvUWEfha81vfvwr5On6XBjt99uDcg==", + "dev": true, + "dependencies": { + "@electron/asar": "^3.2.1", + "@malept/cross-spawn-promise": "^1.1.0", + "debug": "^4.3.1", + "dir-compare": "^3.0.0", + "fs-extra": "^9.0.1", + "minimatch": "^3.0.4", + "plist": "^3.0.4" + }, + "engines": { + "node": ">=8.6" + } + }, + "node_modules/@electron/universal/node_modules/brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dev": true, + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/@electron/universal/node_modules/fs-extra": { + "version": "9.1.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-9.1.0.tgz", + "integrity": "sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ==", + "dev": true, + "dependencies": { + "at-least-node": "^1.0.0", + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@electron/universal/node_modules/jsonfile": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", + "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==", + "dev": true, + "dependencies": { + "universalify": "^2.0.0" + }, + "optionalDependencies": { + "graceful-fs": "^4.1.6" + } + }, + "node_modules/@electron/universal/node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dev": true, + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/@electron/universal/node_modules/universalify": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.0.tgz", + "integrity": "sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ==", + "dev": true, + "engines": { + "node": ">= 10.0.0" + } + }, + "node_modules/@malept/cross-spawn-promise": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/@malept/cross-spawn-promise/-/cross-spawn-promise-1.1.1.tgz", + "integrity": "sha512-RTBGWL5FWQcg9orDOCcp4LvItNzUPcyEU9bwaeJX0rJ1IQxzucC48Y0/sQLp/g6t99IQgAlGIaesJS+gTn7tVQ==", + "dev": true, + "funding": [ + { + "type": "individual", + "url": "https://github.com/sponsors/malept" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/subscription/pkg/npm-.malept-cross-spawn-promise?utm_medium=referral&utm_source=npm_fund" + } + ], + "dependencies": { + "cross-spawn": "^7.0.1" + }, + "engines": { + "node": ">= 10" + } + }, + "node_modules/@malept/flatpak-bundler": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/@malept/flatpak-bundler/-/flatpak-bundler-0.4.0.tgz", + "integrity": "sha512-9QOtNffcOF/c1seMCDnjckb3R9WHcG34tky+FHpNKKCW0wc/scYLwMtO+ptyGUfMW0/b/n4qRiALlaFHc9Oj7Q==", + "dev": true, + "dependencies": { + "debug": "^4.1.1", + "fs-extra": "^9.0.0", + "lodash": "^4.17.15", + "tmp-promise": "^3.0.2" + }, + "engines": { + "node": ">= 10.0.0" + } + }, + "node_modules/@malept/flatpak-bundler/node_modules/fs-extra": { + "version": "9.1.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-9.1.0.tgz", + "integrity": "sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ==", + "dev": true, + "dependencies": { + "at-least-node": "^1.0.0", + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@malept/flatpak-bundler/node_modules/jsonfile": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", + "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==", + "dev": true, + "dependencies": { + "universalify": "^2.0.0" + }, + "optionalDependencies": { + "graceful-fs": "^4.1.6" + } + }, + "node_modules/@malept/flatpak-bundler/node_modules/universalify": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.0.tgz", + "integrity": "sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ==", + "dev": true, + "engines": { + "node": ">= 10.0.0" + } + }, + "node_modules/@sindresorhus/is": { + "version": "4.6.0", + "resolved": "https://registry.npmjs.org/@sindresorhus/is/-/is-4.6.0.tgz", + "integrity": "sha512-t09vSN3MdfsyCHoFcTRCH/iUtG7OJ0CsjzB8cjAmKc/va/kIgeDI/TxsigdncE/4be734m0cvIYwNaV4i2XqAw==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sindresorhus/is?sponsor=1" + } + }, + "node_modules/@szmarczak/http-timer": { + "version": "4.0.6", + "resolved": "https://registry.npmjs.org/@szmarczak/http-timer/-/http-timer-4.0.6.tgz", + "integrity": "sha512-4BAffykYOgO+5nzBWYwE3W90sBgLJoUPRWWcL8wlyiM8IB8ipJz3UMJ9KXQd1RKQXpKp8Tutn80HZtWsu2u76w==", + "dev": true, + "dependencies": { + "defer-to-connect": "^2.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@tootallnate/once": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@tootallnate/once/-/once-2.0.0.tgz", + "integrity": "sha512-XCuKFP5PS55gnMVu3dty8KPatLqUoy/ZYzDzAGCQ8JNFCkLXzmI7vNHCR+XpbZaMWQK/vQubr7PkYq8g470J/A==", + "dev": true, + "engines": { + "node": ">= 10" + } + }, + "node_modules/@types/cacheable-request": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/@types/cacheable-request/-/cacheable-request-6.0.3.tgz", + "integrity": "sha512-IQ3EbTzGxIigb1I3qPZc1rWJnH0BmSKv5QYTalEwweFvyBDLSAe24zP0le/hyi7ecGfZVlIVAg4BZqb8WBwKqw==", + "dev": true, + "dependencies": { + "@types/http-cache-semantics": "*", + "@types/keyv": "^3.1.4", + "@types/node": "*", + "@types/responselike": "^1.0.0" + } + }, + "node_modules/@types/debug": { + "version": "4.1.8", + "resolved": "https://registry.npmjs.org/@types/debug/-/debug-4.1.8.tgz", + "integrity": "sha512-/vPO1EPOs306Cvhwv7KfVfYvOJqA/S/AXjaHQiJboCZzcNDb+TIJFN9/2C9DZ//ijSKWioNyUxD792QmDJ+HKQ==", + "dev": true, + "dependencies": { + "@types/ms": "*" + } + }, + "node_modules/@types/fs-extra": { + "version": "9.0.13", + "resolved": "https://registry.npmjs.org/@types/fs-extra/-/fs-extra-9.0.13.tgz", + "integrity": "sha512-nEnwB++1u5lVDM2UI4c1+5R+FYaKfaAzS4OococimjVm3nQw3TuzH5UNsocrcTBbhnerblyHj4A49qXbIiZdpA==", + "dev": true, + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/http-cache-semantics": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/@types/http-cache-semantics/-/http-cache-semantics-4.0.1.tgz", + "integrity": "sha512-SZs7ekbP8CN0txVG2xVRH6EgKmEm31BOxA07vkFaETzZz1xh+cbt8BcI0slpymvwhx5dlFnQG2rTlPVQn+iRPQ==", + "dev": true + }, + "node_modules/@types/keyv": { + "version": "3.1.4", + "resolved": "https://registry.npmjs.org/@types/keyv/-/keyv-3.1.4.tgz", + "integrity": "sha512-BQ5aZNSCpj7D6K2ksrRCTmKRLEpnPvWDiLPfoGyhZ++8YtiK9d/3DBKPJgry359X/P1PfruyYwvnvwFjuEiEIg==", + "dev": true, + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/ms": { + "version": "0.7.31", + "resolved": "https://registry.npmjs.org/@types/ms/-/ms-0.7.31.tgz", + "integrity": "sha512-iiUgKzV9AuaEkZqkOLDIvlQiL6ltuZd9tGcW3gwpnX8JbuiuhFlEGmmFXEXkN50Cvq7Os88IY2v0dkDqXYWVgA==", + "dev": true + }, + "node_modules/@types/node": { + "version": "18.17.11", + "resolved": "https://registry.npmjs.org/@types/node/-/node-18.17.11.tgz", + "integrity": "sha512-r3hjHPBu+3LzbGBa8DHnr/KAeTEEOrahkcL+cZc4MaBMTM+mk8LtXR+zw+nqfjuDZZzYTYgTcpHuP+BEQk069g==", + "dev": true + }, + "node_modules/@types/plist": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/@types/plist/-/plist-3.0.2.tgz", + "integrity": "sha512-ULqvZNGMv0zRFvqn8/4LSPtnmN4MfhlPNtJCTpKuIIxGVGZ2rYWzFXrvEBoh9CVyqSE7D6YFRJ1hydLHI6kbWw==", + "dev": true, + "dependencies": { + "@types/node": "*", + "xmlbuilder": ">=11.0.1" + } + }, + "node_modules/@types/responselike": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/@types/responselike/-/responselike-1.0.0.tgz", + "integrity": "sha512-85Y2BjiufFzaMIlvJDvTTB8Fxl2xfLo4HgmHzVBz08w4wDePCTjYw66PdrolO0kzli3yam/YCgRufyo1DdQVTA==", + "dev": true, + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/verror": { + "version": "1.10.6", + "resolved": "https://registry.npmjs.org/@types/verror/-/verror-1.10.6.tgz", + "integrity": "sha512-NNm+gdePAX1VGvPcGZCDKQZKYSiAWigKhKaz5KF94hG6f2s8de9Ow5+7AbXoeKxL8gavZfk4UquSAygOF2duEQ==", + "dev": true + }, + "node_modules/@types/yauzl": { + "version": "2.10.0", + "resolved": "https://registry.npmjs.org/@types/yauzl/-/yauzl-2.10.0.tgz", + "integrity": "sha512-Cn6WYCm0tXv8p6k+A8PvbDG763EDpBoTzHdA+Q/MF6H3sapGjCm9NzoaJncJS9tUKSuCoDs9XHxYYsQDgxR6kw==", + "dev": true, + "optional": true, + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@xmldom/xmldom": { + "version": "0.8.10", + "resolved": "https://registry.npmjs.org/@xmldom/xmldom/-/xmldom-0.8.10.tgz", + "integrity": "sha512-2WALfTl4xo2SkGCYRt6rDTFfk9R1czmBvUQy12gK2KuRKIpWEhcbbzy8EZXtz/jkRqHX8bFEc6FC1HjX4TUWYw==", + "dev": true, + "engines": { + "node": ">=10.0.0" + } + }, + "node_modules/7zip-bin": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/7zip-bin/-/7zip-bin-5.1.1.tgz", + "integrity": "sha512-sAP4LldeWNz0lNzmTird3uWfFDWWTeg6V/MsmyyLR9X1idwKBWIgt/ZvinqQldJm3LecKEs1emkbquO6PCiLVQ==", + "dev": true + }, + "node_modules/agent-base": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz", + "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==", + "dev": true, + "dependencies": { + "debug": "4" + }, + "engines": { + "node": ">= 6.0.0" + } + }, + "node_modules/ajv": { + "version": "6.12.6", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "dev": true, + "dependencies": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/ajv-keywords": { + "version": "3.5.2", + "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.5.2.tgz", + "integrity": "sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ==", + "dev": true, + "peerDependencies": { + "ajv": "^6.9.1" + } + }, + "node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/app-builder-bin": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/app-builder-bin/-/app-builder-bin-4.0.0.tgz", + "integrity": "sha512-xwdG0FJPQMe0M0UA4Tz0zEB8rBJTRA5a476ZawAqiBkMv16GRK5xpXThOjMaEOFnZ6zabejjG4J3da0SXG63KA==", + "dev": true + }, + "node_modules/app-builder-lib": { + "version": "24.6.3", + "resolved": "https://registry.npmjs.org/app-builder-lib/-/app-builder-lib-24.6.3.tgz", + "integrity": "sha512-++0Zp7vcCHfXMBGVj7luFxpqvMPk5mcWeTuw7OK0xNAaNtYQTTN0d9YfWRsb1MvviTOOhyHeULWz1CaixrdrDg==", + "dev": true, + "dependencies": { + "@develar/schema-utils": "~2.6.5", + "@electron/notarize": "^1.2.3", + "@electron/osx-sign": "^1.0.4", + "@electron/universal": "1.3.4", + "@malept/flatpak-bundler": "^0.4.0", + "@types/fs-extra": "9.0.13", + "7zip-bin": "~5.1.1", + "async-exit-hook": "^2.0.1", + "bluebird-lst": "^1.0.9", + "builder-util": "24.5.0", + "builder-util-runtime": "9.2.1", + "chromium-pickle-js": "^0.2.0", + "debug": "^4.3.4", + "ejs": "^3.1.8", + "electron-publish": "24.5.0", + "form-data": "^4.0.0", + "fs-extra": "^10.1.0", + "hosted-git-info": "^4.1.0", + "is-ci": "^3.0.0", + "isbinaryfile": "^5.0.0", + "js-yaml": "^4.1.0", + "lazy-val": "^1.0.5", + "minimatch": "^5.1.1", + "read-config-file": "6.3.2", + "sanitize-filename": "^1.6.3", + "semver": "^7.3.8", + "tar": "^6.1.12", + "temp-file": "^3.4.0" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/app-builder-lib/node_modules/fs-extra": { + "version": "10.1.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-10.1.0.tgz", + "integrity": "sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==", + "dev": true, + "dependencies": { + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/app-builder-lib/node_modules/jsonfile": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", + "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==", + "dev": true, + "dependencies": { + "universalify": "^2.0.0" + }, + "optionalDependencies": { + "graceful-fs": "^4.1.6" + } + }, + "node_modules/app-builder-lib/node_modules/semver": { + "version": "7.5.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", + "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", + "dev": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/app-builder-lib/node_modules/universalify": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.0.tgz", + "integrity": "sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ==", + "dev": true, + "engines": { + "node": ">= 10.0.0" + } + }, + "node_modules/argparse": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", + "dev": true + }, + "node_modules/assert-plus": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", + "integrity": "sha512-NfJ4UzBCcQGLDlQq7nHxH+tv3kyZ0hHQqF5BO6J7tNJeP5do1llPr8dZ8zHonfhAu0PHAdMkSo+8o0wxg9lZWw==", + "dev": true, + "engines": { + "node": ">=0.8" + } + }, + "node_modules/astral-regex": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/astral-regex/-/astral-regex-2.0.0.tgz", + "integrity": "sha512-Z7tMw1ytTXt5jqMcOP+OQteU1VuNK9Y02uuJtKQ1Sv69jXQKKg5cibLwGJow8yzZP+eAc18EmLGPal0bp36rvQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/async": { + "version": "3.2.4", + "resolved": "https://registry.npmjs.org/async/-/async-3.2.4.tgz", + "integrity": "sha512-iAB+JbDEGXhyIUavoDl9WP/Jj106Kz9DEn1DPgYw5ruDn0e3Wgi3sKFm55sASdGBNOQB8F59d9qQ7deqrHA8wQ==", + "dev": true + }, + "node_modules/async-exit-hook": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/async-exit-hook/-/async-exit-hook-2.0.1.tgz", + "integrity": "sha512-NW2cX8m1Q7KPA7a5M2ULQeZ2wR5qI5PAbw5L0UOMxdioVk9PMZ0h1TmyZEkPYrCvYjDlFICusOu1dlEKAAeXBw==", + "dev": true, + "engines": { + "node": ">=0.12.0" + } + }, + "node_modules/asynckit": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", + "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==", + "dev": true + }, + "node_modules/at-least-node": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/at-least-node/-/at-least-node-1.0.0.tgz", + "integrity": "sha512-+q/t7Ekv1EDY2l6Gda6LLiX14rU9TV20Wa3ofeQmwPFZbOMo9DXrLbOjFaaclkXKWidIaopwAObQDqwWtGUjqg==", + "dev": true, + "engines": { + "node": ">= 4.0.0" + } + }, + "node_modules/balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", + "dev": true + }, + "node_modules/base64-js": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", + "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] + }, + "node_modules/bluebird": { + "version": "3.7.2", + "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.7.2.tgz", + "integrity": "sha512-XpNj6GDQzdfW+r2Wnn7xiSAd7TM3jzkxGXBGTtWKuSXv1xUV+azxAm8jdWZN06QTQk+2N2XB9jRDkvbmQmcRtg==", + "dev": true + }, + "node_modules/bluebird-lst": { + "version": "1.0.9", + "resolved": "https://registry.npmjs.org/bluebird-lst/-/bluebird-lst-1.0.9.tgz", + "integrity": "sha512-7B1Rtx82hjnSD4PGLAjVWeYH3tHAcVUmChh85a3lltKQm6FresXh9ErQo6oAv6CqxttczC3/kEg8SY5NluPuUw==", + "dev": true, + "dependencies": { + "bluebird": "^3.5.5" + } + }, + "node_modules/boolean": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/boolean/-/boolean-3.2.0.tgz", + "integrity": "sha512-d0II/GO9uf9lfUHH2BQsjxzRJZBdsjgsBiW4BvhWk/3qoKwQFjIDVN19PfX8F2D/r9PCMTtLWjYVCFrpeYUzsw==", + "dev": true, + "optional": true + }, + "node_modules/brace-expansion": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", + "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", + "dev": true, + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/buffer": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz", + "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "dependencies": { + "base64-js": "^1.3.1", + "ieee754": "^1.1.13" + } + }, + "node_modules/buffer-crc32": { + "version": "0.2.13", + "resolved": "https://registry.npmjs.org/buffer-crc32/-/buffer-crc32-0.2.13.tgz", + "integrity": "sha512-VO9Ht/+p3SN7SKWqcrgEzjGbRSJYTx+Q1pTQC0wrWqHx0vpJraQ6GtHx8tvcg1rlK1byhU5gccxgOgj7B0TDkQ==", + "dev": true, + "engines": { + "node": "*" + } + }, + "node_modules/buffer-equal": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/buffer-equal/-/buffer-equal-1.0.1.tgz", + "integrity": "sha512-QoV3ptgEaQpvVwbXdSO39iqPQTCxSF7A5U99AxbHYqUdCizL/lH2Z0A2y6nbZucxMEOtNyZfG2s6gsVugGpKkg==", + "dev": true, + "engines": { + "node": ">=0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/buffer-from": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", + "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", + "dev": true + }, + "node_modules/builder-util": { + "version": "24.5.0", + "resolved": "https://registry.npmjs.org/builder-util/-/builder-util-24.5.0.tgz", + "integrity": "sha512-STnBmZN/M5vGcv01u/K8l+H+kplTaq4PAIn3yeuufUKSpcdro0DhJWxPI81k5XcNfC//bjM3+n9nr8F9uV4uAQ==", + "dev": true, + "dependencies": { + "@types/debug": "^4.1.6", + "7zip-bin": "~5.1.1", + "app-builder-bin": "4.0.0", + "bluebird-lst": "^1.0.9", + "builder-util-runtime": "9.2.1", + "chalk": "^4.1.2", + "cross-spawn": "^7.0.3", + "debug": "^4.3.4", + "fs-extra": "^10.1.0", + "http-proxy-agent": "^5.0.0", + "https-proxy-agent": "^5.0.1", + "is-ci": "^3.0.0", + "js-yaml": "^4.1.0", + "source-map-support": "^0.5.19", + "stat-mode": "^1.0.0", + "temp-file": "^3.4.0" + } + }, + "node_modules/builder-util-runtime": { + "version": "9.2.1", + "resolved": "https://registry.npmjs.org/builder-util-runtime/-/builder-util-runtime-9.2.1.tgz", + "integrity": "sha512-2rLv/uQD2x+dJ0J3xtsmI12AlRyk7p45TEbE/6o/fbb633e/S3pPgm+ct+JHsoY7r39dKHnGEFk/AASRFdnXmA==", + "dev": true, + "dependencies": { + "debug": "^4.3.4", + "sax": "^1.2.4" + }, + "engines": { + "node": ">=12.0.0" + } + }, + "node_modules/builder-util/node_modules/fs-extra": { + "version": "10.1.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-10.1.0.tgz", + "integrity": "sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==", + "dev": true, + "dependencies": { + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/builder-util/node_modules/jsonfile": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", + "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==", + "dev": true, + "dependencies": { + "universalify": "^2.0.0" + }, + "optionalDependencies": { + "graceful-fs": "^4.1.6" + } + }, + "node_modules/builder-util/node_modules/universalify": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.0.tgz", + "integrity": "sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ==", + "dev": true, + "engines": { + "node": ">= 10.0.0" + } + }, + "node_modules/cacheable-lookup": { + "version": "5.0.4", + "resolved": "https://registry.npmjs.org/cacheable-lookup/-/cacheable-lookup-5.0.4.tgz", + "integrity": "sha512-2/kNscPhpcxrOigMZzbiWF7dz8ilhb/nIHU3EyZiXWXpeq/au8qJ8VhdftMkty3n7Gj6HIGalQG8oiBNB3AJgA==", + "dev": true, + "engines": { + "node": ">=10.6.0" + } + }, + "node_modules/cacheable-request": { + "version": "7.0.4", + "resolved": "https://registry.npmjs.org/cacheable-request/-/cacheable-request-7.0.4.tgz", + "integrity": "sha512-v+p6ongsrp0yTGbJXjgxPow2+DL93DASP4kXCDKb8/bwRtt9OEF3whggkkDkGNzgcWy2XaF4a8nZglC7uElscg==", + "dev": true, + "dependencies": { + "clone-response": "^1.0.2", + "get-stream": "^5.1.0", + "http-cache-semantics": "^4.0.0", + "keyv": "^4.0.0", + "lowercase-keys": "^2.0.0", + "normalize-url": "^6.0.1", + "responselike": "^2.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/chownr": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/chownr/-/chownr-2.0.0.tgz", + "integrity": "sha512-bIomtDF5KGpdogkLd9VspvFzk9KfpyyGlS8YFVZl7TGPBHL5snIOnxeshwVgPteQ9b4Eydl+pVbIyE1DcvCWgQ==", + "dev": true, + "engines": { + "node": ">=10" + } + }, + "node_modules/chromium-pickle-js": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/chromium-pickle-js/-/chromium-pickle-js-0.2.0.tgz", + "integrity": "sha512-1R5Fho+jBq0DDydt+/vHWj5KJNJCKdARKOCwZUen84I5BreWoLqRLANH1U87eJy1tiASPtMnGqJJq0ZsLoRPOw==", + "dev": true + }, + "node_modules/ci-info": { + "version": "3.8.0", + "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-3.8.0.tgz", + "integrity": "sha512-eXTggHWSooYhq49F2opQhuHWgzucfF2YgODK4e1566GQs5BIfP30B0oenwBJHfWxAs2fyPB1s7Mg949zLf61Yw==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/sibiraj-s" + } + ], + "engines": { + "node": ">=8" + } + }, + "node_modules/cli-truncate": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/cli-truncate/-/cli-truncate-2.1.0.tgz", + "integrity": "sha512-n8fOixwDD6b/ObinzTrp1ZKFzbgvKZvuz/TvejnLn1aQfC6r52XEx85FmuC+3HI+JM7coBRXUvNqEU2PHVrHpg==", + "dev": true, + "dependencies": { + "slice-ansi": "^3.0.0", + "string-width": "^4.2.0" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/cliui": { + "version": "8.0.1", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz", + "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==", + "dev": true, + "dependencies": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.1", + "wrap-ansi": "^7.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/clone-response": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/clone-response/-/clone-response-1.0.3.tgz", + "integrity": "sha512-ROoL94jJH2dUVML2Y/5PEDNaSHgeOdSDicUyS7izcF63G6sTc/FTjLub4b8Il9S8S0beOfYt0TaA5qvFK+w0wA==", + "dev": true, + "dependencies": { + "mimic-response": "^1.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/combined-stream": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", + "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", + "dev": true, + "dependencies": { + "delayed-stream": "~1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/commander": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-5.1.0.tgz", + "integrity": "sha512-P0CysNDQ7rtVw4QIQtm+MRxV66vKFSvlsQvGYXZWR3qFU0jlMKHZZZgw8e+8DSah4UDKMqnknRDQz+xuQXQ/Zg==", + "dev": true, + "engines": { + "node": ">= 6" + } + }, + "node_modules/compare-version": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/compare-version/-/compare-version-0.1.2.tgz", + "integrity": "sha512-pJDh5/4wrEnXX/VWRZvruAGHkzKdr46z11OlTPN+VrATlWWhSKewNCJ1futCO5C7eJB3nPMFZA1LeYtcFboZ2A==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", + "dev": true + }, + "node_modules/config-file-ts": { + "version": "0.2.4", + "resolved": "https://registry.npmjs.org/config-file-ts/-/config-file-ts-0.2.4.tgz", + "integrity": "sha512-cKSW0BfrSaAUnxpgvpXPLaaW/umg4bqg4k3GO1JqlRfpx+d5W0GDXznCMkWotJQek5Mmz1MJVChQnz3IVaeMZQ==", + "dev": true, + "dependencies": { + "glob": "^7.1.6", + "typescript": "^4.0.2" + } + }, + "node_modules/core-util-is": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", + "integrity": "sha512-3lqz5YjWTYnW6dlDa5TLaTCcShfar1e40rmcJVwCBJC6mWlFuj0eCHIElmG1g5kyuJ/GD+8Wn4FFCcz4gJPfaQ==", + "dev": true + }, + "node_modules/crc": { + "version": "3.8.0", + "resolved": "https://registry.npmjs.org/crc/-/crc-3.8.0.tgz", + "integrity": "sha512-iX3mfgcTMIq3ZKLIsVFAbv7+Mc10kxabAGQb8HvjA1o3T1PIYprbakQ65d3I+2HGHt6nSKkM9PYjgoJO2KcFBQ==", + "dev": true, + "dependencies": { + "buffer": "^5.1.0" + } + }, + "node_modules/cross-spawn": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", + "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", + "dev": true, + "dependencies": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/debug": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "dev": true, + "dependencies": { + "ms": "2.1.2" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/decompress-response": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/decompress-response/-/decompress-response-6.0.0.tgz", + "integrity": "sha512-aW35yZM6Bb/4oJlZncMH2LCoZtJXTRxES17vE3hoRiowU2kWHaJKFkSBDnDR+cm9J+9QhXmREyIfv0pji9ejCQ==", + "dev": true, + "dependencies": { + "mimic-response": "^3.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/decompress-response/node_modules/mimic-response": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-3.1.0.tgz", + "integrity": "sha512-z0yWI+4FDrrweS8Zmt4Ej5HdJmky15+L2e6Wgn3+iK5fWzb6T3fhNFq2+MeTRb064c6Wr4N/wv0DzQTjNzHNGQ==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/defer-to-connect": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/defer-to-connect/-/defer-to-connect-2.0.1.tgz", + "integrity": "sha512-4tvttepXG1VaYGrRibk5EwJd1t4udunSOVMdLSAL6mId1ix438oPwPZMALY41FCijukO1L0twNcGsdzS7dHgDg==", + "dev": true, + "engines": { + "node": ">=10" + } + }, + "node_modules/define-properties": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.2.0.tgz", + "integrity": "sha512-xvqAVKGfT1+UAvPwKTVw/njhdQ8ZhXK4lI0bCIuCMrp2up9nPnaDftrLtmpTazqd1o+UY4zgzU+avtMbDP+ldA==", + "dev": true, + "optional": true, + "dependencies": { + "has-property-descriptors": "^1.0.0", + "object-keys": "^1.1.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/delayed-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", + "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", + "dev": true, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/detect-node": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/detect-node/-/detect-node-2.1.0.tgz", + "integrity": "sha512-T0NIuQpnTvFDATNuHN5roPwSBG83rFsuO+MXXH9/3N1eFbn4wcPjttvjMLEPWJ0RGUYgQE7cGgS3tNxbqCGM7g==", + "dev": true, + "optional": true + }, + "node_modules/dir-compare": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/dir-compare/-/dir-compare-3.3.0.tgz", + "integrity": "sha512-J7/et3WlGUCxjdnD3HAAzQ6nsnc0WL6DD7WcwJb7c39iH1+AWfg+9OqzJNaI6PkBwBvm1mhZNL9iY/nRiZXlPg==", + "dev": true, + "dependencies": { + "buffer-equal": "^1.0.0", + "minimatch": "^3.0.4" + } + }, + "node_modules/dir-compare/node_modules/brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dev": true, + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/dir-compare/node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dev": true, + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/dmg-builder": { + "version": "24.6.3", + "resolved": "https://registry.npmjs.org/dmg-builder/-/dmg-builder-24.6.3.tgz", + "integrity": "sha512-O7KNT7OKqtV54fMYUpdlyTOCP5DoPuRMLqMTgxxV2PO8Hj/so6zOl5o8GTs8pdDkeAhJzCFOUNB3BDhgXbUbJg==", + "dev": true, + "dependencies": { + "app-builder-lib": "24.6.3", + "builder-util": "24.5.0", + "builder-util-runtime": "9.2.1", + "dmg-license": "^1.0.11", + "fs-extra": "^10.1.0", + "iconv-lite": "^0.6.2", + "js-yaml": "^4.1.0" + } + }, + "node_modules/dmg-builder/node_modules/fs-extra": { + "version": "10.1.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-10.1.0.tgz", + "integrity": "sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==", + "dev": true, + "dependencies": { + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/dmg-builder/node_modules/jsonfile": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", + "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==", + "dev": true, + "dependencies": { + "universalify": "^2.0.0" + }, + "optionalDependencies": { + "graceful-fs": "^4.1.6" + } + }, + "node_modules/dmg-builder/node_modules/universalify": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.0.tgz", + "integrity": "sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ==", + "dev": true, + "engines": { + "node": ">= 10.0.0" + } + }, + "node_modules/dmg-license": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/dmg-license/-/dmg-license-1.0.11.tgz", + "integrity": "sha512-ZdzmqwKmECOWJpqefloC5OJy1+WZBBse5+MR88z9g9Zn4VY+WYUkAyojmhzJckH5YbbZGcYIuGAkY5/Ys5OM2Q==", + "dev": true, + "os": [ + "linux" + ], + "dependencies": { + "@types/plist": "^3.0.1", + "@types/verror": "^1.10.3", + "ajv": "^6.10.0", + "crc": "^3.8.0", + "iconv-corefoundation": "^1.1.7", + "plist": "^3.0.4", + "smart-buffer": "^4.0.2", + "verror": "^1.10.0" + }, + "bin": { + "dmg-license": "bin/dmg-license.js" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/dotenv": { + "version": "9.0.2", + "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-9.0.2.tgz", + "integrity": "sha512-I9OvvrHp4pIARv4+x9iuewrWycX6CcZtoAu1XrzPxc5UygMJXJZYmBsynku8IkrJwgypE5DGNjDPmPRhDCptUg==", + "dev": true, + "engines": { + "node": ">=10" + } + }, + "node_modules/dotenv-expand": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/dotenv-expand/-/dotenv-expand-5.1.0.tgz", + "integrity": "sha512-YXQl1DSa4/PQyRfgrv6aoNjhasp/p4qs9FjJ4q4cQk+8m4r6k4ZSiEyytKG8f8W9gi8WsQtIObNmKd+tMzNTmA==", + "dev": true + }, + "node_modules/ejs": { + "version": "3.1.9", + "resolved": "https://registry.npmjs.org/ejs/-/ejs-3.1.9.tgz", + "integrity": "sha512-rC+QVNMJWv+MtPgkt0y+0rVEIdbtxVADApW9JXrUVlzHetgcyczP/E7DJmWJ4fJCZF2cPcBk0laWO9ZHMG3DmQ==", + "dev": true, + "dependencies": { + "jake": "^10.8.5" + }, + "bin": { + "ejs": "bin/cli.js" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/electron": { + "version": "26.1.0", + "resolved": "https://registry.npmjs.org/electron/-/electron-26.1.0.tgz", + "integrity": "sha512-qEh19H09Pysn3ibms5nZ0haIh5pFoOd7/5Ww7gzmAwDQOulRi8Sa2naeueOyIb1GKpf+6L4ix3iceYRAuA5r5Q==", + "dev": true, + "hasInstallScript": true, + "dependencies": { + "@electron/get": "^2.0.0", + "@types/node": "^18.11.18", + "extract-zip": "^2.0.1" + }, + "bin": { + "electron": "cli.js" + }, + "engines": { + "node": ">= 12.20.55" + } + }, + "node_modules/electron-builder": { + "version": "24.6.3", + "resolved": "https://registry.npmjs.org/electron-builder/-/electron-builder-24.6.3.tgz", + "integrity": "sha512-O6PqhRXwfxCNTXI4BlhELSeYYO6/tqlxRuy+4+xKBokQvwDDjDgZMMoSgAmanVSCuzjE7MZldI9XYrKFk+EQDw==", + "dev": true, + "dependencies": { + "app-builder-lib": "24.6.3", + "builder-util": "24.5.0", + "builder-util-runtime": "9.2.1", + "chalk": "^4.1.2", + "dmg-builder": "24.6.3", + "fs-extra": "^10.1.0", + "is-ci": "^3.0.0", + "lazy-val": "^1.0.5", + "read-config-file": "6.3.2", + "simple-update-notifier": "2.0.0", + "yargs": "^17.6.2" + }, + "bin": { + "electron-builder": "cli.js", + "install-app-deps": "install-app-deps.js" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/electron-builder/node_modules/fs-extra": { + "version": "10.1.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-10.1.0.tgz", + "integrity": "sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==", + "dev": true, + "dependencies": { + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/electron-builder/node_modules/jsonfile": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", + "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==", + "dev": true, + "dependencies": { + "universalify": "^2.0.0" + }, + "optionalDependencies": { + "graceful-fs": "^4.1.6" + } + }, + "node_modules/electron-builder/node_modules/universalify": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.0.tgz", + "integrity": "sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ==", + "dev": true, + "engines": { + "node": ">= 10.0.0" + } + }, + "node_modules/electron-publish": { + "version": "24.5.0", + "resolved": "https://registry.npmjs.org/electron-publish/-/electron-publish-24.5.0.tgz", + "integrity": "sha512-zwo70suH15L15B4ZWNDoEg27HIYoPsGJUF7xevLJLSI7JUPC8l2yLBdLGwqueJ5XkDL7ucYyRZzxJVR8ElV9BA==", + "dev": true, + "dependencies": { + "@types/fs-extra": "^9.0.11", + "builder-util": "24.5.0", + "builder-util-runtime": "9.2.1", + "chalk": "^4.1.2", + "fs-extra": "^10.1.0", + "lazy-val": "^1.0.5", + "mime": "^2.5.2" + } + }, + "node_modules/electron-publish/node_modules/fs-extra": { + "version": "10.1.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-10.1.0.tgz", + "integrity": "sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==", + "dev": true, + "dependencies": { + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/electron-publish/node_modules/jsonfile": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", + "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==", + "dev": true, + "dependencies": { + "universalify": "^2.0.0" + }, + "optionalDependencies": { + "graceful-fs": "^4.1.6" + } + }, + "node_modules/electron-publish/node_modules/universalify": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.0.tgz", + "integrity": "sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ==", + "dev": true, + "engines": { + "node": ">= 10.0.0" + } + }, + "node_modules/electron-updater": { + "version": "6.1.1", + "resolved": "https://registry.npmjs.org/electron-updater/-/electron-updater-6.1.1.tgz", + "integrity": "sha512-IBT3zJ4yO5UZMF2gOTC9HrlmG4OYSRtOiHKzNAShJvfuicdx6UaXoa6AvhcTxdx6zf/rJyFMRBISS9jhVwTfow==", + "dev": true, + "dependencies": { + "builder-util-runtime": "9.2.1", + "fs-extra": "^10.1.0", + "js-yaml": "^4.1.0", + "lazy-val": "^1.0.5", + "lodash.escaperegexp": "^4.1.2", + "lodash.isequal": "^4.5.0", + "semver": "^7.3.8", + "typed-emitter": "^2.1.0" + } + }, + "node_modules/electron-updater/node_modules/fs-extra": { + "version": "10.1.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-10.1.0.tgz", + "integrity": "sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==", + "dev": true, + "dependencies": { + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/electron-updater/node_modules/jsonfile": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", + "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==", + "dev": true, + "dependencies": { + "universalify": "^2.0.0" + }, + "optionalDependencies": { + "graceful-fs": "^4.1.6" + } + }, + "node_modules/electron-updater/node_modules/semver": { + "version": "7.5.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", + "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", + "dev": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/electron-updater/node_modules/universalify": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.0.tgz", + "integrity": "sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ==", + "dev": true, + "engines": { + "node": ">= 10.0.0" + } + }, + "node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "dev": true + }, + "node_modules/end-of-stream": { + "version": "1.4.4", + "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz", + "integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==", + "dev": true, + "dependencies": { + "once": "^1.4.0" + } + }, + "node_modules/env-paths": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/env-paths/-/env-paths-2.2.1.tgz", + "integrity": "sha512-+h1lkLKhZMTYjog1VEpJNG7NZJWcuc2DDk/qsqSTRRCOXiLjeQ1d1/udrUGhqMxUgAlwKNZ0cf2uqan5GLuS2A==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/es6-error": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/es6-error/-/es6-error-4.1.1.tgz", + "integrity": "sha512-Um/+FxMr9CISWh0bi5Zv0iOD+4cFh5qLeks1qhAopKVAJw3drgKbKySikp7wGhDL0HPeaja0P5ULZrxLkniUVg==", + "dev": true, + "optional": true + }, + "node_modules/escalade": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", + "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/escape-string-regexp": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", + "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", + "dev": true, + "optional": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/extract-zip": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extract-zip/-/extract-zip-2.0.1.tgz", + "integrity": "sha512-GDhU9ntwuKyGXdZBUgTIe+vXnWj0fppUEtMDL0+idd5Sta8TGpHssn/eusA9mrPr9qNDym6SxAYZjNvCn/9RBg==", + "dev": true, + "dependencies": { + "debug": "^4.1.1", + "get-stream": "^5.1.0", + "yauzl": "^2.10.0" + }, + "bin": { + "extract-zip": "cli.js" + }, + "engines": { + "node": ">= 10.17.0" + }, + "optionalDependencies": { + "@types/yauzl": "^2.9.1" + } + }, + "node_modules/extsprintf": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.4.1.tgz", + "integrity": "sha512-Wrk35e8ydCKDj/ArClo1VrPVmN8zph5V4AtHwIuHhvMXsKf73UT3BOD+azBIW+3wOJ4FhEH7zyaJCFvChjYvMA==", + "dev": true, + "engines": [ + "node >=0.6.0" + ] + }, + "node_modules/fast-deep-equal": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", + "dev": true + }, + "node_modules/fast-json-stable-stringify": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", + "dev": true + }, + "node_modules/fd-slicer": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/fd-slicer/-/fd-slicer-1.1.0.tgz", + "integrity": "sha512-cE1qsB/VwyQozZ+q1dGxR8LBYNZeofhEdUNGSMbQD3Gw2lAzX9Zb3uIU6Ebc/Fmyjo9AWWfnn0AUCHqtevs/8g==", + "dev": true, + "dependencies": { + "pend": "~1.2.0" + } + }, + "node_modules/filelist": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/filelist/-/filelist-1.0.4.tgz", + "integrity": "sha512-w1cEuf3S+DrLCQL7ET6kz+gmlJdbq9J7yXCSjK/OZCPA+qEN1WyF4ZAf0YYJa4/shHJra2t/d/r8SV4Ji+x+8Q==", + "dev": true, + "dependencies": { + "minimatch": "^5.0.1" + } + }, + "node_modules/form-data": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz", + "integrity": "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==", + "dev": true, + "dependencies": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.8", + "mime-types": "^2.1.12" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/fs-extra": { + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-8.1.0.tgz", + "integrity": "sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g==", + "dev": true, + "dependencies": { + "graceful-fs": "^4.2.0", + "jsonfile": "^4.0.0", + "universalify": "^0.1.0" + }, + "engines": { + "node": ">=6 <7 || >=8" + } + }, + "node_modules/fs-minipass": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/fs-minipass/-/fs-minipass-2.1.0.tgz", + "integrity": "sha512-V/JgOLFCS+R6Vcq0slCuaeWEdNC3ouDlJMNIsacH2VtALiu9mV4LPrHc5cDl8k5aw6J8jwgWWpiTo5RYhmIzvg==", + "dev": true, + "dependencies": { + "minipass": "^3.0.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/fs-minipass/node_modules/minipass": { + "version": "3.3.6", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz", + "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==", + "dev": true, + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/fs.realpath": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", + "dev": true + }, + "node_modules/function-bind": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", + "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==", + "dev": true, + "optional": true + }, + "node_modules/get-caller-file": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", + "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", + "dev": true, + "engines": { + "node": "6.* || 8.* || >= 10.*" + } + }, + "node_modules/get-intrinsic": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.1.tgz", + "integrity": "sha512-2DcsyfABl+gVHEfCOaTrWgyt+tb6MSEGmKq+kI5HwLbIYgjgmMcV8KQ41uaKz1xxUcn9tJtgFbQUEVcEbd0FYw==", + "dev": true, + "optional": true, + "dependencies": { + "function-bind": "^1.1.1", + "has": "^1.0.3", + "has-proto": "^1.0.1", + "has-symbols": "^1.0.3" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/get-stream": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.2.0.tgz", + "integrity": "sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==", + "dev": true, + "dependencies": { + "pump": "^3.0.0" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/glob": { + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "dev": true, + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/glob/node_modules/brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dev": true, + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/glob/node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dev": true, + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/global-agent": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/global-agent/-/global-agent-3.0.0.tgz", + "integrity": "sha512-PT6XReJ+D07JvGoxQMkT6qji/jVNfX/h364XHZOWeRzy64sSFr+xJ5OX7LI3b4MPQzdL4H8Y8M0xzPpsVMwA8Q==", + "dev": true, + "optional": true, + "dependencies": { + "boolean": "^3.0.1", + "es6-error": "^4.1.1", + "matcher": "^3.0.0", + "roarr": "^2.15.3", + "semver": "^7.3.2", + "serialize-error": "^7.0.1" + }, + "engines": { + "node": ">=10.0" + } + }, + "node_modules/global-agent/node_modules/semver": { + "version": "7.5.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", + "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", + "dev": true, + "optional": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/globalthis": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/globalthis/-/globalthis-1.0.3.tgz", + "integrity": "sha512-sFdI5LyBiNTHjRd7cGPWapiHWMOXKyuBNX/cWJ3NfzrZQVa8GI/8cofCl74AOVqq9W5kNmguTIzJ/1s2gyI9wA==", + "dev": true, + "optional": true, + "dependencies": { + "define-properties": "^1.1.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/got": { + "version": "11.8.6", + "resolved": "https://registry.npmjs.org/got/-/got-11.8.6.tgz", + "integrity": "sha512-6tfZ91bOr7bOXnK7PRDCGBLa1H4U080YHNaAQ2KsMGlLEzRbk44nsZF2E1IeRc3vtJHPVbKCYgdFbaGO2ljd8g==", + "dev": true, + "dependencies": { + "@sindresorhus/is": "^4.0.0", + "@szmarczak/http-timer": "^4.0.5", + "@types/cacheable-request": "^6.0.1", + "@types/responselike": "^1.0.0", + "cacheable-lookup": "^5.0.3", + "cacheable-request": "^7.0.2", + "decompress-response": "^6.0.0", + "http2-wrapper": "^1.0.0-beta.5.2", + "lowercase-keys": "^2.0.0", + "p-cancelable": "^2.0.0", + "responselike": "^2.0.0" + }, + "engines": { + "node": ">=10.19.0" + }, + "funding": { + "url": "https://github.com/sindresorhus/got?sponsor=1" + } + }, + "node_modules/graceful-fs": { + "version": "4.2.11", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", + "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", + "dev": true + }, + "node_modules/has": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", + "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", + "dev": true, + "optional": true, + "dependencies": { + "function-bind": "^1.1.1" + }, + "engines": { + "node": ">= 0.4.0" + } + }, + "node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/has-property-descriptors": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.0.tgz", + "integrity": "sha512-62DVLZGoiEBDHQyqG4w9xCuZ7eJEwNmJRWw2VY84Oedb7WFcA27fiEVe8oUQx9hAUJ4ekurquucTGwsyO1XGdQ==", + "dev": true, + "optional": true, + "dependencies": { + "get-intrinsic": "^1.1.1" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.0.1.tgz", + "integrity": "sha512-7qE+iP+O+bgF9clE5+UoBFzE65mlBiVj3tKCrlNQ0Ogwm0BjpT/gK4SlLYDMybDh5I3TCTKnPPa0oMG7JDYrhg==", + "dev": true, + "optional": true, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-symbols": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz", + "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==", + "dev": true, + "optional": true, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/hosted-git-info": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-4.1.0.tgz", + "integrity": "sha512-kyCuEOWjJqZuDbRHzL8V93NzQhwIB71oFWSyzVo+KPZI+pnQPPxucdkrOZvkLRnrf5URsQM+IJ09Dw29cRALIA==", + "dev": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/http-cache-semantics": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/http-cache-semantics/-/http-cache-semantics-4.1.1.tgz", + "integrity": "sha512-er295DKPVsV82j5kw1Gjt+ADA/XYHsajl82cGNQG2eyoPkvgUhX+nDIyelzhIWbbsXP39EHcI6l5tYs2FYqYXQ==", + "dev": true + }, + "node_modules/http-proxy-agent": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-5.0.0.tgz", + "integrity": "sha512-n2hY8YdoRE1i7r6M0w9DIw5GgZN0G25P8zLCRQ8rjXtTU3vsNFBI/vWK/UIeE6g5MUUz6avwAPXmL6Fy9D/90w==", + "dev": true, + "dependencies": { + "@tootallnate/once": "2", + "agent-base": "6", + "debug": "4" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/http2-wrapper": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/http2-wrapper/-/http2-wrapper-1.0.3.tgz", + "integrity": "sha512-V+23sDMr12Wnz7iTcDeJr3O6AIxlnvT/bmaAAAP/Xda35C90p9599p0F1eHR/N1KILWSoWVAiOMFjBBXaXSMxg==", + "dev": true, + "dependencies": { + "quick-lru": "^5.1.1", + "resolve-alpn": "^1.0.0" + }, + "engines": { + "node": ">=10.19.0" + } + }, + "node_modules/https-proxy-agent": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz", + "integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==", + "dev": true, + "dependencies": { + "agent-base": "6", + "debug": "4" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/iconv-corefoundation": { + "version": "1.1.7", + "resolved": "https://registry.npmjs.org/iconv-corefoundation/-/iconv-corefoundation-1.1.7.tgz", + "integrity": "sha512-T10qvkw0zz4wnm560lOEg0PovVqUXuOFhhHAkixw8/sycy7TJt7v/RrkEKEQnAw2viPSJu6iAkErxnzR0g8PpQ==", + "dev": true, + "os": [ + "linux" + ], + "dependencies": { + "cli-truncate": "^2.1.0", + "node-addon-api": "^1.6.3" + }, + "engines": { + "node": "^8.11.2 || >=10" + } + }, + "node_modules/iconv-lite": { + "version": "0.6.3", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz", + "integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==", + "dev": true, + "dependencies": { + "safer-buffer": ">= 2.1.2 < 3.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/ieee754": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz", + "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] + }, + "node_modules/inflight": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", + "dev": true, + "dependencies": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "node_modules/inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", + "dev": true + }, + "node_modules/is-ci": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/is-ci/-/is-ci-3.0.1.tgz", + "integrity": "sha512-ZYvCgrefwqoQ6yTyYUbQu64HsITZ3NfKX1lzaEYdkTDcfKzzCI/wthRRYKkdjHKFVgNiXKAKm65Zo1pk2as/QQ==", + "dev": true, + "dependencies": { + "ci-info": "^3.2.0" + }, + "bin": { + "is-ci": "bin.js" + } + }, + "node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/isbinaryfile": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/isbinaryfile/-/isbinaryfile-5.0.0.tgz", + "integrity": "sha512-UDdnyGvMajJUWCkib7Cei/dvyJrrvo4FIrsvSFWdPpXSUorzXrDJ0S+X5Q4ZlasfPjca4yqCNNsjbCeiy8FFeg==", + "dev": true, + "engines": { + "node": ">= 14.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/gjtorikian/" + } + }, + "node_modules/isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", + "dev": true + }, + "node_modules/jake": { + "version": "10.8.7", + "resolved": "https://registry.npmjs.org/jake/-/jake-10.8.7.tgz", + "integrity": "sha512-ZDi3aP+fG/LchyBzUM804VjddnwfSfsdeYkwt8NcbKRvo4rFkjhs456iLFn3k2ZUWvNe4i48WACDbza8fhq2+w==", + "dev": true, + "dependencies": { + "async": "^3.2.3", + "chalk": "^4.0.2", + "filelist": "^1.0.4", + "minimatch": "^3.1.2" + }, + "bin": { + "jake": "bin/cli.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/jake/node_modules/brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dev": true, + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/jake/node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dev": true, + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/js-yaml": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", + "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", + "dev": true, + "dependencies": { + "argparse": "^2.0.1" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "node_modules/json-buffer": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz", + "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==", + "dev": true + }, + "node_modules/json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "dev": true + }, + "node_modules/json-stringify-safe": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", + "integrity": "sha512-ZClg6AaYvamvYEE82d3Iyd3vSSIjQ+odgjaTzRuO3s7toCdFKczob2i0zCh7JE8kWn17yvAWhUVxvqGwUalsRA==", + "dev": true, + "optional": true + }, + "node_modules/json5": { + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", + "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", + "dev": true, + "bin": { + "json5": "lib/cli.js" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/jsonfile": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", + "integrity": "sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==", + "dev": true, + "optionalDependencies": { + "graceful-fs": "^4.1.6" + } + }, + "node_modules/keyv": { + "version": "4.5.3", + "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.3.tgz", + "integrity": "sha512-QCiSav9WaX1PgETJ+SpNnx2PRRapJ/oRSXM4VO5OGYGSjrxbKPVFVhB3l2OCbLCk329N8qyAtsJjSjvVBWzEug==", + "dev": true, + "dependencies": { + "json-buffer": "3.0.1" + } + }, + "node_modules/lazy-val": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/lazy-val/-/lazy-val-1.0.5.tgz", + "integrity": "sha512-0/BnGCCfyUMkBpeDgWihanIAF9JmZhHBgUhEqzvf+adhNGLoP6TaiI5oF8oyb3I45P+PcnrqihSf01M0l0G5+Q==", + "dev": true + }, + "node_modules/lodash": { + "version": "4.17.21", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", + "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==", + "dev": true + }, + "node_modules/lodash.escaperegexp": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/lodash.escaperegexp/-/lodash.escaperegexp-4.1.2.tgz", + "integrity": "sha512-TM9YBvyC84ZxE3rgfefxUWiQKLilstD6k7PTGt6wfbtXF8ixIJLOL3VYyV/z+ZiPLsVxAsKAFVwWlWeb2Y8Yyw==", + "dev": true + }, + "node_modules/lodash.isequal": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/lodash.isequal/-/lodash.isequal-4.5.0.tgz", + "integrity": "sha512-pDo3lu8Jhfjqls6GkMgpahsF9kCyayhgykjyLMNFTKWrpVdAQtYyB4muAMWozBB4ig/dtWAmsMxLEI8wuz+DYQ==", + "dev": true + }, + "node_modules/lowercase-keys": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-2.0.0.tgz", + "integrity": "sha512-tqNXrS78oMOE73NMxK4EMLQsQowWf8jKooH9g7xPavRT706R6bkQJ6DY2Te7QukaZsulxa30wQ7bk0pm4XiHmA==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dev": true, + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/matcher": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/matcher/-/matcher-3.0.0.tgz", + "integrity": "sha512-OkeDaAZ/bQCxeFAozM55PKcKU0yJMPGifLwV4Qgjitu+5MoAfSQN4lsLJeXZ1b8w0x+/Emda6MZgXS1jvsapng==", + "dev": true, + "optional": true, + "dependencies": { + "escape-string-regexp": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/mime": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/mime/-/mime-2.6.0.tgz", + "integrity": "sha512-USPkMeET31rOMiarsBNIHZKLGgvKc/LrjofAnBlOttf5ajRvqiRA8QsenbcooctK6d6Ts6aqZXBA+XbkKthiQg==", + "dev": true, + "bin": { + "mime": "cli.js" + }, + "engines": { + "node": ">=4.0.0" + } + }, + "node_modules/mime-db": { + "version": "1.52.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", + "dev": true, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mime-types": { + "version": "2.1.35", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", + "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", + "dev": true, + "dependencies": { + "mime-db": "1.52.0" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mimic-response": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-1.0.1.tgz", + "integrity": "sha512-j5EctnkH7amfV/q5Hgmoal1g2QHFJRraOtmx0JpIqkxhBhI/lJSl1nMpQ45hVarwNETOoWEimndZ4QK0RHxuxQ==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/minimatch": { + "version": "5.1.6", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.6.tgz", + "integrity": "sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g==", + "dev": true, + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/minimist": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", + "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==", + "dev": true, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/minipass": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-5.0.0.tgz", + "integrity": "sha512-3FnjYuehv9k6ovOEbyOswadCDPX1piCfhV8ncmYtHOjuPwylVWsghTLo7rabjC3Rx5xD4HDx8Wm1xnMF7S5qFQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/minizlib": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/minizlib/-/minizlib-2.1.2.tgz", + "integrity": "sha512-bAxsR8BVfj60DWXHE3u30oHzfl4G7khkSuPW+qvpd7jFRHm7dLxOjUk1EHACJ/hxLY8phGJ0YhYHZo7jil7Qdg==", + "dev": true, + "dependencies": { + "minipass": "^3.0.0", + "yallist": "^4.0.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/minizlib/node_modules/minipass": { + "version": "3.3.6", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz", + "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==", + "dev": true, + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/mkdirp": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz", + "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==", + "dev": true, + "bin": { + "mkdirp": "bin/cmd.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", + "dev": true + }, + "node_modules/node-addon-api": { + "version": "1.7.2", + "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-1.7.2.tgz", + "integrity": "sha512-ibPK3iA+vaY1eEjESkQkM0BbCqFOaZMiXRTtdB0u7b4djtY6JnsjvPdUHVMg6xQt3B8fpTTWHI9A+ADjM9frzg==", + "dev": true + }, + "node_modules/normalize-url": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/normalize-url/-/normalize-url-6.1.0.tgz", + "integrity": "sha512-DlL+XwOy3NxAQ8xuC0okPgK46iuVNAK01YN7RueYBqqFeGsBjV9XmCAzAdgt+667bCl5kPh9EqKKDwnaPG1I7A==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/object-keys": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", + "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==", + "dev": true, + "optional": true, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", + "dev": true, + "dependencies": { + "wrappy": "1" + } + }, + "node_modules/p-cancelable": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/p-cancelable/-/p-cancelable-2.1.1.tgz", + "integrity": "sha512-BZOr3nRQHOntUjTrH8+Lh54smKHoHyur8We1V8DSMVrl5A2malOOwuJRnKRDjSnkoeBh4at6BwEnb5I7Jl31wg==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/path-is-absolute": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/path-key": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/pend": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/pend/-/pend-1.2.0.tgz", + "integrity": "sha512-F3asv42UuXchdzt+xXqfW1OGlVBe+mxa2mqI0pg5yAHZPvFmY3Y6drSf/GQ1A86WgWEN9Kzh/WrgKa6iGcHXLg==", + "dev": true + }, + "node_modules/plist": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/plist/-/plist-3.1.0.tgz", + "integrity": "sha512-uysumyrvkUX0rX/dEVqt8gC3sTBzd4zoWfLeS29nb53imdaXVvLINYXTI2GNqzaMuvacNx4uJQ8+b3zXR0pkgQ==", + "dev": true, + "dependencies": { + "@xmldom/xmldom": "^0.8.8", + "base64-js": "^1.5.1", + "xmlbuilder": "^15.1.1" + }, + "engines": { + "node": ">=10.4.0" + } + }, + "node_modules/progress": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/progress/-/progress-2.0.3.tgz", + "integrity": "sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==", + "dev": true, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/pump": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz", + "integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==", + "dev": true, + "dependencies": { + "end-of-stream": "^1.1.0", + "once": "^1.3.1" + } + }, + "node_modules/punycode": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.0.tgz", + "integrity": "sha512-rRV+zQD8tVFys26lAGR9WUuS4iUAngJScM+ZRSKtvl5tKeZ2t5bvdNFdNHBW9FWR4guGHlgmsZ1G7BSm2wTbuA==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/quick-lru": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/quick-lru/-/quick-lru-5.1.1.tgz", + "integrity": "sha512-WuyALRjWPDGtt/wzJiadO5AXY+8hZ80hVpe6MyivgraREW751X3SbhRvG3eLKOYN+8VEvqLcf3wdnt44Z4S4SA==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/read-config-file": { + "version": "6.3.2", + "resolved": "https://registry.npmjs.org/read-config-file/-/read-config-file-6.3.2.tgz", + "integrity": "sha512-M80lpCjnE6Wt6zb98DoW8WHR09nzMSpu8XHtPkiTHrJ5Az9CybfeQhTJ8D7saeBHpGhLPIVyA8lcL6ZmdKwY6Q==", + "dev": true, + "dependencies": { + "config-file-ts": "^0.2.4", + "dotenv": "^9.0.2", + "dotenv-expand": "^5.1.0", + "js-yaml": "^4.1.0", + "json5": "^2.2.0", + "lazy-val": "^1.0.4" + }, + "engines": { + "node": ">=12.0.0" + } + }, + "node_modules/require-directory": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", + "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/resolve-alpn": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/resolve-alpn/-/resolve-alpn-1.2.1.tgz", + "integrity": "sha512-0a1F4l73/ZFZOakJnQ3FvkJ2+gSTQWz/r2KE5OdDY0TxPm5h4GkqkWWfM47T7HsbnOtcJVEF4epCVy6u7Q3K+g==", + "dev": true + }, + "node_modules/responselike": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/responselike/-/responselike-2.0.1.tgz", + "integrity": "sha512-4gl03wn3hj1HP3yzgdI7d3lCkF95F21Pz4BPGvKHinyQzALR5CapwC8yIi0Rh58DEMQ/SguC03wFj2k0M/mHhw==", + "dev": true, + "dependencies": { + "lowercase-keys": "^2.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/rimraf": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", + "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", + "dev": true, + "dependencies": { + "glob": "^7.1.3" + }, + "bin": { + "rimraf": "bin.js" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/roarr": { + "version": "2.15.4", + "resolved": "https://registry.npmjs.org/roarr/-/roarr-2.15.4.tgz", + "integrity": "sha512-CHhPh+UNHD2GTXNYhPWLnU8ONHdI+5DI+4EYIAOaiD63rHeYlZvyh8P+in5999TTSFgUYuKUAjzRI4mdh/p+2A==", + "dev": true, + "optional": true, + "dependencies": { + "boolean": "^3.0.1", + "detect-node": "^2.0.4", + "globalthis": "^1.0.1", + "json-stringify-safe": "^5.0.1", + "semver-compare": "^1.0.0", + "sprintf-js": "^1.1.2" + }, + "engines": { + "node": ">=8.0" + } + }, + "node_modules/rxjs": { + "version": "7.8.1", + "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.8.1.tgz", + "integrity": "sha512-AA3TVj+0A2iuIoQkWEK/tqFjBq2j+6PO6Y0zJcvzLAFhEFIO3HL0vls9hWLncZbAAbK0mar7oZ4V079I/qPMxg==", + "dev": true, + "optional": true, + "dependencies": { + "tslib": "^2.1.0" + } + }, + "node_modules/safer-buffer": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", + "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", + "dev": true + }, + "node_modules/sanitize-filename": { + "version": "1.6.3", + "resolved": "https://registry.npmjs.org/sanitize-filename/-/sanitize-filename-1.6.3.tgz", + "integrity": "sha512-y/52Mcy7aw3gRm7IrcGDFx/bCk4AhRh2eI9luHOQM86nZsqwiRkkq2GekHXBBD+SmPidc8i2PqtYZl+pWJ8Oeg==", + "dev": true, + "dependencies": { + "truncate-utf8-bytes": "^1.0.0" + } + }, + "node_modules/sax": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/sax/-/sax-1.2.4.tgz", + "integrity": "sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw==", + "dev": true + }, + "node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "dev": true, + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/semver-compare": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/semver-compare/-/semver-compare-1.0.0.tgz", + "integrity": "sha512-YM3/ITh2MJ5MtzaM429anh+x2jiLVjqILF4m4oyQB18W7Ggea7BfqdH/wGMK7dDiMghv/6WG7znWMwUDzJiXow==", + "dev": true, + "optional": true + }, + "node_modules/serialize-error": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/serialize-error/-/serialize-error-7.0.1.tgz", + "integrity": "sha512-8I8TjW5KMOKsZQTvoxjuSIa7foAwPWGOts+6o7sgjz41/qMD9VQHEDxi6PBvK2l0MXUmqZyNpUK+T2tQaaElvw==", + "dev": true, + "optional": true, + "dependencies": { + "type-fest": "^0.13.1" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/shebang-command": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "dev": true, + "dependencies": { + "shebang-regex": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/shebang-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/simple-update-notifier": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/simple-update-notifier/-/simple-update-notifier-2.0.0.tgz", + "integrity": "sha512-a2B9Y0KlNXl9u/vsW6sTIu9vGEpfKu2wRV6l1H3XEas/0gUIzGzBoP/IouTcUQbm9JWZLH3COxyn03TYlFax6w==", + "dev": true, + "dependencies": { + "semver": "^7.5.3" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/simple-update-notifier/node_modules/semver": { + "version": "7.5.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", + "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", + "dev": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/slice-ansi": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-3.0.0.tgz", + "integrity": "sha512-pSyv7bSTC7ig9Dcgbw9AuRNUb5k5V6oDudjZoMBSr13qpLBG7tB+zgCkARjq7xIUgdz5P1Qe8u+rSGdouOOIyQ==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.0.0", + "astral-regex": "^2.0.0", + "is-fullwidth-code-point": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/smart-buffer": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/smart-buffer/-/smart-buffer-4.2.0.tgz", + "integrity": "sha512-94hK0Hh8rPqQl2xXc3HsaBoOXKV20MToPkcXvwbISWLEs+64sBq5kFgn2kJDHb1Pry9yrP0dxrCI9RRci7RXKg==", + "dev": true, + "engines": { + "node": ">= 6.0.0", + "npm": ">= 3.0.0" + } + }, + "node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/source-map-support": { + "version": "0.5.21", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", + "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", + "dev": true, + "dependencies": { + "buffer-from": "^1.0.0", + "source-map": "^0.6.0" + } + }, + "node_modules/sprintf-js": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.1.2.tgz", + "integrity": "sha512-VE0SOVEHCk7Qc8ulkWw3ntAzXuqf7S2lvwQaDLRnUeIEaKNQJzV6BwmLKhOqT61aGhfUMrXeaBk+oDGCzvhcug==", + "dev": true, + "optional": true + }, + "node_modules/stat-mode": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/stat-mode/-/stat-mode-1.0.0.tgz", + "integrity": "sha512-jH9EhtKIjuXZ2cWxmXS8ZP80XyC3iasQxMDV8jzhNJpfDb7VbQLVW4Wvsxz9QZvzV+G4YoSfBUVKDOyxLzi/sg==", + "dev": true, + "engines": { + "node": ">= 6" + } + }, + "node_modules/string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dev": true, + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dev": true, + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/sumchecker": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/sumchecker/-/sumchecker-3.0.1.tgz", + "integrity": "sha512-MvjXzkz/BOfyVDkG0oFOtBxHX2u3gKbMHIF/dXblZsgD3BWOFLmHovIpZY7BykJdAjcqRCBi1WYBNdEC9yI7vg==", + "dev": true, + "dependencies": { + "debug": "^4.1.0" + }, + "engines": { + "node": ">= 8.0" + } + }, + "node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/tar": { + "version": "6.1.15", + "resolved": "https://registry.npmjs.org/tar/-/tar-6.1.15.tgz", + "integrity": "sha512-/zKt9UyngnxIT/EAGYuxaMYgOIJiP81ab9ZfkILq4oNLPFX50qyYmu7jRj9qeXoxmJHjGlbH0+cm2uy1WCs10A==", + "dev": true, + "dependencies": { + "chownr": "^2.0.0", + "fs-minipass": "^2.0.0", + "minipass": "^5.0.0", + "minizlib": "^2.1.1", + "mkdirp": "^1.0.3", + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/temp-file": { + "version": "3.4.0", + "resolved": "https://registry.npmjs.org/temp-file/-/temp-file-3.4.0.tgz", + "integrity": "sha512-C5tjlC/HCtVUOi3KWVokd4vHVViOmGjtLwIh4MuzPo/nMYTV/p1urt3RnMz2IWXDdKEGJH3k5+KPxtqRsUYGtg==", + "dev": true, + "dependencies": { + "async-exit-hook": "^2.0.1", + "fs-extra": "^10.0.0" + } + }, + "node_modules/temp-file/node_modules/fs-extra": { + "version": "10.1.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-10.1.0.tgz", + "integrity": "sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==", + "dev": true, + "dependencies": { + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/temp-file/node_modules/jsonfile": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", + "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==", + "dev": true, + "dependencies": { + "universalify": "^2.0.0" + }, + "optionalDependencies": { + "graceful-fs": "^4.1.6" + } + }, + "node_modules/temp-file/node_modules/universalify": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.0.tgz", + "integrity": "sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ==", + "dev": true, + "engines": { + "node": ">= 10.0.0" + } + }, + "node_modules/tmp": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.2.1.tgz", + "integrity": "sha512-76SUhtfqR2Ijn+xllcI5P1oyannHNHByD80W1q447gU3mp9G9PSpGdWmjUOHRDPiHYacIk66W7ubDTuPF3BEtQ==", + "dev": true, + "dependencies": { + "rimraf": "^3.0.0" + }, + "engines": { + "node": ">=8.17.0" + } + }, + "node_modules/tmp-promise": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/tmp-promise/-/tmp-promise-3.0.3.tgz", + "integrity": "sha512-RwM7MoPojPxsOBYnyd2hy0bxtIlVrihNs9pj5SUvY8Zz1sQcQG2tG1hSr8PDxfgEB8RNKDhqbIlroIarSNDNsQ==", + "dev": true, + "dependencies": { + "tmp": "^0.2.0" + } + }, + "node_modules/truncate-utf8-bytes": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/truncate-utf8-bytes/-/truncate-utf8-bytes-1.0.2.tgz", + "integrity": "sha512-95Pu1QXQvruGEhv62XCMO3Mm90GscOCClvrIUwCM0PYOXK3kaF3l3sIHxx71ThJfcbM2O5Au6SO3AWCSEfW4mQ==", + "dev": true, + "dependencies": { + "utf8-byte-length": "^1.0.1" + } + }, + "node_modules/tslib": { + "version": "2.6.2", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.2.tgz", + "integrity": "sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==", + "dev": true, + "optional": true + }, + "node_modules/type-fest": { + "version": "0.13.1", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.13.1.tgz", + "integrity": "sha512-34R7HTnG0XIJcBSn5XhDd7nNFPRcXYRZrBB2O2jdKqYODldSzBAqzsWoZYYvduky73toYS/ESqxPvkDf/F0XMg==", + "dev": true, + "optional": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/typed-emitter": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/typed-emitter/-/typed-emitter-2.1.0.tgz", + "integrity": "sha512-g/KzbYKbH5C2vPkaXGu8DJlHrGKHLsM25Zg9WuC9pMGfuvT+X25tZQWo5fK1BjBm8+UrVE9LDCvaY0CQk+fXDA==", + "dev": true, + "optionalDependencies": { + "rxjs": "*" + } + }, + "node_modules/typescript": { + "version": "4.9.5", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.9.5.tgz", + "integrity": "sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==", + "dev": true, + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=4.2.0" + } + }, + "node_modules/universalify": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", + "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==", + "dev": true, + "engines": { + "node": ">= 4.0.0" + } + }, + "node_modules/uri-js": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", + "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", + "dev": true, + "dependencies": { + "punycode": "^2.1.0" + } + }, + "node_modules/utf8-byte-length": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/utf8-byte-length/-/utf8-byte-length-1.0.4.tgz", + "integrity": "sha512-4+wkEYLBbWxqTahEsWrhxepcoVOJ+1z5PGIjPZxRkytcdSUaNjIjBM7Xn8E+pdSuV7SzvWovBFA54FO0JSoqhA==", + "dev": true + }, + "node_modules/verror": { + "version": "1.10.1", + "resolved": "https://registry.npmjs.org/verror/-/verror-1.10.1.tgz", + "integrity": "sha512-veufcmxri4e3XSrT0xwfUR7kguIkaxBeosDg00yDWhk49wdwkSUrvvsm7nc75e1PUyvIeZj6nS8VQRYz2/S4Xg==", + "dev": true, + "dependencies": { + "assert-plus": "^1.0.0", + "core-util-is": "1.0.2", + "extsprintf": "^1.2.0" + }, + "engines": { + "node": ">=0.6.0" + } + }, + "node_modules/which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "dev": true, + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/wrap-ansi": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", + "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } + }, + "node_modules/wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", + "dev": true + }, + "node_modules/xmlbuilder": { + "version": "15.1.1", + "resolved": "https://registry.npmjs.org/xmlbuilder/-/xmlbuilder-15.1.1.tgz", + "integrity": "sha512-yMqGBqtXyeN1e3TGYvgNgDVZ3j84W4cwkOXQswghol6APgZWaff9lnbvN7MHYJOiXsvGPXtjTYJEiC9J2wv9Eg==", + "dev": true, + "engines": { + "node": ">=8.0" + } + }, + "node_modules/y18n": { + "version": "5.0.8", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", + "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", + "dev": true, + "engines": { + "node": ">=10" + } + }, + "node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true + }, + "node_modules/yargs": { + "version": "17.7.2", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz", + "integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==", + "dev": true, + "dependencies": { + "cliui": "^8.0.1", + "escalade": "^3.1.1", + "get-caller-file": "^2.0.5", + "require-directory": "^2.1.1", + "string-width": "^4.2.3", + "y18n": "^5.0.5", + "yargs-parser": "^21.1.1" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/yargs-parser": { + "version": "21.1.1", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz", + "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", + "dev": true, + "engines": { + "node": ">=12" + } + }, + "node_modules/yauzl": { + "version": "2.10.0", + "resolved": "https://registry.npmjs.org/yauzl/-/yauzl-2.10.0.tgz", + "integrity": "sha512-p4a9I6X6nu6IhoGmBqAcbJy1mlC4j27vEPZX9F4L4/vZT3Lyq1VkFHw/V/PUcB9Buo+DG3iHkT0x3Qya58zc3g==", + "dev": true, + "dependencies": { + "buffer-crc32": "~0.2.3", + "fd-slicer": "~1.1.0" + } + } + } +} diff --git a/examples/desktop/electron/package.json b/examples/desktop/electron/package.json new file mode 100644 index 000000000..907ca2834 --- /dev/null +++ b/examples/desktop/electron/package.json @@ -0,0 +1,47 @@ +{ + "name": "casper", + "version": "1.0.0", + "description": "Casper", + "main": "index.js", + "scripts": { + "start": "electron .", + "build": "electron-builder --win --linux", + "test": "echo \"Error: no test specified\" && exit 1" + }, + "author": "", + "license": "ISC", + "devDependencies": { + "electron": "^26.1.0", + "electron-builder": "^24.6.3", + "electron-updater": "^6.1.1" + }, + "build": { + "appId": "com.example.myapp", + "productName": "Casper", + "directories": { + "output": "release" + }, + "win": { + "target": "nsis", + "icon": "favicon.png" + }, + "linux": { + "category": "Network", + "icon": "favicon.png" + }, + "mac": { + "category": "Network", + "icon": "favicon.png" + }, + "files": [ + "index.js", + "favicon.png" + ], + "extraFiles": [ + { + "from": "./../../frontend/angular/dist/casper", + "to": "frontend/angular/dist/casper" + } + ] + } +} \ No newline at end of file diff --git a/examples/desktop/electron/release/Casper Setup 1.0.0.exe b/examples/desktop/electron/release/Casper Setup 1.0.0.exe new file mode 100755 index 000000000..197d3a479 Binary files /dev/null and b/examples/desktop/electron/release/Casper Setup 1.0.0.exe differ diff --git a/examples/desktop/electron/release/Casper Setup 1.0.0.exe.blockmap b/examples/desktop/electron/release/Casper Setup 1.0.0.exe.blockmap new file mode 100644 index 000000000..0ee1f2d86 Binary files /dev/null and b/examples/desktop/electron/release/Casper Setup 1.0.0.exe.blockmap differ diff --git a/examples/desktop/electron/release/Casper-1.0.0.AppImage b/examples/desktop/electron/release/Casper-1.0.0.AppImage new file mode 100755 index 000000000..fa876689d Binary files /dev/null and b/examples/desktop/electron/release/Casper-1.0.0.AppImage differ diff --git a/examples/desktop/electron/release/builder-debug.yml b/examples/desktop/electron/release/builder-debug.yml new file mode 100644 index 000000000..31b9bee2d --- /dev/null +++ b/examples/desktop/electron/release/builder-debug.yml @@ -0,0 +1,238 @@ +x64: + firstOrDefaultFilePatterns: + - '!**/node_modules' + - '!build{,/**/*}' + - '!release{,/**/*}' + - index.js + - favicon.png + - package.json + - '!**/*.{iml,hprof,orig,pyc,pyo,rbc,swp,csproj,sln,suo,xproj,cc,d.ts,mk,a,o,forge-meta,pdb}' + - '!**/._*' + - '!**/electron-builder.{yaml,yml,json,json5,toml,ts}' + - '!**/{.git,.hg,.svn,CVS,RCS,SCCS,__pycache__,.DS_Store,thumbs.db,.gitignore,.gitkeep,.gitattributes,.npmignore,.idea,.vs,.flowconfig,.jshintrc,.eslintrc,.circleci,.yarn-integrity,.yarn-metadata.json,yarn-error.log,yarn.lock,package-lock.json,npm-debug.log,appveyor.yml,.travis.yml,circle.yml,.nyc_output,.husky,.github}' + - '!.yarn{,/**/*}' + - '!.editorconfig' + - '!.yarnrc.yml' + - - '!**/node_modules' + - '!build{,/**/*}' + - '!release{,/**/*}' + - index.js + - favicon.png + - package.json + - '!**/*.{iml,hprof,orig,pyc,pyo,rbc,swp,csproj,sln,suo,xproj,cc,d.ts,mk,a,o,forge-meta,pdb}' + - '!**/._*' + - '!**/electron-builder.{yaml,yml,json,json5,toml,ts}' + - '!**/{.git,.hg,.svn,CVS,RCS,SCCS,__pycache__,.DS_Store,thumbs.db,.gitignore,.gitkeep,.gitattributes,.npmignore,.idea,.vs,.flowconfig,.jshintrc,.eslintrc,.circleci,.yarn-integrity,.yarn-metadata.json,yarn-error.log,yarn.lock,package-lock.json,npm-debug.log,appveyor.yml,.travis.yml,circle.yml,.nyc_output,.husky,.github}' + - '!.yarn{,/**/*}' + - '!.editorconfig' + - '!.yarnrc.yml' + nodeModuleFilePatterns: + - '**/*' + - index.js + - favicon.png + - - '**/*' + - index.js + - favicon.png +nsis: + script: |- + !include "/media/WINKING/opt2/casper/rustSDK/examples/desktop/electron/node_modules/app-builder-lib/templates/nsis/include/StdUtils.nsh" + !addincludedir "/media/WINKING/opt2/casper/rustSDK/examples/desktop/electron/node_modules/app-builder-lib/templates/nsis/include" + !macro _isUpdated _a _b _t _f + ${StdUtils.TestParameter} $R9 "updated" + StrCmp "$R9" "true" `${_t}` `${_f}` + !macroend + !define isUpdated `"" isUpdated ""` + + !macro _isForceRun _a _b _t _f + ${StdUtils.TestParameter} $R9 "force-run" + StrCmp "$R9" "true" `${_t}` `${_f}` + !macroend + !define isForceRun `"" isForceRun ""` + + !macro _isKeepShortcuts _a _b _t _f + ${StdUtils.TestParameter} $R9 "keep-shortcuts" + StrCmp "$R9" "true" `${_t}` `${_f}` + !macroend + !define isKeepShortcuts `"" isKeepShortcuts ""` + + !macro _isNoDesktopShortcut _a _b _t _f + ${StdUtils.TestParameter} $R9 "no-desktop-shortcut" + StrCmp "$R9" "true" `${_t}` `${_f}` + !macroend + !define isNoDesktopShortcut `"" isNoDesktopShortcut ""` + + !macro _isDeleteAppData _a _b _t _f + ${StdUtils.TestParameter} $R9 "delete-app-data" + StrCmp "$R9" "true" `${_t}` `${_f}` + !macroend + !define isDeleteAppData `"" isDeleteAppData ""` + + !macro _isForAllUsers _a _b _t _f + ${StdUtils.TestParameter} $R9 "allusers" + StrCmp "$R9" "true" `${_t}` `${_f}` + !macroend + !define isForAllUsers `"" isForAllUsers ""` + + !macro _isForCurrentUser _a _b _t _f + ${StdUtils.TestParameter} $R9 "currentuser" + StrCmp "$R9" "true" `${_t}` `${_f}` + !macroend + !define isForCurrentUser `"" isForCurrentUser ""` + + !macro addLangs + !insertmacro MUI_LANGUAGE "English" + !insertmacro MUI_LANGUAGE "German" + !insertmacro MUI_LANGUAGE "French" + !insertmacro MUI_LANGUAGE "SpanishInternational" + !insertmacro MUI_LANGUAGE "SimpChinese" + !insertmacro MUI_LANGUAGE "TradChinese" + !insertmacro MUI_LANGUAGE "Japanese" + !insertmacro MUI_LANGUAGE "Korean" + !insertmacro MUI_LANGUAGE "Italian" + !insertmacro MUI_LANGUAGE "Dutch" + !insertmacro MUI_LANGUAGE "Danish" + !insertmacro MUI_LANGUAGE "Swedish" + !insertmacro MUI_LANGUAGE "Norwegian" + !insertmacro MUI_LANGUAGE "Finnish" + !insertmacro MUI_LANGUAGE "Russian" + !insertmacro MUI_LANGUAGE "Portuguese" + !insertmacro MUI_LANGUAGE "PortugueseBR" + !insertmacro MUI_LANGUAGE "Polish" + !insertmacro MUI_LANGUAGE "Ukrainian" + !insertmacro MUI_LANGUAGE "Czech" + !insertmacro MUI_LANGUAGE "Slovak" + !insertmacro MUI_LANGUAGE "Hungarian" + !insertmacro MUI_LANGUAGE "Arabic" + !insertmacro MUI_LANGUAGE "Turkish" + !insertmacro MUI_LANGUAGE "Thai" + !insertmacro MUI_LANGUAGE "Vietnamese" + !macroend + + !include "/tmp/t-k21Uo2/0-messages.nsh" + !addplugindir /x86-unicode "/home/greg/.cache/electron-builder/nsis/nsis-resources-3.4.1/plugins/x86-unicode" + + Var newStartMenuLink + Var oldStartMenuLink + Var newDesktopLink + Var oldDesktopLink + Var oldShortcutName + Var oldMenuDirectory + + !include "common.nsh" + !include "MUI2.nsh" + !include "multiUser.nsh" + !include "allowOnlyOneInstallerInstance.nsh" + + !ifdef INSTALL_MODE_PER_ALL_USERS + !ifdef BUILD_UNINSTALLER + RequestExecutionLevel user + !else + RequestExecutionLevel admin + !endif + !else + RequestExecutionLevel user + !endif + + !ifdef BUILD_UNINSTALLER + SilentInstall silent + !else + Var appExe + Var launchLink + !endif + + !ifdef ONE_CLICK + !include "oneClick.nsh" + !else + !include "assistedInstaller.nsh" + !endif + + !insertmacro addLangs + + !ifmacrodef customHeader + !insertmacro customHeader + !endif + + Function .onInit + Call setInstallSectionSpaceRequired + + SetOutPath $INSTDIR + ${LogSet} on + + !ifmacrodef preInit + !insertmacro preInit + !endif + + !ifdef DISPLAY_LANG_SELECTOR + !insertmacro MUI_LANGDLL_DISPLAY + !endif + + !ifdef BUILD_UNINSTALLER + WriteUninstaller "${UNINSTALLER_OUT_FILE}" + !insertmacro quitSuccess + !else + !insertmacro check64BitAndSetRegView + + !ifdef ONE_CLICK + !insertmacro ALLOW_ONLY_ONE_INSTALLER_INSTANCE + !else + ${IfNot} ${UAC_IsInnerInstance} + !insertmacro ALLOW_ONLY_ONE_INSTALLER_INSTANCE + ${EndIf} + !endif + + !insertmacro initMultiUser + + !ifmacrodef customInit + !insertmacro customInit + !endif + + !ifmacrodef addLicenseFiles + InitPluginsDir + !insertmacro addLicenseFiles + !endif + !endif + FunctionEnd + + !ifndef BUILD_UNINSTALLER + !include "installUtil.nsh" + !endif + + Section "install" INSTALL_SECTION_ID + !ifndef BUILD_UNINSTALLER + # If we're running a silent upgrade of a per-machine installation, elevate so extracting the new app will succeed. + # For a non-silent install, the elevation will be triggered when the install mode is selected in the UI, + # but that won't be executed when silent. + !ifndef INSTALL_MODE_PER_ALL_USERS + !ifndef ONE_CLICK + ${if} $hasPerMachineInstallation == "1" # set in onInit by initMultiUser + ${andIf} ${Silent} + ${ifNot} ${UAC_IsAdmin} + ShowWindow $HWNDPARENT ${SW_HIDE} + !insertmacro UAC_RunElevated + ${Switch} $0 + ${Case} 0 + ${Break} + ${Case} 1223 ;user aborted + ${Break} + ${Default} + MessageBox mb_IconStop|mb_TopMost|mb_SetForeground "Unable to elevate, error $0" + ${Break} + ${EndSwitch} + Quit + ${else} + !insertmacro setInstallModePerAllUsers + ${endIf} + ${endIf} + !endif + !endif + !include "installSection.nsh" + !endif + SectionEnd + + Function setInstallSectionSpaceRequired + !insertmacro setSpaceRequired ${INSTALL_SECTION_ID} + FunctionEnd + + !ifdef BUILD_UNINSTALLER + !include "uninstaller.nsh" + !endif diff --git a/examples/desktop/electron/release/builder-effective-config.yaml b/examples/desktop/electron/release/builder-effective-config.yaml new file mode 100644 index 000000000..3477cfc84 --- /dev/null +++ b/examples/desktop/electron/release/builder-effective-config.yaml @@ -0,0 +1,22 @@ +directories: + output: release + buildResources: build +appId: com.example.myapp +productName: Casper +win: + target: nsis + icon: favicon.png +linux: + category: Network + icon: favicon.png +mac: + category: Network + icon: favicon.png +files: + - filter: + - index.js + - favicon.png +extraFiles: + - from: ./../../frontend/angular/dist/casper + to: frontend/angular/dist/casper +electronVersion: 26.1.0 diff --git a/examples/desktop/electron/release/casper_1.0.0_amd64.snap b/examples/desktop/electron/release/casper_1.0.0_amd64.snap new file mode 100644 index 000000000..507d431d8 Binary files /dev/null and b/examples/desktop/electron/release/casper_1.0.0_amd64.snap differ diff --git a/examples/desktop/node/.gitignore b/examples/desktop/node/.gitignore new file mode 100644 index 000000000..25fbf5a1c --- /dev/null +++ b/examples/desktop/node/.gitignore @@ -0,0 +1,2 @@ +node_modules/ +coverage/ diff --git a/examples/desktop/node/index.js b/examples/desktop/node/index.js new file mode 100644 index 000000000..e974a0375 --- /dev/null +++ b/examples/desktop/node/index.js @@ -0,0 +1,367 @@ +"use strict"; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +var __generator = (this && this.__generator) || function (thisArg, body) { + var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; + return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; + function verb(n) { return function (v) { return step([n, v]); }; } + function step(op) { + if (f) throw new TypeError("Generator is already executing."); + while (g && (g = 0, op[0] && (_ = 0)), _) try { + if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; + if (y = 0, t) op = [op[0] & 2, t.value]; + switch (op[0]) { + case 0: case 1: t = op; break; + case 4: _.label++; return { value: op[1], done: false }; + case 5: _.label++; y = op[1]; op = [0]; continue; + case 7: op = _.ops.pop(); _.trys.pop(); continue; + default: + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } + if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } + if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } + if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } + if (t[2]) _.ops.pop(); + _.trys.pop(); continue; + } + op = body.call(thisArg, _); + } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } + if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; + } +}; +Object.defineProperty(exports, "__esModule", { value: true }); +var casper_sdk_1 = require("casper-sdk"); +var fs = require('fs').promises; +var http = require('http'); +var node_address = 'https://rpc.integration.casperlabs.io'; +var sdk = new casper_sdk_1.SDK(node_address); +var server = http.createServer(function (req, res) { return __awaiter(void 0, void 0, void 0, function () { + var peers_object, peers_as_json; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: + res.writeHead(200, { 'Content-Type': 'text/plain' }); + return [4 /*yield*/, sdk.get_peers()]; + case 1: + peers_object = _a.sent(); + console.log(peers_object.peers); + peers_as_json = peers_object.toJson(); + console.log(peers_as_json); + res.end(JSON.stringify(peers_as_json)); + return [2 /*return*/]; + } + }); +}); }); +var PORT = process.env.PORT || 3000; +server.listen(PORT, function () { + console.log("Server is running on port ".concat(PORT)); +}); +var example1 = function () { return __awaiter(void 0, void 0, void 0, function () { + var deploy_hash_as_string, finalized_approvals, get_deploy_options, deploy_result, deploy, timestamp, header; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: + deploy_hash_as_string = 'a8778b2e4bd1ad02c168329a1f6f3674513f4d350da1b5f078e058a3422ad0b9'; + finalized_approvals = true; + get_deploy_options = sdk.get_deploy_options({ + deploy_hash_as_string: deploy_hash_as_string, + finalized_approvals: finalized_approvals, + }); + return [4 /*yield*/, sdk.get_deploy(get_deploy_options)]; + case 1: + deploy_result = _a.sent(); + deploy = deploy_result.deploy; + timestamp = deploy.timestamp(); + header = deploy.toJson().header; + console.log(timestamp, header); + return [2 /*return*/]; + } + }); +}); }; +var example2 = function () { return __awaiter(void 0, void 0, void 0, function () { + var get_auction_info, auction_state, state_root_hash, block_height; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, sdk.get_auction_info()]; + case 1: + get_auction_info = _a.sent(); + auction_state = get_auction_info.auction_state; + state_root_hash = auction_state.state_root_hash.toString(); + block_height = auction_state.block_height.toString(); + console.log(state_root_hash, block_height); + return [2 /*return*/]; + } + }); +}); }; +var example3 = function () { return __awaiter(void 0, void 0, void 0, function () { + var get_peers, peers; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, sdk.get_peers()]; + case 1: + get_peers = _a.sent(); + peers = get_peers.peers; + peers.forEach(function (peer) { + console.log(peer); + }); + return [2 /*return*/]; + } + }); +}); }; +var example4 = function () { return __awaiter(void 0, void 0, void 0, function () { + var get_block, block, block_hash; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, sdk.get_block()]; + case 1: + get_block = _a.sent(); + block = get_block.block; + block_hash = block.hash; + console.log(block_hash); + return [2 /*return*/]; + } + }); +}); }; +var example5 = function () { return __awaiter(void 0, void 0, void 0, function () { + var chain_name, public_key, private_key, timestamp, ttl, payment_amount, transfer_amount, target_account, deploy_params, payment_params, transfer_deploy, transfer_deploy_as_json; + return __generator(this, function (_a) { + chain_name = 'casper-net-1'; + public_key = '0169d8d607f3ba04c578140398ceb1bd5296c653f965256bd7097982b9026c5129'; + private_key = undefined; + timestamp = (0, casper_sdk_1.getTimestamp)(); + ttl = '1h'; + payment_amount = '100000000'; + transfer_amount = '2500000000'; + target_account = '0187adb3e0f60a983ecc2ddb48d32b3deaa09388ad3bc41e14aeb19959ecc60b54'; + deploy_params = new casper_sdk_1.DeployStrParams(chain_name, public_key, private_key, timestamp, ttl); + payment_params = new casper_sdk_1.PaymentStrParams(payment_amount); + transfer_deploy = sdk.make_transfer(transfer_amount, target_account, undefined, // transfer_id + deploy_params, payment_params); + transfer_deploy_as_json = transfer_deploy.toJson(); + console.log(transfer_deploy_as_json); + return [2 /*return*/]; + }); +}); }; +var example6 = function () { return __awaiter(void 0, void 0, void 0, function () { + var node_address, sdk, chain_name, public_key, private_key, timestamp, ttl, payment_amount, transfer_amount, target_account, deploy_params, payment_params, transfer_result, transfer_result_as_json; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: + node_address = 'http://127.0.0.1:11101'; + sdk = new casper_sdk_1.SDK(node_address); + chain_name = 'casper-net-1'; + public_key = '0169d8d607f3ba04c578140398ceb1bd5296c653f965256bd7097982b9026c5129'; + private_key = "-----BEGIN PRIVATE KEY-----\n\n-----END PRIVATE KEY-----"; + timestamp = (0, casper_sdk_1.getTimestamp)(); + ttl = '1h'; + payment_amount = '100000000'; + transfer_amount = '2500000000'; + target_account = '0187adb3e0f60a983ecc2ddb48d32b3deaa09388ad3bc41e14aeb19959ecc60b54'; + deploy_params = new casper_sdk_1.DeployStrParams(chain_name, public_key, private_key, timestamp, ttl); + payment_params = new casper_sdk_1.PaymentStrParams(payment_amount); + return [4 /*yield*/, sdk.transfer(transfer_amount, target_account, undefined, // transfer_id + deploy_params, payment_params)]; + case 1: + transfer_result = _a.sent(); + transfer_result_as_json = transfer_result.toJson(); + console.log(transfer_result_as_json); + return [2 /*return*/]; + } + }); +}); }; +var example7 = function () { return __awaiter(void 0, void 0, void 0, function () { + var chain_name, public_key, payment_amount, contract_hash, deploy_params, session_params, payment_params, deploy, deploy_as_json; + return __generator(this, function (_a) { + chain_name = 'integration-test'; + public_key = '0169d8d607f3ba04c578140398ceb1bd5296c653f965256bd7097982b9026c5129'; + payment_amount = '5000000000'; + contract_hash = 'hash-5be5b0ef09a7016e11292848d77f539e55791cb07a7012fbc336b1f92a4fe743'; + deploy_params = new casper_sdk_1.DeployStrParams(chain_name, public_key); + session_params = new casper_sdk_1.SessionStrParams(); + session_params.session_hash = contract_hash; + session_params.session_entry_point = 'set_variables'; + payment_params = new casper_sdk_1.PaymentStrParams(payment_amount); + deploy = sdk.make_deploy(deploy_params, session_params, payment_params); + deploy_as_json = deploy.toJson(); + console.log(deploy_as_json); + return [2 /*return*/]; + }); +}); }; +var example8 = function () { return __awaiter(void 0, void 0, void 0, function () { + var node_address, sdk, chain_name, public_key, private_key, payment_amount, contract_hash, deploy_params, session_params, payment_params, deploy_result, deploy_result_as_json; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: + node_address = 'http://127.0.0.1:11101'; + sdk = new casper_sdk_1.SDK(node_address); + chain_name = 'casper-net-1'; + public_key = '0169d8d607f3ba04c578140398ceb1bd5296c653f965256bd7097982b9026c5129'; + private_key = "-----BEGIN PRIVATE KEY-----\n\n -----END PRIVATE KEY-----"; + payment_amount = '5000000000'; + contract_hash = 'hash-5be5b0ef09a7016e11292848d77f539e55791cb07a7012fbc336b1f92a4fe743'; + deploy_params = new casper_sdk_1.DeployStrParams(chain_name, public_key, private_key); + session_params = new casper_sdk_1.SessionStrParams(); + session_params.session_hash = contract_hash; + session_params.session_entry_point = 'set_variables'; + payment_params = new casper_sdk_1.PaymentStrParams(payment_amount); + return [4 /*yield*/, sdk.deploy(deploy_params, session_params, payment_params)]; + case 1: + deploy_result = _a.sent(); + deploy_result_as_json = deploy_result.toJson(); + console.log(deploy_result_as_json); + return [2 /*return*/]; + } + }); +}); }; +var example9 = function () { return __awaiter(void 0, void 0, void 0, function () { + var node_address, sdk, chain_name, public_key, private_key, payment_amount, contract_hash, entry_point, deploy_params, session_params, payment_params, deploy, put_deploy_result, put_deploy_result_as_json; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: + node_address = 'http://127.0.0.1:11101'; + sdk = new casper_sdk_1.SDK(node_address); + chain_name = 'casper-net-1'; + public_key = '0169d8d607f3ba04c578140398ceb1bd5296c653f965256bd7097982b9026c5129'; + private_key = "-----BEGIN PRIVATE KEY-----\n\n -----END PRIVATE KEY-----"; + payment_amount = '5000000000'; + contract_hash = 'hash-5be5b0ef09a7016e11292848d77f539e55791cb07a7012fbc336b1f92a4fe743'; + entry_point = 'set_variables'; + deploy_params = new casper_sdk_1.DeployStrParams(chain_name, public_key, private_key); + session_params = new casper_sdk_1.SessionStrParams(); + session_params.session_hash = contract_hash; + session_params.session_entry_point = entry_point; + payment_params = new casper_sdk_1.PaymentStrParams(payment_amount); + deploy = casper_sdk_1.Deploy.withPaymentAndSession(deploy_params, session_params, payment_params); + return [4 /*yield*/, sdk.put_deploy(deploy)]; + case 1: + put_deploy_result = _a.sent(); + put_deploy_result_as_json = put_deploy_result.toJson(); + console.log(put_deploy_result_as_json); + return [2 /*return*/]; + } + }); +}); }; +var example10 = function () { return __awaiter(void 0, void 0, void 0, function () { + var node_address, sdk, chain_name, public_key, private_key, payment_amount, transfer_amount, target_account, deploy_params, payment_params, transfer_deploy, put_deploy_result, put_deploy_result_as_json; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: + node_address = 'http://127.0.0.1:11101'; + sdk = new casper_sdk_1.SDK(node_address); + chain_name = 'casper-net-1'; + public_key = '0169d8d607f3ba04c578140398ceb1bd5296c653f965256bd7097982b9026c5129'; + private_key = "-----BEGIN PRIVATE KEY-----\n\n -----END PRIVATE KEY-----"; + payment_amount = '100000000'; + transfer_amount = '2500000000'; + target_account = '0187adb3e0f60a983ecc2ddb48d32b3deaa09388ad3bc41e14aeb19959ecc60b54'; + deploy_params = new casper_sdk_1.DeployStrParams(chain_name, public_key, private_key); + payment_params = new casper_sdk_1.PaymentStrParams(payment_amount); + transfer_deploy = casper_sdk_1.Deploy.withTransfer(transfer_amount, target_account, undefined, // transfer_id + deploy_params, payment_params); + return [4 /*yield*/, sdk.put_deploy(transfer_deploy)]; + case 1: + put_deploy_result = _a.sent(); + put_deploy_result_as_json = put_deploy_result.toJson(); + console.log(put_deploy_result_as_json); + return [2 /*return*/]; + } + }); +}); }; +var example11 = function () { return __awaiter(void 0, void 0, void 0, function () { + function loadFile() { + return __awaiter(this, void 0, void 0, function () { + var fileBuffer, error_1; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: + _a.trys.push([0, 2, , 3]); + return [4 /*yield*/, fs.readFile(__dirname + '/../../../tests/wasm/cep78.wasm')]; + case 1: + fileBuffer = _a.sent(); + return [2 /*return*/, fileBuffer.buffer]; // Returns an ArrayBuffer + case 2: + error_1 = _a.sent(); + throw new Error('Error reading file: ' + error_1.message); + case 3: return [2 /*return*/]; + } + }); + }); + } + var node_address, sdk, chain_name, private_key, public_key, deploy_params, session_params, payment_amount, buffer, wasm, wasmBuffer, install_result, install_result_as_json; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: + node_address = 'http://127.0.0.1:11101'; + sdk = new casper_sdk_1.SDK(node_address); + chain_name = 'casper-net-1'; + private_key = "-----BEGIN PRIVATE KEY-----\n\n -----END PRIVATE KEY-----"; + public_key = (0, casper_sdk_1.privateToPublicKey)(private_key); + deploy_params = new casper_sdk_1.DeployStrParams(chain_name, public_key, private_key); + session_params = new casper_sdk_1.SessionStrParams(); + session_params.session_args_json = JSON.stringify([ + { "name": "collection_name", "type": "String", "value": "enhanced-nft-1" }, + { "name": "collection_symbol", "type": "String", "value": "ENFT-1" }, + { "name": "total_token_supply", "type": "U64", "value": 10 }, + { "name": "ownership_mode", "type": "U8", "value": 0 }, + { "name": "nft_kind", "type": "U8", "value": 1 }, + { "name": "allow_minting", "type": "Bool", "value": true }, + { "name": "owner_reverse_lookup_mode", "type": "U8", "value": 0 }, + { "name": "nft_metadata_kind", "type": "U8", "value": 2 }, + { "name": "identifier_mode", "type": "U8", "value": 0 }, + { "name": "metadata_mutability", "type": "U8", "value": 0 }, + { "name": "events_mode", "type": "U8", "value": 1 } + ]); + payment_amount = '300000000000'; + return [4 /*yield*/, loadFile()]; + case 1: + buffer = _a.sent(); + wasm = buffer && new Uint8Array(buffer); + wasmBuffer = wasm === null || wasm === void 0 ? void 0 : wasm.buffer; + if (!wasmBuffer) { + console.error('Failed to read wasm file.'); + return [2 /*return*/]; + } + session_params.session_bytes = casper_sdk_1.Bytes.fromUint8Array(wasm); + return [4 /*yield*/, sdk.install(deploy_params, session_params, payment_amount)]; + case 2: + install_result = _a.sent(); + install_result_as_json = install_result.toJson(); + console.log(install_result_as_json.deploy_hash); + return [2 /*return*/]; + } + }); +}); }; +var example12 = function () { return __awaiter(void 0, void 0, void 0, function () { + var node_address, sdk, chain_name, private_key, public_key, contract_hash, entry_point, token_owner, payment_amount, deploy_params, session_params, call_entrypoint_result, call_entrypoint_result_as_json; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: + node_address = 'http://127.0.0.1:11101'; + sdk = new casper_sdk_1.SDK(node_address); + chain_name = 'casper-net-1'; + private_key = "-----BEGIN PRIVATE KEY-----\n\n -----END PRIVATE KEY-----"; + public_key = (0, casper_sdk_1.privateToPublicKey)(private_key); + contract_hash = 'hash-5be5b0ef09a7016e11292848d77f539e55791cb07a7012fbc336b1f92a4fe743'; + entry_point = 'mint'; + token_owner = 'account-hash-878985c8c07064e09e67cc349dd21219b8e41942a0adc4bfa378cf0eace32611'; + payment_amount = '5000000000'; + deploy_params = new casper_sdk_1.DeployStrParams(chain_name, public_key, private_key); + session_params = new casper_sdk_1.SessionStrParams(); + session_params.session_hash = contract_hash; + session_params.session_entry_point = entry_point; + session_params.session_args_simple = ["token_meta_data:String='test_meta_data'", "token_owner:Key='".concat(token_owner, "'")]; + return [4 /*yield*/, sdk.call_entrypoint(deploy_params, session_params, payment_amount)]; + case 1: + call_entrypoint_result = _a.sent(); + call_entrypoint_result_as_json = call_entrypoint_result.toJson(); + console.log(call_entrypoint_result_as_json.deploy_hash); + return [2 /*return*/]; + } + }); +}); }; diff --git a/examples/desktop/node/index.ts b/examples/desktop/node/index.ts new file mode 100644 index 000000000..b44017a20 --- /dev/null +++ b/examples/desktop/node/index.ts @@ -0,0 +1,331 @@ +import { DeployStrParams, PaymentStrParams, getTimestamp, SDK, SessionStrParams, privateToPublicKey, Bytes, Deploy } from 'casper-sdk'; +const fs = require('fs').promises; +const http = require('http'); + +const node_address = 'https://rpc.integration.casperlabs.io'; +const sdk = new SDK(node_address); + +const server = http.createServer(async (req, res) => { + res.writeHead(200, { 'Content-Type': 'text/plain' }); + let peers_object = await sdk.get_peers(); + console.log(peers_object.peers); + const peers_as_json = peers_object.toJson(); + console.log(peers_as_json); + res.end(JSON.stringify(peers_as_json)); +}); + +const PORT = process.env.PORT || 3000; + +server.listen(PORT, () => { + console.log(`Server is running on port ${PORT}`); +}); + +const example1 = async () => { + const deploy_hash_as_string = + 'a8778b2e4bd1ad02c168329a1f6f3674513f4d350da1b5f078e058a3422ad0b9'; + const finalized_approvals = true; + + const get_deploy_options = sdk.get_deploy_options({ + deploy_hash_as_string, + finalized_approvals, + }); + + const deploy_result = await sdk.get_deploy(get_deploy_options); + + const deploy: Deploy = deploy_result.deploy; + const timestamp = deploy.timestamp(); + const header = deploy.toJson().header; // DeployHeader type not being exposed right now by the SDK you can convert every type to JSON + console.log(timestamp, header); +}; + +const example2 = async () => { + const get_auction_info = await sdk.get_auction_info(); + + const auction_state = get_auction_info.auction_state; + const state_root_hash = auction_state.state_root_hash.toString(); + const block_height = auction_state.block_height.toString(); + console.log(state_root_hash, block_height); +}; + +const example3 = async () => { + const get_peers = await sdk.get_peers(); + + const peers = get_peers.peers; + peers.forEach((peer) => { + console.log(peer); + }); +}; + +const example4 = async () => { + const get_block = await sdk.get_block(); + + let block = get_block.block; + let block_hash = block.hash; + console.log(block_hash); +}; + +const example5 = async () => { + const chain_name = 'casper-net-1'; + const public_key = + '0169d8d607f3ba04c578140398ceb1bd5296c653f965256bd7097982b9026c5129'; + const private_key = undefined; + const timestamp = getTimestamp(); // or Date.now().toString(); // or undefined + const ttl = '1h'; // or undefined + const payment_amount = '100000000'; + const transfer_amount = '2500000000'; + const target_account = + '0187adb3e0f60a983ecc2ddb48d32b3deaa09388ad3bc41e14aeb19959ecc60b54'; + + const deploy_params = new DeployStrParams( + chain_name, + public_key, + private_key, + timestamp, + ttl + ); + + const payment_params = new PaymentStrParams(payment_amount); + + const transfer_deploy = sdk.make_transfer( + transfer_amount, + target_account, + undefined, // transfer_id + deploy_params, + payment_params + ); + const transfer_deploy_as_json = transfer_deploy.toJson(); + console.log(transfer_deploy_as_json); +}; + +const example6 = async () => { + const node_address = 'http://127.0.0.1:11101'; + const sdk = new SDK(node_address); + const chain_name = 'casper-net-1'; + const public_key = + '0169d8d607f3ba04c578140398ceb1bd5296c653f965256bd7097982b9026c5129'; + const private_key = `-----BEGIN PRIVATE KEY----- + +-----END PRIVATE KEY-----`; + const timestamp = getTimestamp(); // or Date.now().toString(); // or undefined + const ttl = '1h'; // or undefined + const payment_amount = '100000000'; + const transfer_amount = '2500000000'; + const target_account = + '0187adb3e0f60a983ecc2ddb48d32b3deaa09388ad3bc41e14aeb19959ecc60b54'; + + const deploy_params = new DeployStrParams( + chain_name, + public_key, + private_key, + timestamp, + ttl + ); + + const payment_params = new PaymentStrParams(payment_amount); + + const transfer_result = await sdk.transfer( + transfer_amount, + target_account, + undefined, // transfer_id + deploy_params, + payment_params + ); + const transfer_result_as_json = transfer_result.toJson(); + console.log(transfer_result_as_json); +}; + +const example7 = async () => { + const chain_name = 'integration-test'; + const public_key = + '0169d8d607f3ba04c578140398ceb1bd5296c653f965256bd7097982b9026c5129'; + const payment_amount = '5000000000'; + const contract_hash = + 'hash-5be5b0ef09a7016e11292848d77f539e55791cb07a7012fbc336b1f92a4fe743'; + + const deploy_params = new DeployStrParams(chain_name, public_key); + + const session_params = new SessionStrParams(); + session_params.session_hash = contract_hash; + session_params.session_entry_point = 'set_variables'; + + const payment_params = new PaymentStrParams(payment_amount); + + const deploy = sdk.make_deploy(deploy_params, session_params, payment_params); + const deploy_as_json = deploy.toJson(); + console.log(deploy_as_json); +}; + +const example8 = async () => { + const node_address = 'http://127.0.0.1:11101'; + const sdk = new SDK(node_address); + const chain_name = 'casper-net-1'; + const public_key = + '0169d8d607f3ba04c578140398ceb1bd5296c653f965256bd7097982b9026c5129'; + const private_key = `-----BEGIN PRIVATE KEY----- + + -----END PRIVATE KEY-----`; + const payment_amount = '5000000000'; + const contract_hash = + 'hash-5be5b0ef09a7016e11292848d77f539e55791cb07a7012fbc336b1f92a4fe743'; + + const deploy_params = new DeployStrParams(chain_name, public_key, private_key); + + const session_params = new SessionStrParams(); + session_params.session_hash = contract_hash; + session_params.session_entry_point = 'set_variables'; + + const payment_params = new PaymentStrParams(payment_amount); + + const deploy_result = await sdk.deploy(deploy_params, session_params, payment_params); + const deploy_result_as_json = deploy_result.toJson(); + console.log(deploy_result_as_json); +}; + +const example9 = async () => { + const node_address = 'http://127.0.0.1:11101'; + const sdk = new SDK(node_address); + const chain_name = 'casper-net-1'; + const public_key = + '0169d8d607f3ba04c578140398ceb1bd5296c653f965256bd7097982b9026c5129'; + const private_key = `-----BEGIN PRIVATE KEY----- + + -----END PRIVATE KEY-----`; + const payment_amount = '5000000000'; + const contract_hash = + 'hash-5be5b0ef09a7016e11292848d77f539e55791cb07a7012fbc336b1f92a4fe743'; + const entry_point = 'set_variables'; + + const deploy_params = new DeployStrParams(chain_name, public_key, private_key); + + const session_params = new SessionStrParams(); + session_params.session_hash = contract_hash; + session_params.session_entry_point = entry_point; + + const payment_params = new PaymentStrParams(payment_amount); + + const deploy = Deploy.withPaymentAndSession( + deploy_params, + session_params, + payment_params + ); + + const put_deploy_result = await sdk.put_deploy(deploy); + const put_deploy_result_as_json = put_deploy_result.toJson(); + console.log(put_deploy_result_as_json); +}; + +const example10 = async () => { + const node_address = 'http://127.0.0.1:11101'; + const sdk = new SDK(node_address); + const chain_name = 'casper-net-1'; + const public_key = + '0169d8d607f3ba04c578140398ceb1bd5296c653f965256bd7097982b9026c5129'; + const private_key = `-----BEGIN PRIVATE KEY----- + + -----END PRIVATE KEY-----`; + const payment_amount = '100000000'; + const transfer_amount = '2500000000'; + const target_account = + '0187adb3e0f60a983ecc2ddb48d32b3deaa09388ad3bc41e14aeb19959ecc60b54'; + + const deploy_params = new DeployStrParams(chain_name, public_key, private_key); + + const payment_params = new PaymentStrParams(payment_amount); + + const transfer_deploy = Deploy.withTransfer( + transfer_amount, + target_account, + undefined, // transfer_id + deploy_params, + payment_params + ); + + const put_deploy_result = await sdk.put_deploy(transfer_deploy); + const put_deploy_result_as_json = put_deploy_result.toJson(); + console.log(put_deploy_result_as_json); +}; + +const example11 = async () => { + const node_address = 'http://127.0.0.1:11101'; + const sdk = new SDK(node_address); + const chain_name = 'casper-net-1'; + const private_key = `-----BEGIN PRIVATE KEY----- + + -----END PRIVATE KEY-----`; + const public_key = privateToPublicKey(private_key); + const deploy_params = new DeployStrParams(chain_name, public_key, private_key); + + async function loadFile() { + try { + const fileBuffer = await fs.readFile(__dirname + '/../../../tests/wasm/cep78.wasm'); + return fileBuffer.buffer; // Returns an ArrayBuffer + } catch (error) { + throw new Error('Error reading file: ' + error.message); + } + } + + const session_params = new SessionStrParams(); + session_params.session_args_json = JSON.stringify([ + { "name": "collection_name", "type": "String", "value": "enhanced-nft-1" }, + { "name": "collection_symbol", "type": "String", "value": "ENFT-1" }, + { "name": "total_token_supply", "type": "U64", "value": 10 }, + { "name": "ownership_mode", "type": "U8", "value": 0 }, + { "name": "nft_kind", "type": "U8", "value": 1 }, + { "name": "allow_minting", "type": "Bool", "value": true }, + { "name": "owner_reverse_lookup_mode", "type": "U8", "value": 0 }, + { "name": "nft_metadata_kind", "type": "U8", "value": 2 }, + { "name": "identifier_mode", "type": "U8", "value": 0 }, + { "name": "metadata_mutability", "type": "U8", "value": 0 }, + { "name": "events_mode", "type": "U8", "value": 1 } + ]); + const payment_amount = '300000000000'; + + const buffer = await loadFile(); + const wasm = buffer && new Uint8Array(buffer); + const wasmBuffer = wasm?.buffer; + if (!wasmBuffer) { + console.error('Failed to read wasm file.'); + return; + } + + session_params.session_bytes = Bytes.fromUint8Array(wasm); + + const install_result = await sdk.install( + deploy_params, + session_params, + payment_amount + ); + const install_result_as_json = install_result.toJson(); + console.log(install_result_as_json.deploy_hash); + +}; +const example12 = async () => { + const node_address = 'http://127.0.0.1:11101'; + const sdk = new SDK(node_address); + const chain_name = 'casper-net-1'; + const private_key = `-----BEGIN PRIVATE KEY----- + + -----END PRIVATE KEY-----`; + const public_key = privateToPublicKey(private_key); + const contract_hash = + 'hash-5be5b0ef09a7016e11292848d77f539e55791cb07a7012fbc336b1f92a4fe743'; + const entry_point = 'mint'; + const token_owner = + 'account-hash-878985c8c07064e09e67cc349dd21219b8e41942a0adc4bfa378cf0eace32611'; + const payment_amount = '5000000000'; + + const deploy_params = new DeployStrParams(chain_name, public_key, private_key); + + const session_params = new SessionStrParams(); + session_params.session_hash = contract_hash; + session_params.session_entry_point = entry_point; + session_params.session_args_simple = ["token_meta_data:String='test_meta_data'", `token_owner:Key='${token_owner}'`]; + + const call_entrypoint_result = await sdk.call_entrypoint( + deploy_params, + session_params, + payment_amount + ); + const call_entrypoint_result_as_json = call_entrypoint_result.toJson(); + console.log(call_entrypoint_result_as_json.deploy_hash); +}; diff --git a/examples/desktop/node/package-lock.json b/examples/desktop/node/package-lock.json new file mode 100644 index 000000000..989ef82ff --- /dev/null +++ b/examples/desktop/node/package-lock.json @@ -0,0 +1,46 @@ +{ + "name": "casper", + "version": "1.0.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "casper", + "version": "1.0.0", + "license": "ISC", + "dependencies": { + "casper-sdk": "file:../../../pkg-nodejs" + }, + "devDependencies": { + "@types/node": "^20.5.9", + "typescript": "^5.2.2" + } + }, + "../../../pkg-nodejs": { + "name": "casper-rust-wasm-sdk", + "version": "0.1.0", + "license": "Apache-2.0" + }, + "node_modules/@types/node": { + "version": "20.5.9", + "dev": true, + "license": "MIT" + }, + "node_modules/casper-sdk": { + "resolved": "../../../pkg-nodejs", + "link": true + }, + "node_modules/typescript": { + "version": "5.2.2", + "dev": true, + "license": "Apache-2.0", + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=14.17" + } + } + } +} diff --git a/examples/desktop/node/package.json b/examples/desktop/node/package.json new file mode 100644 index 000000000..fc0a40f70 --- /dev/null +++ b/examples/desktop/node/package.json @@ -0,0 +1,19 @@ +{ + "name": "casper", + "version": "1.0.0", + "description": "", + "main": "index.js", + "scripts": { + "start": "npx tsc index.ts && node index.js", + "test": "echo \"Error: no test specified\" && exit 1" + }, + "author": "", + "license": "ISC", + "dependencies": { + "casper-sdk": "file:../../../pkg-nodejs" + }, + "devDependencies": { + "@types/node": "^20.5.9", + "typescript": "^5.2.2" + } +} \ No newline at end of file diff --git a/examples/frontend/angular/.eslintignore b/examples/frontend/angular/.eslintignore new file mode 100644 index 000000000..3c3629e64 --- /dev/null +++ b/examples/frontend/angular/.eslintignore @@ -0,0 +1 @@ +node_modules diff --git a/examples/frontend/angular/.eslintrc.base.json b/examples/frontend/angular/.eslintrc.base.json new file mode 100644 index 000000000..0be733b75 --- /dev/null +++ b/examples/frontend/angular/.eslintrc.base.json @@ -0,0 +1,42 @@ +{ + "root": true, + "ignorePatterns": ["**/*"], + "plugins": ["@nx"], + "overrides": [ + { + "files": ["*.ts", "*.tsx", "*.js", "*.jsx"], + "rules": { + "@nx/enforce-module-boundaries": [ + "error", + { + "enforceBuildableLibDependency": true, + "allow": [], + "depConstraints": [ + { + "sourceTag": "*", + "onlyDependOnLibsWithTags": ["*"] + } + ] + } + ] + } + }, + { + "files": ["*.ts", "*.tsx"], + "extends": ["plugin:@nx/typescript"], + "rules": {} + }, + { + "files": ["*.js", "*.jsx"], + "extends": ["plugin:@nx/javascript"], + "rules": {} + }, + { + "files": ["*.spec.ts", "*.spec.tsx", "*.spec.js", "*.spec.jsx"], + "env": { + "jest": true + }, + "rules": {} + } + ] +} diff --git a/examples/frontend/angular/.eslintrc.json b/examples/frontend/angular/.eslintrc.json new file mode 100644 index 000000000..4006a3452 --- /dev/null +++ b/examples/frontend/angular/.eslintrc.json @@ -0,0 +1,36 @@ +{ + "ignorePatterns": ["!**/*"], + "overrides": [ + { + "files": ["*.ts"], + "extends": [ + "plugin:@nx/angular", + "plugin:@angular-eslint/template/process-inline-templates" + ], + "rules": { + "@angular-eslint/directive-selector": [ + "error", + { + "type": "attribute", + "prefix": "app", + "style": "camelCase" + } + ], + "@angular-eslint/component-selector": [ + "error", + { + "type": "element", + "prefix": "app", + "style": "kebab-case" + } + ] + } + }, + { + "files": ["*.html"], + "extends": ["plugin:@nx/angular-template"], + "rules": {} + } + ], + "extends": ["./.eslintrc.base.json"] +} diff --git a/examples/frontend/angular/.gitignore b/examples/frontend/angular/.gitignore new file mode 100644 index 000000000..004629279 --- /dev/null +++ b/examples/frontend/angular/.gitignore @@ -0,0 +1,41 @@ +# See http://help.github.com/ignore-files/ for more about ignoring files. + +# compiled output + +tmp +/out-tsc + +# dependencies +node_modules + +# IDEs and editors +/.idea +.project +.classpath +.c9/ +*.launch +.settings/ +*.sublime-workspace + +# IDE - VSCode +.vscode/* +!.vscode/settings.json +!.vscode/tasks.json +!.vscode/launch.json +!.vscode/extensions.json + +# misc +/.sass-cache +/connect.lock +/coverage +/libpeerconnection.log +npm-debug.log +yarn-error.log +testem.log +/typings + +# System Files +.DS_Store +Thumbs.db + +.angular diff --git a/examples/frontend/angular/.prettierignore b/examples/frontend/angular/.prettierignore new file mode 100644 index 000000000..bbc02998e --- /dev/null +++ b/examples/frontend/angular/.prettierignore @@ -0,0 +1,4 @@ +# Add files here to ignore them from prettier formatting +/dist +/coverage +.angular diff --git a/examples/frontend/angular/.prettierrc b/examples/frontend/angular/.prettierrc new file mode 100644 index 000000000..544138be4 --- /dev/null +++ b/examples/frontend/angular/.prettierrc @@ -0,0 +1,3 @@ +{ + "singleQuote": true +} diff --git a/examples/frontend/angular/.vscode/extensions.json b/examples/frontend/angular/.vscode/extensions.json new file mode 100644 index 000000000..64553b175 --- /dev/null +++ b/examples/frontend/angular/.vscode/extensions.json @@ -0,0 +1,8 @@ +{ + "recommendations": [ + "nrwl.angular-console", + "esbenp.prettier-vscode", + "firsttris.vscode-jest-runner", + "dbaeumer.vscode-eslint" + ] +} diff --git a/examples/frontend/angular/README.md b/examples/frontend/angular/README.md new file mode 100644 index 000000000..7d744c653 --- /dev/null +++ b/examples/frontend/angular/README.md @@ -0,0 +1,63 @@ +# Casper + + + +✨ **This workspace has been generated by [Nx, a Smart, fast and extensible build system.](https://nx.dev)** ✨ + + +## Start the app + +To start the development server run `nx serve casper`. Open your browser and navigate to http://localhost:4200/. Happy coding! + + +## Generate code + +If you happen to use Nx plugins, you can leverage code generators that might come with it. + +Run `nx list` to get a list of available plugins and whether they have generators. Then run `nx list ` to see what generators are available. + +Learn more about [Nx generators on the docs](https://nx.dev/plugin-features/use-code-generators). + +## Running tasks + +To execute tasks with Nx use the following syntax: + +``` +nx <...options> +``` + +You can also run multiple targets: + +``` +nx run-many -t +``` + +..or add `-p` to filter specific projects + +``` +nx run-many -t -p +``` + +Targets can be defined in the `package.json` or `projects.json`. Learn more [in the docs](https://nx.dev/core-features/run-tasks). + +## Want better Editor Integration? + +Have a look at the [Nx Console extensions](https://nx.dev/nx-console). It provides autocomplete support, a UI for exploring and running tasks & generators, and more! Available for VSCode, IntelliJ and comes with a LSP for Vim users. + +## Ready to deploy? + +Just run `nx build demoapp` to build the application. The build artifacts will be stored in the `dist/` directory, ready to be deployed. + +## Set up CI! + +Nx comes with local caching already built-in (check your `nx.json`). On CI you might want to go a step further. + +- [Set up remote caching](https://nx.dev/core-features/share-your-cache) +- [Set up task distribution across multiple machines](https://nx.dev/core-features/distribute-task-execution) +- [Learn more how to setup CI](https://nx.dev/recipes/ci) + +## Connect with us! + +- [Join the community](https://nx.dev/community) +- [Subscribe to the Nx Youtube Channel](https://www.youtube.com/@nxdevtools) +- [Follow us on Twitter](https://twitter.com/nxdevtools) diff --git a/examples/frontend/angular/custom-webpack.config.js b/examples/frontend/angular/custom-webpack.config.js new file mode 100644 index 000000000..017e95c88 --- /dev/null +++ b/examples/frontend/angular/custom-webpack.config.js @@ -0,0 +1,14 @@ +const { merge } = require('webpack-merge'); +module.exports = (config, context) => { + return merge(config, { + module: { + rules: [ + { + test: /\.wasm$/, + type: 'javascript/auto', + loader: 'arraybuffer-loader', + }, + ], + }, + }); +}; diff --git a/examples/frontend/angular/dist/casper/3rdpartylicenses.txt b/examples/frontend/angular/dist/casper/3rdpartylicenses.txt new file mode 100644 index 000000000..506676c5f --- /dev/null +++ b/examples/frontend/angular/dist/casper/3rdpartylicenses.txt @@ -0,0 +1,708 @@ +@angular/common +MIT + +@angular/core +MIT + +@angular/platform-browser +MIT + +@babel/runtime +MIT +MIT License + +Copyright (c) 2014-present Sebastian McKenzie and other contributors + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +casper-rust-wasm-sdk +Apache-2.0 + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright 2022 CasperLabs Holdings AG + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + +highlight.js +BSD-3-Clause +BSD 3-Clause License + +Copyright (c) 2006, Ivan Sagalaev. +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +* Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +* Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +* Neither the name of the copyright holder nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + +promise-worker +Apache-2.0 + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + +rxjs +Apache-2.0 + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright (c) 2015-2018 Google, Inc., Netflix, Inc., Microsoft Corp. and contributors + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + + +zone.js +MIT +The MIT License + +Copyright (c) 2010-2023 Google LLC. https://angular.io/license + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/examples/frontend/angular/dist/casper/assets/casper_rust_wasm_sdk_bg.wasm b/examples/frontend/angular/dist/casper/assets/casper_rust_wasm_sdk_bg.wasm new file mode 100644 index 000000000..a9cf14424 Binary files /dev/null and b/examples/frontend/angular/dist/casper/assets/casper_rust_wasm_sdk_bg.wasm differ diff --git a/examples/frontend/angular/dist/casper/assets/logo.png b/examples/frontend/angular/dist/casper/assets/logo.png new file mode 100644 index 000000000..2f628bf4f Binary files /dev/null and b/examples/frontend/angular/dist/casper/assets/logo.png differ diff --git a/examples/frontend/angular/dist/casper/favicon.png b/examples/frontend/angular/dist/casper/favicon.png new file mode 100644 index 000000000..3c1776bdf Binary files /dev/null and b/examples/frontend/angular/dist/casper/favicon.png differ diff --git a/examples/frontend/angular/dist/casper/highlight.worker.273ed77c2f6dd9a8.js b/examples/frontend/angular/dist/casper/highlight.worker.273ed77c2f6dd9a8.js new file mode 100644 index 000000000..9f5564576 --- /dev/null +++ b/examples/frontend/angular/dist/casper/highlight.worker.273ed77c2f6dd9a8.js @@ -0,0 +1 @@ +(()=>{var zt={7045:r=>{"use strict";r.exports=function e(t){function n(s,l,_,d){function m(u){"function"!=typeof self.postMessage?s.ports[0].postMessage(u):self.postMessage(u)}_?(typeof console<"u"&&"error"in console&&console.error("Worker caught an error:",_),m([l,{message:_.message}])):m([l,null,d])}self.addEventListener("message",function c(s){var l=s.data;if(Array.isArray(l)&&2===l.length){var _=l[0],d=l[1];"function"!=typeof t?n(s,_,new Error("Please pass a function into register().")):function o(s,l,_,d){var m=function i(s,l){try{return{res:s(l)}}catch(_){return{err:_}}}(l,d);m.err?n(s,_,m.err):function a(t){return!!t&&("object"==typeof t||"function"==typeof t)&&"function"==typeof t.then}(m.res)?m.res.then(function(u){n(s,_,null,u)},function(u){n(s,_,u)}):n(s,_,null,m.res)}(s,t,_,d)}})}},6548:r=>{function a(E){return E instanceof Map?E.clear=E.delete=E.set=function(){throw new Error("map is read-only")}:E instanceof Set&&(E.add=E.clear=E.delete=function(){throw new Error("set is read-only")}),Object.freeze(E),Object.getOwnPropertyNames(E).forEach(b=>{const I=E[b],F=typeof I;("object"===F||"function"===F)&&!Object.isFrozen(I)&&a(I)}),E}class e{constructor(b){void 0===b.data&&(b.data={}),this.data=b.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function t(E){return E.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}function n(E,...b){const I=Object.create(null);for(const F in E)I[F]=E[F];return b.forEach(function(F){for(const ne in F)I[ne]=F[ne]}),I}const o=E=>!!E.scope;class s{constructor(b,I){this.buffer="",this.classPrefix=I.classPrefix,b.walk(this)}addText(b){this.buffer+=t(b)}openNode(b){if(!o(b))return;const I=((E,{prefix:b})=>{if(E.startsWith("language:"))return E.replace("language:","language-");if(E.includes(".")){const I=E.split(".");return[`${b}${I.shift()}`,...I.map((F,ne)=>`${F}${"_".repeat(ne+1)}`)].join(" ")}return`${b}${E}`})(b.scope,{prefix:this.classPrefix});this.span(I)}closeNode(b){o(b)&&(this.buffer+="
")}value(){return this.buffer}span(b){this.buffer+=``}}const l=(E={})=>{const b={children:[]};return Object.assign(b,E),b};class _{constructor(){this.rootNode=l(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(b){this.top.children.push(b)}openNode(b){const I=l({scope:b});this.add(I),this.stack.push(I)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(b){return this.constructor._walk(b,this.rootNode)}static _walk(b,I){return"string"==typeof I?b.addText(I):I.children&&(b.openNode(I),I.children.forEach(F=>this._walk(b,F)),b.closeNode(I)),b}static _collapse(b){"string"!=typeof b&&b.children&&(b.children.every(I=>"string"==typeof I)?b.children=[b.children.join("")]:b.children.forEach(I=>{_._collapse(I)}))}}class d extends _{constructor(b){super(),this.options=b}addText(b){""!==b&&this.add(b)}startScope(b){this.openNode(b)}endScope(){this.closeNode()}__addSublanguage(b,I){const F=b.root;I&&(F.scope=`language:${I}`),this.add(F)}toHTML(){return new s(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function m(E){return E?"string"==typeof E?E:E.source:null}function u(E){return g("(?=",E,")")}function p(E){return g("(?:",E,")*")}function S(E){return g("(?:",E,")?")}function g(...E){return E.map(I=>m(I)).join("")}function R(...E){return"("+(function T(E){const b=E[E.length-1];return"object"==typeof b&&b.constructor===Object?(E.splice(E.length-1,1),b):{}}(E).capture?"":"?:")+E.map(F=>m(F)).join("|")+")"}function C(E){return new RegExp(E.toString()+"|").exec("").length-1}const v=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function y(E,{joinWith:b}){let I=0;return E.map(F=>{I+=1;const ne=I;let ae=m(F),M="";for(;ae.length>0;){const h=v.exec(ae);if(!h){M+=ae;break}M+=ae.substring(0,h.index),ae=ae.substring(h.index+h[0].length),"\\"===h[0][0]&&h[1]?M+="\\"+String(Number(h[1])+ne):(M+=h[0],"("===h[0]&&I++)}return M}).map(F=>`(${F})`).join(b)}const w="[a-zA-Z]\\w*",D="[a-zA-Z_]\\w*",U="\\b\\d+(\\.\\d+)?",H="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",x="\\b(0b[01]+)",K={begin:"\\\\[\\s\\S]",relevance:0},V={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[K]},J={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[K]},ee=function(E,b,I={}){const F=n({scope:"comment",begin:E,end:b,contains:[]},I);F.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const ne=R("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return F.contains.push({begin:g(/[ ]+/,"(",ne,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),F},pe=ee("//","$"),Re=ee("/\\*","\\*/"),Se=ee("#","$");var j=Object.freeze({__proto__:null,MATCH_NOTHING_RE:/\b\B/,IDENT_RE:w,UNDERSCORE_IDENT_RE:D,NUMBER_RE:U,C_NUMBER_RE:H,BINARY_NUMBER_RE:x,RE_STARTERS_RE:"!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",SHEBANG:(E={})=>{const b=/^#![ ]*\//;return E.binary&&(E.begin=g(b,/.*\b/,E.binary,/\b.*/)),n({scope:"meta",begin:b,end:/$/,relevance:0,"on:begin":(I,F)=>{0!==I.index&&F.ignoreMatch()}},E)},BACKSLASH_ESCAPE:K,APOS_STRING_MODE:V,QUOTE_STRING_MODE:J,PHRASAL_WORDS_MODE:{begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},COMMENT:ee,C_LINE_COMMENT_MODE:pe,C_BLOCK_COMMENT_MODE:Re,HASH_COMMENT_MODE:Se,NUMBER_MODE:{scope:"number",begin:U,relevance:0},C_NUMBER_MODE:{scope:"number",begin:H,relevance:0},BINARY_NUMBER_MODE:{scope:"number",begin:x,relevance:0},REGEXP_MODE:{begin:/(?=\/[^/\n]*\/)/,contains:[{scope:"regexp",begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[K,{begin:/\[/,end:/\]/,relevance:0,contains:[K]}]}]},TITLE_MODE:{scope:"title",begin:w,relevance:0},UNDERSCORE_TITLE_MODE:{scope:"title",begin:D,relevance:0},METHOD_GUARD:{begin:"\\.\\s*"+D,relevance:0},END_SAME_AS_BEGIN:function(E){return Object.assign(E,{"on:begin":(b,I)=>{I.data._beginMatch=b[1]},"on:end":(b,I)=>{I.data._beginMatch!==b[1]&&I.ignoreMatch()}})}});function oe(E,b){"."===E.input[E.index-1]&&b.ignoreMatch()}function Te(E,b){void 0!==E.className&&(E.scope=E.className,delete E.className)}function Ne(E,b){b&&E.beginKeywords&&(E.begin="\\b("+E.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",E.__beforeBegin=oe,E.keywords=E.keywords||E.beginKeywords,delete E.beginKeywords,void 0===E.relevance&&(E.relevance=0))}function Ve(E,b){Array.isArray(E.illegal)&&(E.illegal=R(...E.illegal))}function Je(E,b){if(E.match){if(E.begin||E.end)throw new Error("begin & end are not supported with match");E.begin=E.match,delete E.match}}function je(E,b){void 0===E.relevance&&(E.relevance=1)}const Ue=(E,b)=>{if(!E.beforeMatch)return;if(E.starts)throw new Error("beforeMatch cannot be used with starts");const I=Object.assign({},E);Object.keys(E).forEach(F=>{delete E[F]}),E.keywords=I.keywords,E.begin=g(I.beforeMatch,u(I.begin)),E.starts={relevance:0,contains:[Object.assign(I,{endsParent:!0})]},E.relevance=0,delete I.beforeMatch},et=["of","and","for","in","not","or","if","then","parent","list","value"],tt="keyword";function We(E,b,I=tt){const F=Object.create(null);return"string"==typeof E?ne(I,E.split(" ")):Array.isArray(E)?ne(I,E):Object.keys(E).forEach(function(ae){Object.assign(F,We(E[ae],b,ae))}),F;function ne(ae,M){b&&(M=M.map(h=>h.toLowerCase())),M.forEach(function(h){const k=h.split("|");F[k[0]]=[ae,Pe(k[0],k[1])]})}}function Pe(E,b){return b?Number(b):function Ae(E){return et.includes(E.toLowerCase())}(E)?0:1}const ze={},ve=E=>{console.error(E)},Fe=(E,...b)=>{console.log(`WARN: ${E}`,...b)},ye=(E,b)=>{ze[`${E}/${b}`]||(console.log(`Deprecated as of ${E}. ${b}`),ze[`${E}/${b}`]=!0)},we=new Error;function Be(E,b,{key:I}){let F=0;const ne=E[I],ae={},M={};for(let h=1;h<=b.length;h++)M[h+F]=ne[h],ae[h+F]=!0,F+=C(b[h-1]);E[I]=M,E[I]._emit=ae,E[I]._multi=!0}function it(E){(function rt(E){E.scope&&"object"==typeof E.scope&&null!==E.scope&&(E.beginScope=E.scope,delete E.scope)})(E),"string"==typeof E.beginScope&&(E.beginScope={_wrap:E.beginScope}),"string"==typeof E.endScope&&(E.endScope={_wrap:E.endScope}),function nt(E){if(Array.isArray(E.begin)){if(E.skip||E.excludeBegin||E.returnBegin)throw ve("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),we;if("object"!=typeof E.beginScope||null===E.beginScope)throw ve("beginScope must be object"),we;Be(E,E.begin,{key:"beginScope"}),E.begin=y(E.begin,{joinWith:""})}}(E),function at(E){if(Array.isArray(E.end)){if(E.skip||E.excludeEnd||E.returnEnd)throw ve("skip, excludeEnd, returnEnd not compatible with endScope: {}"),we;if("object"!=typeof E.endScope||null===E.endScope)throw ve("endScope must be object"),we;Be(E,E.end,{key:"endScope"}),E.end=y(E.end,{joinWith:""})}}(E)}function Z(E){function b(M,h){return new RegExp(m(M),"m"+(E.case_insensitive?"i":"")+(E.unicodeRegex?"u":"")+(h?"g":""))}class I{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(h,k){k.position=this.position++,this.matchIndexes[this.matchAt]=k,this.regexes.push([k,h]),this.matchAt+=C(h)+1}compile(){0===this.regexes.length&&(this.exec=()=>null);const h=this.regexes.map(k=>k[1]);this.matcherRe=b(y(h,{joinWith:"|"}),!0),this.lastIndex=0}exec(h){this.matcherRe.lastIndex=this.lastIndex;const k=this.matcherRe.exec(h);if(!k)return null;const de=k.findIndex((Ye,lt)=>lt>0&&void 0!==Ye),re=this.matchIndexes[de];return k.splice(0,de),Object.assign(k,re)}}class F{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(h){if(this.multiRegexes[h])return this.multiRegexes[h];const k=new I;return this.rules.slice(h).forEach(([de,re])=>k.addRule(de,re)),k.compile(),this.multiRegexes[h]=k,k}resumingScanAtSamePosition(){return 0!==this.regexIndex}considerAll(){this.regexIndex=0}addRule(h,k){this.rules.push([h,k]),"begin"===k.type&&this.count++}exec(h){const k=this.getMatcher(this.regexIndex);k.lastIndex=this.lastIndex;let de=k.exec(h);if(this.resumingScanAtSamePosition()&&(!de||de.index!==this.lastIndex)){const re=this.getMatcher(0);re.lastIndex=this.lastIndex+1,de=re.exec(h)}return de&&(this.regexIndex+=de.position+1,this.regexIndex===this.count&&this.considerAll()),de}}if(E.compilerExtensions||(E.compilerExtensions=[]),E.contains&&E.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return E.classNameAliases=n(E.classNameAliases||{}),function ae(M,h){const k=M;if(M.isCompiled)return k;[Te,Je,it,Ue].forEach(re=>re(M,h)),E.compilerExtensions.forEach(re=>re(M,h)),M.__beforeBegin=null,[Ne,Ve,je].forEach(re=>re(M,h)),M.isCompiled=!0;let de=null;return"object"==typeof M.keywords&&M.keywords.$pattern&&(M.keywords=Object.assign({},M.keywords),de=M.keywords.$pattern,delete M.keywords.$pattern),de=de||/\w+/,M.keywords&&(M.keywords=We(M.keywords,E.case_insensitive)),k.keywordPatternRe=b(de,!0),h&&(M.begin||(M.begin=/\B|\b/),k.beginRe=b(k.begin),!M.end&&!M.endsWithParent&&(M.end=/\B|\b/),M.end&&(k.endRe=b(k.end)),k.terminatorEnd=m(k.end)||"",M.endsWithParent&&h.terminatorEnd&&(k.terminatorEnd+=(M.end?"|":"")+h.terminatorEnd)),M.illegal&&(k.illegalRe=b(M.illegal)),M.contains||(M.contains=[]),M.contains=[].concat(...M.contains.map(function(re){return function qe(E){return E.variants&&!E.cachedVariants&&(E.cachedVariants=E.variants.map(function(b){return n(E,{variants:null},b)})),E.cachedVariants?E.cachedVariants:Ge(E)?n(E,{starts:E.starts?n(E.starts):null}):Object.isFrozen(E)?n(E):E}("self"===re?M:re)})),M.contains.forEach(function(re){ae(re,k)}),M.starts&&ae(M.starts,h),k.matcher=function ne(M){const h=new F;return M.contains.forEach(k=>h.addRule(k.begin,{rule:k,type:"begin"})),M.terminatorEnd&&h.addRule(M.terminatorEnd,{type:"end"}),M.illegal&&h.addRule(M.illegal,{type:"illegal"}),h}(k),k}(E)}function Ge(E){return!!E&&(E.endsWithParent||Ge(E.starts))}class ft extends Error{constructor(b,I){super(b),this.name="HTMLInjectionError",this.html=I}}const st=t,mt=n,ut=Symbol("nomatch"),pt=function(E){const b=Object.create(null),I=Object.create(null),F=[];let ne=!0;const ae="Could not find the language '{}', did you forget to load/include a language module?",M={disableAutodetect:!0,name:"Plain text",contains:[]};let h={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:d};function k(N){return h.noHighlightRe.test(N)}function re(N,P,Y){let $="",se="";"object"==typeof P?($=N,Y=P.ignoreIllegals,se=P.language):(ye("10.7.0","highlight(lang, code, ...args) has been deprecated."),ye("10.7.0","Please use highlight(code, options) instead.\nhttps://github.com/highlightjs/highlight.js/issues/2277"),se=N,$=P),void 0===Y&&(Y=!0);const Oe={code:$,language:se};$e("before:highlight",Oe);const Me=Oe.result?Oe.result:Ye(Oe.language,Oe.code,Y);return Me.code=Oe.code,$e("after:highlight",Me),Me}function Ye(N,P,Y,$){const se=Object.create(null);function Oe(A,L){return A.keywords[L]}function Me(){if(!B.keywords)return void Ee.addText(Q);let A=0;B.keywordPatternRe.lastIndex=0;let L=B.keywordPatternRe.exec(Q),G="";for(;L;){G+=Q.substring(A,L.index);const W=Ie.case_insensitive?L[0].toLowerCase():L[0],me=Oe(B,W);if(me){const[Le,Wt]=me;Ee.addText(G),G="",se[W]=(se[W]||0)+1,se[W]<=7&&(He+=Wt),Le.startsWith("_")?G+=L[0]:fe(L[0],Ie.classNameAliases[Le]||Le)}else G+=L[0];A=B.keywordPatternRe.lastIndex,L=B.keywordPatternRe.exec(Q)}G+=Q.substring(A),Ee.addText(G)}function be(){null!=B.subLanguage?function Qe(){if(""===Q)return;let A=null;if("string"==typeof B.subLanguage){if(!b[B.subLanguage])return void Ee.addText(Q);A=Ye(B.subLanguage,Q,!0,Ot[B.subLanguage]),Ot[B.subLanguage]=A._top}else A=ct(Q,B.subLanguage.length?B.subLanguage:null);B.relevance>0&&(He+=A.relevance),Ee.__addSublanguage(A._emitter,A.language)}():Me(),Q=""}function fe(A,L){""!==A&&(Ee.startScope(L),Ee.addText(A),Ee.endScope())}function bt(A,L){let G=1;const W=L.length-1;for(;G<=W;){if(!A._emit[G]){G++;continue}const me=Ie.classNameAliases[A[G]]||A[G],Le=L[G];me?fe(Le,me):(Q=Le,Me(),Q=""),G++}}function Rt(A,L){return A.scope&&"string"==typeof A.scope&&Ee.openNode(Ie.classNameAliases[A.scope]||A.scope),A.beginScope&&(A.beginScope._wrap?(fe(Q,Ie.classNameAliases[A.beginScope._wrap]||A.beginScope._wrap),Q=""):A.beginScope._multi&&(bt(A.beginScope,L),Q="")),B=Object.create(A,{parent:{value:B}}),B}function Ct(A,L,G){let W=function f(E,b){const I=E&&E.exec(b);return I&&0===I.index}(A.endRe,G);if(W){if(A["on:end"]){const me=new e(A);A["on:end"](L,me),me.isMatchIgnored&&(W=!1)}if(W){for(;A.endsParent&&A.parent;)A=A.parent;return A}}if(A.endsWithParent)return Ct(A.parent,L,G)}function Ft(A){return 0===B.matcher.regexIndex?(Q+=A[0],1):(Ze=!0,0)}function Gt(A){const L=A[0],G=P.substring(A.index),W=Ct(B,A,G);if(!W)return ut;const me=B;B.endScope&&B.endScope._wrap?(be(),fe(L,B.endScope._wrap)):B.endScope&&B.endScope._multi?(be(),bt(B.endScope,A)):me.skip?Q+=L:(me.returnEnd||me.excludeEnd||(Q+=L),be(),me.excludeEnd&&(Q=L));do{B.scope&&Ee.closeNode(),!B.skip&&!B.subLanguage&&(He+=B.relevance),B=B.parent}while(B!==W.parent);return W.starts&&Rt(W.starts,A),me.returnEnd?0:L.length}let Xe={};function Nt(A,L){const G=L&&L[0];if(Q+=A,null==G)return be(),0;if("begin"===Xe.type&&"end"===L.type&&Xe.index===L.index&&""===G){if(Q+=P.slice(L.index,L.index+1),!ne){const W=new Error(`0 width match regex (${N})`);throw W.languageName=N,W.badRule=Xe.rule,W}return 1}if(Xe=L,"begin"===L.type)return function Bt(A){const L=A[0],G=A.rule,W=new e(G),me=[G.__beforeBegin,G["on:begin"]];for(const Le of me)if(Le&&(Le(A,W),W.isMatchIgnored))return Ft(L);return G.skip?Q+=L:(G.excludeBegin&&(Q+=L),be(),!G.returnBegin&&!G.excludeBegin&&(Q=L)),Rt(G,A),G.returnBegin?0:L.length}(L);if("illegal"===L.type&&!Y){const W=new Error('Illegal lexeme "'+G+'" for mode "'+(B.scope||"")+'"');throw W.mode=B,W}if("end"===L.type){const W=Gt(L);if(W!==ut)return W}if("illegal"===L.type&&""===G)return 1;if(Et>1e5&&Et>3*L.index)throw new Error("potential infinite loop, way more iterations than matches");return Q+=G,G.length}const Ie=he(N);if(!Ie)throw ve(ae.replace("{}",N)),new Error('Unknown language: "'+N+'"');const Ht=Z(Ie);let dt="",B=$||Ht;const Ot={},Ee=new h.__emitter(h);!function Yt(){const A=[];for(let L=B;L!==Ie;L=L.parent)L.scope&&A.unshift(L.scope);A.forEach(L=>Ee.openNode(L))}();let Q="",He=0,xe=0,Et=0,Ze=!1;try{if(Ie.__emitTokens)Ie.__emitTokens(P,Ee);else{for(B.matcher.considerAll();;){Et++,Ze?Ze=!1:B.matcher.considerAll(),B.matcher.lastIndex=xe;const A=B.matcher.exec(P);if(!A)break;const G=Nt(P.substring(xe,A.index),A);xe=A.index+G}Nt(P.substring(xe))}return Ee.finalize(),dt=Ee.toHTML(),{language:N,value:dt,relevance:He,illegal:!1,_emitter:Ee,_top:B}}catch(A){if(A.message&&A.message.includes("Illegal"))return{language:N,value:st(P),illegal:!0,relevance:0,_illegalBy:{message:A.message,index:xe,context:P.slice(xe-100,xe+100),mode:A.mode,resultSoFar:dt},_emitter:Ee};if(ne)return{language:N,value:st(P),illegal:!1,relevance:0,errorRaised:A,_emitter:Ee,_top:B};throw A}}function ct(N,P){P=P||h.languages||Object.keys(b);const Y=function lt(N){const P={value:st(N),illegal:!1,relevance:0,_top:M,_emitter:new h.__emitter(h)};return P._emitter.addText(N),P}(N),$=P.filter(he).filter(Tt).map(be=>Ye(be,N,!1));$.unshift(Y);const se=$.sort((be,fe)=>{if(be.relevance!==fe.relevance)return fe.relevance-be.relevance;if(be.language&&fe.language){if(he(be.language).supersetOf===fe.language)return 1;if(he(fe.language).supersetOf===be.language)return-1}return 0}),[Oe,Me]=se,Qe=Oe;return Qe.secondBest=Me,Qe}function _t(N){let P=null;const Y=function de(N){let P=N.className+" ";P+=N.parentNode?N.parentNode.className:"";const Y=h.languageDetectRe.exec(P);if(Y){const $=he(Y[1]);return $||(Fe(ae.replace("{}",Y[1])),Fe("Falling back to no-highlight mode for this block.",N)),$?Y[1]:"no-highlight"}return P.split(/\s+/).find($=>k($)||he($))}(N);if(k(Y))return;if($e("before:highlightElement",{el:N,language:Y}),N.children.length>0&&(h.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(N)),h.throwUnescapedHTML))throw new ft("One of your code blocks includes unescaped HTML.",N.innerHTML);P=N;const $=P.textContent,se=Y?re($,{language:Y,ignoreIllegals:!0}):ct($);N.innerHTML=se.value,function At(N,P,Y){const $=P&&I[P]||Y;N.classList.add("hljs"),N.classList.add(`language-${$}`)}(N,Y,se.language),N.result={language:se.language,re:se.relevance,relevance:se.relevance},se.secondBest&&(N.secondBest={language:se.secondBest.language,relevance:se.secondBest.relevance}),$e("after:highlightElement",{el:N,result:se,text:$})}let St=!1;function Ke(){"loading"!==document.readyState?document.querySelectorAll(h.cssSelector).forEach(_t):St=!0}function he(N){return N=(N||"").toLowerCase(),b[N]||b[I[N]]}function gt(N,{languageName:P}){"string"==typeof N&&(N=[N]),N.forEach(Y=>{I[Y.toLowerCase()]=P})}function Tt(N){const P=he(N);return P&&!P.disableAutodetect}function $e(N,P){const Y=N;F.forEach(function($){$[Y]&&$[Y](P)})}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",function ht(){St&&Ke()},!1),Object.assign(E,{highlight:re,highlightAuto:ct,highlightAll:Ke,highlightElement:_t,highlightBlock:function Ut(N){return ye("10.7.0","highlightBlock will be removed entirely in v12.0"),ye("10.7.0","Please use highlightElement now."),_t(N)},configure:function vt(N){h=mt(h,N)},initHighlighting:()=>{Ke(),ye("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")},initHighlightingOnLoad:function Dt(){Ke(),ye("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")},registerLanguage:function Mt(N,P){let Y=null;try{Y=P(E)}catch($){if(ve("Language definition for '{}' could not be registered.".replace("{}",N)),!ne)throw $;ve($),Y=M}Y.name||(Y.name=N),b[N]=Y,Y.rawDefinition=P.bind(null,E),Y.aliases&>(Y.aliases,{languageName:N})},unregisterLanguage:function Lt(N){delete b[N];for(const P of Object.keys(I))I[P]===N&&delete I[P]},listLanguages:function xt(){return Object.keys(b)},getLanguage:he,registerAliases:gt,autoDetection:Tt,inherit:mt,addPlugin:function wt(N){(function Pt(N){N["before:highlightBlock"]&&!N["before:highlightElement"]&&(N["before:highlightElement"]=P=>{N["before:highlightBlock"](Object.assign({block:P.el},P))}),N["after:highlightBlock"]&&!N["after:highlightElement"]&&(N["after:highlightElement"]=P=>{N["after:highlightBlock"](Object.assign({block:P.el},P))})})(N),F.push(N)},removePlugin:function kt(N){const P=F.indexOf(N);-1!==P&&F.splice(P,1)}}),E.debugMode=function(){ne=!1},E.safeMode=function(){ne=!0},E.versionString="11.8.0",E.regex={concat:g,lookahead:u,either:R,optional:S,anyNumberOfTimes:p};for(const N in j)"object"==typeof j[N]&&a(j[N]);return Object.assign(E,j),E},ke=pt({});ke.newInstance=()=>pt({}),r.exports=ke,ke.HighlightJS=ke,ke.default=ke},4406:(r,a,e)=>{var t=e(6548);t.registerLanguage("1c",e(4598)),t.registerLanguage("abnf",e(9709)),t.registerLanguage("accesslog",e(4686)),t.registerLanguage("actionscript",e(8206)),t.registerLanguage("ada",e(7437)),t.registerLanguage("angelscript",e(5459)),t.registerLanguage("apache",e(1130)),t.registerLanguage("applescript",e(1605)),t.registerLanguage("arcade",e(9185)),t.registerLanguage("arduino",e(4196)),t.registerLanguage("armasm",e(5334)),t.registerLanguage("xml",e(5149)),t.registerLanguage("asciidoc",e(4614)),t.registerLanguage("aspectj",e(4136)),t.registerLanguage("autohotkey",e(116)),t.registerLanguage("autoit",e(8389)),t.registerLanguage("avrasm",e(4584)),t.registerLanguage("awk",e(4969)),t.registerLanguage("axapta",e(4548)),t.registerLanguage("bash",e(8725)),t.registerLanguage("basic",e(4094)),t.registerLanguage("bnf",e(9132)),t.registerLanguage("brainfuck",e(3830)),t.registerLanguage("c",e(2242)),t.registerLanguage("cal",e(1005)),t.registerLanguage("capnproto",e(2336)),t.registerLanguage("ceylon",e(1709)),t.registerLanguage("clean",e(7547)),t.registerLanguage("clojure",e(9446)),t.registerLanguage("clojure-repl",e(7897)),t.registerLanguage("cmake",e(5554)),t.registerLanguage("coffeescript",e(3936)),t.registerLanguage("coq",e(9010)),t.registerLanguage("cos",e(6746)),t.registerLanguage("cpp",e(1094)),t.registerLanguage("crmsh",e(2935)),t.registerLanguage("crystal",e(3033)),t.registerLanguage("csharp",e(9120)),t.registerLanguage("csp",e(9578)),t.registerLanguage("css",e(6240)),t.registerLanguage("d",e(9290)),t.registerLanguage("markdown",e(8005)),t.registerLanguage("dart",e(3585)),t.registerLanguage("delphi",e(5106)),t.registerLanguage("diff",e(826)),t.registerLanguage("django",e(4545)),t.registerLanguage("dns",e(5871)),t.registerLanguage("dockerfile",e(3293)),t.registerLanguage("dos",e(2732)),t.registerLanguage("dsconfig",e(8149)),t.registerLanguage("dts",e(3284)),t.registerLanguage("dust",e(4393)),t.registerLanguage("ebnf",e(740)),t.registerLanguage("elixir",e(5265)),t.registerLanguage("elm",e(2272)),t.registerLanguage("ruby",e(3185)),t.registerLanguage("erb",e(1869)),t.registerLanguage("erlang-repl",e(1386)),t.registerLanguage("erlang",e(9101)),t.registerLanguage("excel",e(4242)),t.registerLanguage("fix",e(7939)),t.registerLanguage("flix",e(2428)),t.registerLanguage("fortran",e(2095)),t.registerLanguage("fsharp",e(5143)),t.registerLanguage("gams",e(3312)),t.registerLanguage("gauss",e(5955)),t.registerLanguage("gcode",e(2148)),t.registerLanguage("gherkin",e(1333)),t.registerLanguage("glsl",e(9579)),t.registerLanguage("gml",e(3189)),t.registerLanguage("go",e(4626)),t.registerLanguage("golo",e(9906)),t.registerLanguage("gradle",e(6704)),t.registerLanguage("graphql",e(2653)),t.registerLanguage("groovy",e(2091)),t.registerLanguage("haml",e(219)),t.registerLanguage("handlebars",e(3216)),t.registerLanguage("haskell",e(6686)),t.registerLanguage("haxe",e(9884)),t.registerLanguage("hsp",e(2518)),t.registerLanguage("http",e(901)),t.registerLanguage("hy",e(9415)),t.registerLanguage("inform7",e(6812)),t.registerLanguage("ini",e(5372)),t.registerLanguage("irpf90",e(1506)),t.registerLanguage("isbl",e(3204)),t.registerLanguage("java",e(3984)),t.registerLanguage("javascript",e(7354)),t.registerLanguage("jboss-cli",e(1214)),t.registerLanguage("json",e(5454)),t.registerLanguage("julia",e(1295)),t.registerLanguage("julia-repl",e(3796)),t.registerLanguage("kotlin",e(4643)),t.registerLanguage("lasso",e(8047)),t.registerLanguage("latex",e(460)),t.registerLanguage("ldif",e(3876)),t.registerLanguage("leaf",e(5181)),t.registerLanguage("less",e(3580)),t.registerLanguage("lisp",e(5498)),t.registerLanguage("livecodeserver",e(4003)),t.registerLanguage("livescript",e(253)),t.registerLanguage("llvm",e(272)),t.registerLanguage("lsl",e(6707)),t.registerLanguage("lua",e(1739)),t.registerLanguage("makefile",e(1910)),t.registerLanguage("mathematica",e(8580)),t.registerLanguage("matlab",e(6035)),t.registerLanguage("maxima",e(8593)),t.registerLanguage("mel",e(5673)),t.registerLanguage("mercury",e(3602)),t.registerLanguage("mipsasm",e(1331)),t.registerLanguage("mizar",e(1301)),t.registerLanguage("perl",e(8330)),t.registerLanguage("mojolicious",e(2333)),t.registerLanguage("monkey",e(6061)),t.registerLanguage("moonscript",e(3300)),t.registerLanguage("n1ql",e(6463)),t.registerLanguage("nestedtext",e(3027)),t.registerLanguage("nginx",e(1357)),t.registerLanguage("nim",e(782)),t.registerLanguage("nix",e(6261)),t.registerLanguage("node-repl",e(1729)),t.registerLanguage("nsis",e(1056)),t.registerLanguage("objectivec",e(8102)),t.registerLanguage("ocaml",e(6727)),t.registerLanguage("openscad",e(8994)),t.registerLanguage("oxygene",e(9604)),t.registerLanguage("parser3",e(4207)),t.registerLanguage("pf",e(5138)),t.registerLanguage("pgsql",e(6504)),t.registerLanguage("php",e(8188)),t.registerLanguage("php-template",e(1164)),t.registerLanguage("plaintext",e(7100)),t.registerLanguage("pony",e(7276)),t.registerLanguage("powershell",e(859)),t.registerLanguage("processing",e(292)),t.registerLanguage("profile",e(2327)),t.registerLanguage("prolog",e(4087)),t.registerLanguage("properties",e(7014)),t.registerLanguage("protobuf",e(9858)),t.registerLanguage("puppet",e(5469)),t.registerLanguage("purebasic",e(4413)),t.registerLanguage("python",e(1847)),t.registerLanguage("python-repl",e(1990)),t.registerLanguage("q",e(8801)),t.registerLanguage("qml",e(4581)),t.registerLanguage("r",e(2553)),t.registerLanguage("reasonml",e(4433)),t.registerLanguage("rib",e(945)),t.registerLanguage("roboconf",e(7181)),t.registerLanguage("routeros",e(698)),t.registerLanguage("rsl",e(2033)),t.registerLanguage("ruleslanguage",e(7394)),t.registerLanguage("rust",e(929)),t.registerLanguage("sas",e(5962)),t.registerLanguage("scala",e(5493)),t.registerLanguage("scheme",e(2750)),t.registerLanguage("scilab",e(3511)),t.registerLanguage("scss",e(9574)),t.registerLanguage("shell",e(3498)),t.registerLanguage("smali",e(5375)),t.registerLanguage("smalltalk",e(162)),t.registerLanguage("sml",e(2317)),t.registerLanguage("sqf",e(8387)),t.registerLanguage("sql",e(239)),t.registerLanguage("stan",e(5769)),t.registerLanguage("stata",e(5874)),t.registerLanguage("step21",e(957)),t.registerLanguage("stylus",e(909)),t.registerLanguage("subunit",e(9804)),t.registerLanguage("swift",e(7597)),t.registerLanguage("taggerscript",e(2387)),t.registerLanguage("yaml",e(8084)),t.registerLanguage("tap",e(7378)),t.registerLanguage("tcl",e(8875)),t.registerLanguage("thrift",e(3158)),t.registerLanguage("tp",e(9165)),t.registerLanguage("twig",e(4565)),t.registerLanguage("typescript",e(603)),t.registerLanguage("vala",e(4034)),t.registerLanguage("vbnet",e(2410)),t.registerLanguage("vbscript",e(4055)),t.registerLanguage("vbscript-html",e(9767)),t.registerLanguage("verilog",e(2870)),t.registerLanguage("vhdl",e(8679)),t.registerLanguage("vim",e(9376)),t.registerLanguage("wasm",e(2065)),t.registerLanguage("wren",e(863)),t.registerLanguage("x86asm",e(5402)),t.registerLanguage("xl",e(9905)),t.registerLanguage("xquery",e(53)),t.registerLanguage("zephir",e(7936)),t.HighlightJS=t,t.default=t,r.exports=t},4598:r=>{r.exports=function a(e){const t="[A-Za-z\u0410-\u042f\u0430-\u044f\u0451\u0401_][A-Za-z\u0410-\u042f\u0430-\u044f\u0451\u0401_0-9]+",o="\u0434\u0430\u043b\u0435\u0435 \u0432\u043e\u0437\u0432\u0440\u0430\u0442 \u0432\u044b\u0437\u0432\u0430\u0442\u044c\u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u0434\u043b\u044f \u0435\u0441\u043b\u0438 \u0438 \u0438\u0437 \u0438\u043b\u0438 \u0438\u043d\u0430\u0447\u0435 \u0438\u043d\u0430\u0447\u0435\u0435\u0441\u043b\u0438 \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u043a\u043e\u043d\u0435\u0446\u0435\u0441\u043b\u0438 \u043a\u043e\u043d\u0435\u0446\u043f\u043e\u043f\u044b\u0442\u043a\u0438 \u043a\u043e\u043d\u0435\u0446\u0446\u0438\u043a\u043b\u0430 \u043d\u0435 \u043d\u043e\u0432\u044b\u0439 \u043f\u0435\u0440\u0435\u0439\u0442\u0438 \u043f\u0435\u0440\u0435\u043c \u043f\u043e \u043f\u043e\u043a\u0430 \u043f\u043e\u043f\u044b\u0442\u043a\u0430 \u043f\u0440\u0435\u0440\u0432\u0430\u0442\u044c \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u044c \u0442\u043e\u0433\u0434\u0430 \u0446\u0438\u043a\u043b \u044d\u043a\u0441\u043f\u043e\u0440\u0442 ",ue="null \u0438\u0441\u0442\u0438\u043d\u0430 \u043b\u043e\u0436\u044c \u043d\u0435\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043e",ce=e.inherit(e.NUMBER_MODE),_e={className:"string",begin:'"|\\|',end:'"|$',contains:[{begin:'""'}]},X={begin:"'",end:"'",excludeBegin:!0,excludeEnd:!0,contains:[{className:"number",begin:"\\d{4}([\\.\\\\/:-]?\\d{2}){0,5}"}]},z=e.inherit(e.C_LINE_COMMENT_MODE);return{name:"1C:Enterprise",case_insensitive:!0,keywords:{$pattern:t,keyword:o,built_in:"\u0440\u0430\u0437\u0434\u0435\u043b\u0438\u0442\u0435\u043b\u044c\u0441\u0442\u0440\u0430\u043d\u0438\u0446 \u0440\u0430\u0437\u0434\u0435\u043b\u0438\u0442\u0435\u043b\u044c\u0441\u0442\u0440\u043e\u043a \u0441\u0438\u043c\u0432\u043e\u043b\u0442\u0430\u0431\u0443\u043b\u044f\u0446\u0438\u0438 ansitooem oemtoansi \u0432\u0432\u0435\u0441\u0442\u0438\u0432\u0438\u0434\u0441\u0443\u0431\u043a\u043e\u043d\u0442\u043e \u0432\u0432\u0435\u0441\u0442\u0438\u043f\u0435\u0440\u0435\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u0435 \u0432\u0432\u0435\u0441\u0442\u0438\u043f\u0435\u0440\u0438\u043e\u0434 \u0432\u0432\u0435\u0441\u0442\u0438\u043f\u043b\u0430\u043d\u0441\u0447\u0435\u0442\u043e\u0432 \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u044b\u0439\u043f\u043b\u0430\u043d\u0441\u0447\u0435\u0442\u043e\u0432 \u0434\u0430\u0442\u0430\u0433\u043e\u0434 \u0434\u0430\u0442\u0430\u043c\u0435\u0441\u044f\u0446 \u0434\u0430\u0442\u0430\u0447\u0438\u0441\u043b\u043e \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a\u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u0432\u0441\u0442\u0440\u043e\u043a\u0443 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u0438\u0437\u0441\u0442\u0440\u043e\u043a\u0438 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0438\u0431 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u043a\u043e\u0434\u0441\u0438\u043c\u0432 \u043a\u043e\u043d\u0433\u043e\u0434\u0430 \u043a\u043e\u043d\u0435\u0446\u043f\u0435\u0440\u0438\u043e\u0434\u0430\u0431\u0438 \u043a\u043e\u043d\u0435\u0446\u0440\u0430\u0441\u0441\u0447\u0438\u0442\u0430\u043d\u043d\u043e\u0433\u043e\u043f\u0435\u0440\u0438\u043e\u0434\u0430\u0431\u0438 \u043a\u043e\u043d\u0435\u0446\u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u0433\u043e\u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u0430 \u043a\u043e\u043d\u043a\u0432\u0430\u0440\u0442\u0430\u043b\u0430 \u043a\u043e\u043d\u043c\u0435\u0441\u044f\u0446\u0430 \u043a\u043e\u043d\u043d\u0435\u0434\u0435\u043b\u0438 \u043b\u043e\u0433 \u043b\u043e\u043310 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435\u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e\u0441\u0443\u0431\u043a\u043e\u043d\u0442\u043e \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435\u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435\u043d\u0430\u0431\u043e\u0440\u0430\u043f\u0440\u0430\u0432 \u043d\u0430\u0437\u043d\u0430\u0447\u0438\u0442\u044c\u0432\u0438\u0434 \u043d\u0430\u0437\u043d\u0430\u0447\u0438\u0442\u044c\u0441\u0447\u0435\u0442 \u043d\u0430\u0439\u0442\u0438\u0441\u0441\u044b\u043b\u043a\u0438 \u043d\u0430\u0447\u0430\u043b\u043e\u043f\u0435\u0440\u0438\u043e\u0434\u0430\u0431\u0438 \u043d\u0430\u0447\u0430\u043b\u043e\u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u0433\u043e\u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u0430 \u043d\u0430\u0447\u0433\u043e\u0434\u0430 \u043d\u0430\u0447\u043a\u0432\u0430\u0440\u0442\u0430\u043b\u0430 \u043d\u0430\u0447\u043c\u0435\u0441\u044f\u0446\u0430 \u043d\u0430\u0447\u043d\u0435\u0434\u0435\u043b\u0438 \u043d\u043e\u043c\u0435\u0440\u0434\u043d\u044f\u0433\u043e\u0434\u0430 \u043d\u043e\u043c\u0435\u0440\u0434\u043d\u044f\u043d\u0435\u0434\u0435\u043b\u0438 \u043d\u043e\u043c\u0435\u0440\u043d\u0435\u0434\u0435\u043b\u0438\u0433\u043e\u0434\u0430 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430\u043e\u0436\u0438\u0434\u0430\u043d\u0438\u044f \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439\u0436\u0443\u0440\u043d\u0430\u043b\u0440\u0430\u0441\u0447\u0435\u0442\u043e\u0432 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439\u043f\u043b\u0430\u043d\u0441\u0447\u0435\u0442\u043e\u0432 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439\u044f\u0437\u044b\u043a \u043e\u0447\u0438\u0441\u0442\u0438\u0442\u044c\u043e\u043a\u043d\u043e\u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439 \u043f\u0435\u0440\u0438\u043e\u0434\u0441\u0442\u0440 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u0432\u0440\u0435\u043c\u044f\u0442\u0430 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u0434\u0430\u0442\u0443\u0442\u0430 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0442\u0430 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f\u043e\u0442\u0431\u043e\u0440\u0430 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u043f\u043e\u0437\u0438\u0446\u0438\u044e\u0442\u0430 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u043f\u0443\u0441\u0442\u043e\u0435\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u0442\u0430 \u043f\u0440\u0435\u0444\u0438\u043a\u0441\u0430\u0432\u0442\u043e\u043d\u0443\u043c\u0435\u0440\u0430\u0446\u0438\u0438 \u043f\u0440\u043e\u043f\u0438\u0441\u044c \u043f\u0443\u0441\u0442\u043e\u0435\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0440\u0430\u0437\u043c \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u0442\u044c\u043f\u043e\u0437\u0438\u0446\u0438\u044e\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430 \u0440\u0430\u0441\u0441\u0447\u0438\u0442\u0430\u0442\u044c\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u044b\u043d\u0430 \u0440\u0430\u0441\u0441\u0447\u0438\u0442\u0430\u0442\u044c\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u044b\u043f\u043e \u0441\u0438\u043c\u0432 \u0441\u043e\u0437\u0434\u0430\u0442\u044c\u043e\u0431\u044a\u0435\u043a\u0442 \u0441\u0442\u0430\u0442\u0443\u0441\u0432\u043e\u0437\u0432\u0440\u0430\u0442\u0430 \u0441\u0442\u0440\u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e\u0441\u0442\u0440\u043e\u043a \u0441\u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u043f\u043e\u0437\u0438\u0446\u0438\u044e\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430 \u0441\u0447\u0435\u0442\u043f\u043e\u043a\u043e\u0434\u0443 \u0442\u0435\u043a\u0443\u0449\u0435\u0435\u0432\u0440\u0435\u043c\u044f \u0442\u0438\u043f\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0442\u0438\u043f\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f\u0441\u0442\u0440 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c\u0442\u0430\u043d\u0430 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c\u0442\u0430\u043f\u043e \u0444\u0438\u043a\u0441\u0448\u0430\u0431\u043b\u043e\u043d \u0448\u0430\u0431\u043b\u043e\u043d acos asin atan base64\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 base64\u0441\u0442\u0440\u043e\u043a\u0430 cos exp log log10 pow sin sqrt tan xml\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 xml\u0441\u0442\u0440\u043e\u043a\u0430 xml\u0442\u0438\u043f xml\u0442\u0438\u043f\u0437\u043d\u0447 \u0430\u043a\u0442\u0438\u0432\u043d\u043e\u0435\u043e\u043a\u043d\u043e \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u044b\u0439\u0440\u0435\u0436\u0438\u043c \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u044b\u0439\u0440\u0435\u0436\u0438\u043c\u0440\u0430\u0437\u0434\u0435\u043b\u0435\u043d\u0438\u044f\u0434\u0430\u043d\u043d\u044b\u0445 \u0431\u0443\u043b\u0435\u0432\u043e \u0432\u0432\u0435\u0441\u0442\u0438\u0434\u0430\u0442\u0443 \u0432\u0432\u0435\u0441\u0442\u0438\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0432\u0432\u0435\u0441\u0442\u0438\u0441\u0442\u0440\u043e\u043a\u0443 \u0432\u0432\u0435\u0441\u0442\u0438\u0447\u0438\u0441\u043b\u043e \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c\u0447\u0442\u0435\u043d\u0438\u044fxml \u0432\u043e\u043f\u0440\u043e\u0441 \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0432\u0440\u0435\u0433 \u0432\u044b\u0433\u0440\u0443\u0437\u0438\u0442\u044c\u0436\u0443\u0440\u043d\u0430\u043b\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c\u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0443\u043e\u043f\u043e\u0432\u0435\u0449\u0435\u043d\u0438\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c\u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443\u043f\u0440\u0430\u0432\u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u0432\u044b\u0447\u0438\u0441\u043b\u0438\u0442\u044c \u0433\u043e\u0434 \u0434\u0430\u043d\u043d\u044b\u0435\u0444\u043e\u0440\u043c\u044b\u0432\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0434\u0430\u0442\u0430 \u0434\u0435\u043d\u044c \u0434\u0435\u043d\u044c\u0433\u043e\u0434\u0430 \u0434\u0435\u043d\u044c\u043d\u0435\u0434\u0435\u043b\u0438 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c\u043c\u0435\u0441\u044f\u0446 \u0437\u0430\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0434\u0430\u043d\u043d\u044b\u0435\u0434\u043b\u044f\u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0437\u0430\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0440\u0430\u0431\u043e\u0442\u0443\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u044c\u0440\u0430\u0431\u043e\u0442\u0443\u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c\u0432\u043d\u0435\u0448\u043d\u044e\u044e\u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0443 \u0437\u0430\u043a\u0440\u044b\u0442\u044c\u0441\u043f\u0440\u0430\u0432\u043a\u0443 \u0437\u0430\u043f\u0438\u0441\u0430\u0442\u044cjson \u0437\u0430\u043f\u0438\u0441\u0430\u0442\u044cxml \u0437\u0430\u043f\u0438\u0441\u0430\u0442\u044c\u0434\u0430\u0442\u0443json \u0437\u0430\u043f\u0438\u0441\u044c\u0436\u0443\u0440\u043d\u0430\u043b\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438 \u0437\u0430\u043f\u043e\u043b\u043d\u0438\u0442\u044c\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f\u0441\u0432\u043e\u0439\u0441\u0442\u0432 \u0437\u0430\u043f\u0440\u043e\u0441\u0438\u0442\u044c\u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0435\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c\u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u0437\u0430\u0444\u0438\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u044e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u0432\u0434\u0430\u043d\u043d\u044b\u0435\u0444\u043e\u0440\u043c\u044b \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u0432\u0441\u0442\u0440\u043e\u043a\u0443\u0432\u043d\u0443\u0442\u0440 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u0432\u0444\u0430\u0439\u043b \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u0437\u0430\u043f\u043e\u043b\u043d\u0435\u043d\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u0438\u0437\u0441\u0442\u0440\u043e\u043a\u0438\u0432\u043d\u0443\u0442\u0440 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u0438\u0437\u0444\u0430\u0439\u043b\u0430 \u0438\u0437xml\u0442\u0438\u043f\u0430 \u0438\u043c\u043f\u043e\u0440\u0442\u043c\u043e\u0434\u0435\u043b\u0438xdto \u0438\u043c\u044f\u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0430 \u0438\u043c\u044f\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u043f\u0440\u0435\u0434\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0435\u0434\u0430\u043d\u043d\u044b\u0435 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f\u043e\u0431\u043e\u0448\u0438\u0431\u043a\u0435 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438\u043c\u043e\u0431\u0438\u043b\u044c\u043d\u043e\u0433\u043e\u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445\u0444\u0430\u0439\u043b\u043e\u0432 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u043e\u0432 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u043a\u043e\u0434\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u0442\u0440\u043e\u043a\u0443 \u043a\u043e\u0434\u043b\u043e\u043a\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438\u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439\u0431\u0430\u0437\u044b \u043a\u043e\u0434\u0441\u0438\u043c\u0432\u043e\u043b\u0430 \u043a\u043e\u043c\u0430\u043d\u0434\u0430\u0441\u0438\u0441\u0442\u0435\u043c\u044b \u043a\u043e\u043d\u0435\u0446\u0433\u043e\u0434\u0430 \u043a\u043e\u043d\u0435\u0446\u0434\u043d\u044f \u043a\u043e\u043d\u0435\u0446\u043a\u0432\u0430\u0440\u0442\u0430\u043b\u0430 \u043a\u043e\u043d\u0435\u0446\u043c\u0435\u0441\u044f\u0446\u0430 \u043a\u043e\u043d\u0435\u0446\u043c\u0438\u043d\u0443\u0442\u044b \u043a\u043e\u043d\u0435\u0446\u043d\u0435\u0434\u0435\u043b\u0438 \u043a\u043e\u043d\u0435\u0446\u0447\u0430\u0441\u0430 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044f\u0431\u0430\u0437\u044b\u0434\u0430\u043d\u043d\u044b\u0445\u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0430\u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0438 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044f\u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0430 \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0434\u0430\u043d\u043d\u044b\u0435\u0444\u043e\u0440\u043c\u044b \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0444\u0430\u0439\u043b \u043a\u0440\u0430\u0442\u043a\u043e\u0435\u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u043e\u0448\u0438\u0431\u043a\u0438 \u043b\u0435\u0432 \u043c\u0430\u043a\u0441 \u043c\u0435\u0441\u0442\u043d\u043e\u0435\u0432\u0440\u0435\u043c\u044f \u043c\u0435\u0441\u044f\u0446 \u043c\u0438\u043d \u043c\u0438\u043d\u0443\u0442\u0430 \u043c\u043e\u043d\u043e\u043f\u043e\u043b\u044c\u043d\u044b\u0439\u0440\u0435\u0436\u0438\u043c \u043d\u0430\u0439\u0442\u0438 \u043d\u0430\u0439\u0442\u0438\u043d\u0435\u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043c\u044b\u0435\u0441\u0438\u043c\u0432\u043e\u043b\u044bxml \u043d\u0430\u0439\u0442\u0438\u043e\u043a\u043d\u043e\u043f\u043e\u043d\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439\u0441\u0441\u044b\u043b\u043a\u0435 \u043d\u0430\u0439\u0442\u0438\u043f\u043e\u043c\u0435\u0447\u0435\u043d\u043d\u044b\u0435\u043d\u0430\u0443\u0434\u0430\u043b\u0435\u043d\u0438\u0435 \u043d\u0430\u0439\u0442\u0438\u043f\u043e\u0441\u0441\u044b\u043b\u043a\u0430\u043c \u043d\u0430\u0439\u0442\u0438\u0444\u0430\u0439\u043b\u044b \u043d\u0430\u0447\u0430\u043b\u043e\u0433\u043e\u0434\u0430 \u043d\u0430\u0447\u0430\u043b\u043e\u0434\u043d\u044f \u043d\u0430\u0447\u0430\u043b\u043e\u043a\u0432\u0430\u0440\u0442\u0430\u043b\u0430 \u043d\u0430\u0447\u0430\u043b\u043e\u043c\u0435\u0441\u044f\u0446\u0430 \u043d\u0430\u0447\u0430\u043b\u043e\u043c\u0438\u043d\u0443\u0442\u044b \u043d\u0430\u0447\u0430\u043b\u043e\u043d\u0435\u0434\u0435\u043b\u0438 \u043d\u0430\u0447\u0430\u043b\u043e\u0447\u0430\u0441\u0430 \u043d\u0430\u0447\u0430\u0442\u044c\u0437\u0430\u043f\u0440\u043e\u0441\u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u044f\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u043d\u0430\u0447\u0430\u0442\u044c\u0437\u0430\u043f\u0443\u0441\u043a\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043d\u0430\u0447\u0430\u0442\u044c\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435\u0444\u0430\u0439\u043b\u0430 \u043d\u0430\u0447\u0430\u0442\u044c\u043f\u0435\u0440\u0435\u043c\u0435\u0449\u0435\u043d\u0438\u0435\u0444\u0430\u0439\u043b\u0430 \u043d\u0430\u0447\u0430\u0442\u044c\u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435\u0432\u043d\u0435\u0448\u043d\u0435\u0439\u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b \u043d\u0430\u0447\u0430\u0442\u044c\u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435\u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f\u0440\u0430\u0431\u043e\u0442\u044b\u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0435\u0439 \u043d\u0430\u0447\u0430\u0442\u044c\u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435\u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f\u0440\u0430\u0431\u043e\u0442\u044b\u0441\u0444\u0430\u0439\u043b\u0430\u043c\u0438 \u043d\u0430\u0447\u0430\u0442\u044c\u043f\u043e\u0438\u0441\u043a\u0444\u0430\u0439\u043b\u043e\u0432 \u043d\u0430\u0447\u0430\u0442\u044c\u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435\u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0430\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445\u0444\u0430\u0439\u043b\u043e\u0432 \u043d\u0430\u0447\u0430\u0442\u044c\u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435\u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0430\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u043e\u0432 \u043d\u0430\u0447\u0430\u0442\u044c\u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435\u0440\u0430\u0431\u043e\u0447\u0435\u0433\u043e\u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0430\u0434\u0430\u043d\u043d\u044b\u0445\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u043d\u0430\u0447\u0430\u0442\u044c\u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435\u0444\u0430\u0439\u043b\u043e\u0432 \u043d\u0430\u0447\u0430\u0442\u044c\u043f\u043e\u043c\u0435\u0449\u0435\u043d\u0438\u0435\u0444\u0430\u0439\u043b\u0430 \u043d\u0430\u0447\u0430\u0442\u044c\u043f\u043e\u043c\u0435\u0449\u0435\u043d\u0438\u0435\u0444\u0430\u0439\u043b\u043e\u0432 \u043d\u0430\u0447\u0430\u0442\u044c\u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435\u0434\u0432\u043e\u0438\u0447\u043d\u044b\u0445\u0434\u0430\u043d\u043d\u044b\u0445\u0438\u0437\u0444\u0430\u0439\u043b\u0430 \u043d\u0430\u0447\u0430\u0442\u044c\u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435\u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0430 \u043d\u0430\u0447\u0430\u0442\u044c\u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u044e \u043d\u0430\u0447\u0430\u0442\u044c\u0443\u0434\u0430\u043b\u0435\u043d\u0438\u0435\u0444\u0430\u0439\u043b\u043e\u0432 \u043d\u0430\u0447\u0430\u0442\u044c\u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0443\u0432\u043d\u0435\u0448\u043d\u0435\u0439\u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b \u043d\u0430\u0447\u0430\u0442\u044c\u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0443\u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f\u0440\u0430\u0431\u043e\u0442\u044b\u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0435\u0439 \u043d\u0430\u0447\u0430\u0442\u044c\u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0443\u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f\u0440\u0430\u0431\u043e\u0442\u044b\u0441\u0444\u0430\u0439\u043b\u0430\u043c\u0438 \u043d\u0435\u0434\u0435\u043b\u044f\u0433\u043e\u0434\u0430 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u044c\u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u044f\u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f \u043d\u043e\u043c\u0435\u0440\u0441\u0435\u0430\u043d\u0441\u0430\u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439\u0431\u0430\u0437\u044b \u043d\u043e\u043c\u0435\u0440\u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f\u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439\u0431\u0430\u0437\u044b \u043d\u0440\u0435\u0433 \u043d\u0441\u0442\u0440 \u043e\u0431\u043d\u043e\u0432\u0438\u0442\u044c\u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u043e\u0431\u043d\u043e\u0432\u0438\u0442\u044c\u043d\u0443\u043c\u0435\u0440\u0430\u0446\u0438\u044e\u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432 \u043e\u0431\u043d\u043e\u0432\u0438\u0442\u044c\u043f\u043e\u0432\u0442\u043e\u0440\u043d\u043e\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b\u0435\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430\u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u044f\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u0438\u0442\u044c\u0444\u0430\u0439\u043b\u044b \u043e\u043a\u0440 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435\u043e\u0448\u0438\u0431\u043a\u0438 \u043e\u043f\u043e\u0432\u0435\u0441\u0442\u0438\u0442\u044c \u043e\u043f\u043e\u0432\u0435\u0441\u0442\u0438\u0442\u044c\u043e\u0431\u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0438 \u043e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c\u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0437\u0430\u043f\u0440\u043e\u0441\u0430\u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a\u043a\u043b\u0438\u0435\u043d\u0442\u0430\u043b\u0438\u0446\u0435\u043d\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c\u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0436\u0438\u0434\u0430\u043d\u0438\u044f \u043e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c\u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u043f\u043e\u0432\u0435\u0449\u0435\u043d\u0438\u044f \u043e\u0442\u043a\u0440\u044b\u0442\u044c\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043e\u0442\u043a\u0440\u044b\u0442\u044c\u0438\u043d\u0434\u0435\u043a\u0441\u0441\u043f\u0440\u0430\u0432\u043a\u0438 \u043e\u0442\u043a\u0440\u044b\u0442\u044c\u0441\u043e\u0434\u0435\u0440\u0436\u0430\u043d\u0438\u0435\u0441\u043f\u0440\u0430\u0432\u043a\u0438 \u043e\u0442\u043a\u0440\u044b\u0442\u044c\u0441\u043f\u0440\u0430\u0432\u043a\u0443 \u043e\u0442\u043a\u0440\u044b\u0442\u044c\u0444\u043e\u0440\u043c\u0443 \u043e\u0442\u043a\u0440\u044b\u0442\u044c\u0444\u043e\u0440\u043c\u0443\u043c\u043e\u0434\u0430\u043b\u044c\u043d\u043e \u043e\u0442\u043c\u0435\u043d\u0438\u0442\u044c\u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u044e \u043e\u0447\u0438\u0441\u0442\u0438\u0442\u044c\u0436\u0443\u0440\u043d\u0430\u043b\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438 \u043e\u0447\u0438\u0441\u0442\u0438\u0442\u044c\u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u043e\u0447\u0438\u0441\u0442\u0438\u0442\u044c\u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b\u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043f\u0435\u0440\u0435\u0439\u0442\u0438\u043f\u043e\u043d\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439\u0441\u0441\u044b\u043b\u043a\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u0441\u0442\u0438\u0442\u044c\u0444\u0430\u0439\u043b \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c\u0432\u043d\u0435\u0448\u043d\u044e\u044e\u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0443 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c\u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0437\u0430\u043f\u0440\u043e\u0441\u0430\u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a\u043a\u043b\u0438\u0435\u043d\u0442\u0430\u043b\u0438\u0446\u0435\u043d\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c\u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0436\u0438\u0434\u0430\u043d\u0438\u044f \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c\u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u043f\u043e\u0432\u0435\u0449\u0435\u043d\u0438\u044f \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c\u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435\u0440\u0430\u0431\u043e\u0442\u044b\u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0435\u0439 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c\u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435\u0440\u0430\u0431\u043e\u0442\u044b\u0441\u0444\u0430\u0439\u043b\u0430\u043c\u0438 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e\u0435\u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u043e\u0448\u0438\u0431\u043a\u0438 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c\u0432\u0432\u043e\u0434\u0434\u0430\u0442\u044b \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c\u0432\u0432\u043e\u0434\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c\u0432\u0432\u043e\u0434\u0441\u0442\u0440\u043e\u043a\u0438 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c\u0432\u0432\u043e\u0434\u0447\u0438\u0441\u043b\u0430 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c\u0432\u043e\u043f\u0440\u043e\u0441 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c\u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e\u043e\u0431\u043e\u0448\u0438\u0431\u043a\u0435 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c\u043d\u0430\u043a\u0430\u0440\u0442\u0435 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c\u043e\u043f\u043e\u0432\u0435\u0449\u0435\u043d\u0438\u0435\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c\u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0435 \u043f\u043e\u043b\u043d\u043e\u0435\u0438\u043c\u044f\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044ccom\u043e\u0431\u044a\u0435\u043a\u0442 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044cxml\u0442\u0438\u043f \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u0430\u0434\u0440\u0435\u0441\u043f\u043e\u043c\u0435\u0441\u0442\u043e\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u044e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043a\u0443\u0441\u0435\u0430\u043d\u0441\u043e\u0432 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u0432\u0440\u0435\u043c\u044f\u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u044f\u0441\u043f\u044f\u0449\u0435\u0433\u043e\u0441\u0435\u0430\u043d\u0441\u0430 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u0432\u0440\u0435\u043c\u044f\u0437\u0430\u0441\u044b\u043f\u0430\u043d\u0438\u044f\u043f\u0430\u0441\u0441\u0438\u0432\u043d\u043e\u0433\u043e\u0441\u0435\u0430\u043d\u0441\u0430 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u0432\u0440\u0435\u043c\u044f\u043e\u0436\u0438\u0434\u0430\u043d\u0438\u044f\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043a\u0438\u0434\u0430\u043d\u043d\u044b\u0445 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u0434\u0430\u043d\u043d\u044b\u0435\u0432\u044b\u0431\u043e\u0440\u0430 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0439\u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043a\u043b\u0438\u0435\u043d\u0442\u0430\u043b\u0438\u0446\u0435\u043d\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043c\u044b\u0435\u043a\u043e\u0434\u044b\u043b\u043e\u043a\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043c\u044b\u0435\u0447\u0430\u0441\u043e\u0432\u044b\u0435\u043f\u043e\u044f\u0441\u0430 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a\u043a\u043b\u0438\u0435\u043d\u0442\u0441\u043a\u043e\u0433\u043e\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a\u0441\u0438\u0441\u0442\u0435\u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f\u043e\u0442\u0431\u043e\u0440\u0430\u0436\u0443\u0440\u043d\u0430\u043b\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u0438\u0437\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0433\u043e\u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0430 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u0438\u043c\u044f\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0433\u043e\u0444\u0430\u0439\u043b\u0430 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u0438\u043c\u044f\u043a\u043b\u0438\u0435\u043d\u0442\u0430\u043b\u0438\u0446\u0435\u043d\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e\u044d\u043a\u0440\u0430\u043d\u043e\u0432\u043a\u043b\u0438\u0435\u043d\u0442\u0430 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u0436\u0443\u0440\u043d\u0430\u043b\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u0441\u043e\u0431\u044b\u0442\u0438\u044f\u0436\u0443\u0440\u043d\u0430\u043b\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u043a\u0440\u0430\u0442\u043a\u0438\u0439\u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u043c\u0430\u043a\u0435\u0442\u043e\u0444\u043e\u0440\u043c\u043b\u0435\u043d\u0438\u044f \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u043c\u0430\u0441\u043a\u0443\u0432\u0441\u0435\u0444\u0430\u0439\u043b\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u043c\u0430\u0441\u043a\u0443\u0432\u0441\u0435\u0444\u0430\u0439\u043b\u044b\u043a\u043b\u0438\u0435\u043d\u0442\u0430 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u043c\u0430\u0441\u043a\u0443\u0432\u0441\u0435\u0444\u0430\u0439\u043b\u044b\u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u043c\u0435\u0441\u0442\u043e\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435\u043f\u043e\u0430\u0434\u0440\u0435\u0441\u0443 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u0443\u044e\u0434\u043b\u0438\u043d\u0443\u043f\u0430\u0440\u043e\u043b\u0435\u0439\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u043d\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u043e\u043d\u043d\u0443\u044e\u0441\u0441\u044b\u043b\u043a\u0443 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u043d\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u043e\u043d\u043d\u0443\u044e\u0441\u0441\u044b\u043b\u043a\u0443\u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439\u0431\u0430\u0437\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435\u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438\u0431\u0430\u0437\u044b\u0434\u0430\u043d\u043d\u044b\u0445 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435\u043f\u0440\u0435\u0434\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0445\u0434\u0430\u043d\u043d\u044b\u0445\u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439\u0431\u0430\u0437\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u043e\u0431\u0449\u0438\u0439\u043c\u0430\u043a\u0435\u0442 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u043e\u0431\u0449\u0443\u044e\u0444\u043e\u0440\u043c\u0443 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u043e\u043a\u043d\u0430 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u043e\u043f\u0435\u0440\u0430\u0442\u0438\u0432\u043d\u0443\u044e\u043e\u0442\u043c\u0435\u0442\u043a\u0443\u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u043e\u0442\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435\u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0433\u043e\u0440\u0435\u0436\u0438\u043c\u0430 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b\u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u044b\u0445\u043e\u043f\u0446\u0438\u0439\u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u043f\u043e\u043b\u043d\u043e\u0435\u0438\u043c\u044f\u043f\u0440\u0435\u0434\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u043e\u0433\u043e\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u044f\u043d\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0445\u0441\u0441\u044b\u043b\u043e\u043a \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443\u0441\u043b\u043e\u0436\u043d\u043e\u0441\u0442\u0438\u043f\u0430\u0440\u043e\u043b\u0435\u0439\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u0440\u0430\u0437\u0434\u0435\u043b\u0438\u0442\u0435\u043b\u044c\u043f\u0443\u0442\u0438 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u0440\u0430\u0437\u0434\u0435\u043b\u0438\u0442\u0435\u043b\u044c\u043f\u0443\u0442\u0438\u043a\u043b\u0438\u0435\u043d\u0442\u0430 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u0440\u0430\u0437\u0434\u0435\u043b\u0438\u0442\u0435\u043b\u044c\u043f\u0443\u0442\u0438\u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u0441\u0435\u0430\u043d\u0441\u044b\u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439\u0431\u0430\u0437\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c\u043a\u043b\u0438\u0435\u043d\u0442\u0441\u043a\u043e\u0433\u043e\u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f\u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439\u0431\u0430\u0437\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0435\u043e\u0431\u044a\u0435\u043a\u0442\u0430\u0438\u0444\u043e\u0440\u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u0441\u043e\u0441\u0442\u0430\u0432\u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u0433\u043e\u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430odata \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f\u0431\u0430\u0437\u044b\u0434\u0430\u043d\u043d\u044b\u0445 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u0442\u0435\u043a\u0443\u0449\u0438\u0439\u0441\u0435\u0430\u043d\u0441\u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439\u0431\u0430\u0437\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u0444\u0430\u0439\u043b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u0444\u0430\u0439\u043b\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u0444\u043e\u0440\u043c\u0443 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u0443\u044e\u043e\u043f\u0446\u0438\u044e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u0443\u044e\u043e\u043f\u0446\u0438\u044e\u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u0447\u0430\u0441\u043e\u0432\u043e\u0439\u043f\u043e\u044f\u0441\u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439\u0431\u0430\u0437\u044b \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0438\u043e\u0441 \u043f\u043e\u043c\u0435\u0441\u0442\u0438\u0442\u044c\u0432\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0435\u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435 \u043f\u043e\u043c\u0435\u0441\u0442\u0438\u0442\u044c\u0444\u0430\u0439\u043b \u043f\u043e\u043c\u0435\u0441\u0442\u0438\u0442\u044c\u0444\u0430\u0439\u043b\u044b \u043f\u0440\u0430\u0432 \u043f\u0440\u0430\u0432\u043e\u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043f\u0440\u0435\u0434\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u043e\u0435\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u043a\u043e\u0434\u0430\u043b\u043e\u043a\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u043f\u0435\u0440\u0438\u043e\u0434\u0430 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u043f\u0440\u0430\u0432\u0430 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u0441\u043e\u0431\u044b\u0442\u0438\u044f\u0436\u0443\u0440\u043d\u0430\u043b\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u0447\u0430\u0441\u043e\u0432\u043e\u0433\u043e\u043f\u043e\u044f\u0441\u0430 \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0435 \u043f\u0440\u0435\u043a\u0440\u0430\u0442\u0438\u0442\u044c\u0440\u0430\u0431\u043e\u0442\u0443\u0441\u0438\u0441\u0442\u0435\u043c\u044b \u043f\u0440\u0438\u0432\u0438\u043b\u0435\u0433\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439\u0440\u0435\u0436\u0438\u043c \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u044c\u0432\u044b\u0437\u043e\u0432 \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u0442\u044cjson \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u0442\u044cxml \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u0442\u044c\u0434\u0430\u0442\u0443json \u043f\u0443\u0441\u0442\u0430\u044f\u0441\u0442\u0440\u043e\u043a\u0430 \u0440\u0430\u0431\u043e\u0447\u0438\u0439\u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0434\u0430\u043d\u043d\u044b\u0445\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0440\u0430\u0437\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0434\u0430\u043d\u043d\u044b\u0435\u0434\u043b\u044f\u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0440\u0430\u0437\u0434\u0435\u043b\u0438\u0442\u044c\u0444\u0430\u0439\u043b \u0440\u0430\u0437\u043e\u0440\u0432\u0430\u0442\u044c\u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435\u0441\u0432\u043d\u0435\u0448\u043d\u0438\u043c\u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u043e\u043c\u0434\u0430\u043d\u043d\u044b\u0445 \u0440\u0430\u0441\u043a\u043e\u0434\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u0442\u0440\u043e\u043a\u0443 \u0440\u043e\u043b\u044c\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u0430 \u0441\u0435\u043a\u0443\u043d\u0434\u0430 \u0441\u0438\u0433\u043d\u0430\u043b \u0441\u0438\u043c\u0432\u043e\u043b \u0441\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0436\u0443\u0440\u043d\u0430\u043b\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438 \u0441\u043c\u0435\u0449\u0435\u043d\u0438\u0435\u043b\u0435\u0442\u043d\u0435\u0433\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0441\u043c\u0435\u0449\u0435\u043d\u0438\u0435\u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u0433\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0441\u043e\u0435\u0434\u0438\u043d\u0438\u0442\u044c\u0431\u0443\u0444\u0435\u0440\u044b\u0434\u0432\u043e\u0438\u0447\u043d\u044b\u0445\u0434\u0430\u043d\u043d\u044b\u0445 \u0441\u043e\u0437\u0434\u0430\u0442\u044c\u043a\u0430\u0442\u0430\u043b\u043e\u0433 \u0441\u043e\u0437\u0434\u0430\u0442\u044c\u0444\u0430\u0431\u0440\u0438\u043a\u0443xdto \u0441\u043e\u043a\u0440\u043b \u0441\u043e\u043a\u0440\u043b\u043f \u0441\u043e\u043a\u0440\u043f \u0441\u043e\u043e\u0431\u0449\u0438\u0442\u044c \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c\u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0441\u0440\u0435\u0434 \u0441\u0442\u0440\u0434\u043b\u0438\u043d\u0430 \u0441\u0442\u0440\u0437\u0430\u043a\u0430\u043d\u0447\u0438\u0432\u0430\u0435\u0442\u0441\u044f\u043d\u0430 \u0441\u0442\u0440\u0437\u0430\u043c\u0435\u043d\u0438\u0442\u044c \u0441\u0442\u0440\u043d\u0430\u0439\u0442\u0438 \u0441\u0442\u0440\u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442\u0441\u044f\u0441 \u0441\u0442\u0440\u043e\u043a\u0430 \u0441\u0442\u0440\u043e\u043a\u0430\u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f\u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439\u0431\u0430\u0437\u044b \u0441\u0442\u0440\u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u0441\u0442\u0440\u043e\u043a\u0443 \u0441\u0442\u0440\u0440\u0430\u0437\u0434\u0435\u043b\u0438\u0442\u044c \u0441\u0442\u0440\u0441\u043e\u0435\u0434\u0438\u043d\u0438\u0442\u044c \u0441\u0442\u0440\u0441\u0440\u0430\u0432\u043d\u0438\u0442\u044c \u0441\u0442\u0440\u0447\u0438\u0441\u043b\u043e\u0432\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u0439 \u0441\u0442\u0440\u0447\u0438\u0441\u043b\u043e\u0441\u0442\u0440\u043e\u043a \u0441\u0442\u0440\u0448\u0430\u0431\u043b\u043e\u043d \u0442\u0435\u043a\u0443\u0449\u0430\u044f\u0434\u0430\u0442\u0430 \u0442\u0435\u043a\u0443\u0449\u0430\u044f\u0434\u0430\u0442\u0430\u0441\u0435\u0430\u043d\u0441\u0430 \u0442\u0435\u043a\u0443\u0449\u0430\u044f\u0443\u043d\u0438\u0432\u0435\u0440\u0441\u0430\u043b\u044c\u043d\u0430\u044f\u0434\u0430\u0442\u0430 \u0442\u0435\u043a\u0443\u0449\u0430\u044f\u0443\u043d\u0438\u0432\u0435\u0440\u0441\u0430\u043b\u044c\u043d\u0430\u044f\u0434\u0430\u0442\u0430\u0432\u043c\u0438\u043b\u043b\u0438\u0441\u0435\u043a\u0443\u043d\u0434\u0430\u0445 \u0442\u0435\u043a\u0443\u0449\u0438\u0439\u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430\u043a\u043b\u0438\u0435\u043d\u0442\u0441\u043a\u043e\u0433\u043e\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0442\u0435\u043a\u0443\u0449\u0438\u0439\u0432\u0430\u0440\u0438\u0430\u043d\u0442\u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0433\u043e\u0448\u0440\u0438\u0444\u0442\u0430\u043a\u043b\u0438\u0435\u043d\u0442\u0441\u043a\u043e\u0433\u043e\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0442\u0435\u043a\u0443\u0449\u0438\u0439\u043a\u043e\u0434\u043b\u043e\u043a\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0442\u0435\u043a\u0443\u0449\u0438\u0439\u0440\u0435\u0436\u0438\u043c\u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u0442\u0435\u043a\u0443\u0449\u0438\u0439\u044f\u0437\u044b\u043a \u0442\u0435\u043a\u0443\u0449\u0438\u0439\u044f\u0437\u044b\u043a\u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0442\u0438\u043f \u0442\u0438\u043f\u0437\u043d\u0447 \u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u044f\u0430\u043a\u0442\u0438\u0432\u043d\u0430 \u0442\u0440\u0435\u0433 \u0443\u0434\u0430\u043b\u0438\u0442\u044c\u0434\u0430\u043d\u043d\u044b\u0435\u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439\u0431\u0430\u0437\u044b \u0443\u0434\u0430\u043b\u0438\u0442\u044c\u0438\u0437\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0433\u043e\u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0430 \u0443\u0434\u0430\u043b\u0438\u0442\u044c\u043e\u0431\u044a\u0435\u043a\u0442\u044b \u0443\u0434\u0430\u043b\u0438\u0442\u044c\u0444\u0430\u0439\u043b\u044b \u0443\u043d\u0438\u0432\u0435\u0440\u0441\u0430\u043b\u044c\u043d\u043e\u0435\u0432\u0440\u0435\u043c\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c\u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u044b\u0439\u0440\u0435\u0436\u0438\u043c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c\u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u044b\u0439\u0440\u0435\u0436\u0438\u043c\u0440\u0430\u0437\u0434\u0435\u043b\u0435\u043d\u0438\u044f\u0434\u0430\u043d\u043d\u044b\u0445 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043a\u0443\u0441\u0435\u0430\u043d\u0441\u043e\u0432 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c\u0432\u043d\u0435\u0448\u043d\u044e\u044e\u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0443 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c\u0432\u0440\u0435\u043c\u044f\u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u044f\u0441\u043f\u044f\u0449\u0435\u0433\u043e\u0441\u0435\u0430\u043d\u0441\u0430 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c\u0432\u0440\u0435\u043c\u044f\u0437\u0430\u0441\u044b\u043f\u0430\u043d\u0438\u044f\u043f\u0430\u0441\u0441\u0438\u0432\u043d\u043e\u0433\u043e\u0441\u0435\u0430\u043d\u0441\u0430 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c\u0432\u0440\u0435\u043c\u044f\u043e\u0436\u0438\u0434\u0430\u043d\u0438\u044f\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043a\u0438\u0434\u0430\u043d\u043d\u044b\u0445 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c\u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a\u043a\u043b\u0438\u0435\u043d\u0442\u0441\u043a\u043e\u0433\u043e\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c\u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a\u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u0436\u0443\u0440\u043d\u0430\u043b\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u0441\u043e\u0431\u044b\u0442\u0438\u044f\u0436\u0443\u0440\u043d\u0430\u043b\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c\u043a\u0440\u0430\u0442\u043a\u0438\u0439\u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c\u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u0443\u044e\u0434\u043b\u0438\u043d\u0443\u043f\u0430\u0440\u043e\u043b\u0435\u0439\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c\u043c\u043e\u043d\u043e\u043f\u043e\u043b\u044c\u043d\u044b\u0439\u0440\u0435\u0436\u0438\u043c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c\u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438\u043a\u043b\u0438\u0435\u043d\u0442\u0430\u043b\u0438\u0446\u0435\u043d\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c\u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435\u043f\u0440\u0435\u0434\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0445\u0434\u0430\u043d\u043d\u044b\u0445\u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439\u0431\u0430\u0437\u044b \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c\u043e\u0442\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435\u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0433\u043e\u0440\u0435\u0436\u0438\u043c\u0430 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c\u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b\u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u044b\u0445\u043e\u043f\u0446\u0438\u0439\u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c\u043f\u0440\u0438\u0432\u0438\u043b\u0435\u0433\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439\u0440\u0435\u0436\u0438\u043c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c\u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443\u0441\u043b\u043e\u0436\u043d\u043e\u0441\u0442\u0438\u043f\u0430\u0440\u043e\u043b\u0435\u0439\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c\u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435\u0440\u0430\u0431\u043e\u0442\u044b\u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0435\u0439 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c\u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435\u0440\u0430\u0431\u043e\u0442\u044b\u0441\u0444\u0430\u0439\u043b\u0430\u043c\u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c\u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435\u0441\u0432\u043d\u0435\u0448\u043d\u0438\u043c\u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u043e\u043c\u0434\u0430\u043d\u043d\u044b\u0445 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c\u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0435\u043e\u0431\u044a\u0435\u043a\u0442\u0430\u0438\u0444\u043e\u0440\u043c\u044b \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c\u0441\u043e\u0441\u0442\u0430\u0432\u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u0433\u043e\u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430odata \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c\u0447\u0430\u0441\u043e\u0432\u043e\u0439\u043f\u043e\u044f\u0441\u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439\u0431\u0430\u0437\u044b \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c\u0447\u0430\u0441\u043e\u0432\u043e\u0439\u043f\u043e\u044f\u0441\u0441\u0435\u0430\u043d\u0441\u0430 \u0444\u043e\u0440\u043c\u0430\u0442 \u0446\u0435\u043b \u0447\u0430\u0441 \u0447\u0430\u0441\u043e\u0432\u043e\u0439\u043f\u043e\u044f\u0441 \u0447\u0430\u0441\u043e\u0432\u043e\u0439\u043f\u043e\u044f\u0441\u0441\u0435\u0430\u043d\u0441\u0430 \u0447\u0438\u0441\u043b\u043e \u0447\u0438\u0441\u043b\u043e\u043f\u0440\u043e\u043f\u0438\u0441\u044c\u044e \u044d\u0442\u043e\u0430\u0434\u0440\u0435\u0441\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0433\u043e\u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0430 ws\u0441\u0441\u044b\u043b\u043a\u0438 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430\u043a\u0430\u0440\u0442\u0438\u043d\u043e\u043a \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430\u043c\u0430\u043a\u0435\u0442\u043e\u0432\u043e\u0444\u043e\u0440\u043c\u043b\u0435\u043d\u0438\u044f\u043a\u043e\u043c\u043f\u043e\u043d\u043e\u0432\u043a\u0438\u0434\u0430\u043d\u043d\u044b\u0445 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430\u0441\u0442\u0438\u043b\u0435\u0439 \u0431\u0438\u0437\u043d\u0435\u0441\u043f\u0440\u043e\u0446\u0435\u0441\u0441\u044b \u0432\u043d\u0435\u0448\u043d\u0438\u0435\u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0438\u0434\u0430\u043d\u043d\u044b\u0445 \u0432\u043d\u0435\u0448\u043d\u0438\u0435\u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0432\u043d\u0435\u0448\u043d\u0438\u0435\u043e\u0442\u0447\u0435\u0442\u044b \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0435\u043f\u043e\u043a\u0443\u043f\u043a\u0438 \u0433\u043b\u0430\u0432\u043d\u044b\u0439\u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u0433\u043b\u0430\u0432\u043d\u044b\u0439\u0441\u0442\u0438\u043b\u044c \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u044b \u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c\u044b\u0435\u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u044f \u0436\u0443\u0440\u043d\u0430\u043b\u044b\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u043e\u0432 \u0437\u0430\u0434\u0430\u0447\u0438 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f\u043e\u0431\u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u0440\u0430\u0431\u043e\u0447\u0435\u0439\u0434\u0430\u0442\u044b \u0438\u0441\u0442\u043e\u0440\u0438\u044f\u0440\u0430\u0431\u043e\u0442\u044b\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u044b \u043a\u0440\u0438\u0442\u0435\u0440\u0438\u0438\u043e\u0442\u0431\u043e\u0440\u0430 \u043c\u0435\u0442\u0430\u0434\u0430\u043d\u043d\u044b\u0435 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435\u0440\u0435\u043a\u043b\u0430\u043c\u044b \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0430\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c\u044b\u0445\u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u0439 \u043e\u0442\u0447\u0435\u0442\u044b \u043f\u0430\u043d\u0435\u043b\u044c\u0437\u0430\u0434\u0430\u0447\u043e\u0441 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b\u0441\u0435\u0430\u043d\u0441\u0430 \u043f\u0435\u0440\u0435\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u044f \u043f\u043b\u0430\u043d\u044b\u0432\u0438\u0434\u043e\u0432\u0440\u0430\u0441\u0447\u0435\u0442\u0430 \u043f\u043b\u0430\u043d\u044b\u0432\u0438\u0434\u043e\u0432\u0445\u0430\u0440\u0430\u043a\u0442\u0435\u0440\u0438\u0441\u0442\u0438\u043a \u043f\u043b\u0430\u043d\u044b\u043e\u0431\u043c\u0435\u043d\u0430 \u043f\u043b\u0430\u043d\u044b\u0441\u0447\u0435\u0442\u043e\u0432 \u043f\u043e\u043b\u043d\u043e\u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0439\u043f\u043e\u0438\u0441\u043a \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0438\u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439\u0431\u0430\u0437\u044b \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430\u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0445\u043f\u043e\u043a\u0443\u043f\u043e\u043a \u0440\u0430\u0431\u043e\u0447\u0430\u044f\u0434\u0430\u0442\u0430 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f\u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u044b\u0431\u0443\u0445\u0433\u0430\u043b\u0442\u0435\u0440\u0438\u0438 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u044b\u043d\u0430\u043a\u043e\u043f\u043b\u0435\u043d\u0438\u044f \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u044b\u0440\u0430\u0441\u0447\u0435\u0442\u0430 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u044b\u0441\u0432\u0435\u0434\u0435\u043d\u0438\u0439 \u0440\u0435\u0433\u043b\u0430\u043c\u0435\u043d\u0442\u043d\u044b\u0435\u0437\u0430\u0434\u0430\u043d\u0438\u044f \u0441\u0435\u0440\u0438\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440xdto \u0441\u043f\u0440\u0430\u0432\u043e\u0447\u043d\u0438\u043a\u0438 \u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0430\u0433\u0435\u043e\u043f\u043e\u0437\u0438\u0446\u0438\u043e\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0430\u043a\u0440\u0438\u043f\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0438 \u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0430\u043c\u0443\u043b\u044c\u0442\u0438\u043c\u0435\u0434\u0438\u0430 \u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0430\u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f\u0440\u0435\u043a\u043b\u0430\u043c\u044b \u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0430\u043f\u043e\u0447\u0442\u044b \u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0430\u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0438\u0438 \u0444\u0430\u0431\u0440\u0438\u043a\u0430xdto \u0444\u0430\u0439\u043b\u043e\u0432\u044b\u0435\u043f\u043e\u0442\u043e\u043a\u0438 \u0444\u043e\u043d\u043e\u0432\u044b\u0435\u0437\u0430\u0434\u0430\u043d\u0438\u044f \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0430\u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435\u0432\u0430\u0440\u0438\u0430\u043d\u0442\u043e\u0432\u043e\u0442\u0447\u0435\u0442\u043e\u0432 \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435\u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a\u0434\u0430\u043d\u043d\u044b\u0445\u0444\u043e\u0440\u043c \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435\u043e\u0431\u0449\u0438\u0445\u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0445\u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a\u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0438\u0445\u0441\u043f\u0438\u0441\u043a\u043e\u0432 \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0445\u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a\u043e\u0442\u0447\u0435\u0442\u043e\u0432 \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435\u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0445\u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a ",class:"web\u0446\u0432\u0435\u0442\u0430 windows\u0446\u0432\u0435\u0442\u0430 windows\u0448\u0440\u0438\u0444\u0442\u044b \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430\u043a\u0430\u0440\u0442\u0438\u043d\u043e\u043a \u0440\u0430\u043c\u043a\u0438\u0441\u0442\u0438\u043b\u044f \u0441\u0438\u043c\u0432\u043e\u043b\u044b \u0446\u0432\u0435\u0442\u0430\u0441\u0442\u0438\u043b\u044f \u0448\u0440\u0438\u0444\u0442\u044b\u0441\u0442\u0438\u043b\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0435\u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0435\u0434\u0430\u043d\u043d\u044b\u0445\u0444\u043e\u0440\u043c\u044b\u0432\u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u0445 \u0430\u0432\u0442\u043e\u043d\u0443\u043c\u0435\u0440\u0430\u0446\u0438\u044f\u0432\u0444\u043e\u0440\u043c\u0435 \u0430\u0432\u0442\u043e\u0440\u0430\u0437\u0434\u0432\u0438\u0436\u0435\u043d\u0438\u0435\u0441\u0435\u0440\u0438\u0439 \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u044f\u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u044b \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0432\u044b\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u043d\u0438\u044f\u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432\u0438\u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u043e\u0432 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f\u0432\u044b\u0441\u043e\u0442\u043e\u0439\u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0432\u0435\u0440\u0442\u0438\u043a\u0430\u043b\u044c\u043d\u0430\u044f\u043f\u0440\u043e\u043a\u0440\u0443\u0442\u043a\u0430\u0444\u043e\u0440\u043c\u044b \u0432\u0435\u0440\u0442\u0438\u043a\u0430\u043b\u044c\u043d\u043e\u0435\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0432\u0435\u0440\u0442\u0438\u043a\u0430\u043b\u044c\u043d\u043e\u0435\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435\u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \u0432\u0438\u0434\u0433\u0440\u0443\u043f\u043f\u044b\u0444\u043e\u0440\u043c\u044b \u0432\u0438\u0434\u0434\u0435\u043a\u043e\u0440\u0430\u0446\u0438\u0438\u0444\u043e\u0440\u043c\u044b \u0432\u0438\u0434\u0434\u043e\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f\u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u0444\u043e\u0440\u043c\u044b \u0432\u0438\u0434\u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f\u0434\u0430\u043d\u043d\u044b\u0445 \u0432\u0438\u0434\u043a\u043d\u043e\u043f\u043a\u0438\u0444\u043e\u0440\u043c\u044b \u0432\u0438\u0434\u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0430\u0442\u0435\u043b\u044f \u0432\u0438\u0434\u043f\u043e\u0434\u043f\u0438\u0441\u0435\u0439\u043a\u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u0435 \u0432\u0438\u0434\u043f\u043e\u043b\u044f\u0444\u043e\u0440\u043c\u044b \u0432\u0438\u0434\u0444\u043b\u0430\u0436\u043a\u0430 \u0432\u043b\u0438\u044f\u043d\u0438\u0435\u0440\u0430\u0437\u043c\u0435\u0440\u0430\u043d\u0430\u043f\u0443\u0437\u044b\u0440\u0435\u043a\u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u044b \u0433\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u0430\u043b\u044c\u043d\u043e\u0435\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0433\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u0430\u043b\u044c\u043d\u043e\u0435\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435\u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \u0433\u0440\u0443\u043f\u043f\u0438\u0440\u043e\u0432\u043a\u0430\u043a\u043e\u043b\u043e\u043d\u043e\u043a \u0433\u0440\u0443\u043f\u043f\u0438\u0440\u043e\u0432\u043a\u0430\u043f\u043e\u0434\u0447\u0438\u043d\u0435\u043d\u043d\u044b\u0445\u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432\u0444\u043e\u0440\u043c\u044b \u0433\u0440\u0443\u043f\u043f\u044b\u0438\u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435\u043f\u0435\u0440\u0435\u0442\u0430\u0441\u043a\u0438\u0432\u0430\u043d\u0438\u044f \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0439\u0440\u0435\u0436\u0438\u043c\u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043c\u044b\u0435\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f\u043f\u0435\u0440\u0435\u0442\u0430\u0441\u043a\u0438\u0432\u0430\u043d\u0438\u044f \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u043c\u0435\u0436\u0434\u0443\u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u043c\u0438\u0444\u043e\u0440\u043c\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u0432\u044b\u0432\u043e\u0434\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043f\u043e\u043b\u043e\u0441\u044b\u043f\u0440\u043e\u043a\u0440\u0443\u0442\u043a\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u043e\u0435\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u0442\u043e\u0447\u043a\u0438\u0431\u0438\u0440\u0436\u0435\u0432\u043e\u0439\u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u044b \u0438\u0441\u0442\u043e\u0440\u0438\u044f\u0432\u044b\u0431\u043e\u0440\u0430\u043f\u0440\u0438\u0432\u0432\u043e\u0434\u0435 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439\u043e\u0441\u0438\u0442\u043e\u0447\u0435\u043a\u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u044b \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f\u0440\u0430\u0437\u043c\u0435\u0440\u0430\u043f\u0443\u0437\u044b\u0440\u044c\u043a\u0430\u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u044b \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u044f\u0433\u0440\u0443\u043f\u043f\u044b\u043a\u043e\u043c\u0430\u043d\u0434 \u043c\u0430\u043a\u0441\u0438\u043c\u0443\u043c\u0441\u0435\u0440\u0438\u0439 \u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e\u0435\u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435\u0434\u0435\u0440\u0435\u0432\u0430 \u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e\u0435\u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435\u0441\u043f\u0438\u0441\u043a\u0430 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435\u0442\u0435\u043a\u0441\u0442\u0430\u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043e\u0440\u0438\u0435\u043d\u0442\u0430\u0446\u0438\u044f\u0434\u0435\u043d\u0434\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u043e\u0440\u0438\u0435\u043d\u0442\u0430\u0446\u0438\u044f\u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u044b \u043e\u0440\u0438\u0435\u043d\u0442\u0430\u0446\u0438\u044f\u043c\u0435\u0442\u043e\u043a\u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u044b \u043e\u0440\u0438\u0435\u043d\u0442\u0430\u0446\u0438\u044f\u043c\u0435\u0442\u043e\u043a\u0441\u0432\u043e\u0434\u043d\u043e\u0439\u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u044b \u043e\u0440\u0438\u0435\u043d\u0442\u0430\u0446\u0438\u044f\u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u0444\u043e\u0440\u043c\u044b \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435\u0432\u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u0435 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435\u0432\u043b\u0435\u0433\u0435\u043d\u0434\u0435\u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u044b \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435\u0433\u0440\u0443\u043f\u043f\u044b\u043a\u043d\u043e\u043f\u043e\u043a \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435\u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0430\u0448\u043a\u0430\u043b\u044b\u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u044b \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439\u0441\u0432\u043e\u0434\u043d\u043e\u0439\u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u044b \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f\u0438\u0437\u043c\u0435\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0439\u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u044b \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435\u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u0430\u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u044b\u0433\u0430\u043d\u0442\u0430 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435\u043a\u043d\u043e\u043f\u043a\u0438 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435\u043a\u043d\u043e\u043f\u043a\u0438\u0432\u044b\u0431\u043e\u0440\u0430 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435\u043e\u0431\u0441\u0443\u0436\u0434\u0435\u043d\u0438\u0439\u0444\u043e\u0440\u043c\u044b \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435\u043e\u0431\u044b\u0447\u043d\u043e\u0439\u0433\u0440\u0443\u043f\u043f\u044b \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435\u043e\u0442\u0440\u0438\u0446\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0445\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439\u043f\u0443\u0437\u044b\u0440\u044c\u043a\u043e\u0432\u043e\u0439\u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u044b \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435\u043f\u0430\u043d\u0435\u043b\u0438\u043f\u043e\u0438\u0441\u043a\u0430 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435\u043f\u043e\u0434\u0441\u043a\u0430\u0437\u043a\u0438 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435\u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u044f\u043f\u0440\u0438\u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435\u0440\u0430\u0437\u043c\u0435\u0442\u043a\u0438\u043f\u043e\u043b\u043e\u0441\u044b\u0440\u0435\u0433\u0443\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435\u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0444\u043e\u0440\u043c\u044b \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435\u0442\u0430\u0431\u043b\u0438\u0446\u044b \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435\u0442\u0435\u043a\u0441\u0442\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f\u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u044b\u0433\u0430\u043d\u0442\u0430 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435\u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f\u043e\u0431\u044b\u0447\u043d\u043e\u0439\u0433\u0440\u0443\u043f\u043f\u044b \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435\u0444\u0438\u0433\u0443\u0440\u044b\u043a\u043d\u043e\u043f\u043a\u0438 \u043f\u0430\u043b\u0438\u0442\u0440\u0430\u0446\u0432\u0435\u0442\u043e\u0432\u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u044b \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435\u043e\u0431\u044b\u0447\u043d\u043e\u0439\u0433\u0440\u0443\u043f\u043f\u044b \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430\u043c\u0430\u0441\u0448\u0442\u0430\u0431\u0430\u0434\u0435\u043d\u0434\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430\u043c\u0430\u0441\u0448\u0442\u0430\u0431\u0430\u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u044b\u0433\u0430\u043d\u0442\u0430 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430\u043c\u0430\u0441\u0448\u0442\u0430\u0431\u0430\u0441\u0432\u043e\u0434\u043d\u043e\u0439\u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u044b \u043f\u043e\u0438\u0441\u043a\u0432\u0442\u0430\u0431\u043b\u0438\u0446\u0435\u043f\u0440\u0438\u0432\u0432\u043e\u0434\u0435 \u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435\u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0430\u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u0444\u043e\u0440\u043c\u044b \u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435\u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0438\u043a\u043d\u043e\u043f\u043a\u0438\u0444\u043e\u0440\u043c\u044b \u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435\u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0438\u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u043e\u0439\u0441\u0445\u0435\u043c\u044b \u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435\u043a\u043e\u043c\u0430\u043d\u0434\u043d\u043e\u0439\u043f\u0430\u043d\u0435\u043b\u0438\u0444\u043e\u0440\u043c\u044b \u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435\u043a\u043e\u043c\u0430\u043d\u0434\u043d\u043e\u0439\u043f\u0430\u043d\u0435\u043b\u0438\u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u0444\u043e\u0440\u043c\u044b \u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435\u043e\u043f\u043e\u0440\u043d\u043e\u0439\u0442\u043e\u0447\u043a\u0438\u043e\u0442\u0440\u0438\u0441\u043e\u0432\u043a\u0438 \u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435\u043f\u043e\u0434\u043f\u0438\u0441\u0435\u0439\u043a\u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u0435 \u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435\u043f\u043e\u0434\u043f\u0438\u0441\u0435\u0439\u0448\u043a\u0430\u043b\u044b\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439\u0438\u0437\u043c\u0435\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0439\u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u044b \u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435\u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f\u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0430 \u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435\u0441\u0442\u0440\u043e\u043a\u0438\u043f\u043e\u0438\u0441\u043a\u0430 \u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435\u0442\u0435\u043a\u0441\u0442\u0430\u0441\u043e\u0435\u0434\u0438\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0439\u043b\u0438\u043d\u0438\u0438 \u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435\u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f\u043f\u043e\u0438\u0441\u043a\u043e\u043c \u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435\u0448\u043a\u0430\u043b\u044b\u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u043f\u043e\u0440\u044f\u0434\u043e\u043a\u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f\u0442\u043e\u0447\u0435\u043a\u0433\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u0430\u043b\u044c\u043d\u043e\u0439\u0433\u0438\u0441\u0442\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u043f\u043e\u0440\u044f\u0434\u043e\u043a\u0441\u0435\u0440\u0438\u0439\u0432\u043b\u0435\u0433\u0435\u043d\u0434\u0435\u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u044b \u0440\u0430\u0437\u043c\u0435\u0440\u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0438 \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435\u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0430\u0448\u043a\u0430\u043b\u044b\u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u044b \u0440\u0430\u0441\u0442\u044f\u0433\u0438\u0432\u0430\u043d\u0438\u0435\u043f\u043e\u0432\u0435\u0440\u0442\u0438\u043a\u0430\u043b\u0438\u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u044b\u0433\u0430\u043d\u0442\u0430 \u0440\u0435\u0436\u0438\u043c\u0430\u0432\u0442\u043e\u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f\u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f \u0440\u0435\u0436\u0438\u043c\u0432\u0432\u043e\u0434\u0430\u0441\u0442\u0440\u043e\u043a\u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0440\u0435\u0436\u0438\u043c\u0432\u044b\u0431\u043e\u0440\u0430\u043d\u0435\u0437\u0430\u043f\u043e\u043b\u043d\u0435\u043d\u043d\u043e\u0433\u043e \u0440\u0435\u0436\u0438\u043c\u0432\u044b\u0434\u0435\u043b\u0435\u043d\u0438\u044f\u0434\u0430\u0442\u044b \u0440\u0435\u0436\u0438\u043c\u0432\u044b\u0434\u0435\u043b\u0435\u043d\u0438\u044f\u0441\u0442\u0440\u043e\u043a\u0438\u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0440\u0435\u0436\u0438\u043c\u0432\u044b\u0434\u0435\u043b\u0435\u043d\u0438\u044f\u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0440\u0435\u0436\u0438\u043c\u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f\u0440\u0430\u0437\u043c\u0435\u0440\u0430 \u0440\u0435\u0436\u0438\u043c\u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f\u0441\u0432\u044f\u0437\u0430\u043d\u043d\u043e\u0433\u043e\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0440\u0435\u0436\u0438\u043c\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f\u0434\u0438\u0430\u043b\u043e\u0433\u0430\u043f\u0435\u0447\u0430\u0442\u0438 \u0440\u0435\u0436\u0438\u043c\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f\u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0440\u0435\u0436\u0438\u043c\u043c\u0430\u0441\u0448\u0442\u0430\u0431\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f\u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0430 \u0440\u0435\u0436\u0438\u043c\u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0433\u043e\u043e\u043a\u043d\u0430\u043a\u043b\u0438\u0435\u043d\u0442\u0441\u043a\u043e\u0433\u043e\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0440\u0435\u0436\u0438\u043c\u043e\u0442\u043a\u0440\u044b\u0442\u0438\u044f\u043e\u043a\u043d\u0430\u0444\u043e\u0440\u043c\u044b \u0440\u0435\u0436\u0438\u043c\u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f\u0432\u044b\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u0440\u0435\u0436\u0438\u043c\u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f\u0433\u0435\u043e\u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u043e\u0439\u0441\u0445\u0435\u043c\u044b \u0440\u0435\u0436\u0438\u043c\u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439\u0441\u0435\u0440\u0438\u0438 \u0440\u0435\u0436\u0438\u043c\u043e\u0442\u0440\u0438\u0441\u043e\u0432\u043a\u0438\u0441\u0435\u0442\u043a\u0438\u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u043e\u0439\u0441\u0445\u0435\u043c\u044b \u0440\u0435\u0436\u0438\u043c\u043f\u043e\u043b\u0443\u043f\u0440\u043e\u0437\u0440\u0430\u0447\u043d\u043e\u0441\u0442\u0438\u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u044b \u0440\u0435\u0436\u0438\u043c\u043f\u0440\u043e\u0431\u0435\u043b\u043e\u0432\u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u044b \u0440\u0435\u0436\u0438\u043c\u0440\u0430\u0437\u043c\u0435\u0449\u0435\u043d\u0438\u044f\u043d\u0430\u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 \u0440\u0435\u0436\u0438\u043c\u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f\u043a\u043e\u043b\u043e\u043d\u043a\u0438 \u0440\u0435\u0436\u0438\u043c\u0441\u0433\u043b\u0430\u0436\u0438\u0432\u0430\u043d\u0438\u044f\u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u044b \u0440\u0435\u0436\u0438\u043c\u0441\u0433\u043b\u0430\u0436\u0438\u0432\u0430\u043d\u0438\u044f\u0438\u043d\u0434\u0438\u043a\u0430\u0442\u043e\u0440\u0430 \u0440\u0435\u0436\u0438\u043c\u0441\u043f\u0438\u0441\u043a\u0430\u0437\u0430\u0434\u0430\u0447 \u0441\u043a\u0432\u043e\u0437\u043d\u043e\u0435\u0432\u044b\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u043d\u0438\u0435 \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0435\u0434\u0430\u043d\u043d\u044b\u0445\u0444\u043e\u0440\u043c\u044b\u0432\u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u0445 \u0441\u043f\u043e\u0441\u043e\u0431\u0437\u0430\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f\u0442\u0435\u043a\u0441\u0442\u0430\u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0430\u0448\u043a\u0430\u043b\u044b\u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u044b \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f\u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0438\u0432\u0430\u044e\u0449\u0435\u0433\u043e\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f\u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u044b \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u0430\u044f\u0433\u0440\u0443\u043f\u043f\u0430\u043a\u043e\u043c\u0430\u043d\u0434 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u0435\u043e\u0444\u043e\u0440\u043c\u043b\u0435\u043d\u0438\u0435 \u0441\u0442\u0430\u0442\u0443\u0441\u043e\u043f\u043e\u0432\u0435\u0449\u0435\u043d\u0438\u044f\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0441\u0442\u0438\u043b\u044c\u0441\u0442\u0440\u0435\u043b\u043a\u0438 \u0442\u0438\u043f\u0430\u043f\u043f\u0440\u043e\u043a\u0441\u0438\u043c\u0430\u0446\u0438\u0438\u043b\u0438\u043d\u0438\u0438\u0442\u0440\u0435\u043d\u0434\u0430\u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u044b \u0442\u0438\u043f\u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u044b \u0442\u0438\u043f\u0435\u0434\u0438\u043d\u0438\u0446\u044b\u0448\u043a\u0430\u043b\u044b\u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0442\u0438\u043f\u0438\u043c\u043f\u043e\u0440\u0442\u0430\u0441\u0435\u0440\u0438\u0439\u0441\u043b\u043e\u044f\u0433\u0435\u043e\u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u043e\u0439\u0441\u0445\u0435\u043c\u044b \u0442\u0438\u043f\u043b\u0438\u043d\u0438\u0438\u0433\u0435\u043e\u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u043e\u0439\u0441\u0445\u0435\u043c\u044b \u0442\u0438\u043f\u043b\u0438\u043d\u0438\u0438\u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u044b \u0442\u0438\u043f\u043c\u0430\u0440\u043a\u0435\u0440\u0430\u0433\u0435\u043e\u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u043e\u0439\u0441\u0445\u0435\u043c\u044b \u0442\u0438\u043f\u043c\u0430\u0440\u043a\u0435\u0440\u0430\u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u044b \u0442\u0438\u043f\u043e\u0431\u043b\u0430\u0441\u0442\u0438\u043e\u0444\u043e\u0440\u043c\u043b\u0435\u043d\u0438\u044f \u0442\u0438\u043f\u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u0438\u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0430\u0434\u0430\u043d\u043d\u044b\u0445\u0433\u0435\u043e\u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u043e\u0439\u0441\u0445\u0435\u043c\u044b \u0442\u0438\u043f\u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f\u0441\u0435\u0440\u0438\u0438\u0441\u043b\u043e\u044f\u0433\u0435\u043e\u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u043e\u0439\u0441\u0445\u0435\u043c\u044b \u0442\u0438\u043f\u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f\u0442\u043e\u0447\u0435\u0447\u043d\u043e\u0433\u043e\u043e\u0431\u044a\u0435\u043a\u0442\u0430\u0433\u0435\u043e\u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u043e\u0439\u0441\u0445\u0435\u043c\u044b \u0442\u0438\u043f\u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f\u0448\u043a\u0430\u043b\u044b\u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u043b\u0435\u0433\u0435\u043d\u0434\u044b\u0433\u0435\u043e\u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u043e\u0439\u0441\u0445\u0435\u043c\u044b \u0442\u0438\u043f\u043f\u043e\u0438\u0441\u043a\u0430\u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432\u0433\u0435\u043e\u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u043e\u0439\u0441\u0445\u0435\u043c\u044b \u0442\u0438\u043f\u043f\u0440\u043e\u0435\u043a\u0446\u0438\u0438\u0433\u0435\u043e\u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u043e\u0439\u0441\u0445\u0435\u043c\u044b \u0442\u0438\u043f\u0440\u0430\u0437\u043c\u0435\u0449\u0435\u043d\u0438\u044f\u0438\u0437\u043c\u0435\u0440\u0435\u043d\u0438\u0439 \u0442\u0438\u043f\u0440\u0430\u0437\u043c\u0435\u0449\u0435\u043d\u0438\u044f\u0440\u0435\u043a\u0432\u0438\u0437\u0438\u0442\u043e\u0432\u0438\u0437\u043c\u0435\u0440\u0435\u043d\u0438\u0439 \u0442\u0438\u043f\u0440\u0430\u043c\u043a\u0438\u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0442\u0438\u043f\u0441\u0432\u043e\u0434\u043d\u043e\u0439\u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u044b \u0442\u0438\u043f\u0441\u0432\u044f\u0437\u0438\u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u044b\u0433\u0430\u043d\u0442\u0430 \u0442\u0438\u043f\u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439\u043f\u043e\u0441\u0435\u0440\u0438\u044f\u043c\u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u044b \u0442\u0438\u043f\u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f\u0442\u043e\u0447\u0435\u043a\u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u044b \u0442\u0438\u043f\u0441\u043e\u0435\u0434\u0438\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0439\u043b\u0438\u043d\u0438\u0438 \u0442\u0438\u043f\u0441\u0442\u043e\u0440\u043e\u043d\u044b\u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u043e\u0439\u0441\u0445\u0435\u043c\u044b \u0442\u0438\u043f\u0444\u043e\u0440\u043c\u044b\u043e\u0442\u0447\u0435\u0442\u0430 \u0442\u0438\u043f\u0448\u043a\u0430\u043b\u044b\u0440\u0430\u0434\u0430\u0440\u043d\u043e\u0439\u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u044b \u0444\u0430\u043a\u0442\u043e\u0440\u043b\u0438\u043d\u0438\u0438\u0442\u0440\u0435\u043d\u0434\u0430\u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u044b \u0444\u0438\u0433\u0443\u0440\u0430\u043a\u043d\u043e\u043f\u043a\u0438 \u0444\u0438\u0433\u0443\u0440\u044b\u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u043e\u0439\u0441\u0445\u0435\u043c\u044b \u0444\u0438\u043a\u0441\u0430\u0446\u0438\u044f\u0432\u0442\u0430\u0431\u043b\u0438\u0446\u0435 \u0444\u043e\u0440\u043c\u0430\u0442\u0434\u043d\u044f\u0448\u043a\u0430\u043b\u044b\u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0444\u043e\u0440\u043c\u0430\u0442\u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0438 \u0448\u0438\u0440\u0438\u043d\u0430\u043f\u043e\u0434\u0447\u0438\u043d\u0435\u043d\u043d\u044b\u0445\u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432\u0444\u043e\u0440\u043c\u044b \u0432\u0438\u0434\u0434\u0432\u0438\u0436\u0435\u043d\u0438\u044f\u0431\u0443\u0445\u0433\u0430\u043b\u0442\u0435\u0440\u0438\u0438 \u0432\u0438\u0434\u0434\u0432\u0438\u0436\u0435\u043d\u0438\u044f\u043d\u0430\u043a\u043e\u043f\u043b\u0435\u043d\u0438\u044f \u0432\u0438\u0434\u043f\u0435\u0440\u0438\u043e\u0434\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0440\u0430\u0441\u0447\u0435\u0442\u0430 \u0432\u0438\u0434\u0441\u0447\u0435\u0442\u0430 \u0432\u0438\u0434\u0442\u043e\u0447\u043a\u0438\u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0430\u0431\u0438\u0437\u043d\u0435\u0441\u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u0430\u0433\u0440\u0435\u0433\u0430\u0442\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u043d\u0430\u043a\u043e\u043f\u043b\u0435\u043d\u0438\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u0433\u0440\u0443\u043f\u043f\u0438\u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u0440\u0435\u0436\u0438\u043c\u0430\u043f\u0440\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u0441\u0440\u0435\u0437\u0430 \u043f\u0435\u0440\u0438\u043e\u0434\u0438\u0447\u043d\u043e\u0441\u0442\u044c\u0430\u0433\u0440\u0435\u0433\u0430\u0442\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u043d\u0430\u043a\u043e\u043f\u043b\u0435\u043d\u0438\u044f \u0440\u0435\u0436\u0438\u043c\u0430\u0432\u0442\u043e\u0432\u0440\u0435\u043c\u044f \u0440\u0435\u0436\u0438\u043c\u0437\u0430\u043f\u0438\u0441\u0438\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430 \u0440\u0435\u0436\u0438\u043c\u043f\u0440\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u044f\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430 \u0430\u0432\u0442\u043e\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u044f\u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439 \u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043c\u044b\u0439\u043d\u043e\u043c\u0435\u0440\u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0430\u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u0434\u0430\u043d\u043d\u044b\u0445 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435\u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u0434\u0430\u043d\u043d\u044b\u0445 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u0440\u0430\u0441\u0448\u0438\u0444\u0440\u043e\u0432\u043a\u0438\u0442\u0430\u0431\u043b\u0438\u0447\u043d\u043e\u0433\u043e\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430 \u043e\u0440\u0438\u0435\u043d\u0442\u0430\u0446\u0438\u044f\u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435\u0438\u0442\u043e\u0433\u043e\u0432\u043a\u043e\u043b\u043e\u043d\u043e\u043a\u0441\u0432\u043e\u0434\u043d\u043e\u0439\u0442\u0430\u0431\u043b\u0438\u0446\u044b \u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435\u0438\u0442\u043e\u0433\u043e\u0432\u0441\u0442\u0440\u043e\u043a\u0441\u0432\u043e\u0434\u043d\u043e\u0439\u0442\u0430\u0431\u043b\u0438\u0446\u044b \u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435\u0442\u0435\u043a\u0441\u0442\u0430\u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0438 \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435\u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0430\u0433\u0440\u0443\u043f\u043f\u0438\u0440\u043e\u0432\u043a\u0438\u0442\u0430\u0431\u043b\u0438\u0447\u043d\u043e\u0433\u043e\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430 \u0441\u043f\u043e\u0441\u043e\u0431\u0447\u0442\u0435\u043d\u0438\u044f\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439\u0442\u0430\u0431\u043b\u0438\u0447\u043d\u043e\u0433\u043e\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430 \u0442\u0438\u043f\u0434\u0432\u0443\u0441\u0442\u043e\u0440\u043e\u043d\u043d\u0435\u0439\u043f\u0435\u0447\u0430\u0442\u0438 \u0442\u0438\u043f\u0437\u0430\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f\u043e\u0431\u043b\u0430\u0441\u0442\u0438\u0442\u0430\u0431\u043b\u0438\u0447\u043d\u043e\u0433\u043e\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430 \u0442\u0438\u043f\u043a\u0443\u0440\u0441\u043e\u0440\u043e\u0432\u0442\u0430\u0431\u043b\u0438\u0447\u043d\u043e\u0433\u043e\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430 \u0442\u0438\u043f\u043b\u0438\u043d\u0438\u0438\u0440\u0438\u0441\u0443\u043d\u043a\u0430\u0442\u0430\u0431\u043b\u0438\u0447\u043d\u043e\u0433\u043e\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430 \u0442\u0438\u043f\u043b\u0438\u043d\u0438\u0438\u044f\u0447\u0435\u0439\u043a\u0438\u0442\u0430\u0431\u043b\u0438\u0447\u043d\u043e\u0433\u043e\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430 \u0442\u0438\u043f\u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f\u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0430\u0442\u0430\u0431\u043b\u0438\u0447\u043d\u043e\u0433\u043e\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430 \u0442\u0438\u043f\u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f\u0432\u044b\u0434\u0435\u043b\u0435\u043d\u0438\u044f\u0442\u0430\u0431\u043b\u0438\u0447\u043d\u043e\u0433\u043e\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430 \u0442\u0438\u043f\u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f\u043b\u0438\u043d\u0438\u0439\u0441\u0432\u043e\u0434\u043d\u043e\u0439\u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0442\u0438\u043f\u0440\u0430\u0437\u043c\u0435\u0449\u0435\u043d\u0438\u044f\u0442\u0435\u043a\u0441\u0442\u0430\u0442\u0430\u0431\u043b\u0438\u0447\u043d\u043e\u0433\u043e\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430 \u0442\u0438\u043f\u0440\u0438\u0441\u0443\u043d\u043a\u0430\u0442\u0430\u0431\u043b\u0438\u0447\u043d\u043e\u0433\u043e\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430 \u0442\u0438\u043f\u0441\u043c\u0435\u0449\u0435\u043d\u0438\u044f\u0442\u0430\u0431\u043b\u0438\u0447\u043d\u043e\u0433\u043e\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430 \u0442\u0438\u043f\u0443\u0437\u043e\u0440\u0430\u0442\u0430\u0431\u043b\u0438\u0447\u043d\u043e\u0433\u043e\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430 \u0442\u0438\u043f\u0444\u0430\u0439\u043b\u0430\u0442\u0430\u0431\u043b\u0438\u0447\u043d\u043e\u0433\u043e\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430 \u0442\u043e\u0447\u043d\u043e\u0441\u0442\u044c\u043f\u0435\u0447\u0430\u0442\u0438 \u0447\u0435\u0440\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u0435\u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u044f\u0441\u0442\u0440\u0430\u043d\u0438\u0446 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435\u0432\u0440\u0435\u043c\u0435\u043d\u0438\u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432\u043f\u043b\u0430\u043d\u0438\u0440\u043e\u0432\u0449\u0438\u043a\u0430 \u0442\u0438\u043f\u0444\u0430\u0439\u043b\u0430\u0444\u043e\u0440\u043c\u0430\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430 \u043e\u0431\u0445\u043e\u0434\u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430\u0437\u0430\u043f\u0440\u043e\u0441\u0430 \u0442\u0438\u043f\u0437\u0430\u043f\u0438\u0441\u0438\u0437\u0430\u043f\u0440\u043e\u0441\u0430 \u0432\u0438\u0434\u0437\u0430\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f\u0440\u0430\u0441\u0448\u0438\u0444\u0440\u043e\u0432\u043a\u0438\u043f\u043e\u0441\u0442\u0440\u043e\u0438\u0442\u0435\u043b\u044f\u043e\u0442\u0447\u0435\u0442\u0430 \u0442\u0438\u043f\u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u044f\u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0439 \u0442\u0438\u043f\u0438\u0437\u043c\u0435\u0440\u0435\u043d\u0438\u044f\u043f\u043e\u0441\u0442\u0440\u043e\u0438\u0442\u0435\u043b\u044f\u043e\u0442\u0447\u0435\u0442\u0430 \u0442\u0438\u043f\u0440\u0430\u0437\u043c\u0435\u0449\u0435\u043d\u0438\u044f\u0438\u0442\u043e\u0433\u043e\u0432 \u0434\u043e\u0441\u0442\u0443\u043f\u043a\u0444\u0430\u0439\u043b\u0443 \u0440\u0435\u0436\u0438\u043c\u0434\u0438\u0430\u043b\u043e\u0433\u0430\u0432\u044b\u0431\u043e\u0440\u0430\u0444\u0430\u0439\u043b\u0430 \u0440\u0435\u0436\u0438\u043c\u043e\u0442\u043a\u0440\u044b\u0442\u0438\u044f\u0444\u0430\u0439\u043b\u0430 \u0442\u0438\u043f\u0438\u0437\u043c\u0435\u0440\u0435\u043d\u0438\u044f\u043f\u043e\u0441\u0442\u0440\u043e\u0438\u0442\u0435\u043b\u044f\u0437\u0430\u043f\u0440\u043e\u0441\u0430 \u0432\u0438\u0434\u0434\u0430\u043d\u043d\u044b\u0445\u0430\u043d\u0430\u043b\u0438\u0437\u0430 \u043c\u0435\u0442\u043e\u0434\u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0438\u0437\u0430\u0446\u0438\u0438 \u0442\u0438\u043f\u0435\u0434\u0438\u043d\u0438\u0446\u044b\u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u0430\u0432\u0440\u0435\u043c\u0435\u043d\u0438\u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0434\u0430\u043d\u043d\u044b\u0445 \u0442\u0438\u043f\u0437\u0430\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f\u0442\u0430\u0431\u043b\u0438\u0446\u044b\u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430\u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0434\u0430\u043d\u043d\u044b\u0445 \u0442\u0438\u043f\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f\u0447\u0438\u0441\u043b\u043e\u0432\u044b\u0445\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439\u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0434\u0430\u043d\u043d\u044b\u0445 \u0442\u0438\u043f\u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0430\u0434\u0430\u043d\u043d\u044b\u0445\u043f\u043e\u0438\u0441\u043a\u0430\u0430\u0441\u0441\u043e\u0446\u0438\u0430\u0446\u0438\u0439 \u0442\u0438\u043f\u043a\u043e\u043b\u043e\u043d\u043a\u0438\u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0434\u0430\u043d\u043d\u044b\u0445\u0434\u0435\u0440\u0435\u0432\u043e\u0440\u0435\u0448\u0435\u043d\u0438\u0439 \u0442\u0438\u043f\u043a\u043e\u043b\u043e\u043d\u043a\u0438\u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0434\u0430\u043d\u043d\u044b\u0445\u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0438\u0437\u0430\u0446\u0438\u044f \u0442\u0438\u043f\u043a\u043e\u043b\u043e\u043d\u043a\u0438\u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0434\u0430\u043d\u043d\u044b\u0445\u043e\u0431\u0449\u0430\u044f\u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0430 \u0442\u0438\u043f\u043a\u043e\u043b\u043e\u043d\u043a\u0438\u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0434\u0430\u043d\u043d\u044b\u0445\u043f\u043e\u0438\u0441\u043a\u0430\u0441\u0441\u043e\u0446\u0438\u0430\u0446\u0438\u0439 \u0442\u0438\u043f\u043a\u043e\u043b\u043e\u043d\u043a\u0438\u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0434\u0430\u043d\u043d\u044b\u0445\u043f\u043e\u0438\u0441\u043a\u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0435\u0439 \u0442\u0438\u043f\u043a\u043e\u043b\u043e\u043d\u043a\u0438\u043c\u043e\u0434\u0435\u043b\u0438\u043f\u0440\u043e\u0433\u043d\u043e\u0437\u0430 \u0442\u0438\u043f\u043c\u0435\u0440\u044b\u0440\u0430\u0441\u0441\u0442\u043e\u044f\u043d\u0438\u044f\u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0434\u0430\u043d\u043d\u044b\u0445 \u0442\u0438\u043f\u043e\u0442\u0441\u0435\u0447\u0435\u043d\u0438\u044f\u043f\u0440\u0430\u0432\u0438\u043b\u0430\u0441\u0441\u043e\u0446\u0438\u0430\u0446\u0438\u0438 \u0442\u0438\u043f\u043f\u043e\u043b\u044f\u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0434\u0430\u043d\u043d\u044b\u0445 \u0442\u0438\u043f\u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u0438\u0437\u0430\u0446\u0438\u0438\u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0434\u0430\u043d\u043d\u044b\u0445 \u0442\u0438\u043f\u0443\u043f\u043e\u0440\u044f\u0434\u043e\u0447\u0438\u0432\u0430\u043d\u0438\u044f\u043f\u0440\u0430\u0432\u0438\u043b\u0430\u0441\u0441\u043e\u0446\u0438\u0430\u0446\u0438\u0438\u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0434\u0430\u043d\u043d\u044b\u0445 \u0442\u0438\u043f\u0443\u043f\u043e\u0440\u044f\u0434\u043e\u0447\u0438\u0432\u0430\u043d\u0438\u044f\u0448\u0430\u0431\u043b\u043e\u043d\u043e\u0432\u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0435\u0439\u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0434\u0430\u043d\u043d\u044b\u0445 \u0442\u0438\u043f\u0443\u043f\u0440\u043e\u0449\u0435\u043d\u0438\u044f\u0434\u0435\u0440\u0435\u0432\u0430\u0440\u0435\u0448\u0435\u043d\u0438\u0439 ws\u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430 \u0432\u0430\u0440\u0438\u0430\u043d\u0442xpathxs \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0437\u0430\u043f\u0438\u0441\u0438\u0434\u0430\u0442\u044bjson \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u043f\u0440\u043e\u0441\u0442\u043e\u0433\u043e\u0442\u0438\u043f\u0430xs \u0432\u0438\u0434\u0433\u0440\u0443\u043f\u043f\u044b\u043c\u043e\u0434\u0435\u043b\u0438xs \u0432\u0438\u0434\u0444\u0430\u0441\u0435\u0442\u0430xdto \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435\u043f\u043e\u0441\u0442\u0440\u043e\u0438\u0442\u0435\u043b\u044fdom \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u043d\u043e\u0441\u0442\u044c\u043f\u0440\u043e\u0441\u0442\u043e\u0433\u043e\u0442\u0438\u043f\u0430xs \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u043d\u043e\u0441\u0442\u044c\u0441\u043e\u0441\u0442\u0430\u0432\u043d\u043e\u0433\u043e\u0442\u0438\u043f\u0430xs \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u043d\u043e\u0441\u0442\u044c\u0441\u0445\u0435\u043c\u044bxs \u0437\u0430\u043f\u0440\u0435\u0449\u0435\u043d\u043d\u044b\u0435\u043f\u043e\u0434\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438xs \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f\u0433\u0440\u0443\u043f\u043f\u043f\u043e\u0434\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438xs \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u044f\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f\u0430\u0442\u0440\u0438\u0431\u0443\u0442\u0430xs \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u044f\u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u044f\u0438\u0434\u0435\u043d\u0442\u0438\u0447\u043d\u043e\u0441\u0442\u0438xs \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u044f\u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u044f\u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u0438\u043c\u0435\u043dxs \u043c\u0435\u0442\u043e\u0434\u043d\u0430\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u044fxs \u043c\u043e\u0434\u0435\u043b\u044c\u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0433\u043exs \u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u0442\u0438\u043f\u0430xml \u043d\u0435\u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043c\u044b\u0435\u043f\u043e\u0434\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438xs \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430\u043f\u0440\u043e\u0431\u0435\u043b\u044c\u043d\u044b\u0445\u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432xs \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430\u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0433\u043exs \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u0435\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044fxs \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b\u043e\u0442\u0431\u043e\u0440\u0430\u0443\u0437\u043b\u043e\u0432dom \u043f\u0435\u0440\u0435\u043d\u043e\u0441\u0441\u0442\u0440\u043e\u043ajson \u043f\u043e\u0437\u0438\u0446\u0438\u044f\u0432\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0435dom \u043f\u0440\u043e\u0431\u0435\u043b\u044c\u043d\u044b\u0435\u0441\u0438\u043c\u0432\u043e\u043b\u044bxml \u0442\u0438\u043f\u0430\u0442\u0440\u0438\u0431\u0443\u0442\u0430xml \u0442\u0438\u043f\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044fjson \u0442\u0438\u043f\u043a\u0430\u043d\u043e\u043d\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043exml \u0442\u0438\u043f\u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044bxs \u0442\u0438\u043f\u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438xml \u0442\u0438\u043f\u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430domxpath \u0442\u0438\u043f\u0443\u0437\u043b\u0430dom \u0442\u0438\u043f\u0443\u0437\u043b\u0430xml \u0444\u043e\u0440\u043c\u0430xml \u0444\u043e\u0440\u043c\u0430\u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u044fxs \u0444\u043e\u0440\u043c\u0430\u0442\u0434\u0430\u0442\u044bjson \u044d\u043a\u0440\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435\u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432json \u0432\u0438\u0434\u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044f\u043a\u043e\u043c\u043f\u043e\u043d\u043e\u0432\u043a\u0438\u0434\u0430\u043d\u043d\u044b\u0445 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435\u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438\u0440\u0430\u0441\u0448\u0438\u0444\u0440\u043e\u0432\u043a\u0438\u043a\u043e\u043c\u043f\u043e\u043d\u043e\u0432\u043a\u0438\u0434\u0430\u043d\u043d\u044b\u0445 \u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u043a\u0438\u043a\u043e\u043c\u043f\u043e\u043d\u043e\u0432\u043a\u0438\u0434\u0430\u043d\u043d\u044b\u0445 \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435\u0432\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u0445\u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432\u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430\u043a\u043e\u043c\u043f\u043e\u043d\u043e\u0432\u043a\u0438\u0434\u0430\u043d\u043d\u044b\u0445 \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435\u0438\u0442\u043e\u0433\u043e\u0432\u043a\u043e\u043c\u043f\u043e\u043d\u043e\u0432\u043a\u0438\u0434\u0430\u043d\u043d\u044b\u0445 \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435\u0433\u0440\u0443\u043f\u043f\u0438\u0440\u043e\u0432\u043a\u0438\u043a\u043e\u043c\u043f\u043e\u043d\u043e\u0432\u043a\u0438\u0434\u0430\u043d\u043d\u044b\u0445 \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435\u043f\u043e\u043b\u0435\u0439\u0433\u0440\u0443\u043f\u043f\u0438\u0440\u043e\u0432\u043a\u0438\u043a\u043e\u043c\u043f\u043e\u043d\u043e\u0432\u043a\u0438\u0434\u0430\u043d\u043d\u044b\u0445 \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435\u043f\u043e\u043b\u044f\u043a\u043e\u043c\u043f\u043e\u043d\u043e\u0432\u043a\u0438\u0434\u0430\u043d\u043d\u044b\u0445 \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435\u0440\u0435\u043a\u0432\u0438\u0437\u0438\u0442\u043e\u0432\u043a\u043e\u043c\u043f\u043e\u043d\u043e\u0432\u043a\u0438\u0434\u0430\u043d\u043d\u044b\u0445 \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435\u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432\u043a\u043e\u043c\u043f\u043e\u043d\u043e\u0432\u043a\u0438\u0434\u0430\u043d\u043d\u044b\u0445 \u0442\u0438\u043f\u0431\u0443\u0445\u0433\u0430\u043b\u0442\u0435\u0440\u0441\u043a\u043e\u0433\u043e\u043e\u0441\u0442\u0430\u0442\u043a\u0430\u043a\u043e\u043c\u043f\u043e\u043d\u043e\u0432\u043a\u0438\u0434\u0430\u043d\u043d\u044b\u0445 \u0442\u0438\u043f\u0432\u044b\u0432\u043e\u0434\u0430\u0442\u0435\u043a\u0441\u0442\u0430\u043a\u043e\u043c\u043f\u043e\u043d\u043e\u0432\u043a\u0438\u0434\u0430\u043d\u043d\u044b\u0445 \u0442\u0438\u043f\u0433\u0440\u0443\u043f\u043f\u0438\u0440\u043e\u0432\u043a\u0438\u043a\u043e\u043c\u043f\u043e\u043d\u043e\u0432\u043a\u0438\u0434\u0430\u043d\u043d\u044b\u0445 \u0442\u0438\u043f\u0433\u0440\u0443\u043f\u043f\u044b\u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432\u043e\u0442\u0431\u043e\u0440\u0430\u043a\u043e\u043c\u043f\u043e\u043d\u043e\u0432\u043a\u0438\u0434\u0430\u043d\u043d\u044b\u0445 \u0442\u0438\u043f\u0434\u043e\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f\u043f\u0435\u0440\u0438\u043e\u0434\u0430\u043a\u043e\u043c\u043f\u043e\u043d\u043e\u0432\u043a\u0438\u0434\u0430\u043d\u043d\u044b\u0445 \u0442\u0438\u043f\u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0430\u043f\u043e\u043b\u0435\u0439\u043a\u043e\u043c\u043f\u043e\u043d\u043e\u0432\u043a\u0438\u0434\u0430\u043d\u043d\u044b\u0445 \u0442\u0438\u043f\u043c\u0430\u043a\u0435\u0442\u0430\u0433\u0440\u0443\u043f\u043f\u0438\u0440\u043e\u0432\u043a\u0438\u043a\u043e\u043c\u043f\u043e\u043d\u043e\u0432\u043a\u0438\u0434\u0430\u043d\u043d\u044b\u0445 \u0442\u0438\u043f\u043c\u0430\u043a\u0435\u0442\u0430\u043e\u0431\u043b\u0430\u0441\u0442\u0438\u043a\u043e\u043c\u043f\u043e\u043d\u043e\u0432\u043a\u0438\u0434\u0430\u043d\u043d\u044b\u0445 \u0442\u0438\u043f\u043e\u0441\u0442\u0430\u0442\u043a\u0430\u043a\u043e\u043c\u043f\u043e\u043d\u043e\u0432\u043a\u0438\u0434\u0430\u043d\u043d\u044b\u0445 \u0442\u0438\u043f\u043f\u0435\u0440\u0438\u043e\u0434\u0430\u043a\u043e\u043c\u043f\u043e\u043d\u043e\u0432\u043a\u0438\u0434\u0430\u043d\u043d\u044b\u0445 \u0442\u0438\u043f\u0440\u0430\u0437\u043c\u0435\u0449\u0435\u043d\u0438\u044f\u0442\u0435\u043a\u0441\u0442\u0430\u043a\u043e\u043c\u043f\u043e\u043d\u043e\u0432\u043a\u0438\u0434\u0430\u043d\u043d\u044b\u0445 \u0442\u0438\u043f\u0441\u0432\u044f\u0437\u0438\u043d\u0430\u0431\u043e\u0440\u043e\u0432\u0434\u0430\u043d\u043d\u044b\u0445\u043a\u043e\u043c\u043f\u043e\u043d\u043e\u0432\u043a\u0438\u0434\u0430\u043d\u043d\u044b\u0445 \u0442\u0438\u043f\u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430\u043a\u043e\u043c\u043f\u043e\u043d\u043e\u0432\u043a\u0438\u0434\u0430\u043d\u043d\u044b\u0445 \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435\u043b\u0435\u0433\u0435\u043d\u0434\u044b\u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u044b\u043a\u043e\u043c\u043f\u043e\u043d\u043e\u0432\u043a\u0438\u0434\u0430\u043d\u043d\u044b\u0445 \u0442\u0438\u043f\u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u044f\u043e\u0442\u0431\u043e\u0440\u0430\u043a\u043e\u043c\u043f\u043e\u043d\u043e\u0432\u043a\u0438\u0434\u0430\u043d\u043d\u044b\u0445 \u0440\u0435\u0436\u0438\u043c\u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f\u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438\u043a\u043e\u043c\u043f\u043e\u043d\u043e\u0432\u043a\u0438\u0434\u0430\u043d\u043d\u044b\u0445 \u0440\u0435\u0436\u0438\u043c\u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f\u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a\u043a\u043e\u043c\u043f\u043e\u043d\u043e\u0432\u043a\u0438\u0434\u0430\u043d\u043d\u044b\u0445 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435\u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438\u043a\u043e\u043c\u043f\u043e\u043d\u043e\u0432\u043a\u0438\u0434\u0430\u043d\u043d\u044b\u0445 \u0441\u043f\u043e\u0441\u043e\u0431\u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f\u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a\u043a\u043e\u043c\u043f\u043e\u043d\u043e\u0432\u043a\u0438\u0434\u0430\u043d\u043d\u044b\u0445 \u0440\u0435\u0436\u0438\u043c\u043a\u043e\u043c\u043f\u043e\u043d\u043e\u0432\u043a\u0438\u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u043a\u043e\u043c\u043f\u043e\u043d\u043e\u0432\u043a\u0438\u0434\u0430\u043d\u043d\u044b\u0445 \u0430\u0432\u0442\u043e\u043f\u043e\u0437\u0438\u0446\u0438\u044f\u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432\u043a\u043e\u043c\u043f\u043e\u043d\u043e\u0432\u043a\u0438\u0434\u0430\u043d\u043d\u044b\u0445 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f\u0433\u0440\u0443\u043f\u043f\u0438\u0440\u043e\u0432\u043a\u0438\u043a\u043e\u043c\u043f\u043e\u043d\u043e\u0432\u043a\u0438\u0434\u0430\u043d\u043d\u044b\u0445 \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435\u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432\u0432\u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u0435\u043a\u043e\u043c\u043f\u043e\u043d\u043e\u0432\u043a\u0438\u0434\u0430\u043d\u043d\u044b\u0445 \u0444\u0438\u043a\u0441\u0430\u0446\u0438\u044f\u043a\u043e\u043c\u043f\u043e\u043d\u043e\u0432\u043a\u0438\u0434\u0430\u043d\u043d\u044b\u0445 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u0443\u0441\u043b\u043e\u0432\u043d\u043e\u0433\u043e\u043e\u0444\u043e\u0440\u043c\u043b\u0435\u043d\u0438\u044f\u043a\u043e\u043c\u043f\u043e\u043d\u043e\u0432\u043a\u0438\u0434\u0430\u043d\u043d\u044b\u0445 \u0432\u0430\u0436\u043d\u043e\u0441\u0442\u044c\u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u043f\u043e\u0447\u0442\u043e\u0432\u043e\u0433\u043e\u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430\u0442\u0435\u043a\u0441\u0442\u0430\u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u043f\u043e\u0447\u0442\u043e\u0432\u043e\u0433\u043e\u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f \u0441\u043f\u043e\u0441\u043e\u0431\u043a\u043e\u0434\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f\u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u043f\u043e\u0447\u0442\u043e\u0432\u043e\u0433\u043e\u0432\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0441\u043f\u043e\u0441\u043e\u0431\u043a\u043e\u0434\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f\u043d\u0435ascii\u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432\u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u043f\u043e\u0447\u0442\u043e\u0432\u043e\u0433\u043e\u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f \u0442\u0438\u043f\u0442\u0435\u043a\u0441\u0442\u0430\u043f\u043e\u0447\u0442\u043e\u0432\u043e\u0433\u043e\u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u043f\u043e\u0447\u0442\u044b \u0441\u0442\u0430\u0442\u0443\u0441\u0440\u0430\u0437\u0431\u043e\u0440\u0430\u043f\u043e\u0447\u0442\u043e\u0432\u043e\u0433\u043e\u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f \u0440\u0435\u0436\u0438\u043c\u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u0438\u0437\u0430\u043f\u0438\u0441\u0438\u0436\u0443\u0440\u043d\u0430\u043b\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438 \u0441\u0442\u0430\u0442\u0443\u0441\u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u0438\u0437\u0430\u043f\u0438\u0441\u0438\u0436\u0443\u0440\u043d\u0430\u043b\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438 \u0443\u0440\u043e\u0432\u0435\u043d\u044c\u0436\u0443\u0440\u043d\u0430\u043b\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438 \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435\u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0430\u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0432\u043a\u0440\u0438\u043f\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0438 \u0440\u0435\u0436\u0438\u043c\u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f\u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0432\u043a\u0440\u0438\u043f\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0438 \u0440\u0435\u0436\u0438\u043c\u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438\u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u0430\u043a\u0440\u0438\u043f\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0438 \u0442\u0438\u043f\u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0430\u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0432\u043a\u0440\u0438\u043f\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0438 \u043a\u043e\u0434\u0438\u0440\u043e\u0432\u043a\u0430\u0438\u043c\u0435\u043d\u0444\u0430\u0439\u043b\u043e\u0432\u0432zip\u0444\u0430\u0439\u043b\u0435 \u043c\u0435\u0442\u043e\u0434\u0441\u0436\u0430\u0442\u0438\u044fzip \u043c\u0435\u0442\u043e\u0434\u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u044fzip \u0440\u0435\u0436\u0438\u043c\u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f\u043f\u0443\u0442\u0435\u0439\u0444\u0430\u0439\u043b\u043e\u0432zip \u0440\u0435\u0436\u0438\u043c\u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438\u043f\u043e\u0434\u043a\u0430\u0442\u0430\u043b\u043e\u0433\u043e\u0432zip \u0440\u0435\u0436\u0438\u043c\u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f\u043f\u0443\u0442\u0435\u0439zip \u0443\u0440\u043e\u0432\u0435\u043d\u044c\u0441\u0436\u0430\u0442\u0438\u044fzip \u0437\u0432\u0443\u043a\u043e\u0432\u043e\u0435\u043e\u043f\u043e\u0432\u0435\u0449\u0435\u043d\u0438\u0435 \u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0430\u043a\u0441\u0442\u0440\u043e\u043a\u0435 \u043f\u043e\u0437\u0438\u0446\u0438\u044f\u0432\u043f\u043e\u0442\u043e\u043a\u0435 \u043f\u043e\u0440\u044f\u0434\u043e\u043a\u0431\u0430\u0439\u0442\u043e\u0432 \u0440\u0435\u0436\u0438\u043c\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043a\u0438\u0434\u0430\u043d\u043d\u044b\u0445 \u0440\u0435\u0436\u0438\u043c\u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043a\u043e\u0439\u0434\u0430\u043d\u043d\u044b\u0445 \u0441\u0435\u0440\u0432\u0438\u0441\u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0445\u043f\u043e\u043a\u0443\u043f\u043e\u043a \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435\u0444\u043e\u043d\u043e\u0432\u043e\u0433\u043e\u0437\u0430\u0434\u0430\u043d\u0438\u044f \u0442\u0438\u043f\u043f\u043e\u0434\u043f\u0438\u0441\u0447\u0438\u043a\u0430\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c\u044b\u0445\u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u0439 \u0443\u0440\u043e\u0432\u0435\u043d\u044c\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f\u0437\u0430\u0449\u0438\u0449\u0435\u043d\u043d\u043e\u0433\u043e\u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044fftp \u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u043f\u043e\u0440\u044f\u0434\u043a\u0430\u0441\u0445\u0435\u043c\u044b\u0437\u0430\u043f\u0440\u043e\u0441\u0430 \u0442\u0438\u043f\u0434\u043e\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f\u043f\u0435\u0440\u0438\u043e\u0434\u0430\u043c\u0438\u0441\u0445\u0435\u043c\u044b\u0437\u0430\u043f\u0440\u043e\u0441\u0430 \u0442\u0438\u043f\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044c\u043d\u043e\u0439\u0442\u043e\u0447\u043a\u0438\u0441\u0445\u0435\u043c\u044b\u0437\u0430\u043f\u0440\u043e\u0441\u0430 \u0442\u0438\u043f\u043e\u0431\u044a\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f\u0441\u0445\u0435\u043c\u044b\u0437\u0430\u043f\u0440\u043e\u0441\u0430 \u0442\u0438\u043f\u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e\u0439\u0442\u0430\u0431\u043b\u0438\u0446\u044b\u0441\u0445\u0435\u043c\u044b\u0437\u0430\u043f\u0440\u043e\u0441\u0430 \u0442\u0438\u043f\u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f\u0441\u0445\u0435\u043c\u044b\u0437\u0430\u043f\u0440\u043e\u0441\u0430 http\u043c\u0435\u0442\u043e\u0434 \u0430\u0432\u0442\u043e\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043e\u0431\u0449\u0435\u0433\u043e\u0440\u0435\u043a\u0432\u0438\u0437\u0438\u0442\u0430 \u0430\u0432\u0442\u043e\u043f\u0440\u0435\u0444\u0438\u043a\u0441\u043d\u043e\u043c\u0435\u0440\u0430\u0437\u0430\u0434\u0430\u0447\u0438 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u043e\u0433\u043e\u044f\u0437\u044b\u043a\u0430 \u0432\u0438\u0434\u0438\u0435\u0440\u0430\u0440\u0445\u0438\u0438 \u0432\u0438\u0434\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u043d\u0430\u043a\u043e\u043f\u043b\u0435\u043d\u0438\u044f \u0432\u0438\u0434\u0442\u0430\u0431\u043b\u0438\u0446\u044b\u0432\u043d\u0435\u0448\u043d\u0435\u0433\u043e\u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0430\u0434\u0430\u043d\u043d\u044b\u0445 \u0437\u0430\u043f\u0438\u0441\u044c\u0434\u0432\u0438\u0436\u0435\u043d\u0438\u0439\u043f\u0440\u0438\u043f\u0440\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0438 \u0437\u0430\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435\u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0435\u0439 \u0438\u043d\u0434\u0435\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u0431\u0430\u0437\u044b\u043f\u043b\u0430\u043d\u0430\u0432\u0438\u0434\u043e\u0432\u0440\u0430\u0441\u0447\u0435\u0442\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u0431\u044b\u0441\u0442\u0440\u043e\u0433\u043e\u0432\u044b\u0431\u043e\u0440\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043e\u0431\u0449\u0435\u0433\u043e\u0440\u0435\u043a\u0432\u0438\u0437\u0438\u0442\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043f\u043e\u0434\u0447\u0438\u043d\u0435\u043d\u0438\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043f\u043e\u043b\u043d\u043e\u0442\u0435\u043a\u0441\u0442\u043e\u0432\u043e\u0433\u043e\u043f\u043e\u0438\u0441\u043a\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u0440\u0430\u0437\u0434\u0435\u043b\u044f\u0435\u043c\u044b\u0445\u0434\u0430\u043d\u043d\u044b\u0445\u043e\u0431\u0449\u0435\u0433\u043e\u0440\u0435\u043a\u0432\u0438\u0437\u0438\u0442\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u0440\u0435\u043a\u0432\u0438\u0437\u0438\u0442\u0430 \u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f\u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0438 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435\u043f\u0440\u0435\u0434\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0445\u0434\u0430\u043d\u043d\u044b\u0445 \u043e\u043f\u0435\u0440\u0430\u0442\u0438\u0432\u043d\u043e\u0435\u043f\u0440\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0435\u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u0432\u0438\u0434\u0430\u0440\u0430\u0441\u0447\u0435\u0442\u0430 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0435\u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u0432\u0438\u0434\u0430\u0445\u0430\u0440\u0430\u043a\u0442\u0435\u0440\u0438\u0441\u0442\u0438\u043a\u0438 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0435\u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u0437\u0430\u0434\u0430\u0447\u0438 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0435\u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u043f\u043b\u0430\u043d\u0430\u043e\u0431\u043c\u0435\u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0435\u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u0441\u043f\u0440\u0430\u0432\u043e\u0447\u043d\u0438\u043a\u0430 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0435\u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u0441\u0447\u0435\u0442\u0430 \u043f\u0435\u0440\u0435\u043c\u0435\u0449\u0435\u043d\u0438\u0435\u0433\u0440\u0430\u043d\u0438\u0446\u044b\u043f\u0440\u0438\u043f\u0440\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0438 \u043f\u0435\u0440\u0438\u043e\u0434\u0438\u0447\u043d\u043e\u0441\u0442\u044c\u043d\u043e\u043c\u0435\u0440\u0430\u0431\u0438\u0437\u043d\u0435\u0441\u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430 \u043f\u0435\u0440\u0438\u043e\u0434\u0438\u0447\u043d\u043e\u0441\u0442\u044c\u043d\u043e\u043c\u0435\u0440\u0430\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430 \u043f\u0435\u0440\u0438\u043e\u0434\u0438\u0447\u043d\u043e\u0441\u0442\u044c\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0440\u0430\u0441\u0447\u0435\u0442\u0430 \u043f\u0435\u0440\u0438\u043e\u0434\u0438\u0447\u043d\u043e\u0441\u0442\u044c\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0441\u0432\u0435\u0434\u0435\u043d\u0438\u0439 \u043f\u043e\u0432\u0442\u043e\u0440\u043d\u043e\u0435\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c\u044b\u0445\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 \u043f\u043e\u043b\u043d\u043e\u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0439\u043f\u043e\u0438\u0441\u043a\u043f\u0440\u0438\u0432\u0432\u043e\u0434\u0435\u043f\u043e\u0441\u0442\u0440\u043e\u043a\u0435 \u043f\u0440\u0438\u043d\u0430\u0434\u043b\u0435\u0436\u043d\u043e\u0441\u0442\u044c\u043e\u0431\u044a\u0435\u043a\u0442\u0430 \u043f\u0440\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u0440\u0430\u0437\u0434\u0435\u043b\u0435\u043d\u0438\u0435\u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438\u043e\u0431\u0449\u0435\u0433\u043e\u0440\u0435\u043a\u0432\u0438\u0437\u0438\u0442\u0430 \u0440\u0430\u0437\u0434\u0435\u043b\u0435\u043d\u0438\u0435\u0434\u0430\u043d\u043d\u044b\u0445\u043e\u0431\u0449\u0435\u0433\u043e\u0440\u0435\u043a\u0432\u0438\u0437\u0438\u0442\u0430 \u0440\u0430\u0437\u0434\u0435\u043b\u0435\u043d\u0438\u0435\u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0439\u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438\u043e\u0431\u0449\u0435\u0433\u043e\u0440\u0435\u043a\u0432\u0438\u0437\u0438\u0442\u0430 \u0440\u0435\u0436\u0438\u043c\u0430\u0432\u0442\u043e\u043d\u0443\u043c\u0435\u0440\u0430\u0446\u0438\u0438\u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432 \u0440\u0435\u0436\u0438\u043c\u0437\u0430\u043f\u0438\u0441\u0438\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430 \u0440\u0435\u0436\u0438\u043c\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f\u043c\u043e\u0434\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u0440\u0435\u0436\u0438\u043c\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f\u0441\u0438\u043d\u0445\u0440\u043e\u043d\u043d\u044b\u0445\u0432\u044b\u0437\u043e\u0432\u043e\u0432\u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0439\u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u044b\u0438\u0432\u043d\u0435\u0448\u043d\u0438\u0445\u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442 \u0440\u0435\u0436\u0438\u043c\u043f\u043e\u0432\u0442\u043e\u0440\u043d\u043e\u0433\u043e\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f\u0441\u0435\u0430\u043d\u0441\u043e\u0432 \u0440\u0435\u0436\u0438\u043c\u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f\u0434\u0430\u043d\u043d\u044b\u0445\u0432\u044b\u0431\u043e\u0440\u0430\u043f\u0440\u0438\u0432\u0432\u043e\u0434\u0435\u043f\u043e\u0441\u0442\u0440\u043e\u043a\u0435 \u0440\u0435\u0436\u0438\u043c\u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c\u043e\u0441\u0442\u0438 \u0440\u0435\u0436\u0438\u043c\u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c\u043e\u0441\u0442\u0438\u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 \u0440\u0435\u0436\u0438\u043c\u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043a\u043e\u0439\u0434\u0430\u043d\u043d\u044b\u0445\u043f\u043e\u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0441\u0435\u0440\u0438\u0438\u043a\u043e\u0434\u043e\u0432\u043f\u043b\u0430\u043d\u0430\u0432\u0438\u0434\u043e\u0432\u0445\u0430\u0440\u0430\u043a\u0442\u0435\u0440\u0438\u0441\u0442\u0438\u043a \u0441\u0435\u0440\u0438\u0438\u043a\u043e\u0434\u043e\u0432\u043f\u043b\u0430\u043d\u0430\u0441\u0447\u0435\u0442\u043e\u0432 \u0441\u0435\u0440\u0438\u0438\u043a\u043e\u0434\u043e\u0432\u0441\u043f\u0440\u0430\u0432\u043e\u0447\u043d\u0438\u043a\u0430 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435\u043f\u0440\u0438\u0432\u0432\u043e\u0434\u0435 \u0441\u043f\u043e\u0441\u043e\u0431\u0432\u044b\u0431\u043e\u0440\u0430 \u0441\u043f\u043e\u0441\u043e\u0431\u043f\u043e\u0438\u0441\u043a\u0430\u0441\u0442\u0440\u043e\u043a\u0438\u043f\u0440\u0438\u0432\u0432\u043e\u0434\u0435\u043f\u043e\u0441\u0442\u0440\u043e\u043a\u0435 \u0441\u043f\u043e\u0441\u043e\u0431\u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0442\u0438\u043f\u0434\u0430\u043d\u043d\u044b\u0445\u0442\u0430\u0431\u043b\u0438\u0446\u044b\u0432\u043d\u0435\u0448\u043d\u0435\u0433\u043e\u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0430\u0434\u0430\u043d\u043d\u044b\u0445 \u0442\u0438\u043f\u043a\u043e\u0434\u0430\u043f\u043b\u0430\u043d\u0430\u0432\u0438\u0434\u043e\u0432\u0440\u0430\u0441\u0447\u0435\u0442\u0430 \u0442\u0438\u043f\u043a\u043e\u0434\u0430\u0441\u043f\u0440\u0430\u0432\u043e\u0447\u043d\u0438\u043a\u0430 \u0442\u0438\u043f\u043c\u0430\u043a\u0435\u0442\u0430 \u0442\u0438\u043f\u043d\u043e\u043c\u0435\u0440\u0430\u0431\u0438\u0437\u043d\u0435\u0441\u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430 \u0442\u0438\u043f\u043d\u043e\u043c\u0435\u0440\u0430\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430 \u0442\u0438\u043f\u043d\u043e\u043c\u0435\u0440\u0430\u0437\u0430\u0434\u0430\u0447\u0438 \u0442\u0438\u043f\u0444\u043e\u0440\u043c\u044b \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u0435\u0434\u0432\u0438\u0436\u0435\u043d\u0438\u0439 \u0432\u0430\u0436\u043d\u043e\u0441\u0442\u044c\u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b\u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u044f\u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f\u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430\u043a\u043b\u0438\u0435\u043d\u0442\u0441\u043a\u043e\u0433\u043e\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u043c\u0430\u0441\u0448\u0442\u0430\u0431\u0430\u0444\u043e\u0440\u043c\u043a\u043b\u0438\u0435\u043d\u0442\u0441\u043a\u043e\u0433\u043e\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0433\u043e\u0448\u0440\u0438\u0444\u0442\u0430\u043a\u043b\u0438\u0435\u043d\u0442\u0441\u043a\u043e\u0433\u043e\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u0433\u043e\u043f\u0435\u0440\u0438\u043e\u0434\u0430 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u0439\u0434\u0430\u0442\u044b\u043d\u0430\u0447\u0430\u043b\u0430 \u0432\u0438\u0434\u0433\u0440\u0430\u043d\u0438\u0446\u044b \u0432\u0438\u0434\u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0438 \u0432\u0438\u0434\u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f\u043f\u043e\u043b\u043d\u043e\u0442\u0435\u043a\u0441\u0442\u043e\u0432\u043e\u0433\u043e\u043f\u043e\u0438\u0441\u043a\u0430 \u0432\u0438\u0434\u0440\u0430\u043c\u043a\u0438 \u0432\u0438\u0434\u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044f \u0432\u0438\u0434\u0446\u0432\u0435\u0442\u0430 \u0432\u0438\u0434\u0447\u0438\u0441\u043b\u043e\u0432\u043e\u0433\u043e\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0432\u0438\u0434\u0448\u0440\u0438\u0444\u0442\u0430 \u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043c\u0430\u044f\u0434\u043b\u0438\u043d\u0430 \u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043c\u044b\u0439\u0437\u043d\u0430\u043a \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435byteordermark \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c\u0435\u0442\u0430\u0434\u0430\u043d\u043d\u044b\u0445\u043f\u043e\u043b\u043d\u043e\u0442\u0435\u043a\u0441\u0442\u043e\u0432\u043e\u0433\u043e\u043f\u043e\u0438\u0441\u043a\u0430 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0439\u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u043a\u043b\u0430\u0432\u0438\u0448\u0430 \u043a\u043e\u0434\u0432\u043e\u0437\u0432\u0440\u0430\u0442\u0430\u0434\u0438\u0430\u043b\u043e\u0433\u0430 \u043a\u043e\u0434\u0438\u0440\u043e\u0432\u043a\u0430xbase \u043a\u043e\u0434\u0438\u0440\u043e\u0432\u043a\u0430\u0442\u0435\u043a\u0441\u0442\u0430 \u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u043f\u043e\u0438\u0441\u043a\u0430 \u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u043a\u0438 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435\u043f\u0440\u0435\u0434\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0445\u0434\u0430\u043d\u043d\u044b\u0445 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435\u043f\u0440\u0438\u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0438\u0434\u0430\u043d\u043d\u044b\u0445 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435\u043f\u0430\u043d\u0435\u043b\u0438\u0440\u0430\u0437\u0434\u0435\u043b\u043e\u0432 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430\u0437\u0430\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0440\u0435\u0436\u0438\u043c\u0434\u0438\u0430\u043b\u043e\u0433\u0430\u0432\u043e\u043f\u0440\u043e\u0441 \u0440\u0435\u0436\u0438\u043c\u0437\u0430\u043f\u0443\u0441\u043a\u0430\u043a\u043b\u0438\u0435\u043d\u0442\u0441\u043a\u043e\u0433\u043e\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0440\u0435\u0436\u0438\u043c\u043e\u043a\u0440\u0443\u0433\u043b\u0435\u043d\u0438\u044f \u0440\u0435\u0436\u0438\u043c\u043e\u0442\u043a\u0440\u044b\u0442\u0438\u044f\u0444\u043e\u0440\u043c\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0440\u0435\u0436\u0438\u043c\u043f\u043e\u043b\u043d\u043e\u0442\u0435\u043a\u0441\u0442\u043e\u0432\u043e\u0433\u043e\u043f\u043e\u0438\u0441\u043a\u0430 \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c\u043a\u043b\u0438\u0435\u043d\u0442\u0441\u043a\u043e\u0433\u043e\u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435\u0432\u043d\u0435\u0448\u043d\u0435\u0433\u043e\u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0430\u0434\u0430\u043d\u043d\u044b\u0445 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435\u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f\u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438\u0431\u0430\u0437\u044b\u0434\u0430\u043d\u043d\u044b\u0445 \u0441\u043f\u043e\u0441\u043e\u0431\u0432\u044b\u0431\u043e\u0440\u0430\u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u0430windows \u0441\u043f\u043e\u0441\u043e\u0431\u043a\u043e\u0434\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f\u0441\u0442\u0440\u043e\u043a\u0438 \u0441\u0442\u0430\u0442\u0443\u0441\u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f \u0442\u0438\u043f\u0432\u043d\u0435\u0448\u043d\u0435\u0439\u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b \u0442\u0438\u043f\u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u044b \u0442\u0438\u043f\u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u044f\u043a\u043b\u0430\u0432\u0438\u0448\u0438enter \u0442\u0438\u043f\u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438\u043e\u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0438\u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f\u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438\u0431\u0430\u0437\u044b\u0434\u0430\u043d\u043d\u044b\u0445 \u0443\u0440\u043e\u0432\u0435\u043d\u044c\u0438\u0437\u043e\u043b\u044f\u0446\u0438\u0438\u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u0439 \u0445\u0435\u0448\u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0447\u0430\u0441\u0442\u0438\u0434\u0430\u0442\u044b",type:"com\u043e\u0431\u044a\u0435\u043a\u0442 ftp\u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435 http\u0437\u0430\u043f\u0440\u043e\u0441 http\u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0442\u0432\u0435\u0442 http\u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435 ws\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f ws\u043f\u0440\u043e\u043a\u0441\u0438 xbase \u0430\u043d\u0430\u043b\u0438\u0437\u0434\u0430\u043d\u043d\u044b\u0445 \u0430\u043d\u043d\u043e\u0442\u0430\u0446\u0438\u044fxs \u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043a\u0430\u0434\u0430\u043d\u043d\u044b\u0445 \u0431\u0443\u0444\u0435\u0440\u0434\u0432\u043e\u0438\u0447\u043d\u044b\u0445\u0434\u0430\u043d\u043d\u044b\u0445 \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435xs \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0435\u043a\u043e\u043c\u043f\u043e\u043d\u043e\u0432\u043a\u0438\u0434\u0430\u043d\u043d\u044b\u0445 \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440\u0441\u043b\u0443\u0447\u0430\u0439\u043d\u044b\u0445\u0447\u0438\u0441\u0435\u043b \u0433\u0435\u043e\u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u0430\u044f\u0441\u0445\u0435\u043c\u0430 \u0433\u0435\u043e\u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u0438\u0435\u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u044b \u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u0430\u044f\u0441\u0445\u0435\u043c\u0430 \u0433\u0440\u0443\u043f\u043f\u0430\u043c\u043e\u0434\u0435\u043b\u0438xs \u0434\u0430\u043d\u043d\u044b\u0435\u0440\u0430\u0441\u0448\u0438\u0444\u0440\u043e\u0432\u043a\u0438\u043a\u043e\u043c\u043f\u043e\u043d\u043e\u0432\u043a\u0438\u0434\u0430\u043d\u043d\u044b\u0445 \u0434\u0432\u043e\u0438\u0447\u043d\u044b\u0435\u0434\u0430\u043d\u043d\u044b\u0435 \u0434\u0435\u043d\u0434\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u0430 \u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u0430\u0433\u0430\u043d\u0442\u0430 \u0434\u0438\u0430\u043b\u043e\u0433\u0432\u044b\u0431\u043e\u0440\u0430\u0444\u0430\u0439\u043b\u0430 \u0434\u0438\u0430\u043b\u043e\u0433\u0432\u044b\u0431\u043e\u0440\u0430\u0446\u0432\u0435\u0442\u0430 \u0434\u0438\u0430\u043b\u043e\u0433\u0432\u044b\u0431\u043e\u0440\u0430\u0448\u0440\u0438\u0444\u0442\u0430 \u0434\u0438\u0430\u043b\u043e\u0433\u0440\u0430\u0441\u043f\u0438\u0441\u0430\u043d\u0438\u044f\u0440\u0435\u0433\u043b\u0430\u043c\u0435\u043d\u0442\u043d\u043e\u0433\u043e\u0437\u0430\u0434\u0430\u043d\u0438\u044f \u0434\u0438\u0430\u043b\u043e\u0433\u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f\u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u0433\u043e\u043f\u0435\u0440\u0438\u043e\u0434\u0430 \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442dom \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442html \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044fxs \u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c\u043e\u0435\u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u0435 \u0437\u0430\u043f\u0438\u0441\u044cdom \u0437\u0430\u043f\u0438\u0441\u044cfastinfoset \u0437\u0430\u043f\u0438\u0441\u044chtml \u0437\u0430\u043f\u0438\u0441\u044cjson \u0437\u0430\u043f\u0438\u0441\u044cxml \u0437\u0430\u043f\u0438\u0441\u044czip\u0444\u0430\u0439\u043b\u0430 \u0437\u0430\u043f\u0438\u0441\u044c\u0434\u0430\u043d\u043d\u044b\u0445 \u0437\u0430\u043f\u0438\u0441\u044c\u0442\u0435\u043a\u0441\u0442\u0430 \u0437\u0430\u043f\u0438\u0441\u044c\u0443\u0437\u043b\u043e\u0432dom \u0437\u0430\u043f\u0440\u043e\u0441 \u0437\u0430\u0449\u0438\u0449\u0435\u043d\u043d\u043e\u0435\u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435openssl \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f\u043f\u043e\u043b\u0435\u0439\u0440\u0430\u0441\u0448\u0438\u0444\u0440\u043e\u0432\u043a\u0438\u043a\u043e\u043c\u043f\u043e\u043d\u043e\u0432\u043a\u0438\u0434\u0430\u043d\u043d\u044b\u0445 \u0438\u0437\u0432\u043b\u0435\u0447\u0435\u043d\u0438\u0435\u0442\u0435\u043a\u0441\u0442\u0430 \u0438\u043c\u043f\u043e\u0440\u0442xs \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u043f\u043e\u0447\u0442\u0430 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u043f\u043e\u0447\u0442\u043e\u0432\u043e\u0435\u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u043f\u043e\u0447\u0442\u043e\u0432\u044b\u0439\u043f\u0440\u043e\u0444\u0438\u043b\u044c \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u043f\u0440\u043e\u043a\u0441\u0438 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f\u0434\u043b\u044f\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044fxs \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u0430\u0442\u0440\u0438\u0431\u0443\u0442\u0430xs \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u0441\u043e\u0431\u044b\u0442\u0438\u044f\u0436\u0443\u0440\u043d\u0430\u043b\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0445\u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a\u043a\u043e\u043c\u043f\u043e\u043d\u043e\u0432\u043a\u0438\u0434\u0430\u043d\u043d\u044b\u0445 \u0438\u0442\u0435\u0440\u0430\u0442\u043e\u0440\u0443\u0437\u043b\u043e\u0432dom \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0430 \u043a\u0432\u0430\u043b\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u044b\u0434\u0430\u0442\u044b \u043a\u0432\u0430\u043b\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u044b\u0434\u0432\u043e\u0438\u0447\u043d\u044b\u0445\u0434\u0430\u043d\u043d\u044b\u0445 \u043a\u0432\u0430\u043b\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u044b\u0441\u0442\u0440\u043e\u043a\u0438 \u043a\u0432\u0430\u043b\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u044b\u0447\u0438\u0441\u043b\u0430 \u043a\u043e\u043c\u043f\u043e\u043d\u043e\u0432\u0449\u0438\u043a\u043c\u0430\u043a\u0435\u0442\u0430\u043a\u043e\u043c\u043f\u043e\u043d\u043e\u0432\u043a\u0438\u0434\u0430\u043d\u043d\u044b\u0445 \u043a\u043e\u043c\u043f\u043e\u043d\u043e\u0432\u0449\u0438\u043a\u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a\u043a\u043e\u043c\u043f\u043e\u043d\u043e\u0432\u043a\u0438\u0434\u0430\u043d\u043d\u044b\u0445 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u043e\u0440\u043c\u0430\u043a\u0435\u0442\u0430\u043e\u0444\u043e\u0440\u043c\u043b\u0435\u043d\u0438\u044f\u043a\u043e\u043c\u043f\u043e\u043d\u043e\u0432\u043a\u0438\u0434\u0430\u043d\u043d\u044b\u0445 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u043e\u0440\u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a\u043a\u043e\u043c\u043f\u043e\u043d\u043e\u0432\u043a\u0438\u0434\u0430\u043d\u043d\u044b\u0445 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u043e\u0440\u0444\u043e\u0440\u043c\u0430\u0442\u043d\u043e\u0439\u0441\u0442\u0440\u043e\u043a\u0438 \u043b\u0438\u043d\u0438\u044f \u043c\u0430\u043a\u0435\u0442\u043a\u043e\u043c\u043f\u043e\u043d\u043e\u0432\u043a\u0438\u0434\u0430\u043d\u043d\u044b\u0445 \u043c\u0430\u043a\u0435\u0442\u043e\u0431\u043b\u0430\u0441\u0442\u0438\u043a\u043e\u043c\u043f\u043e\u043d\u043e\u0432\u043a\u0438\u0434\u0430\u043d\u043d\u044b\u0445 \u043c\u0430\u043a\u0435\u0442\u043e\u0444\u043e\u0440\u043c\u043b\u0435\u043d\u0438\u044f\u043a\u043e\u043c\u043f\u043e\u043d\u043e\u0432\u043a\u0438\u0434\u0430\u043d\u043d\u044b\u0445 \u043c\u0430\u0441\u043a\u0430xs \u043c\u0435\u043d\u0435\u0434\u0436\u0435\u0440\u043a\u0440\u0438\u043f\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0438 \u043d\u0430\u0431\u043e\u0440\u0441\u0445\u0435\u043cxml \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438\u043a\u043e\u043c\u043f\u043e\u043d\u043e\u0432\u043a\u0438\u0434\u0430\u043d\u043d\u044b\u0445 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438\u0441\u0435\u0440\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438json \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430\u043a\u0430\u0440\u0442\u0438\u043d\u043e\u043a \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430\u0440\u0430\u0441\u0448\u0438\u0444\u0440\u043e\u0432\u043a\u0438\u043a\u043e\u043c\u043f\u043e\u043d\u043e\u0432\u043a\u0438\u0434\u0430\u043d\u043d\u044b\u0445 \u043e\u0431\u0445\u043e\u0434\u0434\u0435\u0440\u0435\u0432\u0430dom \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0438\u0435\u0430\u0442\u0440\u0438\u0431\u0443\u0442\u0430xs \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0438\u0435\u043d\u043e\u0442\u0430\u0446\u0438\u0438xs \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0438\u0435\u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430xs \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f\u0441\u043e\u0431\u044b\u0442\u0438\u044f\u0434\u043e\u0441\u0442\u0443\u043f\u0436\u0443\u0440\u043d\u0430\u043b\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f\u0441\u043e\u0431\u044b\u0442\u0438\u044f\u043e\u0442\u043a\u0430\u0437\u0432\u0434\u043e\u0441\u0442\u0443\u043f\u0435\u0436\u0443\u0440\u043d\u0430\u043b\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435\u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438\u0440\u0430\u0441\u0448\u0438\u0444\u0440\u043e\u0432\u043a\u0438\u043a\u043e\u043c\u043f\u043e\u043d\u043e\u0432\u043a\u0438\u0434\u0430\u043d\u043d\u044b\u0445 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435\u043f\u0435\u0440\u0435\u0434\u0430\u0432\u0430\u0435\u043c\u043e\u0433\u043e\u0444\u0430\u0439\u043b\u0430 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435\u0442\u0438\u043f\u043e\u0432 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435\u0433\u0440\u0443\u043f\u043f\u044b\u0430\u0442\u0440\u0438\u0431\u0443\u0442\u043e\u0432xs \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435\u0433\u0440\u0443\u043f\u043f\u044b\u043c\u043e\u0434\u0435\u043b\u0438xs \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435\u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u044f\u0438\u0434\u0435\u043d\u0442\u0438\u0447\u043d\u043e\u0441\u0442\u0438xs \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435\u043f\u0440\u043e\u0441\u0442\u043e\u0433\u043e\u0442\u0438\u043f\u0430xs \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435\u0441\u043e\u0441\u0442\u0430\u0432\u043d\u043e\u0433\u043e\u0442\u0438\u043f\u0430xs \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435\u0442\u0438\u043f\u0430\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430dom \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044fxpathxs \u043e\u0442\u0431\u043e\u0440\u043a\u043e\u043c\u043f\u043e\u043d\u043e\u0432\u043a\u0438\u0434\u0430\u043d\u043d\u044b\u0445 \u043f\u0430\u043a\u0435\u0442\u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0435\u043c\u044b\u0445\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u043e\u0432 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0432\u044b\u0431\u043e\u0440\u0430 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043a\u043e\u043c\u043f\u043e\u043d\u043e\u0432\u043a\u0438\u0434\u0430\u043d\u043d\u044b\u0445 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b\u0437\u0430\u043f\u0438\u0441\u0438json \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b\u0437\u0430\u043f\u0438\u0441\u0438xml \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b\u0447\u0442\u0435\u043d\u0438\u044fxml \u043f\u0435\u0440\u0435\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435xs \u043f\u043b\u0430\u043d\u0438\u0440\u043e\u0432\u0449\u0438\u043a \u043f\u043e\u043b\u0435\u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0434\u0430\u043d\u043d\u044b\u0445 \u043f\u043e\u043b\u0435\u043a\u043e\u043c\u043f\u043e\u043d\u043e\u0432\u043a\u0438\u0434\u0430\u043d\u043d\u044b\u0445 \u043f\u043e\u0441\u0442\u0440\u043e\u0438\u0442\u0435\u043b\u044cdom \u043f\u043e\u0441\u0442\u0440\u043e\u0438\u0442\u0435\u043b\u044c\u0437\u0430\u043f\u0440\u043e\u0441\u0430 \u043f\u043e\u0441\u0442\u0440\u043e\u0438\u0442\u0435\u043b\u044c\u043e\u0442\u0447\u0435\u0442\u0430 \u043f\u043e\u0441\u0442\u0440\u043e\u0438\u0442\u0435\u043b\u044c\u043e\u0442\u0447\u0435\u0442\u0430\u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0434\u0430\u043d\u043d\u044b\u0445 \u043f\u043e\u0441\u0442\u0440\u043e\u0438\u0442\u0435\u043b\u044c\u0441\u0445\u0435\u043cxml \u043f\u043e\u0442\u043e\u043a \u043f\u043e\u0442\u043e\u043a\u0432\u043f\u0430\u043c\u044f\u0442\u0438 \u043f\u043e\u0447\u0442\u0430 \u043f\u043e\u0447\u0442\u043e\u0432\u043e\u0435\u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u0435xsl \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043a\u043a\u0430\u043d\u043e\u043d\u0438\u0447\u0435\u0441\u043a\u043e\u043c\u0443xml \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u0432\u044b\u0432\u043e\u0434\u0430\u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430\u043a\u043e\u043c\u043f\u043e\u043d\u043e\u0432\u043a\u0438\u0434\u0430\u043d\u043d\u044b\u0445\u0432\u043a\u043e\u043b\u043b\u0435\u043a\u0446\u0438\u044e\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u0432\u044b\u0432\u043e\u0434\u0430\u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430\u043a\u043e\u043c\u043f\u043e\u043d\u043e\u0432\u043a\u0438\u0434\u0430\u043d\u043d\u044b\u0445\u0432\u0442\u0430\u0431\u043b\u0438\u0447\u043d\u044b\u0439\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u043a\u043e\u043c\u043f\u043e\u043d\u043e\u0432\u043a\u0438\u0434\u0430\u043d\u043d\u044b\u0445 \u0440\u0430\u0437\u044b\u043c\u0435\u043d\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u0438\u043c\u0435\u043ddom \u0440\u0430\u043c\u043a\u0430 \u0440\u0430\u0441\u043f\u0438\u0441\u0430\u043d\u0438\u0435\u0440\u0435\u0433\u043b\u0430\u043c\u0435\u043d\u0442\u043d\u043e\u0433\u043e\u0437\u0430\u0434\u0430\u043d\u0438\u044f \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u043d\u043e\u0435\u0438\u043c\u044fxml \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0447\u0442\u0435\u043d\u0438\u044f\u0434\u0430\u043d\u043d\u044b\u0445 \u0441\u0432\u043e\u0434\u043d\u0430\u044f\u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u0430 \u0441\u0432\u044f\u0437\u044c\u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u0432\u044b\u0431\u043e\u0440\u0430 \u0441\u0432\u044f\u0437\u044c\u043f\u043e\u0442\u0438\u043f\u0443 \u0441\u0432\u044f\u0437\u044c\u043f\u043e\u0442\u0438\u043f\u0443\u043a\u043e\u043c\u043f\u043e\u043d\u043e\u0432\u043a\u0438\u0434\u0430\u043d\u043d\u044b\u0445 \u0441\u0435\u0440\u0438\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440xdto \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043a\u043b\u0438\u0435\u043d\u0442\u0430windows \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043a\u043b\u0438\u0435\u043d\u0442\u0430\u0444\u0430\u0439\u043b \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043a\u0440\u0438\u043f\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0438 \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u044b\u0443\u0434\u043e\u0441\u0442\u043e\u0432\u0435\u0440\u044f\u044e\u0449\u0438\u0445\u0446\u0435\u043d\u0442\u0440\u043e\u0432windows \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u044b\u0443\u0434\u043e\u0441\u0442\u043e\u0432\u0435\u0440\u044f\u044e\u0449\u0438\u0445\u0446\u0435\u043d\u0442\u0440\u043e\u0432\u0444\u0430\u0439\u043b \u0441\u0436\u0430\u0442\u0438\u0435\u0434\u0430\u043d\u043d\u044b\u0445 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u0430\u044f\u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e \u0441\u043e\u0447\u0435\u0442\u0430\u043d\u0438\u0435\u043a\u043b\u0430\u0432\u0438\u0448 \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0435\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u0430\u044f\u0434\u0430\u0442\u0430\u043d\u0430\u0447\u0430\u043b\u0430 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0439\u043f\u0435\u0440\u0438\u043e\u0434 \u0441\u0445\u0435\u043c\u0430xml \u0441\u0445\u0435\u043c\u0430\u043a\u043e\u043c\u043f\u043e\u043d\u043e\u0432\u043a\u0438\u0434\u0430\u043d\u043d\u044b\u0445 \u0442\u0430\u0431\u043b\u0438\u0447\u043d\u044b\u0439\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442 \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0439\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442 \u0442\u0435\u0441\u0442\u0438\u0440\u0443\u0435\u043c\u043e\u0435\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0442\u0438\u043f\u0434\u0430\u043d\u043d\u044b\u0445xml \u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u044b\u0439\u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440 \u0444\u0430\u0431\u0440\u0438\u043a\u0430xdto \u0444\u0430\u0439\u043b \u0444\u0430\u0439\u043b\u043e\u0432\u044b\u0439\u043f\u043e\u0442\u043e\u043a \u0444\u0430\u0441\u0435\u0442\u0434\u043b\u0438\u043d\u044bxs \u0444\u0430\u0441\u0435\u0442\u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0430\u0440\u0430\u0437\u0440\u044f\u0434\u043e\u0432\u0434\u0440\u043e\u0431\u043d\u043e\u0439\u0447\u0430\u0441\u0442\u0438xs \u0444\u0430\u0441\u0435\u0442\u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0433\u043e\u0432\u043a\u043b\u044e\u0447\u0430\u044e\u0449\u0435\u0433\u043e\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044fxs \u0444\u0430\u0441\u0435\u0442\u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0433\u043e\u0438\u0441\u043a\u043b\u044e\u0447\u0430\u044e\u0449\u0435\u0433\u043e\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044fxs \u0444\u0430\u0441\u0435\u0442\u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0439\u0434\u043b\u0438\u043d\u044bxs \u0444\u0430\u0441\u0435\u0442\u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0433\u043e\u0432\u043a\u043b\u044e\u0447\u0430\u044e\u0449\u0435\u0433\u043e\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044fxs \u0444\u0430\u0441\u0435\u0442\u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0433\u043e\u0438\u0441\u043a\u043b\u044e\u0447\u0430\u044e\u0449\u0435\u0433\u043e\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044fxs \u0444\u0430\u0441\u0435\u0442\u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0439\u0434\u043b\u0438\u043d\u044bxs \u0444\u0430\u0441\u0435\u0442\u043e\u0431\u0440\u0430\u0437\u0446\u0430xs \u0444\u0430\u0441\u0435\u0442\u043e\u0431\u0449\u0435\u0433\u043e\u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0430\u0440\u0430\u0437\u0440\u044f\u0434\u043e\u0432xs \u0444\u0430\u0441\u0435\u0442\u043f\u0435\u0440\u0435\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u044fxs \u0444\u0430\u0441\u0435\u0442\u043f\u0440\u043e\u0431\u0435\u043b\u044c\u043d\u044b\u0445\u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432xs \u0444\u0438\u043b\u044c\u0442\u0440\u0443\u0437\u043b\u043e\u0432dom \u0444\u043e\u0440\u043c\u0430\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u0430\u044f\u0441\u0442\u0440\u043e\u043a\u0430 \u0444\u043e\u0440\u043c\u0430\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442 \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442xs \u0445\u0435\u0448\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435\u0434\u0430\u043d\u043d\u044b\u0445 \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0446\u0432\u0435\u0442 \u0447\u0442\u0435\u043d\u0438\u0435fastinfoset \u0447\u0442\u0435\u043d\u0438\u0435html \u0447\u0442\u0435\u043d\u0438\u0435json \u0447\u0442\u0435\u043d\u0438\u0435xml \u0447\u0442\u0435\u043d\u0438\u0435zip\u0444\u0430\u0439\u043b\u0430 \u0447\u0442\u0435\u043d\u0438\u0435\u0434\u0430\u043d\u043d\u044b\u0445 \u0447\u0442\u0435\u043d\u0438\u0435\u0442\u0435\u043a\u0441\u0442\u0430 \u0447\u0442\u0435\u043d\u0438\u0435\u0443\u0437\u043b\u043e\u0432dom \u0448\u0440\u0438\u0444\u0442 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430\u043a\u043e\u043c\u043f\u043e\u043d\u043e\u0432\u043a\u0438\u0434\u0430\u043d\u043d\u044b\u0445 comsafearray \u0434\u0435\u0440\u0435\u0432\u043e\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 \u043c\u0430\u0441\u0441\u0438\u0432 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0435 \u0441\u043f\u0438\u0441\u043e\u043a\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u0442\u0430\u0431\u043b\u0438\u0446\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 \u0444\u0438\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u0430\u044f\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u0444\u0438\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0435\u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0435 \u0444\u0438\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439\u043c\u0430\u0441\u0441\u0438\u0432 ",literal:ue},contains:[{className:"meta",begin:"#|&",end:"$",keywords:{$pattern:t,keyword:o+"\u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c\u0438\u0437\u0444\u0430\u0439\u043b\u0430 \u0432\u0435\u0431\u043a\u043b\u0438\u0435\u043d\u0442 \u0432\u043c\u0435\u0441\u0442\u043e \u0432\u043d\u0435\u0448\u043d\u0435\u0435\u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435 \u043a\u043b\u0438\u0435\u043d\u0442 \u043a\u043e\u043d\u0435\u0446\u043e\u0431\u043b\u0430\u0441\u0442\u0438 \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u043e\u0435\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435\u043a\u043b\u0438\u0435\u043d\u0442 \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u043e\u0435\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435\u0441\u0435\u0440\u0432\u0435\u0440 \u043d\u0430\u043a\u043b\u0438\u0435\u043d\u0442\u0435 \u043d\u0430\u043a\u043b\u0438\u0435\u043d\u0442\u0435\u043d\u0430\u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u043d\u0430\u043a\u043b\u0438\u0435\u043d\u0442\u0435\u043d\u0430\u0441\u0435\u0440\u0432\u0435\u0440\u0435\u0431\u0435\u0437\u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u0430 \u043d\u0430\u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u043d\u0430\u0441\u0435\u0440\u0432\u0435\u0440\u0435\u0431\u0435\u0437\u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u0430 \u043e\u0431\u043b\u0430\u0441\u0442\u044c \u043f\u0435\u0440\u0435\u0434 \u043f\u043e\u0441\u043b\u0435 \u0441\u0435\u0440\u0432\u0435\u0440 \u0442\u043e\u043b\u0441\u0442\u044b\u0439\u043a\u043b\u0438\u0435\u043d\u0442\u043e\u0431\u044b\u0447\u043d\u043e\u0435\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0442\u043e\u043b\u0441\u0442\u044b\u0439\u043a\u043b\u0438\u0435\u043d\u0442\u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c\u043e\u0435\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0442\u043e\u043d\u043a\u0438\u0439\u043a\u043b\u0438\u0435\u043d\u0442 "},contains:[z]},{className:"function",variants:[{begin:"\u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u0430|\u0444\u0443\u043d\u043a\u0446\u0438\u044f",end:"\\)",keywords:"\u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u044f"},{begin:"\u043a\u043e\u043d\u0435\u0446\u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u044b|\u043a\u043e\u043d\u0435\u0446\u0444\u0443\u043d\u043a\u0446\u0438\u0438",keywords:"\u043a\u043e\u043d\u0435\u0446\u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u044b \u043a\u043e\u043d\u0435\u0446\u0444\u0443\u043d\u043a\u0446\u0438\u0438"}],contains:[{begin:"\\(",end:"\\)",endsParent:!0,contains:[{className:"params",begin:t,end:",",excludeEnd:!0,endsWithParent:!0,keywords:{$pattern:t,keyword:"\u0437\u043d\u0430\u0447",literal:ue},contains:[ce,_e,X]},z]},e.inherit(e.TITLE_MODE,{begin:t})]},z,{className:"symbol",begin:"~",end:";|:",excludeEnd:!0},ce,_e,X]}}},9709:r=>{r.exports=function a(e){const t=e.regex,o=e.COMMENT(/;/,/$/);return{name:"Augmented Backus-Naur Form",illegal:/[!@#$^&',?+~`|:]/,keywords:["ALPHA","BIT","CHAR","CR","CRLF","CTL","DIGIT","DQUOTE","HEXDIG","HTAB","LF","LWSP","OCTET","SP","VCHAR","WSP"],contains:[{scope:"operator",match:/=\/?/},{scope:"attribute",match:t.concat(/^[a-zA-Z][a-zA-Z0-9-]*/,/(?=\s*=)/)},o,{scope:"symbol",match:/%b[0-1]+(-[0-1]+|(\.[0-1]+)+)?/},{scope:"symbol",match:/%d[0-9]+(-[0-9]+|(\.[0-9]+)+)?/},{scope:"symbol",match:/%x[0-9A-F]+(-[0-9A-F]+|(\.[0-9A-F]+)+)?/},{scope:"symbol",match:/%[si](?=".*")/},e.QUOTE_STRING_MODE,e.NUMBER_MODE]}}},4686:r=>{r.exports=function a(e){const t=e.regex,n=["GET","POST","HEAD","PUT","DELETE","CONNECT","OPTIONS","PATCH","TRACE"];return{name:"Apache Access Log",contains:[{className:"number",begin:/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}(:\d{1,5})?\b/,relevance:5},{className:"number",begin:/\b\d+\b/,relevance:0},{className:"string",begin:t.concat(/"/,t.either(...n)),end:/"/,keywords:n,illegal:/\n/,relevance:5,contains:[{begin:/HTTP\/[12]\.\d'/,relevance:5}]},{className:"string",begin:/\[\d[^\]\n]{8,}\]/,illegal:/\n/,relevance:1},{className:"string",begin:/\[/,end:/\]/,illegal:/\n/,relevance:0},{className:"string",begin:/"Mozilla\/\d\.\d \(/,end:/"/,illegal:/\n/,relevance:3},{className:"string",begin:/"/,end:/"/,illegal:/\n/,relevance:0}]}}},8206:r=>{r.exports=function a(e){const t=e.regex,n=/[a-zA-Z_$][a-zA-Z0-9_$]*/,i=t.concat(n,t.concat("(\\.",n,")*")),c={className:"rest_arg",begin:/[.]{3}/,end:n,relevance:10};return{name:"ActionScript",aliases:["as"],keywords:{keyword:["as","break","case","catch","class","const","continue","default","delete","do","dynamic","each","else","extends","final","finally","for","function","get","if","implements","import","in","include","instanceof","interface","internal","is","namespace","native","new","override","package","private","protected","public","return","set","static","super","switch","this","throw","try","typeof","use","var","void","while","with"],literal:["true","false","null","undefined"]},contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.C_NUMBER_MODE,{match:[/\bpackage/,/\s+/,i],className:{1:"keyword",3:"title.class"}},{match:[/\b(?:class|interface|extends|implements)/,/\s+/,n],className:{1:"keyword",3:"title.class"}},{className:"meta",beginKeywords:"import include",end:/;/,keywords:{keyword:"import include"}},{beginKeywords:"function",end:/[{;]/,excludeEnd:!0,illegal:/\S/,contains:[e.inherit(e.TITLE_MODE,{className:"title.function"}),{className:"params",begin:/\(/,end:/\)/,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,c]},{begin:t.concat(/:\s*/,/([*]|[a-zA-Z_$][a-zA-Z0-9_$]*)/)}]},e.METHOD_GUARD],illegal:/#/}}},7437:r=>{r.exports=function a(e){const t="\\d(_|\\d)*",n="[eE][-+]?"+t,s="\\b("+t+"#\\w+(\\.\\w+)?#("+n+")?|"+t+"(\\."+t+")?("+n+")?)",l="[A-Za-z](_?[A-Za-z0-9.])*",_="[]\\{\\}%#'\"",d=e.COMMENT("--","$"),m={begin:"\\s+:\\s+",end:"\\s*(:=|;|\\)|=>|$)",illegal:_,contains:[{beginKeywords:"loop for declare others",endsParent:!0},{className:"keyword",beginKeywords:"not null constant access function procedure in out aliased exception"},{className:"type",begin:l,endsParent:!0,relevance:0}]};return{name:"Ada",case_insensitive:!0,keywords:{keyword:["abort","else","new","return","abs","elsif","not","reverse","abstract","end","accept","entry","select","access","exception","of","separate","aliased","exit","or","some","all","others","subtype","and","for","out","synchronized","array","function","overriding","at","tagged","generic","package","task","begin","goto","pragma","terminate","body","private","then","if","procedure","type","case","in","protected","constant","interface","is","raise","use","declare","range","delay","limited","record","when","delta","loop","rem","while","digits","renames","with","do","mod","requeue","xor"],literal:["True","False"]},contains:[d,{className:"string",begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{className:"string",begin:/'.'/},{className:"number",begin:s,relevance:0},{className:"symbol",begin:"'"+l},{className:"title",begin:"(\\bwith\\s+)?(\\bprivate\\s+)?\\bpackage\\s+(\\bbody\\s+)?",end:"(is|$)",keywords:"package body",excludeBegin:!0,excludeEnd:!0,illegal:_},{begin:"(\\b(with|overriding)\\s+)?\\b(function|procedure)\\s+",end:"(\\bis|\\bwith|\\brenames|\\)\\s*;)",keywords:"overriding function procedure with is renames return",returnBegin:!0,contains:[d,{className:"title",begin:"(\\bwith\\s+)?\\b(function|procedure)\\s+",end:"(\\(|\\s+|$)",excludeBegin:!0,excludeEnd:!0,illegal:_},m,{className:"type",begin:"\\breturn\\s+",end:"(\\s+|;|$)",keywords:"return",excludeBegin:!0,excludeEnd:!0,endsParent:!0,illegal:_}]},{className:"type",begin:"\\b(sub)?type\\s+",end:"\\s+",keywords:"type",excludeBegin:!0,illegal:_},m]}}},5459:r=>{r.exports=function a(e){const t={className:"built_in",begin:"\\b(void|bool|int8|int16|int32|int64|int|uint8|uint16|uint32|uint64|uint|string|ref|array|double|float|auto|dictionary)"},n={className:"symbol",begin:"[a-zA-Z0-9_]+@"},i={className:"keyword",begin:"<",end:">",contains:[t,n]};return t.contains=[i],n.contains=[i],{name:"AngelScript",aliases:["asc"],keywords:["for","in|0","break","continue","while","do|0","return","if","else","case","switch","namespace","is","cast","or","and","xor","not","get|0","in","inout|10","out","override","set|0","private","public","const","default|0","final","shared","external","mixin|10","enum","typedef","funcdef","this","super","import","from","interface","abstract|0","try","catch","protected","explicit","property"],illegal:"(^using\\s+[A-Za-z0-9_\\.]+;$|\\bfunction\\s*[^\\(])",contains:[{className:"string",begin:"'",end:"'",illegal:"\\n",contains:[e.BACKSLASH_ESCAPE],relevance:0},{className:"string",begin:'"""',end:'"""'},{className:"string",begin:'"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE],relevance:0},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"string",begin:"^\\s*\\[",end:"\\]"},{beginKeywords:"interface namespace",end:/\{/,illegal:"[;.\\-]",contains:[{className:"symbol",begin:"[a-zA-Z0-9_]+"}]},{beginKeywords:"class",end:/\{/,illegal:"[;.\\-]",contains:[{className:"symbol",begin:"[a-zA-Z0-9_]+",contains:[{begin:"[:,]\\s*",contains:[{className:"symbol",begin:"[a-zA-Z0-9_]+"}]}]}]},t,n,{className:"literal",begin:"\\b(null|true|false)"},{className:"number",relevance:0,begin:"(-?)(\\b0[xXbBoOdD][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?f?|\\.\\d+f?)([eE][-+]?\\d+f?)?)"}]}}},1130:r=>{r.exports=function a(e){const i={className:"number",begin:/\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}(:\d{1,5})?/};return{name:"Apache config",aliases:["apacheconf"],case_insensitive:!0,contains:[e.HASH_COMMENT_MODE,{className:"section",begin:/<\/?/,end:/>/,contains:[i,{className:"number",begin:/:\d{1,5}/},e.inherit(e.QUOTE_STRING_MODE,{relevance:0})]},{className:"attribute",begin:/\w+/,relevance:0,keywords:{_:["order","deny","allow","setenv","rewriterule","rewriteengine","rewritecond","documentroot","sethandler","errordocument","loadmodule","options","header","listen","serverroot","servername"]},starts:{end:/$/,relevance:0,keywords:{literal:"on off all deny allow"},contains:[{className:"meta",begin:/\s\[/,end:/\]$/},{className:"variable",begin:/[\$%]\{/,end:/\}/,contains:["self",{className:"number",begin:/[$%]\d+/}]},i,{className:"number",begin:/\b\d+/},e.QUOTE_STRING_MODE]}}],illegal:/\S/}}},1605:r=>{r.exports=function a(e){const t=e.regex,n=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),i={className:"params",begin:/\(/,end:/\)/,contains:["self",e.C_NUMBER_MODE,n]},o=e.COMMENT(/--/,/$/),s=[o,e.COMMENT(/\(\*/,/\*\)/,{contains:["self",o]}),e.HASH_COMMENT_MODE];return{name:"AppleScript",aliases:["osascript"],keywords:{keyword:"about above after against and around as at back before beginning behind below beneath beside between but by considering contain contains continue copy div does eighth else end equal equals error every exit fifth first for fourth from front get given global if ignoring in into is it its last local me middle mod my ninth not of on onto or over prop property put ref reference repeat returning script second set seventh since sixth some tell tenth that the|0 then third through thru timeout times to transaction try until where while whose with without",literal:"AppleScript false linefeed return pi quote result space tab true",built_in:"alias application boolean class constant date file integer list number real record string text activate beep count delay launch log offset read round run say summarize write character characters contents day frontmost id item length month name|0 paragraph paragraphs rest reverse running time version weekday word words year"},contains:[n,e.C_NUMBER_MODE,{className:"built_in",begin:t.concat(/\b/,t.either(/clipboard info/,/the clipboard/,/info for/,/list (disks|folder)/,/mount volume/,/path to/,/(close|open for) access/,/(get|set) eof/,/current date/,/do shell script/,/get volume settings/,/random number/,/set volume/,/system attribute/,/system info/,/time to GMT/,/(load|run|store) script/,/scripting components/,/ASCII (character|number)/,/localized string/,/choose (application|color|file|file name|folder|from list|remote application|URL)/,/display (alert|dialog)/),/\b/)},{className:"built_in",begin:/^\s*return\b/},{className:"literal",begin:/\b(text item delimiters|current application|missing value)\b/},{className:"keyword",begin:t.concat(/\b/,t.either(/apart from/,/aside from/,/instead of/,/out of/,/greater than/,/isn't|(doesn't|does not) (equal|come before|come after|contain)/,/(greater|less) than( or equal)?/,/(starts?|ends|begins?) with/,/contained by/,/comes (before|after)/,/a (ref|reference)/,/POSIX (file|path)/,/(date|time) string/,/quoted form/),/\b/)},{beginKeywords:"on",illegal:/[${=;\n]/,contains:[e.UNDERSCORE_TITLE_MODE,i]},...s],illegal:/\/\/|->|=>|\[\[/}}},9185:r=>{r.exports=function a(e){const t="[A-Za-z_][0-9A-Za-z_]*",n={keyword:["if","for","while","var","new","function","do","return","void","else","break"],literal:["BackSlash","DoubleQuote","false","ForwardSlash","Infinity","NaN","NewLine","null","PI","SingleQuote","Tab","TextFormatting","true","undefined"],built_in:["Abs","Acos","All","Angle","Any","Area","AreaGeodetic","Array","Asin","Atan","Atan2","Attachments","Average","Back","Bearing","Boolean","Buffer","BufferGeodetic","Ceil","Centroid","Clip","Concatenate","Console","Constrain","Contains","ConvertDirection","Cos","Count","Crosses","Cut","Date","DateAdd","DateDiff","Day","Decode","DefaultValue","Densify","DensifyGeodetic","Dictionary","Difference","Disjoint","Distance","DistanceGeodetic","Distinct","Domain","DomainCode","DomainName","EnvelopeIntersects","Equals","Erase","Exp","Expects","Extent","Feature","FeatureSet","FeatureSetByAssociation","FeatureSetById","FeatureSetByName","FeatureSetByPortalItem","FeatureSetByRelationshipName","Filter","Find","First","Floor","FromCharCode","FromCodePoint","FromJSON","GdbVersion","Generalize","Geometry","GetFeatureSet","GetUser","GroupBy","Guid","Hash","HasKey","Hour","IIf","Includes","IndexOf","Insert","Intersection","Intersects","IsEmpty","IsNan","ISOMonth","ISOWeek","ISOWeekday","ISOYear","IsSelfIntersecting","IsSimple","Left|0","Length","Length3D","LengthGeodetic","Log","Lower","Map","Max","Mean","Mid","Millisecond","Min","Minute","Month","MultiPartToSinglePart","Multipoint","NextSequenceValue","None","Now","Number","Offset|0","OrderBy","Overlaps","Point","Polygon","Polyline","Pop","Portal","Pow","Proper","Push","Random","Reduce","Relate","Replace","Resize","Reverse","Right|0","RingIsClockwise","Rotate","Round","Schema","Second","SetGeometry","Simplify","Sin","Slice","Sort","Splice","Split","Sqrt","Stdev","SubtypeCode","SubtypeName","Subtypes","Sum","SymmetricDifference","Tan","Text","Timestamp","ToCharCode","ToCodePoint","Today","ToHex","ToLocal","Top|0","Touches","ToUTC","TrackAccelerationAt","TrackAccelerationWindow","TrackCurrentAcceleration","TrackCurrentDistance","TrackCurrentSpeed","TrackCurrentTime","TrackDistanceAt","TrackDistanceWindow","TrackDuration","TrackFieldWindow","TrackGeometryWindow","TrackIndex","TrackSpeedAt","TrackSpeedWindow","TrackStartTime","TrackWindow","Trim","TypeOf","Union","Upper","UrlEncode","Variance","Week","Weekday","When","Within","Year"]},o={className:"number",variants:[{begin:"\\b(0[bB][01]+)"},{begin:"\\b(0[oO][0-7]+)"},{begin:e.C_NUMBER_RE}],relevance:0},c={className:"subst",begin:"\\$\\{",end:"\\}",keywords:n,contains:[]},s={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,c]};c.contains=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,s,o,e.REGEXP_MODE];const l=c.contains.concat([e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]);return{name:"ArcGIS Arcade",case_insensitive:!0,keywords:n,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,s,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"symbol",begin:"\\$[datastore|feature|layer|map|measure|sourcefeature|sourcelayer|targetfeature|targetlayer|value|view]+"},o,{begin:/[{,]\s*/,relevance:0,contains:[{begin:t+"\\s*:",returnBegin:!0,relevance:0,contains:[{className:"attr",begin:t,relevance:0}]}]},{begin:"("+e.RE_STARTERS_RE+"|\\b(return)\\b)\\s*",keywords:"return",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.REGEXP_MODE,{className:"function",begin:"(\\(.*?\\)|"+t+")\\s*=>",returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:t},{begin:/\(\s*\)/},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:n,contains:l}]}]}],relevance:0},{beginKeywords:"function",end:/\{/,excludeEnd:!0,contains:[e.inherit(e.TITLE_MODE,{className:"title.function",begin:t}),{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,contains:l}],illegal:/\[|%/},{begin:/\$[(.]/}],illegal:/#(?!!)/}}},4196:r=>{r.exports=function e(t){const n={type:["boolean","byte","word","String"],built_in:["KeyboardController","MouseController","SoftwareSerial","EthernetServer","EthernetClient","LiquidCrystal","RobotControl","GSMVoiceCall","EthernetUDP","EsploraTFT","HttpClient","RobotMotor","WiFiClient","GSMScanner","FileSystem","Scheduler","GSMServer","YunClient","YunServer","IPAddress","GSMClient","GSMModem","Keyboard","Ethernet","Console","GSMBand","Esplora","Stepper","Process","WiFiUDP","GSM_SMS","Mailbox","USBHost","Firmata","PImage","Client","Server","GSMPIN","FileIO","Bridge","Serial","EEPROM","Stream","Mouse","Audio","Servo","File","Task","GPRS","WiFi","Wire","TFT","GSM","SPI","SD"],_hints:["setup","loop","runShellCommandAsynchronously","analogWriteResolution","retrieveCallingNumber","printFirmwareVersion","analogReadResolution","sendDigitalPortPair","noListenOnLocalhost","readJoystickButton","setFirmwareVersion","readJoystickSwitch","scrollDisplayRight","getVoiceCallStatus","scrollDisplayLeft","writeMicroseconds","delayMicroseconds","beginTransmission","getSignalStrength","runAsynchronously","getAsynchronously","listenOnLocalhost","getCurrentCarrier","readAccelerometer","messageAvailable","sendDigitalPorts","lineFollowConfig","countryNameWrite","runShellCommand","readStringUntil","rewindDirectory","readTemperature","setClockDivider","readLightSensor","endTransmission","analogReference","detachInterrupt","countryNameRead","attachInterrupt","encryptionType","readBytesUntil","robotNameWrite","readMicrophone","robotNameRead","cityNameWrite","userNameWrite","readJoystickY","readJoystickX","mouseReleased","openNextFile","scanNetworks","noInterrupts","digitalWrite","beginSpeaker","mousePressed","isActionDone","mouseDragged","displayLogos","noAutoscroll","addParameter","remoteNumber","getModifiers","keyboardRead","userNameRead","waitContinue","processInput","parseCommand","printVersion","readNetworks","writeMessage","blinkVersion","cityNameRead","readMessage","setDataMode","parsePacket","isListening","setBitOrder","beginPacket","isDirectory","motorsWrite","drawCompass","digitalRead","clearScreen","serialEvent","rightToLeft","setTextSize","leftToRight","requestFrom","keyReleased","compassRead","analogWrite","interrupts","WiFiServer","disconnect","playMelody","parseFloat","autoscroll","getPINUsed","setPINUsed","setTimeout","sendAnalog","readSlider","analogRead","beginWrite","createChar","motorsStop","keyPressed","tempoWrite","readButton","subnetMask","debugPrint","macAddress","writeGreen","randomSeed","attachGPRS","readString","sendString","remotePort","releaseAll","mouseMoved","background","getXChange","getYChange","answerCall","getResult","voiceCall","endPacket","constrain","getSocket","writeJSON","getButton","available","connected","findUntil","readBytes","exitValue","readGreen","writeBlue","startLoop","IPAddress","isPressed","sendSysex","pauseMode","gatewayIP","setCursor","getOemKey","tuneWrite","noDisplay","loadImage","switchPIN","onRequest","onReceive","changePIN","playFile","noBuffer","parseInt","overflow","checkPIN","knobRead","beginTFT","bitClear","updateIR","bitWrite","position","writeRGB","highByte","writeRed","setSpeed","readBlue","noStroke","remoteIP","transfer","shutdown","hangCall","beginSMS","endWrite","attached","maintain","noCursor","checkReg","checkPUK","shiftOut","isValid","shiftIn","pulseIn","connect","println","localIP","pinMode","getIMEI","display","noBlink","process","getBand","running","beginSD","drawBMP","lowByte","setBand","release","bitRead","prepare","pointTo","readRed","setMode","noFill","remove","listen","stroke","detach","attach","noTone","exists","buffer","height","bitSet","circle","config","cursor","random","IRread","setDNS","endSMS","getKey","micros","millis","begin","print","write","ready","flush","width","isPIN","blink","clear","press","mkdir","rmdir","close","point","yield","image","BSSID","click","delay","read","text","move","peek","beep","rect","line","open","seek","fill","size","turn","stop","home","find","step","tone","sqrt","RSSI","SSID","end","bit","tan","cos","sin","pow","map","abs","max","min","get","run","put"],literal:["DIGITAL_MESSAGE","FIRMATA_STRING","ANALOG_MESSAGE","REPORT_DIGITAL","REPORT_ANALOG","INPUT_PULLUP","SET_PIN_MODE","INTERNAL2V56","SYSTEM_RESET","LED_BUILTIN","INTERNAL1V1","SYSEX_START","INTERNAL","EXTERNAL","DEFAULT","OUTPUT","INPUT","HIGH","LOW"]},i=function a(t){const n=t.regex,i=t.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),o="decltype\\(auto\\)",c="[a-zA-Z_]\\w*::",l="(?!struct)("+o+"|"+n.optional(c)+"[a-zA-Z_]\\w*"+n.optional("<[^<>]+>")+")",_={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},m={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[t.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'(\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)|.)",end:"'",illegal:"."},t.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},u={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},p={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},t.inherit(m,{className:"string"}),{className:"string",begin:/<.*?>/},i,t.C_BLOCK_COMMENT_MODE]},S={className:"title",begin:n.optional(c)+t.IDENT_RE,relevance:0},g=n.optional(c)+t.IDENT_RE+"\\s*\\(",O={type:["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],keyword:["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"]},w={className:"function.dispatch",relevance:0,keywords:{_hint:["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"]},begin:n.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,t.IDENT_RE,n.lookahead(/(<[^<>]+>|)\s*\(/))},D=[w,p,_,i,t.C_BLOCK_COMMENT_MODE,u,m],U={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:O,contains:D.concat([{begin:/\(/,end:/\)/,keywords:O,contains:D.concat(["self"]),relevance:0}]),relevance:0};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:O,illegal:".]/,contains:[{begin:o,keywords:O,relevance:0},{begin:g,returnBegin:!0,contains:[S],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[m,u]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:O,relevance:0,contains:[i,t.C_BLOCK_COMMENT_MODE,m,u,_,{begin:/\(/,end:/\)/,keywords:O,relevance:0,contains:["self",i,t.C_BLOCK_COMMENT_MODE,m,u,_]}]},_,i,t.C_BLOCK_COMMENT_MODE,p]},w,D,[p,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function)\\s*<(?!<)",end:">",keywords:O,contains:["self",_]},{begin:t.IDENT_RE+"::",keywords:O},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}(t),o=i.keywords;return o.type=[...o.type,...n.type],o.literal=[...o.literal,...n.literal],o.built_in=[...o.built_in,...n.built_in],o._hints=n._hints,i.name="Arduino",i.aliases=["ino"],i.supersetOf="cpp",i}},5334:r=>{r.exports=function a(e){const t={variants:[e.COMMENT("^[ \\t]*(?=#)","$",{relevance:0,excludeBegin:!0}),e.COMMENT("[;@]","$",{relevance:0}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]};return{name:"ARM Assembly",case_insensitive:!0,aliases:["arm"],keywords:{$pattern:"\\.?"+e.IDENT_RE,meta:".2byte .4byte .align .ascii .asciz .balign .byte .code .data .else .end .endif .endm .endr .equ .err .exitm .extern .global .hword .if .ifdef .ifndef .include .irp .long .macro .rept .req .section .set .skip .space .text .word .arm .thumb .code16 .code32 .force_thumb .thumb_func .ltorg ALIAS ALIGN ARM AREA ASSERT ATTR CN CODE CODE16 CODE32 COMMON CP DATA DCB DCD DCDU DCDO DCFD DCFDU DCI DCQ DCQU DCW DCWU DN ELIF ELSE END ENDFUNC ENDIF ENDP ENTRY EQU EXPORT EXPORTAS EXTERN FIELD FILL FUNCTION GBLA GBLL GBLS GET GLOBAL IF IMPORT INCBIN INCLUDE INFO KEEP LCLA LCLL LCLS LTORG MACRO MAP MEND MEXIT NOFP OPT PRESERVE8 PROC QN READONLY RELOC REQUIRE REQUIRE8 RLIST FN ROUT SETA SETL SETS SN SPACE SUBT THUMB THUMBX TTL WHILE WEND ",built_in:"r0 r1 r2 r3 r4 r5 r6 r7 r8 r9 r10 r11 r12 r13 r14 r15 pc lr sp ip sl sb fp a1 a2 a3 a4 v1 v2 v3 v4 v5 v6 v7 v8 f0 f1 f2 f3 f4 f5 f6 f7 p0 p1 p2 p3 p4 p5 p6 p7 p8 p9 p10 p11 p12 p13 p14 p15 c0 c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 c12 c13 c14 c15 q0 q1 q2 q3 q4 q5 q6 q7 q8 q9 q10 q11 q12 q13 q14 q15 cpsr_c cpsr_x cpsr_s cpsr_f cpsr_cx cpsr_cxs cpsr_xs cpsr_xsf cpsr_sf cpsr_cxsf spsr_c spsr_x spsr_s spsr_f spsr_cx spsr_cxs spsr_xs spsr_xsf spsr_sf spsr_cxsf s0 s1 s2 s3 s4 s5 s6 s7 s8 s9 s10 s11 s12 s13 s14 s15 s16 s17 s18 s19 s20 s21 s22 s23 s24 s25 s26 s27 s28 s29 s30 s31 d0 d1 d2 d3 d4 d5 d6 d7 d8 d9 d10 d11 d12 d13 d14 d15 d16 d17 d18 d19 d20 d21 d22 d23 d24 d25 d26 d27 d28 d29 d30 d31 {PC} {VAR} {TRUE} {FALSE} {OPT} {CONFIG} {ENDIAN} {CODESIZE} {CPU} {FPU} {ARCHITECTURE} {PCSTOREOFFSET} {ARMASM_VERSION} {INTER} {ROPI} {RWPI} {SWST} {NOSWST} . @"},contains:[{className:"keyword",begin:"\\b(adc|(qd?|sh?|u[qh]?)?add(8|16)?|usada?8|(q|sh?|u[qh]?)?(as|sa)x|and|adrl?|sbc|rs[bc]|asr|b[lx]?|blx|bxj|cbn?z|tb[bh]|bic|bfc|bfi|[su]bfx|bkpt|cdp2?|clz|clrex|cmp|cmn|cpsi[ed]|cps|setend|dbg|dmb|dsb|eor|isb|it[te]{0,3}|lsl|lsr|ror|rrx|ldm(([id][ab])|f[ds])?|ldr((s|ex)?[bhd])?|movt?|mvn|mra|mar|mul|[us]mull|smul[bwt][bt]|smu[as]d|smmul|smmla|mla|umlaal|smlal?([wbt][bt]|d)|mls|smlsl?[ds]|smc|svc|sev|mia([bt]{2}|ph)?|mrr?c2?|mcrr2?|mrs|msr|orr|orn|pkh(tb|bt)|rbit|rev(16|sh)?|sel|[su]sat(16)?|nop|pop|push|rfe([id][ab])?|stm([id][ab])?|str(ex)?[bhd]?|(qd?)?sub|(sh?|q|u[qh]?)?sub(8|16)|[su]xt(a?h|a?b(16)?)|srs([id][ab])?|swpb?|swi|smi|tst|teq|wfe|wfi|yield)(eq|ne|cs|cc|mi|pl|vs|vc|hi|ls|ge|lt|gt|le|al|hs|lo)?[sptrx]?(?=\\s)"},t,e.QUOTE_STRING_MODE,{className:"string",begin:"'",end:"[^\\\\]'",relevance:0},{className:"title",begin:"\\|",end:"\\|",illegal:"\\n",relevance:0},{className:"number",variants:[{begin:"[#$=]?0x[0-9a-f]+"},{begin:"[#$=]?0b[01]+"},{begin:"[#$=]\\d+"},{begin:"\\b\\d+"}],relevance:0},{className:"symbol",variants:[{begin:"^[ \\t]*[a-z_\\.\\$][a-z0-9_\\.\\$]+:"},{begin:"^[a-z_\\.\\$][a-z0-9_\\.\\$]+"},{begin:"[=#]\\w+"}],relevance:0}]}}},4614:r=>{r.exports=function a(e){const t=e.regex,o=[{className:"strong",begin:/\*{2}([^\n]+?)\*{2}/},{className:"strong",begin:t.concat(/\*\*/,/((\*(?!\*)|\\[^\n]|[^*\n\\])+\n)+/,/(\*(?!\*)|\\[^\n]|[^*\n\\])*/,/\*\*/),relevance:0},{className:"strong",begin:/\B\*(\S|\S[^\n]*?\S)\*(?!\w)/},{className:"strong",begin:/\*[^\s]([^\n]+\n)+([^\n]+)\*/}],c=[{className:"emphasis",begin:/_{2}([^\n]+?)_{2}/},{className:"emphasis",begin:t.concat(/__/,/((_(?!_)|\\[^\n]|[^_\n\\])+\n)+/,/(_(?!_)|\\[^\n]|[^_\n\\])*/,/__/),relevance:0},{className:"emphasis",begin:/\b_(\S|\S[^\n]*?\S)_(?!\w)/},{className:"emphasis",begin:/_[^\s]([^\n]+\n)+([^\n]+)_/},{className:"emphasis",begin:"\\B'(?!['\\s])",end:"(\\n{2}|')",contains:[{begin:"\\\\'\\w",relevance:0}],relevance:0}];return{name:"AsciiDoc",aliases:["adoc"],contains:[e.COMMENT("^/{4,}\\n","\\n/{4,}$",{relevance:10}),e.COMMENT("^//","$",{relevance:0}),{className:"title",begin:"^\\.\\w.*$"},{begin:"^[=\\*]{4,}\\n",end:"\\n^[=\\*]{4,}$",relevance:10},{className:"section",relevance:10,variants:[{begin:"^(={1,6})[ \t].+?([ \t]\\1)?$"},{begin:"^[^\\[\\]\\n]+?\\n[=\\-~\\^\\+]{2,}$"}]},{className:"meta",begin:"^:.+?:",end:"\\s",excludeEnd:!0,relevance:10},{className:"meta",begin:"^\\[.+?\\]$",relevance:0},{className:"quote",begin:"^_{4,}\\n",end:"\\n_{4,}$",relevance:10},{className:"code",begin:"^[\\-\\.]{4,}\\n",end:"\\n[\\-\\.]{4,}$",relevance:10},{begin:"^\\+{4,}\\n",end:"\\n\\+{4,}$",contains:[{begin:"<",end:">",subLanguage:"xml",relevance:0}],relevance:10},{className:"bullet",begin:"^(\\*+|-+|\\.+|[^\\n]+?::)\\s+"},{className:"symbol",begin:"^(NOTE|TIP|IMPORTANT|WARNING|CAUTION):\\s+",relevance:10},{begin:/\\[*_`]/},{begin:/\\\\\*{2}[^\n]*?\*{2}/},{begin:/\\\\_{2}[^\n]*_{2}/},{begin:/\\\\`{2}[^\n]*`{2}/},{begin:/[:;}][*_`](?![*_`])/},...o,...c,{className:"string",variants:[{begin:"``.+?''"},{begin:"`.+?'"}]},{className:"code",begin:/`{2}/,end:/(\n{2}|`{2})/},{className:"code",begin:"(`.+?`|\\+.+?\\+)",relevance:0},{className:"code",begin:"^[ \\t]",end:"$",relevance:0},{begin:"^'{3,}[ \\t]*$",relevance:10},{begin:"(link:)?(http|https|ftp|file|irc|image:?):\\S+?\\[[^[]*?\\]",returnBegin:!0,contains:[{begin:"(link|image:?):",relevance:0},{className:"link",begin:"\\w",end:"[^\\[]+",relevance:0},{className:"string",begin:"\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0,relevance:0}],relevance:10}]}}},4136:r=>{r.exports=function a(e){const t=e.regex,n=["false","synchronized","int","abstract","float","private","char","boolean","static","null","if","const","for","true","while","long","throw","strictfp","finally","protected","import","native","final","return","void","enum","else","extends","implements","break","transient","new","catch","instanceof","byte","super","volatile","case","assert","short","package","default","double","public","try","this","switch","continue","throws","privileged","aspectOf","adviceexecution","proceed","cflowbelow","cflow","initialization","preinitialization","staticinitialization","withincode","target","within","execution","getWithinTypeName","handler","thisJoinPoint","thisJoinPointStaticPart","thisEnclosingJoinPointStaticPart","declare","parents","warning","error","soft","precedence","thisAspectInstance"],i=["get","set","args","call"];return{name:"AspectJ",keywords:n,illegal:/<\/|#/,contains:[e.COMMENT(/\/\*\*/,/\*\//,{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:/@[A-Za-z]+/}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"class",beginKeywords:"aspect",end:/[{;=]/,excludeEnd:!0,illegal:/[:;"\[\]]/,contains:[{beginKeywords:"extends implements pertypewithin perthis pertarget percflowbelow percflow issingleton"},e.UNDERSCORE_TITLE_MODE,{begin:/\([^\)]*/,end:/[)]+/,keywords:n.concat(i),excludeEnd:!1}]},{className:"class",beginKeywords:"class interface",end:/[{;=]/,excludeEnd:!0,relevance:0,keywords:"class interface",illegal:/[:"\[\]]/,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"pointcut after before around throwing returning",end:/[)]/,excludeEnd:!1,illegal:/["\[\]]/,contains:[{begin:t.concat(e.UNDERSCORE_IDENT_RE,/\s*\(/),returnBegin:!0,contains:[e.UNDERSCORE_TITLE_MODE]}]},{begin:/[:]/,returnBegin:!0,end:/[{;]/,relevance:0,excludeEnd:!1,keywords:n,illegal:/["\[\]]/,contains:[{begin:t.concat(e.UNDERSCORE_IDENT_RE,/\s*\(/),keywords:n.concat(i),relevance:0},e.QUOTE_STRING_MODE]},{beginKeywords:"new throw",relevance:0},{className:"function",begin:/\w+ +\w+(\.\w+)?\s*\([^\)]*\)\s*((throws)[\w\s,]+)?[\{;]/,returnBegin:!0,end:/[{;=]/,keywords:n,excludeEnd:!0,contains:[{begin:t.concat(e.UNDERSCORE_IDENT_RE,/\s*\(/),returnBegin:!0,relevance:0,contains:[e.UNDERSCORE_TITLE_MODE]},{className:"params",begin:/\(/,end:/\)/,relevance:0,keywords:n,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},e.C_NUMBER_MODE,{className:"meta",begin:/@[A-Za-z]+/}]}}},116:r=>{r.exports=function a(e){const t={begin:"`[\\s\\S]"};return{name:"AutoHotkey",case_insensitive:!0,aliases:["ahk"],keywords:{keyword:"Break Continue Critical Exit ExitApp Gosub Goto New OnExit Pause return SetBatchLines SetTimer Suspend Thread Throw Until ahk_id ahk_class ahk_pid ahk_exe ahk_group",literal:"true false NOT AND OR",built_in:"ComSpec Clipboard ClipboardAll ErrorLevel"},contains:[t,e.inherit(e.QUOTE_STRING_MODE,{contains:[t]}),e.COMMENT(";","$",{relevance:0}),e.C_BLOCK_COMMENT_MODE,{className:"number",begin:e.NUMBER_RE,relevance:0},{className:"variable",begin:"%[a-zA-Z0-9#_$@]+%"},{className:"built_in",begin:"^\\s*\\w+\\s*(,|%)"},{className:"title",variants:[{begin:'^[^\\n";]+::(?!=)'},{begin:'^[^\\n";]+:(?!=)',relevance:0}]},{className:"meta",begin:"^\\s*#\\w+",end:"$",relevance:0},{className:"built_in",begin:"A_[a-zA-Z0-9]+"},{begin:",\\s*,"}]}}},8389:r=>{r.exports=function a(e){const c={variants:[e.COMMENT(";","$",{relevance:0}),e.COMMENT("#cs","#ce"),e.COMMENT("#comments-start","#comments-end")]},s={begin:"\\$[A-z0-9_]+"},l={className:"string",variants:[{begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]}]},_={variants:[e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE]};return{name:"AutoIt",case_insensitive:!0,illegal:/\/\*/,keywords:{keyword:"ByRef Case Const ContinueCase ContinueLoop Dim Do Else ElseIf EndFunc EndIf EndSelect EndSwitch EndWith Enum Exit ExitLoop For Func Global If In Local Next ReDim Return Select Static Step Switch Then To Until Volatile WEnd While With",built_in:"Abs ACos AdlibRegister AdlibUnRegister Asc AscW ASin Assign ATan AutoItSetOption AutoItWinGetTitle AutoItWinSetTitle Beep Binary BinaryLen BinaryMid BinaryToString BitAND BitNOT BitOR BitRotate BitShift BitXOR BlockInput Break Call CDTray Ceiling Chr ChrW ClipGet ClipPut ConsoleRead ConsoleWrite ConsoleWriteError ControlClick ControlCommand ControlDisable ControlEnable ControlFocus ControlGetFocus ControlGetHandle ControlGetPos ControlGetText ControlHide ControlListView ControlMove ControlSend ControlSetText ControlShow ControlTreeView Cos Dec DirCopy DirCreate DirGetSize DirMove DirRemove DllCall DllCallAddress DllCallbackFree DllCallbackGetPtr DllCallbackRegister DllClose DllOpen DllStructCreate DllStructGetData DllStructGetPtr DllStructGetSize DllStructSetData DriveGetDrive DriveGetFileSystem DriveGetLabel DriveGetSerial DriveGetType DriveMapAdd DriveMapDel DriveMapGet DriveSetLabel DriveSpaceFree DriveSpaceTotal DriveStatus EnvGet EnvSet EnvUpdate Eval Execute Exp FileChangeDir FileClose FileCopy FileCreateNTFSLink FileCreateShortcut FileDelete FileExists FileFindFirstFile FileFindNextFile FileFlush FileGetAttrib FileGetEncoding FileGetLongName FileGetPos FileGetShortcut FileGetShortName FileGetSize FileGetTime FileGetVersion FileInstall FileMove FileOpen FileOpenDialog FileRead FileReadLine FileReadToArray FileRecycle FileRecycleEmpty FileSaveDialog FileSelectFolder FileSetAttrib FileSetEnd FileSetPos FileSetTime FileWrite FileWriteLine Floor FtpSetProxy FuncName GUICreate GUICtrlCreateAvi GUICtrlCreateButton GUICtrlCreateCheckbox GUICtrlCreateCombo GUICtrlCreateContextMenu GUICtrlCreateDate GUICtrlCreateDummy GUICtrlCreateEdit GUICtrlCreateGraphic GUICtrlCreateGroup GUICtrlCreateIcon GUICtrlCreateInput GUICtrlCreateLabel GUICtrlCreateList GUICtrlCreateListView GUICtrlCreateListViewItem GUICtrlCreateMenu GUICtrlCreateMenuItem GUICtrlCreateMonthCal GUICtrlCreateObj GUICtrlCreatePic GUICtrlCreateProgress GUICtrlCreateRadio GUICtrlCreateSlider GUICtrlCreateTab GUICtrlCreateTabItem GUICtrlCreateTreeView GUICtrlCreateTreeViewItem GUICtrlCreateUpdown GUICtrlDelete GUICtrlGetHandle GUICtrlGetState GUICtrlRead GUICtrlRecvMsg GUICtrlRegisterListViewSort GUICtrlSendMsg GUICtrlSendToDummy GUICtrlSetBkColor GUICtrlSetColor GUICtrlSetCursor GUICtrlSetData GUICtrlSetDefBkColor GUICtrlSetDefColor GUICtrlSetFont GUICtrlSetGraphic GUICtrlSetImage GUICtrlSetLimit GUICtrlSetOnEvent GUICtrlSetPos GUICtrlSetResizing GUICtrlSetState GUICtrlSetStyle GUICtrlSetTip GUIDelete GUIGetCursorInfo GUIGetMsg GUIGetStyle GUIRegisterMsg GUISetAccelerators GUISetBkColor GUISetCoord GUISetCursor GUISetFont GUISetHelp GUISetIcon GUISetOnEvent GUISetState GUISetStyle GUIStartGroup GUISwitch Hex HotKeySet HttpSetProxy HttpSetUserAgent HWnd InetClose InetGet InetGetInfo InetGetSize InetRead IniDelete IniRead IniReadSection IniReadSectionNames IniRenameSection IniWrite IniWriteSection InputBox Int IsAdmin IsArray IsBinary IsBool IsDeclared IsDllStruct IsFloat IsFunc IsHWnd IsInt IsKeyword IsNumber IsObj IsPtr IsString Log MemGetStats Mod MouseClick MouseClickDrag MouseDown MouseGetCursor MouseGetPos MouseMove MouseUp MouseWheel MsgBox Number ObjCreate ObjCreateInterface ObjEvent ObjGet ObjName OnAutoItExitRegister OnAutoItExitUnRegister Ping PixelChecksum PixelGetColor PixelSearch ProcessClose ProcessExists ProcessGetStats ProcessList ProcessSetPriority ProcessWait ProcessWaitClose ProgressOff ProgressOn ProgressSet Ptr Random RegDelete RegEnumKey RegEnumVal RegRead RegWrite Round Run RunAs RunAsWait RunWait Send SendKeepActive SetError SetExtended ShellExecute ShellExecuteWait Shutdown Sin Sleep SoundPlay SoundSetWaveVolume SplashImageOn SplashOff SplashTextOn Sqrt SRandom StatusbarGetText StderrRead StdinWrite StdioClose StdoutRead String StringAddCR StringCompare StringFormat StringFromASCIIArray StringInStr StringIsAlNum StringIsAlpha StringIsASCII StringIsDigit StringIsFloat StringIsInt StringIsLower StringIsSpace StringIsUpper StringIsXDigit StringLeft StringLen StringLower StringMid StringRegExp StringRegExpReplace StringReplace StringReverse StringRight StringSplit StringStripCR StringStripWS StringToASCIIArray StringToBinary StringTrimLeft StringTrimRight StringUpper Tan TCPAccept TCPCloseSocket TCPConnect TCPListen TCPNameToIP TCPRecv TCPSend TCPShutdown, UDPShutdown TCPStartup, UDPStartup TimerDiff TimerInit ToolTip TrayCreateItem TrayCreateMenu TrayGetMsg TrayItemDelete TrayItemGetHandle TrayItemGetState TrayItemGetText TrayItemSetOnEvent TrayItemSetState TrayItemSetText TraySetClick TraySetIcon TraySetOnEvent TraySetPauseIcon TraySetState TraySetToolTip TrayTip UBound UDPBind UDPCloseSocket UDPOpen UDPRecv UDPSend VarGetType WinActivate WinActive WinClose WinExists WinFlash WinGetCaretPos WinGetClassList WinGetClientSize WinGetHandle WinGetPos WinGetProcess WinGetState WinGetText WinGetTitle WinKill WinList WinMenuSelectItem WinMinimizeAll WinMinimizeAllUndo WinMove WinSetOnTop WinSetState WinSetTitle WinSetTrans WinWait WinWaitActive WinWaitClose WinWaitNotActive",literal:"True False And Null Not Or Default"},contains:[c,s,l,_,{className:"meta",begin:"#",end:"$",keywords:{keyword:["EndRegion","forcedef","forceref","ignorefunc","include","include-once","NoTrayIcon","OnAutoItStartRegister","pragma","Region","RequireAdmin","Tidy_Off","Tidy_On","Tidy_Parameters"]},contains:[{begin:/\\\n/,relevance:0},{beginKeywords:"include",keywords:{keyword:"include"},end:"$",contains:[l,{className:"string",variants:[{begin:"<",end:">"},{begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]}]}]},l,c]},{className:"symbol",begin:"@[A-z0-9_]+"},{beginKeywords:"Func",end:"$",illegal:"\\$|\\[|%",contains:[e.inherit(e.UNDERSCORE_TITLE_MODE,{className:"title.function"}),{className:"params",begin:"\\(",end:"\\)",contains:[s,l,_]}]}]}}},4584:r=>{r.exports=function a(e){return{name:"AVR Assembly",case_insensitive:!0,keywords:{$pattern:"\\.?"+e.IDENT_RE,keyword:"adc add adiw and andi asr bclr bld brbc brbs brcc brcs break breq brge brhc brhs brid brie brlo brlt brmi brne brpl brsh brtc brts brvc brvs bset bst call cbi cbr clc clh cli cln clr cls clt clv clz com cp cpc cpi cpse dec eicall eijmp elpm eor fmul fmuls fmulsu icall ijmp in inc jmp ld ldd ldi lds lpm lsl lsr mov movw mul muls mulsu neg nop or ori out pop push rcall ret reti rjmp rol ror sbc sbr sbrc sbrs sec seh sbi sbci sbic sbis sbiw sei sen ser ses set sev sez sleep spm st std sts sub subi swap tst wdr",built_in:"r0 r1 r2 r3 r4 r5 r6 r7 r8 r9 r10 r11 r12 r13 r14 r15 r16 r17 r18 r19 r20 r21 r22 r23 r24 r25 r26 r27 r28 r29 r30 r31 x|0 xh xl y|0 yh yl z|0 zh zl ucsr1c udr1 ucsr1a ucsr1b ubrr1l ubrr1h ucsr0c ubrr0h tccr3c tccr3a tccr3b tcnt3h tcnt3l ocr3ah ocr3al ocr3bh ocr3bl ocr3ch ocr3cl icr3h icr3l etimsk etifr tccr1c ocr1ch ocr1cl twcr twdr twar twsr twbr osccal xmcra xmcrb eicra spmcsr spmcr portg ddrg ping portf ddrf sreg sph spl xdiv rampz eicrb eimsk gimsk gicr eifr gifr timsk tifr mcucr mcucsr tccr0 tcnt0 ocr0 assr tccr1a tccr1b tcnt1h tcnt1l ocr1ah ocr1al ocr1bh ocr1bl icr1h icr1l tccr2 tcnt2 ocr2 ocdr wdtcr sfior eearh eearl eedr eecr porta ddra pina portb ddrb pinb portc ddrc pinc portd ddrd pind spdr spsr spcr udr0 ucsr0a ucsr0b ubrr0l acsr admux adcsr adch adcl porte ddre pine pinf",meta:".byte .cseg .db .def .device .dseg .dw .endmacro .equ .eseg .exit .include .list .listmac .macro .nolist .org .set"},contains:[e.C_BLOCK_COMMENT_MODE,e.COMMENT(";","$",{relevance:0}),e.C_NUMBER_MODE,e.BINARY_NUMBER_MODE,{className:"number",begin:"\\b(\\$[a-zA-Z0-9]+|0o[0-7]+)"},e.QUOTE_STRING_MODE,{className:"string",begin:"'",end:"[^\\\\]'",illegal:"[^\\\\][^']"},{className:"symbol",begin:"^[A-Za-z0-9_.$]+:"},{className:"meta",begin:"#",end:"$"},{className:"subst",begin:"@[0-9]+"}]}}},4969:r=>{r.exports=function a(e){return{name:"Awk",keywords:{keyword:"BEGIN END if else while do for in break continue delete next nextfile function func exit|10"},contains:[{className:"variable",variants:[{begin:/\$[\w\d#@][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},{className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/(u|b)?r?'''/,end:/'''/,relevance:10},{begin:/(u|b)?r?"""/,end:/"""/,relevance:10},{begin:/(u|r|ur)'/,end:/'/,relevance:10},{begin:/(u|r|ur)"/,end:/"/,relevance:10},{begin:/(b|br)'/,end:/'/},{begin:/(b|br)"/,end:/"/},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},e.REGEXP_MODE,e.HASH_COMMENT_MODE,e.NUMBER_MODE]}}},4548:r=>{r.exports=function a(e){const t=e.UNDERSCORE_IDENT_RE,c={keyword:["abstract","as","asc","avg","break","breakpoint","by","byref","case","catch","changecompany","class","client","client","common","const","continue","count","crosscompany","delegate","delete_from","desc","display","div","do","edit","else","eventhandler","exists","extends","final","finally","firstfast","firstonly","firstonly1","firstonly10","firstonly100","firstonly1000","flush","for","forceliterals","forcenestedloop","forceplaceholders","forceselectorder","forupdate","from","generateonly","group","hint","if","implements","in","index","insert_recordset","interface","internal","is","join","like","maxof","minof","mod","namespace","new","next","nofetch","notexists","optimisticlock","order","outer","pessimisticlock","print","private","protected","public","readonly","repeatableread","retry","return","reverse","select","server","setting","static","sum","super","switch","this","throw","try","ttsabort","ttsbegin","ttscommit","unchecked","update_recordset","using","validtimestate","void","where","while"],built_in:["anytype","boolean","byte","char","container","date","double","enum","guid","int","int64","long","real","short","str","utcdatetime","var"],literal:["default","false","null","true"]};return{name:"X++",aliases:["x++"],keywords:c,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,{className:"meta",begin:"#",end:"$"},{variants:[{match:[/(class|interface)\s+/,t,/\s+(extends|implements)\s+/,t]},{match:[/class\s+/,t]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:c}]}}},8725:r=>{r.exports=function a(e){const n={},i={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[n]}]};Object.assign(n,{className:"variable",variants:[{begin:e.regex.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},i]});const o={className:"subst",begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]},c={begin:/<<-?\s*(?=\w+)/,starts:{contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},s={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,n,o]};o.contains.push(s);const d={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},e.NUMBER_MODE,n]},u=e.SHEBANG({binary:`(${["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"].join("|")})`,relevance:10}),p={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0};return{name:"Bash",aliases:["sh"],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,keyword:["if","then","else","elif","fi","for","while","until","in","do","done","case","esac","function","select"],literal:["true","false"],built_in:["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset","alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","type","typeset","ulimit","unalias","set","shopt","autoload","bg","bindkey","bye","cap","chdir","clone","comparguments","compcall","compctl","compdescribe","compfiles","compgroups","compquote","comptags","comptry","compvalues","dirs","disable","disown","echotc","echoti","emulate","fc","fg","float","functions","getcap","getln","history","integer","jobs","kill","limit","log","noglob","popd","print","pushd","pushln","rehash","sched","setcap","setopt","stat","suspend","ttyctl","unfunction","unhash","unlimit","unsetopt","vared","wait","whence","where","which","zcompile","zformat","zftp","zle","zmodload","zparseopts","zprof","zpty","zregexparse","zsocket","zstyle","ztcp","chcon","chgrp","chown","chmod","cp","dd","df","dir","dircolors","ln","ls","mkdir","mkfifo","mknod","mktemp","mv","realpath","rm","rmdir","shred","sync","touch","truncate","vdir","b2sum","base32","base64","cat","cksum","comm","csplit","cut","expand","fmt","fold","head","join","md5sum","nl","numfmt","od","paste","ptx","pr","sha1sum","sha224sum","sha256sum","sha384sum","sha512sum","shuf","sort","split","sum","tac","tail","tr","tsort","unexpand","uniq","wc","arch","basename","chroot","date","dirname","du","echo","env","expr","factor","groups","hostid","id","link","logname","nice","nohup","nproc","pathchk","pinky","printenv","printf","pwd","readlink","runcon","seq","sleep","stat","stdbuf","stty","tee","test","timeout","tty","uname","unlink","uptime","users","who","whoami","yes"]},contains:[u,e.SHEBANG(),p,d,e.HASH_COMMENT_MODE,c,{match:/(\/[a-z._-]+)+/},s,{className:"",begin:/\\"/},{className:"string",begin:/'/,end:/'/},n]}}},4094:r=>{r.exports=function a(e){return{name:"BASIC",case_insensitive:!0,illegal:"^.",keywords:{$pattern:"[a-zA-Z][a-zA-Z0-9_$%!#]*",keyword:["ABS","ASC","AND","ATN","AUTO|0","BEEP","BLOAD|10","BSAVE|10","CALL","CALLS","CDBL","CHAIN","CHDIR","CHR$|10","CINT","CIRCLE","CLEAR","CLOSE","CLS","COLOR","COM","COMMON","CONT","COS","CSNG","CSRLIN","CVD","CVI","CVS","DATA","DATE$","DEFDBL","DEFINT","DEFSNG","DEFSTR","DEF|0","SEG","USR","DELETE","DIM","DRAW","EDIT","END","ENVIRON","ENVIRON$","EOF","EQV","ERASE","ERDEV","ERDEV$","ERL","ERR","ERROR","EXP","FIELD","FILES","FIX","FOR|0","FRE","GET","GOSUB|10","GOTO","HEX$","IF","THEN","ELSE|0","INKEY$","INP","INPUT","INPUT#","INPUT$","INSTR","IMP","INT","IOCTL","IOCTL$","KEY","ON","OFF","LIST","KILL","LEFT$","LEN","LET","LINE","LLIST","LOAD","LOC","LOCATE","LOF","LOG","LPRINT","USING","LSET","MERGE","MID$","MKDIR","MKD$","MKI$","MKS$","MOD","NAME","NEW","NEXT","NOISE","NOT","OCT$","ON","OR","PEN","PLAY","STRIG","OPEN","OPTION","BASE","OUT","PAINT","PALETTE","PCOPY","PEEK","PMAP","POINT","POKE","POS","PRINT","PRINT]","PSET","PRESET","PUT","RANDOMIZE","READ","REM","RENUM","RESET|0","RESTORE","RESUME","RETURN|0","RIGHT$","RMDIR","RND","RSET","RUN","SAVE","SCREEN","SGN","SHELL","SIN","SOUND","SPACE$","SPC","SQR","STEP","STICK","STOP","STR$","STRING$","SWAP","SYSTEM","TAB","TAN","TIME$","TIMER","TROFF","TRON","TO","USR","VAL","VARPTR","VARPTR$","VIEW","WAIT","WHILE","WEND","WIDTH","WINDOW","WRITE","XOR"]},contains:[e.QUOTE_STRING_MODE,e.COMMENT("REM","$",{relevance:10}),e.COMMENT("'","$",{relevance:0}),{className:"symbol",begin:"^[0-9]+ ",relevance:10},{className:"number",begin:"\\b\\d+(\\.\\d+)?([edED]\\d+)?[#!]?",relevance:0},{className:"number",begin:"(&[hH][0-9a-fA-F]{1,4})"},{className:"number",begin:"(&[oO][0-7]{1,6})"}]}}},9132:r=>{r.exports=function a(e){return{name:"Backus\u2013Naur Form",contains:[{className:"attribute",begin://},{begin:/::=/,end:/$/,contains:[{begin://},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]}]}}},3830:r=>{r.exports=function a(e){const t={className:"literal",begin:/[+-]+/,relevance:0};return{name:"Brainfuck",aliases:["bf"],contains:[e.COMMENT(/[^\[\]\.,\+\-<> \r\n]/,/[\[\]\.,\+\-<> \r\n]/,{contains:[{match:/[ ]+[^\[\]\.,\+\-<> \r\n]/,relevance:0}],returnEnd:!0,relevance:0}),{className:"title",begin:"[\\[\\]]",relevance:0},{className:"string",begin:"[\\.,]",relevance:0},{begin:/(?=\+\+|--)/,contains:[t]},t]}}},2242:r=>{r.exports=function a(e){const t=e.regex,n=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),i="decltype\\(auto\\)",o="[a-zA-Z_]\\w*::",s="("+i+"|"+t.optional(o)+"[a-zA-Z_]\\w*"+t.optional("<[^<>]+>")+")",l={className:"type",variants:[{begin:"\\b[a-z\\d_]*_t\\b"},{match:/\batomic_[a-z]{3,6}\b/}]},d={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'(\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},m={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},u={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(d,{className:"string"}),{className:"string",begin:/<.*?>/},n,e.C_BLOCK_COMMENT_MODE]},p={className:"title",begin:t.optional(o)+e.IDENT_RE,relevance:0},S=t.optional(o)+e.IDENT_RE+"\\s*\\(",R={keyword:["asm","auto","break","case","continue","default","do","else","enum","extern","for","fortran","goto","if","inline","register","restrict","return","sizeof","struct","switch","typedef","union","volatile","while","_Alignas","_Alignof","_Atomic","_Generic","_Noreturn","_Static_assert","_Thread_local","alignas","alignof","noreturn","static_assert","thread_local","_Pragma"],type:["float","double","signed","unsigned","int","short","long","char","void","_Bool","_Complex","_Imaginary","_Decimal32","_Decimal64","_Decimal128","const","static","complex","bool","imaginary"],literal:"true false NULL",built_in:"std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr"},C=[u,l,n,e.C_BLOCK_COMMENT_MODE,m,d],f={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:R,contains:C.concat([{begin:/\(/,end:/\)/,keywords:R,contains:C.concat(["self"]),relevance:0}]),relevance:0},v={begin:"("+s+"[\\*&\\s]+)+"+S,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:R,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:i,keywords:R,relevance:0},{begin:S,returnBegin:!0,contains:[e.inherit(p,{className:"title.function"})],relevance:0},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:R,relevance:0,contains:[n,e.C_BLOCK_COMMENT_MODE,d,m,l,{begin:/\(/,end:/\)/,keywords:R,relevance:0,contains:["self",n,e.C_BLOCK_COMMENT_MODE,d,m,l]}]},l,n,e.C_BLOCK_COMMENT_MODE,u]};return{name:"C",aliases:["h"],keywords:R,disableAutodetect:!0,illegal:"=]/,contains:[{beginKeywords:"final class struct"},e.TITLE_MODE]}]),exports:{preprocessor:u,strings:d,keywords:R}}}},1005:r=>{r.exports=function a(e){const t=e.regex,n=["div","mod","in","and","or","not","xor","asserterror","begin","case","do","downto","else","end","exit","for","local","if","of","repeat","then","to","until","while","with","var"],o=[e.C_LINE_COMMENT_MODE,e.COMMENT(/\{/,/\}/,{relevance:0}),e.COMMENT(/\(\*/,/\*\)/,{relevance:10})],c={className:"string",begin:/'/,end:/'/,contains:[{begin:/''/}]},s={className:"string",begin:/(#\d+)+/},d={match:[/procedure/,/\s+/,/[a-zA-Z_][\w@]*/,/\s*/],scope:{1:"keyword",3:"title.function"},contains:[{className:"params",begin:/\(/,end:/\)/,keywords:n,contains:[c,s,e.NUMBER_MODE]},...o]},u={match:[/OBJECT/,/\s+/,t.either("Table","Form","Report","Dataport","Codeunit","XMLport","MenuSuite","Page","Query"),/\s+/,/\d+/,/\s+(?=[^\s])/,/.*/,/$/],relevance:3,scope:{1:"keyword",3:"type",5:"number",7:"title"}};return{name:"C/AL",case_insensitive:!0,keywords:{keyword:n,literal:"false true"},illegal:/\/\*/,contains:[{match:/[\w]+(?=\=)/,scope:"attribute",relevance:0},c,s,{className:"number",begin:"\\b\\d+(\\.\\d+)?(DT|D|T)",relevance:0},{className:"string",begin:'"',end:'"'},e.NUMBER_MODE,u,d]}}},2336:r=>{r.exports=function a(e){return{name:"Cap\u2019n Proto",aliases:["capnp"],keywords:{keyword:["struct","enum","interface","union","group","import","using","const","annotation","extends","in","of","on","as","with","from","fixed"],type:["Void","Bool","Int8","Int16","Int32","Int64","UInt8","UInt16","UInt32","UInt64","Float32","Float64","Text","Data","AnyPointer","AnyStruct","Capability","List"],literal:["true","false"]},contains:[e.QUOTE_STRING_MODE,e.NUMBER_MODE,e.HASH_COMMENT_MODE,{className:"meta",begin:/@0x[\w\d]{16};/,illegal:/\n/},{className:"symbol",begin:/@\d+\b/},{variants:[{match:[/(struct|enum|interface)/,/\s+/,e.IDENT_RE]},{match:[/extends/,/\s*\(/,e.IDENT_RE,/\s*\)/]}],scope:{1:"keyword",3:"title.class"}}]}}},1709:r=>{r.exports=function a(e){const t=["assembly","module","package","import","alias","class","interface","object","given","value","assign","void","function","new","of","extends","satisfies","abstracts","in","out","return","break","continue","throw","assert","dynamic","if","else","switch","case","for","while","try","catch","finally","then","let","this","outer","super","is","exists","nonempty"],o={className:"subst",excludeBegin:!0,excludeEnd:!0,begin:/``/,end:/``/,keywords:t,relevance:10},c=[{className:"string",begin:'"""',end:'"""',relevance:10},{className:"string",begin:'"',end:'"',contains:[o]},{className:"string",begin:"'",end:"'"},{className:"number",begin:"#[0-9a-fA-F_]+|\\$[01_]+|[0-9_]+(?:\\.[0-9_](?:[eE][+-]?\\d+)?)?[kMGTPmunpf]?",relevance:0}];return o.contains=c,{name:"Ceylon",keywords:{keyword:t.concat(["shared","abstract","formal","default","actual","variable","late","native","deprecated","final","sealed","annotation","suppressWarnings","small"]),meta:["doc","by","license","see","throws","tagged"]},illegal:"\\$[^01]|#[^0-9a-fA-F]",contains:[e.C_LINE_COMMENT_MODE,e.COMMENT("/\\*","\\*/",{contains:["self"]}),{className:"meta",begin:'@[a-z]\\w*(?::"[^"]*")?'}].concat(c)}}},7547:r=>{r.exports=function a(e){return{name:"Clean",aliases:["icl","dcl"],keywords:{keyword:["if","let","in","with","where","case","of","class","instance","otherwise","implementation","definition","system","module","from","import","qualified","as","special","code","inline","foreign","export","ccall","stdcall","generic","derive","infix","infixl","infixr"],built_in:"Int Real Char Bool",literal:"True False"},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,{begin:"->|<-[|:]?|#!?|>>=|\\{\\||\\|\\}|:==|=:|<>"}]}}},7897:r=>{r.exports=function a(e){return{name:"Clojure REPL",contains:[{className:"meta.prompt",begin:/^([\w.-]+|\s*#_)?=>/,starts:{end:/$/,subLanguage:"clojure"}}]}}},9446:r=>{r.exports=function a(e){const t="a-zA-Z_\\-!.?+*=<>&'",n="[#]?["+t+"]["+t+"0-9/;:$#]*",i="def defonce defprotocol defstruct defmulti defmethod defn- defn defmacro deftype defrecord",o={$pattern:n,built_in:i+" cond apply if-not if-let if not not= =|0 <|0 >|0 <=|0 >=|0 ==|0 +|0 /|0 *|0 -|0 rem quot neg? pos? delay? symbol? keyword? true? false? integer? empty? coll? list? set? ifn? fn? associative? sequential? sorted? counted? reversible? number? decimal? class? distinct? isa? float? rational? reduced? ratio? odd? even? char? seq? vector? string? map? nil? contains? zero? instance? not-every? not-any? libspec? -> ->> .. . inc compare do dotimes mapcat take remove take-while drop letfn drop-last take-last drop-while while intern condp case reduced cycle split-at split-with repeat replicate iterate range merge zipmap declare line-seq sort comparator sort-by dorun doall nthnext nthrest partition eval doseq await await-for let agent atom send send-off release-pending-sends add-watch mapv filterv remove-watch agent-error restart-agent set-error-handler error-handler set-error-mode! error-mode shutdown-agents quote var fn loop recur throw try monitor-enter monitor-exit macroexpand macroexpand-1 for dosync and or when when-not when-let comp juxt partial sequence memoize constantly complement identity assert peek pop doto proxy first rest cons cast coll last butlast sigs reify second ffirst fnext nfirst nnext meta with-meta ns in-ns create-ns import refer keys select-keys vals key val rseq name namespace promise into transient persistent! conj! assoc! dissoc! pop! disj! use class type num float double short byte boolean bigint biginteger bigdec print-method print-dup throw-if printf format load compile get-in update-in pr pr-on newline flush read slurp read-line subvec with-open memfn time re-find re-groups rand-int rand mod locking assert-valid-fdecl alias resolve ref deref refset swap! reset! set-validator! compare-and-set! alter-meta! reset-meta! commute get-validator alter ref-set ref-history-count ref-min-history ref-max-history ensure sync io! new next conj set! to-array future future-call into-array aset gen-class reduce map filter find empty hash-map hash-set sorted-map sorted-map-by sorted-set sorted-set-by vec vector seq flatten reverse assoc dissoc list disj get union difference intersection extend extend-type extend-protocol int nth delay count concat chunk chunk-buffer chunk-append chunk-first chunk-rest max min dec unchecked-inc-int unchecked-inc unchecked-dec-inc unchecked-dec unchecked-negate unchecked-add-int unchecked-add unchecked-subtract-int unchecked-subtract chunk-next chunk-cons chunked-seq? prn vary-meta lazy-seq spread list* str find-keyword keyword symbol gensym force rationalize"},c={begin:n,relevance:0},s={scope:"number",relevance:0,variants:[{match:/[-+]?0[xX][0-9a-fA-F]+N?/},{match:/[-+]?0[0-7]+N?/},{match:/[-+]?[1-9][0-9]?[rR][0-9a-zA-Z]+N?/},{match:/[-+]?[0-9]+\/[0-9]+N?/},{match:/[-+]?[0-9]+((\.[0-9]*([eE][+-]?[0-9]+)?M?)|([eE][+-]?[0-9]+M?|M))/},{match:/[-+]?([1-9][0-9]*|0)N?/}]},l={scope:"character",variants:[{match:/\\o[0-3]?[0-7]{1,2}/},{match:/\\u[0-9a-fA-F]{4}/},{match:/\\(newline|space|tab|formfeed|backspace|return)/},{match:/\\\S/,relevance:0}]},_={scope:"regex",begin:/#"/,end:/"/,contains:[e.BACKSLASH_ESCAPE]},d=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),m={scope:"punctuation",match:/,/,relevance:0},u=e.COMMENT(";","$",{relevance:0}),p={className:"literal",begin:/\b(true|false|nil)\b/},S={begin:"\\[|(#::?"+n+")?\\{",end:"[\\]\\}]",relevance:0},g={className:"symbol",begin:"[:]{1,2}"+n},T={begin:"\\(",end:"\\)"},R={endsWithParent:!0,relevance:0},C={keywords:o,className:"name",begin:n,relevance:0,starts:R},f=[m,T,l,_,d,u,g,S,s,p,c],v={beginKeywords:i,keywords:{$pattern:n,keyword:i},end:'(\\[|#|\\d|"|:|\\{|\\)|\\(|$)',contains:[{className:"title",begin:n,relevance:0,excludeEnd:!0,endsParent:!0}].concat(f)};return T.contains=[v,C,R],R.contains=f,S.contains=f,{name:"Clojure",aliases:["clj","edn"],illegal:/\S/,contains:[m,T,l,_,d,u,g,S,s,p]}}},5554:r=>{r.exports=function a(e){return{name:"CMake",aliases:["cmake.in"],case_insensitive:!0,keywords:{keyword:"break cmake_host_system_information cmake_minimum_required cmake_parse_arguments cmake_policy configure_file continue elseif else endforeach endfunction endif endmacro endwhile execute_process file find_file find_library find_package find_path find_program foreach function get_cmake_property get_directory_property get_filename_component get_property if include include_guard list macro mark_as_advanced math message option return separate_arguments set_directory_properties set_property set site_name string unset variable_watch while add_compile_definitions add_compile_options add_custom_command add_custom_target add_definitions add_dependencies add_executable add_library add_link_options add_subdirectory add_test aux_source_directory build_command create_test_sourcelist define_property enable_language enable_testing export fltk_wrap_ui get_source_file_property get_target_property get_test_property include_directories include_external_msproject include_regular_expression install link_directories link_libraries load_cache project qt_wrap_cpp qt_wrap_ui remove_definitions set_source_files_properties set_target_properties set_tests_properties source_group target_compile_definitions target_compile_features target_compile_options target_include_directories target_link_directories target_link_libraries target_link_options target_sources try_compile try_run ctest_build ctest_configure ctest_coverage ctest_empty_binary_directory ctest_memcheck ctest_read_custom_files ctest_run_script ctest_sleep ctest_start ctest_submit ctest_test ctest_update ctest_upload build_name exec_program export_library_dependencies install_files install_programs install_targets load_command make_directory output_required_files remove subdir_depends subdirs use_mangled_mesa utility_source variable_requires write_file qt5_use_modules qt5_use_package qt5_wrap_cpp on off true false and or not command policy target test exists is_newer_than is_directory is_symlink is_absolute matches less greater equal less_equal greater_equal strless strgreater strequal strless_equal strgreater_equal version_less version_greater version_equal version_less_equal version_greater_equal in_list defined"},contains:[{className:"variable",begin:/\$\{/,end:/\}/},e.COMMENT(/#\[\[/,/]]/),e.HASH_COMMENT_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE]}}},3936:r=>{const a=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],e=["true","false","null","undefined","NaN","Infinity"],o=[].concat(["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"]);r.exports=function c(s){const p={keyword:a.concat(["then","unless","until","loop","by","when","and","or","is","isnt","not"]).filter((y=["var","const","let","function","static"],O=>!y.includes(O))),literal:e.concat(["yes","no","on","off"]),built_in:o.concat(["npm","print"])},S="[A-Za-z$_][0-9A-Za-z$_]*",g={className:"subst",begin:/#\{/,end:/\}/,keywords:p},T=[s.BINARY_NUMBER_MODE,s.inherit(s.C_NUMBER_MODE,{starts:{end:"(\\s*/)?",relevance:0}}),{className:"string",variants:[{begin:/'''/,end:/'''/,contains:[s.BACKSLASH_ESCAPE]},{begin:/'/,end:/'/,contains:[s.BACKSLASH_ESCAPE]},{begin:/"""/,end:/"""/,contains:[s.BACKSLASH_ESCAPE,g]},{begin:/"/,end:/"/,contains:[s.BACKSLASH_ESCAPE,g]}]},{className:"regexp",variants:[{begin:"///",end:"///",contains:[g,s.HASH_COMMENT_MODE]},{begin:"//[gim]{0,3}(?=\\W)",relevance:0},{begin:/\/(?![ *]).*?(?![\\]).\/[gim]{0,3}(?=\W)/}]},{begin:"@"+S},{subLanguage:"javascript",excludeBegin:!0,excludeEnd:!0,variants:[{begin:"```",end:"```"},{begin:"`",end:"`"}]}];var y;g.contains=T;const R=s.inherit(s.TITLE_MODE,{begin:S}),C="(\\(.*\\)\\s*)?\\B[-=]>",f={className:"params",begin:"\\([^\\(]",returnBegin:!0,contains:[{begin:/\(/,end:/\)/,keywords:p,contains:["self"].concat(T)}]},v={variants:[{match:[/class\s+/,S,/\s+extends\s+/,S]},{match:[/class\s+/,S]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:p};return{name:"CoffeeScript",aliases:["coffee","cson","iced"],keywords:p,illegal:/\/\*/,contains:[...T,s.COMMENT("###","###"),s.HASH_COMMENT_MODE,{className:"function",begin:"^\\s*"+S+"\\s*=\\s*"+C,end:"[-=]>",returnBegin:!0,contains:[R,f]},{begin:/[:\(,=]\s*/,relevance:0,contains:[{className:"function",begin:C,end:"[-=]>",returnBegin:!0,contains:[f]}]},v,{begin:S+":",end:":",returnBegin:!0,returnEnd:!0,relevance:0}]}}},9010:r=>{r.exports=function a(e){return{name:"Coq",keywords:{keyword:["_|0","as","at","cofix","else","end","exists","exists2","fix","for","forall","fun","if","IF","in","let","match","mod","Prop","return","Set","then","Type","using","where","with","Abort","About","Add","Admit","Admitted","All","Arguments","Assumptions","Axiom","Back","BackTo","Backtrack","Bind","Blacklist","Canonical","Cd","Check","Class","Classes","Close","Coercion","Coercions","CoFixpoint","CoInductive","Collection","Combined","Compute","Conjecture","Conjectures","Constant","constr","Constraint","Constructors","Context","Corollary","CreateHintDb","Cut","Declare","Defined","Definition","Delimit","Dependencies","Dependent","Derive","Drop","eauto","End","Equality","Eval","Example","Existential","Existentials","Existing","Export","exporting","Extern","Extract","Extraction","Fact","Field","Fields","File","Fixpoint","Focus","for","From","Function","Functional","Generalizable","Global","Goal","Grab","Grammar","Graph","Guarded","Heap","Hint","HintDb","Hints","Hypotheses","Hypothesis","ident","Identity","If","Immediate","Implicit","Import","Include","Inductive","Infix","Info","Initial","Inline","Inspect","Instance","Instances","Intro","Intros","Inversion","Inversion_clear","Language","Left","Lemma","Let","Libraries","Library","Load","LoadPath","Local","Locate","Ltac","ML","Mode","Module","Modules","Monomorphic","Morphism","Next","NoInline","Notation","Obligation","Obligations","Opaque","Open","Optimize","Options","Parameter","Parameters","Parametric","Path","Paths","pattern","Polymorphic","Preterm","Print","Printing","Program","Projections","Proof","Proposition","Pwd","Qed","Quit","Rec","Record","Recursive","Redirect","Relation","Remark","Remove","Require","Reserved","Reset","Resolve","Restart","Rewrite","Right","Ring","Rings","Save","Scheme","Scope","Scopes","Script","Search","SearchAbout","SearchHead","SearchPattern","SearchRewrite","Section","Separate","Set","Setoid","Show","Solve","Sorted","Step","Strategies","Strategy","Structure","SubClass","Table","Tables","Tactic","Term","Test","Theorem","Time","Timeout","Transparent","Type","Typeclasses","Types","Undelimit","Undo","Unfocus","Unfocused","Unfold","Universe","Universes","Unset","Unshelve","using","Variable","Variables","Variant","Verbose","Visibility","where","with"],built_in:["abstract","absurd","admit","after","apply","as","assert","assumption","at","auto","autorewrite","autounfold","before","bottom","btauto","by","case","case_eq","cbn","cbv","change","classical_left","classical_right","clear","clearbody","cofix","compare","compute","congruence","constr_eq","constructor","contradict","contradiction","cut","cutrewrite","cycle","decide","decompose","dependent","destruct","destruction","dintuition","discriminate","discrR","do","double","dtauto","eapply","eassumption","eauto","ecase","econstructor","edestruct","ediscriminate","eelim","eexact","eexists","einduction","einjection","eleft","elim","elimtype","enough","equality","erewrite","eright","esimplify_eq","esplit","evar","exact","exactly_once","exfalso","exists","f_equal","fail","field","field_simplify","field_simplify_eq","first","firstorder","fix","fold","fourier","functional","generalize","generalizing","gfail","give_up","has_evar","hnf","idtac","in","induction","injection","instantiate","intro","intro_pattern","intros","intuition","inversion","inversion_clear","is_evar","is_var","lapply","lazy","left","lia","lra","move","native_compute","nia","nsatz","omega","once","pattern","pose","progress","proof","psatz","quote","record","red","refine","reflexivity","remember","rename","repeat","replace","revert","revgoals","rewrite","rewrite_strat","right","ring","ring_simplify","rtauto","set","setoid_reflexivity","setoid_replace","setoid_rewrite","setoid_symmetry","setoid_transitivity","shelve","shelve_unifiable","simpl","simple","simplify_eq","solve","specialize","split","split_Rabs","split_Rmult","stepl","stepr","subst","sum","swap","symmetry","tactic","tauto","time","timeout","top","transitivity","trivial","try","tryif","unfold","unify","until","using","vm_compute","with"]},contains:[e.QUOTE_STRING_MODE,e.COMMENT("\\(\\*","\\*\\)"),e.C_NUMBER_MODE,{className:"type",excludeBegin:!0,begin:"\\|\\s*",end:"\\w+"},{begin:/[-=]>/}]}}},6746:r=>{r.exports=function a(e){return{name:"Cach\xe9 Object Script",case_insensitive:!0,aliases:["cls"],keywords:"property parameter class classmethod clientmethod extends as break catch close continue do d|0 else elseif for goto halt hang h|0 if job j|0 kill k|0 lock l|0 merge new open quit q|0 read r|0 return set s|0 tcommit throw trollback try tstart use view while write w|0 xecute x|0 zkill znspace zn ztrap zwrite zw zzdump zzwrite print zbreak zinsert zload zprint zremove zsave zzprint mv mvcall mvcrt mvdim mvprint zquit zsync ascii",contains:[{className:"number",begin:"\\b(\\d+(\\.\\d*)?|\\.\\d+)",relevance:0},{className:"string",variants:[{begin:'"',end:'"',contains:[{begin:'""',relevance:0}]}]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"comment",begin:/;/,end:"$",relevance:0},{className:"built_in",begin:/(?:\$\$?|\.\.)\^?[a-zA-Z]+/},{className:"built_in",begin:/\$\$\$[a-zA-Z]+/},{className:"built_in",begin:/%[a-z]+(?:\.[a-z]+)*/},{className:"symbol",begin:/\^%?[a-zA-Z][\w]*/},{className:"keyword",begin:/##class|##super|#define|#dim/},{begin:/&sql\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,subLanguage:"sql"},{begin:/&(js|jscript|javascript)/,excludeBegin:!0,excludeEnd:!0,subLanguage:"javascript"},{begin:/&html<\s*\s*>/,subLanguage:"xml"}]}}},1094:r=>{r.exports=function a(e){const t=e.regex,n=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),i="decltype\\(auto\\)",o="[a-zA-Z_]\\w*::",s="(?!struct)("+i+"|"+t.optional(o)+"[a-zA-Z_]\\w*"+t.optional("<[^<>]+>")+")",l={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},d={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'(\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},m={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},u={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(d,{className:"string"}),{className:"string",begin:/<.*?>/},n,e.C_BLOCK_COMMENT_MODE]},p={className:"title",begin:t.optional(o)+e.IDENT_RE,relevance:0},S=t.optional(o)+e.IDENT_RE+"\\s*\\(",y={type:["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],keyword:["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"]},O={className:"function.dispatch",relevance:0,keywords:{_hint:["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"]},begin:t.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,e.IDENT_RE,t.lookahead(/(<[^<>]+>|)\s*\(/))},w=[O,u,l,n,e.C_BLOCK_COMMENT_MODE,m,d],D={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:y,contains:w.concat([{begin:/\(/,end:/\)/,keywords:y,contains:w.concat(["self"]),relevance:0}]),relevance:0};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:y,illegal:".]/,contains:[{begin:i,keywords:y,relevance:0},{begin:S,returnBegin:!0,contains:[p],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[d,m]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:y,relevance:0,contains:[n,e.C_BLOCK_COMMENT_MODE,d,m,l,{begin:/\(/,end:/\)/,keywords:y,relevance:0,contains:["self",n,e.C_BLOCK_COMMENT_MODE,d,m,l]}]},l,n,e.C_BLOCK_COMMENT_MODE,u]},O,w,[u,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function)\\s*<(?!<)",end:">",keywords:y,contains:["self",l]},{begin:e.IDENT_RE+"::",keywords:y},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}},2935:r=>{r.exports=function a(e){const n="group clone ms master location colocation order fencing_topology rsc_ticket acl_target acl_group user role tag xml";return{name:"crmsh",aliases:["crm","pcmk"],case_insensitive:!0,keywords:{keyword:"params meta operations op rule attributes utilization read write deny defined not_defined in_range date spec in ref reference attribute type xpath version and or lt gt tag lte gte eq ne \\ number string",literal:"Master Started Slave Stopped start promote demote stop monitor true false"},contains:[e.HASH_COMMENT_MODE,{beginKeywords:"node",starts:{end:"\\s*([\\w_-]+:)?",starts:{className:"title",end:"\\s*[\\$\\w_][\\w_-]*"}}},{beginKeywords:"primitive rsc_template",starts:{className:"title",end:"\\s*[\\$\\w_][\\w_-]*",starts:{end:"\\s*@?[\\w_][\\w_\\.:-]*"}}},{begin:"\\b("+n.split(" ").join("|")+")\\s+",keywords:n,starts:{className:"title",end:"[\\$\\w_][\\w_-]*"}},{beginKeywords:"property rsc_defaults op_defaults",starts:{className:"title",end:"\\s*([\\w_-]+:)?"}},e.QUOTE_STRING_MODE,{className:"meta",begin:"(ocf|systemd|service|lsb):[\\w_:-]+",relevance:0},{className:"number",begin:"\\b\\d+(\\.\\d+)?(ms|s|h|m)?",relevance:0},{className:"literal",begin:"[-]?(infinity|inf)",relevance:0},{className:"attr",begin:/([A-Za-z$_#][\w_-]+)=/,relevance:0},{className:"tag",begin:"",relevance:0}]}}},3033:r=>{r.exports=function a(e){const t="(_?[ui](8|16|32|64|128))?",o="[a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|[=!]~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~|]|//|//=|&[-+*]=?|&\\*\\*|\\[\\][=?]?",c="[A-Za-z_]\\w*(::\\w+)*(\\?|!)?",s={$pattern:"[a-zA-Z_]\\w*[!?=]?",keyword:"abstract alias annotation as as? asm begin break case class def do else elsif end ensure enum extend for fun if include instance_sizeof is_a? lib macro module next nil? of out pointerof private protected rescue responds_to? return require select self sizeof struct super then type typeof union uninitialized unless until verbatim when while with yield __DIR__ __END_LINE__ __FILE__ __LINE__",literal:"false nil true"},l={className:"subst",begin:/#\{/,end:/\}/,keywords:s},d={className:"template-variable",variants:[{begin:"\\{\\{",end:"\\}\\}"},{begin:"\\{%",end:"%\\}"}],keywords:s};function m(C,f){const v=[{begin:C,end:f}];return v[0].contains=v,v}const u={className:"string",contains:[e.BACKSLASH_ESCAPE,l],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:"%[Qwi]?\\(",end:"\\)",contains:m("\\(","\\)")},{begin:"%[Qwi]?\\[",end:"\\]",contains:m("\\[","\\]")},{begin:"%[Qwi]?\\{",end:/\}/,contains:m(/\{/,/\}/)},{begin:"%[Qwi]?<",end:">",contains:m("<",">")},{begin:"%[Qwi]?\\|",end:"\\|"},{begin:/<<-\w+$/,end:/^\s*\w+$/}],relevance:0},p={className:"string",variants:[{begin:"%q\\(",end:"\\)",contains:m("\\(","\\)")},{begin:"%q\\[",end:"\\]",contains:m("\\[","\\]")},{begin:"%q\\{",end:/\}/,contains:m(/\{/,/\}/)},{begin:"%q<",end:">",contains:m("<",">")},{begin:"%q\\|",end:"\\|"},{begin:/<<-'\w+'$/,end:/^\s*\w+$/}],relevance:0},S={begin:"(?!%\\})("+e.RE_STARTERS_RE+"|\\n|\\b(case|if|select|unless|until|when|while)\\b)\\s*",keywords:"case if select unless until when while",contains:[{className:"regexp",contains:[e.BACKSLASH_ESCAPE,l],variants:[{begin:"//[a-z]*",relevance:0},{begin:"/(?!\\/)",end:"/[a-z]*"}]}],relevance:0},R=[d,u,p,{className:"regexp",contains:[e.BACKSLASH_ESCAPE,l],variants:[{begin:"%r\\(",end:"\\)",contains:m("\\(","\\)")},{begin:"%r\\[",end:"\\]",contains:m("\\[","\\]")},{begin:"%r\\{",end:/\}/,contains:m(/\{/,/\}/)},{begin:"%r<",end:">",contains:m("<",">")},{begin:"%r\\|",end:"\\|"}],relevance:0},S,{className:"meta",begin:"@\\[",end:"\\]",contains:[e.inherit(e.QUOTE_STRING_MODE,{className:"string"})]},{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},e.HASH_COMMENT_MODE,{className:"class",beginKeywords:"class module struct",end:"$|;",illegal:/=/,contains:[e.HASH_COMMENT_MODE,e.inherit(e.TITLE_MODE,{begin:c}),{begin:"<"}]},{className:"class",beginKeywords:"lib enum union",end:"$|;",illegal:/=/,contains:[e.HASH_COMMENT_MODE,e.inherit(e.TITLE_MODE,{begin:c})]},{beginKeywords:"annotation",end:"$|;",illegal:/=/,contains:[e.HASH_COMMENT_MODE,e.inherit(e.TITLE_MODE,{begin:c})],relevance:2},{className:"function",beginKeywords:"def",end:/\B\b/,contains:[e.inherit(e.TITLE_MODE,{begin:o,endsParent:!0})]},{className:"function",beginKeywords:"fun macro",end:/\B\b/,contains:[e.inherit(e.TITLE_MODE,{begin:o,endsParent:!0})],relevance:2},{className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":",contains:[u,{begin:o}],relevance:0},{className:"number",variants:[{begin:"\\b0b([01_]+)"+t},{begin:"\\b0o([0-7_]+)"+t},{begin:"\\b0x([A-Fa-f0-9_]+)"+t},{begin:"\\b([1-9][0-9_]*[0-9]|[0-9])(\\.[0-9][0-9_]*)?([eE]_?[-+]?[0-9_]*)?(_?f(32|64))?(?!_)"},{begin:"\\b([1-9][0-9_]*|0)"+t}],relevance:0}];return l.contains=R,d.contains=R.slice(1),{name:"Crystal",aliases:["cr"],keywords:s,contains:R}}},9120:r=>{r.exports=function a(e){const s={keyword:["abstract","as","base","break","case","catch","class","const","continue","do","else","event","explicit","extern","finally","fixed","for","foreach","goto","if","implicit","in","interface","internal","is","lock","namespace","new","operator","out","override","params","private","protected","public","readonly","record","ref","return","scoped","sealed","sizeof","stackalloc","static","struct","switch","this","throw","try","typeof","unchecked","unsafe","using","virtual","void","volatile","while"].concat(["add","alias","and","ascending","async","await","by","descending","equals","from","get","global","group","init","into","join","let","nameof","not","notnull","on","or","orderby","partial","remove","select","set","unmanaged","value|0","var","when","where","with","yield"]),built_in:["bool","byte","char","decimal","delegate","double","dynamic","enum","float","int","long","nint","nuint","object","sbyte","short","string","ulong","uint","ushort"],literal:["default","false","null","true"]},l=e.inherit(e.TITLE_MODE,{begin:"[a-zA-Z](\\.?\\w)*"}),_={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)(u|U|l|L|ul|UL|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},d={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},m=e.inherit(d,{illegal:/\n/}),u={className:"subst",begin:/\{/,end:/\}/,keywords:s},p=e.inherit(u,{illegal:/\n/}),S={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},e.BACKSLASH_ESCAPE,p]},g={className:"string",begin:/\$@"/,end:'"',contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},u]},T=e.inherit(g,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},p]});u.contains=[g,S,d,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,_,e.C_BLOCK_COMMENT_MODE],p.contains=[T,S,m,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,_,e.inherit(e.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];const R={variants:[g,S,d,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},C={begin:"<",end:">",contains:[{beginKeywords:"in out"},l]},f=e.IDENT_RE+"(<"+e.IDENT_RE+"(\\s*,\\s*"+e.IDENT_RE+")*>)?(\\[\\])?",v={begin:"@"+e.IDENT_RE,relevance:0};return{name:"C#",aliases:["cs","c#"],keywords:s,illegal:/::/,contains:[e.COMMENT("///","$",{returnBegin:!0,contains:[{className:"doctag",variants:[{begin:"///",relevance:0},{begin:"\x3c!--|--\x3e"},{begin:""}]}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"meta",begin:"#",end:"$",keywords:{keyword:"if else elif endif define undef warning error line region endregion pragma checksum"}},R,_,{beginKeywords:"class interface",relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:"where class"},l,C,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"namespace",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[l,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"record",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[l,C,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"meta",begin:"^\\s*\\[(?=[\\w])",excludeBegin:!0,end:"\\]",excludeEnd:!0,contains:[{className:"string",begin:/"/,end:/"/}]},{beginKeywords:"new return throw await else",relevance:0},{className:"function",begin:"("+f+"\\s+)+"+e.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,end:/\s*[{;=]/,excludeEnd:!0,keywords:s,contains:[{beginKeywords:["public","private","protected","static","internal","protected","abstract","async","extern","override","unsafe","virtual","new","sealed","partial"].join(" "),relevance:0},{begin:e.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,contains:[e.TITLE_MODE,C],relevance:0},{match:/\(\)/},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,relevance:0,contains:[R,_,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},v]}}},9578:r=>{r.exports=function a(e){return{name:"CSP",case_insensitive:!1,keywords:{$pattern:"[a-zA-Z][a-zA-Z0-9_-]*",keyword:["base-uri","child-src","connect-src","default-src","font-src","form-action","frame-ancestors","frame-src","img-src","manifest-src","media-src","object-src","plugin-types","report-uri","sandbox","script-src","style-src","trusted-types","unsafe-hashes","worker-src"]},contains:[{className:"string",begin:"'",end:"'"},{className:"attribute",begin:"^Content",end:":",excludeEnd:!0}]}}},6240:r=>{const e=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],t=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],n=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],i=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],o=["align-content","align-items","align-self","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inline-size","isolation","justify-content","left","letter-spacing","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","resize","rest","rest-after","rest-before","right","row-gap","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","speak","speak-as","src","tab-size","table-layout","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index"].reverse();r.exports=function c(s){const l=s.regex,_=(s=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:s.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[s.APOS_STRING_MODE,s.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:s.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z][A-Za-z0-9_-]*/}}))(s),S=[s.APOS_STRING_MODE,s.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[_.BLOCK_COMMENT,{begin:/-(webkit|moz|ms|o)-(?=[a-z])/},_.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\.[a-zA-Z-][a-zA-Z0-9_-]*",relevance:0},_.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+n.join("|")+")"},{begin:":(:)?("+i.join("|")+")"}]},_.CSS_VARIABLE,{className:"attribute",begin:"\\b("+o.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[_.BLOCK_COMMENT,_.HEXCOLOR,_.IMPORTANT,_.CSS_NUMBER_MODE,...S,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...S,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},_.FUNCTION_DISPATCH]},{begin:l.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:/@-?\w[\w]*(-\w+)*/},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:"and or not only",attribute:t.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...S,_.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+e.join("|")+")\\b"}]}}},9290:r=>{r.exports=function a(e){const t={$pattern:e.UNDERSCORE_IDENT_RE,keyword:"abstract alias align asm assert auto body break byte case cast catch class const continue debug default delete deprecated do else enum export extern final finally for foreach foreach_reverse|10 goto if immutable import in inout int interface invariant is lazy macro mixin module new nothrow out override package pragma private protected public pure ref return scope shared static struct super switch synchronized template this throw try typedef typeid typeof union unittest version void volatile while with __FILE__ __LINE__ __gshared|10 __thread __traits __DATE__ __EOF__ __TIME__ __TIMESTAMP__ __VENDOR__ __VERSION__",built_in:"bool cdouble cent cfloat char creal dchar delegate double dstring float function idouble ifloat ireal long real short string ubyte ucent uint ulong ushort wchar wstring",literal:"false null true"},n="(0|[1-9][\\d_]*)",i="(0|[1-9][\\d_]*|\\d[\\d_]*|[\\d_]+?\\d)",c="([\\da-fA-F][\\da-fA-F_]*|_[\\da-fA-F][\\da-fA-F_]*)",l="([eE][+-]?"+i+")",m="("+n+"|0[bB][01_]+|0[xX]"+c+")",p="\\\\(['\"\\?\\\\abfnrtv]|u[\\dA-Fa-f]{4}|[0-7]{1,3}|x[\\dA-Fa-f]{2}|U[\\dA-Fa-f]{8})|&[a-zA-Z\\d]{2,};",S={className:"number",begin:"\\b"+m+"(L|u|U|Lu|LU|uL|UL)?",relevance:0},g={className:"number",begin:"\\b(((0[xX]("+c+"\\."+c+"|\\.?"+c+")[pP][+-]?"+i+")|("+i+"(\\.\\d*|"+l+")|\\d+\\."+i+"|\\."+n+l+"?))([fF]|L|i|[fF]i|Li)?|"+m+"(i|[fF]i|Li))",relevance:0},T={className:"string",begin:"'("+p+"|.)",end:"'",illegal:"."},C={className:"string",begin:'"',contains:[{begin:p,relevance:0}],end:'"[cwd]?'},H=e.COMMENT("\\/\\+","\\+\\/",{contains:["self"],relevance:10});return{name:"D",keywords:t,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,H,{className:"string",begin:'x"[\\da-fA-F\\s\\n\\r]*"[cwd]?',relevance:10},C,{className:"string",begin:'[rq]"',end:'"[cwd]?',relevance:5},{className:"string",begin:"`",end:"`[cwd]?"},{className:"string",begin:'q"\\{',end:'\\}"'},g,S,T,{className:"meta",begin:"^#!",end:"$",relevance:5},{className:"meta",begin:"#(line)",end:"$",relevance:5},{className:"keyword",begin:"@[a-zA-Z_][a-zA-Z_\\d]*"}]}}},3585:r=>{r.exports=function a(e){const t={className:"subst",variants:[{begin:"\\$[A-Za-z0-9_]+"}]},n={className:"subst",variants:[{begin:/\$\{/,end:/\}/}],keywords:"true false null this is new super"},i={className:"string",variants:[{begin:"r'''",end:"'''"},{begin:'r"""',end:'"""'},{begin:"r'",end:"'",illegal:"\\n"},{begin:'r"',end:'"',illegal:"\\n"},{begin:"'''",end:"'''",contains:[e.BACKSLASH_ESCAPE,t,n]},{begin:'"""',end:'"""',contains:[e.BACKSLASH_ESCAPE,t,n]},{begin:"'",end:"'",illegal:"\\n",contains:[e.BACKSLASH_ESCAPE,t,n]},{begin:'"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE,t,n]}]};n.contains=[e.C_NUMBER_MODE,i];const o=["Comparable","DateTime","Duration","Function","Iterable","Iterator","List","Map","Match","Object","Pattern","RegExp","Set","Stopwatch","String","StringBuffer","StringSink","Symbol","Type","Uri","bool","double","int","num","Element","ElementList"],c=o.map(_=>`${_}?`);return{name:"Dart",keywords:{keyword:["abstract","as","assert","async","await","base","break","case","catch","class","const","continue","covariant","default","deferred","do","dynamic","else","enum","export","extends","extension","external","factory","false","final","finally","for","Function","get","hide","if","implements","import","in","interface","is","late","library","mixin","new","null","on","operator","part","required","rethrow","return","sealed","set","show","static","super","switch","sync","this","throw","true","try","typedef","var","void","when","while","with","yield"],built_in:o.concat(c).concat(["Never","Null","dynamic","print","document","querySelector","querySelectorAll","window"]),$pattern:/[A-Za-z][A-Za-z0-9_]*\??/},contains:[i,e.COMMENT(/\/\*\*(?!\/)/,/\*\//,{subLanguage:"markdown",relevance:0}),e.COMMENT(/\/{3,} ?/,/$/,{contains:[{subLanguage:"markdown",begin:".",end:"$",relevance:0}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"class",beginKeywords:"class interface",end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},e.C_NUMBER_MODE,{className:"meta",begin:"@[A-Za-z]+"},{begin:"=>"}]}}},5106:r=>{r.exports=function a(e){const t=["exports","register","file","shl","array","record","property","for","mod","while","set","ally","label","uses","raise","not","stored","class","safecall","var","interface","or","private","static","exit","index","inherited","to","else","stdcall","override","shr","asm","far","resourcestring","finalization","packed","virtual","out","and","protected","library","do","xorwrite","goto","near","function","end","div","overload","object","unit","begin","string","on","inline","repeat","until","destructor","write","message","program","with","read","initialization","except","default","nil","if","case","cdecl","in","downto","threadvar","of","try","pascal","const","external","constructor","type","public","then","implementation","finally","published","procedure","absolute","reintroduce","operator","as","is","abstract","alias","assembler","bitpacked","break","continue","cppdecl","cvar","enumerator","experimental","platform","deprecated","unimplemented","dynamic","export","far16","forward","generic","helper","implements","interrupt","iochecks","local","name","nodefault","noreturn","nostackframe","oldfpccall","otherwise","saveregisters","softfloat","specialize","strict","unaligned","varargs"],n=[e.C_LINE_COMMENT_MODE,e.COMMENT(/\{/,/\}/,{relevance:0}),e.COMMENT(/\(\*/,/\*\)/,{relevance:10})],i={className:"meta",variants:[{begin:/\{\$/,end:/\}/},{begin:/\(\*\$/,end:/\*\)/}]},o={className:"string",begin:/'/,end:/'/,contains:[{begin:/''/}]},s={className:"string",begin:/(#\d+)+/},l={begin:e.IDENT_RE+"\\s*=\\s*class\\s*\\(",returnBegin:!0,contains:[e.TITLE_MODE]},_={className:"function",beginKeywords:"function constructor destructor procedure",end:/[:;]/,keywords:"function constructor|10 destructor|10 procedure|10",contains:[e.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,keywords:t,contains:[o,s,i].concat(n)},i].concat(n)};return{name:"Delphi",aliases:["dpr","dfm","pas","pascal"],case_insensitive:!0,keywords:t,illegal:/"|\$[G-Zg-z]|\/\*|<\/|\|/,contains:[o,s,e.NUMBER_MODE,{className:"number",relevance:0,variants:[{begin:"\\$[0-9A-Fa-f]+"},{begin:"&[0-7]+"},{begin:"%[01]+"}]},l,_,i].concat(n)}}},826:r=>{r.exports=function a(e){const t=e.regex;return{name:"Diff",aliases:["patch"],contains:[{className:"meta",relevance:10,match:t.either(/^@@ +-\d+,\d+ +\+\d+,\d+ +@@/,/^\*\*\* +\d+,\d+ +\*\*\*\*$/,/^--- +\d+,\d+ +----$/)},{className:"comment",variants:[{begin:t.either(/Index: /,/^index/,/={3,}/,/^-{3}/,/^\*{3} /,/^\+{3}/,/^diff --git/),end:/$/},{match:/^\*{15}$/}]},{className:"addition",begin:/^\+/,end:/$/},{className:"deletion",begin:/^-/,end:/$/},{className:"addition",begin:/^!/,end:/$/}]}}},4545:r=>{r.exports=function a(e){const t={begin:/\|[A-Za-z]+:?/,keywords:{name:"truncatewords removetags linebreaksbr yesno get_digit timesince random striptags filesizeformat escape linebreaks length_is ljust rjust cut urlize fix_ampersands title floatformat capfirst pprint divisibleby add make_list unordered_list urlencode timeuntil urlizetrunc wordcount stringformat linenumbers slice date dictsort dictsortreversed default_if_none pluralize lower join center default truncatewords_html upper length phone2numeric wordwrap time addslashes slugify first escapejs force_escape iriencode last safe safeseq truncatechars localize unlocalize localtime utc timezone"},contains:[e.QUOTE_STRING_MODE,e.APOS_STRING_MODE]};return{name:"Django",aliases:["jinja"],case_insensitive:!0,subLanguage:"xml",contains:[e.COMMENT(/\{%\s*comment\s*%\}/,/\{%\s*endcomment\s*%\}/),e.COMMENT(/\{#/,/#\}/),{className:"template-tag",begin:/\{%/,end:/%\}/,contains:[{className:"name",begin:/\w+/,keywords:{name:"comment endcomment load templatetag ifchanged endifchanged if endif firstof for endfor ifnotequal endifnotequal widthratio extends include spaceless endspaceless regroup ifequal endifequal ssi now with cycle url filter endfilter debug block endblock else autoescape endautoescape csrf_token empty elif endwith static trans blocktrans endblocktrans get_static_prefix get_media_prefix plural get_current_language language get_available_languages get_current_language_bidi get_language_info get_language_info_list localize endlocalize localtime endlocaltime timezone endtimezone get_current_timezone verbatim"},starts:{endsWithParent:!0,keywords:"in by as",contains:[t],relevance:0}}]},{className:"template-variable",begin:/\{\{/,end:/\}\}/,contains:[t]}]}}},5871:r=>{r.exports=function a(e){return{name:"DNS Zone",aliases:["bind","zone"],keywords:["IN","A","AAAA","AFSDB","APL","CAA","CDNSKEY","CDS","CERT","CNAME","DHCID","DLV","DNAME","DNSKEY","DS","HIP","IPSECKEY","KEY","KX","LOC","MX","NAPTR","NS","NSEC","NSEC3","NSEC3PARAM","PTR","RRSIG","RP","SIG","SOA","SRV","SSHFP","TA","TKEY","TLSA","TSIG","TXT"],contains:[e.COMMENT(";","$",{relevance:0}),{className:"meta",begin:/^\$(TTL|GENERATE|INCLUDE|ORIGIN)\b/},{className:"number",begin:"((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:)))\\b"},{className:"number",begin:"((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]).){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\b"},e.inherit(e.NUMBER_MODE,{begin:/\b\d+[dhwm]?/})]}}},3293:r=>{r.exports=function a(e){return{name:"Dockerfile",aliases:["docker"],case_insensitive:!0,keywords:["from","maintainer","expose","env","arg","user","onbuild","stopsignal"],contains:[e.HASH_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE,{beginKeywords:"run cmd entrypoint volume add copy workdir label healthcheck shell",starts:{end:/[^\\]$/,subLanguage:"bash"}}],illegal:"{r.exports=function a(e){const t=e.COMMENT(/^\s*@?rem\b/,/$/,{relevance:10});return{name:"Batch file (DOS)",aliases:["bat","cmd"],case_insensitive:!0,illegal:/\/\*/,keywords:{keyword:["if","else","goto","for","in","do","call","exit","not","exist","errorlevel","defined","equ","neq","lss","leq","gtr","geq"],built_in:["prn","nul","lpt3","lpt2","lpt1","con","com4","com3","com2","com1","aux","shift","cd","dir","echo","setlocal","endlocal","set","pause","copy","append","assoc","at","attrib","break","cacls","cd","chcp","chdir","chkdsk","chkntfs","cls","cmd","color","comp","compact","convert","date","dir","diskcomp","diskcopy","doskey","erase","fs","find","findstr","format","ftype","graftabl","help","keyb","label","md","mkdir","mode","more","move","path","pause","print","popd","pushd","promt","rd","recover","rem","rename","replace","restore","rmdir","shift","sort","start","subst","time","title","tree","type","ver","verify","vol","ping","net","ipconfig","taskkill","xcopy","ren","del"]},contains:[{className:"variable",begin:/%%[^ ]|%[^ ]+?%|![^ ]+?!/},{className:"function",begin:"^\\s*[A-Za-z._?][A-Za-z0-9_$#@~.?]*(:|\\s+label)",end:"goto:eof",contains:[e.inherit(e.TITLE_MODE,{begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),t]},{className:"number",begin:"\\b\\d+",relevance:0},t]}}},8149:r=>{r.exports=function a(e){return{keywords:"dsconfig",contains:[{className:"keyword",begin:"^dsconfig",end:/\s/,excludeEnd:!0,relevance:10},{className:"built_in",begin:/(list|create|get|set|delete)-(\w+)/,end:/\s/,excludeEnd:!0,illegal:"!@#$%^&*()",relevance:10},{className:"built_in",begin:/--(\w+)/,end:/\s/,excludeEnd:!0},{className:"string",begin:/"/,end:/"/},{className:"string",begin:/'/,end:/'/},{className:"string",begin:/[\w\-?]+:\w+/,end:/\W/,relevance:0},{className:"string",begin:/\w+(\-\w+)*/,end:/(?=\W)/,relevance:0},e.HASH_COMMENT_MODE]}}},3284:r=>{r.exports=function a(e){const t={className:"string",variants:[e.inherit(e.QUOTE_STRING_MODE,{begin:'((u8?|U)|L)?"'}),{begin:'(u8?|U)?R"',end:'"',contains:[e.BACKSLASH_ESCAPE]},{begin:"'\\\\?.",end:"'",illegal:"."}]},n={className:"number",variants:[{begin:"\\b(\\d+(\\.\\d*)?|\\.\\d+)(u|U|l|L|ul|UL|f|F)"},{begin:e.C_NUMBER_RE}],relevance:0},i={className:"meta",begin:"#",end:"$",keywords:{keyword:"if else elif endif define undef ifdef ifndef"},contains:[{begin:/\\\n/,relevance:0},{beginKeywords:"include",end:"$",keywords:{keyword:"include"},contains:[e.inherit(t,{className:"string"}),{className:"string",begin:"<",end:">",illegal:"\\n"}]},t,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},o={className:"variable",begin:/&[a-z\d_]*\b/};return{name:"Device Tree",contains:[{className:"title.class",begin:/^\/(?=\s*\{)/,relevance:10},o,{className:"keyword",begin:"/[a-z][a-z\\d-]*/"},{className:"symbol",begin:"^\\s*[a-zA-Z_][a-zA-Z\\d_]*:"},{className:"title.class",begin:/[a-zA-Z_][a-zA-Z\d_@-]*(?=\s\{)/,relevance:.2},{relevance:0,match:[/[a-z][a-z-,]+/,/\s*/,/=/],scope:{1:"attr",3:"operator"}},{match:/[a-z][a-z-,]+(?=;)/,relevance:0,scope:"attr"},{className:"params",relevance:0,begin:"<",end:">",contains:[n,o]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,n,t,i,{scope:"punctuation",relevance:0,match:/\};|[;{}]/},{begin:e.IDENT_RE+"::",keywords:""}]}}},4393:r=>{r.exports=function a(e){return{name:"Dust",aliases:["dst"],case_insensitive:!0,subLanguage:"xml",contains:[{className:"template-tag",begin:/\{[#\/]/,end:/\}/,illegal:/;/,contains:[{className:"name",begin:/[a-zA-Z\.-]+/,starts:{endsWithParent:!0,relevance:0,contains:[e.QUOTE_STRING_MODE]}}]},{className:"template-variable",begin:/\{/,end:/\}/,illegal:/;/,keywords:"if eq ne lt lte gt gte select default math sep"}]}}},740:r=>{r.exports=function a(e){const t=e.COMMENT(/\(\*/,/\*\)/);return{name:"Extended Backus-Naur Form",illegal:/\S/,contains:[t,{className:"attribute",begin:/^[ ]*[a-zA-Z]+([\s_-]+[a-zA-Z]+)*/},{begin:/=/,end:/[.;]/,contains:[t,{className:"meta",begin:/\?.*\?/},{className:"string",variants:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{begin:"`",end:"`"}]}]}]}}},5265:r=>{r.exports=function a(e){const t=e.regex,n="[a-zA-Z_][a-zA-Z0-9_.]*(!|\\?)?",s={$pattern:n,keyword:["after","alias","and","case","catch","cond","defstruct","defguard","do","else","end","fn","for","if","import","in","not","or","quote","raise","receive","require","reraise","rescue","try","unless","unquote","unquote_splicing","use","when","with|0"],literal:["false","nil","true"]},l={className:"subst",begin:/#\{/,end:/\}/,keywords:s},m={match:/\\[\s\S]/,scope:"char.escape",relevance:0},u="[/|([{<\"']",p=[{begin:/"/,end:/"/},{begin:/'/,end:/'/},{begin:/\//,end:/\//},{begin:/\|/,end:/\|/},{begin:/\(/,end:/\)/},{begin:/\[/,end:/\]/},{begin:/\{/,end:/\}/},{begin://}],S=O=>({scope:"char.escape",begin:t.concat(/\\/,O),relevance:0}),g={className:"string",begin:"~[a-z](?="+u+")",contains:p.map(O=>e.inherit(O,{contains:[S(O.end),m,l]}))},T={className:"string",begin:"~[A-Z](?="+u+")",contains:p.map(O=>e.inherit(O,{contains:[S(O.end)]}))},R={className:"regex",variants:[{begin:"~r(?="+u+")",contains:p.map(O=>e.inherit(O,{end:t.concat(O.end,/[uismxfU]{0,7}/),contains:[S(O.end),m,l]}))},{begin:"~R(?="+u+")",contains:p.map(O=>e.inherit(O,{end:t.concat(O.end,/[uismxfU]{0,7}/),contains:[S(O.end)]}))}]},C={className:"string",contains:[e.BACKSLASH_ESCAPE,l],variants:[{begin:/"""/,end:/"""/},{begin:/'''/,end:/'''/},{begin:/~S"""/,end:/"""/,contains:[]},{begin:/~S"/,end:/"/,contains:[]},{begin:/~S'''/,end:/'''/,contains:[]},{begin:/~S'/,end:/'/,contains:[]},{begin:/'/,end:/'/},{begin:/"/,end:/"/}]},f={className:"function",beginKeywords:"def defp defmacro defmacrop",end:/\B\b/,contains:[e.inherit(e.TITLE_MODE,{begin:n,endsParent:!0})]},v=e.inherit(f,{className:"class",beginKeywords:"defimpl defmodule defprotocol defrecord",end:/\bdo\b|$|;/}),y=[C,R,T,g,e.HASH_COMMENT_MODE,v,f,{begin:"::"},{className:"symbol",begin:":(?![\\s:])",contains:[C,{begin:"[a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?"}],relevance:0},{className:"symbol",begin:n+":(?!:)",relevance:0},{className:"title.class",begin:/(\b[A-Z][a-zA-Z0-9_]+)/,relevance:0},{className:"number",begin:"(\\b0o[0-7_]+)|(\\b0b[01_]+)|(\\b0x[0-9a-fA-F_]+)|(-?\\b[0-9][0-9_]*(\\.[0-9_]+([eE][-+]?[0-9]+)?)?)",relevance:0},{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))"}];return l.contains=y,{name:"Elixir",aliases:["ex","exs"],keywords:s,contains:y}}},2272:r=>{r.exports=function a(e){const t={variants:[e.COMMENT("--","$"),e.COMMENT(/\{-/,/-\}/,{contains:["self"]})]},n={className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},i={begin:"\\(",end:"\\)",illegal:'"',contains:[{className:"type",begin:"\\b[A-Z][\\w]*(\\((\\.\\.|,|\\w+)\\))?"},t]};return{name:"Elm",keywords:["let","in","if","then","else","case","of","where","module","import","exposing","type","alias","as","infix","infixl","infixr","port","effect","command","subscription"],contains:[{beginKeywords:"port effect module",end:"exposing",keywords:"port effect module where command subscription exposing",contains:[i,t],illegal:"\\W\\.|;"},{begin:"import",end:"$",keywords:"import as exposing",contains:[i,t],illegal:"\\W\\.|;"},{begin:"type",end:"$",keywords:"type alias",contains:[n,i,{begin:/\{/,end:/\}/,contains:i.contains},t]},{beginKeywords:"infix infixl infixr",end:"$",contains:[e.C_NUMBER_MODE,t]},{begin:"port",end:"$",keywords:"port",contains:[t]},{className:"string",begin:"'\\\\?.",end:"'",illegal:"."},e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,n,e.inherit(e.TITLE_MODE,{begin:"^[_a-z][\\w']*"}),t,{begin:"->|<-"}],illegal:/;/}}},1869:r=>{r.exports=function a(e){return{name:"ERB",subLanguage:"xml",contains:[e.COMMENT("<%#","%>"),{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0}]}}},1386:r=>{r.exports=function a(e){const t=e.regex;return{name:"Erlang REPL",keywords:{built_in:"spawn spawn_link self",keyword:"after and andalso|10 band begin bnot bor bsl bsr bxor case catch cond div end fun if let not of or orelse|10 query receive rem try when xor"},contains:[{className:"meta.prompt",begin:"^[0-9]+> ",relevance:10},e.COMMENT("%","$"),{className:"number",begin:"\\b(\\d+(_\\d+)*#[a-fA-F0-9]+(_[a-fA-F0-9]+)*|\\d+(_\\d+)*(\\.\\d+(_\\d+)*)?([eE][-+]?\\d+)?)",relevance:0},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{begin:t.concat(/\?(::)?/,/([A-Z]\w*)/,/((::)[A-Z]\w*)*/)},{begin:"->"},{begin:"ok"},{begin:"!"},{begin:"(\\b[a-z'][a-zA-Z0-9_']*:[a-z'][a-zA-Z0-9_']*)|(\\b[a-z'][a-zA-Z0-9_']*)",relevance:0},{begin:"[A-Z][a-zA-Z0-9_']*",relevance:0}]}}},9101:r=>{r.exports=function a(e){const t="[a-z'][a-zA-Z0-9_']*",n="("+t+":"+t+"|"+t+")",i={keyword:"after and andalso|10 band begin bnot bor bsl bzr bxor case catch cond div end fun if let not of orelse|10 query receive rem try when xor",literal:"false true"},o=e.COMMENT("%","$"),c={className:"number",begin:"\\b(\\d+(_\\d+)*#[a-fA-F0-9]+(_[a-fA-F0-9]+)*|\\d+(_\\d+)*(\\.\\d+(_\\d+)*)?([eE][-+]?\\d+)?)",relevance:0},s={begin:"fun\\s+"+t+"/\\d+"},l={begin:n+"\\(",end:"\\)",returnBegin:!0,relevance:0,contains:[{begin:n,relevance:0},{begin:"\\(",end:"\\)",endsWithParent:!0,returnEnd:!0,relevance:0}]},_={begin:/\{/,end:/\}/,relevance:0},d={begin:"\\b_([A-Z][A-Za-z0-9_]*)?",relevance:0},m={begin:"[A-Z][a-zA-Z0-9_]*",relevance:0},u={begin:"#"+e.UNDERSCORE_IDENT_RE,relevance:0,returnBegin:!0,contains:[{begin:"#"+e.UNDERSCORE_IDENT_RE,relevance:0},{begin:/\{/,end:/\}/,relevance:0}]},p={beginKeywords:"fun receive if try case",end:"end",keywords:i};p.contains=[o,s,e.inherit(e.APOS_STRING_MODE,{className:""}),p,l,e.QUOTE_STRING_MODE,c,_,d,m,u];const S=[o,s,p,l,e.QUOTE_STRING_MODE,c,_,d,m,u];l.contains[1].contains=S,_.contains=S,u.contains[1].contains=S;const T={className:"params",begin:"\\(",end:"\\)",contains:S};return{name:"Erlang",aliases:["erl"],keywords:i,illegal:"(",returnBegin:!0,illegal:"\\(|#|//|/\\*|\\\\|:|;",contains:[T,e.inherit(e.TITLE_MODE,{begin:t})],starts:{end:";|\\.",keywords:i,contains:S}},o,{begin:"^-",end:"\\.",relevance:0,excludeEnd:!0,returnBegin:!0,keywords:{$pattern:"-"+e.IDENT_RE,keyword:["-module","-record","-undef","-export","-ifdef","-ifndef","-author","-copyright","-doc","-vsn","-import","-include","-include_lib","-compile","-define","-else","-endif","-file","-behaviour","-behavior","-spec"].map(R=>`${R}|1.5`).join(" ")},contains:[T]},c,e.QUOTE_STRING_MODE,u,d,m,_,{begin:/\.$/}]}}},4242:r=>{r.exports=function a(e){return{name:"Excel formulae",aliases:["xlsx","xls"],case_insensitive:!0,keywords:{$pattern:/[a-zA-Z][\w\.]*/,built_in:["ABS","ACCRINT","ACCRINTM","ACOS","ACOSH","ACOT","ACOTH","AGGREGATE","ADDRESS","AMORDEGRC","AMORLINC","AND","ARABIC","AREAS","ASC","ASIN","ASINH","ATAN","ATAN2","ATANH","AVEDEV","AVERAGE","AVERAGEA","AVERAGEIF","AVERAGEIFS","BAHTTEXT","BASE","BESSELI","BESSELJ","BESSELK","BESSELY","BETADIST","BETA.DIST","BETAINV","BETA.INV","BIN2DEC","BIN2HEX","BIN2OCT","BINOMDIST","BINOM.DIST","BINOM.DIST.RANGE","BINOM.INV","BITAND","BITLSHIFT","BITOR","BITRSHIFT","BITXOR","CALL","CEILING","CEILING.MATH","CEILING.PRECISE","CELL","CHAR","CHIDIST","CHIINV","CHITEST","CHISQ.DIST","CHISQ.DIST.RT","CHISQ.INV","CHISQ.INV.RT","CHISQ.TEST","CHOOSE","CLEAN","CODE","COLUMN","COLUMNS","COMBIN","COMBINA","COMPLEX","CONCAT","CONCATENATE","CONFIDENCE","CONFIDENCE.NORM","CONFIDENCE.T","CONVERT","CORREL","COS","COSH","COT","COTH","COUNT","COUNTA","COUNTBLANK","COUNTIF","COUNTIFS","COUPDAYBS","COUPDAYS","COUPDAYSNC","COUPNCD","COUPNUM","COUPPCD","COVAR","COVARIANCE.P","COVARIANCE.S","CRITBINOM","CSC","CSCH","CUBEKPIMEMBER","CUBEMEMBER","CUBEMEMBERPROPERTY","CUBERANKEDMEMBER","CUBESET","CUBESETCOUNT","CUBEVALUE","CUMIPMT","CUMPRINC","DATE","DATEDIF","DATEVALUE","DAVERAGE","DAY","DAYS","DAYS360","DB","DBCS","DCOUNT","DCOUNTA","DDB","DEC2BIN","DEC2HEX","DEC2OCT","DECIMAL","DEGREES","DELTA","DEVSQ","DGET","DISC","DMAX","DMIN","DOLLAR","DOLLARDE","DOLLARFR","DPRODUCT","DSTDEV","DSTDEVP","DSUM","DURATION","DVAR","DVARP","EDATE","EFFECT","ENCODEURL","EOMONTH","ERF","ERF.PRECISE","ERFC","ERFC.PRECISE","ERROR.TYPE","EUROCONVERT","EVEN","EXACT","EXP","EXPON.DIST","EXPONDIST","FACT","FACTDOUBLE","FALSE|0","F.DIST","FDIST","F.DIST.RT","FILTERXML","FIND","FINDB","F.INV","F.INV.RT","FINV","FISHER","FISHERINV","FIXED","FLOOR","FLOOR.MATH","FLOOR.PRECISE","FORECAST","FORECAST.ETS","FORECAST.ETS.CONFINT","FORECAST.ETS.SEASONALITY","FORECAST.ETS.STAT","FORECAST.LINEAR","FORMULATEXT","FREQUENCY","F.TEST","FTEST","FV","FVSCHEDULE","GAMMA","GAMMA.DIST","GAMMADIST","GAMMA.INV","GAMMAINV","GAMMALN","GAMMALN.PRECISE","GAUSS","GCD","GEOMEAN","GESTEP","GETPIVOTDATA","GROWTH","HARMEAN","HEX2BIN","HEX2DEC","HEX2OCT","HLOOKUP","HOUR","HYPERLINK","HYPGEOM.DIST","HYPGEOMDIST","IF","IFERROR","IFNA","IFS","IMABS","IMAGINARY","IMARGUMENT","IMCONJUGATE","IMCOS","IMCOSH","IMCOT","IMCSC","IMCSCH","IMDIV","IMEXP","IMLN","IMLOG10","IMLOG2","IMPOWER","IMPRODUCT","IMREAL","IMSEC","IMSECH","IMSIN","IMSINH","IMSQRT","IMSUB","IMSUM","IMTAN","INDEX","INDIRECT","INFO","INT","INTERCEPT","INTRATE","IPMT","IRR","ISBLANK","ISERR","ISERROR","ISEVEN","ISFORMULA","ISLOGICAL","ISNA","ISNONTEXT","ISNUMBER","ISODD","ISREF","ISTEXT","ISO.CEILING","ISOWEEKNUM","ISPMT","JIS","KURT","LARGE","LCM","LEFT","LEFTB","LEN","LENB","LINEST","LN","LOG","LOG10","LOGEST","LOGINV","LOGNORM.DIST","LOGNORMDIST","LOGNORM.INV","LOOKUP","LOWER","MATCH","MAX","MAXA","MAXIFS","MDETERM","MDURATION","MEDIAN","MID","MIDBs","MIN","MINIFS","MINA","MINUTE","MINVERSE","MIRR","MMULT","MOD","MODE","MODE.MULT","MODE.SNGL","MONTH","MROUND","MULTINOMIAL","MUNIT","N","NA","NEGBINOM.DIST","NEGBINOMDIST","NETWORKDAYS","NETWORKDAYS.INTL","NOMINAL","NORM.DIST","NORMDIST","NORMINV","NORM.INV","NORM.S.DIST","NORMSDIST","NORM.S.INV","NORMSINV","NOT","NOW","NPER","NPV","NUMBERVALUE","OCT2BIN","OCT2DEC","OCT2HEX","ODD","ODDFPRICE","ODDFYIELD","ODDLPRICE","ODDLYIELD","OFFSET","OR","PDURATION","PEARSON","PERCENTILE.EXC","PERCENTILE.INC","PERCENTILE","PERCENTRANK.EXC","PERCENTRANK.INC","PERCENTRANK","PERMUT","PERMUTATIONA","PHI","PHONETIC","PI","PMT","POISSON.DIST","POISSON","POWER","PPMT","PRICE","PRICEDISC","PRICEMAT","PROB","PRODUCT","PROPER","PV","QUARTILE","QUARTILE.EXC","QUARTILE.INC","QUOTIENT","RADIANS","RAND","RANDBETWEEN","RANK.AVG","RANK.EQ","RANK","RATE","RECEIVED","REGISTER.ID","REPLACE","REPLACEB","REPT","RIGHT","RIGHTB","ROMAN","ROUND","ROUNDDOWN","ROUNDUP","ROW","ROWS","RRI","RSQ","RTD","SEARCH","SEARCHB","SEC","SECH","SECOND","SERIESSUM","SHEET","SHEETS","SIGN","SIN","SINH","SKEW","SKEW.P","SLN","SLOPE","SMALL","SQL.REQUEST","SQRT","SQRTPI","STANDARDIZE","STDEV","STDEV.P","STDEV.S","STDEVA","STDEVP","STDEVPA","STEYX","SUBSTITUTE","SUBTOTAL","SUM","SUMIF","SUMIFS","SUMPRODUCT","SUMSQ","SUMX2MY2","SUMX2PY2","SUMXMY2","SWITCH","SYD","T","TAN","TANH","TBILLEQ","TBILLPRICE","TBILLYIELD","T.DIST","T.DIST.2T","T.DIST.RT","TDIST","TEXT","TEXTJOIN","TIME","TIMEVALUE","T.INV","T.INV.2T","TINV","TODAY","TRANSPOSE","TREND","TRIM","TRIMMEAN","TRUE|0","TRUNC","T.TEST","TTEST","TYPE","UNICHAR","UNICODE","UPPER","VALUE","VAR","VAR.P","VAR.S","VARA","VARP","VARPA","VDB","VLOOKUP","WEBSERVICE","WEEKDAY","WEEKNUM","WEIBULL","WEIBULL.DIST","WORKDAY","WORKDAY.INTL","XIRR","XNPV","XOR","YEAR","YEARFRAC","YIELD","YIELDDISC","YIELDMAT","Z.TEST","ZTEST"]},contains:[{begin:/^=/,end:/[^=]/,returnEnd:!0,illegal:/=/,relevance:10},{className:"symbol",begin:/\b[A-Z]{1,2}\d+\b/,end:/[^\d]/,excludeEnd:!0,relevance:0},{className:"symbol",begin:/[A-Z]{0,2}\d*:[A-Z]{0,2}\d*/,relevance:0},e.BACKSLASH_ESCAPE,e.QUOTE_STRING_MODE,{className:"number",begin:e.NUMBER_RE+"(%)?",relevance:0},e.COMMENT(/\bN\(/,/\)/,{excludeBegin:!0,excludeEnd:!0,illegal:/\n/})]}}},7939:r=>{r.exports=function a(e){return{name:"FIX",contains:[{begin:/[^\u2401\u0001]+/,end:/[\u2401\u0001]/,excludeEnd:!0,returnBegin:!0,returnEnd:!1,contains:[{begin:/([^\u2401\u0001=]+)/,end:/=([^\u2401\u0001=]+)/,returnEnd:!0,returnBegin:!1,className:"attr"},{begin:/=/,end:/([\u2401\u0001])/,excludeEnd:!0,excludeBegin:!0,className:"string"}]}],case_insensitive:!0}}},2428:r=>{r.exports=function a(e){return{name:"Flix",keywords:{keyword:["case","class","def","else","enum","if","impl","import","in","lat","rel","index","let","match","namespace","switch","type","yield","with"],literal:["true","false"]},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"string",begin:/'(.|\\[xXuU][a-zA-Z0-9]+)'/},{className:"string",variants:[{begin:'"',end:'"'}]},{className:"function",beginKeywords:"def",end:/[:={\[(\n;]/,excludeEnd:!0,contains:[{className:"title",relevance:0,begin:/[^0-9\n\t "'(),.`{}\[\]:;][^\n\t "'(),.`{}\[\]:;]+|[^0-9\n\t "'(),.`{}\[\]:;=]/}]},e.C_NUMBER_MODE]}}},2095:r=>{r.exports=function a(e){const t=e.regex,i={variants:[e.COMMENT("!","$",{relevance:0}),e.COMMENT("^C[ ]","$",{relevance:0}),e.COMMENT("^C$","$",{relevance:0})]},o=/(_[a-z_\d]+)?/,c=/([de][+-]?\d+)?/,s={className:"number",variants:[{begin:t.concat(/\b\d+/,/\.(\d*)/,c,o)},{begin:t.concat(/\b\d+/,c,o)},{begin:t.concat(/\.\d+/,c,o)}],relevance:0};return{name:"Fortran",case_insensitive:!0,aliases:["f90","f95"],keywords:{keyword:["kind","do","concurrent","local","shared","while","private","call","intrinsic","where","elsewhere","type","endtype","endmodule","endselect","endinterface","end","enddo","endif","if","forall","endforall","only","contains","default","return","stop","then","block","endblock","endassociate","public","subroutine|10","function","program",".and.",".or.",".not.",".le.",".eq.",".ge.",".gt.",".lt.","goto","save","else","use","module","select","case","access","blank","direct","exist","file","fmt","form","formatted","iostat","name","named","nextrec","number","opened","rec","recl","sequential","status","unformatted","unit","continue","format","pause","cycle","exit","c_null_char","c_alert","c_backspace","c_form_feed","flush","wait","decimal","round","iomsg","synchronous","nopass","non_overridable","pass","protected","volatile","abstract","extends","import","non_intrinsic","value","deferred","generic","final","enumerator","class","associate","bind","enum","c_int","c_short","c_long","c_long_long","c_signed_char","c_size_t","c_int8_t","c_int16_t","c_int32_t","c_int64_t","c_int_least8_t","c_int_least16_t","c_int_least32_t","c_int_least64_t","c_int_fast8_t","c_int_fast16_t","c_int_fast32_t","c_int_fast64_t","c_intmax_t","C_intptr_t","c_float","c_double","c_long_double","c_float_complex","c_double_complex","c_long_double_complex","c_bool","c_char","c_null_ptr","c_null_funptr","c_new_line","c_carriage_return","c_horizontal_tab","c_vertical_tab","iso_c_binding","c_loc","c_funloc","c_associated","c_f_pointer","c_ptr","c_funptr","iso_fortran_env","character_storage_size","error_unit","file_storage_size","input_unit","iostat_end","iostat_eor","numeric_storage_size","output_unit","c_f_procpointer","ieee_arithmetic","ieee_support_underflow_control","ieee_get_underflow_mode","ieee_set_underflow_mode","newunit","contiguous","recursive","pad","position","action","delim","readwrite","eor","advance","nml","interface","procedure","namelist","include","sequence","elemental","pure","impure","integer","real","character","complex","logical","codimension","dimension","allocatable|10","parameter","external","implicit|10","none","double","precision","assign","intent","optional","pointer","target","in","out","common","equivalence","data"],literal:[".False.",".True."],built_in:["alog","alog10","amax0","amax1","amin0","amin1","amod","cabs","ccos","cexp","clog","csin","csqrt","dabs","dacos","dasin","datan","datan2","dcos","dcosh","ddim","dexp","dint","dlog","dlog10","dmax1","dmin1","dmod","dnint","dsign","dsin","dsinh","dsqrt","dtan","dtanh","float","iabs","idim","idint","idnint","ifix","isign","max0","max1","min0","min1","sngl","algama","cdabs","cdcos","cdexp","cdlog","cdsin","cdsqrt","cqabs","cqcos","cqexp","cqlog","cqsin","cqsqrt","dcmplx","dconjg","derf","derfc","dfloat","dgamma","dimag","dlgama","iqint","qabs","qacos","qasin","qatan","qatan2","qcmplx","qconjg","qcos","qcosh","qdim","qerf","qerfc","qexp","qgamma","qimag","qlgama","qlog","qlog10","qmax1","qmin1","qmod","qnint","qsign","qsin","qsinh","qsqrt","qtan","qtanh","abs","acos","aimag","aint","anint","asin","atan","atan2","char","cmplx","conjg","cos","cosh","exp","ichar","index","int","log","log10","max","min","nint","sign","sin","sinh","sqrt","tan","tanh","print","write","dim","lge","lgt","lle","llt","mod","nullify","allocate","deallocate","adjustl","adjustr","all","allocated","any","associated","bit_size","btest","ceiling","count","cshift","date_and_time","digits","dot_product","eoshift","epsilon","exponent","floor","fraction","huge","iand","ibclr","ibits","ibset","ieor","ior","ishft","ishftc","lbound","len_trim","matmul","maxexponent","maxloc","maxval","merge","minexponent","minloc","minval","modulo","mvbits","nearest","pack","present","product","radix","random_number","random_seed","range","repeat","reshape","rrspacing","scale","scan","selected_int_kind","selected_real_kind","set_exponent","shape","size","spacing","spread","sum","system_clock","tiny","transpose","trim","ubound","unpack","verify","achar","iachar","transfer","dble","entry","dprod","cpu_time","command_argument_count","get_command","get_command_argument","get_environment_variable","is_iostat_end","ieee_arithmetic","ieee_support_underflow_control","ieee_get_underflow_mode","ieee_set_underflow_mode","is_iostat_eor","move_alloc","new_line","selected_char_kind","same_type_as","extends_type_of","acosh","asinh","atanh","bessel_j0","bessel_j1","bessel_jn","bessel_y0","bessel_y1","bessel_yn","erf","erfc","erfc_scaled","gamma","log_gamma","hypot","norm2","atomic_define","atomic_ref","execute_command_line","leadz","trailz","storage_size","merge_bits","bge","bgt","ble","blt","dshiftl","dshiftr","findloc","iall","iany","iparity","image_index","lcobound","ucobound","maskl","maskr","num_images","parity","popcnt","poppar","shifta","shiftl","shiftr","this_image","sync","change","team","co_broadcast","co_max","co_min","co_sum","co_reduce"]},illegal:/\/\*/,contains:[{className:"string",relevance:0,variants:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},{className:"function",beginKeywords:"subroutine function program",illegal:"[${=\\n]",contains:[e.UNDERSCORE_TITLE_MODE,{className:"params",begin:"\\(",end:"\\)"}]},{begin:/^C\s*=(?!=)/,relevance:0},i,s]}}},5143:r=>{function a(s){return new RegExp(s.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),"m")}function e(s){return s?"string"==typeof s?s:s.source:null}function t(s){return n("(?=",s,")")}function n(...s){return s.map(_=>e(_)).join("")}function o(...s){return"("+(function i(s){const l=s[s.length-1];return"object"==typeof l&&l.constructor===Object?(s.splice(s.length-1,1),l):{}}(s).capture?"":"?:")+s.map(d=>e(d)).join("|")+")"}r.exports=function c(s){const _={scope:"keyword",match:/\b(yield|return|let|do|match|use)!/},p=["bool","byte","sbyte","int8","int16","int32","uint8","uint16","uint32","int","uint","int64","uint64","nativeint","unativeint","decimal","float","double","float32","single","char","string","unit","bigint","option","voption","list","array","seq","byref","exn","inref","nativeptr","obj","outref","voidptr","Result"],g={keyword:["abstract","and","as","assert","base","begin","class","default","delegate","do","done","downcast","downto","elif","else","end","exception","extern","finally","fixed","for","fun","function","global","if","in","inherit","inline","interface","internal","lazy","let","match","member","module","mutable","namespace","new","of","open","or","override","private","public","rec","return","static","struct","then","to","try","type","upcast","use","val","void","when","while","with","yield"],literal:["true","false","null","Some","None","Ok","Error","infinity","infinityf","nan","nanf"],built_in:["not","ref","raise","reraise","dict","readOnlyDict","set","get","enum","sizeof","typeof","typedefof","nameof","nullArg","invalidArg","invalidOp","id","fst","snd","ignore","lock","using","box","unbox","tryUnbox","printf","printfn","sprintf","eprintf","eprintfn","fprintf","fprintfn","failwith","failwithf"],"variable.constant":["__LINE__","__SOURCE_DIRECTORY__","__SOURCE_FILE__"]},R={variants:[s.COMMENT(/\(\*(?!\))/,/\*\)/,{contains:["self"]}),s.C_LINE_COMMENT_MODE]},f={scope:"variable",begin:/``/,end:/``/},v=/\B('|\^)/,y={scope:"symbol",variants:[{match:n(v,/``.*?``/)},{match:n(v,s.UNDERSCORE_IDENT_RE)}],relevance:0},O=function({includeEqual:ce}){let _e;_e=ce?"!%&*+-/<=>@^|~?":"!%&*+-/<>@^|~?";const z=n("[",...Array.from(_e).map(a),"]"),te=o(z,/\./),j=n(te,t(te)),oe=o(n(j,te,"*"),n(z,"+"));return{scope:"operator",match:o(oe,/:\?>/,/:\?/,/:>/,/:=/,/::?/,/\$/),relevance:0}},w=O({includeEqual:!0}),D=O({includeEqual:!1}),U=function(ce,_e){return{begin:n(ce,t(n(/\s*/,o(/\w/,/'/,/\^/,/#/,/``/,/\(/,/{\|/)))),beginScope:_e,end:t(o(/\n/,/=/)),relevance:0,keywords:s.inherit(g,{type:p}),contains:[R,y,s.inherit(f,{scope:null}),D]}},H=U(/:/,"operator"),x=U(/\bof\b/,"keyword"),q={begin:[/(^|\s+)/,/type/,/\s+/,/[a-zA-Z_](\w|')*/],beginScope:{2:"keyword",4:"title.class"},end:t(/\(|=|$/),keywords:g,contains:[R,s.inherit(f,{scope:null}),y,{scope:"operator",match:/<|>/},H]},le={scope:"computation-expression",match:/\b[_a-z]\w*(?=\s*\{)/},K={begin:[/^\s*/,n(/#/,o("if","else","endif","line","nowarn","light","r","i","I","load","time","help","quit")),/\b/],beginScope:{2:"meta"},end:t(/\s|$/)},V={variants:[s.BINARY_NUMBER_MODE,s.C_NUMBER_MODE]},J={scope:"string",begin:/"/,end:/"/,contains:[s.BACKSLASH_ESCAPE]},ie={scope:"string",begin:/@"/,end:/"/,contains:[{match:/""/},s.BACKSLASH_ESCAPE]},ee={scope:"string",begin:/"""/,end:/"""/,relevance:2},pe={scope:"subst",begin:/\{/,end:/\}/,keywords:g},Re={scope:"string",begin:/\$"/,end:/"/,contains:[{match:/\{\{/},{match:/\}\}/},s.BACKSLASH_ESCAPE,pe]},Se={scope:"string",begin:/(\$@|@\$)"/,end:/"/,contains:[{match:/\{\{/},{match:/\}\}/},{match:/""/},s.BACKSLASH_ESCAPE,pe]},Ce={scope:"string",begin:/\$"""/,end:/"""/,contains:[{match:/\{\{/},{match:/\}\}/},pe],relevance:2},ge={scope:"string",match:n(/'/,o(/[^\\']/,/\\(?:.|\d{3}|x[a-fA-F\d]{2}|u[a-fA-F\d]{4}|U[a-fA-F\d]{8})/),/'/)};return pe.contains=[Se,Re,ie,J,ge,_,R,f,H,le,K,V,y,w],{name:"F#",aliases:["fs","f#"],keywords:g,illegal:/\/\*/,classNameAliases:{"computation-expression":"keyword"},contains:[_,{variants:[Ce,Se,Re,ee,ie,J,ge]},R,f,q,{scope:"meta",begin:/\[\]/,relevance:2,contains:[f,ee,ie,J,ge,V]},x,H,le,K,V,y,w]}}},3312:r=>{r.exports=function a(e){const t=e.regex,n={keyword:"abort acronym acronyms alias all and assign binary card diag display else eq file files for free ge gt if integer le loop lt maximizing minimizing model models ne negative no not option options or ord positive prod put putpage puttl repeat sameas semicont semiint smax smin solve sos1 sos2 sum system table then until using while xor yes",literal:"eps inf na",built_in:"abs arccos arcsin arctan arctan2 Beta betaReg binomial ceil centropy cos cosh cvPower div div0 eDist entropy errorf execSeed exp fact floor frac gamma gammaReg log logBeta logGamma log10 log2 mapVal max min mod ncpCM ncpF ncpVUpow ncpVUsin normal pi poly power randBinomial randLinear randTriangle round rPower sigmoid sign signPower sin sinh slexp sllog10 slrec sqexp sqlog10 sqr sqrec sqrt tan tanh trunc uniform uniformInt vcPower bool_and bool_eqv bool_imp bool_not bool_or bool_xor ifThen rel_eq rel_ge rel_gt rel_le rel_lt rel_ne gday gdow ghour gleap gmillisec gminute gmonth gsecond gyear jdate jnow jstart jtime errorLevel execError gamsRelease gamsVersion handleCollect handleDelete handleStatus handleSubmit heapFree heapLimit heapSize jobHandle jobKill jobStatus jobTerminate licenseLevel licenseStatus maxExecError sleep timeClose timeComp timeElapsed timeExec timeStart"},o={className:"symbol",variants:[{begin:/=[lgenxc]=/},{begin:/\$/}]},c={className:"comment",variants:[{begin:"'",end:"'"},{begin:'"',end:'"'}],illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},s={begin:"/",end:"/",keywords:n,contains:[c,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,e.C_NUMBER_MODE]},l=/[a-z0-9&#*=?@\\><:,()$[\]_.{}!+%^-]+/,_={begin:/[a-z][a-z0-9_]*(\([a-z0-9_, ]*\))?[ \t]+/,excludeBegin:!0,end:"$",endsWithParent:!0,contains:[c,s,{className:"comment",begin:t.concat(l,t.anyNumberOfTimes(t.concat(/[ ]+/,l))),relevance:0}]};return{name:"GAMS",aliases:["gms"],case_insensitive:!0,keywords:n,contains:[e.COMMENT(/^\$ontext/,/^\$offtext/),{className:"meta",begin:"^\\$[a-z0-9]+",end:"$",returnBegin:!0,contains:[{className:"keyword",begin:"^\\$[a-z0-9]+"}]},e.COMMENT("^\\*","$"),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{beginKeywords:"set sets parameter parameters variable variables scalar scalars equation equations",end:";",contains:[e.COMMENT("^\\*","$"),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,s,_]},{beginKeywords:"table",end:";",returnBegin:!0,contains:[{beginKeywords:"table",end:"$",contains:[_]},e.COMMENT("^\\*","$"),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,e.C_NUMBER_MODE]},{className:"function",begin:/^[a-z][a-z0-9_,\-+' ()$]+\.{2}/,returnBegin:!0,contains:[{className:"title",begin:/^[a-z0-9_]+/},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0},o]},e.C_NUMBER_MODE,o]}}},5955:r=>{r.exports=function a(e){const t={keyword:"bool break call callexe checkinterrupt clear clearg closeall cls comlog compile continue create debug declare delete disable dlibrary dllcall do dos ed edit else elseif enable end endfor endif endp endo errorlog errorlogat expr external fn for format goto gosub graph if keyword let lib library line load loadarray loadexe loadf loadk loadm loadp loads loadx local locate loopnextindex lprint lpwidth lshow matrix msym ndpclex new open output outwidth plot plotsym pop prcsn print printdos proc push retp return rndcon rndmod rndmult rndseed run save saveall screen scroll setarray show sparse stop string struct system trace trap threadfor threadendfor threadbegin threadjoin threadstat threadend until use while winprint ne ge le gt lt and xor or not eq eqv",built_in:"abs acf aconcat aeye amax amean AmericanBinomCall AmericanBinomCall_Greeks AmericanBinomCall_ImpVol AmericanBinomPut AmericanBinomPut_Greeks AmericanBinomPut_ImpVol AmericanBSCall AmericanBSCall_Greeks AmericanBSCall_ImpVol AmericanBSPut AmericanBSPut_Greeks AmericanBSPut_ImpVol amin amult annotationGetDefaults annotationSetBkd annotationSetFont annotationSetLineColor annotationSetLineStyle annotationSetLineThickness annualTradingDays arccos arcsin areshape arrayalloc arrayindex arrayinit arraytomat asciiload asclabel astd astds asum atan atan2 atranspose axmargin balance band bandchol bandcholsol bandltsol bandrv bandsolpd bar base10 begwind besselj bessely beta box boxcox cdfBeta cdfBetaInv cdfBinomial cdfBinomialInv cdfBvn cdfBvn2 cdfBvn2e cdfCauchy cdfCauchyInv cdfChic cdfChii cdfChinc cdfChincInv cdfExp cdfExpInv cdfFc cdfFnc cdfFncInv cdfGam cdfGenPareto cdfHyperGeo cdfLaplace cdfLaplaceInv cdfLogistic cdfLogisticInv cdfmControlCreate cdfMvn cdfMvn2e cdfMvnce cdfMvne cdfMvt2e cdfMvtce cdfMvte cdfN cdfN2 cdfNc cdfNegBinomial cdfNegBinomialInv cdfNi cdfPoisson cdfPoissonInv cdfRayleigh cdfRayleighInv cdfTc cdfTci cdfTnc cdfTvn cdfWeibull cdfWeibullInv cdir ceil ChangeDir chdir chiBarSquare chol choldn cholsol cholup chrs close code cols colsf combinate combinated complex con cond conj cons ConScore contour conv convertsatostr convertstrtosa corrm corrms corrvc corrx corrxs cos cosh counts countwts crossprd crout croutp csrcol csrlin csvReadM csvReadSA cumprodc cumsumc curve cvtos datacreate datacreatecomplex datalist dataload dataloop dataopen datasave date datestr datestring datestrymd dayinyr dayofweek dbAddDatabase dbClose dbCommit dbCreateQuery dbExecQuery dbGetConnectOptions dbGetDatabaseName dbGetDriverName dbGetDrivers dbGetHostName dbGetLastErrorNum dbGetLastErrorText dbGetNumericalPrecPolicy dbGetPassword dbGetPort dbGetTableHeaders dbGetTables dbGetUserName dbHasFeature dbIsDriverAvailable dbIsOpen dbIsOpenError dbOpen dbQueryBindValue dbQueryClear dbQueryCols dbQueryExecPrepared dbQueryFetchAllM dbQueryFetchAllSA dbQueryFetchOneM dbQueryFetchOneSA dbQueryFinish dbQueryGetBoundValue dbQueryGetBoundValues dbQueryGetField dbQueryGetLastErrorNum dbQueryGetLastErrorText dbQueryGetLastInsertID dbQueryGetLastQuery dbQueryGetPosition dbQueryIsActive dbQueryIsForwardOnly dbQueryIsNull dbQueryIsSelect dbQueryIsValid dbQueryPrepare dbQueryRows dbQuerySeek dbQuerySeekFirst dbQuerySeekLast dbQuerySeekNext dbQuerySeekPrevious dbQuerySetForwardOnly dbRemoveDatabase dbRollback dbSetConnectOptions dbSetDatabaseName dbSetHostName dbSetNumericalPrecPolicy dbSetPort dbSetUserName dbTransaction DeleteFile delif delrows denseToSp denseToSpRE denToZero design det detl dfft dffti diag diagrv digamma doswin DOSWinCloseall DOSWinOpen dotfeq dotfeqmt dotfge dotfgemt dotfgt dotfgtmt dotfle dotflemt dotflt dotfltmt dotfne dotfnemt draw drop dsCreate dstat dstatmt dstatmtControlCreate dtdate dtday dttime dttodtv dttostr dttoutc dtvnormal dtvtodt dtvtoutc dummy dummybr dummydn eig eigh eighv eigv elapsedTradingDays endwind envget eof eqSolve eqSolvemt eqSolvemtControlCreate eqSolvemtOutCreate eqSolveset erf erfc erfccplx erfcplx error etdays ethsec etstr EuropeanBinomCall EuropeanBinomCall_Greeks EuropeanBinomCall_ImpVol EuropeanBinomPut EuropeanBinomPut_Greeks EuropeanBinomPut_ImpVol EuropeanBSCall EuropeanBSCall_Greeks EuropeanBSCall_ImpVol EuropeanBSPut EuropeanBSPut_Greeks EuropeanBSPut_ImpVol exctsmpl exec execbg exp extern eye fcheckerr fclearerr feq feqmt fflush fft ffti fftm fftmi fftn fge fgemt fgets fgetsa fgetsat fgetst fgt fgtmt fileinfo filesa fle flemt floor flt fltmt fmod fne fnemt fonts fopen formatcv formatnv fputs fputst fseek fstrerror ftell ftocv ftos ftostrC gamma gammacplx gammaii gausset gdaAppend gdaCreate gdaDStat gdaDStatMat gdaGetIndex gdaGetName gdaGetNames gdaGetOrders gdaGetType gdaGetTypes gdaGetVarInfo gdaIsCplx gdaLoad gdaPack gdaRead gdaReadByIndex gdaReadSome gdaReadSparse gdaReadStruct gdaReportVarInfo gdaSave gdaUpdate gdaUpdateAndPack gdaVars gdaWrite gdaWrite32 gdaWriteSome getarray getdims getf getGAUSShome getmatrix getmatrix4D getname getnamef getNextTradingDay getNextWeekDay getnr getorders getpath getPreviousTradingDay getPreviousWeekDay getRow getscalar3D getscalar4D getTrRow getwind glm gradcplx gradMT gradMTm gradMTT gradMTTm gradp graphprt graphset hasimag header headermt hess hessMT hessMTg hessMTgw hessMTm hessMTmw hessMTT hessMTTg hessMTTgw hessMTTm hessMTw hessp hist histf histp hsec imag indcv indexcat indices indices2 indicesf indicesfn indnv indsav integrate1d integrateControlCreate intgrat2 intgrat3 inthp1 inthp2 inthp3 inthp4 inthpControlCreate intquad1 intquad2 intquad3 intrleav intrleavsa intrsect intsimp inv invpd invswp iscplx iscplxf isden isinfnanmiss ismiss key keyav keyw lag lag1 lagn lapEighb lapEighi lapEighvb lapEighvi lapgEig lapgEigh lapgEighv lapgEigv lapgSchur lapgSvdcst lapgSvds lapgSvdst lapSvdcusv lapSvds lapSvdusv ldlp ldlsol linSolve listwise ln lncdfbvn lncdfbvn2 lncdfmvn lncdfn lncdfn2 lncdfnc lnfact lngammacplx lnpdfmvn lnpdfmvt lnpdfn lnpdft loadd loadstruct loadwind loess loessmt loessmtControlCreate log loglog logx logy lower lowmat lowmat1 ltrisol lu lusol machEpsilon make makevars makewind margin matalloc matinit mattoarray maxbytes maxc maxindc maxv maxvec mbesselei mbesselei0 mbesselei1 mbesseli mbesseli0 mbesseli1 meanc median mergeby mergevar minc minindc minv miss missex missrv moment momentd movingave movingaveExpwgt movingaveWgt nextindex nextn nextnevn nextwind ntos null null1 numCombinations ols olsmt olsmtControlCreate olsqr olsqr2 olsqrmt ones optn optnevn orth outtyp pacf packedToSp packr parse pause pdfCauchy pdfChi pdfExp pdfGenPareto pdfHyperGeo pdfLaplace pdfLogistic pdfn pdfPoisson pdfRayleigh pdfWeibull pi pinv pinvmt plotAddArrow plotAddBar plotAddBox plotAddHist plotAddHistF plotAddHistP plotAddPolar plotAddScatter plotAddShape plotAddTextbox plotAddTS plotAddXY plotArea plotBar plotBox plotClearLayout plotContour plotCustomLayout plotGetDefaults plotHist plotHistF plotHistP plotLayout plotLogLog plotLogX plotLogY plotOpenWindow plotPolar plotSave plotScatter plotSetAxesPen plotSetBar plotSetBarFill plotSetBarStacked plotSetBkdColor plotSetFill plotSetGrid plotSetLegend plotSetLineColor plotSetLineStyle plotSetLineSymbol plotSetLineThickness plotSetNewWindow plotSetTitle plotSetWhichYAxis plotSetXAxisShow plotSetXLabel plotSetXRange plotSetXTicInterval plotSetXTicLabel plotSetYAxisShow plotSetYLabel plotSetYRange plotSetZAxisShow plotSetZLabel plotSurface plotTS plotXY polar polychar polyeval polygamma polyint polymake polymat polymroot polymult polyroot pqgwin previousindex princomp printfm printfmt prodc psi putarray putf putvals pvCreate pvGetIndex pvGetParNames pvGetParVector pvLength pvList pvPack pvPacki pvPackm pvPackmi pvPacks pvPacksi pvPacksm pvPacksmi pvPutParVector pvTest pvUnpack QNewton QNewtonmt QNewtonmtControlCreate QNewtonmtOutCreate QNewtonSet QProg QProgmt QProgmtInCreate qqr qqre qqrep qr qre qrep qrsol qrtsol qtyr qtyre qtyrep quantile quantiled qyr qyre qyrep qz rank rankindx readr real reclassify reclassifyCuts recode recserar recsercp recserrc rerun rescale reshape rets rev rfft rffti rfftip rfftn rfftnp rfftp rndBernoulli rndBeta rndBinomial rndCauchy rndChiSquare rndCon rndCreateState rndExp rndGamma rndGeo rndGumbel rndHyperGeo rndi rndKMbeta rndKMgam rndKMi rndKMn rndKMnb rndKMp rndKMu rndKMvm rndLaplace rndLCbeta rndLCgam rndLCi rndLCn rndLCnb rndLCp rndLCu rndLCvm rndLogNorm rndMTu rndMVn rndMVt rndn rndnb rndNegBinomial rndp rndPoisson rndRayleigh rndStateSkip rndu rndvm rndWeibull rndWishart rotater round rows rowsf rref sampleData satostrC saved saveStruct savewind scale scale3d scalerr scalinfnanmiss scalmiss schtoc schur searchsourcepath seekr select selif seqa seqm setdif setdifsa setvars setvwrmode setwind shell shiftr sin singleindex sinh sleep solpd sortc sortcc sortd sorthc sorthcc sortind sortindc sortmc sortr sortrc spBiconjGradSol spChol spConjGradSol spCreate spDenseSubmat spDiagRvMat spEigv spEye spLDL spline spLU spNumNZE spOnes spreadSheetReadM spreadSheetReadSA spreadSheetWrite spScale spSubmat spToDense spTrTDense spTScalar spZeros sqpSolve sqpSolveMT sqpSolveMTControlCreate sqpSolveMTlagrangeCreate sqpSolveMToutCreate sqpSolveSet sqrt statements stdc stdsc stocv stof strcombine strindx strlen strput strrindx strsect strsplit strsplitPad strtodt strtof strtofcplx strtriml strtrimr strtrunc strtruncl strtruncpad strtruncr submat subscat substute subvec sumc sumr surface svd svd1 svd2 svdcusv svds svdusv sysstate tab tan tanh tempname time timedt timestr timeutc title tkf2eps tkf2ps tocart todaydt toeplitz token topolar trapchk trigamma trimr trunc type typecv typef union unionsa uniqindx uniqindxsa unique uniquesa upmat upmat1 upper utctodt utctodtv utrisol vals varCovMS varCovXS varget vargetl varmall varmares varput varputl vartypef vcm vcms vcx vcxs vec vech vecr vector vget view viewxyz vlist vnamecv volume vput vread vtypecv wait waitc walkindex where window writer xlabel xlsGetSheetCount xlsGetSheetSize xlsGetSheetTypes xlsMakeRange xlsReadM xlsReadSA xlsWrite xlsWriteM xlsWriteSA xpnd xtics xy xyz ylabel ytics zeros zeta zlabel ztics cdfEmpirical dot h5create h5open h5read h5readAttribute h5write h5writeAttribute ldl plotAddErrorBar plotAddSurface plotCDFEmpirical plotSetColormap plotSetContourLabels plotSetLegendFont plotSetTextInterpreter plotSetXTicCount plotSetYTicCount plotSetZLevels powerm strjoin sylvester strtrim",literal:"DB_AFTER_LAST_ROW DB_ALL_TABLES DB_BATCH_OPERATIONS DB_BEFORE_FIRST_ROW DB_BLOB DB_EVENT_NOTIFICATIONS DB_FINISH_QUERY DB_HIGH_PRECISION DB_LAST_INSERT_ID DB_LOW_PRECISION_DOUBLE DB_LOW_PRECISION_INT32 DB_LOW_PRECISION_INT64 DB_LOW_PRECISION_NUMBERS DB_MULTIPLE_RESULT_SETS DB_NAMED_PLACEHOLDERS DB_POSITIONAL_PLACEHOLDERS DB_PREPARED_QUERIES DB_QUERY_SIZE DB_SIMPLE_LOCKING DB_SYSTEM_TABLES DB_TABLES DB_TRANSACTIONS DB_UNICODE DB_VIEWS __STDIN __STDOUT __STDERR __FILE_DIR"},n=e.COMMENT("@","@"),i={className:"meta",begin:"#",end:"$",keywords:{keyword:"define definecs|10 undef ifdef ifndef iflight ifdllcall ifmac ifos2win ifunix else endif lineson linesoff srcfile srcline"},contains:[{begin:/\\\n/,relevance:0},{beginKeywords:"include",end:"$",keywords:{keyword:"include"},contains:[{className:"string",begin:'"',end:'"',illegal:"\\n"}]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,n]},o={begin:/\bstruct\s+/,end:/\s/,keywords:"struct",contains:[{className:"type",begin:e.UNDERSCORE_IDENT_RE,relevance:0}]},c=[{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,endsWithParent:!0,relevance:0,contains:[{className:"literal",begin:/\.\.\./},e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,n,o]}],s={className:"title",begin:e.UNDERSCORE_IDENT_RE,relevance:0},l=function(p,S,g){const T=e.inherit({className:"function",beginKeywords:p,end:S,excludeEnd:!0,contains:[].concat(c)},g||{});return T.contains.push(s),T.contains.push(e.C_NUMBER_MODE),T.contains.push(e.C_BLOCK_COMMENT_MODE),T.contains.push(n),T},_={className:"built_in",begin:"\\b("+t.built_in.split(" ").join("|")+")\\b"},d={className:"string",begin:'"',end:'"',contains:[e.BACKSLASH_ESCAPE],relevance:0},m={begin:e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,keywords:t,relevance:0,contains:[{beginKeywords:t.keyword},_,{className:"built_in",begin:e.UNDERSCORE_IDENT_RE,relevance:0}]},u={begin:/\(/,end:/\)/,relevance:0,keywords:{built_in:t.built_in,literal:t.literal},contains:[e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,n,_,m,d,"self"]};return m.contains.push(u),{name:"GAUSS",aliases:["gss"],case_insensitive:!0,keywords:t,illegal:/(\{[%#]|[%#]\}| <- )/,contains:[e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,n,d,i,{className:"keyword",begin:/\bexternal (matrix|string|array|sparse matrix|struct|proc|keyword|fn)/},l("proc keyword",";"),l("fn","="),{beginKeywords:"for threadfor",end:/;/,relevance:0,contains:[e.C_BLOCK_COMMENT_MODE,n,u]},{variants:[{begin:e.UNDERSCORE_IDENT_RE+"\\."+e.UNDERSCORE_IDENT_RE},{begin:e.UNDERSCORE_IDENT_RE+"\\s*="}],relevance:0},m,o]}}},2148:r=>{r.exports=function a(e){const c=e.inherit(e.C_NUMBER_MODE,{begin:"([-+]?((\\.\\d+)|(\\d+)(\\.\\d*)?))|"+e.C_NUMBER_RE}),s=[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.COMMENT(/\(/,/\)/),c,e.inherit(e.APOS_STRING_MODE,{illegal:null}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:"name",begin:"([G])([0-9]+\\.?[0-9]?)"},{className:"name",begin:"([M])([0-9]+\\.?[0-9]?)"},{className:"attr",begin:"(VC|VS|#)",end:"(\\d+)"},{className:"attr",begin:"(VZOFX|VZOFY|VZOFZ)"},{className:"built_in",begin:"(ATAN|ABS|ACOS|ASIN|SIN|COS|EXP|FIX|FUP|ROUND|LN|TAN)(\\[)",contains:[c],end:"\\]"},{className:"symbol",variants:[{begin:"N",end:"\\d+",illegal:"\\W"}]}];return{name:"G-code (ISO 6983)",aliases:["nc"],case_insensitive:!0,keywords:{$pattern:"[A-Z_][A-Z0-9_.]*",keyword:"IF DO WHILE ENDWHILE CALL ENDIF SUB ENDSUB GOTO REPEAT ENDREPEAT EQ LT GT NE GE LE OR XOR"},contains:[{className:"meta",begin:"%"},{className:"meta",begin:"([O])([0-9]+)"}].concat(s)}}},1333:r=>{r.exports=function a(e){return{name:"Gherkin",aliases:["feature"],keywords:"Feature Background Ability Business Need Scenario Scenarios Scenario Outline Scenario Template Examples Given And Then But When",contains:[{className:"symbol",begin:"\\*",relevance:0},{className:"meta",begin:"@[^@\\s]+"},{begin:"\\|",end:"\\|\\w*$",contains:[{className:"string",begin:"[^|]+"}]},{className:"variable",begin:"<",end:">"},e.HASH_COMMENT_MODE,{className:"string",begin:'"""',end:'"""'},e.QUOTE_STRING_MODE]}}},9579:r=>{r.exports=function a(e){return{name:"GLSL",keywords:{keyword:"break continue discard do else for if return while switch case default attribute binding buffer ccw centroid centroid varying coherent column_major const cw depth_any depth_greater depth_less depth_unchanged early_fragment_tests equal_spacing flat fractional_even_spacing fractional_odd_spacing highp in index inout invariant invocations isolines layout line_strip lines lines_adjacency local_size_x local_size_y local_size_z location lowp max_vertices mediump noperspective offset origin_upper_left out packed patch pixel_center_integer point_mode points precise precision quads r11f_g11f_b10f r16 r16_snorm r16f r16i r16ui r32f r32i r32ui r8 r8_snorm r8i r8ui readonly restrict rg16 rg16_snorm rg16f rg16i rg16ui rg32f rg32i rg32ui rg8 rg8_snorm rg8i rg8ui rgb10_a2 rgb10_a2ui rgba16 rgba16_snorm rgba16f rgba16i rgba16ui rgba32f rgba32i rgba32ui rgba8 rgba8_snorm rgba8i rgba8ui row_major sample shared smooth std140 std430 stream triangle_strip triangles triangles_adjacency uniform varying vertices volatile writeonly",type:"atomic_uint bool bvec2 bvec3 bvec4 dmat2 dmat2x2 dmat2x3 dmat2x4 dmat3 dmat3x2 dmat3x3 dmat3x4 dmat4 dmat4x2 dmat4x3 dmat4x4 double dvec2 dvec3 dvec4 float iimage1D iimage1DArray iimage2D iimage2DArray iimage2DMS iimage2DMSArray iimage2DRect iimage3D iimageBuffer iimageCube iimageCubeArray image1D image1DArray image2D image2DArray image2DMS image2DMSArray image2DRect image3D imageBuffer imageCube imageCubeArray int isampler1D isampler1DArray isampler2D isampler2DArray isampler2DMS isampler2DMSArray isampler2DRect isampler3D isamplerBuffer isamplerCube isamplerCubeArray ivec2 ivec3 ivec4 mat2 mat2x2 mat2x3 mat2x4 mat3 mat3x2 mat3x3 mat3x4 mat4 mat4x2 mat4x3 mat4x4 sampler1D sampler1DArray sampler1DArrayShadow sampler1DShadow sampler2D sampler2DArray sampler2DArrayShadow sampler2DMS sampler2DMSArray sampler2DRect sampler2DRectShadow sampler2DShadow sampler3D samplerBuffer samplerCube samplerCubeArray samplerCubeArrayShadow samplerCubeShadow image1D uimage1DArray uimage2D uimage2DArray uimage2DMS uimage2DMSArray uimage2DRect uimage3D uimageBuffer uimageCube uimageCubeArray uint usampler1D usampler1DArray usampler2D usampler2DArray usampler2DMS usampler2DMSArray usampler2DRect usampler3D samplerBuffer usamplerCube usamplerCubeArray uvec2 uvec3 uvec4 vec2 vec3 vec4 void",built_in:"gl_MaxAtomicCounterBindings gl_MaxAtomicCounterBufferSize gl_MaxClipDistances gl_MaxClipPlanes gl_MaxCombinedAtomicCounterBuffers gl_MaxCombinedAtomicCounters gl_MaxCombinedImageUniforms gl_MaxCombinedImageUnitsAndFragmentOutputs gl_MaxCombinedTextureImageUnits gl_MaxComputeAtomicCounterBuffers gl_MaxComputeAtomicCounters gl_MaxComputeImageUniforms gl_MaxComputeTextureImageUnits gl_MaxComputeUniformComponents gl_MaxComputeWorkGroupCount gl_MaxComputeWorkGroupSize gl_MaxDrawBuffers gl_MaxFragmentAtomicCounterBuffers gl_MaxFragmentAtomicCounters gl_MaxFragmentImageUniforms gl_MaxFragmentInputComponents gl_MaxFragmentInputVectors gl_MaxFragmentUniformComponents gl_MaxFragmentUniformVectors gl_MaxGeometryAtomicCounterBuffers gl_MaxGeometryAtomicCounters gl_MaxGeometryImageUniforms gl_MaxGeometryInputComponents gl_MaxGeometryOutputComponents gl_MaxGeometryOutputVertices gl_MaxGeometryTextureImageUnits gl_MaxGeometryTotalOutputComponents gl_MaxGeometryUniformComponents gl_MaxGeometryVaryingComponents gl_MaxImageSamples gl_MaxImageUnits gl_MaxLights gl_MaxPatchVertices gl_MaxProgramTexelOffset gl_MaxTessControlAtomicCounterBuffers gl_MaxTessControlAtomicCounters gl_MaxTessControlImageUniforms gl_MaxTessControlInputComponents gl_MaxTessControlOutputComponents gl_MaxTessControlTextureImageUnits gl_MaxTessControlTotalOutputComponents gl_MaxTessControlUniformComponents gl_MaxTessEvaluationAtomicCounterBuffers gl_MaxTessEvaluationAtomicCounters gl_MaxTessEvaluationImageUniforms gl_MaxTessEvaluationInputComponents gl_MaxTessEvaluationOutputComponents gl_MaxTessEvaluationTextureImageUnits gl_MaxTessEvaluationUniformComponents gl_MaxTessGenLevel gl_MaxTessPatchComponents gl_MaxTextureCoords gl_MaxTextureImageUnits gl_MaxTextureUnits gl_MaxVaryingComponents gl_MaxVaryingFloats gl_MaxVaryingVectors gl_MaxVertexAtomicCounterBuffers gl_MaxVertexAtomicCounters gl_MaxVertexAttribs gl_MaxVertexImageUniforms gl_MaxVertexOutputComponents gl_MaxVertexOutputVectors gl_MaxVertexTextureImageUnits gl_MaxVertexUniformComponents gl_MaxVertexUniformVectors gl_MaxViewports gl_MinProgramTexelOffset gl_BackColor gl_BackLightModelProduct gl_BackLightProduct gl_BackMaterial gl_BackSecondaryColor gl_ClipDistance gl_ClipPlane gl_ClipVertex gl_Color gl_DepthRange gl_EyePlaneQ gl_EyePlaneR gl_EyePlaneS gl_EyePlaneT gl_Fog gl_FogCoord gl_FogFragCoord gl_FragColor gl_FragCoord gl_FragData gl_FragDepth gl_FrontColor gl_FrontFacing gl_FrontLightModelProduct gl_FrontLightProduct gl_FrontMaterial gl_FrontSecondaryColor gl_GlobalInvocationID gl_InstanceID gl_InvocationID gl_Layer gl_LightModel gl_LightSource gl_LocalInvocationID gl_LocalInvocationIndex gl_ModelViewMatrix gl_ModelViewMatrixInverse gl_ModelViewMatrixInverseTranspose gl_ModelViewMatrixTranspose gl_ModelViewProjectionMatrix gl_ModelViewProjectionMatrixInverse gl_ModelViewProjectionMatrixInverseTranspose gl_ModelViewProjectionMatrixTranspose gl_MultiTexCoord0 gl_MultiTexCoord1 gl_MultiTexCoord2 gl_MultiTexCoord3 gl_MultiTexCoord4 gl_MultiTexCoord5 gl_MultiTexCoord6 gl_MultiTexCoord7 gl_Normal gl_NormalMatrix gl_NormalScale gl_NumSamples gl_NumWorkGroups gl_ObjectPlaneQ gl_ObjectPlaneR gl_ObjectPlaneS gl_ObjectPlaneT gl_PatchVerticesIn gl_Point gl_PointCoord gl_PointSize gl_Position gl_PrimitiveID gl_PrimitiveIDIn gl_ProjectionMatrix gl_ProjectionMatrixInverse gl_ProjectionMatrixInverseTranspose gl_ProjectionMatrixTranspose gl_SampleID gl_SampleMask gl_SampleMaskIn gl_SamplePosition gl_SecondaryColor gl_TessCoord gl_TessLevelInner gl_TessLevelOuter gl_TexCoord gl_TextureEnvColor gl_TextureMatrix gl_TextureMatrixInverse gl_TextureMatrixInverseTranspose gl_TextureMatrixTranspose gl_Vertex gl_VertexID gl_ViewportIndex gl_WorkGroupID gl_WorkGroupSize gl_in gl_out EmitStreamVertex EmitVertex EndPrimitive EndStreamPrimitive abs acos acosh all any asin asinh atan atanh atomicAdd atomicAnd atomicCompSwap atomicCounter atomicCounterDecrement atomicCounterIncrement atomicExchange atomicMax atomicMin atomicOr atomicXor barrier bitCount bitfieldExtract bitfieldInsert bitfieldReverse ceil clamp cos cosh cross dFdx dFdy degrees determinant distance dot equal exp exp2 faceforward findLSB findMSB floatBitsToInt floatBitsToUint floor fma fract frexp ftransform fwidth greaterThan greaterThanEqual groupMemoryBarrier imageAtomicAdd imageAtomicAnd imageAtomicCompSwap imageAtomicExchange imageAtomicMax imageAtomicMin imageAtomicOr imageAtomicXor imageLoad imageSize imageStore imulExtended intBitsToFloat interpolateAtCentroid interpolateAtOffset interpolateAtSample inverse inversesqrt isinf isnan ldexp length lessThan lessThanEqual log log2 matrixCompMult max memoryBarrier memoryBarrierAtomicCounter memoryBarrierBuffer memoryBarrierImage memoryBarrierShared min mix mod modf noise1 noise2 noise3 noise4 normalize not notEqual outerProduct packDouble2x32 packHalf2x16 packSnorm2x16 packSnorm4x8 packUnorm2x16 packUnorm4x8 pow radians reflect refract round roundEven shadow1D shadow1DLod shadow1DProj shadow1DProjLod shadow2D shadow2DLod shadow2DProj shadow2DProjLod sign sin sinh smoothstep sqrt step tan tanh texelFetch texelFetchOffset texture texture1D texture1DLod texture1DProj texture1DProjLod texture2D texture2DLod texture2DProj texture2DProjLod texture3D texture3DLod texture3DProj texture3DProjLod textureCube textureCubeLod textureGather textureGatherOffset textureGatherOffsets textureGrad textureGradOffset textureLod textureLodOffset textureOffset textureProj textureProjGrad textureProjGradOffset textureProjLod textureProjLodOffset textureProjOffset textureQueryLevels textureQueryLod textureSize transpose trunc uaddCarry uintBitsToFloat umulExtended unpackDouble2x32 unpackHalf2x16 unpackSnorm2x16 unpackSnorm4x8 unpackUnorm2x16 unpackUnorm4x8 usubBorrow",literal:"true false"},illegal:'"',contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.C_NUMBER_MODE,{className:"meta",begin:"#",end:"$"}]}}},3189:r=>{r.exports=function a(e){return{name:"GML",case_insensitive:!1,keywords:{keyword:["#endregion","#macro","#region","and","begin","break","case","constructor","continue","default","delete","div","do","else","end","enum","exit","for","function","globalvar","if","mod","not","or","repeat","return","switch","then","until","var","while","with","xor"],built_in:["abs","achievement_available","achievement_event","achievement_get_challenges","achievement_get_info","achievement_get_pic","achievement_increment","achievement_load_friends","achievement_load_leaderboard","achievement_load_progress","achievement_login","achievement_login_status","achievement_logout","achievement_post","achievement_post_score","achievement_reset","achievement_send_challenge","achievement_show","achievement_show_achievements","achievement_show_challenge_notifications","achievement_show_leaderboards","action_inherited","action_kill_object","ads_disable","ads_enable","ads_engagement_active","ads_engagement_available","ads_engagement_launch","ads_event","ads_event_preload","ads_get_display_height","ads_get_display_width","ads_interstitial_available","ads_interstitial_display","ads_move","ads_set_reward_callback","ads_setup","alarm_get","alarm_set","analytics_event","analytics_event_ext","angle_difference","ansi_char","application_get_position","application_surface_draw_enable","application_surface_enable","application_surface_is_enabled","arccos","arcsin","arctan","arctan2","array_copy","array_create","array_delete","array_equals","array_height_2d","array_insert","array_length","array_length_1d","array_length_2d","array_pop","array_push","array_resize","array_sort","asset_get_index","asset_get_type","audio_channel_num","audio_create_buffer_sound","audio_create_play_queue","audio_create_stream","audio_create_sync_group","audio_debug","audio_destroy_stream","audio_destroy_sync_group","audio_emitter_create","audio_emitter_exists","audio_emitter_falloff","audio_emitter_free","audio_emitter_gain","audio_emitter_get_gain","audio_emitter_get_listener_mask","audio_emitter_get_pitch","audio_emitter_get_vx","audio_emitter_get_vy","audio_emitter_get_vz","audio_emitter_get_x","audio_emitter_get_y","audio_emitter_get_z","audio_emitter_pitch","audio_emitter_position","audio_emitter_set_listener_mask","audio_emitter_velocity","audio_exists","audio_falloff_set_model","audio_free_buffer_sound","audio_free_play_queue","audio_get_listener_count","audio_get_listener_info","audio_get_listener_mask","audio_get_master_gain","audio_get_name","audio_get_recorder_count","audio_get_recorder_info","audio_get_type","audio_group_is_loaded","audio_group_load","audio_group_load_progress","audio_group_name","audio_group_set_gain","audio_group_stop_all","audio_group_unload","audio_is_paused","audio_is_playing","audio_listener_get_data","audio_listener_orientation","audio_listener_position","audio_listener_set_orientation","audio_listener_set_position","audio_listener_set_velocity","audio_listener_velocity","audio_master_gain","audio_music_gain","audio_music_is_playing","audio_pause_all","audio_pause_music","audio_pause_sound","audio_pause_sync_group","audio_play_in_sync_group","audio_play_music","audio_play_sound","audio_play_sound_at","audio_play_sound_on","audio_queue_sound","audio_resume_all","audio_resume_music","audio_resume_sound","audio_resume_sync_group","audio_set_listener_mask","audio_set_master_gain","audio_sound_gain","audio_sound_get_gain","audio_sound_get_listener_mask","audio_sound_get_pitch","audio_sound_get_track_position","audio_sound_length","audio_sound_pitch","audio_sound_set_listener_mask","audio_sound_set_track_position","audio_start_recording","audio_start_sync_group","audio_stop_all","audio_stop_music","audio_stop_recording","audio_stop_sound","audio_stop_sync_group","audio_sync_group_debug","audio_sync_group_get_track_pos","audio_sync_group_is_playing","audio_system","background_get_height","background_get_width","base64_decode","base64_encode","browser_input_capture","buffer_async_group_begin","buffer_async_group_end","buffer_async_group_option","buffer_base64_decode","buffer_base64_decode_ext","buffer_base64_encode","buffer_copy","buffer_copy_from_vertex_buffer","buffer_create","buffer_create_from_vertex_buffer","buffer_create_from_vertex_buffer_ext","buffer_delete","buffer_exists","buffer_fill","buffer_get_address","buffer_get_alignment","buffer_get_size","buffer_get_surface","buffer_get_type","buffer_load","buffer_load_async","buffer_load_ext","buffer_load_partial","buffer_md5","buffer_peek","buffer_poke","buffer_read","buffer_resize","buffer_save","buffer_save_async","buffer_save_ext","buffer_seek","buffer_set_surface","buffer_sha1","buffer_sizeof","buffer_tell","buffer_write","camera_apply","camera_create","camera_create_view","camera_destroy","camera_get_active","camera_get_begin_script","camera_get_default","camera_get_end_script","camera_get_proj_mat","camera_get_update_script","camera_get_view_angle","camera_get_view_border_x","camera_get_view_border_y","camera_get_view_height","camera_get_view_mat","camera_get_view_speed_x","camera_get_view_speed_y","camera_get_view_target","camera_get_view_width","camera_get_view_x","camera_get_view_y","camera_set_begin_script","camera_set_default","camera_set_end_script","camera_set_proj_mat","camera_set_update_script","camera_set_view_angle","camera_set_view_border","camera_set_view_mat","camera_set_view_pos","camera_set_view_size","camera_set_view_speed","camera_set_view_target","ceil","choose","chr","clamp","clickable_add","clickable_add_ext","clickable_change","clickable_change_ext","clickable_delete","clickable_exists","clickable_set_style","clipboard_get_text","clipboard_has_text","clipboard_set_text","cloud_file_save","cloud_string_save","cloud_synchronise","code_is_compiled","collision_circle","collision_circle_list","collision_ellipse","collision_ellipse_list","collision_line","collision_line_list","collision_point","collision_point_list","collision_rectangle","collision_rectangle_list","color_get_blue","color_get_green","color_get_hue","color_get_red","color_get_saturation","color_get_value","colour_get_blue","colour_get_green","colour_get_hue","colour_get_red","colour_get_saturation","colour_get_value","cos","darccos","darcsin","darctan","darctan2","date_compare_date","date_compare_datetime","date_compare_time","date_create_datetime","date_current_datetime","date_date_of","date_date_string","date_datetime_string","date_day_span","date_days_in_month","date_days_in_year","date_get_day","date_get_day_of_year","date_get_hour","date_get_hour_of_year","date_get_minute","date_get_minute_of_year","date_get_month","date_get_second","date_get_second_of_year","date_get_timezone","date_get_week","date_get_weekday","date_get_year","date_hour_span","date_inc_day","date_inc_hour","date_inc_minute","date_inc_month","date_inc_second","date_inc_week","date_inc_year","date_is_today","date_leap_year","date_minute_span","date_month_span","date_second_span","date_set_timezone","date_time_of","date_time_string","date_valid_datetime","date_week_span","date_year_span","dcos","debug_event","debug_get_callstack","degtorad","device_get_tilt_x","device_get_tilt_y","device_get_tilt_z","device_is_keypad_open","device_mouse_check_button","device_mouse_check_button_pressed","device_mouse_check_button_released","device_mouse_dbclick_enable","device_mouse_raw_x","device_mouse_raw_y","device_mouse_x","device_mouse_x_to_gui","device_mouse_y","device_mouse_y_to_gui","directory_create","directory_destroy","directory_exists","display_get_dpi_x","display_get_dpi_y","display_get_gui_height","display_get_gui_width","display_get_height","display_get_orientation","display_get_sleep_margin","display_get_timing_method","display_get_width","display_mouse_get_x","display_mouse_get_y","display_mouse_set","display_reset","display_set_gui_maximise","display_set_gui_maximize","display_set_gui_size","display_set_sleep_margin","display_set_timing_method","display_set_ui_visibility","distance_to_object","distance_to_point","dot_product","dot_product_3d","dot_product_3d_normalised","dot_product_3d_normalized","dot_product_normalised","dot_product_normalized","draw_arrow","draw_background","draw_background_ext","draw_background_part_ext","draw_background_tiled","draw_button","draw_circle","draw_circle_color","draw_circle_colour","draw_clear","draw_clear_alpha","draw_ellipse","draw_ellipse_color","draw_ellipse_colour","draw_enable_alphablend","draw_enable_drawevent","draw_enable_swf_aa","draw_flush","draw_get_alpha","draw_get_color","draw_get_colour","draw_get_lighting","draw_get_swf_aa_level","draw_getpixel","draw_getpixel_ext","draw_healthbar","draw_highscore","draw_light_define_ambient","draw_light_define_direction","draw_light_define_point","draw_light_enable","draw_light_get","draw_light_get_ambient","draw_line","draw_line_color","draw_line_colour","draw_line_width","draw_line_width_color","draw_line_width_colour","draw_path","draw_point","draw_point_color","draw_point_colour","draw_primitive_begin","draw_primitive_begin_texture","draw_primitive_end","draw_rectangle","draw_rectangle_color","draw_rectangle_colour","draw_roundrect","draw_roundrect_color","draw_roundrect_color_ext","draw_roundrect_colour","draw_roundrect_colour_ext","draw_roundrect_ext","draw_self","draw_set_alpha","draw_set_alpha_test","draw_set_alpha_test_ref_value","draw_set_blend_mode","draw_set_blend_mode_ext","draw_set_circle_precision","draw_set_color","draw_set_color_write_enable","draw_set_colour","draw_set_font","draw_set_halign","draw_set_lighting","draw_set_swf_aa_level","draw_set_valign","draw_skeleton","draw_skeleton_collision","draw_skeleton_instance","draw_skeleton_time","draw_sprite","draw_sprite_ext","draw_sprite_general","draw_sprite_part","draw_sprite_part_ext","draw_sprite_pos","draw_sprite_stretched","draw_sprite_stretched_ext","draw_sprite_tiled","draw_sprite_tiled_ext","draw_surface","draw_surface_ext","draw_surface_general","draw_surface_part","draw_surface_part_ext","draw_surface_stretched","draw_surface_stretched_ext","draw_surface_tiled","draw_surface_tiled_ext","draw_text","draw_text_color","draw_text_colour","draw_text_ext","draw_text_ext_color","draw_text_ext_colour","draw_text_ext_transformed","draw_text_ext_transformed_color","draw_text_ext_transformed_colour","draw_text_transformed","draw_text_transformed_color","draw_text_transformed_colour","draw_texture_flush","draw_tile","draw_tilemap","draw_triangle","draw_triangle_color","draw_triangle_colour","draw_vertex","draw_vertex_color","draw_vertex_colour","draw_vertex_texture","draw_vertex_texture_color","draw_vertex_texture_colour","ds_exists","ds_grid_add","ds_grid_add_disk","ds_grid_add_grid_region","ds_grid_add_region","ds_grid_clear","ds_grid_copy","ds_grid_create","ds_grid_destroy","ds_grid_get","ds_grid_get_disk_max","ds_grid_get_disk_mean","ds_grid_get_disk_min","ds_grid_get_disk_sum","ds_grid_get_max","ds_grid_get_mean","ds_grid_get_min","ds_grid_get_sum","ds_grid_height","ds_grid_multiply","ds_grid_multiply_disk","ds_grid_multiply_grid_region","ds_grid_multiply_region","ds_grid_read","ds_grid_resize","ds_grid_set","ds_grid_set_disk","ds_grid_set_grid_region","ds_grid_set_region","ds_grid_shuffle","ds_grid_sort","ds_grid_value_disk_exists","ds_grid_value_disk_x","ds_grid_value_disk_y","ds_grid_value_exists","ds_grid_value_x","ds_grid_value_y","ds_grid_width","ds_grid_write","ds_list_add","ds_list_clear","ds_list_copy","ds_list_create","ds_list_delete","ds_list_destroy","ds_list_empty","ds_list_find_index","ds_list_find_value","ds_list_insert","ds_list_mark_as_list","ds_list_mark_as_map","ds_list_read","ds_list_replace","ds_list_set","ds_list_shuffle","ds_list_size","ds_list_sort","ds_list_write","ds_map_add","ds_map_add_list","ds_map_add_map","ds_map_clear","ds_map_copy","ds_map_create","ds_map_delete","ds_map_destroy","ds_map_empty","ds_map_exists","ds_map_find_first","ds_map_find_last","ds_map_find_next","ds_map_find_previous","ds_map_find_value","ds_map_read","ds_map_replace","ds_map_replace_list","ds_map_replace_map","ds_map_secure_load","ds_map_secure_load_buffer","ds_map_secure_save","ds_map_secure_save_buffer","ds_map_set","ds_map_size","ds_map_write","ds_priority_add","ds_priority_change_priority","ds_priority_clear","ds_priority_copy","ds_priority_create","ds_priority_delete_max","ds_priority_delete_min","ds_priority_delete_value","ds_priority_destroy","ds_priority_empty","ds_priority_find_max","ds_priority_find_min","ds_priority_find_priority","ds_priority_read","ds_priority_size","ds_priority_write","ds_queue_clear","ds_queue_copy","ds_queue_create","ds_queue_dequeue","ds_queue_destroy","ds_queue_empty","ds_queue_enqueue","ds_queue_head","ds_queue_read","ds_queue_size","ds_queue_tail","ds_queue_write","ds_set_precision","ds_stack_clear","ds_stack_copy","ds_stack_create","ds_stack_destroy","ds_stack_empty","ds_stack_pop","ds_stack_push","ds_stack_read","ds_stack_size","ds_stack_top","ds_stack_write","dsin","dtan","effect_clear","effect_create_above","effect_create_below","environment_get_variable","event_inherited","event_perform","event_perform_object","event_user","exp","external_call","external_define","external_free","facebook_accesstoken","facebook_check_permission","facebook_dialog","facebook_graph_request","facebook_init","facebook_launch_offerwall","facebook_login","facebook_logout","facebook_post_message","facebook_request_publish_permissions","facebook_request_read_permissions","facebook_send_invite","facebook_status","facebook_user_id","file_attributes","file_bin_close","file_bin_open","file_bin_position","file_bin_read_byte","file_bin_rewrite","file_bin_seek","file_bin_size","file_bin_write_byte","file_copy","file_delete","file_exists","file_find_close","file_find_first","file_find_next","file_rename","file_text_close","file_text_eof","file_text_eoln","file_text_open_append","file_text_open_from_string","file_text_open_read","file_text_open_write","file_text_read_real","file_text_read_string","file_text_readln","file_text_write_real","file_text_write_string","file_text_writeln","filename_change_ext","filename_dir","filename_drive","filename_ext","filename_name","filename_path","floor","font_add","font_add_enable_aa","font_add_get_enable_aa","font_add_sprite","font_add_sprite_ext","font_delete","font_exists","font_get_bold","font_get_first","font_get_fontname","font_get_italic","font_get_last","font_get_name","font_get_size","font_get_texture","font_get_uvs","font_replace","font_replace_sprite","font_replace_sprite_ext","font_set_cache_size","font_texture_page_size","frac","game_end","game_get_speed","game_load","game_load_buffer","game_restart","game_save","game_save_buffer","game_set_speed","gamepad_axis_count","gamepad_axis_value","gamepad_button_check","gamepad_button_check_pressed","gamepad_button_check_released","gamepad_button_count","gamepad_button_value","gamepad_get_axis_deadzone","gamepad_get_button_threshold","gamepad_get_description","gamepad_get_device_count","gamepad_is_connected","gamepad_is_supported","gamepad_set_axis_deadzone","gamepad_set_button_threshold","gamepad_set_color","gamepad_set_colour","gamepad_set_vibration","gesture_double_tap_distance","gesture_double_tap_time","gesture_drag_distance","gesture_drag_time","gesture_flick_speed","gesture_get_double_tap_distance","gesture_get_double_tap_time","gesture_get_drag_distance","gesture_get_drag_time","gesture_get_flick_speed","gesture_get_pinch_angle_away","gesture_get_pinch_angle_towards","gesture_get_pinch_distance","gesture_get_rotate_angle","gesture_get_rotate_time","gesture_get_tap_count","gesture_pinch_angle_away","gesture_pinch_angle_towards","gesture_pinch_distance","gesture_rotate_angle","gesture_rotate_time","gesture_tap_count","get_integer","get_integer_async","get_login_async","get_open_filename","get_open_filename_ext","get_save_filename","get_save_filename_ext","get_string","get_string_async","get_timer","gml_pragma","gml_release_mode","gpu_get_alphatestenable","gpu_get_alphatestfunc","gpu_get_alphatestref","gpu_get_blendenable","gpu_get_blendmode","gpu_get_blendmode_dest","gpu_get_blendmode_destalpha","gpu_get_blendmode_ext","gpu_get_blendmode_ext_sepalpha","gpu_get_blendmode_src","gpu_get_blendmode_srcalpha","gpu_get_colorwriteenable","gpu_get_colourwriteenable","gpu_get_cullmode","gpu_get_fog","gpu_get_lightingenable","gpu_get_state","gpu_get_tex_filter","gpu_get_tex_filter_ext","gpu_get_tex_max_aniso","gpu_get_tex_max_aniso_ext","gpu_get_tex_max_mip","gpu_get_tex_max_mip_ext","gpu_get_tex_min_mip","gpu_get_tex_min_mip_ext","gpu_get_tex_mip_bias","gpu_get_tex_mip_bias_ext","gpu_get_tex_mip_enable","gpu_get_tex_mip_enable_ext","gpu_get_tex_mip_filter","gpu_get_tex_mip_filter_ext","gpu_get_tex_repeat","gpu_get_tex_repeat_ext","gpu_get_texfilter","gpu_get_texfilter_ext","gpu_get_texrepeat","gpu_get_texrepeat_ext","gpu_get_zfunc","gpu_get_ztestenable","gpu_get_zwriteenable","gpu_pop_state","gpu_push_state","gpu_set_alphatestenable","gpu_set_alphatestfunc","gpu_set_alphatestref","gpu_set_blendenable","gpu_set_blendmode","gpu_set_blendmode_ext","gpu_set_blendmode_ext_sepalpha","gpu_set_colorwriteenable","gpu_set_colourwriteenable","gpu_set_cullmode","gpu_set_fog","gpu_set_lightingenable","gpu_set_state","gpu_set_tex_filter","gpu_set_tex_filter_ext","gpu_set_tex_max_aniso","gpu_set_tex_max_aniso_ext","gpu_set_tex_max_mip","gpu_set_tex_max_mip_ext","gpu_set_tex_min_mip","gpu_set_tex_min_mip_ext","gpu_set_tex_mip_bias","gpu_set_tex_mip_bias_ext","gpu_set_tex_mip_enable","gpu_set_tex_mip_enable_ext","gpu_set_tex_mip_filter","gpu_set_tex_mip_filter_ext","gpu_set_tex_repeat","gpu_set_tex_repeat_ext","gpu_set_texfilter","gpu_set_texfilter_ext","gpu_set_texrepeat","gpu_set_texrepeat_ext","gpu_set_zfunc","gpu_set_ztestenable","gpu_set_zwriteenable","highscore_add","highscore_clear","highscore_name","highscore_value","http_get","http_get_file","http_post_string","http_request","iap_acquire","iap_activate","iap_consume","iap_enumerate_products","iap_product_details","iap_purchase_details","iap_restore_all","iap_status","ini_close","ini_key_delete","ini_key_exists","ini_open","ini_open_from_string","ini_read_real","ini_read_string","ini_section_delete","ini_section_exists","ini_write_real","ini_write_string","instance_activate_all","instance_activate_layer","instance_activate_object","instance_activate_region","instance_change","instance_copy","instance_create","instance_create_depth","instance_create_layer","instance_deactivate_all","instance_deactivate_layer","instance_deactivate_object","instance_deactivate_region","instance_destroy","instance_exists","instance_find","instance_furthest","instance_id_get","instance_nearest","instance_number","instance_place","instance_place_list","instance_position","instance_position_list","int64","io_clear","irandom","irandom_range","is_array","is_bool","is_infinity","is_int32","is_int64","is_matrix","is_method","is_nan","is_numeric","is_ptr","is_real","is_string","is_struct","is_undefined","is_vec3","is_vec4","json_decode","json_encode","keyboard_check","keyboard_check_direct","keyboard_check_pressed","keyboard_check_released","keyboard_clear","keyboard_get_map","keyboard_get_numlock","keyboard_key_press","keyboard_key_release","keyboard_set_map","keyboard_set_numlock","keyboard_unset_map","keyboard_virtual_height","keyboard_virtual_hide","keyboard_virtual_show","keyboard_virtual_status","layer_add_instance","layer_background_alpha","layer_background_blend","layer_background_change","layer_background_create","layer_background_destroy","layer_background_exists","layer_background_get_alpha","layer_background_get_blend","layer_background_get_htiled","layer_background_get_id","layer_background_get_index","layer_background_get_speed","layer_background_get_sprite","layer_background_get_stretch","layer_background_get_visible","layer_background_get_vtiled","layer_background_get_xscale","layer_background_get_yscale","layer_background_htiled","layer_background_index","layer_background_speed","layer_background_sprite","layer_background_stretch","layer_background_visible","layer_background_vtiled","layer_background_xscale","layer_background_yscale","layer_create","layer_depth","layer_destroy","layer_destroy_instances","layer_element_move","layer_exists","layer_force_draw_depth","layer_get_all","layer_get_all_elements","layer_get_depth","layer_get_element_layer","layer_get_element_type","layer_get_forced_depth","layer_get_hspeed","layer_get_id","layer_get_id_at_depth","layer_get_name","layer_get_script_begin","layer_get_script_end","layer_get_shader","layer_get_target_room","layer_get_visible","layer_get_vspeed","layer_get_x","layer_get_y","layer_has_instance","layer_hspeed","layer_instance_get_instance","layer_is_draw_depth_forced","layer_reset_target_room","layer_script_begin","layer_script_end","layer_set_target_room","layer_set_visible","layer_shader","layer_sprite_alpha","layer_sprite_angle","layer_sprite_blend","layer_sprite_change","layer_sprite_create","layer_sprite_destroy","layer_sprite_exists","layer_sprite_get_alpha","layer_sprite_get_angle","layer_sprite_get_blend","layer_sprite_get_id","layer_sprite_get_index","layer_sprite_get_speed","layer_sprite_get_sprite","layer_sprite_get_x","layer_sprite_get_xscale","layer_sprite_get_y","layer_sprite_get_yscale","layer_sprite_index","layer_sprite_speed","layer_sprite_x","layer_sprite_xscale","layer_sprite_y","layer_sprite_yscale","layer_tile_alpha","layer_tile_blend","layer_tile_change","layer_tile_create","layer_tile_destroy","layer_tile_exists","layer_tile_get_alpha","layer_tile_get_blend","layer_tile_get_region","layer_tile_get_sprite","layer_tile_get_visible","layer_tile_get_x","layer_tile_get_xscale","layer_tile_get_y","layer_tile_get_yscale","layer_tile_region","layer_tile_visible","layer_tile_x","layer_tile_xscale","layer_tile_y","layer_tile_yscale","layer_tilemap_create","layer_tilemap_destroy","layer_tilemap_exists","layer_tilemap_get_id","layer_vspeed","layer_x","layer_y","lengthdir_x","lengthdir_y","lerp","ln","load_csv","log10","log2","logn","make_color_hsv","make_color_rgb","make_colour_hsv","make_colour_rgb","math_get_epsilon","math_set_epsilon","matrix_build","matrix_build_identity","matrix_build_lookat","matrix_build_projection_ortho","matrix_build_projection_perspective","matrix_build_projection_perspective_fov","matrix_get","matrix_multiply","matrix_set","matrix_stack_clear","matrix_stack_is_empty","matrix_stack_multiply","matrix_stack_pop","matrix_stack_push","matrix_stack_set","matrix_stack_top","matrix_transform_vertex","max","md5_file","md5_string_unicode","md5_string_utf8","mean","median","merge_color","merge_colour","min","motion_add","motion_set","mouse_check_button","mouse_check_button_pressed","mouse_check_button_released","mouse_clear","mouse_wheel_down","mouse_wheel_up","move_bounce_all","move_bounce_solid","move_contact_all","move_contact_solid","move_outside_all","move_outside_solid","move_random","move_snap","move_towards_point","move_wrap","mp_grid_add_cell","mp_grid_add_instances","mp_grid_add_rectangle","mp_grid_clear_all","mp_grid_clear_cell","mp_grid_clear_rectangle","mp_grid_create","mp_grid_destroy","mp_grid_draw","mp_grid_get_cell","mp_grid_path","mp_grid_to_ds_grid","mp_linear_path","mp_linear_path_object","mp_linear_step","mp_linear_step_object","mp_potential_path","mp_potential_path_object","mp_potential_settings","mp_potential_step","mp_potential_step_object","network_connect","network_connect_raw","network_create_server","network_create_server_raw","network_create_socket","network_create_socket_ext","network_destroy","network_resolve","network_send_broadcast","network_send_packet","network_send_raw","network_send_udp","network_send_udp_raw","network_set_config","network_set_timeout","object_exists","object_get_depth","object_get_mask","object_get_name","object_get_parent","object_get_persistent","object_get_physics","object_get_solid","object_get_sprite","object_get_visible","object_is_ancestor","object_set_mask","object_set_persistent","object_set_solid","object_set_sprite","object_set_visible","ord","os_get_config","os_get_info","os_get_language","os_get_region","os_is_network_connected","os_is_paused","os_lock_orientation","os_powersave_enable","parameter_count","parameter_string","part_emitter_burst","part_emitter_clear","part_emitter_create","part_emitter_destroy","part_emitter_destroy_all","part_emitter_exists","part_emitter_region","part_emitter_stream","part_particles_clear","part_particles_count","part_particles_create","part_particles_create_color","part_particles_create_colour","part_system_automatic_draw","part_system_automatic_update","part_system_clear","part_system_create","part_system_create_layer","part_system_depth","part_system_destroy","part_system_draw_order","part_system_drawit","part_system_exists","part_system_get_layer","part_system_layer","part_system_position","part_system_update","part_type_alpha1","part_type_alpha2","part_type_alpha3","part_type_blend","part_type_clear","part_type_color1","part_type_color2","part_type_color3","part_type_color_hsv","part_type_color_mix","part_type_color_rgb","part_type_colour1","part_type_colour2","part_type_colour3","part_type_colour_hsv","part_type_colour_mix","part_type_colour_rgb","part_type_create","part_type_death","part_type_destroy","part_type_direction","part_type_exists","part_type_gravity","part_type_life","part_type_orientation","part_type_scale","part_type_shape","part_type_size","part_type_speed","part_type_sprite","part_type_step","path_add","path_add_point","path_append","path_assign","path_change_point","path_clear_points","path_delete","path_delete_point","path_duplicate","path_end","path_exists","path_flip","path_get_closed","path_get_kind","path_get_length","path_get_name","path_get_number","path_get_point_speed","path_get_point_x","path_get_point_y","path_get_precision","path_get_speed","path_get_time","path_get_x","path_get_y","path_insert_point","path_mirror","path_rescale","path_reverse","path_rotate","path_set_closed","path_set_kind","path_set_precision","path_shift","path_start","physics_apply_angular_impulse","physics_apply_force","physics_apply_impulse","physics_apply_local_force","physics_apply_local_impulse","physics_apply_torque","physics_draw_debug","physics_fixture_add_point","physics_fixture_bind","physics_fixture_bind_ext","physics_fixture_create","physics_fixture_delete","physics_fixture_set_angular_damping","physics_fixture_set_awake","physics_fixture_set_box_shape","physics_fixture_set_chain_shape","physics_fixture_set_circle_shape","physics_fixture_set_collision_group","physics_fixture_set_density","physics_fixture_set_edge_shape","physics_fixture_set_friction","physics_fixture_set_kinematic","physics_fixture_set_linear_damping","physics_fixture_set_polygon_shape","physics_fixture_set_restitution","physics_fixture_set_sensor","physics_get_density","physics_get_friction","physics_get_restitution","physics_joint_delete","physics_joint_distance_create","physics_joint_enable_motor","physics_joint_friction_create","physics_joint_gear_create","physics_joint_get_value","physics_joint_prismatic_create","physics_joint_pulley_create","physics_joint_revolute_create","physics_joint_rope_create","physics_joint_set_value","physics_joint_weld_create","physics_joint_wheel_create","physics_mass_properties","physics_particle_count","physics_particle_create","physics_particle_delete","physics_particle_delete_region_box","physics_particle_delete_region_circle","physics_particle_delete_region_poly","physics_particle_draw","physics_particle_draw_ext","physics_particle_get_damping","physics_particle_get_data","physics_particle_get_data_particle","physics_particle_get_density","physics_particle_get_gravity_scale","physics_particle_get_group_flags","physics_particle_get_max_count","physics_particle_get_radius","physics_particle_group_add_point","physics_particle_group_begin","physics_particle_group_box","physics_particle_group_circle","physics_particle_group_count","physics_particle_group_delete","physics_particle_group_end","physics_particle_group_get_ang_vel","physics_particle_group_get_angle","physics_particle_group_get_centre_x","physics_particle_group_get_centre_y","physics_particle_group_get_data","physics_particle_group_get_inertia","physics_particle_group_get_mass","physics_particle_group_get_vel_x","physics_particle_group_get_vel_y","physics_particle_group_get_x","physics_particle_group_get_y","physics_particle_group_join","physics_particle_group_polygon","physics_particle_set_category_flags","physics_particle_set_damping","physics_particle_set_density","physics_particle_set_flags","physics_particle_set_gravity_scale","physics_particle_set_group_flags","physics_particle_set_max_count","physics_particle_set_radius","physics_pause_enable","physics_remove_fixture","physics_set_density","physics_set_friction","physics_set_restitution","physics_test_overlap","physics_world_create","physics_world_draw_debug","physics_world_gravity","physics_world_update_iterations","physics_world_update_speed","place_empty","place_free","place_meeting","place_snapped","point_direction","point_distance","point_distance_3d","point_in_circle","point_in_rectangle","point_in_triangle","position_change","position_destroy","position_empty","position_meeting","power","ptr","push_cancel_local_notification","push_get_first_local_notification","push_get_next_local_notification","push_local_notification","radtodeg","random","random_get_seed","random_range","random_set_seed","randomise","randomize","real","rectangle_in_circle","rectangle_in_rectangle","rectangle_in_triangle","room_add","room_assign","room_duplicate","room_exists","room_get_camera","room_get_name","room_get_viewport","room_goto","room_goto_next","room_goto_previous","room_instance_add","room_instance_clear","room_next","room_previous","room_restart","room_set_background_color","room_set_background_colour","room_set_camera","room_set_height","room_set_persistent","room_set_view","room_set_view_enabled","room_set_viewport","room_set_width","round","screen_save","screen_save_part","script_execute","script_exists","script_get_name","sha1_file","sha1_string_unicode","sha1_string_utf8","shader_current","shader_enable_corner_id","shader_get_name","shader_get_sampler_index","shader_get_uniform","shader_is_compiled","shader_reset","shader_set","shader_set_uniform_f","shader_set_uniform_f_array","shader_set_uniform_i","shader_set_uniform_i_array","shader_set_uniform_matrix","shader_set_uniform_matrix_array","shaders_are_supported","shop_leave_rating","show_debug_message","show_debug_overlay","show_error","show_message","show_message_async","show_question","show_question_async","sign","sin","skeleton_animation_clear","skeleton_animation_get","skeleton_animation_get_duration","skeleton_animation_get_ext","skeleton_animation_get_frame","skeleton_animation_get_frames","skeleton_animation_list","skeleton_animation_mix","skeleton_animation_set","skeleton_animation_set_ext","skeleton_animation_set_frame","skeleton_attachment_create","skeleton_attachment_get","skeleton_attachment_set","skeleton_bone_data_get","skeleton_bone_data_set","skeleton_bone_state_get","skeleton_bone_state_set","skeleton_collision_draw_set","skeleton_get_bounds","skeleton_get_minmax","skeleton_get_num_bounds","skeleton_skin_get","skeleton_skin_list","skeleton_skin_set","skeleton_slot_data","sprite_add","sprite_add_from_surface","sprite_assign","sprite_collision_mask","sprite_create_from_surface","sprite_delete","sprite_duplicate","sprite_exists","sprite_flush","sprite_flush_multi","sprite_get_bbox_bottom","sprite_get_bbox_left","sprite_get_bbox_right","sprite_get_bbox_top","sprite_get_height","sprite_get_name","sprite_get_number","sprite_get_speed","sprite_get_speed_type","sprite_get_texture","sprite_get_tpe","sprite_get_uvs","sprite_get_width","sprite_get_xoffset","sprite_get_yoffset","sprite_merge","sprite_prefetch","sprite_prefetch_multi","sprite_replace","sprite_save","sprite_save_strip","sprite_set_alpha_from_sprite","sprite_set_cache_size","sprite_set_cache_size_ext","sprite_set_offset","sprite_set_speed","sqr","sqrt","steam_activate_overlay","steam_activate_overlay_browser","steam_activate_overlay_store","steam_activate_overlay_user","steam_available_languages","steam_clear_achievement","steam_create_leaderboard","steam_current_game_language","steam_download_friends_scores","steam_download_scores","steam_download_scores_around_user","steam_file_delete","steam_file_exists","steam_file_persisted","steam_file_read","steam_file_share","steam_file_size","steam_file_write","steam_file_write_file","steam_get_achievement","steam_get_app_id","steam_get_persona_name","steam_get_quota_free","steam_get_quota_total","steam_get_stat_avg_rate","steam_get_stat_float","steam_get_stat_int","steam_get_user_account_id","steam_get_user_persona_name","steam_get_user_steam_id","steam_initialised","steam_is_cloud_enabled_for_account","steam_is_cloud_enabled_for_app","steam_is_overlay_activated","steam_is_overlay_enabled","steam_is_screenshot_requested","steam_is_user_logged_on","steam_reset_all_stats","steam_reset_all_stats_achievements","steam_send_screenshot","steam_set_achievement","steam_set_stat_avg_rate","steam_set_stat_float","steam_set_stat_int","steam_stats_ready","steam_ugc_create_item","steam_ugc_create_query_all","steam_ugc_create_query_all_ex","steam_ugc_create_query_user","steam_ugc_create_query_user_ex","steam_ugc_download","steam_ugc_get_item_install_info","steam_ugc_get_item_update_info","steam_ugc_get_item_update_progress","steam_ugc_get_subscribed_items","steam_ugc_num_subscribed_items","steam_ugc_query_add_excluded_tag","steam_ugc_query_add_required_tag","steam_ugc_query_set_allow_cached_response","steam_ugc_query_set_cloud_filename_filter","steam_ugc_query_set_match_any_tag","steam_ugc_query_set_ranked_by_trend_days","steam_ugc_query_set_return_long_description","steam_ugc_query_set_return_total_only","steam_ugc_query_set_search_text","steam_ugc_request_item_details","steam_ugc_send_query","steam_ugc_set_item_content","steam_ugc_set_item_description","steam_ugc_set_item_preview","steam_ugc_set_item_tags","steam_ugc_set_item_title","steam_ugc_set_item_visibility","steam_ugc_start_item_update","steam_ugc_submit_item_update","steam_ugc_subscribe_item","steam_ugc_unsubscribe_item","steam_upload_score","steam_upload_score_buffer","steam_upload_score_buffer_ext","steam_upload_score_ext","steam_user_installed_dlc","steam_user_owns_dlc","string","string_byte_at","string_byte_length","string_char_at","string_copy","string_count","string_delete","string_digits","string_format","string_hash_to_newline","string_height","string_height_ext","string_insert","string_length","string_letters","string_lettersdigits","string_lower","string_ord_at","string_pos","string_repeat","string_replace","string_replace_all","string_set_byte_at","string_upper","string_width","string_width_ext","surface_copy","surface_copy_part","surface_create","surface_create_ext","surface_depth_disable","surface_exists","surface_free","surface_get_depth_disable","surface_get_height","surface_get_texture","surface_get_width","surface_getpixel","surface_getpixel_ext","surface_reset_target","surface_resize","surface_save","surface_save_part","surface_set_target","surface_set_target_ext","tan","texture_get_height","texture_get_texel_height","texture_get_texel_width","texture_get_uvs","texture_get_width","texture_global_scale","texture_set_stage","tile_get_empty","tile_get_flip","tile_get_index","tile_get_mirror","tile_get_rotate","tile_set_empty","tile_set_flip","tile_set_index","tile_set_mirror","tile_set_rotate","tilemap_clear","tilemap_get","tilemap_get_at_pixel","tilemap_get_cell_x_at_pixel","tilemap_get_cell_y_at_pixel","tilemap_get_frame","tilemap_get_global_mask","tilemap_get_height","tilemap_get_mask","tilemap_get_tile_height","tilemap_get_tile_width","tilemap_get_tileset","tilemap_get_width","tilemap_get_x","tilemap_get_y","tilemap_set","tilemap_set_at_pixel","tilemap_set_global_mask","tilemap_set_mask","tilemap_tileset","tilemap_x","tilemap_y","timeline_add","timeline_clear","timeline_delete","timeline_exists","timeline_get_name","timeline_max_moment","timeline_moment_add_script","timeline_moment_clear","timeline_size","typeof","url_get_domain","url_open","url_open_ext","url_open_full","variable_global_exists","variable_global_get","variable_global_set","variable_instance_exists","variable_instance_get","variable_instance_get_names","variable_instance_set","variable_struct_exists","variable_struct_get","variable_struct_get_names","variable_struct_names_count","variable_struct_remove","variable_struct_set","vertex_argb","vertex_begin","vertex_color","vertex_colour","vertex_create_buffer","vertex_create_buffer_ext","vertex_create_buffer_from_buffer","vertex_create_buffer_from_buffer_ext","vertex_delete_buffer","vertex_end","vertex_float1","vertex_float2","vertex_float3","vertex_float4","vertex_format_add_color","vertex_format_add_colour","vertex_format_add_custom","vertex_format_add_normal","vertex_format_add_position","vertex_format_add_position_3d","vertex_format_add_texcoord","vertex_format_add_textcoord","vertex_format_begin","vertex_format_delete","vertex_format_end","vertex_freeze","vertex_get_buffer_size","vertex_get_number","vertex_normal","vertex_position","vertex_position_3d","vertex_submit","vertex_texcoord","vertex_ubyte4","view_get_camera","view_get_hport","view_get_surface_id","view_get_visible","view_get_wport","view_get_xport","view_get_yport","view_set_camera","view_set_hport","view_set_surface_id","view_set_visible","view_set_wport","view_set_xport","view_set_yport","virtual_key_add","virtual_key_delete","virtual_key_hide","virtual_key_show","win8_appbar_add_element","win8_appbar_enable","win8_appbar_remove_element","win8_device_touchscreen_available","win8_license_initialize_sandbox","win8_license_trial_version","win8_livetile_badge_clear","win8_livetile_badge_notification","win8_livetile_notification_begin","win8_livetile_notification_end","win8_livetile_notification_expiry","win8_livetile_notification_image_add","win8_livetile_notification_secondary_begin","win8_livetile_notification_tag","win8_livetile_notification_text_add","win8_livetile_queue_enable","win8_livetile_tile_clear","win8_livetile_tile_notification","win8_search_add_suggestions","win8_search_disable","win8_search_enable","win8_secondarytile_badge_notification","win8_secondarytile_delete","win8_secondarytile_pin","win8_settingscharm_add_entry","win8_settingscharm_add_html_entry","win8_settingscharm_add_xaml_entry","win8_settingscharm_get_xaml_property","win8_settingscharm_remove_entry","win8_settingscharm_set_xaml_property","win8_share_file","win8_share_image","win8_share_screenshot","win8_share_text","win8_share_url","window_center","window_device","window_get_caption","window_get_color","window_get_colour","window_get_cursor","window_get_fullscreen","window_get_height","window_get_visible_rects","window_get_width","window_get_x","window_get_y","window_handle","window_has_focus","window_mouse_get_x","window_mouse_get_y","window_mouse_set","window_set_caption","window_set_color","window_set_colour","window_set_cursor","window_set_fullscreen","window_set_max_height","window_set_max_width","window_set_min_height","window_set_min_width","window_set_position","window_set_rectangle","window_set_size","window_view_mouse_get_x","window_view_mouse_get_y","window_views_mouse_get_x","window_views_mouse_get_y","winphone_license_trial_version","winphone_tile_back_content","winphone_tile_back_content_wide","winphone_tile_back_image","winphone_tile_back_image_wide","winphone_tile_back_title","winphone_tile_background_color","winphone_tile_background_colour","winphone_tile_count","winphone_tile_cycle_images","winphone_tile_front_image","winphone_tile_front_image_small","winphone_tile_front_image_wide","winphone_tile_icon_image","winphone_tile_small_background_image","winphone_tile_small_icon_image","winphone_tile_title","winphone_tile_wide_content","zip_unzip"],literal:["all","false","noone","pointer_invalid","pointer_null","true","undefined"],symbol:["ANSI_CHARSET","ARABIC_CHARSET","BALTIC_CHARSET","CHINESEBIG5_CHARSET","DEFAULT_CHARSET","EASTEUROPE_CHARSET","GB2312_CHARSET","GM_build_date","GM_runtime_version","GM_version","GREEK_CHARSET","HANGEUL_CHARSET","HEBREW_CHARSET","JOHAB_CHARSET","MAC_CHARSET","OEM_CHARSET","RUSSIAN_CHARSET","SHIFTJIS_CHARSET","SYMBOL_CHARSET","THAI_CHARSET","TURKISH_CHARSET","VIETNAMESE_CHARSET","achievement_achievement_info","achievement_filter_all_players","achievement_filter_favorites_only","achievement_filter_friends_only","achievement_friends_info","achievement_leaderboard_info","achievement_our_info","achievement_pic_loaded","achievement_show_achievement","achievement_show_bank","achievement_show_friend_picker","achievement_show_leaderboard","achievement_show_profile","achievement_show_purchase_prompt","achievement_show_ui","achievement_type_achievement_challenge","achievement_type_score_challenge","asset_font","asset_object","asset_path","asset_room","asset_script","asset_shader","asset_sound","asset_sprite","asset_tiles","asset_timeline","asset_unknown","audio_3d","audio_falloff_exponent_distance","audio_falloff_exponent_distance_clamped","audio_falloff_inverse_distance","audio_falloff_inverse_distance_clamped","audio_falloff_linear_distance","audio_falloff_linear_distance_clamped","audio_falloff_none","audio_mono","audio_new_system","audio_old_system","audio_stereo","bm_add","bm_complex","bm_dest_alpha","bm_dest_color","bm_dest_colour","bm_inv_dest_alpha","bm_inv_dest_color","bm_inv_dest_colour","bm_inv_src_alpha","bm_inv_src_color","bm_inv_src_colour","bm_max","bm_normal","bm_one","bm_src_alpha","bm_src_alpha_sat","bm_src_color","bm_src_colour","bm_subtract","bm_zero","browser_chrome","browser_edge","browser_firefox","browser_ie","browser_ie_mobile","browser_not_a_browser","browser_opera","browser_safari","browser_safari_mobile","browser_tizen","browser_unknown","browser_windows_store","buffer_bool","buffer_f16","buffer_f32","buffer_f64","buffer_fast","buffer_fixed","buffer_generalerror","buffer_grow","buffer_invalidtype","buffer_network","buffer_outofbounds","buffer_outofspace","buffer_s16","buffer_s32","buffer_s8","buffer_seek_end","buffer_seek_relative","buffer_seek_start","buffer_string","buffer_surface_copy","buffer_text","buffer_u16","buffer_u32","buffer_u64","buffer_u8","buffer_vbuffer","buffer_wrap","button_type","c_aqua","c_black","c_blue","c_dkgray","c_fuchsia","c_gray","c_green","c_lime","c_ltgray","c_maroon","c_navy","c_olive","c_orange","c_purple","c_red","c_silver","c_teal","c_white","c_yellow","cmpfunc_always","cmpfunc_equal","cmpfunc_greater","cmpfunc_greaterequal","cmpfunc_less","cmpfunc_lessequal","cmpfunc_never","cmpfunc_notequal","cr_appstart","cr_arrow","cr_beam","cr_cross","cr_default","cr_drag","cr_handpoint","cr_hourglass","cr_none","cr_size_all","cr_size_nesw","cr_size_ns","cr_size_nwse","cr_size_we","cr_uparrow","cull_clockwise","cull_counterclockwise","cull_noculling","device_emulator","device_ios_ipad","device_ios_ipad_retina","device_ios_iphone","device_ios_iphone5","device_ios_iphone6","device_ios_iphone6plus","device_ios_iphone_retina","device_ios_unknown","device_tablet","display_landscape","display_landscape_flipped","display_portrait","display_portrait_flipped","dll_cdecl","dll_stdcall","ds_type_grid","ds_type_list","ds_type_map","ds_type_priority","ds_type_queue","ds_type_stack","ef_cloud","ef_ellipse","ef_explosion","ef_firework","ef_flare","ef_rain","ef_ring","ef_smoke","ef_smokeup","ef_snow","ef_spark","ef_star","ev_alarm","ev_animation_end","ev_boundary","ev_cleanup","ev_close_button","ev_collision","ev_create","ev_destroy","ev_draw","ev_draw_begin","ev_draw_end","ev_draw_post","ev_draw_pre","ev_end_of_path","ev_game_end","ev_game_start","ev_gesture","ev_gesture_double_tap","ev_gesture_drag_end","ev_gesture_drag_start","ev_gesture_dragging","ev_gesture_flick","ev_gesture_pinch_end","ev_gesture_pinch_in","ev_gesture_pinch_out","ev_gesture_pinch_start","ev_gesture_rotate_end","ev_gesture_rotate_start","ev_gesture_rotating","ev_gesture_tap","ev_global_gesture_double_tap","ev_global_gesture_drag_end","ev_global_gesture_drag_start","ev_global_gesture_dragging","ev_global_gesture_flick","ev_global_gesture_pinch_end","ev_global_gesture_pinch_in","ev_global_gesture_pinch_out","ev_global_gesture_pinch_start","ev_global_gesture_rotate_end","ev_global_gesture_rotate_start","ev_global_gesture_rotating","ev_global_gesture_tap","ev_global_left_button","ev_global_left_press","ev_global_left_release","ev_global_middle_button","ev_global_middle_press","ev_global_middle_release","ev_global_right_button","ev_global_right_press","ev_global_right_release","ev_gui","ev_gui_begin","ev_gui_end","ev_joystick1_button1","ev_joystick1_button2","ev_joystick1_button3","ev_joystick1_button4","ev_joystick1_button5","ev_joystick1_button6","ev_joystick1_button7","ev_joystick1_button8","ev_joystick1_down","ev_joystick1_left","ev_joystick1_right","ev_joystick1_up","ev_joystick2_button1","ev_joystick2_button2","ev_joystick2_button3","ev_joystick2_button4","ev_joystick2_button5","ev_joystick2_button6","ev_joystick2_button7","ev_joystick2_button8","ev_joystick2_down","ev_joystick2_left","ev_joystick2_right","ev_joystick2_up","ev_keyboard","ev_keypress","ev_keyrelease","ev_left_button","ev_left_press","ev_left_release","ev_middle_button","ev_middle_press","ev_middle_release","ev_mouse","ev_mouse_enter","ev_mouse_leave","ev_mouse_wheel_down","ev_mouse_wheel_up","ev_no_button","ev_no_more_health","ev_no_more_lives","ev_other","ev_outside","ev_right_button","ev_right_press","ev_right_release","ev_room_end","ev_room_start","ev_step","ev_step_begin","ev_step_end","ev_step_normal","ev_trigger","ev_user0","ev_user1","ev_user2","ev_user3","ev_user4","ev_user5","ev_user6","ev_user7","ev_user8","ev_user9","ev_user10","ev_user11","ev_user12","ev_user13","ev_user14","ev_user15","fa_archive","fa_bottom","fa_center","fa_directory","fa_hidden","fa_left","fa_middle","fa_readonly","fa_right","fa_sysfile","fa_top","fa_volumeid","fb_login_default","fb_login_fallback_to_webview","fb_login_forcing_safari","fb_login_forcing_webview","fb_login_no_fallback_to_webview","fb_login_use_system_account","gamespeed_fps","gamespeed_microseconds","ge_lose","global","gp_axislh","gp_axislv","gp_axisrh","gp_axisrv","gp_face1","gp_face2","gp_face3","gp_face4","gp_padd","gp_padl","gp_padr","gp_padu","gp_select","gp_shoulderl","gp_shoulderlb","gp_shoulderr","gp_shoulderrb","gp_start","gp_stickl","gp_stickr","iap_available","iap_canceled","iap_ev_consume","iap_ev_product","iap_ev_purchase","iap_ev_restore","iap_ev_storeload","iap_failed","iap_purchased","iap_refunded","iap_status_available","iap_status_loading","iap_status_processing","iap_status_restoring","iap_status_unavailable","iap_status_uninitialised","iap_storeload_failed","iap_storeload_ok","iap_unavailable","input_type","kbv_autocapitalize_characters","kbv_autocapitalize_none","kbv_autocapitalize_sentences","kbv_autocapitalize_words","kbv_returnkey_continue","kbv_returnkey_default","kbv_returnkey_done","kbv_returnkey_emergency","kbv_returnkey_go","kbv_returnkey_google","kbv_returnkey_join","kbv_returnkey_next","kbv_returnkey_route","kbv_returnkey_search","kbv_returnkey_send","kbv_returnkey_yahoo","kbv_type_ascii","kbv_type_default","kbv_type_email","kbv_type_numbers","kbv_type_phone","kbv_type_phone_name","kbv_type_url","layerelementtype_background","layerelementtype_instance","layerelementtype_oldtilemap","layerelementtype_particlesystem","layerelementtype_sprite","layerelementtype_tile","layerelementtype_tilemap","layerelementtype_undefined","lb_disp_none","lb_disp_numeric","lb_disp_time_ms","lb_disp_time_sec","lb_sort_ascending","lb_sort_descending","lb_sort_none","leaderboard_type_number","leaderboard_type_time_mins_secs","lighttype_dir","lighttype_point","local","matrix_projection","matrix_view","matrix_world","mb_any","mb_left","mb_middle","mb_none","mb_right","mip_markedonly","mip_off","mip_on","network_config_connect_timeout","network_config_disable_reliable_udp","network_config_enable_reliable_udp","network_config_use_non_blocking_socket","network_socket_bluetooth","network_socket_tcp","network_socket_udp","network_type_connect","network_type_data","network_type_disconnect","network_type_non_blocking_connect","of_challen","of_challenge_tie","of_challenge_win","os_3ds","os_android","os_bb10","os_ios","os_linux","os_macosx","os_ps3","os_ps4","os_psvita","os_switch","os_symbian","os_tizen","os_tvos","os_unknown","os_uwp","os_wiiu","os_win32","os_win8native","os_windows","os_winphone","os_xbox360","os_xboxone","other","ov_achievements","ov_community","ov_friends","ov_gamegroup","ov_players","ov_settings","path_action_continue","path_action_restart","path_action_reverse","path_action_stop","phy_debug_render_aabb","phy_debug_render_collision_pairs","phy_debug_render_coms","phy_debug_render_core_shapes","phy_debug_render_joints","phy_debug_render_obb","phy_debug_render_shapes","phy_joint_anchor_1_x","phy_joint_anchor_1_y","phy_joint_anchor_2_x","phy_joint_anchor_2_y","phy_joint_angle","phy_joint_angle_limits","phy_joint_damping_ratio","phy_joint_frequency","phy_joint_length_1","phy_joint_length_2","phy_joint_lower_angle_limit","phy_joint_max_force","phy_joint_max_length","phy_joint_max_motor_force","phy_joint_max_motor_torque","phy_joint_max_torque","phy_joint_motor_force","phy_joint_motor_speed","phy_joint_motor_torque","phy_joint_reaction_force_x","phy_joint_reaction_force_y","phy_joint_reaction_torque","phy_joint_speed","phy_joint_translation","phy_joint_upper_angle_limit","phy_particle_data_flag_category","phy_particle_data_flag_color","phy_particle_data_flag_colour","phy_particle_data_flag_position","phy_particle_data_flag_typeflags","phy_particle_data_flag_velocity","phy_particle_flag_colormixing","phy_particle_flag_colourmixing","phy_particle_flag_elastic","phy_particle_flag_powder","phy_particle_flag_spring","phy_particle_flag_tensile","phy_particle_flag_viscous","phy_particle_flag_wall","phy_particle_flag_water","phy_particle_flag_zombie","phy_particle_group_flag_rigid","phy_particle_group_flag_solid","pi","pr_linelist","pr_linestrip","pr_pointlist","pr_trianglefan","pr_trianglelist","pr_trianglestrip","ps_distr_gaussian","ps_distr_invgaussian","ps_distr_linear","ps_shape_diamond","ps_shape_ellipse","ps_shape_line","ps_shape_rectangle","pt_shape_circle","pt_shape_cloud","pt_shape_disk","pt_shape_explosion","pt_shape_flare","pt_shape_line","pt_shape_pixel","pt_shape_ring","pt_shape_smoke","pt_shape_snow","pt_shape_spark","pt_shape_sphere","pt_shape_square","pt_shape_star","spritespeed_framespergameframe","spritespeed_framespersecond","text_type","tf_anisotropic","tf_linear","tf_point","tile_flip","tile_index_mask","tile_mirror","tile_rotate","timezone_local","timezone_utc","tm_countvsyncs","tm_sleep","ty_real","ty_string","ugc_filetype_community","ugc_filetype_microtrans","ugc_list_Favorited","ugc_list_Followed","ugc_list_Published","ugc_list_Subscribed","ugc_list_UsedOrPlayed","ugc_list_VotedDown","ugc_list_VotedOn","ugc_list_VotedUp","ugc_list_WillVoteLater","ugc_match_AllGuides","ugc_match_Artwork","ugc_match_Collections","ugc_match_ControllerBindings","ugc_match_IntegratedGuides","ugc_match_Items","ugc_match_Items_Mtx","ugc_match_Items_ReadyToUse","ugc_match_Screenshots","ugc_match_UsableInGame","ugc_match_Videos","ugc_match_WebGuides","ugc_query_AcceptedForGameRankedByAcceptanceDate","ugc_query_CreatedByFollowedUsersRankedByPublicationDate","ugc_query_CreatedByFriendsRankedByPublicationDate","ugc_query_FavoritedByFriendsRankedByPublicationDate","ugc_query_NotYetRated","ugc_query_RankedByNumTimesReported","ugc_query_RankedByPublicationDate","ugc_query_RankedByTextSearch","ugc_query_RankedByTotalVotesAsc","ugc_query_RankedByTrend","ugc_query_RankedByVote","ugc_query_RankedByVotesUp","ugc_result_success","ugc_sortorder_CreationOrderAsc","ugc_sortorder_CreationOrderDesc","ugc_sortorder_ForModeration","ugc_sortorder_LastUpdatedDesc","ugc_sortorder_SubscriptionDateDesc","ugc_sortorder_TitleAsc","ugc_sortorder_VoteScoreDesc","ugc_visibility_friends_only","ugc_visibility_private","ugc_visibility_public","vertex_type_color","vertex_type_colour","vertex_type_float1","vertex_type_float2","vertex_type_float3","vertex_type_float4","vertex_type_ubyte4","vertex_usage_binormal","vertex_usage_blendindices","vertex_usage_blendweight","vertex_usage_color","vertex_usage_colour","vertex_usage_depth","vertex_usage_fog","vertex_usage_normal","vertex_usage_position","vertex_usage_psize","vertex_usage_sample","vertex_usage_tangent","vertex_usage_texcoord","vertex_usage_textcoord","vk_add","vk_alt","vk_anykey","vk_backspace","vk_control","vk_decimal","vk_delete","vk_divide","vk_down","vk_end","vk_enter","vk_escape","vk_f1","vk_f2","vk_f3","vk_f4","vk_f5","vk_f6","vk_f7","vk_f8","vk_f9","vk_f10","vk_f11","vk_f12","vk_home","vk_insert","vk_lalt","vk_lcontrol","vk_left","vk_lshift","vk_multiply","vk_nokey","vk_numpad0","vk_numpad1","vk_numpad2","vk_numpad3","vk_numpad4","vk_numpad5","vk_numpad6","vk_numpad7","vk_numpad8","vk_numpad9","vk_pagedown","vk_pageup","vk_pause","vk_printscreen","vk_ralt","vk_rcontrol","vk_return","vk_right","vk_rshift","vk_shift","vk_space","vk_subtract","vk_tab","vk_up"],"variable.language":["alarm","application_surface","argument","argument0","argument1","argument2","argument3","argument4","argument5","argument6","argument7","argument8","argument9","argument10","argument11","argument12","argument13","argument14","argument15","argument_count","argument_relative","async_load","background_color","background_colour","background_showcolor","background_showcolour","bbox_bottom","bbox_left","bbox_right","bbox_top","browser_height","browser_width","caption_health","caption_lives","caption_score","current_day","current_hour","current_minute","current_month","current_second","current_time","current_weekday","current_year","cursor_sprite","debug_mode","delta_time","depth","direction","display_aa","error_last","error_occurred","event_action","event_data","event_number","event_object","event_type","fps","fps_real","friction","game_display_name","game_id","game_project_name","game_save_id","gamemaker_pro","gamemaker_registered","gamemaker_version","gravity","gravity_direction","health","hspeed","iap_data","id|0","image_alpha","image_angle","image_blend","image_index","image_number","image_speed","image_xscale","image_yscale","instance_count","instance_id","keyboard_key","keyboard_lastchar","keyboard_lastkey","keyboard_string","layer","lives","mask_index","mouse_button","mouse_lastbutton","mouse_x","mouse_y","object_index","os_browser","os_device","os_type","os_version","path_endaction","path_index","path_orientation","path_position","path_positionprevious","path_scale","path_speed","persistent","phy_active","phy_angular_damping","phy_angular_velocity","phy_bullet","phy_col_normal_x","phy_col_normal_y","phy_collision_points","phy_collision_x","phy_collision_y","phy_com_x","phy_com_y","phy_dynamic","phy_fixed_rotation","phy_inertia","phy_kinematic","phy_linear_damping","phy_linear_velocity_x","phy_linear_velocity_y","phy_mass","phy_position_x","phy_position_xprevious","phy_position_y","phy_position_yprevious","phy_rotation","phy_sleeping","phy_speed","phy_speed_x","phy_speed_y","program_directory","room","room_caption","room_first","room_height","room_last","room_persistent","room_speed","room_width","score","self","show_health","show_lives","show_score","solid","speed","sprite_height","sprite_index","sprite_width","sprite_xoffset","sprite_yoffset","temp_directory","timeline_index","timeline_loop","timeline_position","timeline_running","timeline_speed","view_angle","view_camera","view_current","view_enabled","view_hborder","view_hport","view_hspeed","view_hview","view_object","view_surface_id","view_vborder","view_visible","view_vspeed","view_wport","view_wview","view_xport","view_xview","view_yport","view_yview","visible","vspeed","webgl_enabled","working_directory","xprevious","xstart","x|0","yprevious","ystart","y|0"]},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE]}}},4626:r=>{r.exports=function a(e){const c={keyword:["break","case","chan","const","continue","default","defer","else","fallthrough","for","func","go","goto","if","import","interface","map","package","range","return","select","struct","switch","type","var"],type:["bool","byte","complex64","complex128","error","float32","float64","int8","int16","int32","int64","string","uint8","uint16","uint32","uint64","int","uint","uintptr","rune"],literal:["true","false","iota","nil"],built_in:["append","cap","close","complex","copy","imag","len","make","new","panic","print","println","real","recover","delete"]};return{name:"Go",aliases:["golang"],keywords:c,illegal:"{r.exports=function a(e){return{name:"Golo",keywords:{keyword:["println","readln","print","import","module","function","local","return","let","var","while","for","foreach","times","in","case","when","match","with","break","continue","augment","augmentation","each","find","filter","reduce","if","then","else","otherwise","try","catch","finally","raise","throw","orIfNull","DynamicObject|10","DynamicVariable","struct","Observable","map","set","vector","list","array"],literal:["true","false","null"]},contains:[e.HASH_COMMENT_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,{className:"meta",begin:"@[A-Za-z]+"}]}}},6704:r=>{r.exports=function a(e){return{name:"Gradle",case_insensitive:!0,keywords:["task","project","allprojects","subprojects","artifacts","buildscript","configurations","dependencies","repositories","sourceSets","description","delete","from","into","include","exclude","source","classpath","destinationDir","includes","options","sourceCompatibility","targetCompatibility","group","flatDir","doLast","doFirst","flatten","todir","fromdir","ant","def","abstract","break","case","catch","continue","default","do","else","extends","final","finally","for","if","implements","instanceof","native","new","private","protected","public","return","static","switch","synchronized","throw","throws","transient","try","volatile","while","strictfp","package","import","false","null","super","this","true","antlrtask","checkstyle","codenarc","copy","boolean","byte","char","class","double","float","int","interface","long","short","void","compile","runTime","file","fileTree","abs","any","append","asList","asWritable","call","collect","compareTo","count","div","dump","each","eachByte","eachFile","eachLine","every","find","findAll","flatten","getAt","getErr","getIn","getOut","getText","grep","immutable","inject","inspect","intersect","invokeMethods","isCase","join","leftShift","minus","multiply","newInputStream","newOutputStream","newPrintWriter","newReader","newWriter","next","plus","pop","power","previous","print","println","push","putAt","read","readBytes","readLines","reverse","reverseEach","round","size","sort","splitEachLine","step","subMap","times","toInteger","toList","tokenize","upto","waitForOrKill","withPrintWriter","withReader","withStream","withWriter","withWriterAppend","write","writeLine"],contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE,e.REGEXP_MODE]}}},2653:r=>{r.exports=function a(e){const t=e.regex;return{name:"GraphQL",aliases:["gql"],case_insensitive:!0,disableAutodetect:!1,keywords:{keyword:["query","mutation","subscription","type","input","schema","directive","interface","union","scalar","fragment","enum","on"],literal:["true","false","null"]},contains:[e.HASH_COMMENT_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE,{scope:"punctuation",match:/[.]{3}/,relevance:0},{scope:"punctuation",begin:/[\!\(\)\:\=\[\]\{\|\}]{1}/,relevance:0},{scope:"variable",begin:/\$/,end:/\W/,excludeEnd:!0,relevance:0},{scope:"meta",match:/@\w+/,excludeEnd:!0},{scope:"symbol",begin:t.concat(/[_A-Za-z][_0-9A-Za-z]*/,t.lookahead(/\s*:/)),relevance:0}],illegal:[/[;<']/,/BEGIN/]}}},2091:r=>{function a(t,n={}){return n.variants=t,n}r.exports=function e(t){const n=t.regex,i="[A-Za-z0-9_$]+",o=a([t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]})]),c={className:"regexp",begin:/~?\/[^\/\n]+\//,contains:[t.BACKSLASH_ESCAPE]},s=a([t.BINARY_NUMBER_MODE,t.C_NUMBER_MODE]),l=a([{begin:/"""/,end:/"""/},{begin:/'''/,end:/'''/},{begin:"\\$/",end:"/\\$",relevance:10},t.APOS_STRING_MODE,t.QUOTE_STRING_MODE],{className:"string"}),_={match:[/(class|interface|trait|enum|extends|implements)/,/\s+/,t.UNDERSCORE_IDENT_RE],scope:{1:"keyword",3:"title.class"}};return{name:"Groovy",keywords:{"variable.language":"this super",literal:"true false null",type:["byte","short","char","int","long","boolean","float","double","void"],keyword:["def","as","in","assert","trait","abstract","static","volatile","transient","public","private","protected","synchronized","final","class","interface","enum","if","else","for","while","switch","case","break","default","continue","throw","throws","try","catch","finally","implements","extends","new","import","package","return","instanceof"]},contains:[t.SHEBANG({binary:"groovy",relevance:10}),o,l,c,s,_,{className:"meta",begin:"@[A-Za-z]+",relevance:0},{className:"attr",begin:i+"[ \t]*:",relevance:0},{begin:/\?/,end:/:/,relevance:0,contains:[o,l,c,s,"self"]},{className:"symbol",begin:"^[ \t]*"+n.lookahead(i+":"),excludeBegin:!0,end:i+":",relevance:0}],illegal:/#|<\//}}},219:r=>{r.exports=function a(e){return{name:"HAML",case_insensitive:!0,contains:[{className:"meta",begin:"^!!!( (5|1\\.1|Strict|Frameset|Basic|Mobile|RDFa|XML\\b.*))?$",relevance:10},e.COMMENT("^\\s*(!=#|=#|-#|/).*$",null,{relevance:0}),{begin:"^\\s*(-|=|!=)(?!#)",end:/$/,subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0},{className:"tag",begin:"^\\s*%",contains:[{className:"selector-tag",begin:"\\w+"},{className:"selector-id",begin:"#[\\w-]+"},{className:"selector-class",begin:"\\.[\\w-]+"},{begin:/\{\s*/,end:/\s*\}/,contains:[{begin:":\\w+\\s*=>",end:",\\s+",returnBegin:!0,endsWithParent:!0,contains:[{className:"attr",begin:":\\w+"},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{begin:"\\w+",relevance:0}]}]},{begin:"\\(\\s*",end:"\\s*\\)",excludeEnd:!0,contains:[{begin:"\\w+\\s*=",end:"\\s+",returnBegin:!0,endsWithParent:!0,contains:[{className:"attr",begin:"\\w+",relevance:0},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{begin:"\\w+",relevance:0}]}]}]},{begin:"^\\s*[=~]\\s*"},{begin:/#\{/,end:/\}/,subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0}]}}},3216:r=>{r.exports=function a(e){const t=e.regex,n={$pattern:/[\w.\/]+/,built_in:["action","bindattr","collection","component","concat","debugger","each","each-in","get","hash","if","in","input","link-to","loc","log","lookup","mut","outlet","partial","query-params","render","template","textarea","unbound","unless","view","with","yield"]},s=/\[\]|\[[^\]]+\]/,l=/[^\s!"#%&'()*+,.\/;<=>@\[\\\]^`{|}~]+/,d=t.either(/""|"[^"]+"/,/''|'[^']+'/,s,l),m=t.concat(t.optional(/\.|\.\/|\//),d,t.anyNumberOfTimes(t.concat(/(\.|\/)/,d))),u=t.concat("(",s,"|",l,")(?==)"),p={begin:m},S=e.inherit(p,{keywords:{$pattern:/[\w.\/]+/,literal:["true","false","undefined","null"]}}),g={begin:/\(/,end:/\)/},C={contains:[e.NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{begin:/as\s+\|/,keywords:{keyword:"as"},end:/\|/,contains:[{begin:/\w+/}]},{className:"attr",begin:u,relevance:0,starts:{begin:/=/,end:/=/,starts:{contains:[e.NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,S,g]}}},S,g],returnEnd:!0},f=e.inherit(p,{className:"name",keywords:n,starts:e.inherit(C,{end:/\)/})});g.contains=[f];const v=e.inherit(p,{keywords:n,className:"name",starts:e.inherit(C,{end:/\}\}/})}),y=e.inherit(p,{keywords:n,className:"name"}),O=e.inherit(p,{className:"name",keywords:n,starts:e.inherit(C,{end:/\}\}/})});return{name:"Handlebars",aliases:["hbs","html.hbs","html.handlebars","htmlbars"],case_insensitive:!0,subLanguage:"xml",contains:[{begin:/\\\{\{/,skip:!0},{begin:/\\\\(?=\{\{)/,skip:!0},e.COMMENT(/\{\{!--/,/--\}\}/),e.COMMENT(/\{\{!/,/\}\}/),{className:"template-tag",begin:/\{\{\{\{(?!\/)/,end:/\}\}\}\}/,contains:[v],starts:{end:/\{\{\{\{\//,returnEnd:!0,subLanguage:"xml"}},{className:"template-tag",begin:/\{\{\{\{\//,end:/\}\}\}\}/,contains:[y]},{className:"template-tag",begin:/\{\{#/,end:/\}\}/,contains:[v]},{className:"template-tag",begin:/\{\{(?=else\}\})/,end:/\}\}/,keywords:"else"},{className:"template-tag",begin:/\{\{(?=else if)/,end:/\}\}/,keywords:"else if"},{className:"template-tag",begin:/\{\{\//,end:/\}\}/,contains:[y]},{className:"template-variable",begin:/\{\{\{/,end:/\}\}\}/,contains:[O]},{className:"template-variable",begin:/\{\{/,end:/\}\}/,contains:[O]}]}}},6686:r=>{r.exports=function a(e){const t={variants:[e.COMMENT("--","$"),e.COMMENT(/\{-/,/-\}/,{contains:["self"]})]},n={className:"meta",begin:/\{-#/,end:/#-\}/},i={className:"meta",begin:"^#",end:"$"},o={className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},c={begin:"\\(",end:"\\)",illegal:'"',contains:[n,i,{className:"type",begin:"\\b[A-Z][\\w]*(\\((\\.\\.|,|\\w+)\\))?"},e.inherit(e.TITLE_MODE,{begin:"[_a-z][\\w']*"}),t]},l="([0-9]_*)+",_="([0-9a-fA-F]_*)+";return{name:"Haskell",aliases:["hs"],keywords:"let in if then else case of where do module import hiding qualified type data newtype deriving class instance as default infix infixl infixr foreign export ccall stdcall cplusplus jvm dotnet safe unsafe family forall mdo proc rec",contains:[{beginKeywords:"module",end:"where",keywords:"module where",contains:[c,t],illegal:"\\W\\.|;"},{begin:"\\bimport\\b",end:"$",keywords:"import qualified as hiding",contains:[c,t],illegal:"\\W\\.|;"},{className:"class",begin:"^(\\s*)?(class|instance)\\b",end:"where",keywords:"class family instance where",contains:[o,c,t]},{className:"class",begin:"\\b(data|(new)?type)\\b",end:"$",keywords:"data family type newtype deriving",contains:[n,o,c,{begin:/\{/,end:/\}/,contains:c.contains},t]},{beginKeywords:"default",end:"$",contains:[o,c,t]},{beginKeywords:"infix infixl infixr",end:"$",contains:[e.C_NUMBER_MODE,t]},{begin:"\\bforeign\\b",end:"$",keywords:"foreign import export ccall stdcall cplusplus jvm dotnet safe unsafe",contains:[o,e.QUOTE_STRING_MODE,t]},{className:"meta",begin:"#!\\/usr\\/bin\\/env runhaskell",end:"$"},n,i,{scope:"string",begin:/'(?=\\?.')/,end:/'/,contains:[{scope:"char.escape",match:/\\./}]},e.QUOTE_STRING_MODE,{className:"number",relevance:0,variants:[{match:`\\b(${l})(\\.(${l}))?([eE][+-]?(${l}))?\\b`},{match:`\\b0[xX]_*(${_})(\\.(${_}))?([pP][+-]?(${l}))?\\b`},{match:"\\b0[oO](([0-7]_*)+)\\b"},{match:"\\b0[bB](([01]_*)+)\\b"}]},o,e.inherit(e.TITLE_MODE,{begin:"^[_a-z][\\w']*"}),t,{begin:"->|<-"}]}}},9884:r=>{r.exports=function a(e){return{name:"Haxe",aliases:["hx"],keywords:{keyword:"break case cast catch continue default do dynamic else enum extern for function here if import in inline never new override package private get set public return static super switch this throw trace try typedef untyped using var while Int Float String Bool Dynamic Void Array ",built_in:"trace this",literal:"true false null _"},contains:[{className:"string",begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE,{className:"subst",begin:"\\$\\{",end:"\\}"},{className:"subst",begin:"\\$",end:/\W\}/}]},e.QUOTE_STRING_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.C_NUMBER_MODE,{className:"meta",begin:"@:",end:"$"},{className:"meta",begin:"#",end:"$",keywords:{keyword:"if else elseif end error"}},{className:"type",begin:":[ \t]*",end:"[^A-Za-z0-9_ \t\\->]",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:":[ \t]*",end:"\\W",excludeBegin:!0,excludeEnd:!0},{className:"type",begin:"new *",end:"\\W",excludeBegin:!0,excludeEnd:!0},{className:"class",beginKeywords:"enum",end:"\\{",contains:[e.TITLE_MODE]},{className:"class",beginKeywords:"abstract",end:"[\\{$]",contains:[{className:"type",begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"type",begin:"from +",end:"\\W",excludeBegin:!0,excludeEnd:!0},{className:"type",begin:"to +",end:"\\W",excludeBegin:!0,excludeEnd:!0},e.TITLE_MODE],keywords:{keyword:"abstract from to"}},{className:"class",begin:"\\b(class|interface) +",end:"[\\{$]",excludeEnd:!0,keywords:"class interface",contains:[{className:"keyword",begin:"\\b(extends|implements) +",keywords:"extends implements",contains:[{className:"type",begin:e.IDENT_RE,relevance:0}]},e.TITLE_MODE]},{className:"function",beginKeywords:"function",end:"\\(",excludeEnd:!0,illegal:"\\S",contains:[e.TITLE_MODE]}],illegal:/<\//}}},2518:r=>{r.exports=function a(e){return{name:"HSP",case_insensitive:!0,keywords:{$pattern:/[\w._]+/,keyword:"goto gosub return break repeat loop continue wait await dim sdim foreach dimtype dup dupptr end stop newmod delmod mref run exgoto on mcall assert logmes newlab resume yield onexit onerror onkey onclick oncmd exist delete mkdir chdir dirlist bload bsave bcopy memfile if else poke wpoke lpoke getstr chdpm memexpand memcpy memset notesel noteadd notedel noteload notesave randomize noteunsel noteget split strrep setease button chgdisp exec dialog mmload mmplay mmstop mci pset pget syscolor mes print title pos circle cls font sysfont objsize picload color palcolor palette redraw width gsel gcopy gzoom gmode bmpsave hsvcolor getkey listbox chkbox combox input mesbox buffer screen bgscr mouse objsel groll line clrobj boxf objprm objmode stick grect grotate gsquare gradf objimage objskip objenable celload celdiv celput newcom querycom delcom cnvstow comres axobj winobj sendmsg comevent comevarg sarrayconv callfunc cnvwtos comevdisp libptr system hspstat hspver stat cnt err strsize looplev sublev iparam wparam lparam refstr refdval int rnd strlen length length2 length3 length4 vartype gettime peek wpeek lpeek varptr varuse noteinfo instr abs limit getease str strmid strf getpath strtrim sin cos tan atan sqrt double absf expf logf limitf powf geteasef mousex mousey mousew hwnd hinstance hdc ginfo objinfo dirinfo sysinfo thismod __hspver__ __hsp30__ __date__ __time__ __line__ __file__ _debug __hspdef__ and or xor not screen_normal screen_palette screen_hide screen_fixedsize screen_tool screen_frame gmode_gdi gmode_mem gmode_rgb0 gmode_alpha gmode_rgb0alpha gmode_add gmode_sub gmode_pixela ginfo_mx ginfo_my ginfo_act ginfo_sel ginfo_wx1 ginfo_wy1 ginfo_wx2 ginfo_wy2 ginfo_vx ginfo_vy ginfo_sizex ginfo_sizey ginfo_winx ginfo_winy ginfo_mesx ginfo_mesy ginfo_r ginfo_g ginfo_b ginfo_paluse ginfo_dispx ginfo_dispy ginfo_cx ginfo_cy ginfo_intid ginfo_newid ginfo_sx ginfo_sy objinfo_mode objinfo_bmscr objinfo_hwnd notemax notesize dir_cur dir_exe dir_win dir_sys dir_cmdline dir_desktop dir_mydoc dir_tv font_normal font_bold font_italic font_underline font_strikeout font_antialias objmode_normal objmode_guifont objmode_usefont gsquare_grad msgothic msmincho do until while wend for next _break _continue switch case default swbreak swend ddim ldim alloc m_pi rad2deg deg2rad ease_linear ease_quad_in ease_quad_out ease_quad_inout ease_cubic_in ease_cubic_out ease_cubic_inout ease_quartic_in ease_quartic_out ease_quartic_inout ease_bounce_in ease_bounce_out ease_bounce_inout ease_shake_in ease_shake_out ease_shake_inout ease_loop"},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{className:"string",begin:/\{"/,end:/"\}/,contains:[e.BACKSLASH_ESCAPE]},e.COMMENT(";","$",{relevance:0}),{className:"meta",begin:"#",end:"$",keywords:{keyword:"addion cfunc cmd cmpopt comfunc const defcfunc deffunc define else endif enum epack func global if ifdef ifndef include modcfunc modfunc modinit modterm module pack packopt regcmd runtime undef usecom uselib"},contains:[e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),e.NUMBER_MODE,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"symbol",begin:"^\\*(\\w+|@)"},e.NUMBER_MODE,e.C_NUMBER_MODE]}}},901:r=>{r.exports=function a(e){const n="HTTP/([32]|1\\.[01])",o={className:"attribute",begin:e.regex.concat("^",/[A-Za-z][A-Za-z0-9-]*/,"(?=\\:\\s)"),starts:{contains:[{className:"punctuation",begin:/: /,relevance:0,starts:{end:"$",relevance:0}}]}},c=[o,{begin:"\\n\\n",starts:{subLanguage:[],endsWithParent:!0}}];return{name:"HTTP",aliases:["https"],illegal:/\S/,contains:[{begin:"^(?="+n+" \\d{3})",end:/$/,contains:[{className:"meta",begin:n},{className:"number",begin:"\\b\\d{3}\\b"}],starts:{end:/\b\B/,illegal:/\S/,contains:c}},{begin:"(?=^[A-Z]+ (.*?) "+n+"$)",end:/$/,contains:[{className:"string",begin:" ",end:" ",excludeBegin:!0,excludeEnd:!0},{className:"meta",begin:n},{className:"keyword",begin:"[A-Z]+"}],starts:{end:/\b\B/,illegal:/\S/,contains:c}},e.inherit(o,{relevance:0})]}}},9415:r=>{r.exports=function a(e){const t="a-zA-Z_\\-!.?+*=<>&#'",n="["+t+"]["+t+"0-9/;:]*",i={$pattern:n,built_in:"!= % %= & &= * ** **= *= *map + += , --build-class-- --import-- -= . / // //= /= < << <<= <= = > >= >> >>= @ @= ^ ^= abs accumulate all and any ap-compose ap-dotimes ap-each ap-each-while ap-filter ap-first ap-if ap-last ap-map ap-map-when ap-pipe ap-reduce ap-reject apply as-> ascii assert assoc bin break butlast callable calling-module-name car case cdr chain chr coll? combinations compile compress cond cons cons? continue count curry cut cycle dec def default-method defclass defmacro defmacro-alias defmacro/g! defmain defmethod defmulti defn defn-alias defnc defnr defreader defseq del delattr delete-route dict-comp dir disassemble dispatch-reader-macro distinct divmod do doto drop drop-last drop-while empty? end-sequence eval eval-and-compile eval-when-compile even? every? except exec filter first flatten float? fn fnc fnr for for* format fraction genexpr gensym get getattr global globals group-by hasattr hash hex id identity if if* if-not if-python2 import in inc input instance? integer integer-char? integer? interleave interpose is is-coll is-cons is-empty is-even is-every is-float is-instance is-integer is-integer-char is-iterable is-iterator is-keyword is-neg is-none is-not is-numeric is-odd is-pos is-string is-symbol is-zero isinstance islice issubclass iter iterable? iterate iterator? keyword keyword? lambda last len let lif lif-not list* list-comp locals loop macro-error macroexpand macroexpand-1 macroexpand-all map max merge-with method-decorator min multi-decorator multicombinations name neg? next none? nonlocal not not-in not? nth numeric? oct odd? open or ord partition permutations pos? post-route postwalk pow prewalk print product profile/calls profile/cpu put-route quasiquote quote raise range read read-str recursive-replace reduce remove repeat repeatedly repr require rest round route route-with-methods rwm second seq set-comp setattr setv some sorted string string? sum switch symbol? take take-nth take-while tee try unless unquote unquote-splicing vars walk when while with with* with-decorator with-gensyms xi xor yield yield-from zero? zip zip-longest | |= ~"},c={begin:n,relevance:0},s={className:"number",begin:"[-+]?\\d+(\\.\\d+)?",relevance:0},l=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),_=e.COMMENT(";","$",{relevance:0}),d={className:"literal",begin:/\b([Tt]rue|[Ff]alse|nil|None)\b/},m={begin:"[\\[\\{]",end:"[\\]\\}]",relevance:0},u={className:"comment",begin:"\\^"+n},p=e.COMMENT("\\^\\{","\\}"),S={className:"symbol",begin:"[:]{1,2}"+n},g={begin:"\\(",end:"\\)"},T={endsWithParent:!0,relevance:0},R={className:"name",relevance:0,keywords:i,begin:n,starts:T},C=[g,l,u,p,_,S,m,s,d,c];return g.contains=[e.COMMENT("comment",""),R,T],T.contains=C,m.contains=C,{name:"Hy",aliases:["hylang"],illegal:/\S/,contains:[e.SHEBANG(),g,l,u,p,_,S,m,s,d]}}},6812:r=>{r.exports=function a(e){return{name:"Inform 7",aliases:["i7"],case_insensitive:!0,keywords:{keyword:"thing room person man woman animal container supporter backdrop door scenery open closed locked inside gender is are say understand kind of rule"},contains:[{className:"string",begin:'"',end:'"',relevance:0,contains:[{className:"subst",begin:"\\[",end:"\\]"}]},{className:"section",begin:/^(Volume|Book|Part|Chapter|Section|Table)\b/,end:"$"},{begin:/^(Check|Carry out|Report|Instead of|To|Rule|When|Before|After)\b/,end:":",contains:[{begin:"\\(This",end:"\\)"}]},{className:"comment",begin:"\\[",end:"\\]",contains:["self"]}]}}},5372:r=>{r.exports=function a(e){const t=e.regex,n={className:"number",relevance:0,variants:[{begin:/([+-]+)?[\d]+_[\d_]+/},{begin:e.NUMBER_RE}]},i=e.COMMENT();i.variants=[{begin:/;/,end:/$/},{begin:/#/,end:/$/}];const o={className:"variable",variants:[{begin:/\$[\w\d"][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},c={className:"literal",begin:/\bon|off|true|false|yes|no\b/},s={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:"'''",end:"'''",relevance:10},{begin:'"""',end:'"""',relevance:10},{begin:'"',end:'"'},{begin:"'",end:"'"}]},l={begin:/\[/,end:/\]/,contains:[i,c,o,s,n,"self"],relevance:0},u=t.either(/[A-Za-z0-9_-]+/,/"(\\"|[^"])*"/,/'[^']*'/);return{name:"TOML, also INI",aliases:["toml"],case_insensitive:!0,illegal:/\S/,contains:[i,{className:"section",begin:/\[+/,end:/\]+/},{begin:t.concat(u,"(\\s*\\.\\s*",u,")*",t.lookahead(/\s*=\s*[^#\s]/)),className:"attr",starts:{end:/$/,contains:[i,l,c,o,s,n]}}]}}},1506:r=>{r.exports=function a(e){const t=e.regex,i=/(_[a-z_\d]+)?/,o=/([de][+-]?\d+)?/,c={className:"number",variants:[{begin:t.concat(/\b\d+/,/\.(\d*)/,o,i)},{begin:t.concat(/\b\d+/,o,i)},{begin:t.concat(/\.\d+/,o,i)}],relevance:0};return{name:"IRPF90",case_insensitive:!0,keywords:{literal:".False. .True.",keyword:"kind do while private call intrinsic where elsewhere type endtype endmodule endselect endinterface end enddo endif if forall endforall only contains default return stop then public subroutine|10 function program .and. .or. .not. .le. .eq. .ge. .gt. .lt. goto save else use module select case access blank direct exist file fmt form formatted iostat name named nextrec number opened rec recl sequential status unformatted unit continue format pause cycle exit c_null_char c_alert c_backspace c_form_feed flush wait decimal round iomsg synchronous nopass non_overridable pass protected volatile abstract extends import non_intrinsic value deferred generic final enumerator class associate bind enum c_int c_short c_long c_long_long c_signed_char c_size_t c_int8_t c_int16_t c_int32_t c_int64_t c_int_least8_t c_int_least16_t c_int_least32_t c_int_least64_t c_int_fast8_t c_int_fast16_t c_int_fast32_t c_int_fast64_t c_intmax_t C_intptr_t c_float c_double c_long_double c_float_complex c_double_complex c_long_double_complex c_bool c_char c_null_ptr c_null_funptr c_new_line c_carriage_return c_horizontal_tab c_vertical_tab iso_c_binding c_loc c_funloc c_associated c_f_pointer c_ptr c_funptr iso_fortran_env character_storage_size error_unit file_storage_size input_unit iostat_end iostat_eor numeric_storage_size output_unit c_f_procpointer ieee_arithmetic ieee_support_underflow_control ieee_get_underflow_mode ieee_set_underflow_mode newunit contiguous recursive pad position action delim readwrite eor advance nml interface procedure namelist include sequence elemental pure integer real character complex logical dimension allocatable|10 parameter external implicit|10 none double precision assign intent optional pointer target in out common equivalence data begin_provider &begin_provider end_provider begin_shell end_shell begin_template end_template subst assert touch soft_touch provide no_dep free irp_if irp_else irp_endif irp_write irp_read",built_in:"alog alog10 amax0 amax1 amin0 amin1 amod cabs ccos cexp clog csin csqrt dabs dacos dasin datan datan2 dcos dcosh ddim dexp dint dlog dlog10 dmax1 dmin1 dmod dnint dsign dsin dsinh dsqrt dtan dtanh float iabs idim idint idnint ifix isign max0 max1 min0 min1 sngl algama cdabs cdcos cdexp cdlog cdsin cdsqrt cqabs cqcos cqexp cqlog cqsin cqsqrt dcmplx dconjg derf derfc dfloat dgamma dimag dlgama iqint qabs qacos qasin qatan qatan2 qcmplx qconjg qcos qcosh qdim qerf qerfc qexp qgamma qimag qlgama qlog qlog10 qmax1 qmin1 qmod qnint qsign qsin qsinh qsqrt qtan qtanh abs acos aimag aint anint asin atan atan2 char cmplx conjg cos cosh exp ichar index int log log10 max min nint sign sin sinh sqrt tan tanh print write dim lge lgt lle llt mod nullify allocate deallocate adjustl adjustr all allocated any associated bit_size btest ceiling count cshift date_and_time digits dot_product eoshift epsilon exponent floor fraction huge iand ibclr ibits ibset ieor ior ishft ishftc lbound len_trim matmul maxexponent maxloc maxval merge minexponent minloc minval modulo mvbits nearest pack present product radix random_number random_seed range repeat reshape rrspacing scale scan selected_int_kind selected_real_kind set_exponent shape size spacing spread sum system_clock tiny transpose trim ubound unpack verify achar iachar transfer dble entry dprod cpu_time command_argument_count get_command get_command_argument get_environment_variable is_iostat_end ieee_arithmetic ieee_support_underflow_control ieee_get_underflow_mode ieee_set_underflow_mode is_iostat_eor move_alloc new_line selected_char_kind same_type_as extends_type_of acosh asinh atanh bessel_j0 bessel_j1 bessel_jn bessel_y0 bessel_y1 bessel_yn erf erfc erfc_scaled gamma log_gamma hypot norm2 atomic_define atomic_ref execute_command_line leadz trailz storage_size merge_bits bge bgt ble blt dshiftl dshiftr findloc iall iany iparity image_index lcobound ucobound maskl maskr num_images parity popcnt poppar shifta shiftl shiftr this_image IRP_ALIGN irp_here"},illegal:/\/\*/,contains:[e.inherit(e.APOS_STRING_MODE,{className:"string",relevance:0}),e.inherit(e.QUOTE_STRING_MODE,{className:"string",relevance:0}),{className:"function",beginKeywords:"subroutine function program",illegal:"[${=\\n]",contains:[e.UNDERSCORE_TITLE_MODE,{className:"params",begin:"\\(",end:"\\)"}]},e.COMMENT("!","$",{relevance:0}),e.COMMENT("begin_doc","end_doc",{relevance:10}),c]}}},3204:r=>{r.exports=function a(e){const t="[A-Za-z\u0410-\u042f\u0430-\u044f\u0451\u0401_!][A-Za-z\u0410-\u042f\u0430-\u044f\u0451\u0401_0-9]*",Ee={className:"number",begin:e.NUMBER_RE,relevance:0},Q={className:"string",variants:[{begin:'"',end:'"'},{begin:"'",end:"'"}]},He={className:"doctag",begin:"\\b(?:TODO|DONE|BEGIN|END|STUB|CHG|FIXME|NOTE|BUG|XXX)\\b",relevance:0},Ze={variants:[{className:"comment",begin:"//",end:"$",relevance:0,contains:[e.PHRASAL_WORDS_MODE,He]},{className:"comment",begin:"/\\*",end:"\\*/",relevance:0,contains:[e.PHRASAL_WORDS_MODE,He]}]},A={$pattern:t,keyword:"and \u0438 else \u0438\u043d\u0430\u0447\u0435 endexcept endfinally endforeach \u043a\u043e\u043d\u0435\u0446\u0432\u0441\u0435 endif \u043a\u043e\u043d\u0435\u0446\u0435\u0441\u043b\u0438 endwhile \u043a\u043e\u043d\u0435\u0446\u043f\u043e\u043a\u0430 except exitfor finally foreach \u0432\u0441\u0435 if \u0435\u0441\u043b\u0438 in \u0432 not \u043d\u0435 or \u0438\u043b\u0438 try while \u043f\u043e\u043a\u0430 ",built_in:"SYSRES_CONST_ACCES_RIGHT_TYPE_EDIT SYSRES_CONST_ACCES_RIGHT_TYPE_FULL SYSRES_CONST_ACCES_RIGHT_TYPE_VIEW SYSRES_CONST_ACCESS_MODE_REQUISITE_CODE SYSRES_CONST_ACCESS_NO_ACCESS_VIEW SYSRES_CONST_ACCESS_NO_ACCESS_VIEW_CODE SYSRES_CONST_ACCESS_RIGHTS_ADD_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_ADD_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_CHANGE_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_CHANGE_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_DELETE_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_DELETE_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_EXECUTE_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_EXECUTE_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_NO_ACCESS_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_NO_ACCESS_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_RATIFY_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_RATIFY_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_VIEW SYSRES_CONST_ACCESS_RIGHTS_VIEW_CODE SYSRES_CONST_ACCESS_RIGHTS_VIEW_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_VIEW_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_TYPE_CHANGE SYSRES_CONST_ACCESS_TYPE_CHANGE_CODE SYSRES_CONST_ACCESS_TYPE_EXISTS SYSRES_CONST_ACCESS_TYPE_EXISTS_CODE SYSRES_CONST_ACCESS_TYPE_FULL SYSRES_CONST_ACCESS_TYPE_FULL_CODE SYSRES_CONST_ACCESS_TYPE_VIEW SYSRES_CONST_ACCESS_TYPE_VIEW_CODE SYSRES_CONST_ACTION_TYPE_ABORT SYSRES_CONST_ACTION_TYPE_ACCEPT SYSRES_CONST_ACTION_TYPE_ACCESS_RIGHTS SYSRES_CONST_ACTION_TYPE_ADD_ATTACHMENT SYSRES_CONST_ACTION_TYPE_CHANGE_CARD SYSRES_CONST_ACTION_TYPE_CHANGE_KIND SYSRES_CONST_ACTION_TYPE_CHANGE_STORAGE SYSRES_CONST_ACTION_TYPE_CONTINUE SYSRES_CONST_ACTION_TYPE_COPY SYSRES_CONST_ACTION_TYPE_CREATE SYSRES_CONST_ACTION_TYPE_CREATE_VERSION SYSRES_CONST_ACTION_TYPE_DELETE SYSRES_CONST_ACTION_TYPE_DELETE_ATTACHMENT SYSRES_CONST_ACTION_TYPE_DELETE_VERSION SYSRES_CONST_ACTION_TYPE_DISABLE_DELEGATE_ACCESS_RIGHTS SYSRES_CONST_ACTION_TYPE_ENABLE_DELEGATE_ACCESS_RIGHTS SYSRES_CONST_ACTION_TYPE_ENCRYPTION_BY_CERTIFICATE SYSRES_CONST_ACTION_TYPE_ENCRYPTION_BY_CERTIFICATE_AND_PASSWORD SYSRES_CONST_ACTION_TYPE_ENCRYPTION_BY_PASSWORD SYSRES_CONST_ACTION_TYPE_EXPORT_WITH_LOCK SYSRES_CONST_ACTION_TYPE_EXPORT_WITHOUT_LOCK SYSRES_CONST_ACTION_TYPE_IMPORT_WITH_UNLOCK SYSRES_CONST_ACTION_TYPE_IMPORT_WITHOUT_UNLOCK SYSRES_CONST_ACTION_TYPE_LIFE_CYCLE_STAGE SYSRES_CONST_ACTION_TYPE_LOCK SYSRES_CONST_ACTION_TYPE_LOCK_FOR_SERVER SYSRES_CONST_ACTION_TYPE_LOCK_MODIFY SYSRES_CONST_ACTION_TYPE_MARK_AS_READED SYSRES_CONST_ACTION_TYPE_MARK_AS_UNREADED SYSRES_CONST_ACTION_TYPE_MODIFY SYSRES_CONST_ACTION_TYPE_MODIFY_CARD SYSRES_CONST_ACTION_TYPE_MOVE_TO_ARCHIVE SYSRES_CONST_ACTION_TYPE_OFF_ENCRYPTION SYSRES_CONST_ACTION_TYPE_PASSWORD_CHANGE SYSRES_CONST_ACTION_TYPE_PERFORM SYSRES_CONST_ACTION_TYPE_RECOVER_FROM_LOCAL_COPY SYSRES_CONST_ACTION_TYPE_RESTART SYSRES_CONST_ACTION_TYPE_RESTORE_FROM_ARCHIVE SYSRES_CONST_ACTION_TYPE_REVISION SYSRES_CONST_ACTION_TYPE_SEND_BY_MAIL SYSRES_CONST_ACTION_TYPE_SIGN SYSRES_CONST_ACTION_TYPE_START SYSRES_CONST_ACTION_TYPE_UNLOCK SYSRES_CONST_ACTION_TYPE_UNLOCK_FROM_SERVER SYSRES_CONST_ACTION_TYPE_VERSION_STATE SYSRES_CONST_ACTION_TYPE_VERSION_VISIBILITY SYSRES_CONST_ACTION_TYPE_VIEW SYSRES_CONST_ACTION_TYPE_VIEW_SHADOW_COPY SYSRES_CONST_ACTION_TYPE_WORKFLOW_DESCRIPTION_MODIFY SYSRES_CONST_ACTION_TYPE_WRITE_HISTORY SYSRES_CONST_ACTIVE_VERSION_STATE_PICK_VALUE SYSRES_CONST_ADD_REFERENCE_MODE_NAME SYSRES_CONST_ADDITION_REQUISITE_CODE SYSRES_CONST_ADDITIONAL_PARAMS_REQUISITE_CODE SYSRES_CONST_ADITIONAL_JOB_END_DATE_REQUISITE_NAME SYSRES_CONST_ADITIONAL_JOB_READ_REQUISITE_NAME SYSRES_CONST_ADITIONAL_JOB_START_DATE_REQUISITE_NAME SYSRES_CONST_ADITIONAL_JOB_STATE_REQUISITE_NAME SYSRES_CONST_ADMINISTRATION_HISTORY_ADDING_USER_TO_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_ADDING_USER_TO_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_COMP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_COMP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_USER_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_USER_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_CREATION SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_CREATION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_DELETION SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_DELETION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_COMP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_COMP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_FROM_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_FROM_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_RESTRICTION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_RESTRICTION_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_PRIVILEGE_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_PRIVILEGE_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_RIGHTS_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_RIGHTS_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_IS_MAIN_SERVER_CHANGED_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_IS_MAIN_SERVER_CHANGED_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_IS_PUBLIC_CHANGED_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_IS_PUBLIC_CHANGED_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_RESTRICTION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_RESTRICTION_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_PRIVILEGE_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_PRIVILEGE_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_RIGHTS_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_RIGHTS_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_CREATION SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_CREATION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_DELETION SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_DELETION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_CATEGORY_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_CATEGORY_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_COMP_TITLE_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_COMP_TITLE_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_FULL_NAME_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_FULL_NAME_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_PARENT_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_PARENT_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_AUTH_TYPE_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_AUTH_TYPE_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_LOGIN_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_LOGIN_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_STATUS_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_STATUS_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_USER_PASSWORD_CHANGE SYSRES_CONST_ADMINISTRATION_HISTORY_USER_PASSWORD_CHANGE_ACTION SYSRES_CONST_ALL_ACCEPT_CONDITION_RUS SYSRES_CONST_ALL_USERS_GROUP SYSRES_CONST_ALL_USERS_GROUP_NAME SYSRES_CONST_ALL_USERS_SERVER_GROUP_NAME SYSRES_CONST_ALLOWED_ACCESS_TYPE_CODE SYSRES_CONST_ALLOWED_ACCESS_TYPE_NAME SYSRES_CONST_APP_VIEWER_TYPE_REQUISITE_CODE SYSRES_CONST_APPROVING_SIGNATURE_NAME SYSRES_CONST_APPROVING_SIGNATURE_REQUISITE_CODE SYSRES_CONST_ASSISTANT_SUBSTITUE_TYPE SYSRES_CONST_ASSISTANT_SUBSTITUE_TYPE_CODE SYSRES_CONST_ATTACH_TYPE_COMPONENT_TOKEN SYSRES_CONST_ATTACH_TYPE_DOC SYSRES_CONST_ATTACH_TYPE_EDOC SYSRES_CONST_ATTACH_TYPE_FOLDER SYSRES_CONST_ATTACH_TYPE_JOB SYSRES_CONST_ATTACH_TYPE_REFERENCE SYSRES_CONST_ATTACH_TYPE_TASK SYSRES_CONST_AUTH_ENCODED_PASSWORD SYSRES_CONST_AUTH_ENCODED_PASSWORD_CODE SYSRES_CONST_AUTH_NOVELL SYSRES_CONST_AUTH_PASSWORD SYSRES_CONST_AUTH_PASSWORD_CODE SYSRES_CONST_AUTH_WINDOWS SYSRES_CONST_AUTHENTICATING_SIGNATURE_NAME SYSRES_CONST_AUTHENTICATING_SIGNATURE_REQUISITE_CODE SYSRES_CONST_AUTO_ENUM_METHOD_FLAG SYSRES_CONST_AUTO_NUMERATION_CODE SYSRES_CONST_AUTO_STRONG_ENUM_METHOD_FLAG SYSRES_CONST_AUTOTEXT_NAME_REQUISITE_CODE SYSRES_CONST_AUTOTEXT_TEXT_REQUISITE_CODE SYSRES_CONST_AUTOTEXT_USAGE_ALL SYSRES_CONST_AUTOTEXT_USAGE_ALL_CODE SYSRES_CONST_AUTOTEXT_USAGE_SIGN SYSRES_CONST_AUTOTEXT_USAGE_SIGN_CODE SYSRES_CONST_AUTOTEXT_USAGE_WORK SYSRES_CONST_AUTOTEXT_USAGE_WORK_CODE SYSRES_CONST_AUTOTEXT_USE_ANYWHERE_CODE SYSRES_CONST_AUTOTEXT_USE_ON_SIGNING_CODE SYSRES_CONST_AUTOTEXT_USE_ON_WORK_CODE SYSRES_CONST_BEGIN_DATE_REQUISITE_CODE SYSRES_CONST_BLACK_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_BLUE_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_BTN_PART SYSRES_CONST_CALCULATED_ROLE_TYPE_CODE SYSRES_CONST_CALL_TYPE_VARIABLE_BUTTON_VALUE SYSRES_CONST_CALL_TYPE_VARIABLE_PROGRAM_VALUE SYSRES_CONST_CANCEL_MESSAGE_FUNCTION_RESULT SYSRES_CONST_CARD_PART SYSRES_CONST_CARD_REFERENCE_MODE_NAME SYSRES_CONST_CERTIFICATE_TYPE_REQUISITE_ENCRYPT_VALUE SYSRES_CONST_CERTIFICATE_TYPE_REQUISITE_SIGN_AND_ENCRYPT_VALUE SYSRES_CONST_CERTIFICATE_TYPE_REQUISITE_SIGN_VALUE SYSRES_CONST_CHECK_PARAM_VALUE_DATE_PARAM_TYPE SYSRES_CONST_CHECK_PARAM_VALUE_FLOAT_PARAM_TYPE SYSRES_CONST_CHECK_PARAM_VALUE_INTEGER_PARAM_TYPE SYSRES_CONST_CHECK_PARAM_VALUE_PICK_PARAM_TYPE SYSRES_CONST_CHECK_PARAM_VALUE_REEFRENCE_PARAM_TYPE SYSRES_CONST_CLOSED_RECORD_FLAG_VALUE_FEMININE SYSRES_CONST_CLOSED_RECORD_FLAG_VALUE_MASCULINE SYSRES_CONST_CODE_COMPONENT_TYPE_ADMIN SYSRES_CONST_CODE_COMPONENT_TYPE_DEVELOPER SYSRES_CONST_CODE_COMPONENT_TYPE_DOCS SYSRES_CONST_CODE_COMPONENT_TYPE_EDOC_CARDS SYSRES_CONST_CODE_COMPONENT_TYPE_EXTERNAL_EXECUTABLE SYSRES_CONST_CODE_COMPONENT_TYPE_OTHER SYSRES_CONST_CODE_COMPONENT_TYPE_REFERENCE SYSRES_CONST_CODE_COMPONENT_TYPE_REPORT SYSRES_CONST_CODE_COMPONENT_TYPE_SCRIPT SYSRES_CONST_CODE_COMPONENT_TYPE_URL SYSRES_CONST_CODE_REQUISITE_ACCESS SYSRES_CONST_CODE_REQUISITE_CODE SYSRES_CONST_CODE_REQUISITE_COMPONENT SYSRES_CONST_CODE_REQUISITE_DESCRIPTION SYSRES_CONST_CODE_REQUISITE_EXCLUDE_COMPONENT SYSRES_CONST_CODE_REQUISITE_RECORD SYSRES_CONST_COMMENT_REQ_CODE SYSRES_CONST_COMMON_SETTINGS_REQUISITE_CODE SYSRES_CONST_COMP_CODE_GRD SYSRES_CONST_COMPONENT_GROUP_TYPE_REQUISITE_CODE SYSRES_CONST_COMPONENT_TYPE_ADMIN_COMPONENTS SYSRES_CONST_COMPONENT_TYPE_DEVELOPER_COMPONENTS SYSRES_CONST_COMPONENT_TYPE_DOCS SYSRES_CONST_COMPONENT_TYPE_EDOC_CARDS SYSRES_CONST_COMPONENT_TYPE_EDOCS SYSRES_CONST_COMPONENT_TYPE_EXTERNAL_EXECUTABLE SYSRES_CONST_COMPONENT_TYPE_OTHER SYSRES_CONST_COMPONENT_TYPE_REFERENCE_TYPES SYSRES_CONST_COMPONENT_TYPE_REFERENCES SYSRES_CONST_COMPONENT_TYPE_REPORTS SYSRES_CONST_COMPONENT_TYPE_SCRIPTS SYSRES_CONST_COMPONENT_TYPE_URL SYSRES_CONST_COMPONENTS_REMOTE_SERVERS_VIEW_CODE SYSRES_CONST_CONDITION_BLOCK_DESCRIPTION SYSRES_CONST_CONST_FIRM_STATUS_COMMON SYSRES_CONST_CONST_FIRM_STATUS_INDIVIDUAL SYSRES_CONST_CONST_NEGATIVE_VALUE SYSRES_CONST_CONST_POSITIVE_VALUE SYSRES_CONST_CONST_SERVER_STATUS_DONT_REPLICATE SYSRES_CONST_CONST_SERVER_STATUS_REPLICATE SYSRES_CONST_CONTENTS_REQUISITE_CODE SYSRES_CONST_DATA_TYPE_BOOLEAN SYSRES_CONST_DATA_TYPE_DATE SYSRES_CONST_DATA_TYPE_FLOAT SYSRES_CONST_DATA_TYPE_INTEGER SYSRES_CONST_DATA_TYPE_PICK SYSRES_CONST_DATA_TYPE_REFERENCE SYSRES_CONST_DATA_TYPE_STRING SYSRES_CONST_DATA_TYPE_TEXT SYSRES_CONST_DATA_TYPE_VARIANT SYSRES_CONST_DATE_CLOSE_REQ_CODE SYSRES_CONST_DATE_FORMAT_DATE_ONLY_CHAR SYSRES_CONST_DATE_OPEN_REQ_CODE SYSRES_CONST_DATE_REQUISITE SYSRES_CONST_DATE_REQUISITE_CODE SYSRES_CONST_DATE_REQUISITE_NAME SYSRES_CONST_DATE_REQUISITE_TYPE SYSRES_CONST_DATE_TYPE_CHAR SYSRES_CONST_DATETIME_FORMAT_VALUE SYSRES_CONST_DEA_ACCESS_RIGHTS_ACTION_CODE SYSRES_CONST_DESCRIPTION_LOCALIZE_ID_REQUISITE_CODE SYSRES_CONST_DESCRIPTION_REQUISITE_CODE SYSRES_CONST_DET1_PART SYSRES_CONST_DET2_PART SYSRES_CONST_DET3_PART SYSRES_CONST_DET4_PART SYSRES_CONST_DET5_PART SYSRES_CONST_DET6_PART SYSRES_CONST_DETAIL_DATASET_KEY_REQUISITE_CODE SYSRES_CONST_DETAIL_PICK_REQUISITE_CODE SYSRES_CONST_DETAIL_REQ_CODE SYSRES_CONST_DO_NOT_USE_ACCESS_TYPE_CODE SYSRES_CONST_DO_NOT_USE_ACCESS_TYPE_NAME SYSRES_CONST_DO_NOT_USE_ON_VIEW_ACCESS_TYPE_CODE SYSRES_CONST_DO_NOT_USE_ON_VIEW_ACCESS_TYPE_NAME SYSRES_CONST_DOCUMENT_STORAGES_CODE SYSRES_CONST_DOCUMENT_TEMPLATES_TYPE_NAME SYSRES_CONST_DOUBLE_REQUISITE_CODE SYSRES_CONST_EDITOR_CLOSE_FILE_OBSERV_TYPE_CODE SYSRES_CONST_EDITOR_CLOSE_PROCESS_OBSERV_TYPE_CODE SYSRES_CONST_EDITOR_TYPE_REQUISITE_CODE SYSRES_CONST_EDITORS_APPLICATION_NAME_REQUISITE_CODE SYSRES_CONST_EDITORS_CREATE_SEVERAL_PROCESSES_REQUISITE_CODE SYSRES_CONST_EDITORS_EXTENSION_REQUISITE_CODE SYSRES_CONST_EDITORS_OBSERVER_BY_PROCESS_TYPE SYSRES_CONST_EDITORS_REFERENCE_CODE SYSRES_CONST_EDITORS_REPLACE_SPEC_CHARS_REQUISITE_CODE SYSRES_CONST_EDITORS_USE_PLUGINS_REQUISITE_CODE SYSRES_CONST_EDITORS_VIEW_DOCUMENT_OPENED_TO_EDIT_CODE SYSRES_CONST_EDOC_CARD_TYPE_REQUISITE_CODE SYSRES_CONST_EDOC_CARD_TYPES_LINK_REQUISITE_CODE SYSRES_CONST_EDOC_CERTIFICATE_AND_PASSWORD_ENCODE_CODE SYSRES_CONST_EDOC_CERTIFICATE_ENCODE_CODE SYSRES_CONST_EDOC_DATE_REQUISITE_CODE SYSRES_CONST_EDOC_KIND_REFERENCE_CODE SYSRES_CONST_EDOC_KINDS_BY_TEMPLATE_ACTION_CODE SYSRES_CONST_EDOC_MANAGE_ACCESS_CODE SYSRES_CONST_EDOC_NONE_ENCODE_CODE SYSRES_CONST_EDOC_NUMBER_REQUISITE_CODE SYSRES_CONST_EDOC_PASSWORD_ENCODE_CODE SYSRES_CONST_EDOC_READONLY_ACCESS_CODE SYSRES_CONST_EDOC_SHELL_LIFE_TYPE_VIEW_VALUE SYSRES_CONST_EDOC_SIZE_RESTRICTION_PRIORITY_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_CHECK_ACCESS_RIGHTS_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_COMPUTER_NAME_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_DATABASE_NAME_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_EDIT_IN_STORAGE_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_LOCAL_PATH_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_SHARED_SOURCE_NAME_REQUISITE_CODE SYSRES_CONST_EDOC_TEMPLATE_REQUISITE_CODE SYSRES_CONST_EDOC_TYPES_REFERENCE_CODE SYSRES_CONST_EDOC_VERSION_ACTIVE_STAGE_CODE SYSRES_CONST_EDOC_VERSION_DESIGN_STAGE_CODE SYSRES_CONST_EDOC_VERSION_OBSOLETE_STAGE_CODE SYSRES_CONST_EDOC_WRITE_ACCES_CODE SYSRES_CONST_EDOCUMENT_CARD_REQUISITES_REFERENCE_CODE_SELECTED_REQUISITE SYSRES_CONST_ENCODE_CERTIFICATE_TYPE_CODE SYSRES_CONST_END_DATE_REQUISITE_CODE SYSRES_CONST_ENUMERATION_TYPE_REQUISITE_CODE SYSRES_CONST_EXECUTE_ACCESS_RIGHTS_TYPE_CODE SYSRES_CONST_EXECUTIVE_FILE_STORAGE_TYPE SYSRES_CONST_EXIST_CONST SYSRES_CONST_EXIST_VALUE SYSRES_CONST_EXPORT_LOCK_TYPE_ASK SYSRES_CONST_EXPORT_LOCK_TYPE_WITH_LOCK SYSRES_CONST_EXPORT_LOCK_TYPE_WITHOUT_LOCK SYSRES_CONST_EXPORT_VERSION_TYPE_ASK SYSRES_CONST_EXPORT_VERSION_TYPE_LAST SYSRES_CONST_EXPORT_VERSION_TYPE_LAST_ACTIVE SYSRES_CONST_EXTENSION_REQUISITE_CODE SYSRES_CONST_FILTER_NAME_REQUISITE_CODE SYSRES_CONST_FILTER_REQUISITE_CODE SYSRES_CONST_FILTER_TYPE_COMMON_CODE SYSRES_CONST_FILTER_TYPE_COMMON_NAME SYSRES_CONST_FILTER_TYPE_USER_CODE SYSRES_CONST_FILTER_TYPE_USER_NAME SYSRES_CONST_FILTER_VALUE_REQUISITE_NAME SYSRES_CONST_FLOAT_NUMBER_FORMAT_CHAR SYSRES_CONST_FLOAT_REQUISITE_TYPE SYSRES_CONST_FOLDER_AUTHOR_VALUE SYSRES_CONST_FOLDER_KIND_ANY_OBJECTS SYSRES_CONST_FOLDER_KIND_COMPONENTS SYSRES_CONST_FOLDER_KIND_EDOCS SYSRES_CONST_FOLDER_KIND_JOBS SYSRES_CONST_FOLDER_KIND_TASKS SYSRES_CONST_FOLDER_TYPE_COMMON SYSRES_CONST_FOLDER_TYPE_COMPONENT SYSRES_CONST_FOLDER_TYPE_FAVORITES SYSRES_CONST_FOLDER_TYPE_INBOX SYSRES_CONST_FOLDER_TYPE_OUTBOX SYSRES_CONST_FOLDER_TYPE_QUICK_LAUNCH SYSRES_CONST_FOLDER_TYPE_SEARCH SYSRES_CONST_FOLDER_TYPE_SHORTCUTS SYSRES_CONST_FOLDER_TYPE_USER SYSRES_CONST_FROM_DICTIONARY_ENUM_METHOD_FLAG SYSRES_CONST_FULL_SUBSTITUTE_TYPE SYSRES_CONST_FULL_SUBSTITUTE_TYPE_CODE SYSRES_CONST_FUNCTION_CANCEL_RESULT SYSRES_CONST_FUNCTION_CATEGORY_SYSTEM SYSRES_CONST_FUNCTION_CATEGORY_USER SYSRES_CONST_FUNCTION_FAILURE_RESULT SYSRES_CONST_FUNCTION_SAVE_RESULT SYSRES_CONST_GENERATED_REQUISITE SYSRES_CONST_GREEN_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_GROUP_ACCOUNT_TYPE_VALUE_CODE SYSRES_CONST_GROUP_CATEGORY_NORMAL_CODE SYSRES_CONST_GROUP_CATEGORY_NORMAL_NAME SYSRES_CONST_GROUP_CATEGORY_SERVICE_CODE SYSRES_CONST_GROUP_CATEGORY_SERVICE_NAME SYSRES_CONST_GROUP_COMMON_CATEGORY_FIELD_VALUE SYSRES_CONST_GROUP_FULL_NAME_REQUISITE_CODE SYSRES_CONST_GROUP_NAME_REQUISITE_CODE SYSRES_CONST_GROUP_RIGHTS_T_REQUISITE_CODE SYSRES_CONST_GROUP_SERVER_CODES_REQUISITE_CODE SYSRES_CONST_GROUP_SERVER_NAME_REQUISITE_CODE SYSRES_CONST_GROUP_SERVICE_CATEGORY_FIELD_VALUE SYSRES_CONST_GROUP_USER_REQUISITE_CODE SYSRES_CONST_GROUPS_REFERENCE_CODE SYSRES_CONST_GROUPS_REQUISITE_CODE SYSRES_CONST_HIDDEN_MODE_NAME SYSRES_CONST_HIGH_LVL_REQUISITE_CODE SYSRES_CONST_HISTORY_ACTION_CREATE_CODE SYSRES_CONST_HISTORY_ACTION_DELETE_CODE SYSRES_CONST_HISTORY_ACTION_EDIT_CODE SYSRES_CONST_HOUR_CHAR SYSRES_CONST_ID_REQUISITE_CODE SYSRES_CONST_IDSPS_REQUISITE_CODE SYSRES_CONST_IMAGE_MODE_COLOR SYSRES_CONST_IMAGE_MODE_GREYSCALE SYSRES_CONST_IMAGE_MODE_MONOCHROME SYSRES_CONST_IMPORTANCE_HIGH SYSRES_CONST_IMPORTANCE_LOW SYSRES_CONST_IMPORTANCE_NORMAL SYSRES_CONST_IN_DESIGN_VERSION_STATE_PICK_VALUE SYSRES_CONST_INCOMING_WORK_RULE_TYPE_CODE SYSRES_CONST_INT_REQUISITE SYSRES_CONST_INT_REQUISITE_TYPE SYSRES_CONST_INTEGER_NUMBER_FORMAT_CHAR SYSRES_CONST_INTEGER_TYPE_CHAR SYSRES_CONST_IS_GENERATED_REQUISITE_NEGATIVE_VALUE SYSRES_CONST_IS_PUBLIC_ROLE_REQUISITE_CODE SYSRES_CONST_IS_REMOTE_USER_NEGATIVE_VALUE SYSRES_CONST_IS_REMOTE_USER_POSITIVE_VALUE SYSRES_CONST_IS_STORED_REQUISITE_NEGATIVE_VALUE SYSRES_CONST_IS_STORED_REQUISITE_STORED_VALUE SYSRES_CONST_ITALIC_LIFE_CYCLE_STAGE_DRAW_STYLE SYSRES_CONST_JOB_BLOCK_DESCRIPTION SYSRES_CONST_JOB_KIND_CONTROL_JOB SYSRES_CONST_JOB_KIND_JOB SYSRES_CONST_JOB_KIND_NOTICE SYSRES_CONST_JOB_STATE_ABORTED SYSRES_CONST_JOB_STATE_COMPLETE SYSRES_CONST_JOB_STATE_WORKING SYSRES_CONST_KIND_REQUISITE_CODE SYSRES_CONST_KIND_REQUISITE_NAME SYSRES_CONST_KINDS_CREATE_SHADOW_COPIES_REQUISITE_CODE SYSRES_CONST_KINDS_DEFAULT_EDOC_LIFE_STAGE_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_ALL_TEPLATES_ALLOWED_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_ALLOW_LIFE_CYCLE_STAGE_CHANGING_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_ALLOW_MULTIPLE_ACTIVE_VERSIONS_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_SHARE_ACCES_RIGHTS_BY_DEFAULT_CODE SYSRES_CONST_KINDS_EDOC_TEMPLATE_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_TYPE_REQUISITE_CODE SYSRES_CONST_KINDS_SIGNERS_REQUISITES_CODE SYSRES_CONST_KOD_INPUT_TYPE SYSRES_CONST_LAST_UPDATE_DATE_REQUISITE_CODE SYSRES_CONST_LIFE_CYCLE_START_STAGE_REQUISITE_CODE SYSRES_CONST_LILAC_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_LINK_OBJECT_KIND_COMPONENT SYSRES_CONST_LINK_OBJECT_KIND_DOCUMENT SYSRES_CONST_LINK_OBJECT_KIND_EDOC SYSRES_CONST_LINK_OBJECT_KIND_FOLDER SYSRES_CONST_LINK_OBJECT_KIND_JOB SYSRES_CONST_LINK_OBJECT_KIND_REFERENCE SYSRES_CONST_LINK_OBJECT_KIND_TASK SYSRES_CONST_LINK_REF_TYPE_REQUISITE_CODE SYSRES_CONST_LIST_REFERENCE_MODE_NAME SYSRES_CONST_LOCALIZATION_DICTIONARY_MAIN_VIEW_CODE SYSRES_CONST_MAIN_VIEW_CODE SYSRES_CONST_MANUAL_ENUM_METHOD_FLAG SYSRES_CONST_MASTER_COMP_TYPE_REQUISITE_CODE SYSRES_CONST_MASTER_TABLE_REC_ID_REQUISITE_CODE SYSRES_CONST_MAXIMIZED_MODE_NAME SYSRES_CONST_ME_VALUE SYSRES_CONST_MESSAGE_ATTENTION_CAPTION SYSRES_CONST_MESSAGE_CONFIRMATION_CAPTION SYSRES_CONST_MESSAGE_ERROR_CAPTION SYSRES_CONST_MESSAGE_INFORMATION_CAPTION SYSRES_CONST_MINIMIZED_MODE_NAME SYSRES_CONST_MINUTE_CHAR SYSRES_CONST_MODULE_REQUISITE_CODE SYSRES_CONST_MONITORING_BLOCK_DESCRIPTION SYSRES_CONST_MONTH_FORMAT_VALUE SYSRES_CONST_NAME_LOCALIZE_ID_REQUISITE_CODE SYSRES_CONST_NAME_REQUISITE_CODE SYSRES_CONST_NAME_SINGULAR_REQUISITE_CODE SYSRES_CONST_NAMEAN_INPUT_TYPE SYSRES_CONST_NEGATIVE_PICK_VALUE SYSRES_CONST_NEGATIVE_VALUE SYSRES_CONST_NO SYSRES_CONST_NO_PICK_VALUE SYSRES_CONST_NO_SIGNATURE_REQUISITE_CODE SYSRES_CONST_NO_VALUE SYSRES_CONST_NONE_ACCESS_RIGHTS_TYPE_CODE SYSRES_CONST_NONOPERATING_RECORD_FLAG_VALUE SYSRES_CONST_NONOPERATING_RECORD_FLAG_VALUE_MASCULINE SYSRES_CONST_NORMAL_ACCESS_RIGHTS_TYPE_CODE SYSRES_CONST_NORMAL_LIFE_CYCLE_STAGE_DRAW_STYLE SYSRES_CONST_NORMAL_MODE_NAME SYSRES_CONST_NOT_ALLOWED_ACCESS_TYPE_CODE SYSRES_CONST_NOT_ALLOWED_ACCESS_TYPE_NAME SYSRES_CONST_NOTE_REQUISITE_CODE SYSRES_CONST_NOTICE_BLOCK_DESCRIPTION SYSRES_CONST_NUM_REQUISITE SYSRES_CONST_NUM_STR_REQUISITE_CODE SYSRES_CONST_NUMERATION_AUTO_NOT_STRONG SYSRES_CONST_NUMERATION_AUTO_STRONG SYSRES_CONST_NUMERATION_FROM_DICTONARY SYSRES_CONST_NUMERATION_MANUAL SYSRES_CONST_NUMERIC_TYPE_CHAR SYSRES_CONST_NUMREQ_REQUISITE_CODE SYSRES_CONST_OBSOLETE_VERSION_STATE_PICK_VALUE SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE_CODE SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE_FEMININE SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE_MASCULINE SYSRES_CONST_OPTIONAL_FORM_COMP_REQCODE_PREFIX SYSRES_CONST_ORANGE_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_ORIGINALREF_REQUISITE_CODE SYSRES_CONST_OURFIRM_REF_CODE SYSRES_CONST_OURFIRM_REQUISITE_CODE SYSRES_CONST_OURFIRM_VAR SYSRES_CONST_OUTGOING_WORK_RULE_TYPE_CODE SYSRES_CONST_PICK_NEGATIVE_RESULT SYSRES_CONST_PICK_POSITIVE_RESULT SYSRES_CONST_PICK_REQUISITE SYSRES_CONST_PICK_REQUISITE_TYPE SYSRES_CONST_PICK_TYPE_CHAR SYSRES_CONST_PLAN_STATUS_REQUISITE_CODE SYSRES_CONST_PLATFORM_VERSION_COMMENT SYSRES_CONST_PLUGINS_SETTINGS_DESCRIPTION_REQUISITE_CODE SYSRES_CONST_POSITIVE_PICK_VALUE SYSRES_CONST_POWER_TO_CREATE_ACTION_CODE SYSRES_CONST_POWER_TO_SIGN_ACTION_CODE SYSRES_CONST_PRIORITY_REQUISITE_CODE SYSRES_CONST_QUALIFIED_TASK_TYPE SYSRES_CONST_QUALIFIED_TASK_TYPE_CODE SYSRES_CONST_RECSTAT_REQUISITE_CODE SYSRES_CONST_RED_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_REF_ID_T_REF_TYPE_REQUISITE_CODE SYSRES_CONST_REF_REQUISITE SYSRES_CONST_REF_REQUISITE_TYPE SYSRES_CONST_REF_REQUISITES_REFERENCE_CODE_SELECTED_REQUISITE SYSRES_CONST_REFERENCE_RECORD_HISTORY_CREATE_ACTION_CODE SYSRES_CONST_REFERENCE_RECORD_HISTORY_DELETE_ACTION_CODE SYSRES_CONST_REFERENCE_RECORD_HISTORY_MODIFY_ACTION_CODE SYSRES_CONST_REFERENCE_TYPE_CHAR SYSRES_CONST_REFERENCE_TYPE_REQUISITE_NAME SYSRES_CONST_REFERENCES_ADD_PARAMS_REQUISITE_CODE SYSRES_CONST_REFERENCES_DISPLAY_REQUISITE_REQUISITE_CODE SYSRES_CONST_REMOTE_SERVER_STATUS_WORKING SYSRES_CONST_REMOTE_SERVER_TYPE_MAIN SYSRES_CONST_REMOTE_SERVER_TYPE_SECONDARY SYSRES_CONST_REMOTE_USER_FLAG_VALUE_CODE SYSRES_CONST_REPORT_APP_EDITOR_INTERNAL SYSRES_CONST_REPORT_BASE_REPORT_ID_REQUISITE_CODE SYSRES_CONST_REPORT_BASE_REPORT_REQUISITE_CODE SYSRES_CONST_REPORT_SCRIPT_REQUISITE_CODE SYSRES_CONST_REPORT_TEMPLATE_REQUISITE_CODE SYSRES_CONST_REPORT_VIEWER_CODE_REQUISITE_CODE SYSRES_CONST_REQ_ALLOW_COMPONENT_DEFAULT_VALUE SYSRES_CONST_REQ_ALLOW_RECORD_DEFAULT_VALUE SYSRES_CONST_REQ_ALLOW_SERVER_COMPONENT_DEFAULT_VALUE SYSRES_CONST_REQ_MODE_AVAILABLE_CODE SYSRES_CONST_REQ_MODE_EDIT_CODE SYSRES_CONST_REQ_MODE_HIDDEN_CODE SYSRES_CONST_REQ_MODE_NOT_AVAILABLE_CODE SYSRES_CONST_REQ_MODE_VIEW_CODE SYSRES_CONST_REQ_NUMBER_REQUISITE_CODE SYSRES_CONST_REQ_SECTION_VALUE SYSRES_CONST_REQ_TYPE_VALUE SYSRES_CONST_REQUISITE_FORMAT_BY_UNIT SYSRES_CONST_REQUISITE_FORMAT_DATE_FULL SYSRES_CONST_REQUISITE_FORMAT_DATE_TIME SYSRES_CONST_REQUISITE_FORMAT_LEFT SYSRES_CONST_REQUISITE_FORMAT_RIGHT SYSRES_CONST_REQUISITE_FORMAT_WITHOUT_UNIT SYSRES_CONST_REQUISITE_NUMBER_REQUISITE_CODE SYSRES_CONST_REQUISITE_SECTION_ACTIONS SYSRES_CONST_REQUISITE_SECTION_BUTTON SYSRES_CONST_REQUISITE_SECTION_BUTTONS SYSRES_CONST_REQUISITE_SECTION_CARD SYSRES_CONST_REQUISITE_SECTION_TABLE SYSRES_CONST_REQUISITE_SECTION_TABLE10 SYSRES_CONST_REQUISITE_SECTION_TABLE11 SYSRES_CONST_REQUISITE_SECTION_TABLE12 SYSRES_CONST_REQUISITE_SECTION_TABLE13 SYSRES_CONST_REQUISITE_SECTION_TABLE14 SYSRES_CONST_REQUISITE_SECTION_TABLE15 SYSRES_CONST_REQUISITE_SECTION_TABLE16 SYSRES_CONST_REQUISITE_SECTION_TABLE17 SYSRES_CONST_REQUISITE_SECTION_TABLE18 SYSRES_CONST_REQUISITE_SECTION_TABLE19 SYSRES_CONST_REQUISITE_SECTION_TABLE2 SYSRES_CONST_REQUISITE_SECTION_TABLE20 SYSRES_CONST_REQUISITE_SECTION_TABLE21 SYSRES_CONST_REQUISITE_SECTION_TABLE22 SYSRES_CONST_REQUISITE_SECTION_TABLE23 SYSRES_CONST_REQUISITE_SECTION_TABLE24 SYSRES_CONST_REQUISITE_SECTION_TABLE3 SYSRES_CONST_REQUISITE_SECTION_TABLE4 SYSRES_CONST_REQUISITE_SECTION_TABLE5 SYSRES_CONST_REQUISITE_SECTION_TABLE6 SYSRES_CONST_REQUISITE_SECTION_TABLE7 SYSRES_CONST_REQUISITE_SECTION_TABLE8 SYSRES_CONST_REQUISITE_SECTION_TABLE9 SYSRES_CONST_REQUISITES_PSEUDOREFERENCE_REQUISITE_NUMBER_REQUISITE_CODE SYSRES_CONST_RIGHT_ALIGNMENT_CODE SYSRES_CONST_ROLES_REFERENCE_CODE SYSRES_CONST_ROUTE_STEP_AFTER_RUS SYSRES_CONST_ROUTE_STEP_AND_CONDITION_RUS SYSRES_CONST_ROUTE_STEP_OR_CONDITION_RUS SYSRES_CONST_ROUTE_TYPE_COMPLEX SYSRES_CONST_ROUTE_TYPE_PARALLEL SYSRES_CONST_ROUTE_TYPE_SERIAL SYSRES_CONST_SBDATASETDESC_NEGATIVE_VALUE SYSRES_CONST_SBDATASETDESC_POSITIVE_VALUE SYSRES_CONST_SBVIEWSDESC_POSITIVE_VALUE SYSRES_CONST_SCRIPT_BLOCK_DESCRIPTION SYSRES_CONST_SEARCH_BY_TEXT_REQUISITE_CODE SYSRES_CONST_SEARCHES_COMPONENT_CONTENT SYSRES_CONST_SEARCHES_CRITERIA_ACTION_NAME SYSRES_CONST_SEARCHES_EDOC_CONTENT SYSRES_CONST_SEARCHES_FOLDER_CONTENT SYSRES_CONST_SEARCHES_JOB_CONTENT SYSRES_CONST_SEARCHES_REFERENCE_CODE SYSRES_CONST_SEARCHES_TASK_CONTENT SYSRES_CONST_SECOND_CHAR SYSRES_CONST_SECTION_REQUISITE_ACTIONS_VALUE SYSRES_CONST_SECTION_REQUISITE_CARD_VALUE SYSRES_CONST_SECTION_REQUISITE_CODE SYSRES_CONST_SECTION_REQUISITE_DETAIL_1_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_2_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_3_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_4_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_5_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_6_VALUE SYSRES_CONST_SELECT_REFERENCE_MODE_NAME SYSRES_CONST_SELECT_TYPE_SELECTABLE SYSRES_CONST_SELECT_TYPE_SELECTABLE_ONLY_CHILD SYSRES_CONST_SELECT_TYPE_SELECTABLE_WITH_CHILD SYSRES_CONST_SELECT_TYPE_UNSLECTABLE SYSRES_CONST_SERVER_TYPE_MAIN SYSRES_CONST_SERVICE_USER_CATEGORY_FIELD_VALUE SYSRES_CONST_SETTINGS_USER_REQUISITE_CODE SYSRES_CONST_SIGNATURE_AND_ENCODE_CERTIFICATE_TYPE_CODE SYSRES_CONST_SIGNATURE_CERTIFICATE_TYPE_CODE SYSRES_CONST_SINGULAR_TITLE_REQUISITE_CODE SYSRES_CONST_SQL_SERVER_AUTHENTIFICATION_FLAG_VALUE_CODE SYSRES_CONST_SQL_SERVER_ENCODE_AUTHENTIFICATION_FLAG_VALUE_CODE SYSRES_CONST_STANDART_ROUTE_REFERENCE_CODE SYSRES_CONST_STANDART_ROUTE_REFERENCE_COMMENT_REQUISITE_CODE SYSRES_CONST_STANDART_ROUTES_GROUPS_REFERENCE_CODE SYSRES_CONST_STATE_REQ_NAME SYSRES_CONST_STATE_REQUISITE_ACTIVE_VALUE SYSRES_CONST_STATE_REQUISITE_CLOSED_VALUE SYSRES_CONST_STATE_REQUISITE_CODE SYSRES_CONST_STATIC_ROLE_TYPE_CODE SYSRES_CONST_STATUS_PLAN_DEFAULT_VALUE SYSRES_CONST_STATUS_VALUE_AUTOCLEANING SYSRES_CONST_STATUS_VALUE_BLUE_SQUARE SYSRES_CONST_STATUS_VALUE_COMPLETE SYSRES_CONST_STATUS_VALUE_GREEN_SQUARE SYSRES_CONST_STATUS_VALUE_ORANGE_SQUARE SYSRES_CONST_STATUS_VALUE_PURPLE_SQUARE SYSRES_CONST_STATUS_VALUE_RED_SQUARE SYSRES_CONST_STATUS_VALUE_SUSPEND SYSRES_CONST_STATUS_VALUE_YELLOW_SQUARE SYSRES_CONST_STDROUTE_SHOW_TO_USERS_REQUISITE_CODE SYSRES_CONST_STORAGE_TYPE_FILE SYSRES_CONST_STORAGE_TYPE_SQL_SERVER SYSRES_CONST_STR_REQUISITE SYSRES_CONST_STRIKEOUT_LIFE_CYCLE_STAGE_DRAW_STYLE SYSRES_CONST_STRING_FORMAT_LEFT_ALIGN_CHAR SYSRES_CONST_STRING_FORMAT_RIGHT_ALIGN_CHAR SYSRES_CONST_STRING_REQUISITE_CODE SYSRES_CONST_STRING_REQUISITE_TYPE SYSRES_CONST_STRING_TYPE_CHAR SYSRES_CONST_SUBSTITUTES_PSEUDOREFERENCE_CODE SYSRES_CONST_SUBTASK_BLOCK_DESCRIPTION SYSRES_CONST_SYSTEM_SETTING_CURRENT_USER_PARAM_VALUE SYSRES_CONST_SYSTEM_SETTING_EMPTY_VALUE_PARAM_VALUE SYSRES_CONST_SYSTEM_VERSION_COMMENT SYSRES_CONST_TASK_ACCESS_TYPE_ALL SYSRES_CONST_TASK_ACCESS_TYPE_ALL_MEMBERS SYSRES_CONST_TASK_ACCESS_TYPE_MANUAL SYSRES_CONST_TASK_ENCODE_TYPE_CERTIFICATION SYSRES_CONST_TASK_ENCODE_TYPE_CERTIFICATION_AND_PASSWORD SYSRES_CONST_TASK_ENCODE_TYPE_NONE SYSRES_CONST_TASK_ENCODE_TYPE_PASSWORD SYSRES_CONST_TASK_ROUTE_ALL_CONDITION SYSRES_CONST_TASK_ROUTE_AND_CONDITION SYSRES_CONST_TASK_ROUTE_OR_CONDITION SYSRES_CONST_TASK_STATE_ABORTED SYSRES_CONST_TASK_STATE_COMPLETE SYSRES_CONST_TASK_STATE_CONTINUED SYSRES_CONST_TASK_STATE_CONTROL SYSRES_CONST_TASK_STATE_INIT SYSRES_CONST_TASK_STATE_WORKING SYSRES_CONST_TASK_TITLE SYSRES_CONST_TASK_TYPES_GROUPS_REFERENCE_CODE SYSRES_CONST_TASK_TYPES_REFERENCE_CODE SYSRES_CONST_TEMPLATES_REFERENCE_CODE SYSRES_CONST_TEST_DATE_REQUISITE_NAME SYSRES_CONST_TEST_DEV_DATABASE_NAME SYSRES_CONST_TEST_DEV_SYSTEM_CODE SYSRES_CONST_TEST_EDMS_DATABASE_NAME SYSRES_CONST_TEST_EDMS_MAIN_CODE SYSRES_CONST_TEST_EDMS_MAIN_DB_NAME SYSRES_CONST_TEST_EDMS_SECOND_CODE SYSRES_CONST_TEST_EDMS_SECOND_DB_NAME SYSRES_CONST_TEST_EDMS_SYSTEM_CODE SYSRES_CONST_TEST_NUMERIC_REQUISITE_NAME SYSRES_CONST_TEXT_REQUISITE SYSRES_CONST_TEXT_REQUISITE_CODE SYSRES_CONST_TEXT_REQUISITE_TYPE SYSRES_CONST_TEXT_TYPE_CHAR SYSRES_CONST_TYPE_CODE_REQUISITE_CODE SYSRES_CONST_TYPE_REQUISITE_CODE SYSRES_CONST_UNDEFINED_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_UNITS_SECTION_ID_REQUISITE_CODE SYSRES_CONST_UNITS_SECTION_REQUISITE_CODE SYSRES_CONST_UNOPERATING_RECORD_FLAG_VALUE_CODE SYSRES_CONST_UNSTORED_DATA_REQUISITE_CODE SYSRES_CONST_UNSTORED_DATA_REQUISITE_NAME SYSRES_CONST_USE_ACCESS_TYPE_CODE SYSRES_CONST_USE_ACCESS_TYPE_NAME SYSRES_CONST_USER_ACCOUNT_TYPE_VALUE_CODE SYSRES_CONST_USER_ADDITIONAL_INFORMATION_REQUISITE_CODE SYSRES_CONST_USER_AND_GROUP_ID_FROM_PSEUDOREFERENCE_REQUISITE_CODE SYSRES_CONST_USER_CATEGORY_NORMAL SYSRES_CONST_USER_CERTIFICATE_REQUISITE_CODE SYSRES_CONST_USER_CERTIFICATE_STATE_REQUISITE_CODE SYSRES_CONST_USER_CERTIFICATE_SUBJECT_NAME_REQUISITE_CODE SYSRES_CONST_USER_CERTIFICATE_THUMBPRINT_REQUISITE_CODE SYSRES_CONST_USER_COMMON_CATEGORY SYSRES_CONST_USER_COMMON_CATEGORY_CODE SYSRES_CONST_USER_FULL_NAME_REQUISITE_CODE SYSRES_CONST_USER_GROUP_TYPE_REQUISITE_CODE SYSRES_CONST_USER_LOGIN_REQUISITE_CODE SYSRES_CONST_USER_REMOTE_CONTROLLER_REQUISITE_CODE SYSRES_CONST_USER_REMOTE_SYSTEM_REQUISITE_CODE SYSRES_CONST_USER_RIGHTS_T_REQUISITE_CODE SYSRES_CONST_USER_SERVER_NAME_REQUISITE_CODE SYSRES_CONST_USER_SERVICE_CATEGORY SYSRES_CONST_USER_SERVICE_CATEGORY_CODE SYSRES_CONST_USER_STATUS_ADMINISTRATOR_CODE SYSRES_CONST_USER_STATUS_ADMINISTRATOR_NAME SYSRES_CONST_USER_STATUS_DEVELOPER_CODE SYSRES_CONST_USER_STATUS_DEVELOPER_NAME SYSRES_CONST_USER_STATUS_DISABLED_CODE SYSRES_CONST_USER_STATUS_DISABLED_NAME SYSRES_CONST_USER_STATUS_SYSTEM_DEVELOPER_CODE SYSRES_CONST_USER_STATUS_USER_CODE SYSRES_CONST_USER_STATUS_USER_NAME SYSRES_CONST_USER_STATUS_USER_NAME_DEPRECATED SYSRES_CONST_USER_TYPE_FIELD_VALUE_USER SYSRES_CONST_USER_TYPE_REQUISITE_CODE SYSRES_CONST_USERS_CONTROLLER_REQUISITE_CODE SYSRES_CONST_USERS_IS_MAIN_SERVER_REQUISITE_CODE SYSRES_CONST_USERS_REFERENCE_CODE SYSRES_CONST_USERS_REGISTRATION_CERTIFICATES_ACTION_NAME SYSRES_CONST_USERS_REQUISITE_CODE SYSRES_CONST_USERS_SYSTEM_REQUISITE_CODE SYSRES_CONST_USERS_USER_ACCESS_RIGHTS_TYPR_REQUISITE_CODE SYSRES_CONST_USERS_USER_AUTHENTICATION_REQUISITE_CODE SYSRES_CONST_USERS_USER_COMPONENT_REQUISITE_CODE SYSRES_CONST_USERS_USER_GROUP_REQUISITE_CODE SYSRES_CONST_USERS_VIEW_CERTIFICATES_ACTION_NAME SYSRES_CONST_VIEW_DEFAULT_CODE SYSRES_CONST_VIEW_DEFAULT_NAME SYSRES_CONST_VIEWER_REQUISITE_CODE SYSRES_CONST_WAITING_BLOCK_DESCRIPTION SYSRES_CONST_WIZARD_FORM_LABEL_TEST_STRING SYSRES_CONST_WIZARD_QUERY_PARAM_HEIGHT_ETALON_STRING SYSRES_CONST_WIZARD_REFERENCE_COMMENT_REQUISITE_CODE SYSRES_CONST_WORK_RULES_DESCRIPTION_REQUISITE_CODE SYSRES_CONST_WORK_TIME_CALENDAR_REFERENCE_CODE SYSRES_CONST_WORK_WORKFLOW_HARD_ROUTE_TYPE_VALUE SYSRES_CONST_WORK_WORKFLOW_HARD_ROUTE_TYPE_VALUE_CODE SYSRES_CONST_WORK_WORKFLOW_HARD_ROUTE_TYPE_VALUE_CODE_RUS SYSRES_CONST_WORK_WORKFLOW_SOFT_ROUTE_TYPE_VALUE_CODE_RUS SYSRES_CONST_WORKFLOW_ROUTE_TYPR_HARD SYSRES_CONST_WORKFLOW_ROUTE_TYPR_SOFT SYSRES_CONST_XML_ENCODING SYSRES_CONST_XREC_STAT_REQUISITE_CODE SYSRES_CONST_XRECID_FIELD_NAME SYSRES_CONST_YES SYSRES_CONST_YES_NO_2_REQUISITE_CODE SYSRES_CONST_YES_NO_REQUISITE_CODE SYSRES_CONST_YES_NO_T_REF_TYPE_REQUISITE_CODE SYSRES_CONST_YES_PICK_VALUE SYSRES_CONST_YES_VALUE CR FALSE nil NO_VALUE NULL TAB TRUE YES_VALUE ADMINISTRATORS_GROUP_NAME CUSTOMIZERS_GROUP_NAME DEVELOPERS_GROUP_NAME SERVICE_USERS_GROUP_NAME DECISION_BLOCK_FIRST_OPERAND_PROPERTY DECISION_BLOCK_NAME_PROPERTY DECISION_BLOCK_OPERATION_PROPERTY DECISION_BLOCK_RESULT_TYPE_PROPERTY DECISION_BLOCK_SECOND_OPERAND_PROPERTY ANY_FILE_EXTENTION COMPRESSED_DOCUMENT_EXTENSION EXTENDED_DOCUMENT_EXTENSION SHORT_COMPRESSED_DOCUMENT_EXTENSION SHORT_EXTENDED_DOCUMENT_EXTENSION JOB_BLOCK_ABORT_DEADLINE_PROPERTY JOB_BLOCK_AFTER_FINISH_EVENT JOB_BLOCK_AFTER_QUERY_PARAMETERS_EVENT JOB_BLOCK_ATTACHMENT_PROPERTY JOB_BLOCK_ATTACHMENTS_RIGHTS_GROUP_PROPERTY JOB_BLOCK_ATTACHMENTS_RIGHTS_TYPE_PROPERTY JOB_BLOCK_BEFORE_QUERY_PARAMETERS_EVENT JOB_BLOCK_BEFORE_START_EVENT JOB_BLOCK_CREATED_JOBS_PROPERTY JOB_BLOCK_DEADLINE_PROPERTY JOB_BLOCK_EXECUTION_RESULTS_PROPERTY JOB_BLOCK_IS_PARALLEL_PROPERTY JOB_BLOCK_IS_RELATIVE_ABORT_DEADLINE_PROPERTY JOB_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY JOB_BLOCK_JOB_TEXT_PROPERTY JOB_BLOCK_NAME_PROPERTY JOB_BLOCK_NEED_SIGN_ON_PERFORM_PROPERTY JOB_BLOCK_PERFORMER_PROPERTY JOB_BLOCK_RELATIVE_ABORT_DEADLINE_TYPE_PROPERTY JOB_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY JOB_BLOCK_SUBJECT_PROPERTY ENGLISH_LANGUAGE_CODE RUSSIAN_LANGUAGE_CODE smHidden smMaximized smMinimized smNormal wmNo wmYes COMPONENT_TOKEN_LINK_KIND DOCUMENT_LINK_KIND EDOCUMENT_LINK_KIND FOLDER_LINK_KIND JOB_LINK_KIND REFERENCE_LINK_KIND TASK_LINK_KIND COMPONENT_TOKEN_LOCK_TYPE EDOCUMENT_VERSION_LOCK_TYPE MONITOR_BLOCK_AFTER_FINISH_EVENT MONITOR_BLOCK_BEFORE_START_EVENT MONITOR_BLOCK_DEADLINE_PROPERTY MONITOR_BLOCK_INTERVAL_PROPERTY MONITOR_BLOCK_INTERVAL_TYPE_PROPERTY MONITOR_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY MONITOR_BLOCK_NAME_PROPERTY MONITOR_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY MONITOR_BLOCK_SEARCH_SCRIPT_PROPERTY NOTICE_BLOCK_AFTER_FINISH_EVENT NOTICE_BLOCK_ATTACHMENT_PROPERTY NOTICE_BLOCK_ATTACHMENTS_RIGHTS_GROUP_PROPERTY NOTICE_BLOCK_ATTACHMENTS_RIGHTS_TYPE_PROPERTY NOTICE_BLOCK_BEFORE_START_EVENT NOTICE_BLOCK_CREATED_NOTICES_PROPERTY NOTICE_BLOCK_DEADLINE_PROPERTY NOTICE_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY NOTICE_BLOCK_NAME_PROPERTY NOTICE_BLOCK_NOTICE_TEXT_PROPERTY NOTICE_BLOCK_PERFORMER_PROPERTY NOTICE_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY NOTICE_BLOCK_SUBJECT_PROPERTY dseAfterCancel dseAfterClose dseAfterDelete dseAfterDeleteOutOfTransaction dseAfterInsert dseAfterOpen dseAfterScroll dseAfterUpdate dseAfterUpdateOutOfTransaction dseBeforeCancel dseBeforeClose dseBeforeDelete dseBeforeDetailUpdate dseBeforeInsert dseBeforeOpen dseBeforeUpdate dseOnAnyRequisiteChange dseOnCloseRecord dseOnDeleteError dseOnOpenRecord dseOnPrepareUpdate dseOnUpdateError dseOnUpdateRatifiedRecord dseOnValidDelete dseOnValidUpdate reOnChange reOnChangeValues SELECTION_BEGIN_ROUTE_EVENT SELECTION_END_ROUTE_EVENT CURRENT_PERIOD_IS_REQUIRED PREVIOUS_CARD_TYPE_NAME SHOW_RECORD_PROPERTIES_FORM ACCESS_RIGHTS_SETTING_DIALOG_CODE ADMINISTRATOR_USER_CODE ANALYTIC_REPORT_TYPE asrtHideLocal asrtHideRemote CALCULATED_ROLE_TYPE_CODE COMPONENTS_REFERENCE_DEVELOPER_VIEW_CODE DCTS_TEST_PROTOCOLS_FOLDER_PATH E_EDOC_VERSION_ALREADY_APPROVINGLY_SIGNED E_EDOC_VERSION_ALREADY_APPROVINGLY_SIGNED_BY_USER E_EDOC_VERSION_ALREDY_SIGNED E_EDOC_VERSION_ALREDY_SIGNED_BY_USER EDOC_TYPES_CODE_REQUISITE_FIELD_NAME EDOCUMENTS_ALIAS_NAME FILES_FOLDER_PATH FILTER_OPERANDS_DELIMITER FILTER_OPERATIONS_DELIMITER FORMCARD_NAME FORMLIST_NAME GET_EXTENDED_DOCUMENT_EXTENSION_CREATION_MODE GET_EXTENDED_DOCUMENT_EXTENSION_IMPORT_MODE INTEGRATED_REPORT_TYPE IS_BUILDER_APPLICATION_ROLE IS_BUILDER_APPLICATION_ROLE2 IS_BUILDER_USERS ISBSYSDEV LOG_FOLDER_PATH mbCancel mbNo mbNoToAll mbOK mbYes mbYesToAll MEMORY_DATASET_DESRIPTIONS_FILENAME mrNo mrNoToAll mrYes mrYesToAll MULTIPLE_SELECT_DIALOG_CODE NONOPERATING_RECORD_FLAG_FEMININE NONOPERATING_RECORD_FLAG_MASCULINE OPERATING_RECORD_FLAG_FEMININE OPERATING_RECORD_FLAG_MASCULINE PROFILING_SETTINGS_COMMON_SETTINGS_CODE_VALUE PROGRAM_INITIATED_LOOKUP_ACTION ratDelete ratEdit ratInsert REPORT_TYPE REQUIRED_PICK_VALUES_VARIABLE rmCard rmList SBRTE_PROGID_DEV SBRTE_PROGID_RELEASE STATIC_ROLE_TYPE_CODE SUPPRESS_EMPTY_TEMPLATE_CREATION SYSTEM_USER_CODE UPDATE_DIALOG_DATASET USED_IN_OBJECT_HINT_PARAM USER_INITIATED_LOOKUP_ACTION USER_NAME_FORMAT USER_SELECTION_RESTRICTIONS WORKFLOW_TEST_PROTOCOLS_FOLDER_PATH ELS_SUBTYPE_CONTROL_NAME ELS_FOLDER_KIND_CONTROL_NAME REPEAT_PROCESS_CURRENT_OBJECT_EXCEPTION_NAME PRIVILEGE_COMPONENT_FULL_ACCESS PRIVILEGE_DEVELOPMENT_EXPORT PRIVILEGE_DEVELOPMENT_IMPORT PRIVILEGE_DOCUMENT_DELETE PRIVILEGE_ESD PRIVILEGE_FOLDER_DELETE PRIVILEGE_MANAGE_ACCESS_RIGHTS PRIVILEGE_MANAGE_REPLICATION PRIVILEGE_MANAGE_SESSION_SERVER PRIVILEGE_OBJECT_FULL_ACCESS PRIVILEGE_OBJECT_VIEW PRIVILEGE_RESERVE_LICENSE PRIVILEGE_SYSTEM_CUSTOMIZE PRIVILEGE_SYSTEM_DEVELOP PRIVILEGE_SYSTEM_INSTALL PRIVILEGE_TASK_DELETE PRIVILEGE_USER_PLUGIN_SETTINGS_CUSTOMIZE PRIVILEGES_PSEUDOREFERENCE_CODE ACCESS_TYPES_PSEUDOREFERENCE_CODE ALL_AVAILABLE_COMPONENTS_PSEUDOREFERENCE_CODE ALL_AVAILABLE_PRIVILEGES_PSEUDOREFERENCE_CODE ALL_REPLICATE_COMPONENTS_PSEUDOREFERENCE_CODE AVAILABLE_DEVELOPERS_COMPONENTS_PSEUDOREFERENCE_CODE COMPONENTS_PSEUDOREFERENCE_CODE FILTRATER_SETTINGS_CONFLICTS_PSEUDOREFERENCE_CODE GROUPS_PSEUDOREFERENCE_CODE RECEIVE_PROTOCOL_PSEUDOREFERENCE_CODE REFERENCE_REQUISITE_PSEUDOREFERENCE_CODE REFERENCE_REQUISITES_PSEUDOREFERENCE_CODE REFTYPES_PSEUDOREFERENCE_CODE REPLICATION_SEANCES_DIARY_PSEUDOREFERENCE_CODE SEND_PROTOCOL_PSEUDOREFERENCE_CODE SUBSTITUTES_PSEUDOREFERENCE_CODE SYSTEM_SETTINGS_PSEUDOREFERENCE_CODE UNITS_PSEUDOREFERENCE_CODE USERS_PSEUDOREFERENCE_CODE VIEWERS_PSEUDOREFERENCE_CODE CERTIFICATE_TYPE_ENCRYPT CERTIFICATE_TYPE_SIGN CERTIFICATE_TYPE_SIGN_AND_ENCRYPT STORAGE_TYPE_FILE STORAGE_TYPE_NAS_CIFS STORAGE_TYPE_SAPERION STORAGE_TYPE_SQL_SERVER COMPTYPE2_REQUISITE_DOCUMENTS_VALUE COMPTYPE2_REQUISITE_TASKS_VALUE COMPTYPE2_REQUISITE_FOLDERS_VALUE COMPTYPE2_REQUISITE_REFERENCES_VALUE SYSREQ_CODE SYSREQ_COMPTYPE2 SYSREQ_CONST_AVAILABLE_FOR_WEB SYSREQ_CONST_COMMON_CODE SYSREQ_CONST_COMMON_VALUE SYSREQ_CONST_FIRM_CODE SYSREQ_CONST_FIRM_STATUS SYSREQ_CONST_FIRM_VALUE SYSREQ_CONST_SERVER_STATUS SYSREQ_CONTENTS SYSREQ_DATE_OPEN SYSREQ_DATE_CLOSE SYSREQ_DESCRIPTION SYSREQ_DESCRIPTION_LOCALIZE_ID SYSREQ_DOUBLE SYSREQ_EDOC_ACCESS_TYPE SYSREQ_EDOC_AUTHOR SYSREQ_EDOC_CREATED SYSREQ_EDOC_DELEGATE_RIGHTS_REQUISITE_CODE SYSREQ_EDOC_EDITOR SYSREQ_EDOC_ENCODE_TYPE SYSREQ_EDOC_ENCRYPTION_PLUGIN_NAME SYSREQ_EDOC_ENCRYPTION_PLUGIN_VERSION SYSREQ_EDOC_EXPORT_DATE SYSREQ_EDOC_EXPORTER SYSREQ_EDOC_KIND SYSREQ_EDOC_LIFE_STAGE_NAME SYSREQ_EDOC_LOCKED_FOR_SERVER_CODE SYSREQ_EDOC_MODIFIED SYSREQ_EDOC_NAME SYSREQ_EDOC_NOTE SYSREQ_EDOC_QUALIFIED_ID SYSREQ_EDOC_SESSION_KEY SYSREQ_EDOC_SESSION_KEY_ENCRYPTION_PLUGIN_NAME SYSREQ_EDOC_SESSION_KEY_ENCRYPTION_PLUGIN_VERSION SYSREQ_EDOC_SIGNATURE_TYPE SYSREQ_EDOC_SIGNED SYSREQ_EDOC_STORAGE SYSREQ_EDOC_STORAGES_ARCHIVE_STORAGE SYSREQ_EDOC_STORAGES_CHECK_RIGHTS SYSREQ_EDOC_STORAGES_COMPUTER_NAME SYSREQ_EDOC_STORAGES_EDIT_IN_STORAGE SYSREQ_EDOC_STORAGES_EXECUTIVE_STORAGE SYSREQ_EDOC_STORAGES_FUNCTION SYSREQ_EDOC_STORAGES_INITIALIZED SYSREQ_EDOC_STORAGES_LOCAL_PATH SYSREQ_EDOC_STORAGES_SAPERION_DATABASE_NAME SYSREQ_EDOC_STORAGES_SEARCH_BY_TEXT SYSREQ_EDOC_STORAGES_SERVER_NAME SYSREQ_EDOC_STORAGES_SHARED_SOURCE_NAME SYSREQ_EDOC_STORAGES_TYPE SYSREQ_EDOC_TEXT_MODIFIED SYSREQ_EDOC_TYPE_ACT_CODE SYSREQ_EDOC_TYPE_ACT_DESCRIPTION SYSREQ_EDOC_TYPE_ACT_DESCRIPTION_LOCALIZE_ID SYSREQ_EDOC_TYPE_ACT_ON_EXECUTE SYSREQ_EDOC_TYPE_ACT_ON_EXECUTE_EXISTS SYSREQ_EDOC_TYPE_ACT_SECTION SYSREQ_EDOC_TYPE_ADD_PARAMS SYSREQ_EDOC_TYPE_COMMENT SYSREQ_EDOC_TYPE_EVENT_TEXT SYSREQ_EDOC_TYPE_NAME_IN_SINGULAR SYSREQ_EDOC_TYPE_NAME_IN_SINGULAR_LOCALIZE_ID SYSREQ_EDOC_TYPE_NAME_LOCALIZE_ID SYSREQ_EDOC_TYPE_NUMERATION_METHOD SYSREQ_EDOC_TYPE_PSEUDO_REQUISITE_CODE SYSREQ_EDOC_TYPE_REQ_CODE SYSREQ_EDOC_TYPE_REQ_DESCRIPTION SYSREQ_EDOC_TYPE_REQ_DESCRIPTION_LOCALIZE_ID SYSREQ_EDOC_TYPE_REQ_IS_LEADING SYSREQ_EDOC_TYPE_REQ_IS_REQUIRED SYSREQ_EDOC_TYPE_REQ_NUMBER SYSREQ_EDOC_TYPE_REQ_ON_CHANGE SYSREQ_EDOC_TYPE_REQ_ON_CHANGE_EXISTS SYSREQ_EDOC_TYPE_REQ_ON_SELECT SYSREQ_EDOC_TYPE_REQ_ON_SELECT_KIND SYSREQ_EDOC_TYPE_REQ_SECTION SYSREQ_EDOC_TYPE_VIEW_CARD SYSREQ_EDOC_TYPE_VIEW_CODE SYSREQ_EDOC_TYPE_VIEW_COMMENT SYSREQ_EDOC_TYPE_VIEW_IS_MAIN SYSREQ_EDOC_TYPE_VIEW_NAME SYSREQ_EDOC_TYPE_VIEW_NAME_LOCALIZE_ID SYSREQ_EDOC_VERSION_AUTHOR SYSREQ_EDOC_VERSION_CRC SYSREQ_EDOC_VERSION_DATA SYSREQ_EDOC_VERSION_EDITOR SYSREQ_EDOC_VERSION_EXPORT_DATE SYSREQ_EDOC_VERSION_EXPORTER SYSREQ_EDOC_VERSION_HIDDEN SYSREQ_EDOC_VERSION_LIFE_STAGE SYSREQ_EDOC_VERSION_MODIFIED SYSREQ_EDOC_VERSION_NOTE SYSREQ_EDOC_VERSION_SIGNATURE_TYPE SYSREQ_EDOC_VERSION_SIGNED SYSREQ_EDOC_VERSION_SIZE SYSREQ_EDOC_VERSION_SOURCE SYSREQ_EDOC_VERSION_TEXT_MODIFIED SYSREQ_EDOCKIND_DEFAULT_VERSION_STATE_CODE SYSREQ_FOLDER_KIND SYSREQ_FUNC_CATEGORY SYSREQ_FUNC_COMMENT SYSREQ_FUNC_GROUP SYSREQ_FUNC_GROUP_COMMENT SYSREQ_FUNC_GROUP_NUMBER SYSREQ_FUNC_HELP SYSREQ_FUNC_PARAM_DEF_VALUE SYSREQ_FUNC_PARAM_IDENT SYSREQ_FUNC_PARAM_NUMBER SYSREQ_FUNC_PARAM_TYPE SYSREQ_FUNC_TEXT SYSREQ_GROUP_CATEGORY SYSREQ_ID SYSREQ_LAST_UPDATE SYSREQ_LEADER_REFERENCE SYSREQ_LINE_NUMBER SYSREQ_MAIN_RECORD_ID SYSREQ_NAME SYSREQ_NAME_LOCALIZE_ID SYSREQ_NOTE SYSREQ_ORIGINAL_RECORD SYSREQ_OUR_FIRM SYSREQ_PROFILING_SETTINGS_BATCH_LOGING SYSREQ_PROFILING_SETTINGS_BATCH_SIZE SYSREQ_PROFILING_SETTINGS_PROFILING_ENABLED SYSREQ_PROFILING_SETTINGS_SQL_PROFILING_ENABLED SYSREQ_PROFILING_SETTINGS_START_LOGGED SYSREQ_RECORD_STATUS SYSREQ_REF_REQ_FIELD_NAME SYSREQ_REF_REQ_FORMAT SYSREQ_REF_REQ_GENERATED SYSREQ_REF_REQ_LENGTH SYSREQ_REF_REQ_PRECISION SYSREQ_REF_REQ_REFERENCE SYSREQ_REF_REQ_SECTION SYSREQ_REF_REQ_STORED SYSREQ_REF_REQ_TOKENS SYSREQ_REF_REQ_TYPE SYSREQ_REF_REQ_VIEW SYSREQ_REF_TYPE_ACT_CODE SYSREQ_REF_TYPE_ACT_DESCRIPTION SYSREQ_REF_TYPE_ACT_DESCRIPTION_LOCALIZE_ID SYSREQ_REF_TYPE_ACT_ON_EXECUTE SYSREQ_REF_TYPE_ACT_ON_EXECUTE_EXISTS SYSREQ_REF_TYPE_ACT_SECTION SYSREQ_REF_TYPE_ADD_PARAMS SYSREQ_REF_TYPE_COMMENT SYSREQ_REF_TYPE_COMMON_SETTINGS SYSREQ_REF_TYPE_DISPLAY_REQUISITE_NAME SYSREQ_REF_TYPE_EVENT_TEXT SYSREQ_REF_TYPE_MAIN_LEADING_REF SYSREQ_REF_TYPE_NAME_IN_SINGULAR SYSREQ_REF_TYPE_NAME_IN_SINGULAR_LOCALIZE_ID SYSREQ_REF_TYPE_NAME_LOCALIZE_ID SYSREQ_REF_TYPE_NUMERATION_METHOD SYSREQ_REF_TYPE_REQ_CODE SYSREQ_REF_TYPE_REQ_DESCRIPTION SYSREQ_REF_TYPE_REQ_DESCRIPTION_LOCALIZE_ID SYSREQ_REF_TYPE_REQ_IS_CONTROL SYSREQ_REF_TYPE_REQ_IS_FILTER SYSREQ_REF_TYPE_REQ_IS_LEADING SYSREQ_REF_TYPE_REQ_IS_REQUIRED SYSREQ_REF_TYPE_REQ_NUMBER SYSREQ_REF_TYPE_REQ_ON_CHANGE SYSREQ_REF_TYPE_REQ_ON_CHANGE_EXISTS SYSREQ_REF_TYPE_REQ_ON_SELECT SYSREQ_REF_TYPE_REQ_ON_SELECT_KIND SYSREQ_REF_TYPE_REQ_SECTION SYSREQ_REF_TYPE_VIEW_CARD SYSREQ_REF_TYPE_VIEW_CODE SYSREQ_REF_TYPE_VIEW_COMMENT SYSREQ_REF_TYPE_VIEW_IS_MAIN SYSREQ_REF_TYPE_VIEW_NAME SYSREQ_REF_TYPE_VIEW_NAME_LOCALIZE_ID SYSREQ_REFERENCE_TYPE_ID SYSREQ_STATE SYSREQ_STAT\u0415 SYSREQ_SYSTEM_SETTINGS_VALUE SYSREQ_TYPE SYSREQ_UNIT SYSREQ_UNIT_ID SYSREQ_USER_GROUPS_GROUP_FULL_NAME SYSREQ_USER_GROUPS_GROUP_NAME SYSREQ_USER_GROUPS_GROUP_SERVER_NAME SYSREQ_USERS_ACCESS_RIGHTS SYSREQ_USERS_AUTHENTICATION SYSREQ_USERS_CATEGORY SYSREQ_USERS_COMPONENT SYSREQ_USERS_COMPONENT_USER_IS_PUBLIC SYSREQ_USERS_DOMAIN SYSREQ_USERS_FULL_USER_NAME SYSREQ_USERS_GROUP SYSREQ_USERS_IS_MAIN_SERVER SYSREQ_USERS_LOGIN SYSREQ_USERS_REFERENCE_USER_IS_PUBLIC SYSREQ_USERS_STATUS SYSREQ_USERS_USER_CERTIFICATE SYSREQ_USERS_USER_CERTIFICATE_INFO SYSREQ_USERS_USER_CERTIFICATE_PLUGIN_NAME SYSREQ_USERS_USER_CERTIFICATE_PLUGIN_VERSION SYSREQ_USERS_USER_CERTIFICATE_STATE SYSREQ_USERS_USER_CERTIFICATE_SUBJECT_NAME SYSREQ_USERS_USER_CERTIFICATE_THUMBPRINT SYSREQ_USERS_USER_DEFAULT_CERTIFICATE SYSREQ_USERS_USER_DESCRIPTION SYSREQ_USERS_USER_GLOBAL_NAME SYSREQ_USERS_USER_LOGIN SYSREQ_USERS_USER_MAIN_SERVER SYSREQ_USERS_USER_TYPE SYSREQ_WORK_RULES_FOLDER_ID RESULT_VAR_NAME RESULT_VAR_NAME_ENG AUTO_NUMERATION_RULE_ID CANT_CHANGE_ID_REQUISITE_RULE_ID CANT_CHANGE_OURFIRM_REQUISITE_RULE_ID CHECK_CHANGING_REFERENCE_RECORD_USE_RULE_ID CHECK_CODE_REQUISITE_RULE_ID CHECK_DELETING_REFERENCE_RECORD_USE_RULE_ID CHECK_FILTRATER_CHANGES_RULE_ID CHECK_RECORD_INTERVAL_RULE_ID CHECK_REFERENCE_INTERVAL_RULE_ID CHECK_REQUIRED_DATA_FULLNESS_RULE_ID CHECK_REQUIRED_REQUISITES_FULLNESS_RULE_ID MAKE_RECORD_UNRATIFIED_RULE_ID RESTORE_AUTO_NUMERATION_RULE_ID SET_FIRM_CONTEXT_FROM_RECORD_RULE_ID SET_FIRST_RECORD_IN_LIST_FORM_RULE_ID SET_IDSPS_VALUE_RULE_ID SET_NEXT_CODE_VALUE_RULE_ID SET_OURFIRM_BOUNDS_RULE_ID SET_OURFIRM_REQUISITE_RULE_ID SCRIPT_BLOCK_AFTER_FINISH_EVENT SCRIPT_BLOCK_BEFORE_START_EVENT SCRIPT_BLOCK_EXECUTION_RESULTS_PROPERTY SCRIPT_BLOCK_NAME_PROPERTY SCRIPT_BLOCK_SCRIPT_PROPERTY SUBTASK_BLOCK_ABORT_DEADLINE_PROPERTY SUBTASK_BLOCK_AFTER_FINISH_EVENT SUBTASK_BLOCK_ASSIGN_PARAMS_EVENT SUBTASK_BLOCK_ATTACHMENTS_PROPERTY SUBTASK_BLOCK_ATTACHMENTS_RIGHTS_GROUP_PROPERTY SUBTASK_BLOCK_ATTACHMENTS_RIGHTS_TYPE_PROPERTY SUBTASK_BLOCK_BEFORE_START_EVENT SUBTASK_BLOCK_CREATED_TASK_PROPERTY SUBTASK_BLOCK_CREATION_EVENT SUBTASK_BLOCK_DEADLINE_PROPERTY SUBTASK_BLOCK_IMPORTANCE_PROPERTY SUBTASK_BLOCK_INITIATOR_PROPERTY SUBTASK_BLOCK_IS_RELATIVE_ABORT_DEADLINE_PROPERTY SUBTASK_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY SUBTASK_BLOCK_JOBS_TYPE_PROPERTY SUBTASK_BLOCK_NAME_PROPERTY SUBTASK_BLOCK_PARALLEL_ROUTE_PROPERTY SUBTASK_BLOCK_PERFORMERS_PROPERTY SUBTASK_BLOCK_RELATIVE_ABORT_DEADLINE_TYPE_PROPERTY SUBTASK_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY SUBTASK_BLOCK_REQUIRE_SIGN_PROPERTY SUBTASK_BLOCK_STANDARD_ROUTE_PROPERTY SUBTASK_BLOCK_START_EVENT SUBTASK_BLOCK_STEP_CONTROL_PROPERTY SUBTASK_BLOCK_SUBJECT_PROPERTY SUBTASK_BLOCK_TASK_CONTROL_PROPERTY SUBTASK_BLOCK_TEXT_PROPERTY SUBTASK_BLOCK_UNLOCK_ATTACHMENTS_ON_STOP_PROPERTY SUBTASK_BLOCK_USE_STANDARD_ROUTE_PROPERTY SUBTASK_BLOCK_WAIT_FOR_TASK_COMPLETE_PROPERTY SYSCOMP_CONTROL_JOBS SYSCOMP_FOLDERS SYSCOMP_JOBS SYSCOMP_NOTICES SYSCOMP_TASKS SYSDLG_CREATE_EDOCUMENT SYSDLG_CREATE_EDOCUMENT_VERSION SYSDLG_CURRENT_PERIOD SYSDLG_EDIT_FUNCTION_HELP SYSDLG_EDOCUMENT_KINDS_FOR_TEMPLATE SYSDLG_EXPORT_MULTIPLE_EDOCUMENTS SYSDLG_EXPORT_SINGLE_EDOCUMENT SYSDLG_IMPORT_EDOCUMENT SYSDLG_MULTIPLE_SELECT SYSDLG_SETUP_ACCESS_RIGHTS SYSDLG_SETUP_DEFAULT_RIGHTS SYSDLG_SETUP_FILTER_CONDITION SYSDLG_SETUP_SIGN_RIGHTS SYSDLG_SETUP_TASK_OBSERVERS SYSDLG_SETUP_TASK_ROUTE SYSDLG_SETUP_USERS_LIST SYSDLG_SIGN_EDOCUMENT SYSDLG_SIGN_MULTIPLE_EDOCUMENTS SYSREF_ACCESS_RIGHTS_TYPES SYSREF_ADMINISTRATION_HISTORY SYSREF_ALL_AVAILABLE_COMPONENTS SYSREF_ALL_AVAILABLE_PRIVILEGES SYSREF_ALL_REPLICATING_COMPONENTS SYSREF_AVAILABLE_DEVELOPERS_COMPONENTS SYSREF_CALENDAR_EVENTS SYSREF_COMPONENT_TOKEN_HISTORY SYSREF_COMPONENT_TOKENS SYSREF_COMPONENTS SYSREF_CONSTANTS SYSREF_DATA_RECEIVE_PROTOCOL SYSREF_DATA_SEND_PROTOCOL SYSREF_DIALOGS SYSREF_DIALOGS_REQUISITES SYSREF_EDITORS SYSREF_EDOC_CARDS SYSREF_EDOC_TYPES SYSREF_EDOCUMENT_CARD_REQUISITES SYSREF_EDOCUMENT_CARD_TYPES SYSREF_EDOCUMENT_CARD_TYPES_REFERENCE SYSREF_EDOCUMENT_CARDS SYSREF_EDOCUMENT_HISTORY SYSREF_EDOCUMENT_KINDS SYSREF_EDOCUMENT_REQUISITES SYSREF_EDOCUMENT_SIGNATURES SYSREF_EDOCUMENT_TEMPLATES SYSREF_EDOCUMENT_TEXT_STORAGES SYSREF_EDOCUMENT_VIEWS SYSREF_FILTERER_SETUP_CONFLICTS SYSREF_FILTRATER_SETTING_CONFLICTS SYSREF_FOLDER_HISTORY SYSREF_FOLDERS SYSREF_FUNCTION_GROUPS SYSREF_FUNCTION_PARAMS SYSREF_FUNCTIONS SYSREF_JOB_HISTORY SYSREF_LINKS SYSREF_LOCALIZATION_DICTIONARY SYSREF_LOCALIZATION_LANGUAGES SYSREF_MODULES SYSREF_PRIVILEGES SYSREF_RECORD_HISTORY SYSREF_REFERENCE_REQUISITES SYSREF_REFERENCE_TYPE_VIEWS SYSREF_REFERENCE_TYPES SYSREF_REFERENCES SYSREF_REFERENCES_REQUISITES SYSREF_REMOTE_SERVERS SYSREF_REPLICATION_SESSIONS_LOG SYSREF_REPLICATION_SESSIONS_PROTOCOL SYSREF_REPORTS SYSREF_ROLES SYSREF_ROUTE_BLOCK_GROUPS SYSREF_ROUTE_BLOCKS SYSREF_SCRIPTS SYSREF_SEARCHES SYSREF_SERVER_EVENTS SYSREF_SERVER_EVENTS_HISTORY SYSREF_STANDARD_ROUTE_GROUPS SYSREF_STANDARD_ROUTES SYSREF_STATUSES SYSREF_SYSTEM_SETTINGS SYSREF_TASK_HISTORY SYSREF_TASK_KIND_GROUPS SYSREF_TASK_KINDS SYSREF_TASK_RIGHTS SYSREF_TASK_SIGNATURES SYSREF_TASKS SYSREF_UNITS SYSREF_USER_GROUPS SYSREF_USER_GROUPS_REFERENCE SYSREF_USER_SUBSTITUTION SYSREF_USERS SYSREF_USERS_REFERENCE SYSREF_VIEWERS SYSREF_WORKING_TIME_CALENDARS ACCESS_RIGHTS_TABLE_NAME EDMS_ACCESS_TABLE_NAME EDOC_TYPES_TABLE_NAME TEST_DEV_DB_NAME TEST_DEV_SYSTEM_CODE TEST_EDMS_DB_NAME TEST_EDMS_MAIN_CODE TEST_EDMS_MAIN_DB_NAME TEST_EDMS_SECOND_CODE TEST_EDMS_SECOND_DB_NAME TEST_EDMS_SYSTEM_CODE TEST_ISB5_MAIN_CODE TEST_ISB5_SECOND_CODE TEST_SQL_SERVER_2005_NAME TEST_SQL_SERVER_NAME ATTENTION_CAPTION cbsCommandLinks cbsDefault CONFIRMATION_CAPTION ERROR_CAPTION INFORMATION_CAPTION mrCancel mrOk EDOC_VERSION_ACTIVE_STAGE_CODE EDOC_VERSION_DESIGN_STAGE_CODE EDOC_VERSION_OBSOLETE_STAGE_CODE cpDataEnciphermentEnabled cpDigitalSignatureEnabled cpID cpIssuer cpPluginVersion cpSerial cpSubjectName cpSubjSimpleName cpValidFromDate cpValidToDate ISBL_SYNTAX NO_SYNTAX XML_SYNTAX WAIT_BLOCK_AFTER_FINISH_EVENT WAIT_BLOCK_BEFORE_START_EVENT WAIT_BLOCK_DEADLINE_PROPERTY WAIT_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY WAIT_BLOCK_NAME_PROPERTY WAIT_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY SYSRES_COMMON SYSRES_CONST SYSRES_MBFUNC SYSRES_SBDATA SYSRES_SBGUI SYSRES_SBINTF SYSRES_SBREFDSC SYSRES_SQLERRORS SYSRES_SYSCOMP atUser atGroup atRole aemEnabledAlways aemDisabledAlways aemEnabledOnBrowse aemEnabledOnEdit aemDisabledOnBrowseEmpty apBegin apEnd alLeft alRight asmNever asmNoButCustomize asmAsLastTime asmYesButCustomize asmAlways cirCommon cirRevoked ctSignature ctEncode ctSignatureEncode clbUnchecked clbChecked clbGrayed ceISB ceAlways ceNever ctDocument ctReference ctScript ctUnknown ctReport ctDialog ctFunction ctFolder ctEDocument ctTask ctJob ctNotice ctControlJob cfInternal cfDisplay ciUnspecified ciWrite ciRead ckFolder ckEDocument ckTask ckJob ckComponentToken ckAny ckReference ckScript ckReport ckDialog ctISBLEditor ctBevel ctButton ctCheckListBox ctComboBox ctComboEdit ctGrid ctDBCheckBox ctDBComboBox ctDBEdit ctDBEllipsis ctDBMemo ctDBNavigator ctDBRadioGroup ctDBStatusLabel ctEdit ctGroupBox ctInplaceHint ctMemo ctPanel ctListBox ctRadioButton ctRichEdit ctTabSheet ctWebBrowser ctImage ctHyperLink ctLabel ctDBMultiEllipsis ctRibbon ctRichView ctInnerPanel ctPanelGroup ctBitButton cctDate cctInteger cctNumeric cctPick cctReference cctString cctText cltInternal cltPrimary cltGUI dseBeforeOpen dseAfterOpen dseBeforeClose dseAfterClose dseOnValidDelete dseBeforeDelete dseAfterDelete dseAfterDeleteOutOfTransaction dseOnDeleteError dseBeforeInsert dseAfterInsert dseOnValidUpdate dseBeforeUpdate dseOnUpdateRatifiedRecord dseAfterUpdate dseAfterUpdateOutOfTransaction dseOnUpdateError dseAfterScroll dseOnOpenRecord dseOnCloseRecord dseBeforeCancel dseAfterCancel dseOnUpdateDeadlockError dseBeforeDetailUpdate dseOnPrepareUpdate dseOnAnyRequisiteChange dssEdit dssInsert dssBrowse dssInActive dftDate dftShortDate dftDateTime dftTimeStamp dotDays dotHours dotMinutes dotSeconds dtkndLocal dtkndUTC arNone arView arEdit arFull ddaView ddaEdit emLock emEdit emSign emExportWithLock emImportWithUnlock emChangeVersionNote emOpenForModify emChangeLifeStage emDelete emCreateVersion emImport emUnlockExportedWithLock emStart emAbort emReInit emMarkAsReaded emMarkAsUnreaded emPerform emAccept emResume emChangeRights emEditRoute emEditObserver emRecoveryFromLocalCopy emChangeWorkAccessType emChangeEncodeTypeToCertificate emChangeEncodeTypeToPassword emChangeEncodeTypeToNone emChangeEncodeTypeToCertificatePassword emChangeStandardRoute emGetText emOpenForView emMoveToStorage emCreateObject emChangeVersionHidden emDeleteVersion emChangeLifeCycleStage emApprovingSign emExport emContinue emLockFromEdit emUnLockForEdit emLockForServer emUnlockFromServer emDelegateAccessRights emReEncode ecotFile ecotProcess eaGet eaCopy eaCreate eaCreateStandardRoute edltAll edltNothing edltQuery essmText essmCard esvtLast esvtLastActive esvtSpecified edsfExecutive edsfArchive edstSQLServer edstFile edvstNone edvstEDocumentVersionCopy edvstFile edvstTemplate edvstScannedFile vsDefault vsDesign vsActive vsObsolete etNone etCertificate etPassword etCertificatePassword ecException ecWarning ecInformation estAll estApprovingOnly evtLast evtLastActive evtQuery fdtString fdtNumeric fdtInteger fdtDate fdtText fdtUnknown fdtWideString fdtLargeInteger ftInbox ftOutbox ftFavorites ftCommonFolder ftUserFolder ftComponents ftQuickLaunch ftShortcuts ftSearch grhAuto grhX1 grhX2 grhX3 hltText hltRTF hltHTML iffBMP iffJPEG iffMultiPageTIFF iffSinglePageTIFF iffTIFF iffPNG im8bGrayscale im24bRGB im1bMonochrome itBMP itJPEG itWMF itPNG ikhInformation ikhWarning ikhError ikhNoIcon icUnknown icScript icFunction icIntegratedReport icAnalyticReport icDataSetEventHandler icActionHandler icFormEventHandler icLookUpEventHandler icRequisiteChangeEventHandler icBeforeSearchEventHandler icRoleCalculation icSelectRouteEventHandler icBlockPropertyCalculation icBlockQueryParamsEventHandler icChangeSearchResultEventHandler icBlockEventHandler icSubTaskInitEventHandler icEDocDataSetEventHandler icEDocLookUpEventHandler icEDocActionHandler icEDocFormEventHandler icEDocRequisiteChangeEventHandler icStructuredConversionRule icStructuredConversionEventBefore icStructuredConversionEventAfter icWizardEventHandler icWizardFinishEventHandler icWizardStepEventHandler icWizardStepFinishEventHandler icWizardActionEnableEventHandler icWizardActionExecuteEventHandler icCreateJobsHandler icCreateNoticesHandler icBeforeLookUpEventHandler icAfterLookUpEventHandler icTaskAbortEventHandler icWorkflowBlockActionHandler icDialogDataSetEventHandler icDialogActionHandler icDialogLookUpEventHandler icDialogRequisiteChangeEventHandler icDialogFormEventHandler icDialogValidCloseEventHandler icBlockFormEventHandler icTaskFormEventHandler icReferenceMethod icEDocMethod icDialogMethod icProcessMessageHandler isShow isHide isByUserSettings jkJob jkNotice jkControlJob jtInner jtLeft jtRight jtFull jtCross lbpAbove lbpBelow lbpLeft lbpRight eltPerConnection eltPerUser sfcUndefined sfcBlack sfcGreen sfcRed sfcBlue sfcOrange sfcLilac sfsItalic sfsStrikeout sfsNormal ldctStandardRoute ldctWizard ldctScript ldctFunction ldctRouteBlock ldctIntegratedReport ldctAnalyticReport ldctReferenceType ldctEDocumentType ldctDialog ldctServerEvents mrcrtNone mrcrtUser mrcrtMaximal mrcrtCustom vtEqual vtGreaterOrEqual vtLessOrEqual vtRange rdYesterday rdToday rdTomorrow rdThisWeek rdThisMonth rdThisYear rdNextMonth rdNextWeek rdLastWeek rdLastMonth rdWindow rdFile rdPrinter rdtString rdtNumeric rdtInteger rdtDate rdtReference rdtAccount rdtText rdtPick rdtUnknown rdtLargeInteger rdtDocument reOnChange reOnChangeValues ttGlobal ttLocal ttUser ttSystem ssmBrowse ssmSelect ssmMultiSelect ssmBrowseModal smSelect smLike smCard stNone stAuthenticating stApproving sctString sctStream sstAnsiSort sstNaturalSort svtEqual svtContain soatString soatNumeric soatInteger soatDatetime soatReferenceRecord soatText soatPick soatBoolean soatEDocument soatAccount soatIntegerCollection soatNumericCollection soatStringCollection soatPickCollection soatDatetimeCollection soatBooleanCollection soatReferenceRecordCollection soatEDocumentCollection soatAccountCollection soatContents soatUnknown tarAbortByUser tarAbortByWorkflowException tvtAllWords tvtExactPhrase tvtAnyWord usNone usCompleted usRedSquare usBlueSquare usYellowSquare usGreenSquare usOrangeSquare usPurpleSquare usFollowUp utUnknown utUser utDeveloper utAdministrator utSystemDeveloper utDisconnected btAnd btDetailAnd btOr btNotOr btOnly vmView vmSelect vmNavigation vsmSingle vsmMultiple vsmMultipleCheck vsmNoSelection wfatPrevious wfatNext wfatCancel wfatFinish wfepUndefined wfepText3 wfepText6 wfepText9 wfepSpinEdit wfepDropDown wfepRadioGroup wfepFlag wfepText12 wfepText15 wfepText18 wfepText21 wfepText24 wfepText27 wfepText30 wfepRadioGroupColumn1 wfepRadioGroupColumn2 wfepRadioGroupColumn3 wfetQueryParameter wfetText wfetDelimiter wfetLabel wptString wptInteger wptNumeric wptBoolean wptDateTime wptPick wptText wptUser wptUserList wptEDocumentInfo wptEDocumentInfoList wptReferenceRecordInfo wptReferenceRecordInfoList wptFolderInfo wptTaskInfo wptContents wptFileName wptDate wsrComplete wsrGoNext wsrGoPrevious wsrCustom wsrCancel wsrGoFinal wstForm wstEDocument wstTaskCard wstReferenceRecordCard wstFinal waAll waPerformers waManual wsbStart wsbFinish wsbNotice wsbStep wsbDecision wsbWait wsbMonitor wsbScript wsbConnector wsbSubTask wsbLifeCycleStage wsbPause wdtInteger wdtFloat wdtString wdtPick wdtDateTime wdtBoolean wdtTask wdtJob wdtFolder wdtEDocument wdtReferenceRecord wdtUser wdtGroup wdtRole wdtIntegerCollection wdtFloatCollection wdtStringCollection wdtPickCollection wdtDateTimeCollection wdtBooleanCollection wdtTaskCollection wdtJobCollection wdtFolderCollection wdtEDocumentCollection wdtReferenceRecordCollection wdtUserCollection wdtGroupCollection wdtRoleCollection wdtContents wdtUserList wdtSearchDescription wdtDeadLine wdtPickSet wdtAccountCollection wiLow wiNormal wiHigh wrtSoft wrtHard wsInit wsRunning wsDone wsControlled wsAborted wsContinued wtmFull wtmFromCurrent wtmOnlyCurrent ",class:"AltState Application CallType ComponentTokens CreatedJobs CreatedNotices ControlState DialogResult Dialogs EDocuments EDocumentVersionSource Folders GlobalIDs Job Jobs InputValue LookUpReference LookUpRequisiteNames LookUpSearch Object ParentComponent Processes References Requisite ReportName Reports Result Scripts Searches SelectedAttachments SelectedItems SelectMode Sender ServerEvents ServiceFactory ShiftState SubTask SystemDialogs Tasks Wizard Wizards Work \u0412\u044b\u0437\u043e\u0432\u0421\u043f\u043e\u0441\u043e\u0431 \u0418\u043c\u044f\u041e\u0442\u0447\u0435\u0442\u0430 \u0420\u0435\u043a\u0432\u0417\u043d\u0430\u0447 ",literal:"null true false nil "},L={begin:"\\.\\s*"+e.UNDERSCORE_IDENT_RE,keywords:A,relevance:0},G={className:"type",begin:":[ \\t]*("+"IApplication IAccessRights IAccountRepository IAccountSelectionRestrictions IAction IActionList IAdministrationHistoryDescription IAnchors IApplication IArchiveInfo IAttachment IAttachmentList ICheckListBox ICheckPointedList IColumn IComponent IComponentDescription IComponentToken IComponentTokenFactory IComponentTokenInfo ICompRecordInfo IConnection IContents IControl IControlJob IControlJobInfo IControlList ICrypto ICrypto2 ICustomJob ICustomJobInfo ICustomListBox ICustomObjectWizardStep ICustomWork ICustomWorkInfo IDataSet IDataSetAccessInfo IDataSigner IDateCriterion IDateRequisite IDateRequisiteDescription IDateValue IDeaAccessRights IDeaObjectInfo IDevelopmentComponentLock IDialog IDialogFactory IDialogPickRequisiteItems IDialogsFactory IDICSFactory IDocRequisite IDocumentInfo IDualListDialog IECertificate IECertificateInfo IECertificates IEditControl IEditorForm IEdmsExplorer IEdmsObject IEdmsObjectDescription IEdmsObjectFactory IEdmsObjectInfo IEDocument IEDocumentAccessRights IEDocumentDescription IEDocumentEditor IEDocumentFactory IEDocumentInfo IEDocumentStorage IEDocumentVersion IEDocumentVersionListDialog IEDocumentVersionSource IEDocumentWizardStep IEDocVerSignature IEDocVersionState IEnabledMode IEncodeProvider IEncrypter IEvent IEventList IException IExternalEvents IExternalHandler IFactory IField IFileDialog IFolder IFolderDescription IFolderDialog IFolderFactory IFolderInfo IForEach IForm IFormTitle IFormWizardStep IGlobalIDFactory IGlobalIDInfo IGrid IHasher IHistoryDescription IHyperLinkControl IImageButton IImageControl IInnerPanel IInplaceHint IIntegerCriterion IIntegerList IIntegerRequisite IIntegerValue IISBLEditorForm IJob IJobDescription IJobFactory IJobForm IJobInfo ILabelControl ILargeIntegerCriterion ILargeIntegerRequisite ILargeIntegerValue ILicenseInfo ILifeCycleStage IList IListBox ILocalIDInfo ILocalization ILock IMemoryDataSet IMessagingFactory IMetadataRepository INotice INoticeInfo INumericCriterion INumericRequisite INumericValue IObject IObjectDescription IObjectImporter IObjectInfo IObserver IPanelGroup IPickCriterion IPickProperty IPickRequisite IPickRequisiteDescription IPickRequisiteItem IPickRequisiteItems IPickValue IPrivilege IPrivilegeList IProcess IProcessFactory IProcessMessage IProgress IProperty IPropertyChangeEvent IQuery IReference IReferenceCriterion IReferenceEnabledMode IReferenceFactory IReferenceHistoryDescription IReferenceInfo IReferenceRecordCardWizardStep IReferenceRequisiteDescription IReferencesFactory IReferenceValue IRefRequisite IReport IReportFactory IRequisite IRequisiteDescription IRequisiteDescriptionList IRequisiteFactory IRichEdit IRouteStep IRule IRuleList ISchemeBlock IScript IScriptFactory ISearchCriteria ISearchCriterion ISearchDescription ISearchFactory ISearchFolderInfo ISearchForObjectDescription ISearchResultRestrictions ISecuredContext ISelectDialog IServerEvent IServerEventFactory IServiceDialog IServiceFactory ISignature ISignProvider ISignProvider2 ISignProvider3 ISimpleCriterion IStringCriterion IStringList IStringRequisite IStringRequisiteDescription IStringValue ISystemDialogsFactory ISystemInfo ITabSheet ITask ITaskAbortReasonInfo ITaskCardWizardStep ITaskDescription ITaskFactory ITaskInfo ITaskRoute ITextCriterion ITextRequisite ITextValue ITreeListSelectDialog IUser IUserList IValue IView IWebBrowserControl IWizard IWizardAction IWizardFactory IWizardFormElement IWizardParam IWizardPickParam IWizardReferenceParam IWizardStep IWorkAccessRights IWorkDescription IWorkflowAskableParam IWorkflowAskableParams IWorkflowBlock IWorkflowBlockResult IWorkflowEnabledMode IWorkflowParam IWorkflowPickParam IWorkflowReferenceParam IWorkState IWorkTreeCustomNode IWorkTreeJobNode IWorkTreeTaskNode IXMLEditorForm SBCrypto ".trim().replace(/\s/g,"|")+")",end:"[ \\t]*=",excludeEnd:!0},W={className:"variable",keywords:A,begin:t,relevance:0,contains:[G,L]},me="[A-Za-z\u0410-\u042f\u0430-\u044f\u0451\u0401_][A-Za-z\u0410-\u042f\u0430-\u044f\u0451\u0401_0-9]*\\(";return{name:"ISBL",case_insensitive:!0,keywords:A,illegal:"\\$|\\?|%|,|;$|~|#|@|{var a="[0-9](_*[0-9])*",e=`\\.(${a})`,t="[0-9a-fA-F](_*[0-9a-fA-F])*",n={className:"number",variants:[{begin:`(\\b(${a})((${e})|\\.)?|(${e}))[eE][+-]?(${a})[fFdD]?\\b`},{begin:`\\b(${a})((${e})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${e})[fFdD]?\\b`},{begin:`\\b(${a})[fFdD]\\b`},{begin:`\\b0[xX]((${t})\\.?|(${t})?\\.(${t}))[pP][+-]?(${a})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${t})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function i(c,s,l){return-1===l?"":c.replace(s,_=>i(c,s,l-1))}r.exports=function o(c){const s=c.regex,l="[\xc0-\u02b8a-zA-Z_$][\xc0-\u02b8a-zA-Z_$0-9]*",_=l+i("(?:<"+l+"~~~(?:\\s*,\\s*"+l+"~~~)*>)?",/~~~/g,2),S={keyword:["synchronized","abstract","private","var","static","if","const ","for","while","strictfp","finally","protected","import","native","final","void","enum","else","break","transient","catch","instanceof","volatile","case","assert","package","default","public","try","switch","continue","throws","protected","public","private","module","requires","exports","do","sealed","yield","permits"],literal:["false","true","null"],type:["char","boolean","long","float","int","byte","short","double"],built_in:["super","this"]},g={className:"meta",begin:"@"+l,contains:[{begin:/\(/,end:/\)/,contains:["self"]}]},T={className:"params",begin:/\(/,end:/\)/,keywords:S,relevance:0,contains:[c.C_BLOCK_COMMENT_MODE],endsParent:!0};return{name:"Java",aliases:["jsp"],keywords:S,illegal:/<\/|#/,contains:[c.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),{begin:/import java\.[a-z]+\./,keywords:"import",relevance:2},c.C_LINE_COMMENT_MODE,c.C_BLOCK_COMMENT_MODE,{begin:/"""/,end:/"""/,className:"string",contains:[c.BACKSLASH_ESCAPE]},c.APOS_STRING_MODE,c.QUOTE_STRING_MODE,{match:[/\b(?:class|interface|enum|extends|implements|new)/,/\s+/,l],className:{1:"keyword",3:"title.class"}},{match:/non-sealed/,scope:"keyword"},{begin:[s.concat(/(?!else)/,l),/\s+/,l,/\s+/,/=(?!=)/],className:{1:"type",3:"variable",5:"operator"}},{begin:[/record/,/\s+/,l],className:{1:"keyword",3:"title.class"},contains:[T,c.C_LINE_COMMENT_MODE,c.C_BLOCK_COMMENT_MODE]},{beginKeywords:"new throw return else",relevance:0},{begin:["(?:"+_+"\\s+)",c.UNDERSCORE_IDENT_RE,/\s*(?=\()/],className:{2:"title.function"},keywords:S,contains:[{className:"params",begin:/\(/,end:/\)/,keywords:S,relevance:0,contains:[g,c.APOS_STRING_MODE,c.QUOTE_STRING_MODE,n,c.C_BLOCK_COMMENT_MODE]},c.C_LINE_COMMENT_MODE,c.C_BLOCK_COMMENT_MODE]},n,g]}}},7354:r=>{const a="[A-Za-z$_][0-9A-Za-z$_]*",e=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],t=["true","false","null","undefined","NaN","Infinity"],n=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],i=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],o=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],c=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],s=[].concat(o,n,i);r.exports=function l(_){const d=_.regex,u=a,g={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(X,z)=>{const te=X[0].length+X.index,j=X.input[te];if("<"===j||","===j)return void z.ignoreMatch();let oe;">"===j&&(((X,{after:z})=>{const te="",_e={match:[/const|var|let/,/\s+/,u,/\s*/,/=\s*/,/(async\s*)?/,d.lookahead(ce)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[V]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:T,exports:{PARAMS_CONTAINS:K,CLASS_REFERENCE:ie},illegal:/#(?![$_A-z])/,contains:[_.SHEBANG({label:"shebang",binary:"node",relevance:5}),{label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},_.APOS_STRING_MODE,_.QUOTE_STRING_MODE,O,w,D,U,x,{match:/\$\d+/},v,ie,{className:"attr",begin:u+d.lookahead(":"),relevance:0},_e,{begin:"("+_.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[x,_.REGEXP_MODE,{className:"function",begin:ce,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:_.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:T,contains:K}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:"<>",end:""},{match:/<[A-Za-z0-9\\._:-]+\s*\/>/},{begin:g.begin,"on:begin":g.isTrulyOpeningTag,end:g.end}],subLanguage:"xml",contains:[{begin:g.begin,end:g.end,skip:!0,contains:["self"]}]}]},pe,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+_.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[V,_.inherit(_.TITLE_MODE,{begin:u,className:"title.function"})]},{match:/\.\.\./,relevance:0},ge,{match:"\\$"+u,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[V]},Ce,{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"},J,ue,{match:/\$[(.]/}]}}},1214:r=>{r.exports=function a(e){return{name:"JBoss CLI",aliases:["wildfly-cli"],keywords:{$pattern:"[a-z-]+",keyword:"alias batch cd clear command connect connection-factory connection-info data-source deploy deployment-info deployment-overlay echo echo-dmr help history if jdbc-driver-info jms-queue|20 jms-topic|20 ls patch pwd quit read-attribute read-operation reload rollout-plan run-batch set shutdown try unalias undeploy unset version xa-data-source",literal:"true false"},contains:[e.HASH_COMMENT_MODE,e.QUOTE_STRING_MODE,{className:"params",begin:/--[\w\-=\/]+/},{className:"function",begin:/:[\w\-.]+/,relevance:0},{className:"string",begin:/\B([\/.])[\w\-.\/=]+/},{className:"params",begin:/\(/,end:/\)/,contains:[{begin:/[\w-]+ *=/,returnBegin:!0,relevance:0,contains:[{className:"attr",begin:/[\w-]+/}]}],relevance:0}]}}},5454:r=>{r.exports=function a(e){const i=["true","false","null"],o={scope:"literal",beginKeywords:i.join(" ")};return{name:"JSON",keywords:{literal:i},contains:[{className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},{match:/[{}[\],:]/,className:"punctuation",relevance:0},e.QUOTE_STRING_MODE,o,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}},3796:r=>{r.exports=function a(e){return{name:"Julia REPL",contains:[{className:"meta.prompt",begin:/^julia>/,relevance:10,starts:{end:/^(?![ ]{6})/,subLanguage:"julia"}}],aliases:["jldoctest"]}}},1295:r=>{r.exports=function a(e){const t="[A-Za-z_\\u00A1-\\uFFFF][A-Za-z_0-9\\u00A1-\\uFFFF]*",c={$pattern:t,keyword:["baremodule","begin","break","catch","ccall","const","continue","do","else","elseif","end","export","false","finally","for","function","global","if","import","in","isa","let","local","macro","module","quote","return","true","try","using","where","while"],literal:["ARGS","C_NULL","DEPOT_PATH","ENDIAN_BOM","ENV","Inf","Inf16","Inf32","Inf64","InsertionSort","LOAD_PATH","MergeSort","NaN","NaN16","NaN32","NaN64","PROGRAM_FILE","QuickSort","RoundDown","RoundFromZero","RoundNearest","RoundNearestTiesAway","RoundNearestTiesUp","RoundToZero","RoundUp","VERSION|0","devnull","false","im","missing","nothing","pi","stderr","stdin","stdout","true","undef","\u03c0","\u212f"],built_in:["AbstractArray","AbstractChannel","AbstractChar","AbstractDict","AbstractDisplay","AbstractFloat","AbstractIrrational","AbstractMatrix","AbstractRange","AbstractSet","AbstractString","AbstractUnitRange","AbstractVecOrMat","AbstractVector","Any","ArgumentError","Array","AssertionError","BigFloat","BigInt","BitArray","BitMatrix","BitSet","BitVector","Bool","BoundsError","CapturedException","CartesianIndex","CartesianIndices","Cchar","Cdouble","Cfloat","Channel","Char","Cint","Cintmax_t","Clong","Clonglong","Cmd","Colon","Complex","ComplexF16","ComplexF32","ComplexF64","CompositeException","Condition","Cptrdiff_t","Cshort","Csize_t","Cssize_t","Cstring","Cuchar","Cuint","Cuintmax_t","Culong","Culonglong","Cushort","Cvoid","Cwchar_t","Cwstring","DataType","DenseArray","DenseMatrix","DenseVecOrMat","DenseVector","Dict","DimensionMismatch","Dims","DivideError","DomainError","EOFError","Enum","ErrorException","Exception","ExponentialBackOff","Expr","Float16","Float32","Float64","Function","GlobalRef","HTML","IO","IOBuffer","IOContext","IOStream","IdDict","IndexCartesian","IndexLinear","IndexStyle","InexactError","InitError","Int","Int128","Int16","Int32","Int64","Int8","Integer","InterruptException","InvalidStateException","Irrational","KeyError","LinRange","LineNumberNode","LinearIndices","LoadError","MIME","Matrix","Method","MethodError","Missing","MissingException","Module","NTuple","NamedTuple","Nothing","Number","OrdinalRange","OutOfMemoryError","OverflowError","Pair","PartialQuickSort","PermutedDimsArray","Pipe","ProcessFailedException","Ptr","QuoteNode","Rational","RawFD","ReadOnlyMemoryError","Real","ReentrantLock","Ref","Regex","RegexMatch","RoundingMode","SegmentationFault","Set","Signed","Some","StackOverflowError","StepRange","StepRangeLen","StridedArray","StridedMatrix","StridedVecOrMat","StridedVector","String","StringIndexError","SubArray","SubString","SubstitutionString","Symbol","SystemError","Task","TaskFailedException","Text","TextDisplay","Timer","Tuple","Type","TypeError","TypeVar","UInt","UInt128","UInt16","UInt32","UInt64","UInt8","UndefInitializer","UndefKeywordError","UndefRefError","UndefVarError","Union","UnionAll","UnitRange","Unsigned","Val","Vararg","VecElement","VecOrMat","Vector","VersionNumber","WeakKeyDict","WeakRef"]},s={keywords:c,illegal:/<\//},d={className:"subst",begin:/\$\(/,end:/\)/,keywords:c},m={className:"variable",begin:"\\$"+t},u={className:"string",contains:[e.BACKSLASH_ESCAPE,d,m],variants:[{begin:/\w*"""/,end:/"""\w*/,relevance:10},{begin:/\w*"/,end:/"\w*/}]},p={className:"string",contains:[e.BACKSLASH_ESCAPE,d,m],begin:"`",end:"`"},S={className:"meta",begin:"@"+t};return s.name="Julia",s.contains=[{className:"number",begin:/(\b0x[\d_]*(\.[\d_]*)?|0x\.\d[\d_]*)p[-+]?\d+|\b0[box][a-fA-F0-9][a-fA-F0-9_]*|(\b\d[\d_]*(\.[\d_]*)?|\.\d[\d_]*)([eEfF][-+]?\d+)?/,relevance:0},{className:"string",begin:/'(.|\\[xXuU][a-zA-Z0-9]+)'/},u,p,S,{className:"comment",variants:[{begin:"#=",end:"=#",relevance:10},{begin:"#",end:"$"}]},e.HASH_COMMENT_MODE,{className:"keyword",begin:"\\b(((abstract|primitive)\\s+)type|(mutable\\s+)?struct)\\b"},{begin:/<:/}],d.contains=s.contains,s}},4643:r=>{var a="[0-9](_*[0-9])*",e=`\\.(${a})`,t="[0-9a-fA-F](_*[0-9a-fA-F])*",n={className:"number",variants:[{begin:`(\\b(${a})((${e})|\\.)?|(${e}))[eE][+-]?(${a})[fFdD]?\\b`},{begin:`\\b(${a})((${e})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${e})[fFdD]?\\b`},{begin:`\\b(${a})[fFdD]\\b`},{begin:`\\b0[xX]((${t})\\.?|(${t})?\\.(${t}))[pP][+-]?(${a})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${t})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};r.exports=function i(o){const c={keyword:"abstract as val var vararg get set class object open private protected public noinline crossinline dynamic final enum if else do while for when throw try catch finally import package is in fun override companion reified inline lateinit init interface annotation data sealed internal infix operator out by constructor super tailrec where const inner suspend typealias external expect actual",built_in:"Byte Short Char Int Long Boolean Float Double Void Unit Nothing",literal:"true false null"},l={className:"symbol",begin:o.UNDERSCORE_IDENT_RE+"@"},_={className:"subst",begin:/\$\{/,end:/\}/,contains:[o.C_NUMBER_MODE]},d={className:"variable",begin:"\\$"+o.UNDERSCORE_IDENT_RE},m={className:"string",variants:[{begin:'"""',end:'"""(?=[^"])',contains:[d,_]},{begin:"'",end:"'",illegal:/\n/,contains:[o.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[o.BACKSLASH_ESCAPE,d,_]}]};_.contains.push(m);const u={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+o.UNDERSCORE_IDENT_RE+")?"},p={className:"meta",begin:"@"+o.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[o.inherit(m,{className:"string"}),"self"]}]},S=n,g=o.COMMENT("/\\*","\\*/",{contains:[o.C_BLOCK_COMMENT_MODE]}),T={variants:[{className:"type",begin:o.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},R=T;return R.variants[1].contains=[T],T.variants[1].contains=[R],{name:"Kotlin",aliases:["kt","kts"],keywords:c,contains:[o.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),o.C_LINE_COMMENT_MODE,g,{className:"keyword",begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:"symbol",begin:/@\w+/}]}},l,u,p,{className:"function",beginKeywords:"fun",end:"[(]|$",returnBegin:!0,excludeEnd:!0,keywords:c,relevance:5,contains:[{begin:o.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[o.UNDERSCORE_TITLE_MODE]},{className:"type",begin://,keywords:"reified",relevance:0},{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:c,relevance:0,contains:[{begin:/:/,end:/[=,\/]/,endsWithParent:!0,contains:[T,o.C_LINE_COMMENT_MODE,g],relevance:0},o.C_LINE_COMMENT_MODE,g,u,p,m,o.C_NUMBER_MODE]},g]},{begin:[/class|interface|trait/,/\s+/,o.UNDERSCORE_IDENT_RE],beginScope:{3:"title.class"},keywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0,illegal:"extends implements",contains:[{beginKeywords:"public protected internal private constructor"},o.UNDERSCORE_TITLE_MODE,{className:"type",begin://,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/[,:]\s*/,end:/[<\(,){\s]|$/,excludeBegin:!0,returnEnd:!0},u,p]},m,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:"\n"},S]}}},8047:r=>{r.exports=function a(e){const t="[a-zA-Z_][\\w.]*",n="<\\?(lasso(script)?|=)",i="\\]|\\?>",o={$pattern:t+"|&[lg]t;",literal:"true false none minimal full all void and or not bw nbw ew new cn ncn lt lte gt gte eq neq rx nrx ft",built_in:"array date decimal duration integer map pair string tag xml null boolean bytes keyword list locale queue set stack staticarray local var variable global data self inherited currentcapture givenblock",keyword:"cache database_names database_schemanames database_tablenames define_tag define_type email_batch encode_set html_comment handle handle_error header if inline iterate ljax_target link link_currentaction link_currentgroup link_currentrecord link_detail link_firstgroup link_firstrecord link_lastgroup link_lastrecord link_nextgroup link_nextrecord link_prevgroup link_prevrecord log loop namespace_using output_none portal private protect records referer referrer repeating resultset rows search_args search_arguments select sort_args sort_arguments thread_atomic value_list while abort case else fail_if fail_ifnot fail if_empty if_false if_null if_true loop_abort loop_continue loop_count params params_up return return_value run_children soap_definetag soap_lastrequest soap_lastresponse tag_name ascending average by define descending do equals frozen group handle_failure import in into join let match max min on order parent protected provide public require returnhome skip split_thread sum take thread to trait type where with yield yieldhome"},c=e.COMMENT("\x3c!--","--\x3e",{relevance:0}),s={className:"meta",begin:"\\[noprocess\\]",starts:{end:"\\[/noprocess\\]",returnEnd:!0,contains:[c]}},l={className:"meta",begin:"\\[/noprocess|"+n},_={className:"symbol",begin:"'"+t+"'"},d=[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.inherit(e.C_NUMBER_MODE,{begin:e.C_NUMBER_RE+"|(-?infinity|NaN)\\b"}),e.inherit(e.APOS_STRING_MODE,{illegal:null}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:"string",begin:"`",end:"`"},{variants:[{begin:"[#$]"+t},{begin:"#",end:"\\d+",illegal:"\\W"}]},{className:"type",begin:"::\\s*",end:t,illegal:"\\W"},{className:"params",variants:[{begin:"-(?!infinity)"+t,relevance:0},{begin:"(\\.\\.\\.)"}]},{begin:/(->|\.)\s*/,relevance:0,contains:[_]},{className:"class",beginKeywords:"define",returnEnd:!0,end:"\\(|=>",contains:[e.inherit(e.TITLE_MODE,{begin:t+"(=(?!>))?|[-+*/%](?!>)"})]}];return{name:"Lasso",aliases:["ls","lassoscript"],case_insensitive:!0,keywords:o,contains:[{className:"meta",begin:i,relevance:0,starts:{end:"\\[|"+n,returnEnd:!0,relevance:0,contains:[c]}},s,l,{className:"meta",begin:"\\[no_square_brackets",starts:{end:"\\[/no_square_brackets\\]",keywords:o,contains:[{className:"meta",begin:i,relevance:0,starts:{end:"\\[noprocess\\]|"+n,returnEnd:!0,contains:[c]}},s,l].concat(d)}},{className:"meta",begin:"\\[",relevance:0},{className:"meta",begin:"^#!",end:"lasso9$",relevance:10}].concat(d)}}},460:r=>{r.exports=function a(e){const c=[{begin:/\^{6}[0-9a-f]{6}/},{begin:/\^{5}[0-9a-f]{5}/},{begin:/\^{4}[0-9a-f]{4}/},{begin:/\^{3}[0-9a-f]{3}/},{begin:/\^{2}[0-9a-f]{2}/},{begin:/\^{2}[\u0000-\u007f]/}],p=[{className:"keyword",begin:/\\/,relevance:0,contains:[{endsParent:!0,begin:e.regex.either(...["(?:NeedsTeXFormat|RequirePackage|GetIdInfo)","Provides(?:Expl)?(?:Package|Class|File)","(?:DeclareOption|ProcessOptions)","(?:documentclass|usepackage|input|include)","makeat(?:letter|other)","ExplSyntax(?:On|Off)","(?:new|renew|provide)?command","(?:re)newenvironment","(?:New|Renew|Provide|Declare)(?:Expandable)?DocumentCommand","(?:New|Renew|Provide|Declare)DocumentEnvironment","(?:(?:e|g|x)?def|let)","(?:begin|end)","(?:part|chapter|(?:sub){0,2}section|(?:sub)?paragraph)","caption","(?:label|(?:eq|page|name)?ref|(?:paren|foot|super)?cite)","(?:alpha|beta|[Gg]amma|[Dd]elta|(?:var)?epsilon|zeta|eta|[Tt]heta|vartheta)","(?:iota|(?:var)?kappa|[Ll]ambda|mu|nu|[Xx]i|[Pp]i|varpi|(?:var)rho)","(?:[Ss]igma|varsigma|tau|[Uu]psilon|[Pp]hi|varphi|chi|[Pp]si|[Oo]mega)","(?:frac|sum|prod|lim|infty|times|sqrt|leq|geq|left|right|middle|[bB]igg?)","(?:[lr]angle|q?quad|[lcvdi]?dots|d?dot|hat|tilde|bar)"].map(x=>x+"(?![a-zA-Z@:_])"))},{endsParent:!0,begin:new RegExp(["(?:__)?[a-zA-Z]{2,}_[a-zA-Z](?:_?[a-zA-Z])+:[a-zA-Z]*","[lgc]__?[a-zA-Z](?:_?[a-zA-Z])*_[a-zA-Z]{2,}","[qs]__?[a-zA-Z](?:_?[a-zA-Z])+","use(?:_i)?:[a-zA-Z]*","(?:else|fi|or):","(?:if|cs|exp):w","(?:hbox|vbox):n","::[a-zA-Z]_unbraced","::[a-zA-Z:]"].map(x=>x+"(?![a-zA-Z:_])").join("|"))},{endsParent:!0,variants:c},{endsParent:!0,relevance:0,variants:[{begin:/[a-zA-Z@]+/},{begin:/[^a-zA-Z@]?/}]}]},{className:"params",relevance:0,begin:/#+\d?/},{variants:c},{className:"built_in",relevance:0,begin:/[$&^_]/},{className:"meta",begin:/% ?!(T[eE]X|tex|BIB|bib)/,end:"$",relevance:10},e.COMMENT("%","$",{relevance:0})],S={begin:/\{/,end:/\}/,relevance:0,contains:["self",...p]},g=e.inherit(S,{relevance:0,endsParent:!0,contains:[S,...p]}),T={begin:/\[/,end:/\]/,endsParent:!0,relevance:0,contains:[S,...p]},R={begin:/\s+/,relevance:0},C=[g],f=[T],v=function(x,q){return{contains:[R],starts:{relevance:0,contains:x,starts:q}}},y=function(x,q){return{begin:"\\\\"+x+"(?![a-zA-Z@:_])",keywords:{$pattern:/\\[a-zA-Z]+/,keyword:"\\"+x},relevance:0,contains:[R],starts:q}},O=function(x,q){return e.inherit({begin:"\\\\begin(?=[ \t]*(\\r?\\n[ \t]*)?\\{"+x+"\\})",keywords:{$pattern:/\\[a-zA-Z]+/,keyword:"\\begin"},relevance:0},v(C,q))},w=(x="string")=>e.END_SAME_AS_BEGIN({className:x,begin:/(.|\r?\n)/,end:/(.|\r?\n)/,excludeBegin:!0,excludeEnd:!0,endsParent:!0}),D=function(x){return{className:"string",end:"(?=\\\\end\\{"+x+"\\})"}},U=(x="string")=>({relevance:0,begin:/\{/,starts:{endsParent:!0,contains:[{className:x,end:/(?=\})/,endsParent:!0,contains:[{begin:/\{/,end:/\}/,relevance:0,contains:["self"]}]}]}});return{name:"LaTeX",aliases:["tex"],contains:[...["verb","lstinline"].map(x=>y(x,{contains:[w()]})),y("mint",v(C,{contains:[w()]})),y("mintinline",v(C,{contains:[U(),w()]})),y("url",{contains:[U("link"),U("link")]}),y("hyperref",{contains:[U("link")]}),y("href",v(f,{contains:[U("link")]})),...[].concat(...["","\\*"].map(x=>[O("verbatim"+x,D("verbatim"+x)),O("filecontents"+x,v(C,D("filecontents"+x))),...["","B","L"].map(q=>O(q+"Verbatim"+x,v(f,D(q+"Verbatim"+x))))])),O("minted",v(f,v(C,D("minted")))),...p]}}},3876:r=>{r.exports=function a(e){return{name:"LDIF",contains:[{className:"attribute",match:"^dn(?=:)",relevance:10},{className:"attribute",match:"^\\w+(?=:)"},{className:"literal",match:"^-"},e.HASH_COMMENT_MODE]}}},5181:r=>{r.exports=function a(e){return{name:"Leaf",contains:[{className:"function",begin:"#+[A-Za-z_0-9]*\\(",end:/ \{/,returnBegin:!0,excludeEnd:!0,contains:[{className:"keyword",begin:"#+"},{className:"title",begin:"[A-Za-z_][A-Za-z_0-9]*"},{className:"params",begin:"\\(",end:"\\)",endsParent:!0,contains:[{className:"string",begin:'"',end:'"'},{className:"variable",begin:"[A-Za-z_][A-Za-z_0-9]*"}]}]}]}}},3580:r=>{const e=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],t=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],n=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],i=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],o=["align-content","align-items","align-self","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inline-size","isolation","justify-content","left","letter-spacing","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","resize","rest","rest-after","rest-before","right","row-gap","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","speak","speak-as","src","tab-size","table-layout","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index"].reverse(),c=n.concat(i);r.exports=function s(l){const _=(l=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:l.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[l.APOS_STRING_MODE,l.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:l.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z][A-Za-z0-9_-]*/}}))(l),d=c,u="[\\w-]+",p="("+u+"|@\\{"+u+"\\})",S=[],g=[],T=function(x){return{className:"string",begin:"~?"+x+".*?"+x}},R=function(x,q,le){return{className:x,begin:q,relevance:le}},C={$pattern:/[a-z-]+/,keyword:"and or not only",attribute:t.join(" ")},f={begin:"\\(",end:"\\)",contains:g,keywords:C,relevance:0};g.push(l.C_LINE_COMMENT_MODE,l.C_BLOCK_COMMENT_MODE,T("'"),T('"'),_.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},_.HEXCOLOR,f,R("variable","@@?"+u,10),R("variable","@\\{"+u+"\\}"),R("built_in","~?`[^`]*?`"),{className:"attribute",begin:u+"\\s*:",end:":",returnBegin:!0,excludeEnd:!0},_.IMPORTANT,{beginKeywords:"and not"},_.FUNCTION_DISPATCH);const v=g.concat({begin:/\{/,end:/\}/,contains:S}),y={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(g)},O={begin:p+"\\s*:",returnBegin:!0,end:/[;}]/,relevance:0,contains:[{begin:/-(webkit|moz|ms|o)-/},_.CSS_VARIABLE,{className:"attribute",begin:"\\b("+o.join("|")+")\\b",end:/(?=:)/,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:g}}]},w={className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",keywords:C,returnEnd:!0,contains:g,relevance:0}},D={className:"variable",variants:[{begin:"@"+u+"\\s*:",relevance:15},{begin:"@"+u}],starts:{end:"[;}]",returnEnd:!0,contains:v}},U={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:p,end:/\{/}],returnBegin:!0,returnEnd:!0,illegal:"[<='$\"]",relevance:0,contains:[l.C_LINE_COMMENT_MODE,l.C_BLOCK_COMMENT_MODE,y,R("keyword","all\\b"),R("variable","@\\{"+u+"\\}"),{begin:"\\b("+e.join("|")+")\\b",className:"selector-tag"},_.CSS_NUMBER_MODE,R("selector-tag",p,0),R("selector-id","#"+p),R("selector-class","\\."+p,0),R("selector-tag","&",0),_.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",begin:":("+n.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+i.join("|")+")"},{begin:/\(/,end:/\)/,relevance:0,contains:v},{begin:"!important"},_.FUNCTION_DISPATCH]},H={begin:u+`:(:)?(${d.join("|")})`,returnBegin:!0,contains:[U]};return S.push(l.C_LINE_COMMENT_MODE,l.C_BLOCK_COMMENT_MODE,w,D,H,O,U,y,_.FUNCTION_DISPATCH),{name:"Less",case_insensitive:!0,illegal:"[=>'/<($\"]",contains:S}}},5498:r=>{r.exports=function a(e){const t="[a-zA-Z_\\-+\\*\\/<=>&#][a-zA-Z0-9_\\-+*\\/<=>&#!]*",n="\\|[^]*?\\|",i="(-|\\+)?\\d+(\\.\\d+|\\/\\d+)?((d|e|f|l|s|D|E|F|L|S)(\\+|-)?\\d+)?",o={className:"literal",begin:"\\b(t{1}|nil)\\b"},c={className:"number",variants:[{begin:i,relevance:0},{begin:"#(b|B)[0-1]+(/[0-1]+)?"},{begin:"#(o|O)[0-7]+(/[0-7]+)?"},{begin:"#(x|X)[0-9a-fA-F]+(/[0-9a-fA-F]+)?"},{begin:"#(c|C)\\("+i+" +"+i,end:"\\)"}]},s=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),l=e.COMMENT(";","$",{relevance:0}),_={begin:"\\*",end:"\\*"},d={className:"symbol",begin:"[:&]"+t},m={begin:t,relevance:0},u={begin:n},S={contains:[c,s,_,d,{begin:"\\(",end:"\\)",contains:["self",o,s,c,m]},m],variants:[{begin:"['`]\\(",end:"\\)"},{begin:"\\(quote ",end:"\\)",keywords:{name:"quote"}},{begin:"'"+n}]},g={variants:[{begin:"'"+t},{begin:"#'"+t+"(::"+t+")*"}]},T={begin:"\\(\\s*",end:"\\)"},R={endsWithParent:!0,relevance:0};return T.contains=[{className:"name",variants:[{begin:t,relevance:0},{begin:n}]},R],R.contains=[S,g,T,o,c,s,l,_,d,u,m],{name:"Lisp",illegal:/\S/,contains:[c,e.SHEBANG(),o,s,l,S,g,T,m]}}},4003:r=>{r.exports=function a(e){const t={className:"variable",variants:[{begin:"\\b([gtps][A-Z]{1}[a-zA-Z0-9]*)(\\[.+\\])?(?:\\s*?)"},{begin:"\\$_[A-Z]+"}],relevance:0},n=[e.C_BLOCK_COMMENT_MODE,e.HASH_COMMENT_MODE,e.COMMENT("--","$"),e.COMMENT("[^:]//","$")],i=e.inherit(e.TITLE_MODE,{variants:[{begin:"\\b_*rig[A-Z][A-Za-z0-9_\\-]*"},{begin:"\\b_[a-z0-9\\-]+"}]}),o=e.inherit(e.TITLE_MODE,{begin:"\\b([A-Za-z0-9_\\-]+)\\b"});return{name:"LiveCode",case_insensitive:!1,keywords:{keyword:"$_COOKIE $_FILES $_GET $_GET_BINARY $_GET_RAW $_POST $_POST_BINARY $_POST_RAW $_SESSION $_SERVER codepoint codepoints segment segments codeunit codeunits sentence sentences trueWord trueWords paragraph after byte bytes english the until http forever descending using line real8 with seventh for stdout finally element word words fourth before black ninth sixth characters chars stderr uInt1 uInt1s uInt2 uInt2s stdin string lines relative rel any fifth items from middle mid at else of catch then third it file milliseconds seconds second secs sec int1 int1s int4 int4s internet int2 int2s normal text item last long detailed effective uInt4 uInt4s repeat end repeat URL in try into switch to words https token binfile each tenth as ticks tick system real4 by dateItems without char character ascending eighth whole dateTime numeric short first ftp integer abbreviated abbr abbrev private case while if div mod wrap and or bitAnd bitNot bitOr bitXor among not in a an within contains ends with begins the keys of keys",literal:"SIX TEN FORMFEED NINE ZERO NONE SPACE FOUR FALSE COLON CRLF PI COMMA ENDOFFILE EOF EIGHT FIVE QUOTE EMPTY ONE TRUE RETURN CR LINEFEED RIGHT BACKSLASH NULL SEVEN TAB THREE TWO six ten formfeed nine zero none space four false colon crlf pi comma endoffile eof eight five quote empty one true return cr linefeed right backslash null seven tab three two RIVERSION RISTATE FILE_READ_MODE FILE_WRITE_MODE FILE_WRITE_MODE DIR_WRITE_MODE FILE_READ_UMASK FILE_WRITE_UMASK DIR_READ_UMASK DIR_WRITE_UMASK",built_in:"put abs acos aliasReference annuity arrayDecode arrayEncode asin atan atan2 average avg avgDev base64Decode base64Encode baseConvert binaryDecode binaryEncode byteOffset byteToNum cachedURL cachedURLs charToNum cipherNames codepointOffset codepointProperty codepointToNum codeunitOffset commandNames compound compress constantNames cos date dateFormat decompress difference directories diskSpace DNSServers exp exp1 exp2 exp10 extents files flushEvents folders format functionNames geometricMean global globals hasMemory harmonicMean hostAddress hostAddressToName hostName hostNameToAddress isNumber ISOToMac itemOffset keys len length libURLErrorData libUrlFormData libURLftpCommand libURLLastHTTPHeaders libURLLastRHHeaders libUrlMultipartFormAddPart libUrlMultipartFormData libURLVersion lineOffset ln ln1 localNames log log2 log10 longFilePath lower macToISO matchChunk matchText matrixMultiply max md5Digest median merge messageAuthenticationCode messageDigest millisec millisecs millisecond milliseconds min monthNames nativeCharToNum normalizeText num number numToByte numToChar numToCodepoint numToNativeChar offset open openfiles openProcesses openProcessIDs openSockets paragraphOffset paramCount param params peerAddress pendingMessages platform popStdDev populationStandardDeviation populationVariance popVariance processID random randomBytes replaceText result revCreateXMLTree revCreateXMLTreeFromFile revCurrentRecord revCurrentRecordIsFirst revCurrentRecordIsLast revDatabaseColumnCount revDatabaseColumnIsNull revDatabaseColumnLengths revDatabaseColumnNames revDatabaseColumnNamed revDatabaseColumnNumbered revDatabaseColumnTypes revDatabaseConnectResult revDatabaseCursors revDatabaseID revDatabaseTableNames revDatabaseType revDataFromQuery revdb_closeCursor revdb_columnbynumber revdb_columncount revdb_columnisnull revdb_columnlengths revdb_columnnames revdb_columntypes revdb_commit revdb_connect revdb_connections revdb_connectionerr revdb_currentrecord revdb_cursorconnection revdb_cursorerr revdb_cursors revdb_dbtype revdb_disconnect revdb_execute revdb_iseof revdb_isbof revdb_movefirst revdb_movelast revdb_movenext revdb_moveprev revdb_query revdb_querylist revdb_recordcount revdb_rollback revdb_tablenames revGetDatabaseDriverPath revNumberOfRecords revOpenDatabase revOpenDatabases revQueryDatabase revQueryDatabaseBlob revQueryResult revQueryIsAtStart revQueryIsAtEnd revUnixFromMacPath revXMLAttribute revXMLAttributes revXMLAttributeValues revXMLChildContents revXMLChildNames revXMLCreateTreeFromFileWithNamespaces revXMLCreateTreeWithNamespaces revXMLDataFromXPathQuery revXMLEvaluateXPath revXMLFirstChild revXMLMatchingNode revXMLNextSibling revXMLNodeContents revXMLNumberOfChildren revXMLParent revXMLPreviousSibling revXMLRootNode revXMLRPC_CreateRequest revXMLRPC_Documents revXMLRPC_Error revXMLRPC_GetHost revXMLRPC_GetMethod revXMLRPC_GetParam revXMLText revXMLRPC_Execute revXMLRPC_GetParamCount revXMLRPC_GetParamNode revXMLRPC_GetParamType revXMLRPC_GetPath revXMLRPC_GetPort revXMLRPC_GetProtocol revXMLRPC_GetRequest revXMLRPC_GetResponse revXMLRPC_GetSocket revXMLTree revXMLTrees revXMLValidateDTD revZipDescribeItem revZipEnumerateItems revZipOpenArchives round sampVariance sec secs seconds sentenceOffset sha1Digest shell shortFilePath sin specialFolderPath sqrt standardDeviation statRound stdDev sum sysError systemVersion tan tempName textDecode textEncode tick ticks time to tokenOffset toLower toUpper transpose truewordOffset trunc uniDecode uniEncode upper URLDecode URLEncode URLStatus uuid value variableNames variance version waitDepth weekdayNames wordOffset xsltApplyStylesheet xsltApplyStylesheetFromFile xsltLoadStylesheet xsltLoadStylesheetFromFile add breakpoint cancel clear local variable file word line folder directory URL close socket process combine constant convert create new alias folder directory decrypt delete variable word line folder directory URL dispatch divide do encrypt filter get include intersect kill libURLDownloadToFile libURLFollowHttpRedirects libURLftpUpload libURLftpUploadFile libURLresetAll libUrlSetAuthCallback libURLSetDriver libURLSetCustomHTTPHeaders libUrlSetExpect100 libURLSetFTPListCommand libURLSetFTPMode libURLSetFTPStopTime libURLSetStatusCallback load extension loadedExtensions multiply socket prepare process post seek rel relative read from process rename replace require resetAll resolve revAddXMLNode revAppendXML revCloseCursor revCloseDatabase revCommitDatabase revCopyFile revCopyFolder revCopyXMLNode revDeleteFolder revDeleteXMLNode revDeleteAllXMLTrees revDeleteXMLTree revExecuteSQL revGoURL revInsertXMLNode revMoveFolder revMoveToFirstRecord revMoveToLastRecord revMoveToNextRecord revMoveToPreviousRecord revMoveToRecord revMoveXMLNode revPutIntoXMLNode revRollBackDatabase revSetDatabaseDriverPath revSetXMLAttribute revXMLRPC_AddParam revXMLRPC_DeleteAllDocuments revXMLAddDTD revXMLRPC_Free revXMLRPC_FreeAll revXMLRPC_DeleteDocument revXMLRPC_DeleteParam revXMLRPC_SetHost revXMLRPC_SetMethod revXMLRPC_SetPort revXMLRPC_SetProtocol revXMLRPC_SetSocket revZipAddItemWithData revZipAddItemWithFile revZipAddUncompressedItemWithData revZipAddUncompressedItemWithFile revZipCancel revZipCloseArchive revZipDeleteItem revZipExtractItemToFile revZipExtractItemToVariable revZipSetProgressCallback revZipRenameItem revZipReplaceItemWithData revZipReplaceItemWithFile revZipOpenArchive send set sort split start stop subtract symmetric union unload vectorDotProduct wait write"},contains:[t,{className:"keyword",begin:"\\bend\\sif\\b"},{className:"function",beginKeywords:"function",end:"$",contains:[t,o,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE,i]},{className:"function",begin:"\\bend\\s+",end:"$",keywords:"end",contains:[o,i],relevance:0},{beginKeywords:"command on",end:"$",contains:[t,o,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE,i]},{className:"meta",variants:[{begin:"<\\?(rev|lc|livecode)",relevance:10},{begin:"<\\?"},{begin:"\\?>"}]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE,i].concat(n),illegal:";$|^\\[|^=|&|\\{"}}},253:r=>{const a=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],e=["true","false","null","undefined","NaN","Infinity"],o=[].concat(["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"]);r.exports=function c(s){const m={keyword:a.concat(["then","unless","until","loop","of","by","when","and","or","is","isnt","not","it","that","otherwise","from","to","til","fallthrough","case","enum","native","list","map","__hasProp","__extends","__slice","__bind","__indexOf"]),literal:e.concat(["yes","no","on","off","it","that","void"]),built_in:o.concat(["npm","print"])},u="[A-Za-z$_](?:-[0-9A-Za-z$_]|[0-9A-Za-z$_])*",p=s.inherit(s.TITLE_MODE,{begin:u}),S={className:"subst",begin:/#\{/,end:/\}/,keywords:m},g={className:"subst",begin:/#[A-Za-z$_]/,end:/(?:-[0-9A-Za-z$_]|[0-9A-Za-z$_])*/,keywords:m},T=[s.BINARY_NUMBER_MODE,{className:"number",begin:"(\\b0[xX][a-fA-F0-9_]+)|(\\b\\d(\\d|_\\d)*(\\.(\\d(\\d|_\\d)*)?)?(_*[eE]([-+]\\d(_\\d|\\d)*)?)?[_a-z]*)",relevance:0,starts:{end:"(\\s*/)?",relevance:0}},{className:"string",variants:[{begin:/'''/,end:/'''/,contains:[s.BACKSLASH_ESCAPE]},{begin:/'/,end:/'/,contains:[s.BACKSLASH_ESCAPE]},{begin:/"""/,end:/"""/,contains:[s.BACKSLASH_ESCAPE,S,g]},{begin:/"/,end:/"/,contains:[s.BACKSLASH_ESCAPE,S,g]},{begin:/\\/,end:/(\s|$)/,excludeEnd:!0}]},{className:"regexp",variants:[{begin:"//",end:"//[gim]*",contains:[S,s.HASH_COMMENT_MODE]},{begin:/\/(?![ *])(\\.|[^\\\n])*?\/[gim]*(?=\W)/}]},{begin:"@"+u},{begin:"``",end:"``",excludeBegin:!0,excludeEnd:!0,subLanguage:"javascript"}];S.contains=T;const R={className:"params",begin:"\\(",returnBegin:!0,contains:[{begin:/\(/,end:/\)/,keywords:m,contains:["self"].concat(T)}]},f={variants:[{match:[/class\s+/,u,/\s+extends\s+/,u]},{match:[/class\s+/,u]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:m};return{name:"LiveScript",aliases:["ls"],keywords:m,illegal:/\/\*/,contains:T.concat([s.COMMENT("\\/\\*","\\*\\/"),s.HASH_COMMENT_MODE,{begin:"(#=>|=>|\\|>>|-?->|!->)"},{className:"function",contains:[p,R],returnBegin:!0,variants:[{begin:"("+u+"\\s*(?:=|:=)\\s*)?(\\(.*\\)\\s*)?\\B->\\*?",end:"->\\*?"},{begin:"("+u+"\\s*(?:=|:=)\\s*)?!?(\\(.*\\)\\s*)?\\B[-~]{1,2}>\\*?",end:"[-~]{1,2}>\\*?"},{begin:"("+u+"\\s*(?:=|:=)\\s*)?(\\(.*\\)\\s*)?\\B!?[-~]{1,2}>\\*?",end:"!?[-~]{1,2}>\\*?"}]},f,{begin:u+":",end:":",returnBegin:!0,returnEnd:!0,relevance:0}])}}},272:r=>{r.exports=function a(e){const t=e.regex,n=/([-a-zA-Z$._][\w$.-]*)/,_={className:"variable",variants:[{begin:t.concat(/%/,n)},{begin:/%\d+/},{begin:/#\d+/}]},d={className:"title",variants:[{begin:t.concat(/@/,n)},{begin:/@\d+/},{begin:t.concat(/!/,n)},{begin:t.concat(/!\d+/,n)},{begin:/!\d+/}]};return{name:"LLVM IR",keywords:"begin end true false declare define global constant private linker_private internal available_externally linkonce linkonce_odr weak weak_odr appending dllimport dllexport common default hidden protected extern_weak external thread_local zeroinitializer undef null to tail target triple datalayout volatile nuw nsw nnan ninf nsz arcp fast exact inbounds align addrspace section alias module asm sideeffect gc dbg linker_private_weak attributes blockaddress initialexec localdynamic localexec prefix unnamed_addr ccc fastcc coldcc x86_stdcallcc x86_fastcallcc arm_apcscc arm_aapcscc arm_aapcs_vfpcc ptx_device ptx_kernel intel_ocl_bicc msp430_intrcc spir_func spir_kernel x86_64_sysvcc x86_64_win64cc x86_thiscallcc cc c signext zeroext inreg sret nounwind noreturn noalias nocapture byval nest readnone readonly inlinehint noinline alwaysinline optsize ssp sspreq noredzone noimplicitfloat naked builtin cold nobuiltin noduplicate nonlazybind optnone returns_twice sanitize_address sanitize_memory sanitize_thread sspstrong uwtable returned type opaque eq ne slt sgt sle sge ult ugt ule uge oeq one olt ogt ole oge ord uno ueq une x acq_rel acquire alignstack atomic catch cleanup filter inteldialect max min monotonic nand personality release seq_cst singlethread umax umin unordered xchg add fadd sub fsub mul fmul udiv sdiv fdiv urem srem frem shl lshr ashr and or xor icmp fcmp phi call trunc zext sext fptrunc fpext uitofp sitofp fptoui fptosi inttoptr ptrtoint bitcast addrspacecast select va_arg ret br switch invoke unwind unreachable indirectbr landingpad resume malloc alloca free load store getelementptr extractelement insertelement shufflevector getresult extractvalue insertvalue atomicrmw cmpxchg fence argmemonly double",contains:[{className:"type",begin:/\bi\d+(?=\s|\b)/},e.COMMENT(/;\s*$/,null,{relevance:0}),e.COMMENT(/;/,/$/),{className:"string",begin:/"/,end:/"/,contains:[{className:"char.escape",match:/\\\d\d/}]},d,{className:"punctuation",relevance:0,begin:/,/},{className:"operator",relevance:0,begin:/=/},_,{className:"symbol",variants:[{begin:/^\s*[a-z]+:/}],relevance:0},{className:"number",variants:[{begin:/[su]?0[xX][KMLHR]?[a-fA-F0-9]+/},{begin:/[-+]?\d+(?:[.]\d+)?(?:[eE][-+]?\d+(?:[.]\d+)?)?/}],relevance:0}]}}},6707:r=>{r.exports=function a(e){const i={className:"number",relevance:0,begin:e.C_NUMBER_RE};return{name:"LSL (Linden Scripting Language)",illegal:":",contains:[{className:"string",begin:'"',end:'"',contains:[{className:"subst",begin:/\\[tn"\\]/}]},{className:"comment",variants:[e.COMMENT("//","$"),e.COMMENT("/\\*","\\*/")],relevance:0},i,{className:"section",variants:[{begin:"\\b(state|default)\\b"},{begin:"\\b(state_(entry|exit)|touch(_(start|end))?|(land_)?collision(_(start|end))?|timer|listen|(no_)?sensor|control|(not_)?at_(rot_)?target|money|email|experience_permissions(_denied)?|run_time_permissions|changed|attach|dataserver|moving_(start|end)|link_message|(on|object)_rez|remote_data|http_re(sponse|quest)|path_update|transaction_result)\\b"}]},{className:"built_in",begin:"\\b(ll(AgentInExperience|(Create|DataSize|Delete|KeyCount|Keys|Read|Update)KeyValue|GetExperience(Details|ErrorMessage)|ReturnObjectsBy(ID|Owner)|Json(2List|[GS]etValue|ValueType)|Sin|Cos|Tan|Atan2|Sqrt|Pow|Abs|Fabs|Frand|Floor|Ceil|Round|Vec(Mag|Norm|Dist)|Rot(Between|2(Euler|Fwd|Left|Up))|(Euler|Axes)2Rot|Whisper|(Region|Owner)?Say|Shout|Listen(Control|Remove)?|Sensor(Repeat|Remove)?|Detected(Name|Key|Owner|Type|Pos|Vel|Grab|Rot|Group|LinkNumber)|Die|Ground|Wind|([GS]et)(AnimationOverride|MemoryLimit|PrimMediaParams|ParcelMusicURL|Object(Desc|Name)|PhysicsMaterial|Status|Scale|Color|Alpha|Texture|Pos|Rot|Force|Torque)|ResetAnimationOverride|(Scale|Offset|Rotate)Texture|(Rot)?Target(Remove)?|(Stop)?MoveToTarget|Apply(Rotational)?Impulse|Set(KeyframedMotion|ContentType|RegionPos|(Angular)?Velocity|Buoyancy|HoverHeight|ForceAndTorque|TimerEvent|ScriptState|Damage|TextureAnim|Sound(Queueing|Radius)|Vehicle(Type|(Float|Vector|Rotation)Param)|(Touch|Sit)?Text|Camera(Eye|At)Offset|PrimitiveParams|ClickAction|Link(Alpha|Color|PrimitiveParams(Fast)?|Texture(Anim)?|Camera|Media)|RemoteScriptAccessPin|PayPrice|LocalRot)|ScaleByFactor|Get((Max|Min)ScaleFactor|ClosestNavPoint|StaticPath|SimStats|Env|PrimitiveParams|Link(PrimitiveParams|Number(OfSides)?|Key|Name|Media)|HTTPHeader|FreeURLs|Object(Details|PermMask|PrimCount)|Parcel(MaxPrims|Details|Prim(Count|Owners))|Attached(List)?|(SPMax|Free|Used)Memory|Region(Name|TimeDilation|FPS|Corner|AgentCount)|Root(Position|Rotation)|UnixTime|(Parcel|Region)Flags|(Wall|GMT)clock|SimulatorHostname|BoundingBox|GeometricCenter|Creator|NumberOf(Prims|NotecardLines|Sides)|Animation(List)?|(Camera|Local)(Pos|Rot)|Vel|Accel|Omega|Time(stamp|OfDay)|(Object|CenterOf)?Mass|MassMKS|Energy|Owner|(Owner)?Key|SunDirection|Texture(Offset|Scale|Rot)|Inventory(Number|Name|Key|Type|Creator|PermMask)|Permissions(Key)?|StartParameter|List(Length|EntryType)|Date|Agent(Size|Info|Language|List)|LandOwnerAt|NotecardLine|Script(Name|State))|(Get|Reset|GetAndReset)Time|PlaySound(Slave)?|LoopSound(Master|Slave)?|(Trigger|Stop|Preload)Sound|((Get|Delete)Sub|Insert)String|To(Upper|Lower)|Give(InventoryList|Money)|RezObject|(Stop)?LookAt|Sleep|CollisionFilter|(Take|Release)Controls|DetachFromAvatar|AttachToAvatar(Temp)?|InstantMessage|(GetNext)?Email|StopHover|MinEventDelay|RotLookAt|String(Length|Trim)|(Start|Stop)Animation|TargetOmega|Request(Experience)?Permissions|(Create|Break)Link|BreakAllLinks|(Give|Remove)Inventory|Water|PassTouches|Request(Agent|Inventory)Data|TeleportAgent(Home|GlobalCoords)?|ModifyLand|CollisionSound|ResetScript|MessageLinked|PushObject|PassCollisions|AxisAngle2Rot|Rot2(Axis|Angle)|A(cos|sin)|AngleBetween|AllowInventoryDrop|SubStringIndex|List2(CSV|Integer|Json|Float|String|Key|Vector|Rot|List(Strided)?)|DeleteSubList|List(Statistics|Sort|Randomize|(Insert|Find|Replace)List)|EdgeOfWorld|AdjustSoundVolume|Key2Name|TriggerSoundLimited|EjectFromLand|(CSV|ParseString)2List|OverMyLand|SameGroup|UnSit|Ground(Slope|Normal|Contour)|GroundRepel|(Set|Remove)VehicleFlags|SitOnLink|(AvatarOn)?(Link)?SitTarget|Script(Danger|Profiler)|Dialog|VolumeDetect|ResetOtherScript|RemoteLoadScriptPin|(Open|Close)RemoteDataChannel|SendRemoteData|RemoteDataReply|(Integer|String)ToBase64|XorBase64|Log(10)?|Base64To(String|Integer)|ParseStringKeepNulls|RezAtRoot|RequestSimulatorData|ForceMouselook|(Load|Release|(E|Une)scape)URL|ParcelMedia(CommandList|Query)|ModPow|MapDestination|(RemoveFrom|AddTo|Reset)Land(Pass|Ban)List|(Set|Clear)CameraParams|HTTP(Request|Response)|TextBox|DetectedTouch(UV|Face|Pos|(N|Bin)ormal|ST)|(MD5|SHA1|DumpList2)String|Request(Secure)?URL|Clear(Prim|Link)Media|(Link)?ParticleSystem|(Get|Request)(Username|DisplayName)|RegionSayTo|CastRay|GenerateKey|TransferLindenDollars|ManageEstateAccess|(Create|Delete)Character|ExecCharacterCmd|Evade|FleeFrom|NavigateTo|PatrolPoints|Pursue|UpdateCharacter|WanderWithin))\\b"},{className:"literal",variants:[{begin:"\\b(PI|TWO_PI|PI_BY_TWO|DEG_TO_RAD|RAD_TO_DEG|SQRT2)\\b"},{begin:"\\b(XP_ERROR_(EXPERIENCES_DISABLED|EXPERIENCE_(DISABLED|SUSPENDED)|INVALID_(EXPERIENCE|PARAMETERS)|KEY_NOT_FOUND|MATURITY_EXCEEDED|NONE|NOT_(FOUND|PERMITTED(_LAND)?)|NO_EXPERIENCE|QUOTA_EXCEEDED|RETRY_UPDATE|STORAGE_EXCEPTION|STORE_DISABLED|THROTTLED|UNKNOWN_ERROR)|JSON_APPEND|STATUS_(PHYSICS|ROTATE_[XYZ]|PHANTOM|SANDBOX|BLOCK_GRAB(_OBJECT)?|(DIE|RETURN)_AT_EDGE|CAST_SHADOWS|OK|MALFORMED_PARAMS|TYPE_MISMATCH|BOUNDS_ERROR|NOT_(FOUND|SUPPORTED)|INTERNAL_ERROR|WHITELIST_FAILED)|AGENT(_(BY_(LEGACY_|USER)NAME|FLYING|ATTACHMENTS|SCRIPTED|MOUSELOOK|SITTING|ON_OBJECT|AWAY|WALKING|IN_AIR|TYPING|CROUCHING|BUSY|ALWAYS_RUN|AUTOPILOT|LIST_(PARCEL(_OWNER)?|REGION)))?|CAMERA_(PITCH|DISTANCE|BEHINDNESS_(ANGLE|LAG)|(FOCUS|POSITION)(_(THRESHOLD|LOCKED|LAG))?|FOCUS_OFFSET|ACTIVE)|ANIM_ON|LOOP|REVERSE|PING_PONG|SMOOTH|ROTATE|SCALE|ALL_SIDES|LINK_(ROOT|SET|ALL_(OTHERS|CHILDREN)|THIS)|ACTIVE|PASS(IVE|_(ALWAYS|IF_NOT_HANDLED|NEVER))|SCRIPTED|CONTROL_(FWD|BACK|(ROT_)?(LEFT|RIGHT)|UP|DOWN|(ML_)?LBUTTON)|PERMISSION_(RETURN_OBJECTS|DEBIT|OVERRIDE_ANIMATIONS|SILENT_ESTATE_MANAGEMENT|TAKE_CONTROLS|TRIGGER_ANIMATION|ATTACH|CHANGE_LINKS|(CONTROL|TRACK)_CAMERA|TELEPORT)|INVENTORY_(TEXTURE|SOUND|OBJECT|SCRIPT|LANDMARK|CLOTHING|NOTECARD|BODYPART|ANIMATION|GESTURE|ALL|NONE)|CHANGED_(INVENTORY|COLOR|SHAPE|SCALE|TEXTURE|LINK|ALLOWED_DROP|OWNER|REGION(_START)?|TELEPORT|MEDIA)|OBJECT_(CLICK_ACTION|HOVER_HEIGHT|LAST_OWNER_ID|(PHYSICS|SERVER|STREAMING)_COST|UNKNOWN_DETAIL|CHARACTER_TIME|PHANTOM|PHYSICS|TEMP_(ATTACHED|ON_REZ)|NAME|DESC|POS|PRIM_(COUNT|EQUIVALENCE)|RETURN_(PARCEL(_OWNER)?|REGION)|REZZER_KEY|ROO?T|VELOCITY|OMEGA|OWNER|GROUP(_TAG)?|CREATOR|ATTACHED_(POINT|SLOTS_AVAILABLE)|RENDER_WEIGHT|(BODY_SHAPE|PATHFINDING)_TYPE|(RUNNING|TOTAL)_SCRIPT_COUNT|TOTAL_INVENTORY_COUNT|SCRIPT_(MEMORY|TIME))|TYPE_(INTEGER|FLOAT|STRING|KEY|VECTOR|ROTATION|INVALID)|(DEBUG|PUBLIC)_CHANNEL|ATTACH_(AVATAR_CENTER|CHEST|HEAD|BACK|PELVIS|MOUTH|CHIN|NECK|NOSE|BELLY|[LR](SHOULDER|HAND|FOOT|EAR|EYE|[UL](ARM|LEG)|HIP)|(LEFT|RIGHT)_PEC|HUD_(CENTER_[12]|TOP_(RIGHT|CENTER|LEFT)|BOTTOM(_(RIGHT|LEFT))?)|[LR]HAND_RING1|TAIL_(BASE|TIP)|[LR]WING|FACE_(JAW|[LR]EAR|[LR]EYE|TOUNGE)|GROIN|HIND_[LR]FOOT)|LAND_(LEVEL|RAISE|LOWER|SMOOTH|NOISE|REVERT)|DATA_(ONLINE|NAME|BORN|SIM_(POS|STATUS|RATING)|PAYINFO)|PAYMENT_INFO_(ON_FILE|USED)|REMOTE_DATA_(CHANNEL|REQUEST|REPLY)|PSYS_(PART_(BF_(ZERO|ONE(_MINUS_(DEST_COLOR|SOURCE_(ALPHA|COLOR)))?|DEST_COLOR|SOURCE_(ALPHA|COLOR))|BLEND_FUNC_(DEST|SOURCE)|FLAGS|(START|END)_(COLOR|ALPHA|SCALE|GLOW)|MAX_AGE|(RIBBON|WIND|INTERP_(COLOR|SCALE)|BOUNCE|FOLLOW_(SRC|VELOCITY)|TARGET_(POS|LINEAR)|EMISSIVE)_MASK)|SRC_(MAX_AGE|PATTERN|ANGLE_(BEGIN|END)|BURST_(RATE|PART_COUNT|RADIUS|SPEED_(MIN|MAX))|ACCEL|TEXTURE|TARGET_KEY|OMEGA|PATTERN_(DROP|EXPLODE|ANGLE(_CONE(_EMPTY)?)?)))|VEHICLE_(REFERENCE_FRAME|TYPE_(NONE|SLED|CAR|BOAT|AIRPLANE|BALLOON)|(LINEAR|ANGULAR)_(FRICTION_TIMESCALE|MOTOR_DIRECTION)|LINEAR_MOTOR_OFFSET|HOVER_(HEIGHT|EFFICIENCY|TIMESCALE)|BUOYANCY|(LINEAR|ANGULAR)_(DEFLECTION_(EFFICIENCY|TIMESCALE)|MOTOR_(DECAY_)?TIMESCALE)|VERTICAL_ATTRACTION_(EFFICIENCY|TIMESCALE)|BANKING_(EFFICIENCY|MIX|TIMESCALE)|FLAG_(NO_DEFLECTION_UP|LIMIT_(ROLL_ONLY|MOTOR_UP)|HOVER_((WATER|TERRAIN|UP)_ONLY|GLOBAL_HEIGHT)|MOUSELOOK_(STEER|BANK)|CAMERA_DECOUPLED))|PRIM_(ALLOW_UNSIT|ALPHA_MODE(_(BLEND|EMISSIVE|MASK|NONE))?|NORMAL|SPECULAR|TYPE(_(BOX|CYLINDER|PRISM|SPHERE|TORUS|TUBE|RING|SCULPT))?|HOLE_(DEFAULT|CIRCLE|SQUARE|TRIANGLE)|MATERIAL(_(STONE|METAL|GLASS|WOOD|FLESH|PLASTIC|RUBBER))?|SHINY_(NONE|LOW|MEDIUM|HIGH)|BUMP_(NONE|BRIGHT|DARK|WOOD|BARK|BRICKS|CHECKER|CONCRETE|TILE|STONE|DISKS|GRAVEL|BLOBS|SIDING|LARGETILE|STUCCO|SUCTION|WEAVE)|TEXGEN_(DEFAULT|PLANAR)|SCRIPTED_SIT_ONLY|SCULPT_(TYPE_(SPHERE|TORUS|PLANE|CYLINDER|MASK)|FLAG_(MIRROR|INVERT))|PHYSICS(_(SHAPE_(CONVEX|NONE|PRIM|TYPE)))?|(POS|ROT)_LOCAL|SLICE|TEXT|FLEXIBLE|POINT_LIGHT|TEMP_ON_REZ|PHANTOM|POSITION|SIT_TARGET|SIZE|ROTATION|TEXTURE|NAME|OMEGA|DESC|LINK_TARGET|COLOR|BUMP_SHINY|FULLBRIGHT|TEXGEN|GLOW|MEDIA_(ALT_IMAGE_ENABLE|CONTROLS|(CURRENT|HOME)_URL|AUTO_(LOOP|PLAY|SCALE|ZOOM)|FIRST_CLICK_INTERACT|(WIDTH|HEIGHT)_PIXELS|WHITELIST(_ENABLE)?|PERMS_(INTERACT|CONTROL)|PARAM_MAX|CONTROLS_(STANDARD|MINI)|PERM_(NONE|OWNER|GROUP|ANYONE)|MAX_(URL_LENGTH|WHITELIST_(SIZE|COUNT)|(WIDTH|HEIGHT)_PIXELS)))|MASK_(BASE|OWNER|GROUP|EVERYONE|NEXT)|PERM_(TRANSFER|MODIFY|COPY|MOVE|ALL)|PARCEL_(MEDIA_COMMAND_(STOP|PAUSE|PLAY|LOOP|TEXTURE|URL|TIME|AGENT|UNLOAD|AUTO_ALIGN|TYPE|SIZE|DESC|LOOP_SET)|FLAG_(ALLOW_(FLY|(GROUP_)?SCRIPTS|LANDMARK|TERRAFORM|DAMAGE|CREATE_(GROUP_)?OBJECTS)|USE_(ACCESS_(GROUP|LIST)|BAN_LIST|LAND_PASS_LIST)|LOCAL_SOUND_ONLY|RESTRICT_PUSHOBJECT|ALLOW_(GROUP|ALL)_OBJECT_ENTRY)|COUNT_(TOTAL|OWNER|GROUP|OTHER|SELECTED|TEMP)|DETAILS_(NAME|DESC|OWNER|GROUP|AREA|ID|SEE_AVATARS))|LIST_STAT_(MAX|MIN|MEAN|MEDIAN|STD_DEV|SUM(_SQUARES)?|NUM_COUNT|GEOMETRIC_MEAN|RANGE)|PAY_(HIDE|DEFAULT)|REGION_FLAG_(ALLOW_DAMAGE|FIXED_SUN|BLOCK_TERRAFORM|SANDBOX|DISABLE_(COLLISIONS|PHYSICS)|BLOCK_FLY|ALLOW_DIRECT_TELEPORT|RESTRICT_PUSHOBJECT)|HTTP_(METHOD|MIMETYPE|BODY_(MAXLENGTH|TRUNCATED)|CUSTOM_HEADER|PRAGMA_NO_CACHE|VERBOSE_THROTTLE|VERIFY_CERT)|SIT_(INVALID_(AGENT|LINK_OBJECT)|NO(T_EXPERIENCE|_(ACCESS|EXPERIENCE_PERMISSION|SIT_TARGET)))|STRING_(TRIM(_(HEAD|TAIL))?)|CLICK_ACTION_(NONE|TOUCH|SIT|BUY|PAY|OPEN(_MEDIA)?|PLAY|ZOOM)|TOUCH_INVALID_FACE|PROFILE_(NONE|SCRIPT_MEMORY)|RC_(DATA_FLAGS|DETECT_PHANTOM|GET_(LINK_NUM|NORMAL|ROOT_KEY)|MAX_HITS|REJECT_(TYPES|AGENTS|(NON)?PHYSICAL|LAND))|RCERR_(CAST_TIME_EXCEEDED|SIM_PERF_LOW|UNKNOWN)|ESTATE_ACCESS_(ALLOWED_(AGENT|GROUP)_(ADD|REMOVE)|BANNED_AGENT_(ADD|REMOVE))|DENSITY|FRICTION|RESTITUTION|GRAVITY_MULTIPLIER|KFM_(COMMAND|CMD_(PLAY|STOP|PAUSE)|MODE|FORWARD|LOOP|PING_PONG|REVERSE|DATA|ROTATION|TRANSLATION)|ERR_(GENERIC|PARCEL_PERMISSIONS|MALFORMED_PARAMS|RUNTIME_PERMISSIONS|THROTTLED)|CHARACTER_(CMD_((SMOOTH_)?STOP|JUMP)|DESIRED_(TURN_)?SPEED|RADIUS|STAY_WITHIN_PARCEL|LENGTH|ORIENTATION|ACCOUNT_FOR_SKIPPED_FRAMES|AVOIDANCE_MODE|TYPE(_([ABCD]|NONE))?|MAX_(DECEL|TURN_RADIUS|(ACCEL|SPEED)))|PURSUIT_(OFFSET|FUZZ_FACTOR|GOAL_TOLERANCE|INTERCEPT)|REQUIRE_LINE_OF_SIGHT|FORCE_DIRECT_PATH|VERTICAL|HORIZONTAL|AVOID_(CHARACTERS|DYNAMIC_OBSTACLES|NONE)|PU_(EVADE_(HIDDEN|SPOTTED)|FAILURE_(DYNAMIC_PATHFINDING_DISABLED|INVALID_(GOAL|START)|NO_(NAVMESH|VALID_DESTINATION)|OTHER|TARGET_GONE|(PARCEL_)?UNREACHABLE)|(GOAL|SLOWDOWN_DISTANCE)_REACHED)|TRAVERSAL_TYPE(_(FAST|NONE|SLOW))?|CONTENT_TYPE_(ATOM|FORM|HTML|JSON|LLSD|RSS|TEXT|XHTML|XML)|GCNP_(RADIUS|STATIC)|(PATROL|WANDER)_PAUSE_AT_WAYPOINTS|OPT_(AVATAR|CHARACTER|EXCLUSION_VOLUME|LEGACY_LINKSET|MATERIAL_VOLUME|OTHER|STATIC_OBSTACLE|WALKABLE)|SIM_STAT_PCT_CHARS_STEPPED)\\b"},{begin:"\\b(FALSE|TRUE)\\b"},{begin:"\\b(ZERO_ROTATION)\\b"},{begin:"\\b(EOF|JSON_(ARRAY|DELETE|FALSE|INVALID|NULL|NUMBER|OBJECT|STRING|TRUE)|NULL_KEY|TEXTURE_(BLANK|DEFAULT|MEDIA|PLYWOOD|TRANSPARENT)|URL_REQUEST_(GRANTED|DENIED))\\b"},{begin:"\\b(ZERO_VECTOR|TOUCH_INVALID_(TEXCOORD|VECTOR))\\b"}]},{className:"type",begin:"\\b(integer|float|string|key|vector|quaternion|rotation|list)\\b"}]}}},1739:r=>{r.exports=function a(e){const t="\\[=*\\[",n="\\]=*\\]",i={begin:t,end:n,contains:["self"]},o=[e.COMMENT("--(?!"+t+")","$"),e.COMMENT("--"+t,n,{contains:[i],relevance:10})];return{name:"Lua",keywords:{$pattern:e.UNDERSCORE_IDENT_RE,literal:"true false nil",keyword:"and break do else elseif end for goto if in local not or repeat return then until while",built_in:"_G _ENV _VERSION __index __newindex __mode __call __metatable __tostring __len __gc __add __sub __mul __div __mod __pow __concat __unm __eq __lt __le assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall arg self coroutine resume yield status wrap create running debug getupvalue debug sethook getmetatable gethook setmetatable setlocal traceback setfenv getinfo setupvalue getlocal getregistry getfenv io lines write close flush open output type read stderr stdin input stdout popen tmpfile math log max acos huge ldexp pi cos tanh pow deg tan cosh sinh random randomseed frexp ceil floor rad abs sqrt modf asin min mod fmod log10 atan2 exp sin atan os exit setlocale date getenv difftime remove time clock tmpname rename execute package preload loadlib loaded loaders cpath config path seeall string sub upper len gfind rep find match char dump gmatch reverse byte format gsub lower table setn insert getn foreachi maxn foreach concat sort remove"},contains:o.concat([{className:"function",beginKeywords:"function",end:"\\)",contains:[e.inherit(e.TITLE_MODE,{begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),{className:"params",begin:"\\(",endsWithParent:!0,contains:o}].concat(o)},e.C_NUMBER_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:t,end:n,contains:[i],relevance:5}])}}},1910:r=>{r.exports=function a(e){const t={className:"variable",variants:[{begin:"\\$\\("+e.UNDERSCORE_IDENT_RE+"\\)",contains:[e.BACKSLASH_ESCAPE]},{begin:/\$[@%{r.exports=function a(e){const n={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml",relevance:0},_={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:e.regex.concat(/\[.+?\]\(/,/[A-Za-z][A-Za-z0-9+.-]*/,/:\/\/.*?\)/),relevance:2},{begin:/\[.+?\]\([./?&#].*?\)/,relevance:1},{begin:/\[.*?\]\(.*?\)/,relevance:0}],returnBegin:!0,contains:[{match:/\[(?=\])/},{className:"string",relevance:0,begin:"\\[",end:"\\]",excludeBegin:!0,returnEnd:!0},{className:"link",relevance:0,begin:"\\]\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"symbol",relevance:0,begin:"\\]\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0}]},d={className:"strong",contains:[],variants:[{begin:/_{2}(?!\s)/,end:/_{2}/},{begin:/\*{2}(?!\s)/,end:/\*{2}/}]},m={className:"emphasis",contains:[],variants:[{begin:/\*(?![*\s])/,end:/\*/},{begin:/_(?![_\s])/,end:/_/,relevance:0}]},u=e.inherit(d,{contains:[]}),p=e.inherit(m,{contains:[]});d.contains.push(p),m.contains.push(u);let S=[n,_];return[d,m,u,p].forEach(R=>{R.contains=R.contains.concat(S)}),S=S.concat(d,m),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:S},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:S}]}]},n,{className:"bullet",begin:"^[ \t]*([*+-]|(\\d+\\.))(?=\\s+)",end:"\\s+",excludeEnd:!0},d,m,{className:"quote",begin:"^>\\s+",contains:S,end:"$"},{className:"code",variants:[{begin:"(`{3,})[^`](.|\\n)*?\\1`*[ ]*"},{begin:"(~{3,})[^~](.|\\n)*?\\1~*[ ]*"},{begin:"```",end:"```+[ ]*$"},{begin:"~~~",end:"~~~+[ ]*$"},{begin:"`.+?`"},{begin:"(?=^( {4}|\\t))",contains:[{begin:"^( {4}|\\t)",end:"(\\n)$"}],relevance:0}]},{begin:"^[-\\*]{3,}",end:"$"},_,{begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]}]}}},8580:r=>{const a=["AASTriangle","AbelianGroup","Abort","AbortKernels","AbortProtect","AbortScheduledTask","Above","Abs","AbsArg","AbsArgPlot","Absolute","AbsoluteCorrelation","AbsoluteCorrelationFunction","AbsoluteCurrentValue","AbsoluteDashing","AbsoluteFileName","AbsoluteOptions","AbsolutePointSize","AbsoluteThickness","AbsoluteTime","AbsoluteTiming","AcceptanceThreshold","AccountingForm","Accumulate","Accuracy","AccuracyGoal","AcousticAbsorbingValue","AcousticImpedanceValue","AcousticNormalVelocityValue","AcousticPDEComponent","AcousticPressureCondition","AcousticRadiationValue","AcousticSoundHardValue","AcousticSoundSoftCondition","ActionDelay","ActionMenu","ActionMenuBox","ActionMenuBoxOptions","Activate","Active","ActiveClassification","ActiveClassificationObject","ActiveItem","ActivePrediction","ActivePredictionObject","ActiveStyle","AcyclicGraphQ","AddOnHelpPath","AddSides","AddTo","AddToSearchIndex","AddUsers","AdjacencyGraph","AdjacencyList","AdjacencyMatrix","AdjacentMeshCells","Adjugate","AdjustmentBox","AdjustmentBoxOptions","AdjustTimeSeriesForecast","AdministrativeDivisionData","AffineHalfSpace","AffineSpace","AffineStateSpaceModel","AffineTransform","After","AggregatedEntityClass","AggregationLayer","AircraftData","AirportData","AirPressureData","AirSoundAttenuation","AirTemperatureData","AiryAi","AiryAiPrime","AiryAiZero","AiryBi","AiryBiPrime","AiryBiZero","AlgebraicIntegerQ","AlgebraicNumber","AlgebraicNumberDenominator","AlgebraicNumberNorm","AlgebraicNumberPolynomial","AlgebraicNumberTrace","AlgebraicRules","AlgebraicRulesData","Algebraics","AlgebraicUnitQ","Alignment","AlignmentMarker","AlignmentPoint","All","AllowAdultContent","AllowChatServices","AllowedCloudExtraParameters","AllowedCloudParameterExtensions","AllowedDimensions","AllowedFrequencyRange","AllowedHeads","AllowGroupClose","AllowIncomplete","AllowInlineCells","AllowKernelInitialization","AllowLooseGrammar","AllowReverseGroupClose","AllowScriptLevelChange","AllowVersionUpdate","AllTrue","Alphabet","AlphabeticOrder","AlphabeticSort","AlphaChannel","AlternateImage","AlternatingFactorial","AlternatingGroup","AlternativeHypothesis","Alternatives","AltitudeMethod","AmbientLight","AmbiguityFunction","AmbiguityList","Analytic","AnatomyData","AnatomyForm","AnatomyPlot3D","AnatomySkinStyle","AnatomyStyling","AnchoredSearch","And","AndersonDarlingTest","AngerJ","AngleBisector","AngleBracket","AnglePath","AnglePath3D","AngleVector","AngularGauge","Animate","AnimatedImage","AnimationCycleOffset","AnimationCycleRepetitions","AnimationDirection","AnimationDisplayTime","AnimationRate","AnimationRepetitions","AnimationRunning","AnimationRunTime","AnimationTimeIndex","AnimationVideo","Animator","AnimatorBox","AnimatorBoxOptions","AnimatorElements","Annotate","Annotation","AnnotationDelete","AnnotationKeys","AnnotationRules","AnnotationValue","Annuity","AnnuityDue","Annulus","AnomalyDetection","AnomalyDetector","AnomalyDetectorFunction","Anonymous","Antialiasing","Antihermitian","AntihermitianMatrixQ","Antisymmetric","AntisymmetricMatrixQ","Antonyms","AnyOrder","AnySubset","AnyTrue","Apart","ApartSquareFree","APIFunction","Appearance","AppearanceElements","AppearanceRules","AppellF1","Append","AppendCheck","AppendLayer","AppendTo","Application","Apply","ApplyReaction","ApplySides","ApplyTo","ArcCos","ArcCosh","ArcCot","ArcCoth","ArcCsc","ArcCsch","ArcCurvature","ARCHProcess","ArcLength","ArcSec","ArcSech","ArcSin","ArcSinDistribution","ArcSinh","ArcTan","ArcTanh","Area","Arg","ArgMax","ArgMin","ArgumentCountQ","ArgumentsOptions","ARIMAProcess","ArithmeticGeometricMean","ARMAProcess","Around","AroundReplace","ARProcess","Array","ArrayComponents","ArrayDepth","ArrayFilter","ArrayFlatten","ArrayMesh","ArrayPad","ArrayPlot","ArrayPlot3D","ArrayQ","ArrayReduce","ArrayResample","ArrayReshape","ArrayRules","Arrays","Arrow","Arrow3DBox","ArrowBox","Arrowheads","ASATriangle","Ask","AskAppend","AskConfirm","AskDisplay","AskedQ","AskedValue","AskFunction","AskState","AskTemplateDisplay","AspectRatio","AspectRatioFixed","Assert","AssessmentFunction","AssessmentResultObject","AssociateTo","Association","AssociationFormat","AssociationMap","AssociationQ","AssociationThread","AssumeDeterministic","Assuming","Assumptions","AstroAngularSeparation","AstroBackground","AstroCenter","AstroDistance","AstroGraphics","AstroGridLines","AstroGridLinesStyle","AstronomicalData","AstroPosition","AstroProjection","AstroRange","AstroRangePadding","AstroReferenceFrame","AstroStyling","AstroZoomLevel","Asymptotic","AsymptoticDSolveValue","AsymptoticEqual","AsymptoticEquivalent","AsymptoticExpectation","AsymptoticGreater","AsymptoticGreaterEqual","AsymptoticIntegrate","AsymptoticLess","AsymptoticLessEqual","AsymptoticOutputTracker","AsymptoticProbability","AsymptoticProduct","AsymptoticRSolveValue","AsymptoticSolve","AsymptoticSum","Asynchronous","AsynchronousTaskObject","AsynchronousTasks","Atom","AtomCoordinates","AtomCount","AtomDiagramCoordinates","AtomLabels","AtomLabelStyle","AtomList","AtomQ","AttachCell","AttachedCell","AttentionLayer","Attributes","Audio","AudioAmplify","AudioAnnotate","AudioAnnotationLookup","AudioBlockMap","AudioCapture","AudioChannelAssignment","AudioChannelCombine","AudioChannelMix","AudioChannels","AudioChannelSeparate","AudioData","AudioDelay","AudioDelete","AudioDevice","AudioDistance","AudioEncoding","AudioFade","AudioFrequencyShift","AudioGenerator","AudioIdentify","AudioInputDevice","AudioInsert","AudioInstanceQ","AudioIntervals","AudioJoin","AudioLabel","AudioLength","AudioLocalMeasurements","AudioLooping","AudioLoudness","AudioMeasurements","AudioNormalize","AudioOutputDevice","AudioOverlay","AudioPad","AudioPan","AudioPartition","AudioPause","AudioPitchShift","AudioPlay","AudioPlot","AudioQ","AudioRecord","AudioReplace","AudioResample","AudioReverb","AudioReverse","AudioSampleRate","AudioSpectralMap","AudioSpectralTransformation","AudioSplit","AudioStop","AudioStream","AudioStreams","AudioTimeStretch","AudioTrackApply","AudioTrackSelection","AudioTrim","AudioType","AugmentedPolyhedron","AugmentedSymmetricPolynomial","Authenticate","Authentication","AuthenticationDialog","AutoAction","Autocomplete","AutocompletionFunction","AutoCopy","AutocorrelationTest","AutoDelete","AutoEvaluateEvents","AutoGeneratedPackage","AutoIndent","AutoIndentSpacings","AutoItalicWords","AutoloadPath","AutoMatch","Automatic","AutomaticImageSize","AutoMultiplicationSymbol","AutoNumberFormatting","AutoOpenNotebooks","AutoOpenPalettes","AutoOperatorRenderings","AutoQuoteCharacters","AutoRefreshed","AutoRemove","AutorunSequencing","AutoScaling","AutoScroll","AutoSpacing","AutoStyleOptions","AutoStyleWords","AutoSubmitting","Axes","AxesEdge","AxesLabel","AxesOrigin","AxesStyle","AxiomaticTheory","Axis","Axis3DBox","Axis3DBoxOptions","AxisBox","AxisBoxOptions","AxisLabel","AxisObject","AxisStyle","BabyMonsterGroupB","Back","BackFaceColor","BackFaceGlowColor","BackFaceOpacity","BackFaceSpecularColor","BackFaceSpecularExponent","BackFaceSurfaceAppearance","BackFaceTexture","Background","BackgroundAppearance","BackgroundTasksSettings","Backslash","Backsubstitution","Backward","Ball","Band","BandpassFilter","BandstopFilter","BarabasiAlbertGraphDistribution","BarChart","BarChart3D","BarcodeImage","BarcodeRecognize","BaringhausHenzeTest","BarLegend","BarlowProschanImportance","BarnesG","BarOrigin","BarSpacing","BartlettHannWindow","BartlettWindow","BaseDecode","BaseEncode","BaseForm","Baseline","BaselinePosition","BaseStyle","BasicRecurrentLayer","BatchNormalizationLayer","BatchSize","BatesDistribution","BattleLemarieWavelet","BayesianMaximization","BayesianMaximizationObject","BayesianMinimization","BayesianMinimizationObject","Because","BeckmannDistribution","Beep","Before","Begin","BeginDialogPacket","BeginPackage","BellB","BellY","Below","BenfordDistribution","BeniniDistribution","BenktanderGibratDistribution","BenktanderWeibullDistribution","BernoulliB","BernoulliDistribution","BernoulliGraphDistribution","BernoulliProcess","BernsteinBasis","BesagL","BesselFilterModel","BesselI","BesselJ","BesselJZero","BesselK","BesselY","BesselYZero","Beta","BetaBinomialDistribution","BetaDistribution","BetaNegativeBinomialDistribution","BetaPrimeDistribution","BetaRegularized","Between","BetweennessCentrality","Beveled","BeveledPolyhedron","BezierCurve","BezierCurve3DBox","BezierCurve3DBoxOptions","BezierCurveBox","BezierCurveBoxOptions","BezierFunction","BilateralFilter","BilateralLaplaceTransform","BilateralZTransform","Binarize","BinaryDeserialize","BinaryDistance","BinaryFormat","BinaryImageQ","BinaryRead","BinaryReadList","BinarySerialize","BinaryWrite","BinCounts","BinLists","BinnedVariogramList","Binomial","BinomialDistribution","BinomialPointProcess","BinomialProcess","BinormalDistribution","BiorthogonalSplineWavelet","BioSequence","BioSequenceBackTranslateList","BioSequenceComplement","BioSequenceInstances","BioSequenceModify","BioSequencePlot","BioSequenceQ","BioSequenceReverseComplement","BioSequenceTranscribe","BioSequenceTranslate","BipartiteGraphQ","BiquadraticFilterModel","BirnbaumImportance","BirnbaumSaundersDistribution","BitAnd","BitClear","BitGet","BitLength","BitNot","BitOr","BitRate","BitSet","BitShiftLeft","BitShiftRight","BitXor","BiweightLocation","BiweightMidvariance","Black","BlackmanHarrisWindow","BlackmanNuttallWindow","BlackmanWindow","Blank","BlankForm","BlankNullSequence","BlankSequence","Blend","Block","BlockchainAddressData","BlockchainBase","BlockchainBlockData","BlockchainContractValue","BlockchainData","BlockchainGet","BlockchainKeyEncode","BlockchainPut","BlockchainTokenData","BlockchainTransaction","BlockchainTransactionData","BlockchainTransactionSign","BlockchainTransactionSubmit","BlockDiagonalMatrix","BlockLowerTriangularMatrix","BlockMap","BlockRandom","BlockUpperTriangularMatrix","BlomqvistBeta","BlomqvistBetaTest","Blue","Blur","Blurring","BodePlot","BohmanWindow","Bold","Bond","BondCount","BondLabels","BondLabelStyle","BondList","BondQ","Bookmarks","Boole","BooleanConsecutiveFunction","BooleanConvert","BooleanCountingFunction","BooleanFunction","BooleanGraph","BooleanMaxterms","BooleanMinimize","BooleanMinterms","BooleanQ","BooleanRegion","Booleans","BooleanStrings","BooleanTable","BooleanVariables","BorderDimensions","BorelTannerDistribution","Bottom","BottomHatTransform","BoundaryDiscretizeGraphics","BoundaryDiscretizeRegion","BoundaryMesh","BoundaryMeshRegion","BoundaryMeshRegionQ","BoundaryStyle","BoundedRegionQ","BoundingRegion","Bounds","Box","BoxBaselineShift","BoxData","BoxDimensions","Boxed","Boxes","BoxForm","BoxFormFormatTypes","BoxFrame","BoxID","BoxMargins","BoxMatrix","BoxObject","BoxRatios","BoxRotation","BoxRotationPoint","BoxStyle","BoxWhiskerChart","Bra","BracketingBar","BraKet","BrayCurtisDistance","BreadthFirstScan","Break","BridgeData","BrightnessEqualize","BroadcastStationData","Brown","BrownForsytheTest","BrownianBridgeProcess","BrowserCategory","BSplineBasis","BSplineCurve","BSplineCurve3DBox","BSplineCurve3DBoxOptions","BSplineCurveBox","BSplineCurveBoxOptions","BSplineFunction","BSplineSurface","BSplineSurface3DBox","BSplineSurface3DBoxOptions","BubbleChart","BubbleChart3D","BubbleScale","BubbleSizes","BuckyballGraph","BuildCompiledComponent","BuildingData","BulletGauge","BusinessDayQ","ButterflyGraph","ButterworthFilterModel","Button","ButtonBar","ButtonBox","ButtonBoxOptions","ButtonCell","ButtonContents","ButtonData","ButtonEvaluator","ButtonExpandable","ButtonFrame","ButtonFunction","ButtonMargins","ButtonMinHeight","ButtonNote","ButtonNotebook","ButtonSource","ButtonStyle","ButtonStyleMenuListing","Byte","ByteArray","ByteArrayFormat","ByteArrayFormatQ","ByteArrayQ","ByteArrayToString","ByteCount","ByteOrdering","C","CachedValue","CacheGraphics","CachePersistence","CalendarConvert","CalendarData","CalendarType","Callout","CalloutMarker","CalloutStyle","CallPacket","CanberraDistance","Cancel","CancelButton","CandlestickChart","CanonicalGraph","CanonicalizePolygon","CanonicalizePolyhedron","CanonicalizeRegion","CanonicalName","CanonicalWarpingCorrespondence","CanonicalWarpingDistance","CantorMesh","CantorStaircase","Canvas","Cap","CapForm","CapitalDifferentialD","Capitalize","CapsuleShape","CaptureRunning","CaputoD","CardinalBSplineBasis","CarlemanLinearize","CarlsonRC","CarlsonRD","CarlsonRE","CarlsonRF","CarlsonRG","CarlsonRJ","CarlsonRK","CarlsonRM","CarmichaelLambda","CaseOrdering","Cases","CaseSensitive","Cashflow","Casoratian","Cast","Catalan","CatalanNumber","Catch","CategoricalDistribution","Catenate","CatenateLayer","CauchyDistribution","CauchyMatrix","CauchyPointProcess","CauchyWindow","CayleyGraph","CDF","CDFDeploy","CDFInformation","CDFWavelet","Ceiling","CelestialSystem","Cell","CellAutoOverwrite","CellBaseline","CellBoundingBox","CellBracketOptions","CellChangeTimes","CellContents","CellContext","CellDingbat","CellDingbatMargin","CellDynamicExpression","CellEditDuplicate","CellElementsBoundingBox","CellElementSpacings","CellEpilog","CellEvaluationDuplicate","CellEvaluationFunction","CellEvaluationLanguage","CellEventActions","CellFrame","CellFrameColor","CellFrameLabelMargins","CellFrameLabels","CellFrameMargins","CellFrameStyle","CellGroup","CellGroupData","CellGrouping","CellGroupingRules","CellHorizontalScrolling","CellID","CellInsertionPointCell","CellLabel","CellLabelAutoDelete","CellLabelMargins","CellLabelPositioning","CellLabelStyle","CellLabelTemplate","CellMargins","CellObject","CellOpen","CellPrint","CellProlog","Cells","CellSize","CellStyle","CellTags","CellTrayPosition","CellTrayWidgets","CellularAutomaton","CensoredDistribution","Censoring","Center","CenterArray","CenterDot","CenteredInterval","CentralFeature","CentralMoment","CentralMomentGeneratingFunction","Cepstrogram","CepstrogramArray","CepstrumArray","CForm","ChampernowneNumber","ChangeOptions","ChannelBase","ChannelBrokerAction","ChannelDatabin","ChannelHistoryLength","ChannelListen","ChannelListener","ChannelListeners","ChannelListenerWait","ChannelObject","ChannelPreSendFunction","ChannelReceiverFunction","ChannelSend","ChannelSubscribers","ChanVeseBinarize","Character","CharacterCounts","CharacterEncoding","CharacterEncodingsPath","CharacteristicFunction","CharacteristicPolynomial","CharacterName","CharacterNormalize","CharacterRange","Characters","ChartBaseStyle","ChartElementData","ChartElementDataFunction","ChartElementFunction","ChartElements","ChartLabels","ChartLayout","ChartLegends","ChartStyle","Chebyshev1FilterModel","Chebyshev2FilterModel","ChebyshevDistance","ChebyshevT","ChebyshevU","Check","CheckAbort","CheckAll","CheckArguments","Checkbox","CheckboxBar","CheckboxBox","CheckboxBoxOptions","ChemicalConvert","ChemicalData","ChemicalFormula","ChemicalInstance","ChemicalReaction","ChessboardDistance","ChiDistribution","ChineseRemainder","ChiSquareDistribution","ChoiceButtons","ChoiceDialog","CholeskyDecomposition","Chop","ChromaticityPlot","ChromaticityPlot3D","ChromaticPolynomial","Circle","CircleBox","CircleDot","CircleMinus","CirclePlus","CirclePoints","CircleThrough","CircleTimes","CirculantGraph","CircularArcThrough","CircularOrthogonalMatrixDistribution","CircularQuaternionMatrixDistribution","CircularRealMatrixDistribution","CircularSymplecticMatrixDistribution","CircularUnitaryMatrixDistribution","Circumsphere","CityData","ClassifierFunction","ClassifierInformation","ClassifierMeasurements","ClassifierMeasurementsObject","Classify","ClassPriors","Clear","ClearAll","ClearAttributes","ClearCookies","ClearPermissions","ClearSystemCache","ClebschGordan","ClickPane","ClickToCopy","ClickToCopyEnabled","Clip","ClipboardNotebook","ClipFill","ClippingStyle","ClipPlanes","ClipPlanesStyle","ClipRange","Clock","ClockGauge","ClockwiseContourIntegral","Close","Closed","CloseKernels","ClosenessCentrality","Closing","ClosingAutoSave","ClosingEvent","CloudAccountData","CloudBase","CloudConnect","CloudConnections","CloudDeploy","CloudDirectory","CloudDisconnect","CloudEvaluate","CloudExport","CloudExpression","CloudExpressions","CloudFunction","CloudGet","CloudImport","CloudLoggingData","CloudObject","CloudObjectInformation","CloudObjectInformationData","CloudObjectNameFormat","CloudObjects","CloudObjectURLType","CloudPublish","CloudPut","CloudRenderingMethod","CloudSave","CloudShare","CloudSubmit","CloudSymbol","CloudUnshare","CloudUserID","ClusterClassify","ClusterDissimilarityFunction","ClusteringComponents","ClusteringMeasurements","ClusteringTree","CMYKColor","Coarse","CodeAssistOptions","Coefficient","CoefficientArrays","CoefficientDomain","CoefficientList","CoefficientRules","CoifletWavelet","Collect","CollinearPoints","Colon","ColonForm","ColorBalance","ColorCombine","ColorConvert","ColorCoverage","ColorData","ColorDataFunction","ColorDetect","ColorDistance","ColorFunction","ColorFunctionBinning","ColorFunctionScaling","Colorize","ColorNegate","ColorOutput","ColorProfileData","ColorQ","ColorQuantize","ColorReplace","ColorRules","ColorSelectorSettings","ColorSeparate","ColorSetter","ColorSetterBox","ColorSetterBoxOptions","ColorSlider","ColorsNear","ColorSpace","ColorToneMapping","Column","ColumnAlignments","ColumnBackgrounds","ColumnForm","ColumnLines","ColumnsEqual","ColumnSpacings","ColumnWidths","CombinatorB","CombinatorC","CombinatorI","CombinatorK","CombinatorS","CombinatorW","CombinatorY","CombinedEntityClass","CombinerFunction","CometData","CommonDefaultFormatTypes","Commonest","CommonestFilter","CommonName","CommonUnits","CommunityBoundaryStyle","CommunityGraphPlot","CommunityLabels","CommunityRegionStyle","CompanyData","CompatibleUnitQ","CompilationOptions","CompilationTarget","Compile","Compiled","CompiledCodeFunction","CompiledComponent","CompiledExpressionDeclaration","CompiledFunction","CompiledLayer","CompilerCallback","CompilerEnvironment","CompilerEnvironmentAppend","CompilerEnvironmentAppendTo","CompilerEnvironmentObject","CompilerOptions","Complement","ComplementedEntityClass","CompleteGraph","CompleteGraphQ","CompleteIntegral","CompleteKaryTree","CompletionsListPacket","Complex","ComplexArrayPlot","ComplexContourPlot","Complexes","ComplexExpand","ComplexInfinity","ComplexityFunction","ComplexListPlot","ComplexPlot","ComplexPlot3D","ComplexRegionPlot","ComplexStreamPlot","ComplexVectorPlot","ComponentMeasurements","ComponentwiseContextMenu","Compose","ComposeList","ComposeSeries","CompositeQ","Composition","CompoundElement","CompoundExpression","CompoundPoissonDistribution","CompoundPoissonProcess","CompoundRenewalProcess","Compress","CompressedData","CompressionLevel","ComputeUncertainty","ConcaveHullMesh","Condition","ConditionalExpression","Conditioned","Cone","ConeBox","ConfidenceLevel","ConfidenceRange","ConfidenceTransform","ConfigurationPath","Confirm","ConfirmAssert","ConfirmBy","ConfirmMatch","ConfirmQuiet","ConformationMethod","ConformAudio","ConformImages","Congruent","ConicGradientFilling","ConicHullRegion","ConicHullRegion3DBox","ConicHullRegion3DBoxOptions","ConicHullRegionBox","ConicHullRegionBoxOptions","ConicOptimization","Conjugate","ConjugateTranspose","Conjunction","Connect","ConnectedComponents","ConnectedGraphComponents","ConnectedGraphQ","ConnectedMeshComponents","ConnectedMoleculeComponents","ConnectedMoleculeQ","ConnectionSettings","ConnectLibraryCallbackFunction","ConnectSystemModelComponents","ConnectSystemModelController","ConnesWindow","ConoverTest","ConservativeConvectionPDETerm","ConsoleMessage","Constant","ConstantArray","ConstantArrayLayer","ConstantImage","ConstantPlusLayer","ConstantRegionQ","Constants","ConstantTimesLayer","ConstellationData","ConstrainedMax","ConstrainedMin","Construct","Containing","ContainsAll","ContainsAny","ContainsExactly","ContainsNone","ContainsOnly","ContentDetectorFunction","ContentFieldOptions","ContentLocationFunction","ContentObject","ContentPadding","ContentsBoundingBox","ContentSelectable","ContentSize","Context","ContextMenu","Contexts","ContextToFileName","Continuation","Continue","ContinuedFraction","ContinuedFractionK","ContinuousAction","ContinuousMarkovProcess","ContinuousTask","ContinuousTimeModelQ","ContinuousWaveletData","ContinuousWaveletTransform","ContourDetect","ContourGraphics","ContourIntegral","ContourLabels","ContourLines","ContourPlot","ContourPlot3D","Contours","ContourShading","ContourSmoothing","ContourStyle","ContraharmonicMean","ContrastiveLossLayer","Control","ControlActive","ControlAlignment","ControlGroupContentsBox","ControllabilityGramian","ControllabilityMatrix","ControllableDecomposition","ControllableModelQ","ControllerDuration","ControllerInformation","ControllerInformationData","ControllerLinking","ControllerManipulate","ControllerMethod","ControllerPath","ControllerState","ControlPlacement","ControlsRendering","ControlType","ConvectionPDETerm","Convergents","ConversionOptions","ConversionRules","ConvertToPostScript","ConvertToPostScriptPacket","ConvexHullMesh","ConvexHullRegion","ConvexOptimization","ConvexPolygonQ","ConvexPolyhedronQ","ConvexRegionQ","ConvolutionLayer","Convolve","ConwayGroupCo1","ConwayGroupCo2","ConwayGroupCo3","CookieFunction","Cookies","CoordinateBoundingBox","CoordinateBoundingBoxArray","CoordinateBounds","CoordinateBoundsArray","CoordinateChartData","CoordinatesToolOptions","CoordinateTransform","CoordinateTransformData","CoplanarPoints","CoprimeQ","Coproduct","CopulaDistribution","Copyable","CopyDatabin","CopyDirectory","CopyFile","CopyFunction","CopyTag","CopyToClipboard","CoreNilpotentDecomposition","CornerFilter","CornerNeighbors","Correlation","CorrelationDistance","CorrelationFunction","CorrelationTest","Cos","Cosh","CoshIntegral","CosineDistance","CosineWindow","CosIntegral","Cot","Coth","CoulombF","CoulombG","CoulombH1","CoulombH2","Count","CountDistinct","CountDistinctBy","CounterAssignments","CounterBox","CounterBoxOptions","CounterClockwiseContourIntegral","CounterEvaluator","CounterFunction","CounterIncrements","CounterStyle","CounterStyleMenuListing","CountRoots","CountryData","Counts","CountsBy","Covariance","CovarianceEstimatorFunction","CovarianceFunction","CoxianDistribution","CoxIngersollRossProcess","CoxModel","CoxModelFit","CramerVonMisesTest","CreateArchive","CreateCellID","CreateChannel","CreateCloudExpression","CreateCompilerEnvironment","CreateDatabin","CreateDataStructure","CreateDataSystemModel","CreateDialog","CreateDirectory","CreateDocument","CreateFile","CreateIntermediateDirectories","CreateLicenseEntitlement","CreateManagedLibraryExpression","CreateNotebook","CreatePacletArchive","CreatePalette","CreatePermissionsGroup","CreateScheduledTask","CreateSearchIndex","CreateSystemModel","CreateTemporary","CreateTypeInstance","CreateUUID","CreateWindow","CriterionFunction","CriticalityFailureImportance","CriticalitySuccessImportance","CriticalSection","Cross","CrossEntropyLossLayer","CrossingCount","CrossingDetect","CrossingPolygon","CrossMatrix","Csc","Csch","CSGRegion","CSGRegionQ","CSGRegionTree","CTCLossLayer","Cube","CubeRoot","Cubics","Cuboid","CuboidBox","CuboidBoxOptions","Cumulant","CumulantGeneratingFunction","CumulativeFeatureImpactPlot","Cup","CupCap","Curl","CurlyDoubleQuote","CurlyQuote","CurrencyConvert","CurrentDate","CurrentImage","CurrentNotebookImage","CurrentScreenImage","CurrentValue","Curry","CurryApplied","CurvatureFlowFilter","CurveClosed","Cyan","CycleGraph","CycleIndexPolynomial","Cycles","CyclicGroup","Cyclotomic","Cylinder","CylinderBox","CylinderBoxOptions","CylindricalDecomposition","CylindricalDecompositionFunction","D","DagumDistribution","DamData","DamerauLevenshteinDistance","DampingFactor","Darker","Dashed","Dashing","DatabaseConnect","DatabaseDisconnect","DatabaseReference","Databin","DatabinAdd","DatabinRemove","Databins","DatabinSubmit","DatabinUpload","DataCompression","DataDistribution","DataRange","DataReversed","Dataset","DatasetDisplayPanel","DatasetTheme","DataStructure","DataStructureQ","Date","DateBounds","Dated","DateDelimiters","DateDifference","DatedUnit","DateFormat","DateFunction","DateGranularity","DateHistogram","DateInterval","DateList","DateListLogPlot","DateListPlot","DateListStepPlot","DateObject","DateObjectQ","DateOverlapsQ","DatePattern","DatePlus","DateRange","DateReduction","DateScale","DateSelect","DateString","DateTicksFormat","DateValue","DateWithinQ","DaubechiesWavelet","DavisDistribution","DawsonF","DayCount","DayCountConvention","DayHemisphere","DaylightQ","DayMatchQ","DayName","DayNightTerminator","DayPlus","DayRange","DayRound","DeBruijnGraph","DeBruijnSequence","Debug","DebugTag","Decapitalize","Decimal","DecimalForm","DeclareCompiledComponent","DeclareKnownSymbols","DeclarePackage","Decompose","DeconvolutionLayer","Decrement","Decrypt","DecryptFile","DedekindEta","DeepSpaceProbeData","Default","Default2DTool","Default3DTool","DefaultAttachedCellStyle","DefaultAxesStyle","DefaultBaseStyle","DefaultBoxStyle","DefaultButton","DefaultColor","DefaultControlPlacement","DefaultDockedCellStyle","DefaultDuplicateCellStyle","DefaultDuration","DefaultElement","DefaultFaceGridsStyle","DefaultFieldHintStyle","DefaultFont","DefaultFontProperties","DefaultFormatType","DefaultFrameStyle","DefaultFrameTicksStyle","DefaultGridLinesStyle","DefaultInlineFormatType","DefaultInputFormatType","DefaultLabelStyle","DefaultMenuStyle","DefaultNaturalLanguage","DefaultNewCellStyle","DefaultNewInlineCellStyle","DefaultNotebook","DefaultOptions","DefaultOutputFormatType","DefaultPrintPrecision","DefaultStyle","DefaultStyleDefinitions","DefaultTextFormatType","DefaultTextInlineFormatType","DefaultTicksStyle","DefaultTooltipStyle","DefaultValue","DefaultValues","Defer","DefineExternal","DefineInputStreamMethod","DefineOutputStreamMethod","DefineResourceFunction","Definition","Degree","DegreeCentrality","DegreeGraphDistribution","DegreeLexicographic","DegreeReverseLexicographic","DEigensystem","DEigenvalues","Deinitialization","Del","DelaunayMesh","Delayed","Deletable","Delete","DeleteAdjacentDuplicates","DeleteAnomalies","DeleteBorderComponents","DeleteCases","DeleteChannel","DeleteCloudExpression","DeleteContents","DeleteDirectory","DeleteDuplicates","DeleteDuplicatesBy","DeleteElements","DeleteFile","DeleteMissing","DeleteObject","DeletePermissionsKey","DeleteSearchIndex","DeleteSmallComponents","DeleteStopwords","DeleteWithContents","DeletionWarning","DelimitedArray","DelimitedSequence","Delimiter","DelimiterAutoMatching","DelimiterFlashTime","DelimiterMatching","Delimiters","DeliveryFunction","Dendrogram","Denominator","DensityGraphics","DensityHistogram","DensityPlot","DensityPlot3D","DependentVariables","Deploy","Deployed","Depth","DepthFirstScan","Derivative","DerivativeFilter","DerivativePDETerm","DerivedKey","DescriptorStateSpace","DesignMatrix","DestroyAfterEvaluation","Det","DeviceClose","DeviceConfigure","DeviceExecute","DeviceExecuteAsynchronous","DeviceObject","DeviceOpen","DeviceOpenQ","DeviceRead","DeviceReadBuffer","DeviceReadLatest","DeviceReadList","DeviceReadTimeSeries","Devices","DeviceStreams","DeviceWrite","DeviceWriteBuffer","DGaussianWavelet","DiacriticalPositioning","Diagonal","DiagonalizableMatrixQ","DiagonalMatrix","DiagonalMatrixQ","Dialog","DialogIndent","DialogInput","DialogLevel","DialogNotebook","DialogProlog","DialogReturn","DialogSymbols","Diamond","DiamondMatrix","DiceDissimilarity","DictionaryLookup","DictionaryWordQ","DifferenceDelta","DifferenceOrder","DifferenceQuotient","DifferenceRoot","DifferenceRootReduce","Differences","DifferentialD","DifferentialRoot","DifferentialRootReduce","DifferentiatorFilter","DiffusionPDETerm","DiggleGatesPointProcess","DiggleGrattonPointProcess","DigitalSignature","DigitBlock","DigitBlockMinimum","DigitCharacter","DigitCount","DigitQ","DihedralAngle","DihedralGroup","Dilation","DimensionalCombinations","DimensionalMeshComponents","DimensionReduce","DimensionReducerFunction","DimensionReduction","Dimensions","DiracComb","DiracDelta","DirectedEdge","DirectedEdges","DirectedGraph","DirectedGraphQ","DirectedInfinity","Direction","DirectionalLight","Directive","Directory","DirectoryName","DirectoryQ","DirectoryStack","DirichletBeta","DirichletCharacter","DirichletCondition","DirichletConvolve","DirichletDistribution","DirichletEta","DirichletL","DirichletLambda","DirichletTransform","DirichletWindow","DisableConsolePrintPacket","DisableFormatting","DiscreteAsymptotic","DiscreteChirpZTransform","DiscreteConvolve","DiscreteDelta","DiscreteHadamardTransform","DiscreteIndicator","DiscreteInputOutputModel","DiscreteLimit","DiscreteLQEstimatorGains","DiscreteLQRegulatorGains","DiscreteLyapunovSolve","DiscreteMarkovProcess","DiscreteMaxLimit","DiscreteMinLimit","DiscretePlot","DiscretePlot3D","DiscreteRatio","DiscreteRiccatiSolve","DiscreteShift","DiscreteTimeModelQ","DiscreteUniformDistribution","DiscreteVariables","DiscreteWaveletData","DiscreteWaveletPacketTransform","DiscreteWaveletTransform","DiscretizeGraphics","DiscretizeRegion","Discriminant","DisjointQ","Disjunction","Disk","DiskBox","DiskBoxOptions","DiskMatrix","DiskSegment","Dispatch","DispatchQ","DispersionEstimatorFunction","Display","DisplayAllSteps","DisplayEndPacket","DisplayForm","DisplayFunction","DisplayPacket","DisplayRules","DisplayString","DisplayTemporary","DisplayWith","DisplayWithRef","DisplayWithVariable","DistanceFunction","DistanceMatrix","DistanceTransform","Distribute","Distributed","DistributedContexts","DistributeDefinitions","DistributionChart","DistributionDomain","DistributionFitTest","DistributionParameterAssumptions","DistributionParameterQ","Dithering","Div","Divergence","Divide","DivideBy","Dividers","DivideSides","Divisible","Divisors","DivisorSigma","DivisorSum","DMSList","DMSString","Do","DockedCell","DockedCells","DocumentGenerator","DocumentGeneratorInformation","DocumentGeneratorInformationData","DocumentGenerators","DocumentNotebook","DocumentWeightingRules","Dodecahedron","DomainRegistrationInformation","DominantColors","DominatorTreeGraph","DominatorVertexList","DOSTextFormat","Dot","DotDashed","DotEqual","DotLayer","DotPlusLayer","Dotted","DoubleBracketingBar","DoubleContourIntegral","DoubleDownArrow","DoubleLeftArrow","DoubleLeftRightArrow","DoubleLeftTee","DoubleLongLeftArrow","DoubleLongLeftRightArrow","DoubleLongRightArrow","DoubleRightArrow","DoubleRightTee","DoubleUpArrow","DoubleUpDownArrow","DoubleVerticalBar","DoublyInfinite","Down","DownArrow","DownArrowBar","DownArrowUpArrow","DownLeftRightVector","DownLeftTeeVector","DownLeftVector","DownLeftVectorBar","DownRightTeeVector","DownRightVector","DownRightVectorBar","Downsample","DownTee","DownTeeArrow","DownValues","DownValuesFunction","DragAndDrop","DrawBackFaces","DrawEdges","DrawFrontFaces","DrawHighlighted","DrazinInverse","Drop","DropoutLayer","DropShadowing","DSolve","DSolveChangeVariables","DSolveValue","Dt","DualLinearProgramming","DualPlanarGraph","DualPolyhedron","DualSystemsModel","DumpGet","DumpSave","DuplicateFreeQ","Duration","Dynamic","DynamicBox","DynamicBoxOptions","DynamicEvaluationTimeout","DynamicGeoGraphics","DynamicImage","DynamicLocation","DynamicModule","DynamicModuleBox","DynamicModuleBoxOptions","DynamicModuleParent","DynamicModuleValues","DynamicName","DynamicNamespace","DynamicReference","DynamicSetting","DynamicUpdating","DynamicWrapper","DynamicWrapperBox","DynamicWrapperBoxOptions","E","EarthImpactData","EarthquakeData","EccentricityCentrality","Echo","EchoEvaluation","EchoFunction","EchoLabel","EchoTiming","EclipseType","EdgeAdd","EdgeBetweennessCentrality","EdgeCapacity","EdgeCapForm","EdgeChromaticNumber","EdgeColor","EdgeConnectivity","EdgeContract","EdgeCost","EdgeCount","EdgeCoverQ","EdgeCycleMatrix","EdgeDashing","EdgeDelete","EdgeDetect","EdgeForm","EdgeIndex","EdgeJoinForm","EdgeLabeling","EdgeLabels","EdgeLabelStyle","EdgeList","EdgeOpacity","EdgeQ","EdgeRenderingFunction","EdgeRules","EdgeShapeFunction","EdgeStyle","EdgeTaggedGraph","EdgeTaggedGraphQ","EdgeTags","EdgeThickness","EdgeTransitiveGraphQ","EdgeValueRange","EdgeValueSizes","EdgeWeight","EdgeWeightedGraphQ","Editable","EditButtonSettings","EditCellTagsSettings","EditDistance","EffectiveInterest","Eigensystem","Eigenvalues","EigenvectorCentrality","Eigenvectors","Element","ElementData","ElementwiseLayer","ElidedForms","Eliminate","EliminationOrder","Ellipsoid","EllipticE","EllipticExp","EllipticExpPrime","EllipticF","EllipticFilterModel","EllipticK","EllipticLog","EllipticNomeQ","EllipticPi","EllipticReducedHalfPeriods","EllipticTheta","EllipticThetaPrime","EmbedCode","EmbeddedHTML","EmbeddedService","EmbeddedSQLEntityClass","EmbeddedSQLExpression","EmbeddingLayer","EmbeddingObject","EmitSound","EmphasizeSyntaxErrors","EmpiricalDistribution","Empty","EmptyGraphQ","EmptyRegion","EmptySpaceF","EnableConsolePrintPacket","Enabled","Enclose","Encode","Encrypt","EncryptedObject","EncryptFile","End","EndAdd","EndDialogPacket","EndOfBuffer","EndOfFile","EndOfLine","EndOfString","EndPackage","EngineEnvironment","EngineeringForm","Enter","EnterExpressionPacket","EnterTextPacket","Entity","EntityClass","EntityClassList","EntityCopies","EntityFunction","EntityGroup","EntityInstance","EntityList","EntityPrefetch","EntityProperties","EntityProperty","EntityPropertyClass","EntityRegister","EntityStore","EntityStores","EntityTypeName","EntityUnregister","EntityValue","Entropy","EntropyFilter","Environment","Epilog","EpilogFunction","Equal","EqualColumns","EqualRows","EqualTilde","EqualTo","EquatedTo","Equilibrium","EquirippleFilterKernel","Equivalent","Erf","Erfc","Erfi","ErlangB","ErlangC","ErlangDistribution","Erosion","ErrorBox","ErrorBoxOptions","ErrorNorm","ErrorPacket","ErrorsDialogSettings","EscapeRadius","EstimatedBackground","EstimatedDistribution","EstimatedPointNormals","EstimatedPointProcess","EstimatedProcess","EstimatedVariogramModel","EstimatorGains","EstimatorRegulator","EuclideanDistance","EulerAngles","EulerCharacteristic","EulerE","EulerGamma","EulerianGraphQ","EulerMatrix","EulerPhi","Evaluatable","Evaluate","Evaluated","EvaluatePacket","EvaluateScheduledTask","EvaluationBox","EvaluationCell","EvaluationCompletionAction","EvaluationData","EvaluationElements","EvaluationEnvironment","EvaluationMode","EvaluationMonitor","EvaluationNotebook","EvaluationObject","EvaluationOrder","EvaluationPrivileges","EvaluationRateLimit","Evaluator","EvaluatorNames","EvenQ","EventData","EventEvaluator","EventHandler","EventHandlerTag","EventLabels","EventSeries","ExactBlackmanWindow","ExactNumberQ","ExactRootIsolation","ExampleData","Except","ExcludedContexts","ExcludedForms","ExcludedLines","ExcludedPhysicalQuantities","ExcludePods","Exclusions","ExclusionsStyle","Exists","Exit","ExitDialog","ExoplanetData","Exp","Expand","ExpandAll","ExpandDenominator","ExpandFileName","ExpandNumerator","Expectation","ExpectationE","ExpectedValue","ExpGammaDistribution","ExpIntegralE","ExpIntegralEi","ExpirationDate","Exponent","ExponentFunction","ExponentialDistribution","ExponentialFamily","ExponentialGeneratingFunction","ExponentialMovingAverage","ExponentialPowerDistribution","ExponentPosition","ExponentStep","Export","ExportAutoReplacements","ExportByteArray","ExportForm","ExportPacket","ExportString","Expression","ExpressionCell","ExpressionGraph","ExpressionPacket","ExpressionTree","ExpressionUUID","ExpToTrig","ExtendedEntityClass","ExtendedGCD","Extension","ExtentElementFunction","ExtentMarkers","ExtentSize","ExternalBundle","ExternalCall","ExternalDataCharacterEncoding","ExternalEvaluate","ExternalFunction","ExternalFunctionName","ExternalIdentifier","ExternalObject","ExternalOptions","ExternalSessionObject","ExternalSessions","ExternalStorageBase","ExternalStorageDownload","ExternalStorageGet","ExternalStorageObject","ExternalStoragePut","ExternalStorageUpload","ExternalTypeSignature","ExternalValue","Extract","ExtractArchive","ExtractLayer","ExtractPacletArchive","ExtremeValueDistribution","FaceAlign","FaceForm","FaceGrids","FaceGridsStyle","FaceRecognize","FacialFeatures","Factor","FactorComplete","Factorial","Factorial2","FactorialMoment","FactorialMomentGeneratingFunction","FactorialPower","FactorInteger","FactorList","FactorSquareFree","FactorSquareFreeList","FactorTerms","FactorTermsList","Fail","Failure","FailureAction","FailureDistribution","FailureQ","False","FareySequence","FARIMAProcess","FeatureDistance","FeatureExtract","FeatureExtraction","FeatureExtractor","FeatureExtractorFunction","FeatureImpactPlot","FeatureNames","FeatureNearest","FeatureSpacePlot","FeatureSpacePlot3D","FeatureTypes","FeatureValueDependencyPlot","FeatureValueImpactPlot","FEDisableConsolePrintPacket","FeedbackLinearize","FeedbackSector","FeedbackSectorStyle","FeedbackType","FEEnableConsolePrintPacket","FetalGrowthData","Fibonacci","Fibonorial","FieldCompletionFunction","FieldHint","FieldHintStyle","FieldMasked","FieldSize","File","FileBaseName","FileByteCount","FileConvert","FileDate","FileExistsQ","FileExtension","FileFormat","FileFormatProperties","FileFormatQ","FileHandler","FileHash","FileInformation","FileName","FileNameDepth","FileNameDialogSettings","FileNameDrop","FileNameForms","FileNameJoin","FileNames","FileNameSetter","FileNameSplit","FileNameTake","FileNameToFormatList","FilePrint","FileSize","FileSystemMap","FileSystemScan","FileSystemTree","FileTemplate","FileTemplateApply","FileType","FilledCurve","FilledCurveBox","FilledCurveBoxOptions","FilledTorus","FillForm","Filling","FillingStyle","FillingTransform","FilteredEntityClass","FilterRules","FinancialBond","FinancialData","FinancialDerivative","FinancialIndicator","Find","FindAnomalies","FindArgMax","FindArgMin","FindChannels","FindClique","FindClusters","FindCookies","FindCurvePath","FindCycle","FindDevices","FindDistribution","FindDistributionParameters","FindDivisions","FindEdgeColoring","FindEdgeCover","FindEdgeCut","FindEdgeIndependentPaths","FindEquationalProof","FindEulerianCycle","FindExternalEvaluators","FindFaces","FindFile","FindFit","FindFormula","FindFundamentalCycles","FindGeneratingFunction","FindGeoLocation","FindGeometricConjectures","FindGeometricTransform","FindGraphCommunities","FindGraphIsomorphism","FindGraphPartition","FindHamiltonianCycle","FindHamiltonianPath","FindHiddenMarkovStates","FindImageText","FindIndependentEdgeSet","FindIndependentVertexSet","FindInstance","FindIntegerNullVector","FindIsomers","FindIsomorphicSubgraph","FindKClan","FindKClique","FindKClub","FindKPlex","FindLibrary","FindLinearRecurrence","FindList","FindMatchingColor","FindMaximum","FindMaximumCut","FindMaximumFlow","FindMaxValue","FindMeshDefects","FindMinimum","FindMinimumCostFlow","FindMinimumCut","FindMinValue","FindMoleculeSubstructure","FindPath","FindPeaks","FindPermutation","FindPlanarColoring","FindPointProcessParameters","FindPostmanTour","FindProcessParameters","FindRegionTransform","FindRepeat","FindRoot","FindSequenceFunction","FindSettings","FindShortestPath","FindShortestTour","FindSpanningTree","FindSubgraphIsomorphism","FindSystemModelEquilibrium","FindTextualAnswer","FindThreshold","FindTransientRepeat","FindVertexColoring","FindVertexCover","FindVertexCut","FindVertexIndependentPaths","Fine","FinishDynamic","FiniteAbelianGroupCount","FiniteGroupCount","FiniteGroupData","First","FirstCase","FirstPassageTimeDistribution","FirstPosition","FischerGroupFi22","FischerGroupFi23","FischerGroupFi24Prime","FisherHypergeometricDistribution","FisherRatioTest","FisherZDistribution","Fit","FitAll","FitRegularization","FittedModel","FixedOrder","FixedPoint","FixedPointList","FlashSelection","Flat","FlatShading","Flatten","FlattenAt","FlattenLayer","FlatTopWindow","FlightData","FlipView","Floor","FlowPolynomial","Fold","FoldList","FoldPair","FoldPairList","FoldWhile","FoldWhileList","FollowRedirects","Font","FontColor","FontFamily","FontForm","FontName","FontOpacity","FontPostScriptName","FontProperties","FontReencoding","FontSize","FontSlant","FontSubstitutions","FontTracking","FontVariations","FontWeight","For","ForAll","ForAllType","ForceVersionInstall","Format","FormatRules","FormatType","FormatTypeAutoConvert","FormatValues","FormBox","FormBoxOptions","FormControl","FormFunction","FormLayoutFunction","FormObject","FormPage","FormProtectionMethod","FormTheme","FormulaData","FormulaLookup","FortranForm","Forward","ForwardBackward","ForwardCloudCredentials","Fourier","FourierCoefficient","FourierCosCoefficient","FourierCosSeries","FourierCosTransform","FourierDCT","FourierDCTFilter","FourierDCTMatrix","FourierDST","FourierDSTMatrix","FourierMatrix","FourierParameters","FourierSequenceTransform","FourierSeries","FourierSinCoefficient","FourierSinSeries","FourierSinTransform","FourierTransform","FourierTrigSeries","FoxH","FoxHReduce","FractionalBrownianMotionProcess","FractionalD","FractionalGaussianNoiseProcess","FractionalPart","FractionBox","FractionBoxOptions","FractionLine","Frame","FrameBox","FrameBoxOptions","Framed","FrameInset","FrameLabel","Frameless","FrameListVideo","FrameMargins","FrameRate","FrameStyle","FrameTicks","FrameTicksStyle","FRatioDistribution","FrechetDistribution","FreeQ","FrenetSerretSystem","FrequencySamplingFilterKernel","FresnelC","FresnelF","FresnelG","FresnelS","Friday","FrobeniusNumber","FrobeniusSolve","FromAbsoluteTime","FromCharacterCode","FromCoefficientRules","FromContinuedFraction","FromDate","FromDateString","FromDigits","FromDMS","FromEntity","FromJulianDate","FromLetterNumber","FromPolarCoordinates","FromRawPointer","FromRomanNumeral","FromSphericalCoordinates","FromUnixTime","Front","FrontEndDynamicExpression","FrontEndEventActions","FrontEndExecute","FrontEndObject","FrontEndResource","FrontEndResourceString","FrontEndStackSize","FrontEndToken","FrontEndTokenExecute","FrontEndValueCache","FrontEndVersion","FrontFaceColor","FrontFaceGlowColor","FrontFaceOpacity","FrontFaceSpecularColor","FrontFaceSpecularExponent","FrontFaceSurfaceAppearance","FrontFaceTexture","Full","FullAxes","FullDefinition","FullForm","FullGraphics","FullInformationOutputRegulator","FullOptions","FullRegion","FullSimplify","Function","FunctionAnalytic","FunctionBijective","FunctionCompile","FunctionCompileExport","FunctionCompileExportByteArray","FunctionCompileExportLibrary","FunctionCompileExportString","FunctionContinuous","FunctionConvexity","FunctionDeclaration","FunctionDiscontinuities","FunctionDomain","FunctionExpand","FunctionInjective","FunctionInterpolation","FunctionLayer","FunctionMeromorphic","FunctionMonotonicity","FunctionPeriod","FunctionPoles","FunctionRange","FunctionSign","FunctionSingularities","FunctionSpace","FunctionSurjective","FussellVeselyImportance","GaborFilter","GaborMatrix","GaborWavelet","GainMargins","GainPhaseMargins","GalaxyData","GalleryView","Gamma","GammaDistribution","GammaRegularized","GapPenalty","GARCHProcess","GatedRecurrentLayer","Gather","GatherBy","GaugeFaceElementFunction","GaugeFaceStyle","GaugeFrameElementFunction","GaugeFrameSize","GaugeFrameStyle","GaugeLabels","GaugeMarkers","GaugeStyle","GaussianFilter","GaussianIntegers","GaussianMatrix","GaussianOrthogonalMatrixDistribution","GaussianSymplecticMatrixDistribution","GaussianUnitaryMatrixDistribution","GaussianWindow","GCD","GegenbauerC","General","GeneralizedLinearModelFit","GenerateAsymmetricKeyPair","GenerateConditions","GeneratedAssetFormat","GeneratedAssetLocation","GeneratedCell","GeneratedCellStyles","GeneratedDocumentBinding","GenerateDerivedKey","GenerateDigitalSignature","GenerateDocument","GeneratedParameters","GeneratedQuantityMagnitudes","GenerateFileSignature","GenerateHTTPResponse","GenerateSecuredAuthenticationKey","GenerateSymmetricKey","GeneratingFunction","GeneratorDescription","GeneratorHistoryLength","GeneratorOutputType","Generic","GenericCylindricalDecomposition","GenomeData","GenomeLookup","GeoAntipode","GeoArea","GeoArraySize","GeoBackground","GeoBoundary","GeoBoundingBox","GeoBounds","GeoBoundsRegion","GeoBoundsRegionBoundary","GeoBubbleChart","GeoCenter","GeoCircle","GeoContourPlot","GeoDensityPlot","GeodesicClosing","GeodesicDilation","GeodesicErosion","GeodesicOpening","GeodesicPolyhedron","GeoDestination","GeodesyData","GeoDirection","GeoDisk","GeoDisplacement","GeoDistance","GeoDistanceList","GeoElevationData","GeoEntities","GeoGraphics","GeoGraphPlot","GeoGraphValuePlot","GeogravityModelData","GeoGridDirectionDifference","GeoGridLines","GeoGridLinesStyle","GeoGridPosition","GeoGridRange","GeoGridRangePadding","GeoGridUnitArea","GeoGridUnitDistance","GeoGridVector","GeoGroup","GeoHemisphere","GeoHemisphereBoundary","GeoHistogram","GeoIdentify","GeoImage","GeoLabels","GeoLength","GeoListPlot","GeoLocation","GeologicalPeriodData","GeomagneticModelData","GeoMarker","GeometricAssertion","GeometricBrownianMotionProcess","GeometricDistribution","GeometricMean","GeometricMeanFilter","GeometricOptimization","GeometricScene","GeometricStep","GeometricStylingRules","GeometricTest","GeometricTransformation","GeometricTransformation3DBox","GeometricTransformation3DBoxOptions","GeometricTransformationBox","GeometricTransformationBoxOptions","GeoModel","GeoNearest","GeoOrientationData","GeoPath","GeoPolygon","GeoPosition","GeoPositionENU","GeoPositionXYZ","GeoProjection","GeoProjectionData","GeoRange","GeoRangePadding","GeoRegionValuePlot","GeoResolution","GeoScaleBar","GeoServer","GeoSmoothHistogram","GeoStreamPlot","GeoStyling","GeoStylingImageFunction","GeoVariant","GeoVector","GeoVectorENU","GeoVectorPlot","GeoVectorXYZ","GeoVisibleRegion","GeoVisibleRegionBoundary","GeoWithinQ","GeoZoomLevel","GestureHandler","GestureHandlerTag","Get","GetContext","GetEnvironment","GetFileName","GetLinebreakInformationPacket","GibbsPointProcess","Glaisher","GlobalClusteringCoefficient","GlobalPreferences","GlobalSession","Glow","GoldenAngle","GoldenRatio","GompertzMakehamDistribution","GoochShading","GoodmanKruskalGamma","GoodmanKruskalGammaTest","Goto","GouraudShading","Grad","Gradient","GradientFilter","GradientFittedMesh","GradientOrientationFilter","GrammarApply","GrammarRules","GrammarToken","Graph","Graph3D","GraphAssortativity","GraphAutomorphismGroup","GraphCenter","GraphComplement","GraphData","GraphDensity","GraphDiameter","GraphDifference","GraphDisjointUnion","GraphDistance","GraphDistanceMatrix","GraphEmbedding","GraphHighlight","GraphHighlightStyle","GraphHub","Graphics","Graphics3D","Graphics3DBox","Graphics3DBoxOptions","GraphicsArray","GraphicsBaseline","GraphicsBox","GraphicsBoxOptions","GraphicsColor","GraphicsColumn","GraphicsComplex","GraphicsComplex3DBox","GraphicsComplex3DBoxOptions","GraphicsComplexBox","GraphicsComplexBoxOptions","GraphicsContents","GraphicsData","GraphicsGrid","GraphicsGridBox","GraphicsGroup","GraphicsGroup3DBox","GraphicsGroup3DBoxOptions","GraphicsGroupBox","GraphicsGroupBoxOptions","GraphicsGrouping","GraphicsHighlightColor","GraphicsRow","GraphicsSpacing","GraphicsStyle","GraphIntersection","GraphJoin","GraphLayerLabels","GraphLayers","GraphLayerStyle","GraphLayout","GraphLinkEfficiency","GraphPeriphery","GraphPlot","GraphPlot3D","GraphPower","GraphProduct","GraphPropertyDistribution","GraphQ","GraphRadius","GraphReciprocity","GraphRoot","GraphStyle","GraphSum","GraphTree","GraphUnion","Gray","GrayLevel","Greater","GreaterEqual","GreaterEqualLess","GreaterEqualThan","GreaterFullEqual","GreaterGreater","GreaterLess","GreaterSlantEqual","GreaterThan","GreaterTilde","GreekStyle","Green","GreenFunction","Grid","GridBaseline","GridBox","GridBoxAlignment","GridBoxBackground","GridBoxDividers","GridBoxFrame","GridBoxItemSize","GridBoxItemStyle","GridBoxOptions","GridBoxSpacings","GridCreationSettings","GridDefaultElement","GridElementStyleOptions","GridFrame","GridFrameMargins","GridGraph","GridLines","GridLinesStyle","GridVideo","GroebnerBasis","GroupActionBase","GroupBy","GroupCentralizer","GroupElementFromWord","GroupElementPosition","GroupElementQ","GroupElements","GroupElementToWord","GroupGenerators","Groupings","GroupMultiplicationTable","GroupOpenerColor","GroupOpenerInsideFrame","GroupOrbits","GroupOrder","GroupPageBreakWithin","GroupSetwiseStabilizer","GroupStabilizer","GroupStabilizerChain","GroupTogetherGrouping","GroupTogetherNestedGrouping","GrowCutComponents","Gudermannian","GuidedFilter","GumbelDistribution","HaarWavelet","HadamardMatrix","HalfLine","HalfNormalDistribution","HalfPlane","HalfSpace","HalftoneShading","HamiltonianGraphQ","HammingDistance","HammingWindow","HandlerFunctions","HandlerFunctionsKeys","HankelH1","HankelH2","HankelMatrix","HankelTransform","HannPoissonWindow","HannWindow","HaradaNortonGroupHN","HararyGraph","HardcorePointProcess","HarmonicMean","HarmonicMeanFilter","HarmonicNumber","Hash","HatchFilling","HatchShading","Haversine","HazardFunction","Head","HeadCompose","HeaderAlignment","HeaderBackground","HeaderDisplayFunction","HeaderLines","Headers","HeaderSize","HeaderStyle","Heads","HeatFluxValue","HeatInsulationValue","HeatOutflowValue","HeatRadiationValue","HeatSymmetryValue","HeatTemperatureCondition","HeatTransferPDEComponent","HeatTransferValue","HeavisideLambda","HeavisidePi","HeavisideTheta","HeldGroupHe","HeldPart","HelmholtzPDEComponent","HelpBrowserLookup","HelpBrowserNotebook","HelpBrowserSettings","HelpViewerSettings","Here","HermiteDecomposition","HermiteH","Hermitian","HermitianMatrixQ","HessenbergDecomposition","Hessian","HeunB","HeunBPrime","HeunC","HeunCPrime","HeunD","HeunDPrime","HeunG","HeunGPrime","HeunT","HeunTPrime","HexadecimalCharacter","Hexahedron","HexahedronBox","HexahedronBoxOptions","HiddenItems","HiddenMarkovProcess","HiddenSurface","Highlighted","HighlightGraph","HighlightImage","HighlightMesh","HighlightString","HighpassFilter","HigmanSimsGroupHS","HilbertCurve","HilbertFilter","HilbertMatrix","Histogram","Histogram3D","HistogramDistribution","HistogramList","HistogramPointDensity","HistogramTransform","HistogramTransformInterpolation","HistoricalPeriodData","HitMissTransform","HITSCentrality","HjorthDistribution","HodgeDual","HoeffdingD","HoeffdingDTest","Hold","HoldAll","HoldAllComplete","HoldComplete","HoldFirst","HoldForm","HoldPattern","HoldRest","HolidayCalendar","HomeDirectory","HomePage","Horizontal","HorizontalForm","HorizontalGauge","HorizontalScrollPosition","HornerForm","HostLookup","HotellingTSquareDistribution","HoytDistribution","HTMLSave","HTTPErrorResponse","HTTPRedirect","HTTPRequest","HTTPRequestData","HTTPResponse","Hue","HumanGrowthData","HumpDownHump","HumpEqual","HurwitzLerchPhi","HurwitzZeta","HyperbolicDistribution","HypercubeGraph","HyperexponentialDistribution","Hyperfactorial","Hypergeometric0F1","Hypergeometric0F1Regularized","Hypergeometric1F1","Hypergeometric1F1Regularized","Hypergeometric2F1","Hypergeometric2F1Regularized","HypergeometricDistribution","HypergeometricPFQ","HypergeometricPFQRegularized","HypergeometricU","Hyperlink","HyperlinkAction","HyperlinkCreationSettings","Hyperplane","Hyphenation","HyphenationOptions","HypoexponentialDistribution","HypothesisTestData","I","IconData","Iconize","IconizedObject","IconRules","Icosahedron","Identity","IdentityMatrix","If","IfCompiled","IgnoreCase","IgnoreDiacritics","IgnoreIsotopes","IgnorePunctuation","IgnoreSpellCheck","IgnoreStereochemistry","IgnoringInactive","Im","Image","Image3D","Image3DProjection","Image3DSlices","ImageAccumulate","ImageAdd","ImageAdjust","ImageAlign","ImageApply","ImageApplyIndexed","ImageAspectRatio","ImageAssemble","ImageAugmentationLayer","ImageBoundingBoxes","ImageCache","ImageCacheValid","ImageCapture","ImageCaptureFunction","ImageCases","ImageChannels","ImageClip","ImageCollage","ImageColorSpace","ImageCompose","ImageContainsQ","ImageContents","ImageConvolve","ImageCooccurrence","ImageCorners","ImageCorrelate","ImageCorrespondingPoints","ImageCrop","ImageData","ImageDeconvolve","ImageDemosaic","ImageDifference","ImageDimensions","ImageDisplacements","ImageDistance","ImageEditMode","ImageEffect","ImageExposureCombine","ImageFeatureTrack","ImageFileApply","ImageFileFilter","ImageFileScan","ImageFilter","ImageFocusCombine","ImageForestingComponents","ImageFormattingWidth","ImageForwardTransformation","ImageGraphics","ImageHistogram","ImageIdentify","ImageInstanceQ","ImageKeypoints","ImageLabels","ImageLegends","ImageLevels","ImageLines","ImageMargins","ImageMarker","ImageMarkers","ImageMeasurements","ImageMesh","ImageMultiply","ImageOffset","ImagePad","ImagePadding","ImagePartition","ImagePeriodogram","ImagePerspectiveTransformation","ImagePosition","ImagePreviewFunction","ImagePyramid","ImagePyramidApply","ImageQ","ImageRangeCache","ImageRecolor","ImageReflect","ImageRegion","ImageResize","ImageResolution","ImageRestyle","ImageRotate","ImageRotated","ImageSaliencyFilter","ImageScaled","ImageScan","ImageSize","ImageSizeAction","ImageSizeCache","ImageSizeMultipliers","ImageSizeRaw","ImageStitch","ImageSubtract","ImageTake","ImageTransformation","ImageTrim","ImageType","ImageValue","ImageValuePositions","ImageVectorscopePlot","ImageWaveformPlot","ImagingDevice","ImplicitD","ImplicitRegion","Implies","Import","ImportAutoReplacements","ImportByteArray","ImportedObject","ImportOptions","ImportString","ImprovementImportance","In","Inactivate","Inactive","InactiveStyle","IncidenceGraph","IncidenceList","IncidenceMatrix","IncludeAromaticBonds","IncludeConstantBasis","IncludedContexts","IncludeDefinitions","IncludeDirectories","IncludeFileExtension","IncludeGeneratorTasks","IncludeHydrogens","IncludeInflections","IncludeMetaInformation","IncludePods","IncludeQuantities","IncludeRelatedTables","IncludeSingularSolutions","IncludeSingularTerm","IncludeWindowTimes","Increment","IndefiniteMatrixQ","Indent","IndentingNewlineSpacings","IndentMaxFraction","IndependenceTest","IndependentEdgeSetQ","IndependentPhysicalQuantity","IndependentUnit","IndependentUnitDimension","IndependentVertexSetQ","Indeterminate","IndeterminateThreshold","IndexCreationOptions","Indexed","IndexEdgeTaggedGraph","IndexGraph","IndexTag","Inequality","InertEvaluate","InertExpression","InexactNumberQ","InexactNumbers","InfiniteFuture","InfiniteLine","InfiniteLineThrough","InfinitePast","InfinitePlane","Infinity","Infix","InflationAdjust","InflationMethod","Information","InformationData","InformationDataGrid","Inherited","InheritScope","InhomogeneousPoissonPointProcess","InhomogeneousPoissonProcess","InitialEvaluationHistory","Initialization","InitializationCell","InitializationCellEvaluation","InitializationCellWarning","InitializationObject","InitializationObjects","InitializationValue","Initialize","InitialSeeding","InlineCounterAssignments","InlineCounterIncrements","InlineRules","Inner","InnerPolygon","InnerPolyhedron","Inpaint","Input","InputAliases","InputAssumptions","InputAutoReplacements","InputField","InputFieldBox","InputFieldBoxOptions","InputForm","InputGrouping","InputNamePacket","InputNotebook","InputPacket","InputPorts","InputSettings","InputStream","InputString","InputStringPacket","InputToBoxFormPacket","Insert","InsertionFunction","InsertionPointObject","InsertLinebreaks","InsertResults","Inset","Inset3DBox","Inset3DBoxOptions","InsetBox","InsetBoxOptions","Insphere","Install","InstallService","InstanceNormalizationLayer","InString","Integer","IntegerDigits","IntegerExponent","IntegerLength","IntegerName","IntegerPart","IntegerPartitions","IntegerQ","IntegerReverse","Integers","IntegerString","Integral","Integrate","IntegrateChangeVariables","Interactive","InteractiveTradingChart","InterfaceSwitched","Interlaced","Interleaving","InternallyBalancedDecomposition","InterpolatingFunction","InterpolatingPolynomial","Interpolation","InterpolationOrder","InterpolationPoints","InterpolationPrecision","Interpretation","InterpretationBox","InterpretationBoxOptions","InterpretationFunction","Interpreter","InterpretTemplate","InterquartileRange","Interrupt","InterruptSettings","IntersectedEntityClass","IntersectingQ","Intersection","Interval","IntervalIntersection","IntervalMarkers","IntervalMarkersStyle","IntervalMemberQ","IntervalSlider","IntervalUnion","Into","Inverse","InverseBetaRegularized","InverseBilateralLaplaceTransform","InverseBilateralZTransform","InverseCDF","InverseChiSquareDistribution","InverseContinuousWaveletTransform","InverseDistanceTransform","InverseEllipticNomeQ","InverseErf","InverseErfc","InverseFourier","InverseFourierCosTransform","InverseFourierSequenceTransform","InverseFourierSinTransform","InverseFourierTransform","InverseFunction","InverseFunctions","InverseGammaDistribution","InverseGammaRegularized","InverseGaussianDistribution","InverseGudermannian","InverseHankelTransform","InverseHaversine","InverseImagePyramid","InverseJacobiCD","InverseJacobiCN","InverseJacobiCS","InverseJacobiDC","InverseJacobiDN","InverseJacobiDS","InverseJacobiNC","InverseJacobiND","InverseJacobiNS","InverseJacobiSC","InverseJacobiSD","InverseJacobiSN","InverseLaplaceTransform","InverseMellinTransform","InversePermutation","InverseRadon","InverseRadonTransform","InverseSeries","InverseShortTimeFourier","InverseSpectrogram","InverseSurvivalFunction","InverseTransformedRegion","InverseWaveletTransform","InverseWeierstrassP","InverseWishartMatrixDistribution","InverseZTransform","Invisible","InvisibleApplication","InvisibleTimes","IPAddress","IrreduciblePolynomialQ","IslandData","IsolatingInterval","IsomorphicGraphQ","IsomorphicSubgraphQ","IsotopeData","Italic","Item","ItemAspectRatio","ItemBox","ItemBoxOptions","ItemDisplayFunction","ItemSize","ItemStyle","ItoProcess","JaccardDissimilarity","JacobiAmplitude","Jacobian","JacobiCD","JacobiCN","JacobiCS","JacobiDC","JacobiDN","JacobiDS","JacobiEpsilon","JacobiNC","JacobiND","JacobiNS","JacobiP","JacobiSC","JacobiSD","JacobiSN","JacobiSymbol","JacobiZeta","JacobiZN","JankoGroupJ1","JankoGroupJ2","JankoGroupJ3","JankoGroupJ4","JarqueBeraALMTest","JohnsonDistribution","Join","JoinAcross","Joined","JoinedCurve","JoinedCurveBox","JoinedCurveBoxOptions","JoinForm","JordanDecomposition","JordanModelDecomposition","JulianDate","JuliaSetBoettcher","JuliaSetIterationCount","JuliaSetPlot","JuliaSetPoints","K","KagiChart","KaiserBesselWindow","KaiserWindow","KalmanEstimator","KalmanFilter","KarhunenLoeveDecomposition","KaryTree","KatzCentrality","KCoreComponents","KDistribution","KEdgeConnectedComponents","KEdgeConnectedGraphQ","KeepExistingVersion","KelvinBei","KelvinBer","KelvinKei","KelvinKer","KendallTau","KendallTauTest","KernelConfiguration","KernelExecute","KernelFunction","KernelMixtureDistribution","KernelObject","Kernels","Ket","Key","KeyCollisionFunction","KeyComplement","KeyDrop","KeyDropFrom","KeyExistsQ","KeyFreeQ","KeyIntersection","KeyMap","KeyMemberQ","KeypointStrength","Keys","KeySelect","KeySort","KeySortBy","KeyTake","KeyUnion","KeyValueMap","KeyValuePattern","Khinchin","KillProcess","KirchhoffGraph","KirchhoffMatrix","KleinInvariantJ","KnapsackSolve","KnightTourGraph","KnotData","KnownUnitQ","KochCurve","KolmogorovSmirnovTest","KroneckerDelta","KroneckerModelDecomposition","KroneckerProduct","KroneckerSymbol","KuiperTest","KumaraswamyDistribution","Kurtosis","KuwaharaFilter","KVertexConnectedComponents","KVertexConnectedGraphQ","LABColor","Label","Labeled","LabeledSlider","LabelingFunction","LabelingSize","LabelStyle","LabelVisibility","LaguerreL","LakeData","LambdaComponents","LambertW","LameC","LameCPrime","LameEigenvalueA","LameEigenvalueB","LameS","LameSPrime","LaminaData","LanczosWindow","LandauDistribution","Language","LanguageCategory","LanguageData","LanguageIdentify","LanguageOptions","LaplaceDistribution","LaplaceTransform","Laplacian","LaplacianFilter","LaplacianGaussianFilter","LaplacianPDETerm","Large","Larger","Last","Latitude","LatitudeLongitude","LatticeData","LatticeReduce","Launch","LaunchKernels","LayeredGraphPlot","LayeredGraphPlot3D","LayerSizeFunction","LayoutInformation","LCHColor","LCM","LeaderSize","LeafCount","LeapVariant","LeapYearQ","LearnDistribution","LearnedDistribution","LearningRate","LearningRateMultipliers","LeastSquares","LeastSquaresFilterKernel","Left","LeftArrow","LeftArrowBar","LeftArrowRightArrow","LeftDownTeeVector","LeftDownVector","LeftDownVectorBar","LeftRightArrow","LeftRightVector","LeftTee","LeftTeeArrow","LeftTeeVector","LeftTriangle","LeftTriangleBar","LeftTriangleEqual","LeftUpDownVector","LeftUpTeeVector","LeftUpVector","LeftUpVectorBar","LeftVector","LeftVectorBar","LegendAppearance","Legended","LegendFunction","LegendLabel","LegendLayout","LegendMargins","LegendMarkers","LegendMarkerSize","LegendreP","LegendreQ","LegendreType","Length","LengthWhile","LerchPhi","Less","LessEqual","LessEqualGreater","LessEqualThan","LessFullEqual","LessGreater","LessLess","LessSlantEqual","LessThan","LessTilde","LetterCharacter","LetterCounts","LetterNumber","LetterQ","Level","LeveneTest","LeviCivitaTensor","LevyDistribution","Lexicographic","LexicographicOrder","LexicographicSort","LibraryDataType","LibraryFunction","LibraryFunctionDeclaration","LibraryFunctionError","LibraryFunctionInformation","LibraryFunctionLoad","LibraryFunctionUnload","LibraryLoad","LibraryUnload","LicenseEntitlementObject","LicenseEntitlements","LicenseID","LicensingSettings","LiftingFilterData","LiftingWaveletTransform","LightBlue","LightBrown","LightCyan","Lighter","LightGray","LightGreen","Lighting","LightingAngle","LightMagenta","LightOrange","LightPink","LightPurple","LightRed","LightSources","LightYellow","Likelihood","Limit","LimitsPositioning","LimitsPositioningTokens","LindleyDistribution","Line","Line3DBox","Line3DBoxOptions","LinearFilter","LinearFractionalOptimization","LinearFractionalTransform","LinearGradientFilling","LinearGradientImage","LinearizingTransformationData","LinearLayer","LinearModelFit","LinearOffsetFunction","LinearOptimization","LinearProgramming","LinearRecurrence","LinearSolve","LinearSolveFunction","LineBox","LineBoxOptions","LineBreak","LinebreakAdjustments","LineBreakChart","LinebreakSemicolonWeighting","LineBreakWithin","LineColor","LineGraph","LineIndent","LineIndentMaxFraction","LineIntegralConvolutionPlot","LineIntegralConvolutionScale","LineLegend","LineOpacity","LineSpacing","LineWrapParts","LinkActivate","LinkClose","LinkConnect","LinkConnectedQ","LinkCreate","LinkError","LinkFlush","LinkFunction","LinkHost","LinkInterrupt","LinkLaunch","LinkMode","LinkObject","LinkOpen","LinkOptions","LinkPatterns","LinkProtocol","LinkRankCentrality","LinkRead","LinkReadHeld","LinkReadyQ","Links","LinkService","LinkWrite","LinkWriteHeld","LiouvilleLambda","List","Listable","ListAnimate","ListContourPlot","ListContourPlot3D","ListConvolve","ListCorrelate","ListCurvePathPlot","ListDeconvolve","ListDensityPlot","ListDensityPlot3D","Listen","ListFormat","ListFourierSequenceTransform","ListInterpolation","ListLineIntegralConvolutionPlot","ListLinePlot","ListLinePlot3D","ListLogLinearPlot","ListLogLogPlot","ListLogPlot","ListPicker","ListPickerBox","ListPickerBoxBackground","ListPickerBoxOptions","ListPlay","ListPlot","ListPlot3D","ListPointPlot3D","ListPolarPlot","ListQ","ListSliceContourPlot3D","ListSliceDensityPlot3D","ListSliceVectorPlot3D","ListStepPlot","ListStreamDensityPlot","ListStreamPlot","ListStreamPlot3D","ListSurfacePlot3D","ListVectorDensityPlot","ListVectorDisplacementPlot","ListVectorDisplacementPlot3D","ListVectorPlot","ListVectorPlot3D","ListZTransform","Literal","LiteralSearch","LiteralType","LoadCompiledComponent","LocalAdaptiveBinarize","LocalCache","LocalClusteringCoefficient","LocalEvaluate","LocalizeDefinitions","LocalizeVariables","LocalObject","LocalObjects","LocalResponseNormalizationLayer","LocalSubmit","LocalSymbol","LocalTime","LocalTimeZone","LocationEquivalenceTest","LocationTest","Locator","LocatorAutoCreate","LocatorBox","LocatorBoxOptions","LocatorCentering","LocatorPane","LocatorPaneBox","LocatorPaneBoxOptions","LocatorRegion","Locked","Log","Log10","Log2","LogBarnesG","LogGamma","LogGammaDistribution","LogicalExpand","LogIntegral","LogisticDistribution","LogisticSigmoid","LogitModelFit","LogLikelihood","LogLinearPlot","LogLogisticDistribution","LogLogPlot","LogMultinormalDistribution","LogNormalDistribution","LogPlot","LogRankTest","LogSeriesDistribution","LongEqual","Longest","LongestCommonSequence","LongestCommonSequencePositions","LongestCommonSubsequence","LongestCommonSubsequencePositions","LongestMatch","LongestOrderedSequence","LongForm","Longitude","LongLeftArrow","LongLeftRightArrow","LongRightArrow","LongShortTermMemoryLayer","Lookup","Loopback","LoopFreeGraphQ","Looping","LossFunction","LowerCaseQ","LowerLeftArrow","LowerRightArrow","LowerTriangularize","LowerTriangularMatrix","LowerTriangularMatrixQ","LowpassFilter","LQEstimatorGains","LQGRegulator","LQOutputRegulatorGains","LQRegulatorGains","LUBackSubstitution","LucasL","LuccioSamiComponents","LUDecomposition","LunarEclipse","LUVColor","LyapunovSolve","LyonsGroupLy","MachineID","MachineName","MachineNumberQ","MachinePrecision","MacintoshSystemPageSetup","Magenta","Magnification","Magnify","MailAddressValidation","MailExecute","MailFolder","MailItem","MailReceiverFunction","MailResponseFunction","MailSearch","MailServerConnect","MailServerConnection","MailSettings","MainSolve","MaintainDynamicCaches","Majority","MakeBoxes","MakeExpression","MakeRules","ManagedLibraryExpressionID","ManagedLibraryExpressionQ","MandelbrotSetBoettcher","MandelbrotSetDistance","MandelbrotSetIterationCount","MandelbrotSetMemberQ","MandelbrotSetPlot","MangoldtLambda","ManhattanDistance","Manipulate","Manipulator","MannedSpaceMissionData","MannWhitneyTest","MantissaExponent","Manual","Map","MapAll","MapApply","MapAt","MapIndexed","MAProcess","MapThread","MarchenkoPasturDistribution","MarcumQ","MardiaCombinedTest","MardiaKurtosisTest","MardiaSkewnessTest","MarginalDistribution","MarkovProcessProperties","Masking","MassConcentrationCondition","MassFluxValue","MassImpermeableBoundaryValue","MassOutflowValue","MassSymmetryValue","MassTransferValue","MassTransportPDEComponent","MatchingDissimilarity","MatchLocalNameQ","MatchLocalNames","MatchQ","Material","MaterialShading","MaternPointProcess","MathematicalFunctionData","MathematicaNotation","MathieuC","MathieuCharacteristicA","MathieuCharacteristicB","MathieuCharacteristicExponent","MathieuCPrime","MathieuGroupM11","MathieuGroupM12","MathieuGroupM22","MathieuGroupM23","MathieuGroupM24","MathieuS","MathieuSPrime","MathMLForm","MathMLText","Matrices","MatrixExp","MatrixForm","MatrixFunction","MatrixLog","MatrixNormalDistribution","MatrixPlot","MatrixPower","MatrixPropertyDistribution","MatrixQ","MatrixRank","MatrixTDistribution","Max","MaxBend","MaxCellMeasure","MaxColorDistance","MaxDate","MaxDetect","MaxDisplayedChildren","MaxDuration","MaxExtraBandwidths","MaxExtraConditions","MaxFeatureDisplacement","MaxFeatures","MaxFilter","MaximalBy","Maximize","MaxItems","MaxIterations","MaxLimit","MaxMemoryUsed","MaxMixtureKernels","MaxOverlapFraction","MaxPlotPoints","MaxPoints","MaxRecursion","MaxStableDistribution","MaxStepFraction","MaxSteps","MaxStepSize","MaxTrainingRounds","MaxValue","MaxwellDistribution","MaxWordGap","McLaughlinGroupMcL","Mean","MeanAbsoluteLossLayer","MeanAround","MeanClusteringCoefficient","MeanDegreeConnectivity","MeanDeviation","MeanFilter","MeanGraphDistance","MeanNeighborDegree","MeanPointDensity","MeanShift","MeanShiftFilter","MeanSquaredLossLayer","Median","MedianDeviation","MedianFilter","MedicalTestData","Medium","MeijerG","MeijerGReduce","MeixnerDistribution","MellinConvolve","MellinTransform","MemberQ","MemoryAvailable","MemoryConstrained","MemoryConstraint","MemoryInUse","MengerMesh","Menu","MenuAppearance","MenuCommandKey","MenuEvaluator","MenuItem","MenuList","MenuPacket","MenuSortingValue","MenuStyle","MenuView","Merge","MergeDifferences","MergingFunction","MersennePrimeExponent","MersennePrimeExponentQ","Mesh","MeshCellCentroid","MeshCellCount","MeshCellHighlight","MeshCellIndex","MeshCellLabel","MeshCellMarker","MeshCellMeasure","MeshCellQuality","MeshCells","MeshCellShapeFunction","MeshCellStyle","MeshConnectivityGraph","MeshCoordinates","MeshFunctions","MeshPrimitives","MeshQualityGoal","MeshRange","MeshRefinementFunction","MeshRegion","MeshRegionQ","MeshShading","MeshStyle","Message","MessageDialog","MessageList","MessageName","MessageObject","MessageOptions","MessagePacket","Messages","MessagesNotebook","MetaCharacters","MetaInformation","MeteorShowerData","Method","MethodOptions","MexicanHatWavelet","MeyerWavelet","Midpoint","MIMETypeToFormatList","Min","MinColorDistance","MinDate","MinDetect","MineralData","MinFilter","MinimalBy","MinimalPolynomial","MinimalStateSpaceModel","Minimize","MinimumTimeIncrement","MinIntervalSize","MinkowskiQuestionMark","MinLimit","MinMax","MinorPlanetData","Minors","MinPointSeparation","MinRecursion","MinSize","MinStableDistribution","Minus","MinusPlus","MinValue","Missing","MissingBehavior","MissingDataMethod","MissingDataRules","MissingQ","MissingString","MissingStyle","MissingValuePattern","MissingValueSynthesis","MittagLefflerE","MixedFractionParts","MixedGraphQ","MixedMagnitude","MixedRadix","MixedRadixQuantity","MixedUnit","MixtureDistribution","Mod","Modal","Mode","ModelPredictiveController","Modular","ModularInverse","ModularLambda","Module","Modulus","MoebiusMu","Molecule","MoleculeAlign","MoleculeContainsQ","MoleculeDraw","MoleculeEquivalentQ","MoleculeFreeQ","MoleculeGraph","MoleculeMatchQ","MoleculeMaximumCommonSubstructure","MoleculeModify","MoleculeName","MoleculePattern","MoleculePlot","MoleculePlot3D","MoleculeProperty","MoleculeQ","MoleculeRecognize","MoleculeSubstructureCount","MoleculeValue","Moment","MomentConvert","MomentEvaluate","MomentGeneratingFunction","MomentOfInertia","Monday","Monitor","MonomialList","MonomialOrder","MonsterGroupM","MoonPhase","MoonPosition","MorletWavelet","MorphologicalBinarize","MorphologicalBranchPoints","MorphologicalComponents","MorphologicalEulerNumber","MorphologicalGraph","MorphologicalPerimeter","MorphologicalTransform","MortalityData","Most","MountainData","MouseAnnotation","MouseAppearance","MouseAppearanceTag","MouseButtons","Mouseover","MousePointerNote","MousePosition","MovieData","MovingAverage","MovingMap","MovingMedian","MoyalDistribution","MultiaxisArrangement","Multicolumn","MultiedgeStyle","MultigraphQ","MultilaunchWarning","MultiLetterItalics","MultiLetterStyle","MultilineFunction","Multinomial","MultinomialDistribution","MultinormalDistribution","MultiplicativeOrder","Multiplicity","MultiplySides","MultiscriptBoxOptions","Multiselection","MultivariateHypergeometricDistribution","MultivariatePoissonDistribution","MultivariateTDistribution","N","NakagamiDistribution","NameQ","Names","NamespaceBox","NamespaceBoxOptions","Nand","NArgMax","NArgMin","NBernoulliB","NBodySimulation","NBodySimulationData","NCache","NCaputoD","NDEigensystem","NDEigenvalues","NDSolve","NDSolveValue","Nearest","NearestFunction","NearestMeshCells","NearestNeighborG","NearestNeighborGraph","NearestTo","NebulaData","NeedlemanWunschSimilarity","Needs","Negative","NegativeBinomialDistribution","NegativeDefiniteMatrixQ","NegativeIntegers","NegativelyOrientedPoints","NegativeMultinomialDistribution","NegativeRationals","NegativeReals","NegativeSemidefiniteMatrixQ","NeighborhoodData","NeighborhoodGraph","Nest","NestedGreaterGreater","NestedLessLess","NestedScriptRules","NestGraph","NestList","NestTree","NestWhile","NestWhileList","NetAppend","NetArray","NetArrayLayer","NetBidirectionalOperator","NetChain","NetDecoder","NetDelete","NetDrop","NetEncoder","NetEvaluationMode","NetExternalObject","NetExtract","NetFlatten","NetFoldOperator","NetGANOperator","NetGraph","NetInformation","NetInitialize","NetInsert","NetInsertSharedArrays","NetJoin","NetMapOperator","NetMapThreadOperator","NetMeasurements","NetModel","NetNestOperator","NetPairEmbeddingOperator","NetPort","NetPortGradient","NetPrepend","NetRename","NetReplace","NetReplacePart","NetSharedArray","NetStateObject","NetTake","NetTrain","NetTrainResultsObject","NetUnfold","NetworkPacketCapture","NetworkPacketRecording","NetworkPacketRecordingDuring","NetworkPacketTrace","NeumannValue","NevilleThetaC","NevilleThetaD","NevilleThetaN","NevilleThetaS","NewPrimitiveStyle","NExpectation","Next","NextCell","NextDate","NextPrime","NextScheduledTaskTime","NeymanScottPointProcess","NFractionalD","NHoldAll","NHoldFirst","NHoldRest","NicholsGridLines","NicholsPlot","NightHemisphere","NIntegrate","NMaximize","NMaxValue","NMinimize","NMinValue","NominalScale","NominalVariables","NonAssociative","NoncentralBetaDistribution","NoncentralChiSquareDistribution","NoncentralFRatioDistribution","NoncentralStudentTDistribution","NonCommutativeMultiply","NonConstants","NondimensionalizationTransform","None","NoneTrue","NonlinearModelFit","NonlinearStateSpaceModel","NonlocalMeansFilter","NonNegative","NonNegativeIntegers","NonNegativeRationals","NonNegativeReals","NonPositive","NonPositiveIntegers","NonPositiveRationals","NonPositiveReals","Nor","NorlundB","Norm","Normal","NormalDistribution","NormalGrouping","NormalizationLayer","Normalize","Normalized","NormalizedSquaredEuclideanDistance","NormalMatrixQ","NormalsFunction","NormFunction","Not","NotCongruent","NotCupCap","NotDoubleVerticalBar","Notebook","NotebookApply","NotebookAutoSave","NotebookBrowseDirectory","NotebookClose","NotebookConvertSettings","NotebookCreate","NotebookDefault","NotebookDelete","NotebookDirectory","NotebookDynamicExpression","NotebookEvaluate","NotebookEventActions","NotebookFileName","NotebookFind","NotebookGet","NotebookImport","NotebookInformation","NotebookInterfaceObject","NotebookLocate","NotebookObject","NotebookOpen","NotebookPath","NotebookPrint","NotebookPut","NotebookRead","Notebooks","NotebookSave","NotebookSelection","NotebooksMenu","NotebookTemplate","NotebookWrite","NotElement","NotEqualTilde","NotExists","NotGreater","NotGreaterEqual","NotGreaterFullEqual","NotGreaterGreater","NotGreaterLess","NotGreaterSlantEqual","NotGreaterTilde","Nothing","NotHumpDownHump","NotHumpEqual","NotificationFunction","NotLeftTriangle","NotLeftTriangleBar","NotLeftTriangleEqual","NotLess","NotLessEqual","NotLessFullEqual","NotLessGreater","NotLessLess","NotLessSlantEqual","NotLessTilde","NotNestedGreaterGreater","NotNestedLessLess","NotPrecedes","NotPrecedesEqual","NotPrecedesSlantEqual","NotPrecedesTilde","NotReverseElement","NotRightTriangle","NotRightTriangleBar","NotRightTriangleEqual","NotSquareSubset","NotSquareSubsetEqual","NotSquareSuperset","NotSquareSupersetEqual","NotSubset","NotSubsetEqual","NotSucceeds","NotSucceedsEqual","NotSucceedsSlantEqual","NotSucceedsTilde","NotSuperset","NotSupersetEqual","NotTilde","NotTildeEqual","NotTildeFullEqual","NotTildeTilde","NotVerticalBar","Now","NoWhitespace","NProbability","NProduct","NProductFactors","NRoots","NSolve","NSolveValues","NSum","NSumTerms","NuclearExplosionData","NuclearReactorData","Null","NullRecords","NullSpace","NullWords","Number","NumberCompose","NumberDecompose","NumberDigit","NumberExpand","NumberFieldClassNumber","NumberFieldDiscriminant","NumberFieldFundamentalUnits","NumberFieldIntegralBasis","NumberFieldNormRepresentatives","NumberFieldRegulator","NumberFieldRootsOfUnity","NumberFieldSignature","NumberForm","NumberFormat","NumberLinePlot","NumberMarks","NumberMultiplier","NumberPadding","NumberPoint","NumberQ","NumberSeparator","NumberSigns","NumberString","Numerator","NumeratorDenominator","NumericalOrder","NumericalSort","NumericArray","NumericArrayQ","NumericArrayType","NumericFunction","NumericQ","NuttallWindow","NValues","NyquistGridLines","NyquistPlot","O","ObjectExistsQ","ObservabilityGramian","ObservabilityMatrix","ObservableDecomposition","ObservableModelQ","OceanData","Octahedron","OddQ","Off","Offset","OLEData","On","ONanGroupON","Once","OneIdentity","Opacity","OpacityFunction","OpacityFunctionScaling","Open","OpenAppend","Opener","OpenerBox","OpenerBoxOptions","OpenerView","OpenFunctionInspectorPacket","Opening","OpenRead","OpenSpecialOptions","OpenTemporary","OpenWrite","Operate","OperatingSystem","OperatorApplied","OptimumFlowData","Optional","OptionalElement","OptionInspectorSettings","OptionQ","Options","OptionsPacket","OptionsPattern","OptionValue","OptionValueBox","OptionValueBoxOptions","Or","Orange","Order","OrderDistribution","OrderedQ","Ordering","OrderingBy","OrderingLayer","Orderless","OrderlessPatternSequence","OrdinalScale","OrnsteinUhlenbeckProcess","Orthogonalize","OrthogonalMatrixQ","Out","Outer","OuterPolygon","OuterPolyhedron","OutputAutoOverwrite","OutputControllabilityMatrix","OutputControllableModelQ","OutputForm","OutputFormData","OutputGrouping","OutputMathEditExpression","OutputNamePacket","OutputPorts","OutputResponse","OutputSizeLimit","OutputStream","Over","OverBar","OverDot","Overflow","OverHat","Overlaps","Overlay","OverlayBox","OverlayBoxOptions","OverlayVideo","Overscript","OverscriptBox","OverscriptBoxOptions","OverTilde","OverVector","OverwriteTarget","OwenT","OwnValues","Package","PackingMethod","PackPaclet","PacletDataRebuild","PacletDirectoryAdd","PacletDirectoryLoad","PacletDirectoryRemove","PacletDirectoryUnload","PacletDisable","PacletEnable","PacletFind","PacletFindRemote","PacletInformation","PacletInstall","PacletInstallSubmit","PacletNewerQ","PacletObject","PacletObjectQ","PacletSite","PacletSiteObject","PacletSiteRegister","PacletSites","PacletSiteUnregister","PacletSiteUpdate","PacletSymbol","PacletUninstall","PacletUpdate","PaddedForm","Padding","PaddingLayer","PaddingSize","PadeApproximant","PadLeft","PadRight","PageBreakAbove","PageBreakBelow","PageBreakWithin","PageFooterLines","PageFooters","PageHeaderLines","PageHeaders","PageHeight","PageRankCentrality","PageTheme","PageWidth","Pagination","PairCorrelationG","PairedBarChart","PairedHistogram","PairedSmoothHistogram","PairedTTest","PairedZTest","PaletteNotebook","PalettePath","PalettesMenuSettings","PalindromeQ","Pane","PaneBox","PaneBoxOptions","Panel","PanelBox","PanelBoxOptions","Paneled","PaneSelector","PaneSelectorBox","PaneSelectorBoxOptions","PaperWidth","ParabolicCylinderD","ParagraphIndent","ParagraphSpacing","ParallelArray","ParallelAxisPlot","ParallelCombine","ParallelDo","Parallelepiped","ParallelEvaluate","Parallelization","Parallelize","ParallelKernels","ParallelMap","ParallelNeeds","Parallelogram","ParallelProduct","ParallelSubmit","ParallelSum","ParallelTable","ParallelTry","Parameter","ParameterEstimator","ParameterMixtureDistribution","ParameterVariables","ParametricConvexOptimization","ParametricFunction","ParametricNDSolve","ParametricNDSolveValue","ParametricPlot","ParametricPlot3D","ParametricRampLayer","ParametricRegion","ParentBox","ParentCell","ParentConnect","ParentDirectory","ParentEdgeLabel","ParentEdgeLabelFunction","ParentEdgeLabelStyle","ParentEdgeShapeFunction","ParentEdgeStyle","ParentEdgeStyleFunction","ParentForm","Parenthesize","ParentList","ParentNotebook","ParetoDistribution","ParetoPickandsDistribution","ParkData","Part","PartBehavior","PartialCorrelationFunction","PartialD","ParticleAcceleratorData","ParticleData","Partition","PartitionGranularity","PartitionsP","PartitionsQ","PartLayer","PartOfSpeech","PartProtection","ParzenWindow","PascalDistribution","PassEventsDown","PassEventsUp","Paste","PasteAutoQuoteCharacters","PasteBoxFormInlineCells","PasteButton","Path","PathGraph","PathGraphQ","Pattern","PatternFilling","PatternReaction","PatternSequence","PatternTest","PauliMatrix","PaulWavelet","Pause","PausedTime","PDF","PeakDetect","PeanoCurve","PearsonChiSquareTest","PearsonCorrelationTest","PearsonDistribution","PenttinenPointProcess","PercentForm","PerfectNumber","PerfectNumberQ","PerformanceGoal","Perimeter","PeriodicBoundaryCondition","PeriodicInterpolation","Periodogram","PeriodogramArray","Permanent","Permissions","PermissionsGroup","PermissionsGroupMemberQ","PermissionsGroups","PermissionsKey","PermissionsKeys","PermutationCycles","PermutationCyclesQ","PermutationGroup","PermutationLength","PermutationList","PermutationListQ","PermutationMatrix","PermutationMax","PermutationMin","PermutationOrder","PermutationPower","PermutationProduct","PermutationReplace","Permutations","PermutationSupport","Permute","PeronaMalikFilter","Perpendicular","PerpendicularBisector","PersistenceLocation","PersistenceTime","PersistentObject","PersistentObjects","PersistentSymbol","PersistentValue","PersonData","PERTDistribution","PetersenGraph","PhaseMargins","PhaseRange","PhongShading","PhysicalSystemData","Pi","Pick","PickedElements","PickMode","PIDData","PIDDerivativeFilter","PIDFeedforward","PIDTune","Piecewise","PiecewiseExpand","PieChart","PieChart3D","PillaiTrace","PillaiTraceTest","PingTime","Pink","PitchRecognize","Pivoting","PixelConstrained","PixelValue","PixelValuePositions","Placed","Placeholder","PlaceholderLayer","PlaceholderReplace","Plain","PlanarAngle","PlanarFaceList","PlanarGraph","PlanarGraphQ","PlanckRadiationLaw","PlaneCurveData","PlanetaryMoonData","PlanetData","PlantData","Play","PlaybackSettings","PlayRange","Plot","Plot3D","Plot3Matrix","PlotDivision","PlotJoined","PlotLabel","PlotLabels","PlotLayout","PlotLegends","PlotMarkers","PlotPoints","PlotRange","PlotRangeClipping","PlotRangeClipPlanesStyle","PlotRangePadding","PlotRegion","PlotStyle","PlotTheme","Pluralize","Plus","PlusMinus","Pochhammer","PodStates","PodWidth","Point","Point3DBox","Point3DBoxOptions","PointBox","PointBoxOptions","PointCountDistribution","PointDensity","PointDensityFunction","PointFigureChart","PointLegend","PointLight","PointProcessEstimator","PointProcessFitTest","PointProcessParameterAssumptions","PointProcessParameterQ","PointSize","PointStatisticFunction","PointValuePlot","PoissonConsulDistribution","PoissonDistribution","PoissonPDEComponent","PoissonPointProcess","PoissonProcess","PoissonWindow","PolarAxes","PolarAxesOrigin","PolarGridLines","PolarPlot","PolarTicks","PoleZeroMarkers","PolyaAeppliDistribution","PolyGamma","Polygon","Polygon3DBox","Polygon3DBoxOptions","PolygonalNumber","PolygonAngle","PolygonBox","PolygonBoxOptions","PolygonCoordinates","PolygonDecomposition","PolygonHoleScale","PolygonIntersections","PolygonScale","Polyhedron","PolyhedronAngle","PolyhedronBox","PolyhedronBoxOptions","PolyhedronCoordinates","PolyhedronData","PolyhedronDecomposition","PolyhedronGenus","PolyLog","PolynomialExpressionQ","PolynomialExtendedGCD","PolynomialForm","PolynomialGCD","PolynomialLCM","PolynomialMod","PolynomialQ","PolynomialQuotient","PolynomialQuotientRemainder","PolynomialReduce","PolynomialRemainder","Polynomials","PolynomialSumOfSquaresList","PoolingLayer","PopupMenu","PopupMenuBox","PopupMenuBoxOptions","PopupView","PopupWindow","Position","PositionIndex","PositionLargest","PositionSmallest","Positive","PositiveDefiniteMatrixQ","PositiveIntegers","PositivelyOrientedPoints","PositiveRationals","PositiveReals","PositiveSemidefiniteMatrixQ","PossibleZeroQ","Postfix","PostScript","Power","PowerDistribution","PowerExpand","PowerMod","PowerModList","PowerRange","PowerSpectralDensity","PowersRepresentations","PowerSymmetricPolynomial","Precedence","PrecedenceForm","Precedes","PrecedesEqual","PrecedesSlantEqual","PrecedesTilde","Precision","PrecisionGoal","PreDecrement","Predict","PredictionRoot","PredictorFunction","PredictorInformation","PredictorMeasurements","PredictorMeasurementsObject","PreemptProtect","PreferencesPath","PreferencesSettings","Prefix","PreIncrement","Prepend","PrependLayer","PrependTo","PreprocessingRules","PreserveColor","PreserveImageOptions","Previous","PreviousCell","PreviousDate","PriceGraphDistribution","PrimaryPlaceholder","Prime","PrimeNu","PrimeOmega","PrimePi","PrimePowerQ","PrimeQ","Primes","PrimeZetaP","PrimitivePolynomialQ","PrimitiveRoot","PrimitiveRootList","PrincipalComponents","PrincipalValue","Print","PrintableASCIIQ","PrintAction","PrintForm","PrintingCopies","PrintingOptions","PrintingPageRange","PrintingStartingPageNumber","PrintingStyleEnvironment","Printout3D","Printout3DPreviewer","PrintPrecision","PrintTemporary","Prism","PrismBox","PrismBoxOptions","PrivateCellOptions","PrivateEvaluationOptions","PrivateFontOptions","PrivateFrontEndOptions","PrivateKey","PrivateNotebookOptions","PrivatePaths","Probability","ProbabilityDistribution","ProbabilityPlot","ProbabilityPr","ProbabilityScalePlot","ProbitModelFit","ProcessConnection","ProcessDirectory","ProcessEnvironment","Processes","ProcessEstimator","ProcessInformation","ProcessObject","ProcessParameterAssumptions","ProcessParameterQ","ProcessStateDomain","ProcessStatus","ProcessTimeDomain","Product","ProductDistribution","ProductLog","ProgressIndicator","ProgressIndicatorBox","ProgressIndicatorBoxOptions","ProgressReporting","Projection","Prolog","PromptForm","ProofObject","PropagateAborts","Properties","Property","PropertyList","PropertyValue","Proportion","Proportional","Protect","Protected","ProteinData","Pruning","PseudoInverse","PsychrometricPropertyData","PublicKey","PublisherID","PulsarData","PunctuationCharacter","Purple","Put","PutAppend","Pyramid","PyramidBox","PyramidBoxOptions","QBinomial","QFactorial","QGamma","QHypergeometricPFQ","QnDispersion","QPochhammer","QPolyGamma","QRDecomposition","QuadraticIrrationalQ","QuadraticOptimization","Quantile","QuantilePlot","Quantity","QuantityArray","QuantityDistribution","QuantityForm","QuantityMagnitude","QuantityQ","QuantityUnit","QuantityVariable","QuantityVariableCanonicalUnit","QuantityVariableDimensions","QuantityVariableIdentifier","QuantityVariablePhysicalQuantity","Quartics","QuartileDeviation","Quartiles","QuartileSkewness","Query","QuestionGenerator","QuestionInterface","QuestionObject","QuestionSelector","QueueingNetworkProcess","QueueingProcess","QueueProperties","Quiet","QuietEcho","Quit","Quotient","QuotientRemainder","RadialAxisPlot","RadialGradientFilling","RadialGradientImage","RadialityCentrality","RadicalBox","RadicalBoxOptions","RadioButton","RadioButtonBar","RadioButtonBox","RadioButtonBoxOptions","Radon","RadonTransform","RamanujanTau","RamanujanTauL","RamanujanTauTheta","RamanujanTauZ","Ramp","Random","RandomArrayLayer","RandomChoice","RandomColor","RandomComplex","RandomDate","RandomEntity","RandomFunction","RandomGeneratorState","RandomGeoPosition","RandomGraph","RandomImage","RandomInstance","RandomInteger","RandomPermutation","RandomPoint","RandomPointConfiguration","RandomPolygon","RandomPolyhedron","RandomPrime","RandomReal","RandomSample","RandomSeed","RandomSeeding","RandomTime","RandomTree","RandomVariate","RandomWalkProcess","RandomWord","Range","RangeFilter","RangeSpecification","RankedMax","RankedMin","RarerProbability","Raster","Raster3D","Raster3DBox","Raster3DBoxOptions","RasterArray","RasterBox","RasterBoxOptions","Rasterize","RasterSize","Rational","RationalExpressionQ","RationalFunctions","Rationalize","Rationals","Ratios","RawArray","RawBoxes","RawData","RawMedium","RayleighDistribution","Re","ReactionBalance","ReactionBalancedQ","ReactionPDETerm","Read","ReadByteArray","ReadLine","ReadList","ReadProtected","ReadString","Real","RealAbs","RealBlockDiagonalForm","RealDigits","RealExponent","Reals","RealSign","Reap","RebuildPacletData","RecalibrationFunction","RecognitionPrior","RecognitionThreshold","ReconstructionMesh","Record","RecordLists","RecordSeparators","Rectangle","RectangleBox","RectangleBoxOptions","RectangleChart","RectangleChart3D","RectangularRepeatingElement","RecurrenceFilter","RecurrenceTable","RecurringDigitsForm","Red","Reduce","RefBox","ReferenceLineStyle","ReferenceMarkers","ReferenceMarkerStyle","Refine","ReflectionMatrix","ReflectionTransform","Refresh","RefreshRate","Region","RegionBinarize","RegionBoundary","RegionBoundaryStyle","RegionBounds","RegionCentroid","RegionCongruent","RegionConvert","RegionDifference","RegionDilation","RegionDimension","RegionDisjoint","RegionDistance","RegionDistanceFunction","RegionEmbeddingDimension","RegionEqual","RegionErosion","RegionFillingStyle","RegionFit","RegionFunction","RegionImage","RegionIntersection","RegionMeasure","RegionMember","RegionMemberFunction","RegionMoment","RegionNearest","RegionNearestFunction","RegionPlot","RegionPlot3D","RegionProduct","RegionQ","RegionResize","RegionSimilar","RegionSize","RegionSymmetricDifference","RegionUnion","RegionWithin","RegisterExternalEvaluator","RegularExpression","Regularization","RegularlySampledQ","RegularPolygon","ReIm","ReImLabels","ReImPlot","ReImStyle","Reinstall","RelationalDatabase","RelationGraph","Release","ReleaseHold","ReliabilityDistribution","ReliefImage","ReliefPlot","RemoteAuthorizationCaching","RemoteBatchJobAbort","RemoteBatchJobObject","RemoteBatchJobs","RemoteBatchMapSubmit","RemoteBatchSubmissionEnvironment","RemoteBatchSubmit","RemoteConnect","RemoteConnectionObject","RemoteEvaluate","RemoteFile","RemoteInputFiles","RemoteKernelObject","RemoteProviderSettings","RemoteRun","RemoteRunProcess","RemovalConditions","Remove","RemoveAlphaChannel","RemoveAsynchronousTask","RemoveAudioStream","RemoveBackground","RemoveChannelListener","RemoveChannelSubscribers","Removed","RemoveDiacritics","RemoveInputStreamMethod","RemoveOutputStreamMethod","RemoveProperty","RemoveScheduledTask","RemoveUsers","RemoveVideoStream","RenameDirectory","RenameFile","RenderAll","RenderingOptions","RenewalProcess","RenkoChart","RepairMesh","Repeated","RepeatedNull","RepeatedString","RepeatedTiming","RepeatingElement","Replace","ReplaceAll","ReplaceAt","ReplaceHeldPart","ReplaceImageValue","ReplaceList","ReplacePart","ReplacePixelValue","ReplaceRepeated","ReplicateLayer","RequiredPhysicalQuantities","Resampling","ResamplingAlgorithmData","ResamplingMethod","Rescale","RescalingTransform","ResetDirectory","ResetScheduledTask","ReshapeLayer","Residue","ResidueSum","ResizeLayer","Resolve","ResolveContextAliases","ResourceAcquire","ResourceData","ResourceFunction","ResourceObject","ResourceRegister","ResourceRemove","ResourceSearch","ResourceSubmissionObject","ResourceSubmit","ResourceSystemBase","ResourceSystemPath","ResourceUpdate","ResourceVersion","ResponseForm","Rest","RestartInterval","Restricted","Resultant","ResumePacket","Return","ReturnCreatesNewCell","ReturnEntersInput","ReturnExpressionPacket","ReturnInputFormPacket","ReturnPacket","ReturnReceiptFunction","ReturnTextPacket","Reverse","ReverseApplied","ReverseBiorthogonalSplineWavelet","ReverseElement","ReverseEquilibrium","ReverseGraph","ReverseSort","ReverseSortBy","ReverseUpEquilibrium","RevolutionAxis","RevolutionPlot3D","RGBColor","RiccatiSolve","RiceDistribution","RidgeFilter","RiemannR","RiemannSiegelTheta","RiemannSiegelZ","RiemannXi","Riffle","Right","RightArrow","RightArrowBar","RightArrowLeftArrow","RightComposition","RightCosetRepresentative","RightDownTeeVector","RightDownVector","RightDownVectorBar","RightTee","RightTeeArrow","RightTeeVector","RightTriangle","RightTriangleBar","RightTriangleEqual","RightUpDownVector","RightUpTeeVector","RightUpVector","RightUpVectorBar","RightVector","RightVectorBar","RipleyK","RipleyRassonRegion","RiskAchievementImportance","RiskReductionImportance","RobustConvexOptimization","RogersTanimotoDissimilarity","RollPitchYawAngles","RollPitchYawMatrix","RomanNumeral","Root","RootApproximant","RootIntervals","RootLocusPlot","RootMeanSquare","RootOfUnityQ","RootReduce","Roots","RootSum","RootTree","Rotate","RotateLabel","RotateLeft","RotateRight","RotationAction","RotationBox","RotationBoxOptions","RotationMatrix","RotationTransform","Round","RoundImplies","RoundingRadius","Row","RowAlignments","RowBackgrounds","RowBox","RowHeights","RowLines","RowMinHeight","RowReduce","RowsEqual","RowSpacings","RSolve","RSolveValue","RudinShapiro","RudvalisGroupRu","Rule","RuleCondition","RuleDelayed","RuleForm","RulePlot","RulerUnits","RulesTree","Run","RunProcess","RunScheduledTask","RunThrough","RuntimeAttributes","RuntimeOptions","RussellRaoDissimilarity","SameAs","SameQ","SameTest","SameTestProperties","SampledEntityClass","SampleDepth","SampledSoundFunction","SampledSoundList","SampleRate","SamplingPeriod","SARIMAProcess","SARMAProcess","SASTriangle","SatelliteData","SatisfiabilityCount","SatisfiabilityInstances","SatisfiableQ","Saturday","Save","Saveable","SaveAutoDelete","SaveConnection","SaveDefinitions","SavitzkyGolayMatrix","SawtoothWave","Scale","Scaled","ScaleDivisions","ScaledMousePosition","ScaleOrigin","ScalePadding","ScaleRanges","ScaleRangeStyle","ScalingFunctions","ScalingMatrix","ScalingTransform","Scan","ScheduledTask","ScheduledTaskActiveQ","ScheduledTaskInformation","ScheduledTaskInformationData","ScheduledTaskObject","ScheduledTasks","SchurDecomposition","ScientificForm","ScientificNotationThreshold","ScorerGi","ScorerGiPrime","ScorerHi","ScorerHiPrime","ScreenRectangle","ScreenStyleEnvironment","ScriptBaselineShifts","ScriptForm","ScriptLevel","ScriptMinSize","ScriptRules","ScriptSizeMultipliers","Scrollbars","ScrollingOptions","ScrollPosition","SearchAdjustment","SearchIndexObject","SearchIndices","SearchQueryString","SearchResultObject","Sec","Sech","SechDistribution","SecondOrderConeOptimization","SectionGrouping","SectorChart","SectorChart3D","SectorOrigin","SectorSpacing","SecuredAuthenticationKey","SecuredAuthenticationKeys","SecurityCertificate","SeedRandom","Select","Selectable","SelectComponents","SelectedCells","SelectedNotebook","SelectFirst","Selection","SelectionAnimate","SelectionCell","SelectionCellCreateCell","SelectionCellDefaultStyle","SelectionCellParentStyle","SelectionCreateCell","SelectionDebuggerTag","SelectionEvaluate","SelectionEvaluateCreateCell","SelectionMove","SelectionPlaceholder","SelectWithContents","SelfLoops","SelfLoopStyle","SemanticImport","SemanticImportString","SemanticInterpretation","SemialgebraicComponentInstances","SemidefiniteOptimization","SendMail","SendMessage","Sequence","SequenceAlignment","SequenceAttentionLayer","SequenceCases","SequenceCount","SequenceFold","SequenceFoldList","SequenceForm","SequenceHold","SequenceIndicesLayer","SequenceLastLayer","SequenceMostLayer","SequencePosition","SequencePredict","SequencePredictorFunction","SequenceReplace","SequenceRestLayer","SequenceReverseLayer","SequenceSplit","Series","SeriesCoefficient","SeriesData","SeriesTermGoal","ServiceConnect","ServiceDisconnect","ServiceExecute","ServiceObject","ServiceRequest","ServiceResponse","ServiceSubmit","SessionSubmit","SessionTime","Set","SetAccuracy","SetAlphaChannel","SetAttributes","Setbacks","SetCloudDirectory","SetCookies","SetDelayed","SetDirectory","SetEnvironment","SetFileDate","SetFileFormatProperties","SetOptions","SetOptionsPacket","SetPermissions","SetPrecision","SetProperty","SetSecuredAuthenticationKey","SetSelectedNotebook","SetSharedFunction","SetSharedVariable","SetStreamPosition","SetSystemModel","SetSystemOptions","Setter","SetterBar","SetterBox","SetterBoxOptions","Setting","SetUsers","Shading","Shallow","ShannonWavelet","ShapiroWilkTest","Share","SharingList","Sharpen","ShearingMatrix","ShearingTransform","ShellRegion","ShenCastanMatrix","ShiftedGompertzDistribution","ShiftRegisterSequence","Short","ShortDownArrow","Shortest","ShortestMatch","ShortestPathFunction","ShortLeftArrow","ShortRightArrow","ShortTimeFourier","ShortTimeFourierData","ShortUpArrow","Show","ShowAutoConvert","ShowAutoSpellCheck","ShowAutoStyles","ShowCellBracket","ShowCellLabel","ShowCellTags","ShowClosedCellArea","ShowCodeAssist","ShowContents","ShowControls","ShowCursorTracker","ShowGroupOpenCloseIcon","ShowGroupOpener","ShowInvisibleCharacters","ShowPageBreaks","ShowPredictiveInterface","ShowSelection","ShowShortBoxForm","ShowSpecialCharacters","ShowStringCharacters","ShowSyntaxStyles","ShrinkingDelay","ShrinkWrapBoundingBox","SiderealTime","SiegelTheta","SiegelTukeyTest","SierpinskiCurve","SierpinskiMesh","Sign","Signature","SignedRankTest","SignedRegionDistance","SignificanceLevel","SignPadding","SignTest","SimilarityRules","SimpleGraph","SimpleGraphQ","SimplePolygonQ","SimplePolyhedronQ","Simplex","Simplify","Sin","Sinc","SinghMaddalaDistribution","SingleEvaluation","SingleLetterItalics","SingleLetterStyle","SingularValueDecomposition","SingularValueList","SingularValuePlot","SingularValues","Sinh","SinhIntegral","SinIntegral","SixJSymbol","Skeleton","SkeletonTransform","SkellamDistribution","Skewness","SkewNormalDistribution","SkinStyle","Skip","SliceContourPlot3D","SliceDensityPlot3D","SliceDistribution","SliceVectorPlot3D","Slider","Slider2D","Slider2DBox","Slider2DBoxOptions","SliderBox","SliderBoxOptions","SlideShowVideo","SlideView","Slot","SlotSequence","Small","SmallCircle","Smaller","SmithDecomposition","SmithDelayCompensator","SmithWatermanSimilarity","SmoothDensityHistogram","SmoothHistogram","SmoothHistogram3D","SmoothKernelDistribution","SmoothPointDensity","SnDispersion","Snippet","SnippetsVideo","SnubPolyhedron","SocialMediaData","Socket","SocketConnect","SocketListen","SocketListener","SocketObject","SocketOpen","SocketReadMessage","SocketReadyQ","Sockets","SocketWaitAll","SocketWaitNext","SoftmaxLayer","SokalSneathDissimilarity","SolarEclipse","SolarSystemFeatureData","SolarTime","SolidAngle","SolidBoundaryLoadValue","SolidData","SolidDisplacementCondition","SolidFixedCondition","SolidMechanicsPDEComponent","SolidMechanicsStrain","SolidMechanicsStress","SolidRegionQ","Solve","SolveAlways","SolveDelayed","SolveValues","Sort","SortBy","SortedBy","SortedEntityClass","Sound","SoundAndGraphics","SoundNote","SoundVolume","SourceLink","SourcePDETerm","Sow","Space","SpaceCurveData","SpaceForm","Spacer","Spacings","Span","SpanAdjustments","SpanCharacterRounding","SpanFromAbove","SpanFromBoth","SpanFromLeft","SpanLineThickness","SpanMaxSize","SpanMinSize","SpanningCharacters","SpanSymmetric","SparseArray","SparseArrayQ","SpatialBinnedPointData","SpatialBoundaryCorrection","SpatialEstimate","SpatialEstimatorFunction","SpatialGraphDistribution","SpatialJ","SpatialMedian","SpatialNoiseLevel","SpatialObservationRegionQ","SpatialPointData","SpatialPointSelect","SpatialRandomnessTest","SpatialTransformationLayer","SpatialTrendFunction","Speak","SpeakerMatchQ","SpearmanRankTest","SpearmanRho","SpeciesData","SpecificityGoal","SpectralLineData","Spectrogram","SpectrogramArray","Specularity","SpeechCases","SpeechInterpreter","SpeechRecognize","SpeechSynthesize","SpellingCorrection","SpellingCorrectionList","SpellingDictionaries","SpellingDictionariesPath","SpellingOptions","Sphere","SphereBox","SphereBoxOptions","SpherePoints","SphericalBesselJ","SphericalBesselY","SphericalHankelH1","SphericalHankelH2","SphericalHarmonicY","SphericalPlot3D","SphericalRegion","SphericalShell","SpheroidalEigenvalue","SpheroidalJoiningFactor","SpheroidalPS","SpheroidalPSPrime","SpheroidalQS","SpheroidalQSPrime","SpheroidalRadialFactor","SpheroidalS1","SpheroidalS1Prime","SpheroidalS2","SpheroidalS2Prime","Splice","SplicedDistribution","SplineClosed","SplineDegree","SplineKnots","SplineWeights","Split","SplitBy","SpokenString","SpotLight","Sqrt","SqrtBox","SqrtBoxOptions","Square","SquaredEuclideanDistance","SquareFreeQ","SquareIntersection","SquareMatrixQ","SquareRepeatingElement","SquaresR","SquareSubset","SquareSubsetEqual","SquareSuperset","SquareSupersetEqual","SquareUnion","SquareWave","SSSTriangle","StabilityMargins","StabilityMarginsStyle","StableDistribution","Stack","StackBegin","StackComplete","StackedDateListPlot","StackedListPlot","StackInhibit","StadiumShape","StandardAtmosphereData","StandardDeviation","StandardDeviationFilter","StandardForm","Standardize","Standardized","StandardOceanData","StandbyDistribution","Star","StarClusterData","StarData","StarGraph","StartAsynchronousTask","StartExternalSession","StartingStepSize","StartOfLine","StartOfString","StartProcess","StartScheduledTask","StartupSound","StartWebSession","StateDimensions","StateFeedbackGains","StateOutputEstimator","StateResponse","StateSpaceModel","StateSpaceRealization","StateSpaceTransform","StateTransformationLinearize","StationaryDistribution","StationaryWaveletPacketTransform","StationaryWaveletTransform","StatusArea","StatusCentrality","StepMonitor","StereochemistryElements","StieltjesGamma","StippleShading","StirlingS1","StirlingS2","StopAsynchronousTask","StoppingPowerData","StopScheduledTask","StrataVariables","StratonovichProcess","StraussHardcorePointProcess","StraussPointProcess","StreamColorFunction","StreamColorFunctionScaling","StreamDensityPlot","StreamMarkers","StreamPlot","StreamPlot3D","StreamPoints","StreamPosition","Streams","StreamScale","StreamStyle","StrictInequalities","String","StringBreak","StringByteCount","StringCases","StringContainsQ","StringCount","StringDelete","StringDrop","StringEndsQ","StringExpression","StringExtract","StringForm","StringFormat","StringFormatQ","StringFreeQ","StringInsert","StringJoin","StringLength","StringMatchQ","StringPadLeft","StringPadRight","StringPart","StringPartition","StringPosition","StringQ","StringRepeat","StringReplace","StringReplaceList","StringReplacePart","StringReverse","StringRiffle","StringRotateLeft","StringRotateRight","StringSkeleton","StringSplit","StringStartsQ","StringTake","StringTakeDrop","StringTemplate","StringToByteArray","StringToStream","StringTrim","StripBoxes","StripOnInput","StripStyleOnPaste","StripWrapperBoxes","StrokeForm","Struckthrough","StructuralImportance","StructuredArray","StructuredArrayHeadQ","StructuredSelection","StruveH","StruveL","Stub","StudentTDistribution","Style","StyleBox","StyleBoxAutoDelete","StyleData","StyleDefinitions","StyleForm","StyleHints","StyleKeyMapping","StyleMenuListing","StyleNameDialogSettings","StyleNames","StylePrint","StyleSheetPath","Subdivide","Subfactorial","Subgraph","SubMinus","SubPlus","SubresultantPolynomialRemainders","SubresultantPolynomials","Subresultants","Subscript","SubscriptBox","SubscriptBoxOptions","Subscripted","Subsequences","Subset","SubsetCases","SubsetCount","SubsetEqual","SubsetMap","SubsetPosition","SubsetQ","SubsetReplace","Subsets","SubStar","SubstitutionSystem","Subsuperscript","SubsuperscriptBox","SubsuperscriptBoxOptions","SubtitleEncoding","SubtitleTrackSelection","Subtract","SubtractFrom","SubtractSides","SubValues","Succeeds","SucceedsEqual","SucceedsSlantEqual","SucceedsTilde","Success","SuchThat","Sum","SumConvergence","SummationLayer","Sunday","SunPosition","Sunrise","Sunset","SuperDagger","SuperMinus","SupernovaData","SuperPlus","Superscript","SuperscriptBox","SuperscriptBoxOptions","Superset","SupersetEqual","SuperStar","Surd","SurdForm","SurfaceAppearance","SurfaceArea","SurfaceColor","SurfaceData","SurfaceGraphics","SurvivalDistribution","SurvivalFunction","SurvivalModel","SurvivalModelFit","SuspendPacket","SuzukiDistribution","SuzukiGroupSuz","SwatchLegend","Switch","Symbol","SymbolName","SymletWavelet","Symmetric","SymmetricDifference","SymmetricGroup","SymmetricKey","SymmetricMatrixQ","SymmetricPolynomial","SymmetricReduction","Symmetrize","SymmetrizedArray","SymmetrizedArrayRules","SymmetrizedDependentComponents","SymmetrizedIndependentComponents","SymmetrizedReplacePart","SynchronousInitialization","SynchronousUpdating","Synonyms","Syntax","SyntaxForm","SyntaxInformation","SyntaxLength","SyntaxPacket","SyntaxQ","SynthesizeMissingValues","SystemCredential","SystemCredentialData","SystemCredentialKey","SystemCredentialKeys","SystemCredentialStoreObject","SystemDialogInput","SystemException","SystemGet","SystemHelpPath","SystemInformation","SystemInformationData","SystemInstall","SystemModel","SystemModeler","SystemModelExamples","SystemModelLinearize","SystemModelMeasurements","SystemModelParametricSimulate","SystemModelPlot","SystemModelProgressReporting","SystemModelReliability","SystemModels","SystemModelSimulate","SystemModelSimulateSensitivity","SystemModelSimulationData","SystemOpen","SystemOptions","SystemProcessData","SystemProcesses","SystemsConnectionsModel","SystemsModelControllerData","SystemsModelDelay","SystemsModelDelayApproximate","SystemsModelDelete","SystemsModelDimensions","SystemsModelExtract","SystemsModelFeedbackConnect","SystemsModelLabels","SystemsModelLinearity","SystemsModelMerge","SystemsModelOrder","SystemsModelParallelConnect","SystemsModelSeriesConnect","SystemsModelStateFeedbackConnect","SystemsModelVectorRelativeOrders","SystemStub","SystemTest","Tab","TabFilling","Table","TableAlignments","TableDepth","TableDirections","TableForm","TableHeadings","TableSpacing","TableView","TableViewBox","TableViewBoxAlignment","TableViewBoxBackground","TableViewBoxHeaders","TableViewBoxItemSize","TableViewBoxItemStyle","TableViewBoxOptions","TabSpacings","TabView","TabViewBox","TabViewBoxOptions","TagBox","TagBoxNote","TagBoxOptions","TaggingRules","TagSet","TagSetDelayed","TagStyle","TagUnset","Take","TakeDrop","TakeLargest","TakeLargestBy","TakeList","TakeSmallest","TakeSmallestBy","TakeWhile","Tally","Tan","Tanh","TargetDevice","TargetFunctions","TargetSystem","TargetUnits","TaskAbort","TaskExecute","TaskObject","TaskRemove","TaskResume","Tasks","TaskSuspend","TaskWait","TautologyQ","TelegraphProcess","TemplateApply","TemplateArgBox","TemplateBox","TemplateBoxOptions","TemplateEvaluate","TemplateExpression","TemplateIf","TemplateObject","TemplateSequence","TemplateSlot","TemplateSlotSequence","TemplateUnevaluated","TemplateVerbatim","TemplateWith","TemporalData","TemporalRegularity","Temporary","TemporaryVariable","TensorContract","TensorDimensions","TensorExpand","TensorProduct","TensorQ","TensorRank","TensorReduce","TensorSymmetry","TensorTranspose","TensorWedge","TerminatedEvaluation","TernaryListPlot","TernaryPlotCorners","TestID","TestReport","TestReportObject","TestResultObject","Tetrahedron","TetrahedronBox","TetrahedronBoxOptions","TeXForm","TeXSave","Text","Text3DBox","Text3DBoxOptions","TextAlignment","TextBand","TextBoundingBox","TextBox","TextCases","TextCell","TextClipboardType","TextContents","TextData","TextElement","TextForm","TextGrid","TextJustification","TextLine","TextPacket","TextParagraph","TextPosition","TextRecognize","TextSearch","TextSearchReport","TextSentences","TextString","TextStructure","TextStyle","TextTranslation","Texture","TextureCoordinateFunction","TextureCoordinateScaling","TextWords","Therefore","ThermodynamicData","ThermometerGauge","Thick","Thickness","Thin","Thinning","ThisLink","ThomasPointProcess","ThompsonGroupTh","Thread","Threaded","ThreadingLayer","ThreeJSymbol","Threshold","Through","Throw","ThueMorse","Thumbnail","Thursday","TickDirection","TickLabelOrientation","TickLabelPositioning","TickLabels","TickLengths","TickPositions","Ticks","TicksStyle","TideData","Tilde","TildeEqual","TildeFullEqual","TildeTilde","TimeConstrained","TimeConstraint","TimeDirection","TimeFormat","TimeGoal","TimelinePlot","TimeObject","TimeObjectQ","TimeRemaining","Times","TimesBy","TimeSeries","TimeSeriesAggregate","TimeSeriesForecast","TimeSeriesInsert","TimeSeriesInvertibility","TimeSeriesMap","TimeSeriesMapThread","TimeSeriesModel","TimeSeriesModelFit","TimeSeriesResample","TimeSeriesRescale","TimeSeriesShift","TimeSeriesThread","TimeSeriesWindow","TimeSystem","TimeSystemConvert","TimeUsed","TimeValue","TimeWarpingCorrespondence","TimeWarpingDistance","TimeZone","TimeZoneConvert","TimeZoneOffset","Timing","Tiny","TitleGrouping","TitsGroupT","ToBoxes","ToCharacterCode","ToColor","ToContinuousTimeModel","ToDate","Today","ToDiscreteTimeModel","ToEntity","ToeplitzMatrix","ToExpression","ToFileName","Together","Toggle","ToggleFalse","Toggler","TogglerBar","TogglerBox","TogglerBoxOptions","ToHeldExpression","ToInvertibleTimeSeries","TokenWords","Tolerance","ToLowerCase","Tomorrow","ToNumberField","TooBig","Tooltip","TooltipBox","TooltipBoxOptions","TooltipDelay","TooltipStyle","ToonShading","Top","TopHatTransform","ToPolarCoordinates","TopologicalSort","ToRadicals","ToRawPointer","ToRules","Torus","TorusGraph","ToSphericalCoordinates","ToString","Total","TotalHeight","TotalLayer","TotalVariationFilter","TotalWidth","TouchPosition","TouchscreenAutoZoom","TouchscreenControlPlacement","ToUpperCase","TourVideo","Tr","Trace","TraceAbove","TraceAction","TraceBackward","TraceDepth","TraceDialog","TraceForward","TraceInternal","TraceLevel","TraceOff","TraceOn","TraceOriginal","TracePrint","TraceScan","TrackCellChangeTimes","TrackedSymbols","TrackingFunction","TracyWidomDistribution","TradingChart","TraditionalForm","TraditionalFunctionNotation","TraditionalNotation","TraditionalOrder","TrainImageContentDetector","TrainingProgressCheckpointing","TrainingProgressFunction","TrainingProgressMeasurements","TrainingProgressReporting","TrainingStoppingCriterion","TrainingUpdateSchedule","TrainTextContentDetector","TransferFunctionCancel","TransferFunctionExpand","TransferFunctionFactor","TransferFunctionModel","TransferFunctionPoles","TransferFunctionTransform","TransferFunctionZeros","TransformationClass","TransformationFunction","TransformationFunctions","TransformationMatrix","TransformedDistribution","TransformedField","TransformedProcess","TransformedRegion","TransitionDirection","TransitionDuration","TransitionEffect","TransitiveClosureGraph","TransitiveReductionGraph","Translate","TranslationOptions","TranslationTransform","Transliterate","Transparent","TransparentColor","Transpose","TransposeLayer","TrapEnterKey","TrapSelection","TravelDirections","TravelDirectionsData","TravelDistance","TravelDistanceList","TravelMethod","TravelTime","Tree","TreeCases","TreeChildren","TreeCount","TreeData","TreeDelete","TreeDepth","TreeElementCoordinates","TreeElementLabel","TreeElementLabelFunction","TreeElementLabelStyle","TreeElementShape","TreeElementShapeFunction","TreeElementSize","TreeElementSizeFunction","TreeElementStyle","TreeElementStyleFunction","TreeExpression","TreeExtract","TreeFold","TreeForm","TreeGraph","TreeGraphQ","TreeInsert","TreeLayout","TreeLeafCount","TreeLeafQ","TreeLeaves","TreeLevel","TreeMap","TreeMapAt","TreeOutline","TreePlot","TreePosition","TreeQ","TreeReplacePart","TreeRules","TreeScan","TreeSelect","TreeSize","TreeTraversalOrder","TrendStyle","Triangle","TriangleCenter","TriangleConstruct","TriangleMeasurement","TriangleWave","TriangularDistribution","TriangulateMesh","Trig","TrigExpand","TrigFactor","TrigFactorList","Trigger","TrigReduce","TrigToExp","TrimmedMean","TrimmedVariance","TropicalStormData","True","TrueQ","TruncatedDistribution","TruncatedPolyhedron","TsallisQExponentialDistribution","TsallisQGaussianDistribution","TTest","Tube","TubeBezierCurveBox","TubeBezierCurveBoxOptions","TubeBox","TubeBoxOptions","TubeBSplineCurveBox","TubeBSplineCurveBoxOptions","Tuesday","TukeyLambdaDistribution","TukeyWindow","TunnelData","Tuples","TuranGraph","TuringMachine","TuttePolynomial","TwoWayRule","Typed","TypeDeclaration","TypeEvaluate","TypeHint","TypeOf","TypeSpecifier","UnateQ","Uncompress","UnconstrainedParameters","Undefined","UnderBar","Underflow","Underlined","Underoverscript","UnderoverscriptBox","UnderoverscriptBoxOptions","Underscript","UnderscriptBox","UnderscriptBoxOptions","UnderseaFeatureData","UndirectedEdge","UndirectedGraph","UndirectedGraphQ","UndoOptions","UndoTrackedVariables","Unequal","UnequalTo","Unevaluated","UniformDistribution","UniformGraphDistribution","UniformPolyhedron","UniformSumDistribution","Uninstall","Union","UnionedEntityClass","UnionPlus","Unique","UniqueElements","UnitaryMatrixQ","UnitBox","UnitConvert","UnitDimensions","Unitize","UnitRootTest","UnitSimplify","UnitStep","UnitSystem","UnitTriangle","UnitVector","UnitVectorLayer","UnityDimensions","UniverseModelData","UniversityData","UnixTime","UnlabeledTree","UnmanageObject","Unprotect","UnregisterExternalEvaluator","UnsameQ","UnsavedVariables","Unset","UnsetShared","Until","UntrackedVariables","Up","UpArrow","UpArrowBar","UpArrowDownArrow","Update","UpdateDynamicObjects","UpdateDynamicObjectsSynchronous","UpdateInterval","UpdatePacletSites","UpdateSearchIndex","UpDownArrow","UpEquilibrium","UpperCaseQ","UpperLeftArrow","UpperRightArrow","UpperTriangularize","UpperTriangularMatrix","UpperTriangularMatrixQ","Upsample","UpSet","UpSetDelayed","UpTee","UpTeeArrow","UpTo","UpValues","URL","URLBuild","URLDecode","URLDispatcher","URLDownload","URLDownloadSubmit","URLEncode","URLExecute","URLExpand","URLFetch","URLFetchAsynchronous","URLParse","URLQueryDecode","URLQueryEncode","URLRead","URLResponseTime","URLSave","URLSaveAsynchronous","URLShorten","URLSubmit","UseEmbeddedLibrary","UseGraphicsRange","UserDefinedWavelet","Using","UsingFrontEnd","UtilityFunction","V2Get","ValenceErrorHandling","ValenceFilling","ValidationLength","ValidationSet","ValueBox","ValueBoxOptions","ValueDimensions","ValueForm","ValuePreprocessingFunction","ValueQ","Values","ValuesData","VandermondeMatrix","Variables","Variance","VarianceEquivalenceTest","VarianceEstimatorFunction","VarianceGammaDistribution","VarianceGammaPointProcess","VarianceTest","VariogramFunction","VariogramModel","VectorAngle","VectorAround","VectorAspectRatio","VectorColorFunction","VectorColorFunctionScaling","VectorDensityPlot","VectorDisplacementPlot","VectorDisplacementPlot3D","VectorGlyphData","VectorGreater","VectorGreaterEqual","VectorLess","VectorLessEqual","VectorMarkers","VectorPlot","VectorPlot3D","VectorPoints","VectorQ","VectorRange","Vectors","VectorScale","VectorScaling","VectorSizes","VectorStyle","Vee","Verbatim","Verbose","VerificationTest","VerifyConvergence","VerifyDerivedKey","VerifyDigitalSignature","VerifyFileSignature","VerifyInterpretation","VerifySecurityCertificates","VerifySolutions","VerifyTestAssumptions","VersionedPreferences","VertexAdd","VertexCapacity","VertexChromaticNumber","VertexColors","VertexComponent","VertexConnectivity","VertexContract","VertexCoordinateRules","VertexCoordinates","VertexCorrelationSimilarity","VertexCosineSimilarity","VertexCount","VertexCoverQ","VertexDataCoordinates","VertexDegree","VertexDelete","VertexDiceSimilarity","VertexEccentricity","VertexInComponent","VertexInComponentGraph","VertexInDegree","VertexIndex","VertexJaccardSimilarity","VertexLabeling","VertexLabels","VertexLabelStyle","VertexList","VertexNormals","VertexOutComponent","VertexOutComponentGraph","VertexOutDegree","VertexQ","VertexRenderingFunction","VertexReplace","VertexShape","VertexShapeFunction","VertexSize","VertexStyle","VertexTextureCoordinates","VertexTransitiveGraphQ","VertexWeight","VertexWeightedGraphQ","Vertical","VerticalBar","VerticalForm","VerticalGauge","VerticalSeparator","VerticalSlider","VerticalTilde","Video","VideoCapture","VideoCombine","VideoDelete","VideoEncoding","VideoExtractFrames","VideoFrameList","VideoFrameMap","VideoGenerator","VideoInsert","VideoIntervals","VideoJoin","VideoMap","VideoMapList","VideoMapTimeSeries","VideoPadding","VideoPause","VideoPlay","VideoQ","VideoRecord","VideoReplace","VideoScreenCapture","VideoSplit","VideoStop","VideoStream","VideoStreams","VideoTimeStretch","VideoTrackSelection","VideoTranscode","VideoTransparency","VideoTrim","ViewAngle","ViewCenter","ViewMatrix","ViewPoint","ViewPointSelectorSettings","ViewPort","ViewProjection","ViewRange","ViewVector","ViewVertical","VirtualGroupData","Visible","VisibleCell","VoiceStyleData","VoigtDistribution","VolcanoData","Volume","VonMisesDistribution","VoronoiMesh","WaitAll","WaitAsynchronousTask","WaitNext","WaitUntil","WakebyDistribution","WalleniusHypergeometricDistribution","WaringYuleDistribution","WarpingCorrespondence","WarpingDistance","WatershedComponents","WatsonUSquareTest","WattsStrogatzGraphDistribution","WaveletBestBasis","WaveletFilterCoefficients","WaveletImagePlot","WaveletListPlot","WaveletMapIndexed","WaveletMatrixPlot","WaveletPhi","WaveletPsi","WaveletScale","WaveletScalogram","WaveletThreshold","WavePDEComponent","WeaklyConnectedComponents","WeaklyConnectedGraphComponents","WeaklyConnectedGraphQ","WeakStationarity","WeatherData","WeatherForecastData","WebAudioSearch","WebColumn","WebElementObject","WeberE","WebExecute","WebImage","WebImageSearch","WebItem","WebPageMetaInformation","WebRow","WebSearch","WebSessionObject","WebSessions","WebWindowObject","Wedge","Wednesday","WeibullDistribution","WeierstrassE1","WeierstrassE2","WeierstrassE3","WeierstrassEta1","WeierstrassEta2","WeierstrassEta3","WeierstrassHalfPeriods","WeierstrassHalfPeriodW1","WeierstrassHalfPeriodW2","WeierstrassHalfPeriodW3","WeierstrassInvariantG2","WeierstrassInvariantG3","WeierstrassInvariants","WeierstrassP","WeierstrassPPrime","WeierstrassSigma","WeierstrassZeta","WeightedAdjacencyGraph","WeightedAdjacencyMatrix","WeightedData","WeightedGraphQ","Weights","WelchWindow","WheelGraph","WhenEvent","Which","While","White","WhiteNoiseProcess","WhitePoint","Whitespace","WhitespaceCharacter","WhittakerM","WhittakerW","WholeCellGroupOpener","WienerFilter","WienerProcess","WignerD","WignerSemicircleDistribution","WikidataData","WikidataSearch","WikipediaData","WikipediaSearch","WilksW","WilksWTest","WindDirectionData","WindingCount","WindingPolygon","WindowClickSelect","WindowElements","WindowFloating","WindowFrame","WindowFrameElements","WindowMargins","WindowMovable","WindowOpacity","WindowPersistentStyles","WindowSelected","WindowSize","WindowStatusArea","WindowTitle","WindowToolbars","WindowWidth","WindSpeedData","WindVectorData","WinsorizedMean","WinsorizedVariance","WishartMatrixDistribution","With","WithCleanup","WithLock","WolframAlpha","WolframAlphaDate","WolframAlphaQuantity","WolframAlphaResult","WolframCloudSettings","WolframLanguageData","Word","WordBoundary","WordCharacter","WordCloud","WordCount","WordCounts","WordData","WordDefinition","WordFrequency","WordFrequencyData","WordList","WordOrientation","WordSearch","WordSelectionFunction","WordSeparators","WordSpacings","WordStem","WordTranslation","WorkingPrecision","WrapAround","Write","WriteLine","WriteString","Wronskian","XMLElement","XMLObject","XMLTemplate","Xnor","Xor","XYZColor","Yellow","Yesterday","YuleDissimilarity","ZernikeR","ZeroSymmetric","ZeroTest","ZeroWidthTimes","Zeta","ZetaZero","ZIPCodeData","ZipfDistribution","ZoomCenter","ZoomFactor","ZTest","ZTransform","$Aborted","$ActivationGroupID","$ActivationKey","$ActivationUserRegistered","$AddOnsDirectory","$AllowDataUpdates","$AllowExternalChannelFunctions","$AllowInternet","$AssertFunction","$Assumptions","$AsynchronousTask","$AudioDecoders","$AudioEncoders","$AudioInputDevices","$AudioOutputDevices","$BaseDirectory","$BasePacletsDirectory","$BatchInput","$BatchOutput","$BlockchainBase","$BoxForms","$ByteOrdering","$CacheBaseDirectory","$Canceled","$ChannelBase","$CharacterEncoding","$CharacterEncodings","$CloudAccountName","$CloudBase","$CloudConnected","$CloudConnection","$CloudCreditsAvailable","$CloudEvaluation","$CloudExpressionBase","$CloudObjectNameFormat","$CloudObjectURLType","$CloudRootDirectory","$CloudSymbolBase","$CloudUserID","$CloudUserUUID","$CloudVersion","$CloudVersionNumber","$CloudWolframEngineVersionNumber","$CommandLine","$CompilationTarget","$CompilerEnvironment","$ConditionHold","$ConfiguredKernels","$Context","$ContextAliases","$ContextPath","$ControlActiveSetting","$Cookies","$CookieStore","$CreationDate","$CryptographicEllipticCurveNames","$CurrentLink","$CurrentTask","$CurrentWebSession","$DataStructures","$DateStringFormat","$DefaultAudioInputDevice","$DefaultAudioOutputDevice","$DefaultFont","$DefaultFrontEnd","$DefaultImagingDevice","$DefaultKernels","$DefaultLocalBase","$DefaultLocalKernel","$DefaultMailbox","$DefaultNetworkInterface","$DefaultPath","$DefaultProxyRules","$DefaultRemoteBatchSubmissionEnvironment","$DefaultRemoteKernel","$DefaultSystemCredentialStore","$Display","$DisplayFunction","$DistributedContexts","$DynamicEvaluation","$Echo","$EmbedCodeEnvironments","$EmbeddableServices","$EntityStores","$Epilog","$EvaluationCloudBase","$EvaluationCloudObject","$EvaluationEnvironment","$ExportFormats","$ExternalIdentifierTypes","$ExternalStorageBase","$Failed","$FinancialDataSource","$FontFamilies","$FormatType","$FrontEnd","$FrontEndSession","$GeneratedAssetLocation","$GeoEntityTypes","$GeoLocation","$GeoLocationCity","$GeoLocationCountry","$GeoLocationPrecision","$GeoLocationSource","$HistoryLength","$HomeDirectory","$HTMLExportRules","$HTTPCookies","$HTTPRequest","$IgnoreEOF","$ImageFormattingWidth","$ImageResolution","$ImagingDevice","$ImagingDevices","$ImportFormats","$IncomingMailSettings","$InitialDirectory","$Initialization","$InitializationContexts","$Input","$InputFileName","$InputStreamMethods","$Inspector","$InstallationDate","$InstallationDirectory","$InterfaceEnvironment","$InterpreterTypes","$IterationLimit","$KernelCount","$KernelID","$Language","$LaunchDirectory","$LibraryPath","$LicenseExpirationDate","$LicenseID","$LicenseProcesses","$LicenseServer","$LicenseSubprocesses","$LicenseType","$Line","$Linked","$LinkSupported","$LoadedFiles","$LocalBase","$LocalSymbolBase","$MachineAddresses","$MachineDomain","$MachineDomains","$MachineEpsilon","$MachineID","$MachineName","$MachinePrecision","$MachineType","$MaxDisplayedChildren","$MaxExtraPrecision","$MaxLicenseProcesses","$MaxLicenseSubprocesses","$MaxMachineNumber","$MaxNumber","$MaxPiecewiseCases","$MaxPrecision","$MaxRootDegree","$MessageGroups","$MessageList","$MessagePrePrint","$Messages","$MinMachineNumber","$MinNumber","$MinorReleaseNumber","$MinPrecision","$MobilePhone","$ModuleNumber","$NetworkConnected","$NetworkInterfaces","$NetworkLicense","$NewMessage","$NewSymbol","$NotebookInlineStorageLimit","$Notebooks","$NoValue","$NumberMarks","$Off","$OperatingSystem","$Output","$OutputForms","$OutputSizeLimit","$OutputStreamMethods","$Packages","$ParentLink","$ParentProcessID","$PasswordFile","$PatchLevelID","$Path","$PathnameSeparator","$PerformanceGoal","$Permissions","$PermissionsGroupBase","$PersistenceBase","$PersistencePath","$PipeSupported","$PlotTheme","$Post","$Pre","$PreferencesDirectory","$PreInitialization","$PrePrint","$PreRead","$PrintForms","$PrintLiteral","$Printout3DPreviewer","$ProcessID","$ProcessorCount","$ProcessorType","$ProductInformation","$ProgramName","$ProgressReporting","$PublisherID","$RandomGeneratorState","$RandomState","$RecursionLimit","$RegisteredDeviceClasses","$RegisteredUserName","$ReleaseNumber","$RequesterAddress","$RequesterCloudUserID","$RequesterCloudUserUUID","$RequesterWolframID","$RequesterWolframUUID","$ResourceSystemBase","$ResourceSystemPath","$RootDirectory","$ScheduledTask","$ScriptCommandLine","$ScriptInputString","$SecuredAuthenticationKeyTokens","$ServiceCreditsAvailable","$Services","$SessionID","$SetParentLink","$SharedFunctions","$SharedVariables","$SoundDisplay","$SoundDisplayFunction","$SourceLink","$SSHAuthentication","$SubtitleDecoders","$SubtitleEncoders","$SummaryBoxDataSizeLimit","$SuppressInputFormHeads","$SynchronousEvaluation","$SyntaxHandler","$System","$SystemCharacterEncoding","$SystemCredentialStore","$SystemID","$SystemMemory","$SystemShell","$SystemTimeZone","$SystemWordLength","$TargetSystems","$TemplatePath","$TemporaryDirectory","$TemporaryPrefix","$TestFileName","$TextStyle","$TimedOut","$TimeUnit","$TimeZone","$TimeZoneEntity","$TopDirectory","$TraceOff","$TraceOn","$TracePattern","$TracePostAction","$TracePreAction","$UnitSystem","$Urgent","$UserAddOnsDirectory","$UserAgentLanguages","$UserAgentMachine","$UserAgentName","$UserAgentOperatingSystem","$UserAgentString","$UserAgentVersion","$UserBaseDirectory","$UserBasePacletsDirectory","$UserDocumentsDirectory","$Username","$UserName","$UserURLBase","$Version","$VersionNumber","$VideoDecoders","$VideoEncoders","$VoiceStyles","$WolframDocumentsDirectory","$WolframID","$WolframUUID"];r.exports=function e(t){const n=t.regex,s=n.either(n.concat(/([2-9]|[1-2]\d|[3][0-5])\^\^/,/(\w*\.\w+|\w+\.\w*|\w+)/),/(\d*\.\d+|\d+\.\d*|\d+)/),d=n.either(/``[+-]?(\d*\.\d+|\d+\.\d*|\d+)/,/`([+-]?(\d*\.\d+|\d+\.\d*|\d+))?/),p={className:"number",relevance:0,begin:n.concat(s,n.optional(d),n.optional(/\*\^[+-]?\d+/))},S=/[a-zA-Z$][a-zA-Z0-9$]*/,g=new Set(a),T={variants:[{className:"builtin-symbol",begin:S,"on:begin":(w,D)=>{g.has(w[0])||D.ignoreMatch()}},{className:"symbol",relevance:0,begin:S}]},O={className:"message-name",relevance:0,begin:n.concat("::",S)};return{name:"Mathematica",aliases:["mma","wl"],classNameAliases:{brace:"punctuation",pattern:"type",slot:"type",symbol:"variable","named-character":"variable","builtin-symbol":"built_in","message-name":"string"},contains:[t.COMMENT(/\(\*/,/\*\)/,{contains:["self"]}),{className:"pattern",relevance:0,begin:/([a-zA-Z$][a-zA-Z0-9$]*)?_+([a-zA-Z$][a-zA-Z0-9$]*)?/},{className:"slot",relevance:0,begin:/#[a-zA-Z$][a-zA-Z0-9$]*|#+[0-9]?/},O,T,{className:"named-character",begin:/\\\[[$a-zA-Z][$a-zA-Z0-9]+\]/},t.QUOTE_STRING_MODE,p,{className:"operator",relevance:0,begin:/[+\-*/,;.:@~=><&|_`'^?!%]+/},{className:"brace",relevance:0,begin:/[[\](){}]/}]}}},6035:r=>{r.exports=function a(e){const t="('|\\.')+",n={relevance:0,contains:[{begin:t}]};return{name:"Matlab",keywords:{keyword:"arguments break case catch classdef continue else elseif end enumeration events for function global if methods otherwise parfor persistent properties return spmd switch try while",built_in:"sin sind sinh asin asind asinh cos cosd cosh acos acosd acosh tan tand tanh atan atand atan2 atanh sec secd sech asec asecd asech csc cscd csch acsc acscd acsch cot cotd coth acot acotd acoth hypot exp expm1 log log1p log10 log2 pow2 realpow reallog realsqrt sqrt nthroot nextpow2 abs angle complex conj imag real unwrap isreal cplxpair fix floor ceil round mod rem sign airy besselj bessely besselh besseli besselk beta betainc betaln ellipj ellipke erf erfc erfcx erfinv expint gamma gammainc gammaln psi legendre cross dot factor isprime primes gcd lcm rat rats perms nchoosek factorial cart2sph cart2pol pol2cart sph2cart hsv2rgb rgb2hsv zeros ones eye repmat rand randn linspace logspace freqspace meshgrid accumarray size length ndims numel disp isempty isequal isequalwithequalnans cat reshape diag blkdiag tril triu fliplr flipud flipdim rot90 find sub2ind ind2sub bsxfun ndgrid permute ipermute shiftdim circshift squeeze isscalar isvector ans eps realmax realmin pi i|0 inf nan isnan isinf isfinite j|0 why compan gallery hadamard hankel hilb invhilb magic pascal rosser toeplitz vander wilkinson max min nanmax nanmin mean nanmean type table readtable writetable sortrows sort figure plot plot3 scatter scatter3 cellfun legend intersect ismember procrustes hold num2cell "},illegal:'(//|"|#|/\\*|\\s+/\\w+)',contains:[{className:"function",beginKeywords:"function",end:"$",contains:[e.UNDERSCORE_TITLE_MODE,{className:"params",variants:[{begin:"\\(",end:"\\)"},{begin:"\\[",end:"\\]"}]}]},{className:"built_in",begin:/true|false/,relevance:0,starts:n},{begin:"[a-zA-Z][a-zA-Z_0-9]*"+t,relevance:0},{className:"number",begin:e.C_NUMBER_RE,relevance:0,starts:n},{className:"string",begin:"'",end:"'",contains:[{begin:"''"}]},{begin:/\]|\}|\)/,relevance:0,starts:n},{className:"string",begin:'"',end:'"',contains:[{begin:'""'}],starts:n},e.COMMENT("^\\s*%\\{\\s*$","^\\s*%\\}\\s*$"),e.COMMENT("%","$")]}}},8593:r=>{r.exports=function a(e){return{name:"Maxima",keywords:{$pattern:"[A-Za-z_%][0-9A-Za-z_%]*",keyword:"if then else elseif for thru do while unless step in and or not",literal:"true false unknown inf minf ind und %e %i %pi %phi %gamma",built_in:" abasep abs absint absolute_real_time acos acosh acot acoth acsc acsch activate addcol add_edge add_edges addmatrices addrow add_vertex add_vertices adjacency_matrix adjoin adjoint af agd airy airy_ai airy_bi airy_dai airy_dbi algsys alg_type alias allroots alphacharp alphanumericp amortization %and annuity_fv annuity_pv antid antidiff AntiDifference append appendfile apply apply1 apply2 applyb1 apropos args arit_amortization arithmetic arithsum array arrayapply arrayinfo arraymake arraysetapply ascii asec asech asin asinh askinteger asksign assoc assoc_legendre_p assoc_legendre_q assume assume_external_byte_order asympa at atan atan2 atanh atensimp atom atvalue augcoefmatrix augmented_lagrangian_method av average_degree backtrace bars barsplot barsplot_description base64 base64_decode bashindices batch batchload bc2 bdvac belln benefit_cost bern bernpoly bernstein_approx bernstein_expand bernstein_poly bessel bessel_i bessel_j bessel_k bessel_simplify bessel_y beta beta_incomplete beta_incomplete_generalized beta_incomplete_regularized bezout bfallroots bffac bf_find_root bf_fmin_cobyla bfhzeta bfloat bfloatp bfpsi bfpsi0 bfzeta biconnected_components bimetric binomial bipartition block blockmatrixp bode_gain bode_phase bothcoef box boxplot boxplot_description break bug_report build_info|10 buildq build_sample burn cabs canform canten cardinality carg cartan cartesian_product catch cauchy_matrix cbffac cdf_bernoulli cdf_beta cdf_binomial cdf_cauchy cdf_chi2 cdf_continuous_uniform cdf_discrete_uniform cdf_exp cdf_f cdf_gamma cdf_general_finite_discrete cdf_geometric cdf_gumbel cdf_hypergeometric cdf_laplace cdf_logistic cdf_lognormal cdf_negative_binomial cdf_noncentral_chi2 cdf_noncentral_student_t cdf_normal cdf_pareto cdf_poisson cdf_rank_sum cdf_rayleigh cdf_signed_rank cdf_student_t cdf_weibull cdisplay ceiling central_moment cequal cequalignore cf cfdisrep cfexpand cgeodesic cgreaterp cgreaterpignore changename changevar chaosgame charat charfun charfun2 charlist charp charpoly chdir chebyshev_t chebyshev_u checkdiv check_overlaps chinese cholesky christof chromatic_index chromatic_number cint circulant_graph clear_edge_weight clear_rules clear_vertex_label clebsch_gordan clebsch_graph clessp clesspignore close closefile cmetric coeff coefmatrix cograd col collapse collectterms columnop columnspace columnswap columnvector combination combine comp2pui compare compfile compile compile_file complement_graph complete_bipartite_graph complete_graph complex_number_p components compose_functions concan concat conjugate conmetderiv connected_components connect_vertices cons constant constantp constituent constvalue cont2part content continuous_freq contortion contour_plot contract contract_edge contragrad contrib_ode convert coord copy copy_file copy_graph copylist copymatrix cor cos cosh cot coth cov cov1 covdiff covect covers crc24sum create_graph create_list csc csch csetup cspline ctaylor ct_coordsys ctransform ctranspose cube_graph cuboctahedron_graph cunlisp cv cycle_digraph cycle_graph cylindrical days360 dblint deactivate declare declare_constvalue declare_dimensions declare_fundamental_dimensions declare_fundamental_units declare_qty declare_translated declare_unit_conversion declare_units declare_weights decsym defcon define define_alt_display define_variable defint defmatch defrule defstruct deftaylor degree_sequence del delete deleten delta demo demoivre denom depends derivdegree derivlist describe desolve determinant dfloat dgauss_a dgauss_b dgeev dgemm dgeqrf dgesv dgesvd diag diagmatrix diag_matrix diagmatrixp diameter diff digitcharp dimacs_export dimacs_import dimension dimensionless dimensions dimensions_as_list direct directory discrete_freq disjoin disjointp disolate disp dispcon dispform dispfun dispJordan display disprule dispterms distrib divide divisors divsum dkummer_m dkummer_u dlange dodecahedron_graph dotproduct dotsimp dpart draw draw2d draw3d drawdf draw_file draw_graph dscalar echelon edge_coloring edge_connectivity edges eigens_by_jacobi eigenvalues eigenvectors eighth einstein eivals eivects elapsed_real_time elapsed_run_time ele2comp ele2polynome ele2pui elem elementp elevation_grid elim elim_allbut eliminate eliminate_using ellipse elliptic_e elliptic_ec elliptic_eu elliptic_f elliptic_kc elliptic_pi ematrix empty_graph emptyp endcons entermatrix entertensor entier equal equalp equiv_classes erf erfc erf_generalized erfi errcatch error errormsg errors euler ev eval_string evenp every evolution evolution2d evundiff example exp expand expandwrt expandwrt_factored expint expintegral_chi expintegral_ci expintegral_e expintegral_e1 expintegral_ei expintegral_e_simplify expintegral_li expintegral_shi expintegral_si explicit explose exponentialize express expt exsec extdiff extract_linear_equations extremal_subset ezgcd %f f90 facsum factcomb factor factorfacsum factorial factorout factorsum facts fast_central_elements fast_linsolve fasttimes featurep fernfale fft fib fibtophi fifth filename_merge file_search file_type fillarray findde find_root find_root_abs find_root_error find_root_rel first fix flatten flength float floatnump floor flower_snark flush flush1deriv flushd flushnd flush_output fmin_cobyla forget fortran fourcos fourexpand fourier fourier_elim fourint fourintcos fourintsin foursimp foursin fourth fposition frame_bracket freeof freshline fresnel_c fresnel_s from_adjacency_matrix frucht_graph full_listify fullmap fullmapl fullratsimp fullratsubst fullsetify funcsolve fundamental_dimensions fundamental_units fundef funmake funp fv g0 g1 gamma gamma_greek gamma_incomplete gamma_incomplete_generalized gamma_incomplete_regularized gauss gauss_a gauss_b gaussprob gcd gcdex gcdivide gcfac gcfactor gd generalized_lambert_w genfact gen_laguerre genmatrix gensym geo_amortization geo_annuity_fv geo_annuity_pv geomap geometric geometric_mean geosum get getcurrentdirectory get_edge_weight getenv get_lu_factors get_output_stream_string get_pixel get_plot_option get_tex_environment get_tex_environment_default get_vertex_label gfactor gfactorsum ggf girth global_variances gn gnuplot_close gnuplot_replot gnuplot_reset gnuplot_restart gnuplot_start go Gosper GosperSum gr2d gr3d gradef gramschmidt graph6_decode graph6_encode graph6_export graph6_import graph_center graph_charpoly graph_eigenvalues graph_flow graph_order graph_periphery graph_product graph_size graph_union great_rhombicosidodecahedron_graph great_rhombicuboctahedron_graph grid_graph grind grobner_basis grotzch_graph hamilton_cycle hamilton_path hankel hankel_1 hankel_2 harmonic harmonic_mean hav heawood_graph hermite hessian hgfred hilbertmap hilbert_matrix hipow histogram histogram_description hodge horner hypergeometric i0 i1 %ibes ic1 ic2 ic_convert ichr1 ichr2 icosahedron_graph icosidodecahedron_graph icurvature ident identfor identity idiff idim idummy ieqn %if ifactors iframes ifs igcdex igeodesic_coords ilt image imagpart imetric implicit implicit_derivative implicit_plot indexed_tensor indices induced_subgraph inferencep inference_result infix info_display init_atensor init_ctensor in_neighbors innerproduct inpart inprod inrt integerp integer_partitions integrate intersect intersection intervalp intopois intosum invariant1 invariant2 inverse_fft inverse_jacobi_cd inverse_jacobi_cn inverse_jacobi_cs inverse_jacobi_dc inverse_jacobi_dn inverse_jacobi_ds inverse_jacobi_nc inverse_jacobi_nd inverse_jacobi_ns inverse_jacobi_sc inverse_jacobi_sd inverse_jacobi_sn invert invert_by_adjoint invert_by_lu inv_mod irr is is_biconnected is_bipartite is_connected is_digraph is_edge_in_graph is_graph is_graph_or_digraph ishow is_isomorphic isolate isomorphism is_planar isqrt isreal_p is_sconnected is_tree is_vertex_in_graph items_inference %j j0 j1 jacobi jacobian jacobi_cd jacobi_cn jacobi_cs jacobi_dc jacobi_dn jacobi_ds jacobi_nc jacobi_nd jacobi_ns jacobi_p jacobi_sc jacobi_sd jacobi_sn JF jn join jordan julia julia_set julia_sin %k kdels kdelta kill killcontext kostka kron_delta kronecker_product kummer_m kummer_u kurtosis kurtosis_bernoulli kurtosis_beta kurtosis_binomial kurtosis_chi2 kurtosis_continuous_uniform kurtosis_discrete_uniform kurtosis_exp kurtosis_f kurtosis_gamma kurtosis_general_finite_discrete kurtosis_geometric kurtosis_gumbel kurtosis_hypergeometric kurtosis_laplace kurtosis_logistic kurtosis_lognormal kurtosis_negative_binomial kurtosis_noncentral_chi2 kurtosis_noncentral_student_t kurtosis_normal kurtosis_pareto kurtosis_poisson kurtosis_rayleigh kurtosis_student_t kurtosis_weibull label labels lagrange laguerre lambda lambert_w laplace laplacian_matrix last lbfgs lc2kdt lcharp lc_l lcm lc_u ldefint ldisp ldisplay legendre_p legendre_q leinstein length let letrules letsimp levi_civita lfreeof lgtreillis lhs li liediff limit Lindstedt linear linearinterpol linear_program linear_regression line_graph linsolve listarray list_correlations listify list_matrix_entries list_nc_monomials listoftens listofvars listp lmax lmin load loadfile local locate_matrix_entry log logcontract log_gamma lopow lorentz_gauge lowercasep lpart lratsubst lreduce lriemann lsquares_estimates lsquares_estimates_approximate lsquares_estimates_exact lsquares_mse lsquares_residual_mse lsquares_residuals lsum ltreillis lu_backsub lucas lu_factor %m macroexpand macroexpand1 make_array makebox makefact makegamma make_graph make_level_picture makelist makeOrders make_poly_continent make_poly_country make_polygon make_random_state make_rgb_picture makeset make_string_input_stream make_string_output_stream make_transform mandelbrot mandelbrot_set map mapatom maplist matchdeclare matchfix mat_cond mat_fullunblocker mat_function mathml_display mat_norm matrix matrixmap matrixp matrix_size mattrace mat_trace mat_unblocker max max_clique max_degree max_flow maximize_lp max_independent_set max_matching maybe md5sum mean mean_bernoulli mean_beta mean_binomial mean_chi2 mean_continuous_uniform mean_deviation mean_discrete_uniform mean_exp mean_f mean_gamma mean_general_finite_discrete mean_geometric mean_gumbel mean_hypergeometric mean_laplace mean_logistic mean_lognormal mean_negative_binomial mean_noncentral_chi2 mean_noncentral_student_t mean_normal mean_pareto mean_poisson mean_rayleigh mean_student_t mean_weibull median median_deviation member mesh metricexpandall mgf1_sha1 min min_degree min_edge_cut minfactorial minimalPoly minimize_lp minimum_spanning_tree minor minpack_lsquares minpack_solve min_vertex_cover min_vertex_cut mkdir mnewton mod mode_declare mode_identity ModeMatrix moebius mon2schur mono monomial_dimensions multibernstein_poly multi_display_for_texinfo multi_elem multinomial multinomial_coeff multi_orbit multiplot_mode multi_pui multsym multthru mycielski_graph nary natural_unit nc_degree ncexpt ncharpoly negative_picture neighbors new newcontext newdet new_graph newline newton new_variable next_prime nicedummies niceindices ninth nofix nonarray noncentral_moment nonmetricity nonnegintegerp nonscalarp nonzeroandfreeof notequal nounify nptetrad npv nroots nterms ntermst nthroot nullity nullspace num numbered_boundaries numberp number_to_octets num_distinct_partitions numerval numfactor num_partitions nusum nzeta nzetai nzetar octets_to_number octets_to_oid odd_girth oddp ode2 ode_check odelin oid_to_octets op opena opena_binary openr openr_binary openw openw_binary operatorp opsubst optimize %or orbit orbits ordergreat ordergreatp orderless orderlessp orthogonal_complement orthopoly_recur orthopoly_weight outermap out_neighbors outofpois pade parabolic_cylinder_d parametric parametric_surface parg parGosper parse_string parse_timedate part part2cont partfrac partition partition_set partpol path_digraph path_graph pathname_directory pathname_name pathname_type pdf_bernoulli pdf_beta pdf_binomial pdf_cauchy pdf_chi2 pdf_continuous_uniform pdf_discrete_uniform pdf_exp pdf_f pdf_gamma pdf_general_finite_discrete pdf_geometric pdf_gumbel pdf_hypergeometric pdf_laplace pdf_logistic pdf_lognormal pdf_negative_binomial pdf_noncentral_chi2 pdf_noncentral_student_t pdf_normal pdf_pareto pdf_poisson pdf_rank_sum pdf_rayleigh pdf_signed_rank pdf_student_t pdf_weibull pearson_skewness permanent permut permutation permutations petersen_graph petrov pickapart picture_equalp picturep piechart piechart_description planar_embedding playback plog plot2d plot3d plotdf ploteq plsquares pochhammer points poisdiff poisexpt poisint poismap poisplus poissimp poissubst poistimes poistrim polar polarform polartorect polar_to_xy poly_add poly_buchberger poly_buchberger_criterion poly_colon_ideal poly_content polydecomp poly_depends_p poly_elimination_ideal poly_exact_divide poly_expand poly_expt poly_gcd polygon poly_grobner poly_grobner_equal poly_grobner_member poly_grobner_subsetp poly_ideal_intersection poly_ideal_polysaturation poly_ideal_polysaturation1 poly_ideal_saturation poly_ideal_saturation1 poly_lcm poly_minimization polymod poly_multiply polynome2ele polynomialp poly_normal_form poly_normalize poly_normalize_list poly_polysaturation_extension poly_primitive_part poly_pseudo_divide poly_reduced_grobner poly_reduction poly_saturation_extension poly_s_polynomial poly_subtract polytocompanion pop postfix potential power_mod powerseries powerset prefix prev_prime primep primes principal_components print printf printfile print_graph printpois printprops prodrac product properties propvars psi psubst ptriangularize pui pui2comp pui2ele pui2polynome pui_direct puireduc push put pv qput qrange qty quad_control quad_qag quad_qagi quad_qagp quad_qags quad_qawc quad_qawf quad_qawo quad_qaws quadrilateral quantile quantile_bernoulli quantile_beta quantile_binomial quantile_cauchy quantile_chi2 quantile_continuous_uniform quantile_discrete_uniform quantile_exp quantile_f quantile_gamma quantile_general_finite_discrete quantile_geometric quantile_gumbel quantile_hypergeometric quantile_laplace quantile_logistic quantile_lognormal quantile_negative_binomial quantile_noncentral_chi2 quantile_noncentral_student_t quantile_normal quantile_pareto quantile_poisson quantile_rayleigh quantile_student_t quantile_weibull quartile_skewness quit qunit quotient racah_v racah_w radcan radius random random_bernoulli random_beta random_binomial random_bipartite_graph random_cauchy random_chi2 random_continuous_uniform random_digraph random_discrete_uniform random_exp random_f random_gamma random_general_finite_discrete random_geometric random_graph random_graph1 random_gumbel random_hypergeometric random_laplace random_logistic random_lognormal random_negative_binomial random_network random_noncentral_chi2 random_noncentral_student_t random_normal random_pareto random_permutation random_poisson random_rayleigh random_regular_graph random_student_t random_tournament random_tree random_weibull range rank rat ratcoef ratdenom ratdiff ratdisrep ratexpand ratinterpol rational rationalize ratnumer ratnump ratp ratsimp ratsubst ratvars ratweight read read_array read_binary_array read_binary_list read_binary_matrix readbyte readchar read_hashed_array readline read_list read_matrix read_nested_list readonly read_xpm real_imagpart_to_conjugate realpart realroots rearray rectangle rectform rectform_log_if_constant recttopolar rediff reduce_consts reduce_order region region_boundaries region_boundaries_plus rem remainder remarray rembox remcomps remcon remcoord remfun remfunction remlet remove remove_constvalue remove_dimensions remove_edge remove_fundamental_dimensions remove_fundamental_units remove_plot_option remove_vertex rempart remrule remsym remvalue rename rename_file reset reset_displays residue resolvante resolvante_alternee1 resolvante_bipartite resolvante_diedrale resolvante_klein resolvante_klein3 resolvante_produit_sym resolvante_unitaire resolvante_vierer rest resultant return reveal reverse revert revert2 rgb2level rhs ricci riemann rinvariant risch rk rmdir rncombine romberg room rootscontract round row rowop rowswap rreduce run_testsuite %s save saving scalarp scaled_bessel_i scaled_bessel_i0 scaled_bessel_i1 scalefactors scanmap scatterplot scatterplot_description scene schur2comp sconcat scopy scsimp scurvature sdowncase sec sech second sequal sequalignore set_alt_display setdifference set_draw_defaults set_edge_weight setelmx setequalp setify setp set_partitions set_plot_option set_prompt set_random_state set_tex_environment set_tex_environment_default setunits setup_autoload set_up_dot_simplifications set_vertex_label seventh sexplode sf sha1sum sha256sum shortest_path shortest_weighted_path show showcomps showratvars sierpinskiale sierpinskimap sign signum similaritytransform simp_inequality simplify_sum simplode simpmetderiv simtran sin sinh sinsert sinvertcase sixth skewness skewness_bernoulli skewness_beta skewness_binomial skewness_chi2 skewness_continuous_uniform skewness_discrete_uniform skewness_exp skewness_f skewness_gamma skewness_general_finite_discrete skewness_geometric skewness_gumbel skewness_hypergeometric skewness_laplace skewness_logistic skewness_lognormal skewness_negative_binomial skewness_noncentral_chi2 skewness_noncentral_student_t skewness_normal skewness_pareto skewness_poisson skewness_rayleigh skewness_student_t skewness_weibull slength smake small_rhombicosidodecahedron_graph small_rhombicuboctahedron_graph smax smin smismatch snowmap snub_cube_graph snub_dodecahedron_graph solve solve_rec solve_rec_rat some somrac sort sparse6_decode sparse6_encode sparse6_export sparse6_import specint spherical spherical_bessel_j spherical_bessel_y spherical_hankel1 spherical_hankel2 spherical_harmonic spherical_to_xyz splice split sposition sprint sqfr sqrt sqrtdenest sremove sremovefirst sreverse ssearch ssort sstatus ssubst ssubstfirst staircase standardize standardize_inverse_trig starplot starplot_description status std std1 std_bernoulli std_beta std_binomial std_chi2 std_continuous_uniform std_discrete_uniform std_exp std_f std_gamma std_general_finite_discrete std_geometric std_gumbel std_hypergeometric std_laplace std_logistic std_lognormal std_negative_binomial std_noncentral_chi2 std_noncentral_student_t std_normal std_pareto std_poisson std_rayleigh std_student_t std_weibull stemplot stirling stirling1 stirling2 strim striml strimr string stringout stringp strong_components struve_h struve_l sublis sublist sublist_indices submatrix subsample subset subsetp subst substinpart subst_parallel substpart substring subvar subvarp sum sumcontract summand_to_rec supcase supcontext symbolp symmdifference symmetricp system take_channel take_inference tan tanh taylor taylorinfo taylorp taylor_simplifier taytorat tcl_output tcontract tellrat tellsimp tellsimpafter tentex tenth test_mean test_means_difference test_normality test_proportion test_proportions_difference test_rank_sum test_sign test_signed_rank test_variance test_variance_ratio tex tex1 tex_display texput %th third throw time timedate timer timer_info tldefint tlimit todd_coxeter toeplitz tokens to_lisp topological_sort to_poly to_poly_solve totaldisrep totalfourier totient tpartpol trace tracematrix trace_options transform_sample translate translate_file transpose treefale tree_reduce treillis treinat triangle triangularize trigexpand trigrat trigreduce trigsimp trunc truncate truncated_cube_graph truncated_dodecahedron_graph truncated_icosahedron_graph truncated_tetrahedron_graph tr_warnings_get tube tutte_graph ueivects uforget ultraspherical underlying_graph undiff union unique uniteigenvectors unitp units unit_step unitvector unorder unsum untellrat untimer untrace uppercasep uricci uriemann uvect vandermonde_matrix var var1 var_bernoulli var_beta var_binomial var_chi2 var_continuous_uniform var_discrete_uniform var_exp var_f var_gamma var_general_finite_discrete var_geometric var_gumbel var_hypergeometric var_laplace var_logistic var_lognormal var_negative_binomial var_noncentral_chi2 var_noncentral_student_t var_normal var_pareto var_poisson var_rayleigh var_student_t var_weibull vector vectorpotential vectorsimp verbify vers vertex_coloring vertex_connectivity vertex_degree vertex_distance vertex_eccentricity vertex_in_degree vertex_out_degree vertices vertices_to_cycle vertices_to_path %w weyl wheel_graph wiener_index wigner_3j wigner_6j wigner_9j with_stdout write_binary_data writebyte write_data writefile wronskian xreduce xthru %y Zeilberger zeroequiv zerofor zeromatrix zeromatrixp zeta zgeev zheev zlange zn_add_table zn_carmichael_lambda zn_characteristic_factors zn_determinant zn_factor_generators zn_invert_by_lu zn_log zn_mult_table absboxchar activecontexts adapt_depth additive adim aform algebraic algepsilon algexact aliases allbut all_dotsimp_denoms allocation allsym alphabetic animation antisymmetric arrays askexp assume_pos assume_pos_pred assumescalar asymbol atomgrad atrig1 axes axis_3d axis_bottom axis_left axis_right axis_top azimuth background background_color backsubst berlefact bernstein_explicit besselexpand beta_args_sum_to_integer beta_expand bftorat bftrunc bindtest border boundaries_array box boxchar breakup %c capping cauchysum cbrange cbtics center cflength cframe_flag cnonmet_flag color color_bar color_bar_tics colorbox columns commutative complex cone context contexts contour contour_levels cosnpiflag ctaypov ctaypt ctayswitch ctayvar ct_coords ctorsion_flag ctrgsimp cube current_let_rule_package cylinder data_file_name debugmode decreasing default_let_rule_package delay dependencies derivabbrev derivsubst detout diagmetric diff dim dimensions dispflag display2d|10 display_format_internal distribute_over doallmxops domain domxexpt domxmxops domxnctimes dontfactor doscmxops doscmxplus dot0nscsimp dot0simp dot1simp dotassoc dotconstrules dotdistrib dotexptsimp dotident dotscrules draw_graph_program draw_realpart edge_color edge_coloring edge_partition edge_type edge_width %edispflag elevation %emode endphi endtheta engineering_format_floats enhanced3d %enumer epsilon_lp erfflag erf_representation errormsg error_size error_syms error_type %e_to_numlog eval even evenfun evflag evfun ev_point expandwrt_denom expintexpand expintrep expon expop exptdispflag exptisolate exptsubst facexpand facsum_combine factlim factorflag factorial_expand factors_only fb feature features file_name file_output_append file_search_demo file_search_lisp file_search_maxima|10 file_search_tests file_search_usage file_type_lisp file_type_maxima|10 fill_color fill_density filled_func fixed_vertices flipflag float2bf font font_size fortindent fortspaces fpprec fpprintprec functions gamma_expand gammalim gdet genindex gensumnum GGFCFMAX GGFINFINITY globalsolve gnuplot_command gnuplot_curve_styles gnuplot_curve_titles gnuplot_default_term_command gnuplot_dumb_term_command gnuplot_file_args gnuplot_file_name gnuplot_out_file gnuplot_pdf_term_command gnuplot_pm3d gnuplot_png_term_command gnuplot_postamble gnuplot_preamble gnuplot_ps_term_command gnuplot_svg_term_command gnuplot_term gnuplot_view_args Gosper_in_Zeilberger gradefs grid grid2d grind halfangles head_angle head_both head_length head_type height hypergeometric_representation %iargs ibase icc1 icc2 icounter idummyx ieqnprint ifb ifc1 ifc2 ifg ifgi ifr iframe_bracket_form ifri igeowedge_flag ikt1 ikt2 imaginary inchar increasing infeval infinity inflag infolists inm inmc1 inmc2 intanalysis integer integervalued integrate_use_rootsof integration_constant integration_constant_counter interpolate_color intfaclim ip_grid ip_grid_in irrational isolate_wrt_times iterations itr julia_parameter %k1 %k2 keepfloat key key_pos kinvariant kt label label_alignment label_orientation labels lassociative lbfgs_ncorrections lbfgs_nfeval_max leftjust legend letrat let_rule_packages lfg lg lhospitallim limsubst linear linear_solver linechar linel|10 linenum line_type linewidth line_width linsolve_params linsolvewarn lispdisp listarith listconstvars listdummyvars lmxchar load_pathname loadprint logabs logarc logcb logconcoeffp logexpand lognegint logsimp logx logx_secondary logy logy_secondary logz lriem m1pbranch macroexpansion macros mainvar manual_demo maperror mapprint matrix_element_add matrix_element_mult matrix_element_transpose maxapplydepth maxapplyheight maxima_tempdir|10 maxima_userdir|10 maxnegex MAX_ORD maxposex maxpsifracdenom maxpsifracnum maxpsinegint maxpsiposint maxtayorder mesh_lines_color method mod_big_prime mode_check_errorp mode_checkp mode_check_warnp mod_test mod_threshold modular_linear_solver modulus multiplicative multiplicities myoptions nary negdistrib negsumdispflag newline newtonepsilon newtonmaxiter nextlayerfactor niceindicespref nm nmc noeval nolabels nonegative_lp noninteger nonscalar noun noundisp nouns np npi nticks ntrig numer numer_pbranch obase odd oddfun opacity opproperties opsubst optimprefix optionset orientation origin orthopoly_returns_intervals outative outchar packagefile palette partswitch pdf_file pfeformat phiresolution %piargs piece pivot_count_sx pivot_max_sx plot_format plot_options plot_realpart png_file pochhammer_max_index points pointsize point_size points_joined point_type poislim poisson poly_coefficient_ring poly_elimination_order polyfactor poly_grobner_algorithm poly_grobner_debug poly_monomial_order poly_primary_elimination_order poly_return_term_list poly_secondary_elimination_order poly_top_reduction_only posfun position powerdisp pred prederror primep_number_of_tests product_use_gamma program programmode promote_float_to_bigfloat prompt proportional_axes props psexpand ps_file radexpand radius radsubstflag rassociative ratalgdenom ratchristof ratdenomdivide rateinstein ratepsilon ratfac rational ratmx ratprint ratriemann ratsimpexpons ratvarswitch ratweights ratweyl ratwtlvl real realonly redraw refcheck resolution restart resultant ric riem rmxchar %rnum_list rombergabs rombergit rombergmin rombergtol rootsconmode rootsepsilon run_viewer same_xy same_xyz savedef savefactors scalar scalarmatrixp scale scale_lp setcheck setcheckbreak setval show_edge_color show_edges show_edge_type show_edge_width show_id show_label showtime show_vertex_color show_vertex_size show_vertex_type show_vertices show_weight simp simplified_output simplify_products simpproduct simpsum sinnpiflag solvedecomposes solveexplicit solvefactors solvenullwarn solveradcan solvetrigwarn space sparse sphere spring_embedding_depth sqrtdispflag stardisp startphi starttheta stats_numer stringdisp structures style sublis_apply_lambda subnumsimp sumexpand sumsplitfact surface surface_hide svg_file symmetric tab taylordepth taylor_logexpand taylor_order_coefficients taylor_truncate_polynomials tensorkill terminal testsuite_files thetaresolution timer_devalue title tlimswitch tr track transcompile transform transform_xy translate_fast_arrays transparent transrun tr_array_as_ref tr_bound_function_applyp tr_file_tty_messagesp tr_float_can_branch_complex tr_function_call_default trigexpandplus trigexpandtimes triginverses trigsign trivial_solutions tr_numer tr_optimize_max_loop tr_semicompile tr_state_vars tr_warn_bad_function_calls tr_warn_fexpr tr_warn_meval tr_warn_mode tr_warn_undeclared tr_warn_undefined_variable tstep ttyoff tube_extremes ufg ug %unitexpand unit_vectors uric uriem use_fast_arrays user_preamble usersetunits values vect_cross verbose vertex_color vertex_coloring vertex_partition vertex_size vertex_type view warnings weyl width windowname windowtitle wired_surface wireframe xaxis xaxis_color xaxis_secondary xaxis_type xaxis_width xlabel xlabel_secondary xlength xrange xrange_secondary xtics xtics_axis xtics_rotate xtics_rotate_secondary xtics_secondary xtics_secondary_axis xu_grid x_voxel xy_file xyplane xy_scale yaxis yaxis_color yaxis_secondary yaxis_type yaxis_width ylabel ylabel_secondary ylength yrange yrange_secondary ytics ytics_axis ytics_rotate ytics_rotate_secondary ytics_secondary ytics_secondary_axis yv_grid y_voxel yx_ratio zaxis zaxis_color zaxis_type zaxis_width zeroa zerob zerobern zeta%pi zlabel zlabel_rotate zlength zmin zn_primroot_limit zn_primroot_pretest",symbol:"_ __ %|0 %%|0"},contains:[{className:"comment",begin:"/\\*",end:"\\*/",contains:["self"]},e.QUOTE_STRING_MODE,{className:"number",relevance:0,variants:[{begin:"\\b(\\d+|\\d+\\.|\\.\\d+|\\d+\\.\\d+)[Ee][-+]?\\d+\\b"},{begin:"\\b(\\d+|\\d+\\.|\\.\\d+|\\d+\\.\\d+)[Bb][-+]?\\d+\\b",relevance:10},{begin:"\\b(\\.\\d+|\\d+\\.\\d+)\\b"},{begin:"\\b(\\d+|0[0-9A-Za-z]+)\\.?\\b"}]}],illegal:/@/}}},5673:r=>{r.exports=function a(e){return{name:"MEL",keywords:"int float string vector matrix if else switch case default while do for in break continue global proc return about abs addAttr addAttributeEditorNodeHelp addDynamic addNewShelfTab addPP addPanelCategory addPrefixToName advanceToNextDrivenKey affectedNet affects aimConstraint air alias aliasAttr align alignCtx alignCurve alignSurface allViewFit ambientLight angle angleBetween animCone animCurveEditor animDisplay animView annotate appendStringArray applicationName applyAttrPreset applyTake arcLenDimContext arcLengthDimension arclen arrayMapper art3dPaintCtx artAttrCtx artAttrPaintVertexCtx artAttrSkinPaintCtx artAttrTool artBuildPaintMenu artFluidAttrCtx artPuttyCtx artSelectCtx artSetPaintCtx artUserPaintCtx assignCommand assignInputDevice assignViewportFactories attachCurve attachDeviceAttr attachSurface attrColorSliderGrp attrCompatibility attrControlGrp attrEnumOptionMenu attrEnumOptionMenuGrp attrFieldGrp attrFieldSliderGrp attrNavigationControlGrp attrPresetEditWin attributeExists attributeInfo attributeMenu attributeQuery autoKeyframe autoPlace bakeClip bakeFluidShading bakePartialHistory bakeResults bakeSimulation basename basenameEx batchRender bessel bevel bevelPlus binMembership bindSkin blend2 blendShape blendShapeEditor blendShapePanel blendTwoAttr blindDataType boneLattice boundary boxDollyCtx boxZoomCtx bufferCurve buildBookmarkMenu buildKeyframeMenu button buttonManip CBG cacheFile cacheFileCombine cacheFileMerge cacheFileTrack camera cameraView canCreateManip canvas capitalizeString catch catchQuiet ceil changeSubdivComponentDisplayLevel changeSubdivRegion channelBox character characterMap characterOutlineEditor characterize chdir checkBox checkBoxGrp checkDefaultRenderGlobals choice circle circularFillet clamp clear clearCache clip clipEditor clipEditorCurrentTimeCtx clipSchedule clipSchedulerOutliner clipTrimBefore closeCurve closeSurface cluster cmdFileOutput cmdScrollFieldExecuter cmdScrollFieldReporter cmdShell coarsenSubdivSelectionList collision color colorAtPoint colorEditor colorIndex colorIndexSliderGrp colorSliderButtonGrp colorSliderGrp columnLayout commandEcho commandLine commandPort compactHairSystem componentEditor compositingInterop computePolysetVolume condition cone confirmDialog connectAttr connectControl connectDynamic connectJoint connectionInfo constrain constrainValue constructionHistory container containsMultibyte contextInfo control convertFromOldLayers convertIffToPsd convertLightmap convertSolidTx convertTessellation convertUnit copyArray copyFlexor copyKey copySkinWeights cos cpButton cpCache cpClothSet cpCollision cpConstraint cpConvClothToMesh cpForces cpGetSolverAttr cpPanel cpProperty cpRigidCollisionFilter cpSeam cpSetEdit cpSetSolverAttr cpSolver cpSolverTypes cpTool cpUpdateClothUVs createDisplayLayer createDrawCtx createEditor createLayeredPsdFile createMotionField createNewShelf createNode createRenderLayer createSubdivRegion cross crossProduct ctxAbort ctxCompletion ctxEditMode ctxTraverse currentCtx currentTime currentTimeCtx currentUnit curve curveAddPtCtx curveCVCtx curveEPCtx curveEditorCtx curveIntersect curveMoveEPCtx curveOnSurface curveSketchCtx cutKey cycleCheck cylinder dagPose date defaultLightListCheckBox defaultNavigation defineDataServer defineVirtualDevice deformer deg_to_rad delete deleteAttr deleteShadingGroupsAndMaterials deleteShelfTab deleteUI deleteUnusedBrushes delrandstr detachCurve detachDeviceAttr detachSurface deviceEditor devicePanel dgInfo dgdirty dgeval dgtimer dimWhen directKeyCtx directionalLight dirmap dirname disable disconnectAttr disconnectJoint diskCache displacementToPoly displayAffected displayColor displayCull displayLevelOfDetail displayPref displayRGBColor displaySmoothness displayStats displayString displaySurface distanceDimContext distanceDimension doBlur dolly dollyCtx dopeSheetEditor dot dotProduct doubleProfileBirailSurface drag dragAttrContext draggerContext dropoffLocator duplicate duplicateCurve duplicateSurface dynCache dynControl dynExport dynExpression dynGlobals dynPaintEditor dynParticleCtx dynPref dynRelEdPanel dynRelEditor dynamicLoad editAttrLimits editDisplayLayerGlobals editDisplayLayerMembers editRenderLayerAdjustment editRenderLayerGlobals editRenderLayerMembers editor editorTemplate effector emit emitter enableDevice encodeString endString endsWith env equivalent equivalentTol erf error eval evalDeferred evalEcho event exactWorldBoundingBox exclusiveLightCheckBox exec executeForEachObject exists exp expression expressionEditorListen extendCurve extendSurface extrude fcheck fclose feof fflush fgetline fgetword file fileBrowserDialog fileDialog fileExtension fileInfo filetest filletCurve filter filterCurve filterExpand filterStudioImport findAllIntersections findAnimCurves findKeyframe findMenuItem findRelatedSkinCluster finder firstParentOf fitBspline flexor floatEq floatField floatFieldGrp floatScrollBar floatSlider floatSlider2 floatSliderButtonGrp floatSliderGrp floor flow fluidCacheInfo fluidEmitter fluidVoxelInfo flushUndo fmod fontDialog fopen formLayout format fprint frameLayout fread freeFormFillet frewind fromNativePath fwrite gamma gauss geometryConstraint getApplicationVersionAsFloat getAttr getClassification getDefaultBrush getFileList getFluidAttr getInputDeviceRange getMayaPanelTypes getModifiers getPanel getParticleAttr getPluginResource getenv getpid glRender glRenderEditor globalStitch gmatch goal gotoBindPose grabColor gradientControl gradientControlNoAttr graphDollyCtx graphSelectContext graphTrackCtx gravity grid gridLayout group groupObjectsByName HfAddAttractorToAS HfAssignAS HfBuildEqualMap HfBuildFurFiles HfBuildFurImages HfCancelAFR HfConnectASToHF HfCreateAttractor HfDeleteAS HfEditAS HfPerformCreateAS HfRemoveAttractorFromAS HfSelectAttached HfSelectAttractors HfUnAssignAS hardenPointCurve hardware hardwareRenderPanel headsUpDisplay headsUpMessage help helpLine hermite hide hilite hitTest hotBox hotkey hotkeyCheck hsv_to_rgb hudButton hudSlider hudSliderButton hwReflectionMap hwRender hwRenderLoad hyperGraph hyperPanel hyperShade hypot iconTextButton iconTextCheckBox iconTextRadioButton iconTextRadioCollection iconTextScrollList iconTextStaticLabel ikHandle ikHandleCtx ikHandleDisplayScale ikSolver ikSplineHandleCtx ikSystem ikSystemInfo ikfkDisplayMethod illustratorCurves image imfPlugins inheritTransform insertJoint insertJointCtx insertKeyCtx insertKnotCurve insertKnotSurface instance instanceable instancer intField intFieldGrp intScrollBar intSlider intSliderGrp interToUI internalVar intersect iprEngine isAnimCurve isConnected isDirty isParentOf isSameObject isTrue isValidObjectName isValidString isValidUiName isolateSelect itemFilter itemFilterAttr itemFilterRender itemFilterType joint jointCluster jointCtx jointDisplayScale jointLattice keyTangent keyframe keyframeOutliner keyframeRegionCurrentTimeCtx keyframeRegionDirectKeyCtx keyframeRegionDollyCtx keyframeRegionInsertKeyCtx keyframeRegionMoveKeyCtx keyframeRegionScaleKeyCtx keyframeRegionSelectKeyCtx keyframeRegionSetKeyCtx keyframeRegionTrackCtx keyframeStats lassoContext lattice latticeDeformKeyCtx launch launchImageEditor layerButton layeredShaderPort layeredTexturePort layout layoutDialog lightList lightListEditor lightListPanel lightlink lineIntersection linearPrecision linstep listAnimatable listAttr listCameras listConnections listDeviceAttachments listHistory listInputDeviceAxes listInputDeviceButtons listInputDevices listMenuAnnotation listNodeTypes listPanelCategories listRelatives listSets listTransforms listUnselected listerEditor loadFluid loadNewShelf loadPlugin loadPluginLanguageResources loadPrefObjects localizedPanelLabel lockNode loft log longNameOf lookThru ls lsThroughFilter lsType lsUI Mayatomr mag makeIdentity makeLive makePaintable makeRoll makeSingleSurface makeTubeOn makebot manipMoveContext manipMoveLimitsCtx manipOptions manipRotateContext manipRotateLimitsCtx manipScaleContext manipScaleLimitsCtx marker match max memory menu menuBarLayout menuEditor menuItem menuItemToShelf menuSet menuSetPref messageLine min minimizeApp mirrorJoint modelCurrentTimeCtx modelEditor modelPanel mouse movIn movOut move moveIKtoFK moveKeyCtx moveVertexAlongDirection multiProfileBirailSurface mute nParticle nameCommand nameField namespace namespaceInfo newPanelItems newton nodeCast nodeIconButton nodeOutliner nodePreset nodeType noise nonLinear normalConstraint normalize nurbsBoolean nurbsCopyUVSet nurbsCube nurbsEditUV nurbsPlane nurbsSelect nurbsSquare nurbsToPoly nurbsToPolygonsPref nurbsToSubdiv nurbsToSubdivPref nurbsUVSet nurbsViewDirectionVector objExists objectCenter objectLayer objectType objectTypeUI obsoleteProc oceanNurbsPreviewPlane offsetCurve offsetCurveOnSurface offsetSurface openGLExtension openMayaPref optionMenu optionMenuGrp optionVar orbit orbitCtx orientConstraint outlinerEditor outlinerPanel overrideModifier paintEffectsDisplay pairBlend palettePort paneLayout panel panelConfiguration panelHistory paramDimContext paramDimension paramLocator parent parentConstraint particle particleExists particleInstancer particleRenderInfo partition pasteKey pathAnimation pause pclose percent performanceOptions pfxstrokes pickWalk picture pixelMove planarSrf plane play playbackOptions playblast plugAttr plugNode pluginInfo pluginResourceUtil pointConstraint pointCurveConstraint pointLight pointMatrixMult pointOnCurve pointOnSurface pointPosition poleVectorConstraint polyAppend polyAppendFacetCtx polyAppendVertex polyAutoProjection polyAverageNormal polyAverageVertex polyBevel polyBlendColor polyBlindData polyBoolOp polyBridgeEdge polyCacheMonitor polyCheck polyChipOff polyClipboard polyCloseBorder polyCollapseEdge polyCollapseFacet polyColorBlindData polyColorDel polyColorPerVertex polyColorSet polyCompare polyCone polyCopyUV polyCrease polyCreaseCtx polyCreateFacet polyCreateFacetCtx polyCube polyCut polyCutCtx polyCylinder polyCylindricalProjection polyDelEdge polyDelFacet polyDelVertex polyDuplicateAndConnect polyDuplicateEdge polyEditUV polyEditUVShell polyEvaluate polyExtrudeEdge polyExtrudeFacet polyExtrudeVertex polyFlipEdge polyFlipUV polyForceUV polyGeoSampler polyHelix polyInfo polyInstallAction polyLayoutUV polyListComponentConversion polyMapCut polyMapDel polyMapSew polyMapSewMove polyMergeEdge polyMergeEdgeCtx polyMergeFacet polyMergeFacetCtx polyMergeUV polyMergeVertex polyMirrorFace polyMoveEdge polyMoveFacet polyMoveFacetUV polyMoveUV polyMoveVertex polyNormal polyNormalPerVertex polyNormalizeUV polyOptUvs polyOptions polyOutput polyPipe polyPlanarProjection polyPlane polyPlatonicSolid polyPoke polyPrimitive polyPrism polyProjection polyPyramid polyQuad polyQueryBlindData polyReduce polySelect polySelectConstraint polySelectConstraintMonitor polySelectCtx polySelectEditCtx polySeparate polySetToFaceNormal polySewEdge polyShortestPathCtx polySmooth polySoftEdge polySphere polySphericalProjection polySplit polySplitCtx polySplitEdge polySplitRing polySplitVertex polyStraightenUVBorder polySubdivideEdge polySubdivideFacet polyToSubdiv polyTorus polyTransfer polyTriangulate polyUVSet polyUnite polyWedgeFace popen popupMenu pose pow preloadRefEd print progressBar progressWindow projFileViewer projectCurve projectTangent projectionContext projectionManip promptDialog propModCtx propMove psdChannelOutliner psdEditTextureFile psdExport psdTextureFile putenv pwd python querySubdiv quit rad_to_deg radial radioButton radioButtonGrp radioCollection radioMenuItemCollection rampColorPort rand randomizeFollicles randstate rangeControl readTake rebuildCurve rebuildSurface recordAttr recordDevice redo reference referenceEdit referenceQuery refineSubdivSelectionList refresh refreshAE registerPluginResource rehash reloadImage removeJoint removeMultiInstance removePanelCategory rename renameAttr renameSelectionList renameUI render renderGlobalsNode renderInfo renderLayerButton renderLayerParent renderLayerPostProcess renderLayerUnparent renderManip renderPartition renderQualityNode renderSettings renderThumbnailUpdate renderWindowEditor renderWindowSelectContext renderer reorder reorderDeformers requires reroot resampleFluid resetAE resetPfxToPolyCamera resetTool resolutionNode retarget reverseCurve reverseSurface revolve rgb_to_hsv rigidBody rigidSolver roll rollCtx rootOf rot rotate rotationInterpolation roundConstantRadius rowColumnLayout rowLayout runTimeCommand runup sampleImage saveAllShelves saveAttrPreset saveFluid saveImage saveInitialState saveMenu savePrefObjects savePrefs saveShelf saveToolSettings scale scaleBrushBrightness scaleComponents scaleConstraint scaleKey scaleKeyCtx sceneEditor sceneUIReplacement scmh scriptCtx scriptEditorInfo scriptJob scriptNode scriptTable scriptToShelf scriptedPanel scriptedPanelType scrollField scrollLayout sculpt searchPathArray seed selLoadSettings select selectContext selectCurveCV selectKey selectKeyCtx selectKeyframeRegionCtx selectMode selectPref selectPriority selectType selectedNodes selectionConnection separator setAttr setAttrEnumResource setAttrMapping setAttrNiceNameResource setConstraintRestPosition setDefaultShadingGroup setDrivenKeyframe setDynamic setEditCtx setEditor setFluidAttr setFocus setInfinity setInputDeviceMapping setKeyCtx setKeyPath setKeyframe setKeyframeBlendshapeTargetWts setMenuMode setNodeNiceNameResource setNodeTypeFlag setParent setParticleAttr setPfxToPolyCamera setPluginResource setProject setStampDensity setStartupMessage setState setToolTo setUITemplate setXformManip sets shadingConnection shadingGeometryRelCtx shadingLightRelCtx shadingNetworkCompare shadingNode shapeCompare shelfButton shelfLayout shelfTabLayout shellField shortNameOf showHelp showHidden showManipCtx showSelectionInTitle showShadingGroupAttrEditor showWindow sign simplify sin singleProfileBirailSurface size sizeBytes skinCluster skinPercent smoothCurve smoothTangentSurface smoothstep snap2to2 snapKey snapMode snapTogetherCtx snapshot soft softMod softModCtx sort sound soundControl source spaceLocator sphere sphrand spotLight spotLightPreviewPort spreadSheetEditor spring sqrt squareSurface srtContext stackTrace startString startsWith stitchAndExplodeShell stitchSurface stitchSurfacePoints strcmp stringArrayCatenate stringArrayContains stringArrayCount stringArrayInsertAtIndex stringArrayIntersector stringArrayRemove stringArrayRemoveAtIndex stringArrayRemoveDuplicates stringArrayRemoveExact stringArrayToString stringToStringArray strip stripPrefixFromName stroke subdAutoProjection subdCleanTopology subdCollapse subdDuplicateAndConnect subdEditUV subdListComponentConversion subdMapCut subdMapSewMove subdMatchTopology subdMirror subdToBlind subdToPoly subdTransferUVsToCache subdiv subdivCrease subdivDisplaySmoothness substitute substituteAllString substituteGeometry substring surface surfaceSampler surfaceShaderList swatchDisplayPort switchTable symbolButton symbolCheckBox sysFile system tabLayout tan tangentConstraint texLatticeDeformContext texManipContext texMoveContext texMoveUVShellContext texRotateContext texScaleContext texSelectContext texSelectShortestPathCtx texSmudgeUVContext texWinToolCtx text textCurves textField textFieldButtonGrp textFieldGrp textManip textScrollList textToShelf textureDisplacePlane textureHairColor texturePlacementContext textureWindow threadCount threePointArcCtx timeControl timePort timerX toNativePath toggle toggleAxis toggleWindowVisibility tokenize tokenizeList tolerance tolower toolButton toolCollection toolDropped toolHasOptions toolPropertyWindow torus toupper trace track trackCtx transferAttributes transformCompare transformLimits translator trim trunc truncateFluidCache truncateHairCache tumble tumbleCtx turbulence twoPointArcCtx uiRes uiTemplate unassignInputDevice undo undoInfo ungroup uniform unit unloadPlugin untangleUV untitledFileName untrim upAxis updateAE userCtx uvLink uvSnapshot validateShelfName vectorize view2dToolCtx viewCamera viewClipPlane viewFit viewHeadOn viewLookAt viewManip viewPlace viewSet visor volumeAxis vortex waitCursor warning webBrowser webBrowserPrefs whatIs window windowPref wire wireContext workspace wrinkle wrinkleContext writeTake xbmLangPathList xform",illegal:"{r.exports=function a(e){const n=e.COMMENT("%","$"),o=e.inherit(e.APOS_STRING_MODE,{relevance:0}),c=e.inherit(e.QUOTE_STRING_MODE,{relevance:0});return c.contains=c.contains.slice(),c.contains.push({className:"subst",begin:"\\\\[abfnrtv]\\|\\\\x[0-9a-fA-F]*\\\\\\|%[-+# *.0-9]*[dioxXucsfeEgGp]",relevance:0}),{name:"Mercury",aliases:["m","moo"],keywords:{keyword:"module use_module import_module include_module end_module initialise mutable initialize finalize finalise interface implementation pred mode func type inst solver any_pred any_func is semidet det nondet multi erroneous failure cc_nondet cc_multi typeclass instance where pragma promise external trace atomic or_else require_complete_switch require_det require_semidet require_multi require_nondet require_cc_multi require_cc_nondet require_erroneous require_failure",meta:"inline no_inline type_spec source_file fact_table obsolete memo loop_check minimal_model terminates does_not_terminate check_termination promise_equivalent_clauses foreign_proc foreign_decl foreign_code foreign_type foreign_import_module foreign_export_enum foreign_export foreign_enum may_call_mercury will_not_call_mercury thread_safe not_thread_safe maybe_thread_safe promise_pure promise_semipure tabled_for_io local untrailed trailed attach_to_io_state can_pass_as_mercury_type stable will_not_throw_exception may_modify_trail will_not_modify_trail may_duplicate may_not_duplicate affects_liveness does_not_affect_liveness doesnt_affect_liveness no_sharing unknown_sharing sharing",built_in:"some all not if then else true fail false try catch catch_any semidet_true semidet_false semidet_fail impure_true impure semipure"},contains:[{className:"built_in",variants:[{begin:"<=>"},{begin:"<=",relevance:0},{begin:"=>",relevance:0},{begin:"/\\\\"},{begin:"\\\\/"}]},{className:"built_in",variants:[{begin:":-\\|--\x3e"},{begin:"=",relevance:0}]},n,e.C_BLOCK_COMMENT_MODE,{className:"number",begin:"0'.\\|0[box][0-9a-fA-F]*"},e.NUMBER_MODE,o,c,{begin:/:-/},{begin:/\.$/}]}}},1331:r=>{r.exports=function a(e){return{name:"MIPS Assembly",case_insensitive:!0,aliases:["mips"],keywords:{$pattern:"\\.?"+e.IDENT_RE,meta:".2byte .4byte .align .ascii .asciz .balign .byte .code .data .else .end .endif .endm .endr .equ .err .exitm .extern .global .hword .if .ifdef .ifndef .include .irp .long .macro .rept .req .section .set .skip .space .text .word .ltorg ",built_in:"$0 $1 $2 $3 $4 $5 $6 $7 $8 $9 $10 $11 $12 $13 $14 $15 $16 $17 $18 $19 $20 $21 $22 $23 $24 $25 $26 $27 $28 $29 $30 $31 zero at v0 v1 a0 a1 a2 a3 a4 a5 a6 a7 t0 t1 t2 t3 t4 t5 t6 t7 t8 t9 s0 s1 s2 s3 s4 s5 s6 s7 s8 k0 k1 gp sp fp ra $f0 $f1 $f2 $f2 $f4 $f5 $f6 $f7 $f8 $f9 $f10 $f11 $f12 $f13 $f14 $f15 $f16 $f17 $f18 $f19 $f20 $f21 $f22 $f23 $f24 $f25 $f26 $f27 $f28 $f29 $f30 $f31 Context Random EntryLo0 EntryLo1 Context PageMask Wired EntryHi HWREna BadVAddr Count Compare SR IntCtl SRSCtl SRSMap Cause EPC PRId EBase Config Config1 Config2 Config3 LLAddr Debug DEPC DESAVE CacheErr ECC ErrorEPC TagLo DataLo TagHi DataHi WatchLo WatchHi PerfCtl PerfCnt "},contains:[{className:"keyword",begin:"\\b(addi?u?|andi?|b(al)?|beql?|bgez(al)?l?|bgtzl?|blezl?|bltz(al)?l?|bnel?|cl[oz]|divu?|ext|ins|j(al)?|jalr(\\.hb)?|jr(\\.hb)?|lbu?|lhu?|ll|lui|lw[lr]?|maddu?|mfhi|mflo|movn|movz|move|msubu?|mthi|mtlo|mul|multu?|nop|nor|ori?|rotrv?|sb|sc|se[bh]|sh|sllv?|slti?u?|srav?|srlv?|subu?|sw[lr]?|xori?|wsbh|abs\\.[sd]|add\\.[sd]|alnv.ps|bc1[ft]l?|c\\.(s?f|un|u?eq|[ou]lt|[ou]le|ngle?|seq|l[et]|ng[et])\\.[sd]|(ceil|floor|round|trunc)\\.[lw]\\.[sd]|cfc1|cvt\\.d\\.[lsw]|cvt\\.l\\.[dsw]|cvt\\.ps\\.s|cvt\\.s\\.[dlw]|cvt\\.s\\.p[lu]|cvt\\.w\\.[dls]|div\\.[ds]|ldx?c1|luxc1|lwx?c1|madd\\.[sd]|mfc1|mov[fntz]?\\.[ds]|msub\\.[sd]|mth?c1|mul\\.[ds]|neg\\.[ds]|nmadd\\.[ds]|nmsub\\.[ds]|p[lu][lu]\\.ps|recip\\.fmt|r?sqrt\\.[ds]|sdx?c1|sub\\.[ds]|suxc1|swx?c1|break|cache|d?eret|[de]i|ehb|mfc0|mtc0|pause|prefx?|rdhwr|rdpgpr|sdbbp|ssnop|synci?|syscall|teqi?|tgei?u?|tlb(p|r|w[ir])|tlti?u?|tnei?|wait|wrpgpr)",end:"\\s"},e.COMMENT("[;#](?!\\s*$)","$"),e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:"'",end:"[^\\\\]'",relevance:0},{className:"title",begin:"\\|",end:"\\|",illegal:"\\n",relevance:0},{className:"number",variants:[{begin:"0x[0-9a-f]+"},{begin:"\\b-?\\d+"}],relevance:0},{className:"symbol",variants:[{begin:"^\\s*[a-z_\\.\\$][a-z0-9_\\.\\$]+:"},{begin:"^\\s*[0-9]+:"},{begin:"[0-9]+[bf]"}],relevance:0}],illegal:/\//}}},1301:r=>{r.exports=function a(e){return{name:"Mizar",keywords:"environ vocabularies notations constructors definitions registrations theorems schemes requirements begin end definition registration cluster existence pred func defpred deffunc theorem proof let take assume then thus hence ex for st holds consider reconsider such that and in provided of as from be being by means equals implies iff redefine define now not or attr is mode suppose per cases set thesis contradiction scheme reserve struct correctness compatibility coherence symmetry assymetry reflexivity irreflexivity connectedness uniqueness commutativity idempotence involutiveness projectivity",contains:[e.COMMENT("::","$")]}}},2333:r=>{r.exports=function a(e){return{name:"Mojolicious",subLanguage:"xml",contains:[{className:"meta",begin:"^__(END|DATA)__$"},{begin:"^\\s*%{1,2}={0,2}",end:"$",subLanguage:"perl"},{begin:"<%{1,2}={0,2}",end:"={0,1}%>",subLanguage:"perl",excludeBegin:!0,excludeEnd:!0}]}}},6061:r=>{r.exports=function a(e){const t={className:"number",relevance:0,variants:[{begin:"[$][a-fA-F0-9]+"},e.NUMBER_MODE]},n={variants:[{match:[/(function|method)/,/\s+/,e.UNDERSCORE_IDENT_RE]}],scope:{1:"keyword",3:"title.function"}},i={variants:[{match:[/(class|interface|extends|implements)/,/\s+/,e.UNDERSCORE_IDENT_RE]}],scope:{1:"keyword",3:"title.class"}};return{name:"Monkey",case_insensitive:!0,keywords:{keyword:["public","private","property","continue","exit","extern","new","try","catch","eachin","not","abstract","final","select","case","default","const","local","global","field","end","if","then","else","elseif","endif","while","wend","repeat","until","forever","for","to","step","next","return","module","inline","throw","import","and","or","shl","shr","mod"],built_in:["DebugLog","DebugStop","Error","Print","ACos","ACosr","ASin","ASinr","ATan","ATan2","ATan2r","ATanr","Abs","Abs","Ceil","Clamp","Clamp","Cos","Cosr","Exp","Floor","Log","Max","Max","Min","Min","Pow","Sgn","Sgn","Sin","Sinr","Sqrt","Tan","Tanr","Seed","PI","HALFPI","TWOPI"],literal:["true","false","null"]},illegal:/\/\*/,contains:[e.COMMENT("#rem","#end"),e.COMMENT("'","$",{relevance:0}),n,i,{className:"variable.language",begin:/\b(self|super)\b/},{className:"meta",begin:/\s*#/,end:"$",keywords:{keyword:"if else elseif endif end then"}},{match:[/^\s*/,/strict\b/],scope:{2:"meta"}},{beginKeywords:"alias",end:"=",contains:[e.UNDERSCORE_TITLE_MODE]},e.QUOTE_STRING_MODE,t]}}},3300:r=>{r.exports=function a(e){const t={keyword:"if then not for in while do return else elseif break continue switch and or unless when class extends super local import export from using",literal:"true false nil",built_in:"_G _VERSION assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall coroutine debug io math os package string table"},n="[A-Za-z$_][0-9A-Za-z$_]*",i={className:"subst",begin:/#\{/,end:/\}/,keywords:t},o=[e.inherit(e.C_NUMBER_MODE,{starts:{end:"(\\s*/)?",relevance:0}}),{className:"string",variants:[{begin:/'/,end:/'/,contains:[e.BACKSLASH_ESCAPE]},{begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,i]}]},{className:"built_in",begin:"@__"+e.IDENT_RE},{begin:"@"+e.IDENT_RE},{begin:e.IDENT_RE+"\\\\"+e.IDENT_RE}];i.contains=o;const c=e.inherit(e.TITLE_MODE,{begin:n}),s="(\\(.*\\)\\s*)?\\B[-=]>",l={className:"params",begin:"\\([^\\(]",returnBegin:!0,contains:[{begin:/\(/,end:/\)/,keywords:t,contains:["self"].concat(o)}]};return{name:"MoonScript",aliases:["moon"],keywords:t,illegal:/\/\*/,contains:o.concat([e.COMMENT("--","$"),{className:"function",begin:"^\\s*"+n+"\\s*=\\s*"+s,end:"[-=]>",returnBegin:!0,contains:[c,l]},{begin:/[\(,:=]\s*/,relevance:0,contains:[{className:"function",begin:s,end:"[-=]>",returnBegin:!0,contains:[l]}]},{className:"class",beginKeywords:"class",end:"$",illegal:/[:="\[\]]/,contains:[{beginKeywords:"extends",endsWithParent:!0,illegal:/[:="\[\]]/,contains:[c]},c]},{className:"name",begin:n+":",end:":",returnBegin:!0,returnEnd:!0,relevance:0}])}}},6463:r=>{r.exports=function a(e){return{name:"N1QL",case_insensitive:!0,contains:[{beginKeywords:"build create index delete drop explain infer|10 insert merge prepare select update upsert|10",end:/;/,keywords:{keyword:["all","alter","analyze","and","any","array","as","asc","begin","between","binary","boolean","break","bucket","build","by","call","case","cast","cluster","collate","collection","commit","connect","continue","correlate","cover","create","database","dataset","datastore","declare","decrement","delete","derived","desc","describe","distinct","do","drop","each","element","else","end","every","except","exclude","execute","exists","explain","fetch","first","flatten","for","force","from","function","grant","group","gsi","having","if","ignore","ilike","in","include","increment","index","infer","inline","inner","insert","intersect","into","is","join","key","keys","keyspace","known","last","left","let","letting","like","limit","lsm","map","mapping","matched","materialized","merge","minus","namespace","nest","not","number","object","offset","on","option","or","order","outer","over","parse","partition","password","path","pool","prepare","primary","private","privilege","procedure","public","raw","realm","reduce","rename","return","returning","revoke","right","role","rollback","satisfies","schema","select","self","semi","set","show","some","start","statistics","string","system","then","to","transaction","trigger","truncate","under","union","unique","unknown","unnest","unset","update","upsert","use","user","using","validate","value","valued","values","via","view","when","where","while","with","within","work","xor"],literal:["true","false","null","missing|5"],built_in:["array_agg","array_append","array_concat","array_contains","array_count","array_distinct","array_ifnull","array_length","array_max","array_min","array_position","array_prepend","array_put","array_range","array_remove","array_repeat","array_replace","array_reverse","array_sort","array_sum","avg","count","max","min","sum","greatest","least","ifmissing","ifmissingornull","ifnull","missingif","nullif","ifinf","ifnan","ifnanorinf","naninf","neginfif","posinfif","clock_millis","clock_str","date_add_millis","date_add_str","date_diff_millis","date_diff_str","date_part_millis","date_part_str","date_trunc_millis","date_trunc_str","duration_to_str","millis","str_to_millis","millis_to_str","millis_to_utc","millis_to_zone_name","now_millis","now_str","str_to_duration","str_to_utc","str_to_zone_name","decode_json","encode_json","encoded_size","poly_length","base64","base64_encode","base64_decode","meta","uuid","abs","acos","asin","atan","atan2","ceil","cos","degrees","e","exp","ln","log","floor","pi","power","radians","random","round","sign","sin","sqrt","tan","trunc","object_length","object_names","object_pairs","object_inner_pairs","object_values","object_inner_values","object_add","object_put","object_remove","object_unwrap","regexp_contains","regexp_like","regexp_position","regexp_replace","contains","initcap","length","lower","ltrim","position","repeat","replace","rtrim","split","substr","title","trim","upper","isarray","isatom","isboolean","isnumber","isobject","isstring","type","toarray","toatom","toboolean","tonumber","toobject","tostring"]},contains:[{className:"string",begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE]},{className:"string",begin:'"',end:'"',contains:[e.BACKSLASH_ESCAPE]},{className:"symbol",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE]},e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE]},e.C_BLOCK_COMMENT_MODE]}}},3027:r=>{r.exports=function a(e){return{name:"Nested Text",aliases:["nt"],contains:[e.inherit(e.HASH_COMMENT_MODE,{begin:/^\s*(?=#)/,excludeBegin:!0}),{variants:[{match:[/^\s*/,/-/,/[ ]/,/.*$/]},{match:[/^\s*/,/-$/]}],className:{2:"bullet",4:"string"}},{match:[/^\s*/,/>/,/[ ]/,/.*$/],className:{2:"punctuation",4:"string"}},{match:[/^\s*(?=\S)/,/[^:]+/,/:\s*/,/$/],className:{2:"attribute",3:"punctuation"}},{match:[/^\s*(?=\S)/,/[^:]*[^: ]/,/[ ]*:/,/[ ]/,/.*$/],className:{2:"attribute",3:"punctuation",5:"string"}}]}}},1357:r=>{r.exports=function a(e){const t=e.regex,n={className:"variable",variants:[{begin:/\$\d+/},{begin:/\$\{\w+\}/},{begin:t.concat(/[$@]/,e.UNDERSCORE_IDENT_RE)}]},o={endsWithParent:!0,keywords:{$pattern:/[a-z_]{2,}|\/dev\/poll/,literal:["on","off","yes","no","true","false","none","blocked","debug","info","notice","warn","error","crit","select","break","last","permanent","redirect","kqueue","rtsig","epoll","poll","/dev/poll"]},relevance:0,illegal:"=>",contains:[e.HASH_COMMENT_MODE,{className:"string",contains:[e.BACKSLASH_ESCAPE,n],variants:[{begin:/"/,end:/"/},{begin:/'/,end:/'/}]},{begin:"([a-z]+):/",end:"\\s",endsWithParent:!0,excludeEnd:!0,contains:[n]},{className:"regexp",contains:[e.BACKSLASH_ESCAPE,n],variants:[{begin:"\\s\\^",end:"\\s|\\{|;",returnEnd:!0},{begin:"~\\*?\\s+",end:"\\s|\\{|;",returnEnd:!0},{begin:"\\*(\\.[a-z\\-]+)+"},{begin:"([a-z\\-]+\\.)+\\*"}]},{className:"number",begin:"\\b\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}(:\\d{1,5})?\\b"},{className:"number",begin:"\\b\\d+[kKmMgGdshdwy]?\\b",relevance:0},n]};return{name:"Nginx config",aliases:["nginxconf"],contains:[e.HASH_COMMENT_MODE,{beginKeywords:"upstream location",end:/;|\{/,contains:o.contains,keywords:{section:"upstream location"}},{className:"section",begin:t.concat(e.UNDERSCORE_IDENT_RE+t.lookahead(/\s+\{/)),relevance:0},{begin:t.lookahead(e.UNDERSCORE_IDENT_RE+"\\s"),end:";|\\{",contains:[{className:"attribute",begin:e.UNDERSCORE_IDENT_RE,starts:o}],relevance:0}],illegal:"[^\\s\\}\\{]"}}},782:r=>{r.exports=function a(e){return{name:"Nim",keywords:{keyword:["addr","and","as","asm","bind","block","break","case","cast","const","continue","converter","discard","distinct","div","do","elif","else","end","enum","except","export","finally","for","from","func","generic","guarded","if","import","in","include","interface","is","isnot","iterator","let","macro","method","mixin","mod","nil","not","notin","object","of","or","out","proc","ptr","raise","ref","return","shared","shl","shr","static","template","try","tuple","type","using","var","when","while","with","without","xor","yield"],literal:["true","false"],type:["int","int8","int16","int32","int64","uint","uint8","uint16","uint32","uint64","float","float32","float64","bool","char","string","cstring","pointer","expr","stmt","void","auto","any","range","array","openarray","varargs","seq","set","clong","culong","cchar","cschar","cshort","cint","csize","clonglong","cfloat","cdouble","clongdouble","cuchar","cushort","cuint","culonglong","cstringarray","semistatic"],built_in:["stdin","stdout","stderr","result"]},contains:[{className:"meta",begin:/\{\./,end:/\.\}/,relevance:10},{className:"string",begin:/[a-zA-Z]\w*"/,end:/"/,contains:[{begin:/""/}]},{className:"string",begin:/([a-zA-Z]\w*)?"""/,end:/"""/},e.QUOTE_STRING_MODE,{className:"type",begin:/\b[A-Z]\w+\b/,relevance:0},{className:"number",relevance:0,variants:[{begin:/\b(0[xX][0-9a-fA-F][_0-9a-fA-F]*)('?[iIuU](8|16|32|64))?/},{begin:/\b(0o[0-7][_0-7]*)('?[iIuUfF](8|16|32|64))?/},{begin:/\b(0(b|B)[01][_01]*)('?[iIuUfF](8|16|32|64))?/},{begin:/\b(\d[_\d]*)('?[iIuUfF](8|16|32|64))?/}]},e.HASH_COMMENT_MODE]}}},6261:r=>{r.exports=function a(e){const t={keyword:["rec","with","let","in","inherit","assert","if","else","then"],literal:["true","false","or","and","null"],built_in:["import","abort","baseNameOf","dirOf","isNull","builtins","map","removeAttrs","throw","toString","derivation"]},n={className:"subst",begin:/\$\{/,end:/\}/,keywords:t},s=[e.NUMBER_MODE,e.HASH_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"string",contains:[{className:"char.escape",begin:/''\$/},n],variants:[{begin:"''",end:"''"},{begin:'"',end:'"'}]},{begin:/[a-zA-Z0-9-_]+(\s*=)/,returnBegin:!0,relevance:0,contains:[{className:"attr",begin:/\S+/,relevance:.2}]}];return n.contains=s,{name:"Nix",aliases:["nixos"],keywords:t,contains:s}}},1729:r=>{r.exports=function a(e){return{name:"Node REPL",contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"javascript"}},variants:[{begin:/^>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}},1056:r=>{r.exports=function a(e){const t=e.regex,c={className:"variable.constant",begin:t.concat(/\$/,t.either("ADMINTOOLS","APPDATA","CDBURN_AREA","CMDLINE","COMMONFILES32","COMMONFILES64","COMMONFILES","COOKIES","DESKTOP","DOCUMENTS","EXEDIR","EXEFILE","EXEPATH","FAVORITES","FONTS","HISTORY","HWNDPARENT","INSTDIR","INTERNET_CACHE","LANGUAGE","LOCALAPPDATA","MUSIC","NETHOOD","OUTDIR","PICTURES","PLUGINSDIR","PRINTHOOD","PROFILE","PROGRAMFILES32","PROGRAMFILES64","PROGRAMFILES","QUICKLAUNCH","RECENT","RESOURCES_LOCALIZED","RESOURCES","SENDTO","SMPROGRAMS","SMSTARTUP","STARTMENU","SYSDIR","TEMP","TEMPLATES","VIDEOS","WINDIR"))},s={className:"variable",begin:/\$+\{[\!\w.:-]+\}/},l={className:"variable",begin:/\$+\w[\w\.]*/,illegal:/\(\)\{\}/},_={className:"variable",begin:/\$+\([\w^.:!-]+\)/},d={className:"params",begin:t.either("ARCHIVE","FILE_ATTRIBUTE_ARCHIVE","FILE_ATTRIBUTE_NORMAL","FILE_ATTRIBUTE_OFFLINE","FILE_ATTRIBUTE_READONLY","FILE_ATTRIBUTE_SYSTEM","FILE_ATTRIBUTE_TEMPORARY","HKCR","HKCU","HKDD","HKEY_CLASSES_ROOT","HKEY_CURRENT_CONFIG","HKEY_CURRENT_USER","HKEY_DYN_DATA","HKEY_LOCAL_MACHINE","HKEY_PERFORMANCE_DATA","HKEY_USERS","HKLM","HKPD","HKU","IDABORT","IDCANCEL","IDIGNORE","IDNO","IDOK","IDRETRY","IDYES","MB_ABORTRETRYIGNORE","MB_DEFBUTTON1","MB_DEFBUTTON2","MB_DEFBUTTON3","MB_DEFBUTTON4","MB_ICONEXCLAMATION","MB_ICONINFORMATION","MB_ICONQUESTION","MB_ICONSTOP","MB_OK","MB_OKCANCEL","MB_RETRYCANCEL","MB_RIGHT","MB_RTLREADING","MB_SETFOREGROUND","MB_TOPMOST","MB_USERICON","MB_YESNO","NORMAL","OFFLINE","READONLY","SHCTX","SHELL_CONTEXT","SYSTEM|TEMPORARY")},m={className:"keyword",begin:t.concat(/!/,t.either("addincludedir","addplugindir","appendfile","cd","define","delfile","echo","else","endif","error","execute","finalize","getdllversion","gettlbversion","if","ifdef","ifmacrodef","ifmacrondef","ifndef","include","insertmacro","macro","macroend","makensis","packhdr","searchparse","searchreplace","system","tempfile","undef","uninstfinalize","verbose","warning"))},S={className:"string",variants:[{begin:'"',end:'"'},{begin:"'",end:"'"},{begin:"`",end:"`"}],illegal:/\n/,contains:[{className:"char.escape",begin:/\$(\\[nrt]|\$)/},c,s,l,_]},R={match:[/Function/,/\s+/,t.concat(/(\.)?/,e.IDENT_RE)],scope:{1:"keyword",3:"title.function"}};return{name:"NSIS",case_insensitive:!0,keywords:{keyword:["Abort","AddBrandingImage","AddSize","AllowRootDirInstall","AllowSkipFiles","AutoCloseWindow","BGFont","BGGradient","BrandingText","BringToFront","Call","CallInstDLL","Caption","ChangeUI","CheckBitmap","ClearErrors","CompletedText","ComponentText","CopyFiles","CRCCheck","CreateDirectory","CreateFont","CreateShortCut","Delete","DeleteINISec","DeleteINIStr","DeleteRegKey","DeleteRegValue","DetailPrint","DetailsButtonText","DirText","DirVar","DirVerify","EnableWindow","EnumRegKey","EnumRegValue","Exch","Exec","ExecShell","ExecShellWait","ExecWait","ExpandEnvStrings","File","FileBufSize","FileClose","FileErrorText","FileOpen","FileRead","FileReadByte","FileReadUTF16LE","FileReadWord","FileWriteUTF16LE","FileSeek","FileWrite","FileWriteByte","FileWriteWord","FindClose","FindFirst","FindNext","FindWindow","FlushINI","GetCurInstType","GetCurrentAddress","GetDlgItem","GetDLLVersion","GetDLLVersionLocal","GetErrorLevel","GetFileTime","GetFileTimeLocal","GetFullPathName","GetFunctionAddress","GetInstDirError","GetKnownFolderPath","GetLabelAddress","GetTempFileName","GetWinVer","Goto","HideWindow","Icon","IfAbort","IfErrors","IfFileExists","IfRebootFlag","IfRtlLanguage","IfShellVarContextAll","IfSilent","InitPluginsDir","InstallButtonText","InstallColors","InstallDir","InstallDirRegKey","InstProgressFlags","InstType","InstTypeGetText","InstTypeSetText","Int64Cmp","Int64CmpU","Int64Fmt","IntCmp","IntCmpU","IntFmt","IntOp","IntPtrCmp","IntPtrCmpU","IntPtrOp","IsWindow","LangString","LicenseBkColor","LicenseData","LicenseForceSelection","LicenseLangString","LicenseText","LoadAndSetImage","LoadLanguageFile","LockWindow","LogSet","LogText","ManifestDPIAware","ManifestLongPathAware","ManifestMaxVersionTested","ManifestSupportedOS","MessageBox","MiscButtonText","Name|0","Nop","OutFile","Page","PageCallbacks","PEAddResource","PEDllCharacteristics","PERemoveResource","PESubsysVer","Pop","Push","Quit","ReadEnvStr","ReadINIStr","ReadRegDWORD","ReadRegStr","Reboot","RegDLL","Rename","RequestExecutionLevel","ReserveFile","Return","RMDir","SearchPath","SectionGetFlags","SectionGetInstTypes","SectionGetSize","SectionGetText","SectionIn","SectionSetFlags","SectionSetInstTypes","SectionSetSize","SectionSetText","SendMessage","SetAutoClose","SetBrandingImage","SetCompress","SetCompressor","SetCompressorDictSize","SetCtlColors","SetCurInstType","SetDatablockOptimize","SetDateSave","SetDetailsPrint","SetDetailsView","SetErrorLevel","SetErrors","SetFileAttributes","SetFont","SetOutPath","SetOverwrite","SetRebootFlag","SetRegView","SetShellVarContext","SetSilent","ShowInstDetails","ShowUninstDetails","ShowWindow","SilentInstall","SilentUnInstall","Sleep","SpaceTexts","StrCmp","StrCmpS","StrCpy","StrLen","SubCaption","Unicode","UninstallButtonText","UninstallCaption","UninstallIcon","UninstallSubCaption","UninstallText","UninstPage","UnRegDLL","Var","VIAddVersionKey","VIFileVersion","VIProductVersion","WindowIcon","WriteINIStr","WriteRegBin","WriteRegDWORD","WriteRegExpandStr","WriteRegMultiStr","WriteRegNone","WriteRegStr","WriteUninstaller","XPStyle"],literal:["admin","all","auto","both","bottom","bzip2","colored","components","current","custom","directory","false","force","hide","highest","ifdiff","ifnewer","instfiles","lastused","leave","left","license","listonly","lzma","nevershow","none","normal","notset","off","on","open","print","right","show","silent","silentlog","smooth","textonly","top","true","try","un.components","un.custom","un.directory","un.instfiles","un.license","uninstConfirm","user","Win10","Win7","Win8","WinVista","zlib"]},contains:[e.HASH_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.COMMENT(";","$",{relevance:0}),{match:[/Var/,/\s+/,/(?:\/GLOBAL\s+)?/,/[A-Za-z][\w.]*/],scope:{1:"keyword",3:"params",4:"variable"}},R,{beginKeywords:"Function PageEx Section SectionGroup FunctionEnd SectionEnd"},S,m,s,l,_,d,{className:"title.function",begin:/\w+::\w+/},e.NUMBER_MODE]}}},8102:r=>{r.exports=function a(e){const n=/[a-zA-Z@][a-zA-Z0-9_]*/,_={$pattern:n,keyword:["@interface","@class","@protocol","@implementation"]};return{name:"Objective-C",aliases:["mm","objc","obj-c","obj-c++","objective-c++"],keywords:{"variable.language":["this","super"],$pattern:n,keyword:["while","export","sizeof","typedef","const","struct","for","union","volatile","static","mutable","if","do","return","goto","enum","else","break","extern","asm","case","default","register","explicit","typename","switch","continue","inline","readonly","assign","readwrite","self","@synchronized","id","typeof","nonatomic","IBOutlet","IBAction","strong","weak","copy","in","out","inout","bycopy","byref","oneway","__strong","__weak","__block","__autoreleasing","@private","@protected","@public","@try","@property","@end","@throw","@catch","@finally","@autoreleasepool","@synthesize","@dynamic","@selector","@optional","@required","@encode","@package","@import","@defs","@compatibility_alias","__bridge","__bridge_transfer","__bridge_retained","__bridge_retain","__covariant","__contravariant","__kindof","_Nonnull","_Nullable","_Null_unspecified","__FUNCTION__","__PRETTY_FUNCTION__","__attribute__","getter","setter","retain","unsafe_unretained","nonnull","nullable","null_unspecified","null_resettable","class","instancetype","NS_DESIGNATED_INITIALIZER","NS_UNAVAILABLE","NS_REQUIRES_SUPER","NS_RETURNS_INNER_POINTER","NS_INLINE","NS_AVAILABLE","NS_DEPRECATED","NS_ENUM","NS_OPTIONS","NS_SWIFT_UNAVAILABLE","NS_ASSUME_NONNULL_BEGIN","NS_ASSUME_NONNULL_END","NS_REFINED_FOR_SWIFT","NS_SWIFT_NAME","NS_SWIFT_NOTHROW","NS_DURING","NS_HANDLER","NS_ENDHANDLER","NS_VALUERETURN","NS_VOIDRETURN"],literal:["false","true","FALSE","TRUE","nil","YES","NO","NULL"],built_in:["dispatch_once_t","dispatch_queue_t","dispatch_sync","dispatch_async","dispatch_once"],type:["int","float","char","unsigned","signed","short","long","double","wchar_t","unichar","void","bool","BOOL","id|0","_Bool"]},illegal:"/,end:/$/,illegal:"\\n"},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"class",begin:"("+_.keyword.join("|")+")\\b",end:/(\{|$)/,excludeEnd:!0,keywords:_,contains:[e.UNDERSCORE_TITLE_MODE]},{begin:"\\."+e.UNDERSCORE_IDENT_RE,relevance:0}]}}},6727:r=>{r.exports=function a(e){return{name:"OCaml",aliases:["ml"],keywords:{$pattern:"[a-z_]\\w*!?",keyword:"and as assert asr begin class constraint do done downto else end exception external for fun function functor if in include inherit! inherit initializer land lazy let lor lsl lsr lxor match method!|10 method mod module mutable new object of open! open or private rec sig struct then to try type val! val virtual when while with parser value",built_in:"array bool bytes char exn|5 float int int32 int64 list lazy_t|5 nativeint|5 string unit in_channel out_channel ref",literal:"true false"},illegal:/\/\/|>>/,contains:[{className:"literal",begin:"\\[(\\|\\|)?\\]|\\(\\)",relevance:0},e.COMMENT("\\(\\*","\\*\\)",{contains:["self"]}),{className:"symbol",begin:"'[A-Za-z_](?!')[\\w']*"},{className:"type",begin:"`[A-Z][\\w']*"},{className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},{begin:"[a-z_]\\w*'[\\w']*",relevance:0},e.inherit(e.APOS_STRING_MODE,{className:"string",relevance:0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:"number",begin:"\\b(0[xX][a-fA-F0-9_]+[Lln]?|0[oO][0-7_]+[Lln]?|0[bB][01_]+[Lln]?|[0-9][0-9_]*([Lln]|(\\.[0-9_]*)?([eE][-+]?[0-9_]+)?)?)",relevance:0},{begin:/->/}]}}},8994:r=>{r.exports=function a(e){const t={className:"keyword",begin:"\\$(f[asn]|t|vp[rtd]|children)"},i={className:"number",begin:"\\b\\d+(\\.\\d+)?(e-?\\d+)?",relevance:0},o=e.inherit(e.QUOTE_STRING_MODE,{illegal:null});return{name:"OpenSCAD",aliases:["scad"],keywords:{keyword:"function module include use for intersection_for if else \\%",literal:"false true PI undef",built_in:"circle square polygon text sphere cube cylinder polyhedron translate rotate scale resize mirror multmatrix color offset hull minkowski union difference intersection abs sign sin cos tan acos asin atan atan2 floor round ceil ln log pow sqrt exp rands min max concat lookup str chr search version version_num norm cross parent_module echo import import_dxf dxf_linear_extrude linear_extrude rotate_extrude surface projection render children dxf_cross dxf_dim let assign"},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,i,{className:"meta",keywords:{keyword:"include use"},begin:"include|use <",end:">"},o,t,{begin:"[*!#%]",relevance:0},{className:"function",beginKeywords:"module function",end:/=|\{/,contains:[{className:"params",begin:"\\(",end:"\\)",contains:["self",i,o,t,{className:"literal",begin:"false|true|PI|undef"}]},e.UNDERSCORE_TITLE_MODE]}]}}},9604:r=>{r.exports=function a(e){const t={$pattern:/\.?\w+/,keyword:"abstract add and array as asc aspect assembly async begin break block by case class concat const copy constructor continue create default delegate desc distinct div do downto dynamic each else empty end ensure enum equals event except exit extension external false final finalize finalizer finally flags for forward from function future global group has if implementation implements implies in index inherited inline interface into invariants is iterator join locked locking loop matching method mod module namespace nested new nil not notify nullable of old on operator or order out override parallel params partial pinned private procedure property protected public queryable raise read readonly record reintroduce remove repeat require result reverse sealed select self sequence set shl shr skip static step soft take then to true try tuple type union unit unsafe until uses using var virtual raises volatile where while with write xor yield await mapped deprecated stdcall cdecl pascal register safecall overload library platform reference packed strict published autoreleasepool selector strong weak unretained"},n=e.COMMENT(/\{/,/\}/,{relevance:0}),i=e.COMMENT("\\(\\*","\\*\\)",{relevance:10}),o={className:"string",begin:"'",end:"'",contains:[{begin:"''"}]},c={className:"string",begin:"(#\\d+)+"},s={beginKeywords:"function constructor destructor procedure method",end:"[:;]",keywords:"function constructor|10 destructor|10 procedure|10 method|10",contains:[e.inherit(e.TITLE_MODE,{scope:"title.function"}),{className:"params",begin:"\\(",end:"\\)",keywords:t,contains:[o,c]},n,i]};return{name:"Oxygene",case_insensitive:!0,keywords:t,illegal:'("|\\$[G-Zg-z]|\\/\\*||->)',contains:[n,i,e.C_LINE_COMMENT_MODE,o,c,e.NUMBER_MODE,s,{scope:"punctuation",match:/;/,relevance:0}]}}},4207:r=>{r.exports=function a(e){const t=e.COMMENT(/\{/,/\}/,{contains:["self"]});return{name:"Parser3",subLanguage:"xml",relevance:0,contains:[e.COMMENT("^#","$"),e.COMMENT(/\^rem\{/,/\}/,{relevance:10,contains:[t]}),{className:"meta",begin:"^@(?:BASE|USE|CLASS|OPTIONS)$",relevance:10},{className:"title",begin:"@[\\w\\-]+\\[[\\w^;\\-]*\\](?:\\[[\\w^;\\-]*\\])?(?:.*)$"},{className:"variable",begin:/\$\{?[\w\-.:]+\}?/},{className:"keyword",begin:/\^[\w\-.:]+/},{className:"number",begin:"\\^#[0-9a-fA-F]+"},e.C_NUMBER_MODE]}}},8330:r=>{r.exports=function a(e){const t=e.regex,i=/[dualxmsipngr]{0,12}/,o={$pattern:/[\w.]+/,keyword:["abs","accept","alarm","and","atan2","bind","binmode","bless","break","caller","chdir","chmod","chomp","chop","chown","chr","chroot","close","closedir","connect","continue","cos","crypt","dbmclose","dbmopen","defined","delete","die","do","dump","each","else","elsif","endgrent","endhostent","endnetent","endprotoent","endpwent","endservent","eof","eval","exec","exists","exit","exp","fcntl","fileno","flock","for","foreach","fork","format","formline","getc","getgrent","getgrgid","getgrnam","gethostbyaddr","gethostbyname","gethostent","getlogin","getnetbyaddr","getnetbyname","getnetent","getpeername","getpgrp","getpriority","getprotobyname","getprotobynumber","getprotoent","getpwent","getpwnam","getpwuid","getservbyname","getservbyport","getservent","getsockname","getsockopt","given","glob","gmtime","goto","grep","gt","hex","if","index","int","ioctl","join","keys","kill","last","lc","lcfirst","length","link","listen","local","localtime","log","lstat","lt","ma","map","mkdir","msgctl","msgget","msgrcv","msgsnd","my","ne","next","no","not","oct","open","opendir","or","ord","our","pack","package","pipe","pop","pos","print","printf","prototype","push","q|0","qq","quotemeta","qw","qx","rand","read","readdir","readline","readlink","readpipe","recv","redo","ref","rename","require","reset","return","reverse","rewinddir","rindex","rmdir","say","scalar","seek","seekdir","select","semctl","semget","semop","send","setgrent","sethostent","setnetent","setpgrp","setpriority","setprotoent","setpwent","setservent","setsockopt","shift","shmctl","shmget","shmread","shmwrite","shutdown","sin","sleep","socket","socketpair","sort","splice","split","sprintf","sqrt","srand","stat","state","study","sub","substr","symlink","syscall","sysopen","sysread","sysseek","system","syswrite","tell","telldir","tie","tied","time","times","tr","truncate","uc","ucfirst","umask","undef","unless","unlink","unpack","unshift","untie","until","use","utime","values","vec","wait","waitpid","wantarray","warn","when","while","write","x|0","xor","y|0"].join(" ")},c={className:"subst",begin:"[$@]\\{",end:"\\}",keywords:o},s={begin:/->\{/,end:/\}/},l={variants:[{begin:/\$\d/},{begin:t.concat(/[$%@](\^\w\b|#\w+(::\w+)*|\{\w+\}|\w+(::\w*)*)/,"(?![A-Za-z])(?![@$%])")},{begin:/[$%@][^\s\w{]/,relevance:0}]},_=[e.BACKSLASH_ESCAPE,c,l],d=[/!/,/\//,/\|/,/\?/,/'/,/"/,/#/],m=(S,g,T="\\1")=>{const R="\\1"===T?T:t.concat(T,g);return t.concat(t.concat("(?:",S,")"),g,/(?:\\.|[^\\\/])*?/,R,/(?:\\.|[^\\\/])*?/,T,i)},u=(S,g,T)=>t.concat(t.concat("(?:",S,")"),g,/(?:\\.|[^\\\/])*?/,T,i),p=[l,e.HASH_COMMENT_MODE,e.COMMENT(/^=\w/,/=cut/,{endsWithParent:!0}),s,{className:"string",contains:_,variants:[{begin:"q[qwxr]?\\s*\\(",end:"\\)",relevance:5},{begin:"q[qwxr]?\\s*\\[",end:"\\]",relevance:5},{begin:"q[qwxr]?\\s*\\{",end:"\\}",relevance:5},{begin:"q[qwxr]?\\s*\\|",end:"\\|",relevance:5},{begin:"q[qwxr]?\\s*<",end:">",relevance:5},{begin:"qw\\s+q",end:"q",relevance:5},{begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"'},{begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE]},{begin:/\{\w+\}/,relevance:0},{begin:"-?\\w+\\s*=>",relevance:0}]},{className:"number",begin:"(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",relevance:0},{begin:"(\\/\\/|"+e.RE_STARTERS_RE+"|\\b(split|return|print|reverse|grep)\\b)\\s*",keywords:"split return print reverse grep",relevance:0,contains:[e.HASH_COMMENT_MODE,{className:"regexp",variants:[{begin:m("s|tr|y",t.either(...d,{capture:!0}))},{begin:m("s|tr|y","\\(","\\)")},{begin:m("s|tr|y","\\[","\\]")},{begin:m("s|tr|y","\\{","\\}")}],relevance:2},{className:"regexp",variants:[{begin:/(m|qr)\/\//,relevance:0},{begin:u("(?:m|qr)?",/\//,/\//)},{begin:u("m|qr",t.either(...d,{capture:!0}),/\1/)},{begin:u("m|qr",/\(/,/\)/)},{begin:u("m|qr",/\[/,/\]/)},{begin:u("m|qr",/\{/,/\}/)}]}]},{className:"function",beginKeywords:"sub",end:"(\\s*\\(.*?\\))?[;{]",excludeEnd:!0,relevance:5,contains:[e.TITLE_MODE]},{begin:"-\\w\\b",relevance:0},{begin:"^__DATA__$",end:"^__END__$",subLanguage:"mojolicious",contains:[{begin:"^@@.*",end:"$",className:"comment"}]}];return c.contains=p,s.contains=p,{name:"Perl",aliases:["pl","pm"],keywords:o,contains:p}}},5138:r=>{r.exports=function a(e){return{name:"Packet Filter config",aliases:["pf.conf"],keywords:{$pattern:/[a-z0-9_<>-]+/,built_in:"block match pass load anchor|5 antispoof|10 set table",keyword:"in out log quick on rdomain inet inet6 proto from port os to route allow-opts divert-packet divert-reply divert-to flags group icmp-type icmp6-type label once probability recieved-on rtable prio queue tos tag tagged user keep fragment for os drop af-to|10 binat-to|10 nat-to|10 rdr-to|10 bitmask least-stats random round-robin source-hash static-port dup-to reply-to route-to parent bandwidth default min max qlimit block-policy debug fingerprints hostid limit loginterface optimization reassemble ruleset-optimization basic none profile skip state-defaults state-policy timeout const counters persist no modulate synproxy state|5 floating if-bound no-sync pflow|10 sloppy source-track global rule max-src-nodes max-src-states max-src-conn max-src-conn-rate overload flush scrub|5 max-mss min-ttl no-df|10 random-id",literal:"all any no-route self urpf-failed egress|5 unknown"},contains:[e.HASH_COMMENT_MODE,e.NUMBER_MODE,e.QUOTE_STRING_MODE,{className:"variable",begin:/\$[\w\d#@][\w\d_]*/,relevance:0},{className:"variable",begin:/<(?!\/)/,end:/>/}]}}},6504:r=>{r.exports=function a(e){const t=e.COMMENT("--","$"),i="\\$([a-zA-Z_]?|[a-zA-Z_][a-zA-Z_0-9]*)\\$",_="BIGINT INT8 BIGSERIAL SERIAL8 BIT VARYING VARBIT BOOLEAN BOOL BOX BYTEA CHARACTER CHAR VARCHAR CIDR CIRCLE DATE DOUBLE PRECISION FLOAT8 FLOAT INET INTEGER INT INT4 INTERVAL JSON JSONB LINE LSEG|10 MACADDR MACADDR8 MONEY NUMERIC DEC DECIMAL PATH POINT POLYGON REAL FLOAT4 SMALLINT INT2 SMALLSERIAL|10 SERIAL2|10 SERIAL|10 SERIAL4|10 TEXT TIME ZONE TIMETZ|10 TIMESTAMP TIMESTAMPTZ|10 TSQUERY|10 TSVECTOR|10 TXID_SNAPSHOT|10 UUID XML NATIONAL NCHAR INT4RANGE|10 INT8RANGE|10 NUMRANGE|10 TSRANGE|10 TSTZRANGE|10 DATERANGE|10 ANYELEMENT ANYARRAY ANYNONARRAY ANYENUM ANYRANGE CSTRING INTERNAL RECORD PG_DDL_COMMAND VOID UNKNOWN OPAQUE REFCURSOR NAME OID REGPROC|10 REGPROCEDURE|10 REGOPER|10 REGOPERATOR|10 REGCLASS|10 REGTYPE|10 REGROLE|10 REGNAMESPACE|10 REGCONFIG|10 REGDICTIONARY|10 ",d=_.trim().split(" ").map(function(T){return T.split("|")[0]}).join("|"),g="ARRAY_AGG AVG BIT_AND BIT_OR BOOL_AND BOOL_OR COUNT EVERY JSON_AGG JSONB_AGG JSON_OBJECT_AGG JSONB_OBJECT_AGG MAX MIN MODE STRING_AGG SUM XMLAGG CORR COVAR_POP COVAR_SAMP REGR_AVGX REGR_AVGY REGR_COUNT REGR_INTERCEPT REGR_R2 REGR_SLOPE REGR_SXX REGR_SXY REGR_SYY STDDEV STDDEV_POP STDDEV_SAMP VARIANCE VAR_POP VAR_SAMP PERCENTILE_CONT PERCENTILE_DISC ROW_NUMBER RANK DENSE_RANK PERCENT_RANK CUME_DIST NTILE LAG LEAD FIRST_VALUE LAST_VALUE NTH_VALUE NUM_NONNULLS NUM_NULLS ABS CBRT CEIL CEILING DEGREES DIV EXP FLOOR LN LOG MOD PI POWER RADIANS ROUND SCALE SIGN SQRT TRUNC WIDTH_BUCKET RANDOM SETSEED ACOS ACOSD ASIN ASIND ATAN ATAND ATAN2 ATAN2D COS COSD COT COTD SIN SIND TAN TAND BIT_LENGTH CHAR_LENGTH CHARACTER_LENGTH LOWER OCTET_LENGTH OVERLAY POSITION SUBSTRING TREAT TRIM UPPER ASCII BTRIM CHR CONCAT CONCAT_WS CONVERT CONVERT_FROM CONVERT_TO DECODE ENCODE INITCAP LEFT LENGTH LPAD LTRIM MD5 PARSE_IDENT PG_CLIENT_ENCODING QUOTE_IDENT|10 QUOTE_LITERAL|10 QUOTE_NULLABLE|10 REGEXP_MATCH REGEXP_MATCHES REGEXP_REPLACE REGEXP_SPLIT_TO_ARRAY REGEXP_SPLIT_TO_TABLE REPEAT REPLACE REVERSE RIGHT RPAD RTRIM SPLIT_PART STRPOS SUBSTR TO_ASCII TO_HEX TRANSLATE OCTET_LENGTH GET_BIT GET_BYTE SET_BIT SET_BYTE TO_CHAR TO_DATE TO_NUMBER TO_TIMESTAMP AGE CLOCK_TIMESTAMP|10 DATE_PART DATE_TRUNC ISFINITE JUSTIFY_DAYS JUSTIFY_HOURS JUSTIFY_INTERVAL MAKE_DATE MAKE_INTERVAL|10 MAKE_TIME MAKE_TIMESTAMP|10 MAKE_TIMESTAMPTZ|10 NOW STATEMENT_TIMESTAMP|10 TIMEOFDAY TRANSACTION_TIMESTAMP|10 ENUM_FIRST ENUM_LAST ENUM_RANGE AREA CENTER DIAMETER HEIGHT ISCLOSED ISOPEN NPOINTS PCLOSE POPEN RADIUS WIDTH BOX BOUND_BOX CIRCLE LINE LSEG PATH POLYGON ABBREV BROADCAST HOST HOSTMASK MASKLEN NETMASK NETWORK SET_MASKLEN TEXT INET_SAME_FAMILY INET_MERGE MACADDR8_SET7BIT ARRAY_TO_TSVECTOR GET_CURRENT_TS_CONFIG NUMNODE PLAINTO_TSQUERY PHRASETO_TSQUERY WEBSEARCH_TO_TSQUERY QUERYTREE SETWEIGHT STRIP TO_TSQUERY TO_TSVECTOR JSON_TO_TSVECTOR JSONB_TO_TSVECTOR TS_DELETE TS_FILTER TS_HEADLINE TS_RANK TS_RANK_CD TS_REWRITE TSQUERY_PHRASE TSVECTOR_TO_ARRAY TSVECTOR_UPDATE_TRIGGER TSVECTOR_UPDATE_TRIGGER_COLUMN XMLCOMMENT XMLCONCAT XMLELEMENT XMLFOREST XMLPI XMLROOT XMLEXISTS XML_IS_WELL_FORMED XML_IS_WELL_FORMED_DOCUMENT XML_IS_WELL_FORMED_CONTENT XPATH XPATH_EXISTS XMLTABLE XMLNAMESPACES TABLE_TO_XML TABLE_TO_XMLSCHEMA TABLE_TO_XML_AND_XMLSCHEMA QUERY_TO_XML QUERY_TO_XMLSCHEMA QUERY_TO_XML_AND_XMLSCHEMA CURSOR_TO_XML CURSOR_TO_XMLSCHEMA SCHEMA_TO_XML SCHEMA_TO_XMLSCHEMA SCHEMA_TO_XML_AND_XMLSCHEMA DATABASE_TO_XML DATABASE_TO_XMLSCHEMA DATABASE_TO_XML_AND_XMLSCHEMA XMLATTRIBUTES TO_JSON TO_JSONB ARRAY_TO_JSON ROW_TO_JSON JSON_BUILD_ARRAY JSONB_BUILD_ARRAY JSON_BUILD_OBJECT JSONB_BUILD_OBJECT JSON_OBJECT JSONB_OBJECT JSON_ARRAY_LENGTH JSONB_ARRAY_LENGTH JSON_EACH JSONB_EACH JSON_EACH_TEXT JSONB_EACH_TEXT JSON_EXTRACT_PATH JSONB_EXTRACT_PATH JSON_OBJECT_KEYS JSONB_OBJECT_KEYS JSON_POPULATE_RECORD JSONB_POPULATE_RECORD JSON_POPULATE_RECORDSET JSONB_POPULATE_RECORDSET JSON_ARRAY_ELEMENTS JSONB_ARRAY_ELEMENTS JSON_ARRAY_ELEMENTS_TEXT JSONB_ARRAY_ELEMENTS_TEXT JSON_TYPEOF JSONB_TYPEOF JSON_TO_RECORD JSONB_TO_RECORD JSON_TO_RECORDSET JSONB_TO_RECORDSET JSON_STRIP_NULLS JSONB_STRIP_NULLS JSONB_SET JSONB_INSERT JSONB_PRETTY CURRVAL LASTVAL NEXTVAL SETVAL COALESCE NULLIF GREATEST LEAST ARRAY_APPEND ARRAY_CAT ARRAY_NDIMS ARRAY_DIMS ARRAY_FILL ARRAY_LENGTH ARRAY_LOWER ARRAY_POSITION ARRAY_POSITIONS ARRAY_PREPEND ARRAY_REMOVE ARRAY_REPLACE ARRAY_TO_STRING ARRAY_UPPER CARDINALITY STRING_TO_ARRAY UNNEST ISEMPTY LOWER_INC UPPER_INC LOWER_INF UPPER_INF RANGE_MERGE GENERATE_SERIES GENERATE_SUBSCRIPTS CURRENT_DATABASE CURRENT_QUERY CURRENT_SCHEMA|10 CURRENT_SCHEMAS|10 INET_CLIENT_ADDR INET_CLIENT_PORT INET_SERVER_ADDR INET_SERVER_PORT ROW_SECURITY_ACTIVE FORMAT_TYPE TO_REGCLASS TO_REGPROC TO_REGPROCEDURE TO_REGOPER TO_REGOPERATOR TO_REGTYPE TO_REGNAMESPACE TO_REGROLE COL_DESCRIPTION OBJ_DESCRIPTION SHOBJ_DESCRIPTION TXID_CURRENT TXID_CURRENT_IF_ASSIGNED TXID_CURRENT_SNAPSHOT TXID_SNAPSHOT_XIP TXID_SNAPSHOT_XMAX TXID_SNAPSHOT_XMIN TXID_VISIBLE_IN_SNAPSHOT TXID_STATUS CURRENT_SETTING SET_CONFIG BRIN_SUMMARIZE_NEW_VALUES BRIN_SUMMARIZE_RANGE BRIN_DESUMMARIZE_RANGE GIN_CLEAN_PENDING_LIST SUPPRESS_REDUNDANT_UPDATES_TRIGGER LO_FROM_BYTEA LO_PUT LO_GET LO_CREAT LO_CREATE LO_UNLINK LO_IMPORT LO_EXPORT LOREAD LOWRITE GROUPING CAST ".trim().split(" ").map(function(T){return T.split("|")[0]}).join("|");return{name:"PostgreSQL",aliases:["postgres","postgresql"],supersetOf:"sql",case_insensitive:!0,keywords:{keyword:"ABORT ALTER ANALYZE BEGIN CALL CHECKPOINT|10 CLOSE CLUSTER COMMENT COMMIT COPY CREATE DEALLOCATE DECLARE DELETE DISCARD DO DROP END EXECUTE EXPLAIN FETCH GRANT IMPORT INSERT LISTEN LOAD LOCK MOVE NOTIFY PREPARE REASSIGN|10 REFRESH REINDEX RELEASE RESET REVOKE ROLLBACK SAVEPOINT SECURITY SELECT SET SHOW START TRUNCATE UNLISTEN|10 UPDATE VACUUM|10 VALUES AGGREGATE COLLATION CONVERSION|10 DATABASE DEFAULT PRIVILEGES DOMAIN TRIGGER EXTENSION FOREIGN WRAPPER|10 TABLE FUNCTION GROUP LANGUAGE LARGE OBJECT MATERIALIZED VIEW OPERATOR CLASS FAMILY POLICY PUBLICATION|10 ROLE RULE SCHEMA SEQUENCE SERVER STATISTICS SUBSCRIPTION SYSTEM TABLESPACE CONFIGURATION DICTIONARY PARSER TEMPLATE TYPE USER MAPPING PREPARED ACCESS METHOD CAST AS TRANSFORM TRANSACTION OWNED TO INTO SESSION AUTHORIZATION INDEX PROCEDURE ASSERTION ALL ANALYSE AND ANY ARRAY ASC ASYMMETRIC|10 BOTH CASE CHECK COLLATE COLUMN CONCURRENTLY|10 CONSTRAINT CROSS DEFERRABLE RANGE DESC DISTINCT ELSE EXCEPT FOR FREEZE|10 FROM FULL HAVING ILIKE IN INITIALLY INNER INTERSECT IS ISNULL JOIN LATERAL LEADING LIKE LIMIT NATURAL NOT NOTNULL NULL OFFSET ON ONLY OR ORDER OUTER OVERLAPS PLACING PRIMARY REFERENCES RETURNING SIMILAR SOME SYMMETRIC TABLESAMPLE THEN TRAILING UNION UNIQUE USING VARIADIC|10 VERBOSE WHEN WHERE WINDOW WITH BY RETURNS INOUT OUT SETOF|10 IF STRICT CURRENT CONTINUE OWNER LOCATION OVER PARTITION WITHIN BETWEEN ESCAPE EXTERNAL INVOKER DEFINER WORK RENAME VERSION CONNECTION CONNECT TABLES TEMP TEMPORARY FUNCTIONS SEQUENCES TYPES SCHEMAS OPTION CASCADE RESTRICT ADD ADMIN EXISTS VALID VALIDATE ENABLE DISABLE REPLICA|10 ALWAYS PASSING COLUMNS PATH REF VALUE OVERRIDING IMMUTABLE STABLE VOLATILE BEFORE AFTER EACH ROW PROCEDURAL ROUTINE NO HANDLER VALIDATOR OPTIONS STORAGE OIDS|10 WITHOUT INHERIT DEPENDS CALLED INPUT LEAKPROOF|10 COST ROWS NOWAIT SEARCH UNTIL ENCRYPTED|10 PASSWORD CONFLICT|10 INSTEAD INHERITS CHARACTERISTICS WRITE CURSOR ALSO STATEMENT SHARE EXCLUSIVE INLINE ISOLATION REPEATABLE READ COMMITTED SERIALIZABLE UNCOMMITTED LOCAL GLOBAL SQL PROCEDURES RECURSIVE SNAPSHOT ROLLUP CUBE TRUSTED|10 INCLUDE FOLLOWING PRECEDING UNBOUNDED RANGE GROUPS UNENCRYPTED|10 SYSID FORMAT DELIMITER HEADER QUOTE ENCODING FILTER OFF FORCE_QUOTE FORCE_NOT_NULL FORCE_NULL COSTS BUFFERS TIMING SUMMARY DISABLE_PAGE_SKIPPING RESTART CYCLE GENERATED IDENTITY DEFERRED IMMEDIATE LEVEL LOGGED UNLOGGED OF NOTHING NONE EXCLUDE ATTRIBUTE USAGE ROUTINES TRUE FALSE NAN INFINITY ALIAS BEGIN CONSTANT DECLARE END EXCEPTION RETURN PERFORM|10 RAISE GET DIAGNOSTICS STACKED|10 FOREACH LOOP ELSIF EXIT WHILE REVERSE SLICE DEBUG LOG INFO NOTICE WARNING ASSERT OPEN SUPERUSER NOSUPERUSER CREATEDB NOCREATEDB CREATEROLE NOCREATEROLE INHERIT NOINHERIT LOGIN NOLOGIN REPLICATION NOREPLICATION BYPASSRLS NOBYPASSRLS ",built_in:"CURRENT_TIME CURRENT_TIMESTAMP CURRENT_USER CURRENT_CATALOG|10 CURRENT_DATE LOCALTIME LOCALTIMESTAMP CURRENT_ROLE|10 CURRENT_SCHEMA|10 SESSION_USER PUBLIC FOUND NEW OLD TG_NAME|10 TG_WHEN|10 TG_LEVEL|10 TG_OP|10 TG_RELID|10 TG_RELNAME|10 TG_TABLE_NAME|10 TG_TABLE_SCHEMA|10 TG_NARGS|10 TG_ARGV|10 TG_EVENT|10 TG_TAG|10 ROW_COUNT RESULT_OID|10 PG_CONTEXT|10 RETURNED_SQLSTATE COLUMN_NAME CONSTRAINT_NAME PG_DATATYPE_NAME|10 MESSAGE_TEXT TABLE_NAME SCHEMA_NAME PG_EXCEPTION_DETAIL|10 PG_EXCEPTION_HINT|10 PG_EXCEPTION_CONTEXT|10 SQLSTATE SQLERRM|10 SUCCESSFUL_COMPLETION WARNING DYNAMIC_RESULT_SETS_RETURNED IMPLICIT_ZERO_BIT_PADDING NULL_VALUE_ELIMINATED_IN_SET_FUNCTION PRIVILEGE_NOT_GRANTED PRIVILEGE_NOT_REVOKED STRING_DATA_RIGHT_TRUNCATION DEPRECATED_FEATURE NO_DATA NO_ADDITIONAL_DYNAMIC_RESULT_SETS_RETURNED SQL_STATEMENT_NOT_YET_COMPLETE CONNECTION_EXCEPTION CONNECTION_DOES_NOT_EXIST CONNECTION_FAILURE SQLCLIENT_UNABLE_TO_ESTABLISH_SQLCONNECTION SQLSERVER_REJECTED_ESTABLISHMENT_OF_SQLCONNECTION TRANSACTION_RESOLUTION_UNKNOWN PROTOCOL_VIOLATION TRIGGERED_ACTION_EXCEPTION FEATURE_NOT_SUPPORTED INVALID_TRANSACTION_INITIATION LOCATOR_EXCEPTION INVALID_LOCATOR_SPECIFICATION INVALID_GRANTOR INVALID_GRANT_OPERATION INVALID_ROLE_SPECIFICATION DIAGNOSTICS_EXCEPTION STACKED_DIAGNOSTICS_ACCESSED_WITHOUT_ACTIVE_HANDLER CASE_NOT_FOUND CARDINALITY_VIOLATION DATA_EXCEPTION ARRAY_SUBSCRIPT_ERROR CHARACTER_NOT_IN_REPERTOIRE DATETIME_FIELD_OVERFLOW DIVISION_BY_ZERO ERROR_IN_ASSIGNMENT ESCAPE_CHARACTER_CONFLICT INDICATOR_OVERFLOW INTERVAL_FIELD_OVERFLOW INVALID_ARGUMENT_FOR_LOGARITHM INVALID_ARGUMENT_FOR_NTILE_FUNCTION INVALID_ARGUMENT_FOR_NTH_VALUE_FUNCTION INVALID_ARGUMENT_FOR_POWER_FUNCTION INVALID_ARGUMENT_FOR_WIDTH_BUCKET_FUNCTION INVALID_CHARACTER_VALUE_FOR_CAST INVALID_DATETIME_FORMAT INVALID_ESCAPE_CHARACTER INVALID_ESCAPE_OCTET INVALID_ESCAPE_SEQUENCE NONSTANDARD_USE_OF_ESCAPE_CHARACTER INVALID_INDICATOR_PARAMETER_VALUE INVALID_PARAMETER_VALUE INVALID_REGULAR_EXPRESSION INVALID_ROW_COUNT_IN_LIMIT_CLAUSE INVALID_ROW_COUNT_IN_RESULT_OFFSET_CLAUSE INVALID_TABLESAMPLE_ARGUMENT INVALID_TABLESAMPLE_REPEAT INVALID_TIME_ZONE_DISPLACEMENT_VALUE INVALID_USE_OF_ESCAPE_CHARACTER MOST_SPECIFIC_TYPE_MISMATCH NULL_VALUE_NOT_ALLOWED NULL_VALUE_NO_INDICATOR_PARAMETER NUMERIC_VALUE_OUT_OF_RANGE SEQUENCE_GENERATOR_LIMIT_EXCEEDED STRING_DATA_LENGTH_MISMATCH STRING_DATA_RIGHT_TRUNCATION SUBSTRING_ERROR TRIM_ERROR UNTERMINATED_C_STRING ZERO_LENGTH_CHARACTER_STRING FLOATING_POINT_EXCEPTION INVALID_TEXT_REPRESENTATION INVALID_BINARY_REPRESENTATION BAD_COPY_FILE_FORMAT UNTRANSLATABLE_CHARACTER NOT_AN_XML_DOCUMENT INVALID_XML_DOCUMENT INVALID_XML_CONTENT INVALID_XML_COMMENT INVALID_XML_PROCESSING_INSTRUCTION INTEGRITY_CONSTRAINT_VIOLATION RESTRICT_VIOLATION NOT_NULL_VIOLATION FOREIGN_KEY_VIOLATION UNIQUE_VIOLATION CHECK_VIOLATION EXCLUSION_VIOLATION INVALID_CURSOR_STATE INVALID_TRANSACTION_STATE ACTIVE_SQL_TRANSACTION BRANCH_TRANSACTION_ALREADY_ACTIVE HELD_CURSOR_REQUIRES_SAME_ISOLATION_LEVEL INAPPROPRIATE_ACCESS_MODE_FOR_BRANCH_TRANSACTION INAPPROPRIATE_ISOLATION_LEVEL_FOR_BRANCH_TRANSACTION NO_ACTIVE_SQL_TRANSACTION_FOR_BRANCH_TRANSACTION READ_ONLY_SQL_TRANSACTION SCHEMA_AND_DATA_STATEMENT_MIXING_NOT_SUPPORTED NO_ACTIVE_SQL_TRANSACTION IN_FAILED_SQL_TRANSACTION IDLE_IN_TRANSACTION_SESSION_TIMEOUT INVALID_SQL_STATEMENT_NAME TRIGGERED_DATA_CHANGE_VIOLATION INVALID_AUTHORIZATION_SPECIFICATION INVALID_PASSWORD DEPENDENT_PRIVILEGE_DESCRIPTORS_STILL_EXIST DEPENDENT_OBJECTS_STILL_EXIST INVALID_TRANSACTION_TERMINATION SQL_ROUTINE_EXCEPTION FUNCTION_EXECUTED_NO_RETURN_STATEMENT MODIFYING_SQL_DATA_NOT_PERMITTED PROHIBITED_SQL_STATEMENT_ATTEMPTED READING_SQL_DATA_NOT_PERMITTED INVALID_CURSOR_NAME EXTERNAL_ROUTINE_EXCEPTION CONTAINING_SQL_NOT_PERMITTED MODIFYING_SQL_DATA_NOT_PERMITTED PROHIBITED_SQL_STATEMENT_ATTEMPTED READING_SQL_DATA_NOT_PERMITTED EXTERNAL_ROUTINE_INVOCATION_EXCEPTION INVALID_SQLSTATE_RETURNED NULL_VALUE_NOT_ALLOWED TRIGGER_PROTOCOL_VIOLATED SRF_PROTOCOL_VIOLATED EVENT_TRIGGER_PROTOCOL_VIOLATED SAVEPOINT_EXCEPTION INVALID_SAVEPOINT_SPECIFICATION INVALID_CATALOG_NAME INVALID_SCHEMA_NAME TRANSACTION_ROLLBACK TRANSACTION_INTEGRITY_CONSTRAINT_VIOLATION SERIALIZATION_FAILURE STATEMENT_COMPLETION_UNKNOWN DEADLOCK_DETECTED SYNTAX_ERROR_OR_ACCESS_RULE_VIOLATION SYNTAX_ERROR INSUFFICIENT_PRIVILEGE CANNOT_COERCE GROUPING_ERROR WINDOWING_ERROR INVALID_RECURSION INVALID_FOREIGN_KEY INVALID_NAME NAME_TOO_LONG RESERVED_NAME DATATYPE_MISMATCH INDETERMINATE_DATATYPE COLLATION_MISMATCH INDETERMINATE_COLLATION WRONG_OBJECT_TYPE GENERATED_ALWAYS UNDEFINED_COLUMN UNDEFINED_FUNCTION UNDEFINED_TABLE UNDEFINED_PARAMETER UNDEFINED_OBJECT DUPLICATE_COLUMN DUPLICATE_CURSOR DUPLICATE_DATABASE DUPLICATE_FUNCTION DUPLICATE_PREPARED_STATEMENT DUPLICATE_SCHEMA DUPLICATE_TABLE DUPLICATE_ALIAS DUPLICATE_OBJECT AMBIGUOUS_COLUMN AMBIGUOUS_FUNCTION AMBIGUOUS_PARAMETER AMBIGUOUS_ALIAS INVALID_COLUMN_REFERENCE INVALID_COLUMN_DEFINITION INVALID_CURSOR_DEFINITION INVALID_DATABASE_DEFINITION INVALID_FUNCTION_DEFINITION INVALID_PREPARED_STATEMENT_DEFINITION INVALID_SCHEMA_DEFINITION INVALID_TABLE_DEFINITION INVALID_OBJECT_DEFINITION WITH_CHECK_OPTION_VIOLATION INSUFFICIENT_RESOURCES DISK_FULL OUT_OF_MEMORY TOO_MANY_CONNECTIONS CONFIGURATION_LIMIT_EXCEEDED PROGRAM_LIMIT_EXCEEDED STATEMENT_TOO_COMPLEX TOO_MANY_COLUMNS TOO_MANY_ARGUMENTS OBJECT_NOT_IN_PREREQUISITE_STATE OBJECT_IN_USE CANT_CHANGE_RUNTIME_PARAM LOCK_NOT_AVAILABLE OPERATOR_INTERVENTION QUERY_CANCELED ADMIN_SHUTDOWN CRASH_SHUTDOWN CANNOT_CONNECT_NOW DATABASE_DROPPED SYSTEM_ERROR IO_ERROR UNDEFINED_FILE DUPLICATE_FILE SNAPSHOT_TOO_OLD CONFIG_FILE_ERROR LOCK_FILE_EXISTS FDW_ERROR FDW_COLUMN_NAME_NOT_FOUND FDW_DYNAMIC_PARAMETER_VALUE_NEEDED FDW_FUNCTION_SEQUENCE_ERROR FDW_INCONSISTENT_DESCRIPTOR_INFORMATION FDW_INVALID_ATTRIBUTE_VALUE FDW_INVALID_COLUMN_NAME FDW_INVALID_COLUMN_NUMBER FDW_INVALID_DATA_TYPE FDW_INVALID_DATA_TYPE_DESCRIPTORS FDW_INVALID_DESCRIPTOR_FIELD_IDENTIFIER FDW_INVALID_HANDLE FDW_INVALID_OPTION_INDEX FDW_INVALID_OPTION_NAME FDW_INVALID_STRING_LENGTH_OR_BUFFER_LENGTH FDW_INVALID_STRING_FORMAT FDW_INVALID_USE_OF_NULL_POINTER FDW_TOO_MANY_HANDLES FDW_OUT_OF_MEMORY FDW_NO_SCHEMAS FDW_OPTION_NAME_NOT_FOUND FDW_REPLY_HANDLE FDW_SCHEMA_NOT_FOUND FDW_TABLE_NOT_FOUND FDW_UNABLE_TO_CREATE_EXECUTION FDW_UNABLE_TO_CREATE_REPLY FDW_UNABLE_TO_ESTABLISH_CONNECTION PLPGSQL_ERROR RAISE_EXCEPTION NO_DATA_FOUND TOO_MANY_ROWS ASSERT_FAILURE INTERNAL_ERROR DATA_CORRUPTED INDEX_CORRUPTED "},illegal:/:==|\W\s*\(\*|(^|\s)\$[a-z]|\{\{|[a-z]:\s*$|\.\.\.|TO:|DO:/,contains:[{className:"keyword",variants:[{begin:/\bTEXT\s*SEARCH\b/},{begin:/\b(PRIMARY|FOREIGN|FOR(\s+NO)?)\s+KEY\b/},{begin:/\bPARALLEL\s+(UNSAFE|RESTRICTED|SAFE)\b/},{begin:/\bSTORAGE\s+(PLAIN|EXTERNAL|EXTENDED|MAIN)\b/},{begin:/\bMATCH\s+(FULL|PARTIAL|SIMPLE)\b/},{begin:/\bNULLS\s+(FIRST|LAST)\b/},{begin:/\bEVENT\s+TRIGGER\b/},{begin:/\b(MAPPING|OR)\s+REPLACE\b/},{begin:/\b(FROM|TO)\s+(PROGRAM|STDIN|STDOUT)\b/},{begin:/\b(SHARE|EXCLUSIVE)\s+MODE\b/},{begin:/\b(LEFT|RIGHT)\s+(OUTER\s+)?JOIN\b/},{begin:/\b(FETCH|MOVE)\s+(NEXT|PRIOR|FIRST|LAST|ABSOLUTE|RELATIVE|FORWARD|BACKWARD)\b/},{begin:/\bPRESERVE\s+ROWS\b/},{begin:/\bDISCARD\s+PLANS\b/},{begin:/\bREFERENCING\s+(OLD|NEW)\b/},{begin:/\bSKIP\s+LOCKED\b/},{begin:/\bGROUPING\s+SETS\b/},{begin:/\b(BINARY|INSENSITIVE|SCROLL|NO\s+SCROLL)\s+(CURSOR|FOR)\b/},{begin:/\b(WITH|WITHOUT)\s+HOLD\b/},{begin:/\bWITH\s+(CASCADED|LOCAL)\s+CHECK\s+OPTION\b/},{begin:/\bEXCLUDE\s+(TIES|NO\s+OTHERS)\b/},{begin:/\bFORMAT\s+(TEXT|XML|JSON|YAML)\b/},{begin:/\bSET\s+((SESSION|LOCAL)\s+)?NAMES\b/},{begin:/\bIS\s+(NOT\s+)?UNKNOWN\b/},{begin:/\bSECURITY\s+LABEL\b/},{begin:/\bSTANDALONE\s+(YES|NO|NO\s+VALUE)\b/},{begin:/\bWITH\s+(NO\s+)?DATA\b/},{begin:/\b(FOREIGN|SET)\s+DATA\b/},{begin:/\bSET\s+(CATALOG|CONSTRAINTS)\b/},{begin:/\b(WITH|FOR)\s+ORDINALITY\b/},{begin:/\bIS\s+(NOT\s+)?DOCUMENT\b/},{begin:/\bXML\s+OPTION\s+(DOCUMENT|CONTENT)\b/},{begin:/\b(STRIP|PRESERVE)\s+WHITESPACE\b/},{begin:/\bNO\s+(ACTION|MAXVALUE|MINVALUE)\b/},{begin:/\bPARTITION\s+BY\s+(RANGE|LIST|HASH)\b/},{begin:/\bAT\s+TIME\s+ZONE\b/},{begin:/\bGRANTED\s+BY\b/},{begin:/\bRETURN\s+(QUERY|NEXT)\b/},{begin:/\b(ATTACH|DETACH)\s+PARTITION\b/},{begin:/\bFORCE\s+ROW\s+LEVEL\s+SECURITY\b/},{begin:/\b(INCLUDING|EXCLUDING)\s+(COMMENTS|CONSTRAINTS|DEFAULTS|IDENTITY|INDEXES|STATISTICS|STORAGE|ALL)\b/},{begin:/\bAS\s+(ASSIGNMENT|IMPLICIT|PERMISSIVE|RESTRICTIVE|ENUM|RANGE)\b/}]},{begin:/\b(FORMAT|FAMILY|VERSION)\s*\(/},{begin:/\bINCLUDE\s*\(/,keywords:"INCLUDE"},{begin:/\bRANGE(?!\s*(BETWEEN|UNBOUNDED|CURRENT|[-0-9]+))/},{begin:/\b(VERSION|OWNER|TEMPLATE|TABLESPACE|CONNECTION\s+LIMIT|PROCEDURE|RESTRICT|JOIN|PARSER|COPY|START|END|COLLATION|INPUT|ANALYZE|STORAGE|LIKE|DEFAULT|DELIMITER|ENCODING|COLUMN|CONSTRAINT|TABLE|SCHEMA)\s*=/},{begin:/\b(PG_\w+?|HAS_[A-Z_]+_PRIVILEGE)\b/,relevance:10},{begin:/\bEXTRACT\s*\(/,end:/\bFROM\b/,returnEnd:!0,keywords:{type:"CENTURY DAY DECADE DOW DOY EPOCH HOUR ISODOW ISOYEAR MICROSECONDS MILLENNIUM MILLISECONDS MINUTE MONTH QUARTER SECOND TIMEZONE TIMEZONE_HOUR TIMEZONE_MINUTE WEEK YEAR"}},{begin:/\b(XMLELEMENT|XMLPI)\s*\(\s*NAME/,keywords:{keyword:"NAME"}},{begin:/\b(XMLPARSE|XMLSERIALIZE)\s*\(\s*(DOCUMENT|CONTENT)/,keywords:{keyword:"DOCUMENT CONTENT"}},{beginKeywords:"CACHE INCREMENT MAXVALUE MINVALUE",end:e.C_NUMBER_RE,returnEnd:!0,keywords:"BY CACHE INCREMENT MAXVALUE MINVALUE"},{className:"type",begin:/\b(WITH|WITHOUT)\s+TIME\s+ZONE\b/},{className:"type",begin:/\bINTERVAL\s+(YEAR|MONTH|DAY|HOUR|MINUTE|SECOND)(\s+TO\s+(MONTH|HOUR|MINUTE|SECOND))?\b/},{begin:/\bRETURNS\s+(LANGUAGE_HANDLER|TRIGGER|EVENT_TRIGGER|FDW_HANDLER|INDEX_AM_HANDLER|TSM_HANDLER)\b/,keywords:{keyword:"RETURNS",type:"LANGUAGE_HANDLER TRIGGER EVENT_TRIGGER FDW_HANDLER INDEX_AM_HANDLER TSM_HANDLER"}},{begin:"\\b("+g+")\\s*\\("},{begin:"\\.("+d+")\\b"},{begin:"\\b("+d+")\\s+PATH\\b",keywords:{keyword:"PATH",type:_.replace("PATH ","")}},{className:"type",begin:"\\b("+d+")\\b"},{className:"string",begin:"'",end:"'",contains:[{begin:"''"}]},{className:"string",begin:"(e|E|u&|U&)'",end:"'",contains:[{begin:"\\\\."}],relevance:10},e.END_SAME_AS_BEGIN({begin:i,end:i,contains:[{subLanguage:["pgsql","perl","python","tcl","r","lua","java","php","ruby","bash","scheme","xml","json"],endsWithParent:!0}]}),{begin:'"',end:'"',contains:[{begin:'""'}]},e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,t,{className:"meta",variants:[{begin:"%(ROW)?TYPE",relevance:10},{begin:"\\$\\d+"},{begin:"^#\\w",end:"$"}]},{className:"symbol",begin:"<<\\s*[a-zA-Z_][a-zA-Z_0-9$]*\\s*>>",relevance:10}]}}},1164:r=>{r.exports=function a(e){return{name:"PHP template",subLanguage:"xml",contains:[{begin:/<\?(php|=)?/,end:/\?>/,subLanguage:"php",contains:[{begin:"/\\*",end:"\\*/",skip:!0},{begin:'b"',end:'"',skip:!0},{begin:"b'",end:"'",skip:!0},e.inherit(e.APOS_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0})]}]}}},8188:r=>{r.exports=function a(e){const t=e.regex,n=/(?![A-Za-z0-9])(?![$])/,i=t.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,n),o=t.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,n),c={scope:"variable",match:"\\$+"+i},l={scope:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},_=e.inherit(e.APOS_STRING_MODE,{illegal:null}),p="[ \t\n]",S={scope:"string",variants:[e.inherit(e.QUOTE_STRING_MODE,{illegal:null,contains:e.QUOTE_STRING_MODE.contains.concat(l)}),_,{begin:/<<<[ \t]*(?:(\w+)|"(\w+)")\n/,end:/[ \t]*(\w+)\b/,contains:e.QUOTE_STRING_MODE.contains.concat(l),"on:begin":(K,V)=>{V.data._beginMatch=K[1]||K[2]},"on:end":(K,V)=>{V.data._beginMatch!==K[1]&&V.ignoreMatch()}},e.END_SAME_AS_BEGIN({begin:/<<<[ \t]*'(\w+)'\n/,end:/[ \t]*(\w+)\b/})]},g={scope:"number",variants:[{begin:"\\b0[bB][01]+(?:_[01]+)*\\b"},{begin:"\\b0[oO][0-7]+(?:_[0-7]+)*\\b"},{begin:"\\b0[xX][\\da-fA-F]+(?:_[\\da-fA-F]+)*\\b"},{begin:"(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:[eE][+-]?\\d+)?"}],relevance:0},T=["false","null","true"],R=["__CLASS__","__DIR__","__FILE__","__FUNCTION__","__COMPILER_HALT_OFFSET__","__LINE__","__METHOD__","__NAMESPACE__","__TRAIT__","die","echo","exit","include","include_once","print","require","require_once","array","abstract","and","as","binary","bool","boolean","break","callable","case","catch","class","clone","const","continue","declare","default","do","double","else","elseif","empty","enddeclare","endfor","endforeach","endif","endswitch","endwhile","enum","eval","extends","final","finally","float","for","foreach","from","global","goto","if","implements","instanceof","insteadof","int","integer","interface","isset","iterable","list","match|0","mixed","new","never","object","or","private","protected","public","readonly","real","return","string","switch","throw","trait","try","unset","use","var","void","while","xor","yield"],C=["Error|0","AppendIterator","ArgumentCountError","ArithmeticError","ArrayIterator","ArrayObject","AssertionError","BadFunctionCallException","BadMethodCallException","CachingIterator","CallbackFilterIterator","CompileError","Countable","DirectoryIterator","DivisionByZeroError","DomainException","EmptyIterator","ErrorException","Exception","FilesystemIterator","FilterIterator","GlobIterator","InfiniteIterator","InvalidArgumentException","IteratorIterator","LengthException","LimitIterator","LogicException","MultipleIterator","NoRewindIterator","OutOfBoundsException","OutOfRangeException","OuterIterator","OverflowException","ParentIterator","ParseError","RangeException","RecursiveArrayIterator","RecursiveCachingIterator","RecursiveCallbackFilterIterator","RecursiveDirectoryIterator","RecursiveFilterIterator","RecursiveIterator","RecursiveIteratorIterator","RecursiveRegexIterator","RecursiveTreeIterator","RegexIterator","RuntimeException","SeekableIterator","SplDoublyLinkedList","SplFileInfo","SplFileObject","SplFixedArray","SplHeap","SplMaxHeap","SplMinHeap","SplObjectStorage","SplObserver","SplPriorityQueue","SplQueue","SplStack","SplSubject","SplTempFileObject","TypeError","UnderflowException","UnexpectedValueException","UnhandledMatchError","ArrayAccess","BackedEnum","Closure","Fiber","Generator","Iterator","IteratorAggregate","Serializable","Stringable","Throwable","Traversable","UnitEnum","WeakReference","WeakMap","Directory","__PHP_Incomplete_Class","parent","php_user_filter","self","static","stdClass"],v={keyword:R,literal:(K=>{const V=[];return K.forEach(J=>{V.push(J),J.toLowerCase()===J?V.push(J.toUpperCase()):V.push(J.toLowerCase())}),V})(T),built_in:C},y=K=>K.map(V=>V.replace(/\|\d+$/,"")),O={variants:[{match:[/new/,t.concat(p,"+"),t.concat("(?!",y(C).join("\\b|"),"\\b)"),o],scope:{1:"keyword",4:"title.class"}}]},w=t.concat(i,"\\b(?!\\()"),D={variants:[{match:[t.concat(/::/,t.lookahead(/(?!class\b)/)),w],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[o,t.concat(/::/,t.lookahead(/(?!class\b)/)),w],scope:{1:"title.class",3:"variable.constant"}},{match:[o,t.concat("::",t.lookahead(/(?!class\b)/))],scope:{1:"title.class"}},{match:[o,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},U={scope:"attr",match:t.concat(i,t.lookahead(":"),t.lookahead(/(?!::)/))},H={relevance:0,begin:/\(/,end:/\)/,keywords:v,contains:[U,c,D,e.C_BLOCK_COMMENT_MODE,S,g,O]},x={relevance:0,match:[/\b/,t.concat("(?!fn\\b|function\\b|",y(R).join("\\b|"),"|",y(C).join("\\b|"),"\\b)"),i,t.concat(p,"*"),t.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[H]};H.contains.push(x);const q=[U,D,e.C_BLOCK_COMMENT_MODE,S,g,O];return{case_insensitive:!1,keywords:v,contains:[{begin:t.concat(/#\[\s*/,o),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:T,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:T,keyword:["new","array"]},contains:["self",...q]},...q,{scope:"meta",match:o}]},e.HASH_COMMENT_MODE,e.COMMENT("//","$"),e.COMMENT("/\\*","\\*/",{contains:[{scope:"doctag",match:"@[A-Za-z]+"}]}),{match:/__halt_compiler\(\);/,keywords:"__halt_compiler",starts:{scope:"comment",end:e.MATCH_NOTHING_RE,contains:[{match:/\?>/,scope:"meta",endsParent:!0}]}},{scope:"meta",variants:[{begin:/<\?php/,relevance:10},{begin:/<\?=/},{begin:/<\?/,relevance:.1},{begin:/\?>/}]},{scope:"variable.language",match:/\$this\b/},c,x,D,{match:[/const/,/\s/,i],scope:{1:"keyword",3:"variable.constant"}},O,{scope:"function",relevance:0,beginKeywords:"fn function",end:/[;{]/,excludeEnd:!0,illegal:"[$%\\[]",contains:[{beginKeywords:"use"},e.UNDERSCORE_TITLE_MODE,{begin:"=>",endsParent:!0},{scope:"params",begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0,keywords:v,contains:["self",c,D,e.C_BLOCK_COMMENT_MODE,S,g]}]},{scope:"class",variants:[{beginKeywords:"enum",illegal:/[($"]/},{beginKeywords:"class interface trait",illegal:/[:($"]/}],relevance:0,end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"namespace",relevance:0,end:";",illegal:/[.']/,contains:[e.inherit(e.UNDERSCORE_TITLE_MODE,{scope:"title.class"})]},{beginKeywords:"use",relevance:0,end:";",contains:[{match:/\b(as|const|function)\b/,scope:"keyword"},e.UNDERSCORE_TITLE_MODE]},S,g]}}},7100:r=>{r.exports=function a(e){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}},7276:r=>{r.exports=function a(e){return{name:"Pony",keywords:{keyword:"actor addressof and as be break class compile_error compile_intrinsic consume continue delegate digestof do else elseif embed end error for fun if ifdef in interface is isnt lambda let match new not object or primitive recover repeat return struct then trait try type until use var where while with xor",meta:"iso val tag trn box ref",literal:"this false true"},contains:[{className:"type",begin:"\\b_?[A-Z][\\w]*",relevance:0},{className:"string",begin:'"""',end:'"""',relevance:10},{className:"string",begin:'"',end:'"',contains:[e.BACKSLASH_ESCAPE]},{className:"string",begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE],relevance:0},{begin:e.IDENT_RE+"'",relevance:0},{className:"number",begin:"(-?)(\\b0[xX][a-fA-F0-9]+|\\b0[bB][01]+|(\\b\\d+(_\\d+)?(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",relevance:0},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]}}},859:r=>{r.exports=function a(e){const o={$pattern:/-?[A-z\.\-]+\b/,keyword:"if else foreach return do while until elseif begin for trap data dynamicparam end break throw param continue finally in switch exit filter try process catch hidden static parameter",built_in:"ac asnp cat cd CFS chdir clc clear clhy cli clp cls clv cnsn compare copy cp cpi cpp curl cvpa dbp del diff dir dnsn ebp echo|0 epal epcsv epsn erase etsn exsn fc fhx fl ft fw gal gbp gc gcb gci gcm gcs gdr gerr ghy gi gin gjb gl gm gmo gp gps gpv group gsn gsnp gsv gtz gu gv gwmi h history icm iex ihy ii ipal ipcsv ipmo ipsn irm ise iwmi iwr kill lp ls man md measure mi mount move mp mv nal ndr ni nmo npssc nsn nv ogv oh popd ps pushd pwd r rbp rcjb rcsn rd rdr ren ri rjb rm rmdir rmo rni rnp rp rsn rsnp rujb rv rvpa rwmi sajb sal saps sasv sbp sc scb select set shcm si sl sleep sls sort sp spjb spps spsv start stz sujb sv swmi tee trcm type wget where wjb write"},s={begin:"`[\\s\\S]",relevance:0},l={className:"variable",variants:[{begin:/\$\B/},{className:"keyword",begin:/\$this/},{begin:/\$[\w\d][\w\d_:]*/}]},d={className:"string",variants:[{begin:/"/,end:/"/},{begin:/@"/,end:/^"@/}],contains:[s,l,{className:"variable",begin:/\$[A-z]/,end:/[^A-z]/}]},m={className:"string",variants:[{begin:/'/,end:/'/},{begin:/@'/,end:/^'@/}]},p=e.inherit(e.COMMENT(null,null),{variants:[{begin:/#/,end:/$/},{begin:/<#/,end:/#>/}],contains:[{className:"doctag",variants:[{begin:/\.(synopsis|description|example|inputs|outputs|notes|link|component|role|functionality)/},{begin:/\.(parameter|forwardhelptargetname|forwardhelpcategory|remotehelprunspace|externalhelp)\s+\S+/}]}]}),S={className:"built_in",variants:[{begin:"(".concat("Add|Clear|Close|Copy|Enter|Exit|Find|Format|Get|Hide|Join|Lock|Move|New|Open|Optimize|Pop|Push|Redo|Remove|Rename|Reset|Resize|Search|Select|Set|Show|Skip|Split|Step|Switch|Undo|Unlock|Watch|Backup|Checkpoint|Compare|Compress|Convert|ConvertFrom|ConvertTo|Dismount|Edit|Expand|Export|Group|Import|Initialize|Limit|Merge|Mount|Out|Publish|Restore|Save|Sync|Unpublish|Update|Approve|Assert|Build|Complete|Confirm|Deny|Deploy|Disable|Enable|Install|Invoke|Register|Request|Restart|Resume|Start|Stop|Submit|Suspend|Uninstall|Unregister|Wait|Debug|Measure|Ping|Repair|Resolve|Test|Trace|Connect|Disconnect|Read|Receive|Send|Write|Block|Grant|Protect|Revoke|Unblock|Unprotect|Use|ForEach|Sort|Tee|Where",")+(-)[\\w\\d]+")}]},g={className:"class",beginKeywords:"class enum",end:/\s*[{]/,excludeEnd:!0,relevance:0,contains:[e.TITLE_MODE]},T={className:"function",begin:/function\s+/,end:/\s*\{|$/,excludeEnd:!0,returnBegin:!0,relevance:0,contains:[{begin:"function",relevance:0,className:"keyword"},{className:"title",begin:/\w[\w\d]*((-)[\w\d]+)*/,relevance:0},{begin:/\(/,end:/\)/,className:"params",relevance:0,contains:[l]}]},R={begin:/using\s/,end:/$/,returnBegin:!0,contains:[d,m,{className:"keyword",begin:/(using|assembly|command|module|namespace|type)/}]},C={variants:[{className:"operator",begin:"(".concat("-and|-as|-band|-bnot|-bor|-bxor|-casesensitive|-ccontains|-ceq|-cge|-cgt|-cle|-clike|-clt|-cmatch|-cne|-cnotcontains|-cnotlike|-cnotmatch|-contains|-creplace|-csplit|-eq|-exact|-f|-file|-ge|-gt|-icontains|-ieq|-ige|-igt|-ile|-ilike|-ilt|-imatch|-in|-ine|-inotcontains|-inotlike|-inotmatch|-ireplace|-is|-isnot|-isplit|-join|-le|-like|-lt|-match|-ne|-not|-notcontains|-notin|-notlike|-notmatch|-or|-regex|-replace|-shl|-shr|-split|-wildcard|-xor",")\\b")},{className:"literal",begin:/(-){1,2}[\w\d-]+/,relevance:0}]},v={className:"function",begin:/\[.*\]\s*[\w]+[ ]??\(/,end:/$/,returnBegin:!0,relevance:0,contains:[{className:"keyword",begin:"(".concat(o.keyword.toString().replace(/\s/g,"|"),")\\b"),endsParent:!0,relevance:0},e.inherit(e.TITLE_MODE,{endsParent:!0})]},y=[v,p,s,e.NUMBER_MODE,d,m,S,l,{className:"literal",begin:/\$(null|true|false)\b/},{className:"selector-tag",begin:/@\B/,relevance:0}],O={begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0,relevance:0,contains:[].concat("self",y,{begin:"("+["string","char","byte","int","long","bool","decimal","single","double","DateTime","xml","array","hashtable","void"].join("|")+")",className:"built_in",relevance:0},{className:"type",begin:/[\.\w\d]+/,relevance:0})};return v.contains.unshift(O),{name:"PowerShell",aliases:["pwsh","ps","ps1"],case_insensitive:!0,keywords:o,contains:y.concat(g,T,R,C,O)}}},292:r=>{r.exports=function a(e){const t=e.regex,n=["displayHeight","displayWidth","mouseY","mouseX","mousePressed","pmouseX","pmouseY","key","keyCode","pixels","focused","frameCount","frameRate","height","width","size","createGraphics","beginDraw","createShape","loadShape","PShape","arc","ellipse","line","point","quad","rect","triangle","bezier","bezierDetail","bezierPoint","bezierTangent","curve","curveDetail","curvePoint","curveTangent","curveTightness","shape","shapeMode","beginContour","beginShape","bezierVertex","curveVertex","endContour","endShape","quadraticVertex","vertex","ellipseMode","noSmooth","rectMode","smooth","strokeCap","strokeJoin","strokeWeight","mouseClicked","mouseDragged","mouseMoved","mousePressed","mouseReleased","mouseWheel","keyPressed","keyPressedkeyReleased","keyTyped","print","println","save","saveFrame","day","hour","millis","minute","month","second","year","background","clear","colorMode","fill","noFill","noStroke","stroke","alpha","blue","brightness","color","green","hue","lerpColor","red","saturation","modelX","modelY","modelZ","screenX","screenY","screenZ","ambient","emissive","shininess","specular","add","createImage","beginCamera","camera","endCamera","frustum","ortho","perspective","printCamera","printProjection","cursor","frameRate","noCursor","exit","loop","noLoop","popStyle","pushStyle","redraw","binary","boolean","byte","char","float","hex","int","str","unbinary","unhex","join","match","matchAll","nf","nfc","nfp","nfs","split","splitTokens","trim","append","arrayCopy","concat","expand","reverse","shorten","sort","splice","subset","box","sphere","sphereDetail","createInput","createReader","loadBytes","loadJSONArray","loadJSONObject","loadStrings","loadTable","loadXML","open","parseXML","saveTable","selectFolder","selectInput","beginRaw","beginRecord","createOutput","createWriter","endRaw","endRecord","PrintWritersaveBytes","saveJSONArray","saveJSONObject","saveStream","saveStrings","saveXML","selectOutput","popMatrix","printMatrix","pushMatrix","resetMatrix","rotate","rotateX","rotateY","rotateZ","scale","shearX","shearY","translate","ambientLight","directionalLight","lightFalloff","lights","lightSpecular","noLights","normal","pointLight","spotLight","image","imageMode","loadImage","noTint","requestImage","tint","texture","textureMode","textureWrap","blend","copy","filter","get","loadPixels","set","updatePixels","blendMode","loadShader","PShaderresetShader","shader","createFont","loadFont","text","textFont","textAlign","textLeading","textMode","textSize","textWidth","textAscent","textDescent","abs","ceil","constrain","dist","exp","floor","lerp","log","mag","map","max","min","norm","pow","round","sq","sqrt","acos","asin","atan","atan2","cos","degrees","radians","sin","tan","noise","noiseDetail","noiseSeed","random","randomGaussian","randomSeed"],i=e.IDENT_RE,o={variants:[{match:t.concat(t.either(...n),t.lookahead(/\s*\(/)),className:"built_in"},{relevance:0,match:t.concat(/\b(?!for|if|while)/,i,t.lookahead(/\s*\(/)),className:"title.function"}]},c={match:[/new\s+/,i],className:{1:"keyword",2:"class.title"}},s={relevance:0,match:[/\./,i],className:{2:"property"}},l={variants:[{match:[/class/,/\s+/,i,/\s+/,/extends/,/\s+/,i]},{match:[/class/,/\s+/,i]}],className:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}};return{name:"Processing",aliases:["pde"],keywords:{keyword:["abstract","assert","break","case","catch","const","continue","default","else","enum","final","finally","for","if","import","instanceof","long","native","new","package","private","private","protected","protected","public","public","return","static","strictfp","switch","synchronized","throw","throws","transient","try","void","volatile","while"],literal:"P2D P3D HALF_PI PI QUARTER_PI TAU TWO_PI null true false",title:"setup draw",variable:"super this",built_in:[...n,"BufferedReader","PVector","PFont","PImage","PGraphics","HashMap","String","Array","FloatDict","ArrayList","FloatList","IntDict","IntList","JSONArray","JSONObject","Object","StringDict","StringList","Table","TableRow","XML"],type:["boolean","byte","char","color","double","float","int","long","short"]},contains:[l,c,o,s,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE]}}},2327:r=>{r.exports=function a(e){return{name:"Python profiler",contains:[e.C_NUMBER_MODE,{begin:"[a-zA-Z_][\\da-zA-Z_]+\\.[\\da-zA-Z_]{1,3}",end:":",excludeEnd:!0},{begin:"(ncalls|tottime|cumtime)",end:"$",keywords:"ncalls tottime|10 cumtime|10 filename",relevance:10},{begin:"function calls",end:"$",contains:[e.C_NUMBER_MODE],relevance:10},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:"\\(",end:"\\)$",excludeBegin:!0,excludeEnd:!0,relevance:0}]}}},4087:r=>{r.exports=function a(e){const i={begin:/\(/,end:/\)/,relevance:0},o={begin:/\[/,end:/\]/},m=[{begin:/[a-z][A-Za-z0-9_]*/,relevance:0},{className:"symbol",variants:[{begin:/[A-Z][a-zA-Z0-9_]*/},{begin:/_[A-Za-z0-9_]*/}],relevance:0},i,{begin:/:-/},o,{className:"comment",begin:/%/,end:/$/,contains:[e.PHRASAL_WORDS_MODE]},e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{className:"string",begin:/`/,end:/`/,contains:[e.BACKSLASH_ESCAPE]},{className:"string",begin:/0'(\\'|.)/},{className:"string",begin:/0'\\s/},e.C_NUMBER_MODE];return i.contains=m,o.contains=m,{name:"Prolog",contains:m.concat([{begin:/\.$/}])}}},7014:r=>{r.exports=function a(e){const t="[ \\t\\f]*",i=t+"[:=]"+t,o="[ \\t\\f]+",s="([^\\\\:= \\t\\f\\n]|\\\\.)+",l={end:"("+i+"|"+o+")",relevance:0,starts:{className:"string",end:/$/,relevance:0,contains:[{begin:"\\\\\\\\"},{begin:"\\\\\\n"}]}};return{name:".properties",disableAutodetect:!0,case_insensitive:!0,illegal:/\S/,contains:[e.COMMENT("^\\s*[!#]","$"),{returnBegin:!0,variants:[{begin:s+i},{begin:s+o}],contains:[{className:"attr",begin:s,endsParent:!0}],starts:l},{className:"attr",begin:s+t+"$"}]}}},9858:r=>{r.exports=function a(e){return{name:"Protocol Buffers",aliases:["proto"],keywords:{keyword:["package","import","option","optional","required","repeated","group","oneof"],type:["double","float","int32","int64","uint32","uint64","sint32","sint64","fixed32","fixed64","sfixed32","sfixed64","bool","string","bytes"],literal:["true","false"]},contains:[e.QUOTE_STRING_MODE,e.NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{match:[/(message|enum|service)\s+/,e.IDENT_RE],scope:{1:"keyword",2:"title.class"}},{className:"function",beginKeywords:"rpc",end:/[{;]/,excludeEnd:!0,keywords:"rpc returns"},{begin:/^\s*[A-Z_]+(?=\s*=[^\n]+;$)/}]}}},5469:r=>{r.exports=function a(e){const n=e.COMMENT("#","$"),i="([A-Za-z_]|::)(\\w|::)*",o=e.inherit(e.TITLE_MODE,{begin:i}),c={className:"variable",begin:"\\$"+i},s={className:"string",contains:[e.BACKSLASH_ESCAPE,c],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/}]};return{name:"Puppet",aliases:["pp"],contains:[n,c,s,{beginKeywords:"class",end:"\\{|;",illegal:/=/,contains:[o,n]},{beginKeywords:"define",end:/\{/,contains:[{className:"section",begin:e.IDENT_RE,endsParent:!0}]},{begin:e.IDENT_RE+"\\s+\\{",returnBegin:!0,end:/\S/,contains:[{className:"keyword",begin:e.IDENT_RE,relevance:.2},{begin:/\{/,end:/\}/,keywords:{keyword:"and case default else elsif false if in import enherits node or true undef unless main settings $string ",literal:"alias audit before loglevel noop require subscribe tag owner ensure group mode name|0 changes context force incl lens load_path onlyif provider returns root show_diff type_check en_address ip_address realname command environment hour monute month monthday special target weekday creates cwd ogoutput refresh refreshonly tries try_sleep umask backup checksum content ctime force ignore links mtime purge recurse recurselimit replace selinux_ignore_defaults selrange selrole seltype seluser source souirce_permissions sourceselect validate_cmd validate_replacement allowdupe attribute_membership auth_membership forcelocal gid ia_load_module members system host_aliases ip allowed_trunk_vlans description device_url duplex encapsulation etherchannel native_vlan speed principals allow_root auth_class auth_type authenticate_user k_of_n mechanisms rule session_owner shared options device fstype enable hasrestart directory present absent link atboot blockdevice device dump pass remounts poller_tag use message withpath adminfile allow_virtual allowcdrom category configfiles flavor install_options instance package_settings platform responsefile status uninstall_options vendor unless_system_user unless_uid binary control flags hasstatus manifest pattern restart running start stop allowdupe auths expiry gid groups home iterations key_membership keys managehome membership password password_max_age password_min_age profile_membership profiles project purge_ssh_keys role_membership roles salt shell uid baseurl cost descr enabled enablegroups exclude failovermethod gpgcheck gpgkey http_caching include includepkgs keepalive metadata_expire metalink mirrorlist priority protect proxy proxy_password proxy_username repo_gpgcheck s3_enabled skip_if_unavailable sslcacert sslclientcert sslclientkey sslverify mounted",built_in:"architecture augeasversion blockdevices boardmanufacturer boardproductname boardserialnumber cfkey dhcp_servers domain ec2_ ec2_userdata facterversion filesystems ldom fqdn gid hardwareisa hardwaremodel hostname id|0 interfaces ipaddress ipaddress_ ipaddress6 ipaddress6_ iphostnumber is_virtual kernel kernelmajversion kernelrelease kernelversion kernelrelease kernelversion lsbdistcodename lsbdistdescription lsbdistid lsbdistrelease lsbmajdistrelease lsbminordistrelease lsbrelease macaddress macaddress_ macosx_buildversion macosx_productname macosx_productversion macosx_productverson_major macosx_productversion_minor manufacturer memoryfree memorysize netmask metmask_ network_ operatingsystem operatingsystemmajrelease operatingsystemrelease osfamily partitions path physicalprocessorcount processor processorcount productname ps puppetversion rubysitedir rubyversion selinux selinux_config_mode selinux_config_policy selinux_current_mode selinux_current_mode selinux_enforced selinux_policyversion serialnumber sp_ sshdsakey sshecdsakey sshrsakey swapencrypted swapfree swapsize timezone type uniqueid uptime uptime_days uptime_hours uptime_seconds uuid virtual vlans xendomains zfs_version zonenae zones zpool_version"},relevance:0,contains:[s,n,{begin:"[a-zA-Z_]+\\s*=>",returnBegin:!0,end:"=>",contains:[{className:"attr",begin:e.IDENT_RE}]},{className:"number",begin:"(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",relevance:0},c]}],relevance:0}]}}},4413:r=>{r.exports=function a(e){return{name:"PureBASIC",aliases:["pb","pbi"],keywords:"Align And Array As Break CallDebugger Case CompilerCase CompilerDefault CompilerElse CompilerElseIf CompilerEndIf CompilerEndSelect CompilerError CompilerIf CompilerSelect CompilerWarning Continue Data DataSection Debug DebugLevel Declare DeclareC DeclareCDLL DeclareDLL DeclareModule Default Define Dim DisableASM DisableDebugger DisableExplicit Else ElseIf EnableASM EnableDebugger EnableExplicit End EndDataSection EndDeclareModule EndEnumeration EndIf EndImport EndInterface EndMacro EndModule EndProcedure EndSelect EndStructure EndStructureUnion EndWith Enumeration EnumerationBinary Extends FakeReturn For ForEach ForEver Global Gosub Goto If Import ImportC IncludeBinary IncludeFile IncludePath Interface List Macro MacroExpandedCount Map Module NewList NewMap Next Not Or Procedure ProcedureC ProcedureCDLL ProcedureDLL ProcedureReturn Protected Prototype PrototypeC ReDim Read Repeat Restore Return Runtime Select Shared Static Step Structure StructureUnion Swap Threaded To UndefineMacro Until Until UnuseModule UseModule Wend While With XIncludeFile XOr",contains:[e.COMMENT(";","$",{relevance:0}),{className:"function",begin:"\\b(Procedure|Declare)(C|CDLL|DLL)?\\b",end:"\\(",excludeEnd:!0,returnBegin:!0,contains:[{className:"keyword",begin:"(Procedure|Declare)(C|CDLL|DLL)?",excludeEnd:!0},{className:"type",begin:"\\.\\w*"},e.UNDERSCORE_TITLE_MODE]},{className:"string",begin:'(~)?"',end:'"',illegal:"\\n"},{className:"symbol",begin:"#[a-zA-Z_]\\w*\\$?"}]}}},1990:r=>{r.exports=function a(e){return{aliases:["pycon"],contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"python"}},variants:[{begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}},1847:r=>{r.exports=function a(e){const t=e.regex,n=/[\p{XID_Start}_]\p{XID_Continue}*/u,i=["and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","match","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],l={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:i,built_in:["__import__","abs","all","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"],literal:["__debug__","Ellipsis","False","None","NotImplemented","True"],type:["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"]},_={className:"meta",begin:/^(>>>|\.\.\.) /},d={className:"subst",begin:/\{/,end:/\}/,keywords:l,illegal:/#/},m={begin:/\{\{/,relevance:0},u={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,_],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,_],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,_,m,d]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,_,m,d]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fF][rR]|[rR][fF]|[fF])'/,end:/'/,contains:[e.BACKSLASH_ESCAPE,m,d]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,m,d]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},p="[0-9](_?[0-9])*",S=`(\\b(${p}))?\\.(${p})|\\b(${p})\\.`,g=`\\b|${i.join("|")}`,T={className:"number",relevance:0,variants:[{begin:`(\\b(${p})|(${S}))[eE][+-]?(${p})[jJ]?(?=${g})`},{begin:`(${S})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${g})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${g})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${g})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${g})`},{begin:`\\b(${p})[jJ](?=${g})`}]},R={className:"comment",begin:t.lookahead(/# type:/),end:/$/,keywords:l,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},C={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:l,contains:["self",_,T,u,e.HASH_COMMENT_MODE]}]};return d.contains=[u,T,_],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:l,illegal:/(<\/|\?)|=>/,contains:[_,T,{begin:/\bself\b/},{beginKeywords:"if",relevance:0},u,R,e.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,n],scope:{1:"keyword",3:"title.function"},contains:[C]},{variants:[{match:[/\bclass/,/\s+/,n,/\s*/,/\(\s*/,n,/\s*\)/]},{match:[/\bclass/,/\s+/,n]}],scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[T,C,u]}]}}},8801:r=>{r.exports=function a(e){return{name:"Q",aliases:["k","kdb"],keywords:{$pattern:/(`?)[A-Za-z0-9_]+\b/,keyword:"do while select delete by update from",literal:"0b 1b",built_in:"neg not null string reciprocal floor ceiling signum mod xbar xlog and or each scan over prior mmu lsq inv md5 ltime gtime count first var dev med cov cor all any rand sums prds mins maxs fills deltas ratios avgs differ prev next rank reverse iasc idesc asc desc msum mcount mavg mdev xrank mmin mmax xprev rotate distinct group where flip type key til get value attr cut set upsert raze union inter except cross sv vs sublist enlist read0 read1 hopen hclose hdel hsym hcount peach system ltrim rtrim trim lower upper ssr view tables views cols xcols keys xkey xcol xasc xdesc fkeys meta lj aj aj0 ij pj asof uj ww wj wj1 fby xgroup ungroup ej save load rsave rload show csv parse eval min max avg wavg wsum sin cos tan sum",type:"`float `double int `timestamp `timespan `datetime `time `boolean `symbol `char `byte `short `long `real `month `date `minute `second `guid"},contains:[e.C_LINE_COMMENT_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE]}}},4581:r=>{r.exports=function a(e){const i="[a-zA-Z_][a-zA-Z0-9\\._]*",s={className:"attribute",begin:"\\bid\\s*:",starts:{className:"string",end:i,returnEnd:!1}},l={begin:i+"\\s*:",returnBegin:!0,contains:[{className:"attribute",begin:i,end:"\\s*:",excludeEnd:!0,relevance:0}],relevance:0},_={begin:e.regex.concat(i,/\s*\{/),end:/\{/,returnBegin:!0,relevance:0,contains:[e.inherit(e.TITLE_MODE,{begin:i})]};return{name:"QML",aliases:["qt"],case_insensitive:!1,keywords:{keyword:"in of on if for while finally var new function do return void else break catch instanceof with throw case default try this switch continue typeof delete let yield const export super debugger as async await import",literal:"true false null undefined NaN Infinity",built_in:"eval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Error EvalError InternalError RangeError ReferenceError StopIteration SyntaxError TypeError URIError Number Math Date String RegExp Array Float32Array Float64Array Int16Array Int32Array Int8Array Uint16Array Uint32Array Uint8Array Uint8ClampedArray ArrayBuffer DataView JSON Intl arguments require module console window document Symbol Set Map WeakSet WeakMap Proxy Reflect Behavior bool color coordinate date double enumeration font geocircle georectangle geoshape int list matrix4x4 parent point quaternion real rect size string url variant vector2d vector3d vector4d Promise"},contains:[{className:"meta",begin:/^\s*['"]use (strict|asm)['"]/},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,{className:"subst",begin:"\\$\\{",end:"\\}"}]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"number",variants:[{begin:"\\b(0[bB][01]+)"},{begin:"\\b(0[oO][0-7]+)"},{begin:e.C_NUMBER_RE}],relevance:0},{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.REGEXP_MODE,{begin:/\s*[);\]]/,relevance:0,subLanguage:"xml"}],relevance:0},{className:"keyword",begin:"\\bsignal\\b",starts:{className:"string",end:"(\\(|:|=|;|,|//|/\\*|$)",returnEnd:!0}},{className:"keyword",begin:"\\bproperty\\b",starts:{className:"string",end:"(:|=|;|,|//|/\\*|$)",returnEnd:!0}},{className:"function",beginKeywords:"function",end:/\{/,excludeEnd:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/[A-Za-z$_][0-9A-Za-z$_]*/}),{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]}],illegal:/\[|%/},{begin:"\\."+e.IDENT_RE,relevance:0},s,l,_],illegal:/#/}}},2553:r=>{r.exports=function a(e){const t=e.regex,n=/(?:(?:[a-zA-Z]|\.[._a-zA-Z])[._a-zA-Z0-9]*)|\.(?!\d)/,i=t.either(/0[xX][0-9a-fA-F]+\.[0-9a-fA-F]*[pP][+-]?\d+i?/,/0[xX][0-9a-fA-F]+(?:[pP][+-]?\d+)?[Li]?/,/(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?[Li]?/),o=/[=!<>:]=|\|\||&&|:::?|<-|<<-|->>|->|\|>|[-+*\/?!$&|:<=>@^~]|\*\*/,c=t.either(/[()]/,/[{}]/,/\[\[/,/[[\]]/,/\\/,/,/);return{name:"R",keywords:{$pattern:n,keyword:"function if in break next repeat else for while",literal:"NULL NA TRUE FALSE Inf NaN NA_integer_|10 NA_real_|10 NA_character_|10 NA_complex_|10",built_in:"LETTERS letters month.abb month.name pi T F abs acos acosh all any anyNA Arg as.call as.character as.complex as.double as.environment as.integer as.logical as.null.default as.numeric as.raw asin asinh atan atanh attr attributes baseenv browser c call ceiling class Conj cos cosh cospi cummax cummin cumprod cumsum digamma dim dimnames emptyenv exp expression floor forceAndCall gamma gc.time globalenv Im interactive invisible is.array is.atomic is.call is.character is.complex is.double is.environment is.expression is.finite is.function is.infinite is.integer is.language is.list is.logical is.matrix is.na is.name is.nan is.null is.numeric is.object is.pairlist is.raw is.recursive is.single is.symbol lazyLoadDBfetch length lgamma list log max min missing Mod names nargs nzchar oldClass on.exit pos.to.env proc.time prod quote range Re rep retracemem return round seq_along seq_len seq.int sign signif sin sinh sinpi sqrt standardGeneric substitute sum switch tan tanh tanpi tracemem trigamma trunc unclass untracemem UseMethod xtfrm"},contains:[e.COMMENT(/#'/,/$/,{contains:[{scope:"doctag",match:/@examples/,starts:{end:t.lookahead(t.either(/\n^#'\s*(?=@[a-zA-Z]+)/,/\n^(?!#')/)),endsParent:!0}},{scope:"doctag",begin:"@param",end:/$/,contains:[{scope:"variable",variants:[{match:n},{match:/`(?:\\.|[^`\\])+`/}],endsParent:!0}]},{scope:"doctag",match:/@[a-zA-Z]+/},{scope:"keyword",match:/\\[a-zA-Z]+/}]}),e.HASH_COMMENT_MODE,{scope:"string",contains:[e.BACKSLASH_ESCAPE],variants:[e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\(/,end:/\)(-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\{/,end:/\}(-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\[/,end:/\](-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\(/,end:/\)(-*)'/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\{/,end:/\}(-*)'/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\[/,end:/\](-*)'/}),{begin:'"',end:'"',relevance:0},{begin:"'",end:"'",relevance:0}]},{relevance:0,variants:[{scope:{1:"operator",2:"number"},match:[o,i]},{scope:{1:"operator",2:"number"},match:[/%[^%]*%/,i]},{scope:{1:"punctuation",2:"number"},match:[c,i]},{scope:{2:"number"},match:[/[^a-zA-Z0-9._]|^/,i]}]},{scope:{3:"operator"},match:[n,/\s+/,/<-/,/\s+/]},{scope:"operator",relevance:0,variants:[{match:o},{match:/%[^%]*%/}]},{scope:"punctuation",relevance:0,match:c},{begin:"`",end:"`",contains:[{begin:/\\./}]}]}}},4433:r=>{r.exports=function a(e){const n="~?[a-z$_][0-9a-zA-Z$_]*",i="`?[A-Z$_][0-9a-zA-Z$_]*",o="'?[a-z$_][0-9a-z$_]*",s=n+"(\\s*:\\s*[a-z$_][0-9a-z$_]*(\\(\\s*("+o+"\\s*(,"+o+"\\s*)*)?\\))?){0,2}",l="("+function t(O){return O.map(function(w){return w.split("").map(function(D){return"\\"+D}).join("")}).join("|")}(["||","++","**","+.","*","/","*.","/.","..."])+"|\\|>|&&|==|===)",_="\\s+"+l+"\\s+",d={keyword:"and as asr assert begin class constraint do done downto else end exception external for fun function functor if in include inherit initializer land lazy let lor lsl lsr lxor match method mod module mutable new nonrec object of open or private rec sig struct then to try type val virtual when while with",built_in:"array bool bytes char exn|5 float int int32 int64 list lazy_t|5 nativeint|5 ref string unit ",literal:"true false"},m="\\b(0[xX][a-fA-F0-9_]+[Lln]?|0[oO][0-7_]+[Lln]?|0[bB][01_]+[Lln]?|[0-9][0-9_]*([Lln]|(\\.[0-9_]*)?([eE][-+]?[0-9_]+)?)?)",u={className:"number",relevance:0,variants:[{begin:m},{begin:"\\(-"+m+"\\)"}]},p={className:"operator",relevance:0,begin:l},S=[{className:"identifier",relevance:0,begin:n},p,u],g=[e.QUOTE_STRING_MODE,p,{className:"module",begin:"\\b"+i,returnBegin:!0,relevance:0,end:".",contains:[{className:"identifier",begin:i,relevance:0}]}],T=[{className:"module",begin:"\\b"+i,returnBegin:!0,end:".",relevance:0,contains:[{className:"identifier",begin:i,relevance:0}]}],C={className:"function",relevance:0,keywords:d,variants:[{begin:"\\s(\\(\\.?.*?\\)|"+n+")\\s*=>",end:"\\s*=>",returnBegin:!0,relevance:0,contains:[{className:"params",variants:[{begin:n},{begin:s},{begin:/\(\s*\)/}]}]},{begin:"\\s\\(\\.?[^;\\|]*\\)\\s*=>",end:"\\s=>",returnBegin:!0,relevance:0,contains:[{className:"params",relevance:0,variants:[{begin:n,end:"(,|\\n|\\))",relevance:0,contains:[p,{className:"typing",begin:":",end:"(,|\\n)",returnBegin:!0,relevance:0,contains:T}]}]}]},{begin:"\\(\\.\\s"+n+"\\)\\s*=>"}]};g.push(C);const f={className:"constructor",begin:i+"\\(",end:"\\)",illegal:"\\n",keywords:d,contains:[e.QUOTE_STRING_MODE,p,{className:"params",begin:"\\b"+n}]},v={className:"pattern-match",begin:"\\|",returnBegin:!0,keywords:d,end:"=>",relevance:0,contains:[f,p,{relevance:0,className:"constructor",begin:i}]},y={className:"module-access",keywords:d,returnBegin:!0,variants:[{begin:"\\b("+i+"\\.)+"+n},{begin:"\\b("+i+"\\.)+\\(",end:"\\)",returnBegin:!0,contains:[C,{begin:"\\(",end:"\\)",relevance:0,skip:!0}].concat(g)},{begin:"\\b("+i+"\\.)+\\{",end:/\}/}],contains:g};return T.push(y),{name:"ReasonML",aliases:["re"],keywords:d,illegal:"(:-|:=|\\$\\{|\\+=)",contains:[e.COMMENT("/\\*","\\*/",{illegal:"^(#,\\/\\/)"}),{className:"character",begin:"'(\\\\[^']+|[^'])'",illegal:"\\n",relevance:0},e.QUOTE_STRING_MODE,{className:"literal",begin:"\\(\\)",relevance:0},{className:"literal",begin:"\\[\\|",end:"\\|\\]",relevance:0,contains:S},{className:"literal",begin:"\\[",end:"\\]",relevance:0,contains:S},f,{className:"operator",begin:_,illegal:"--\x3e",relevance:0},u,e.C_LINE_COMMENT_MODE,v,C,{className:"module-def",begin:"\\bmodule\\s+"+n+"\\s+"+i+"\\s+=\\s+\\{",end:/\}/,returnBegin:!0,keywords:d,relevance:0,contains:[{className:"module",relevance:0,begin:i},{begin:/\{/,end:/\}/,relevance:0,skip:!0}].concat(g)},y]}}},945:r=>{r.exports=function a(e){return{name:"RenderMan RIB",keywords:"ArchiveRecord AreaLightSource Atmosphere Attribute AttributeBegin AttributeEnd Basis Begin Blobby Bound Clipping ClippingPlane Color ColorSamples ConcatTransform Cone CoordinateSystem CoordSysTransform CropWindow Curves Cylinder DepthOfField Detail DetailRange Disk Displacement Display End ErrorHandler Exposure Exterior Format FrameAspectRatio FrameBegin FrameEnd GeneralPolygon GeometricApproximation Geometry Hider Hyperboloid Identity Illuminate Imager Interior LightSource MakeCubeFaceEnvironment MakeLatLongEnvironment MakeShadow MakeTexture Matte MotionBegin MotionEnd NuPatch ObjectBegin ObjectEnd ObjectInstance Opacity Option Orientation Paraboloid Patch PatchMesh Perspective PixelFilter PixelSamples PixelVariance Points PointsGeneralPolygons PointsPolygons Polygon Procedural Projection Quantize ReadArchive RelativeDetail ReverseOrientation Rotate Scale ScreenWindow ShadingInterpolation ShadingRate Shutter Sides Skew SolidBegin SolidEnd Sphere SubdivisionMesh Surface TextureCoordinates Torus Transform TransformBegin TransformEnd TransformPoints Translate TrimCurve WorldBegin WorldEnd",illegal:"{r.exports=function a(e){const t="[a-zA-Z-_][^\\n{]+\\{",n={className:"attribute",begin:/[a-zA-Z-_]+/,end:/\s*:/,excludeEnd:!0,starts:{end:";",relevance:0,contains:[{className:"variable",begin:/\.[a-zA-Z-_]+/},{className:"keyword",begin:/\(optional\)/}]}};return{name:"Roboconf",aliases:["graph","instances"],case_insensitive:!0,keywords:"import",contains:[{begin:"^facet "+t,end:/\}/,keywords:"facet",contains:[n,e.HASH_COMMENT_MODE]},{begin:"^\\s*instance of "+t,end:/\}/,keywords:"name count channels instance-data instance-state instance of",illegal:/\S/,contains:["self",n,e.HASH_COMMENT_MODE]},{begin:"^"+t,end:/\}/,contains:[n,e.HASH_COMMENT_MODE]},e.HASH_COMMENT_MODE]}}},698:r=>{r.exports=function a(e){const t="foreach do while for if from to step else on-error and or not in",o="true false yes no nothing nil null",s={className:"variable",variants:[{begin:/\$[\w\d#@][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},l={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,s,{className:"variable",begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]}]},_={className:"string",begin:/'/,end:/'/};return{name:"MikroTik RouterOS script",aliases:["mikrotik"],case_insensitive:!0,keywords:{$pattern:/:?[\w-]+/,literal:o,keyword:t+" :"+t.split(" ").join(" :")+" :"+"global local beep delay put len typeof pick log time set find environment terminal error execute parse resolve toarray tobool toid toip toip6 tonum tostr totime".split(" ").join(" :")},contains:[{variants:[{begin:/\/\*/,end:/\*\//},{begin:/\/\//,end:/$/},{begin:/<\//,end:/>/}],illegal:/./},e.COMMENT("^#","$"),l,_,s,{begin:/[\w-]+=([^\s{}[\]()>]+)/,relevance:0,returnBegin:!0,contains:[{className:"attribute",begin:/[^=]+/},{begin:/=/,endsWithParent:!0,relevance:0,contains:[l,_,s,{className:"literal",begin:"\\b("+o.split(" ").join("|")+")\\b"},{begin:/("[^"]*"|[^\s{}[\]]+)/}]}]},{className:"number",begin:/\*[0-9a-fA-F]+/},{begin:"\\b("+"add remove enable disable set get print export edit find run debug error info warning".split(" ").join("|")+")([\\s[(\\]|])",returnBegin:!0,contains:[{className:"built_in",begin:/\w+/}]},{className:"built_in",variants:[{begin:"(\\.\\./|/|\\s)(("+"traffic-flow traffic-generator firewall scheduler aaa accounting address-list address align area bandwidth-server bfd bgp bridge client clock community config connection console customer default dhcp-client dhcp-server discovery dns e-mail ethernet filter firmware gps graphing group hardware health hotspot identity igmp-proxy incoming instance interface ip ipsec ipv6 irq l2tp-server lcd ldp logging mac-server mac-winbox mangle manual mirror mme mpls nat nd neighbor network note ntp ospf ospf-v3 ovpn-server page peer pim ping policy pool port ppp pppoe-client pptp-server prefix profile proposal proxy queue radius resource rip ripng route routing screen script security-profiles server service service-port settings shares smb sms sniffer snmp snooper socks sstp-server system tool tracking type upgrade upnp user-manager users user vlan secret vrrp watchdog web-access wireless pptp pppoe lan wan layer7-protocol lease simple raw".split(" ").join("|")+");?\\s)+"},{begin:/\.\./,relevance:0}]}]}}},2033:r=>{r.exports=function a(e){return{name:"RenderMan RSL",keywords:{keyword:["while","for","if","do","return","else","break","extern","continue"],built_in:["abs","acos","ambient","area","asin","atan","atmosphere","attribute","calculatenormal","ceil","cellnoise","clamp","comp","concat","cos","degrees","depth","Deriv","diffuse","distance","Du","Dv","environment","exp","faceforward","filterstep","floor","format","fresnel","incident","length","lightsource","log","match","max","min","mod","noise","normalize","ntransform","opposite","option","phong","pnoise","pow","printf","ptlined","radians","random","reflect","refract","renderinfo","round","setcomp","setxcomp","setycomp","setzcomp","shadow","sign","sin","smoothstep","specular","specularbrdf","spline","sqrt","step","tan","texture","textureinfo","trace","transform","vtransform","xcomp","ycomp","zcomp"],type:["matrix","float","color","point","normal","vector"]},illegal:"{r.exports=function a(e){const t=e.regex,n="([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)",i=t.either(/\b([A-Z]+[a-z0-9]+)+/,/\b([A-Z]+[a-z0-9]+)+[A-Z]+/),o=t.concat(i,/(::\w+)*/),s={"variable.constant":["__FILE__","__LINE__","__ENCODING__"],"variable.language":["self","super"],keyword:["alias","and","begin","BEGIN","break","case","class","defined","do","else","elsif","end","END","ensure","for","if","in","module","next","not","or","redo","require","rescue","retry","return","then","undef","unless","until","when","while","yield","include","extend","prepend","public","private","protected","raise","throw"],built_in:["proc","lambda","attr_accessor","attr_reader","attr_writer","define_method","private_constant","module_function"],literal:["true","false","nil"]},l={className:"doctag",begin:"@[A-Za-z]+"},_={begin:"#<",end:">"},d=[e.COMMENT("#","$",{contains:[l]}),e.COMMENT("^=begin","^=end",{contains:[l],relevance:10}),e.COMMENT("^__END__",e.MATCH_NOTHING_RE)],m={className:"subst",begin:/#\{/,end:/\}/,keywords:s},u={className:"string",contains:[e.BACKSLASH_ESCAPE,m],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:/%[qQwWx]?\(/,end:/\)/},{begin:/%[qQwWx]?\[/,end:/\]/},{begin:/%[qQwWx]?\{/,end:/\}/},{begin:/%[qQwWx]?/},{begin:/%[qQwWx]?\//,end:/\//},{begin:/%[qQwWx]?%/,end:/%/},{begin:/%[qQwWx]?-/,end:/-/},{begin:/%[qQwWx]?\|/,end:/\|/},{begin:/\B\?(\\\d{1,3})/},{begin:/\B\?(\\x[A-Fa-f0-9]{1,2})/},{begin:/\B\?(\\u\{?[A-Fa-f0-9]{1,6}\}?)/},{begin:/\B\?(\\M-\\C-|\\M-\\c|\\c\\M-|\\M-|\\C-\\M-)[\x20-\x7e]/},{begin:/\B\?\\(c|C-)[\x20-\x7e]/},{begin:/\B\?\\?\S/},{begin:t.concat(/<<[-~]?'?/,t.lookahead(/(\w+)(?=\W)[^\n]*\n(?:[^\n]*\n)*?\s*\1\b/)),contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,contains:[e.BACKSLASH_ESCAPE,m]})]}]},S="[0-9](_?[0-9])*",T={variants:[{match:/\(\)/},{className:"params",begin:/\(/,end:/(?=\))/,excludeBegin:!0,endsParent:!0,keywords:s}]},w=[u,{variants:[{match:[/class\s+/,o,/\s+<\s+/,o]},{match:[/\b(class|module)\s+/,o]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:s},{match:[/(include|extend)\s+/,o],scope:{2:"title.class"},keywords:s},{relevance:0,match:[o,/\.new[. (]/],scope:{1:"title.class"}},{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"},{relevance:0,match:i,scope:"title.class"},{match:[/def/,/\s+/,n],scope:{1:"keyword",3:"title.function"},contains:[T]},{begin:e.IDENT_RE+"::"},{className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":(?!\\s)",contains:[u,{begin:n}],relevance:0},{className:"number",relevance:0,variants:[{begin:`\\b([1-9](_?[0-9])*|0)(\\.(${S}))?([eE][+-]?(${S})|r)?i?\\b`},{begin:"\\b0[dD][0-9](_?[0-9])*r?i?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*r?i?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*r?i?\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*r?i?\\b"},{begin:"\\b0(_?[0-7])+r?i?\\b"}]},{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},{className:"params",begin:/\|/,end:/\|/,excludeBegin:!0,excludeEnd:!0,relevance:0,keywords:s},{begin:"("+e.RE_STARTERS_RE+"|unless)\\s*",keywords:"unless",contains:[{className:"regexp",contains:[e.BACKSLASH_ESCAPE,m],illegal:/\n/,variants:[{begin:"/",end:"/[a-z]*"},{begin:/%r\{/,end:/\}[a-z]*/},{begin:"%r\\(",end:"\\)[a-z]*"},{begin:"%r!",end:"![a-z]*"},{begin:"%r\\[",end:"\\][a-z]*"}]}].concat(_,d),relevance:0}].concat(_,d);m.contains=w,T.contains=w;const x=[{begin:/^\s*=>/,starts:{end:"$",contains:w}},{className:"meta.prompt",begin:"^([>?]>|[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]|(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>)(?=[ ])",starts:{end:"$",keywords:s,contains:w}}];return d.unshift(_),{name:"Ruby",aliases:["rb","gemspec","podspec","thor","irb"],keywords:s,illegal:/\/\*/,contains:[e.SHEBANG({binary:"ruby"})].concat(x).concat(d).concat(w)}}},7394:r=>{r.exports=function a(e){return{name:"Oracle Rules Language",keywords:{keyword:"BILL_PERIOD BILL_START BILL_STOP RS_EFFECTIVE_START RS_EFFECTIVE_STOP RS_JURIS_CODE RS_OPCO_CODE INTDADDATTRIBUTE|5 INTDADDVMSG|5 INTDBLOCKOP|5 INTDBLOCKOPNA|5 INTDCLOSE|5 INTDCOUNT|5 INTDCOUNTSTATUSCODE|5 INTDCREATEMASK|5 INTDCREATEDAYMASK|5 INTDCREATEFACTORMASK|5 INTDCREATEHANDLE|5 INTDCREATEOVERRIDEDAYMASK|5 INTDCREATEOVERRIDEMASK|5 INTDCREATESTATUSCODEMASK|5 INTDCREATETOUPERIOD|5 INTDDELETE|5 INTDDIPTEST|5 INTDEXPORT|5 INTDGETERRORCODE|5 INTDGETERRORMESSAGE|5 INTDISEQUAL|5 INTDJOIN|5 INTDLOAD|5 INTDLOADACTUALCUT|5 INTDLOADDATES|5 INTDLOADHIST|5 INTDLOADLIST|5 INTDLOADLISTDATES|5 INTDLOADLISTENERGY|5 INTDLOADLISTHIST|5 INTDLOADRELATEDCHANNEL|5 INTDLOADSP|5 INTDLOADSTAGING|5 INTDLOADUOM|5 INTDLOADUOMDATES|5 INTDLOADUOMHIST|5 INTDLOADVERSION|5 INTDOPEN|5 INTDREADFIRST|5 INTDREADNEXT|5 INTDRECCOUNT|5 INTDRELEASE|5 INTDREPLACE|5 INTDROLLAVG|5 INTDROLLPEAK|5 INTDSCALAROP|5 INTDSCALE|5 INTDSETATTRIBUTE|5 INTDSETDSTPARTICIPANT|5 INTDSETSTRING|5 INTDSETVALUE|5 INTDSETVALUESTATUS|5 INTDSHIFTSTARTTIME|5 INTDSMOOTH|5 INTDSORT|5 INTDSPIKETEST|5 INTDSUBSET|5 INTDTOU|5 INTDTOURELEASE|5 INTDTOUVALUE|5 INTDUPDATESTATS|5 INTDVALUE|5 STDEV INTDDELETEEX|5 INTDLOADEXACTUAL|5 INTDLOADEXCUT|5 INTDLOADEXDATES|5 INTDLOADEX|5 INTDLOADEXRELATEDCHANNEL|5 INTDSAVEEX|5 MVLOAD|5 MVLOADACCT|5 MVLOADACCTDATES|5 MVLOADACCTHIST|5 MVLOADDATES|5 MVLOADHIST|5 MVLOADLIST|5 MVLOADLISTDATES|5 MVLOADLISTHIST|5 IF FOR NEXT DONE SELECT END CALL ABORT CLEAR CHANNEL FACTOR LIST NUMBER OVERRIDE SET WEEK DISTRIBUTIONNODE ELSE WHEN THEN OTHERWISE IENUM CSV INCLUDE LEAVE RIDER SAVE DELETE NOVALUE SECTION WARN SAVE_UPDATE DETERMINANT LABEL REPORT REVENUE EACH IN FROM TOTAL CHARGE BLOCK AND OR CSV_FILE RATE_CODE AUXILIARY_DEMAND UIDACCOUNT RS BILL_PERIOD_SELECT HOURS_PER_MONTH INTD_ERROR_STOP SEASON_SCHEDULE_NAME ACCOUNTFACTOR ARRAYUPPERBOUND CALLSTOREDPROC GETADOCONNECTION GETCONNECT GETDATASOURCE GETQUALIFIER GETUSERID HASVALUE LISTCOUNT LISTOP LISTUPDATE LISTVALUE PRORATEFACTOR RSPRORATE SETBINPATH SETDBMONITOR WQ_OPEN BILLINGHOURS DATE DATEFROMFLOAT DATETIMEFROMSTRING DATETIMETOSTRING DATETOFLOAT DAY DAYDIFF DAYNAME DBDATETIME HOUR MINUTE MONTH MONTHDIFF MONTHHOURS MONTHNAME ROUNDDATE SAMEWEEKDAYLASTYEAR SECOND WEEKDAY WEEKDIFF YEAR YEARDAY YEARSTR COMPSUM HISTCOUNT HISTMAX HISTMIN HISTMINNZ HISTVALUE MAXNRANGE MAXRANGE MINRANGE COMPIKVA COMPKVA COMPKVARFROMKQKW COMPLF IDATTR FLAG LF2KW LF2KWH MAXKW POWERFACTOR READING2USAGE AVGSEASON MAXSEASON MONTHLYMERGE SEASONVALUE SUMSEASON ACCTREADDATES ACCTTABLELOAD CONFIGADD CONFIGGET CREATEOBJECT CREATEREPORT EMAILCLIENT EXPBLKMDMUSAGE EXPMDMUSAGE EXPORT_USAGE FACTORINEFFECT GETUSERSPECIFIEDSTOP INEFFECT ISHOLIDAY RUNRATE SAVE_PROFILE SETREPORTTITLE USEREXIT WATFORRUNRATE TO TABLE ACOS ASIN ATAN ATAN2 BITAND CEIL COS COSECANT COSH COTANGENT DIVQUOT DIVREM EXP FABS FLOOR FMOD FREPM FREXPN LOG LOG10 MAX MAXN MIN MINNZ MODF POW ROUND ROUND2VALUE ROUNDINT SECANT SIN SINH SQROOT TAN TANH FLOAT2STRING FLOAT2STRINGNC INSTR LEFT LEN LTRIM MID RIGHT RTRIM STRING STRINGNC TOLOWER TOUPPER TRIM NUMDAYS READ_DATE STAGING",built_in:"IDENTIFIER OPTIONS XML_ELEMENT XML_OP XML_ELEMENT_OF DOMDOCCREATE DOMDOCLOADFILE DOMDOCLOADXML DOMDOCSAVEFILE DOMDOCGETROOT DOMDOCADDPI DOMNODEGETNAME DOMNODEGETTYPE DOMNODEGETVALUE DOMNODEGETCHILDCT DOMNODEGETFIRSTCHILD DOMNODEGETSIBLING DOMNODECREATECHILDELEMENT DOMNODESETATTRIBUTE DOMNODEGETCHILDELEMENTCT DOMNODEGETFIRSTCHILDELEMENT DOMNODEGETSIBLINGELEMENT DOMNODEGETATTRIBUTECT DOMNODEGETATTRIBUTEI DOMNODEGETATTRIBUTEBYNAME DOMNODEGETBYNAME"},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,{className:"literal",variants:[{begin:"#\\s+",relevance:0},{begin:"#[a-zA-Z .]+"}]}]}}},929:r=>{r.exports=function a(e){const t=e.regex,n={className:"title.function.invoke",relevance:0,begin:t.concat(/\b/,/(?!let\b)/,e.IDENT_RE,t.lookahead(/\s*\(/))},i="([ui](8|16|32|64|128|size)|f(32|64))?",s=["drop ","Copy","Send","Sized","Sync","Drop","Fn","FnMut","FnOnce","ToOwned","Clone","Debug","PartialEq","PartialOrd","Eq","Ord","AsRef","AsMut","Into","From","Default","Iterator","Extend","IntoIterator","DoubleEndedIterator","ExactSizeIterator","SliceConcatExt","ToString","assert!","assert_eq!","bitflags!","bytes!","cfg!","col!","concat!","concat_idents!","debug_assert!","debug_assert_eq!","env!","panic!","file!","format!","format_args!","include_bytes!","include_str!","line!","local_data_key!","module_path!","option_env!","print!","println!","select!","stringify!","try!","unimplemented!","unreachable!","vec!","write!","writeln!","macro_rules!","assert_ne!","debug_assert_ne!"],l=["i8","i16","i32","i64","i128","isize","u8","u16","u32","u64","u128","usize","f32","f64","str","char","bool","Box","Option","Result","String","Vec"];return{name:"Rust",aliases:["rs"],keywords:{$pattern:e.IDENT_RE+"!?",type:l,keyword:["abstract","as","async","await","become","box","break","const","continue","crate","do","dyn","else","enum","extern","false","final","fn","for","if","impl","in","let","loop","macro","match","mod","move","mut","override","priv","pub","ref","return","self","Self","static","struct","super","trait","true","try","type","typeof","unsafe","unsized","use","virtual","where","while","yield"],literal:["true","false","Some","None","Ok","Err"],built_in:s},illegal:""},n]}}},5962:r=>{r.exports=function a(e){const t=e.regex;return{name:"SAS",case_insensitive:!0,keywords:{literal:["null","missing","_all_","_automatic_","_character_","_infile_","_n_","_name_","_null_","_numeric_","_user_","_webout_"],keyword:["do","if","then","else","end","until","while","abort","array","attrib","by","call","cards","cards4","catname","continue","datalines","datalines4","delete","delim","delimiter","display","dm","drop","endsas","error","file","filename","footnote","format","goto","in","infile","informat","input","keep","label","leave","length","libname","link","list","lostcard","merge","missing","modify","options","output","out","page","put","redirect","remove","rename","replace","retain","return","select","set","skip","startsas","stop","title","update","waitsas","where","window","x|0","systask","add","and","alter","as","cascade","check","create","delete","describe","distinct","drop","foreign","from","group","having","index","insert","into","in","key","like","message","modify","msgtype","not","null","on","or","order","primary","references","reset","restrict","select","set","table","unique","update","validate","view","where"]},contains:[{className:"keyword",begin:/^\s*(proc [\w\d_]+|data|run|quit)[\s;]/},{className:"variable",begin:/&[a-zA-Z_&][a-zA-Z0-9_]*\.?/},{begin:[/^\s*/,/datalines;|cards;/,/(?:.*\n)+/,/^\s*;\s*$/],className:{2:"keyword",3:"string"}},{begin:[/%mend|%macro/,/\s+/,/[a-zA-Z_&][a-zA-Z0-9_]*/],className:{1:"built_in",3:"title.function"}},{className:"built_in",begin:"%"+t.either("bquote","nrbquote","cmpres","qcmpres","compstor","datatyp","display","do","else","end","eval","global","goto","if","index","input","keydef","label","left","length","let","local","lowcase","macro","mend","nrbquote","nrquote","nrstr","put","qcmpres","qleft","qlowcase","qscan","qsubstr","qsysfunc","qtrim","quote","qupcase","scan","str","substr","superq","syscall","sysevalf","sysexec","sysfunc","sysget","syslput","sysprod","sysrc","sysrput","then","to","trim","unquote","until","upcase","verify","while","window")},{className:"title.function",begin:/%[a-zA-Z_][a-zA-Z_0-9]*/},{className:"meta",begin:t.either("abs","addr","airy","arcos","arsin","atan","attrc","attrn","band","betainv","blshift","bnot","bor","brshift","bxor","byte","cdf","ceil","cexist","cinv","close","cnonct","collate","compbl","compound","compress","cos","cosh","css","curobs","cv","daccdb","daccdbsl","daccsl","daccsyd","dacctab","dairy","date","datejul","datepart","datetime","day","dclose","depdb","depdbsl","depdbsl","depsl","depsl","depsyd","depsyd","deptab","deptab","dequote","dhms","dif","digamma","dim","dinfo","dnum","dopen","doptname","doptnum","dread","dropnote","dsname","erf","erfc","exist","exp","fappend","fclose","fcol","fdelete","fetch","fetchobs","fexist","fget","fileexist","filename","fileref","finfo","finv","fipname","fipnamel","fipstate","floor","fnonct","fnote","fopen","foptname","foptnum","fpoint","fpos","fput","fread","frewind","frlen","fsep","fuzz","fwrite","gaminv","gamma","getoption","getvarc","getvarn","hbound","hms","hosthelp","hour","ibessel","index","indexc","indexw","input","inputc","inputn","int","intck","intnx","intrr","irr","jbessel","juldate","kurtosis","lag","lbound","left","length","lgamma","libname","libref","log","log10","log2","logpdf","logpmf","logsdf","lowcase","max","mdy","mean","min","minute","mod","month","mopen","mort","n","netpv","nmiss","normal","note","npv","open","ordinal","pathname","pdf","peek","peekc","pmf","point","poisson","poke","probbeta","probbnml","probchi","probf","probgam","probhypr","probit","probnegb","probnorm","probt","put","putc","putn","qtr","quote","ranbin","rancau","ranexp","rangam","range","rank","rannor","ranpoi","rantbl","rantri","ranuni","repeat","resolve","reverse","rewind","right","round","saving","scan","sdf","second","sign","sin","sinh","skewness","soundex","spedis","sqrt","std","stderr","stfips","stname","stnamel","substr","sum","symget","sysget","sysmsg","sysprod","sysrc","system","tan","tanh","time","timepart","tinv","tnonct","today","translate","tranwrd","trigamma","trim","trimn","trunc","uniform","upcase","uss","var","varfmt","varinfmt","varlabel","varlen","varname","varnum","varray","varrayx","vartype","verify","vformat","vformatd","vformatdx","vformatn","vformatnx","vformatw","vformatwx","vformatx","vinarray","vinarrayx","vinformat","vinformatd","vinformatdx","vinformatn","vinformatnx","vinformatw","vinformatwx","vinformatx","vlabel","vlabelx","vlength","vlengthx","vname","vnamex","vtype","vtypex","weekday","year","yyq","zipfips","zipname","zipnamel","zipstate")+"(?=\\()"},{className:"string",variants:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},e.COMMENT("\\*",";"),e.C_BLOCK_COMMENT_MODE]}}},5493:r=>{r.exports=function a(e){const i={className:"subst",variants:[{begin:"\\$[A-Za-z0-9_]+"},{begin:/\$\{/,end:/\}/}]},o={className:"string",variants:[{begin:'"""',end:'"""'},{begin:'"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:'[a-z]+"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE,i]},{className:"string",begin:'[a-z]+"""',end:'"""',contains:[i],relevance:10}]},c={className:"type",begin:"\\b[A-Z][A-Za-z0-9_]*",relevance:0},s={className:"title",begin:/[^0-9\n\t "'(),.`{}\[\]:;][^\n\t "'(),.`{}\[\]:;]+|[^0-9\n\t "'(),.`{}\[\]:;=]/,relevance:0},l={className:"class",beginKeywords:"class object trait type",end:/[:={\[\n;]/,excludeEnd:!0,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{beginKeywords:"extends with",relevance:10},{begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0,relevance:0,contains:[c]},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,relevance:0,contains:[c]},s]},_={className:"function",beginKeywords:"def",end:e.regex.lookahead(/[:={\[(\n;]/),contains:[s]};return{name:"Scala",keywords:{literal:"true false null",keyword:"type yield lazy override def with val var sealed abstract private trait object if then forSome for while do throw finally protected extends import final return else break new catch super class case package default try this match continue throws implicit export enum given transparent"},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,o,c,_,l,e.C_NUMBER_MODE,{begin:[/^\s*/,"extension",/\s+(?=[[(])/],beginScope:{2:"keyword"}},{begin:[/^\s*/,/end/,/\s+/,/(extension\b)?/],beginScope:{2:"keyword",4:"keyword"}},{match:/\.inline\b/},{begin:/\binline(?=\s)/,keywords:"inline"},{begin:[/\(\s*/,/using/,/\s+(?!\))/],beginScope:{2:"keyword"}},{className:"meta",begin:"@[A-Za-z]+"}]}}},2750:r=>{r.exports=function a(e){const t="[^\\(\\)\\[\\]\\{\\}\",'`;#|\\\\\\s]+",n="(-|\\+)?\\d+([./]\\d+)?",o={$pattern:t,built_in:"case-lambda call/cc class define-class exit-handler field import inherit init-field interface let*-values let-values let/ec mixin opt-lambda override protect provide public rename require require-for-syntax syntax syntax-case syntax-error unit/sig unless when with-syntax and begin call-with-current-continuation call-with-input-file call-with-output-file case cond define define-syntax delay do dynamic-wind else for-each if lambda let let* let-syntax letrec letrec-syntax map or syntax-rules ' * + , ,@ - ... / ; < <= = => > >= ` abs acos angle append apply asin assoc assq assv atan boolean? caar cadr call-with-input-file call-with-output-file call-with-values car cdddar cddddr cdr ceiling char->integer char-alphabetic? char-ci<=? char-ci=? char-ci>? char-downcase char-lower-case? char-numeric? char-ready? char-upcase char-upper-case? char-whitespace? char<=? char=? char>? char? close-input-port close-output-port complex? cons cos current-input-port current-output-port denominator display eof-object? eq? equal? eqv? eval even? exact->inexact exact? exp expt floor force gcd imag-part inexact->exact inexact? input-port? integer->char integer? interaction-environment lcm length list list->string list->vector list-ref list-tail list? load log magnitude make-polar make-rectangular make-string make-vector max member memq memv min modulo negative? newline not null-environment null? number->string number? numerator odd? open-input-file open-output-file output-port? pair? peek-char port? positive? procedure? quasiquote quote quotient rational? rationalize read read-char real-part real? remainder reverse round scheme-report-environment set! set-car! set-cdr! sin sqrt string string->list string->number string->symbol string-append string-ci<=? string-ci=? string-ci>? string-copy string-fill! string-length string-ref string-set! string<=? string=? string>? string? substring symbol->string symbol? tan transcript-off transcript-on truncate values vector vector->list vector-fill! vector-length vector-ref vector-set! with-input-from-file with-output-to-file write write-char zero?"},c={className:"literal",begin:"(#t|#f|#\\\\"+t+"|#\\\\.)"},s={className:"number",variants:[{begin:n,relevance:0},{begin:n+"[+\\-]"+n+"i",relevance:0},{begin:"#b[0-1]+(/[0-1]+)?"},{begin:"#o[0-7]+(/[0-7]+)?"},{begin:"#x[0-9a-f]+(/[0-9a-f]+)?"}]},l=e.QUOTE_STRING_MODE,_=[e.COMMENT(";","$",{relevance:0}),e.COMMENT("#\\|","\\|#")],d={begin:t,relevance:0},m={className:"symbol",begin:"'"+t},u={endsWithParent:!0,relevance:0},p={variants:[{begin:/'/},{begin:"`"}],contains:[{begin:"\\(",end:"\\)",contains:["self",c,l,s,d,m]}]},S={className:"name",relevance:0,begin:t,keywords:o},T={variants:[{begin:"\\(",end:"\\)"},{begin:"\\[",end:"\\]"}],contains:[{begin:/lambda/,endsWithParent:!0,returnBegin:!0,contains:[S,{endsParent:!0,variants:[{begin:/\(/,end:/\)/},{begin:/\[/,end:/\]/}],contains:[d]}]},S,u]};return u.contains=[c,s,l,d,m,p,T].concat(_),{name:"Scheme",aliases:["scm"],illegal:/\S/,contains:[e.SHEBANG(),s,l,m,p,T].concat(_)}}},3511:r=>{r.exports=function a(e){const t=[e.C_NUMBER_MODE,{className:"string",begin:"'|\"",end:"'|\"",contains:[e.BACKSLASH_ESCAPE,{begin:"''"}]}];return{name:"Scilab",aliases:["sci"],keywords:{$pattern:/%?\w+/,keyword:"abort break case clear catch continue do elseif else endfunction end for function global if pause return resume select try then while",literal:"%f %F %t %T %pi %eps %inf %nan %e %i %z %s",built_in:"abs and acos asin atan ceil cd chdir clearglobal cosh cos cumprod deff disp error exec execstr exists exp eye gettext floor fprintf fread fsolve imag isdef isempty isinfisnan isvector lasterror length load linspace list listfiles log10 log2 log max min msprintf mclose mopen ones or pathconvert poly printf prod pwd rand real round sinh sin size gsort sprintf sqrt strcat strcmps tring sum system tanh tan type typename warning zeros matrix"},illegal:'("|#|/\\*|\\s+/\\w+)',contains:[{className:"function",beginKeywords:"function",end:"$",contains:[e.UNDERSCORE_TITLE_MODE,{className:"params",begin:"\\(",end:"\\)"}]},{begin:"[a-zA-Z_][a-zA-Z_0-9]*[\\.']+",relevance:0},{begin:"\\[",end:"\\][\\.']*",relevance:0,contains:t},e.COMMENT("//","$")].concat(t)}}},9574:r=>{const e=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],t=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],n=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],i=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],o=["align-content","align-items","align-self","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inline-size","isolation","justify-content","left","letter-spacing","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","resize","rest","rest-after","rest-before","right","row-gap","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","speak","speak-as","src","tab-size","table-layout","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index"].reverse();r.exports=function c(s){const l=(s=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:s.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[s.APOS_STRING_MODE,s.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:s.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z][A-Za-z0-9_-]*/}}))(s),_=i,d=n,m="@[a-z-]+",S={className:"variable",begin:"(\\$[a-zA-Z-][a-zA-Z0-9_-]*)\\b",relevance:0};return{name:"SCSS",case_insensitive:!0,illegal:"[=/|']",contains:[s.C_LINE_COMMENT_MODE,s.C_BLOCK_COMMENT_MODE,l.CSS_NUMBER_MODE,{className:"selector-id",begin:"#[A-Za-z0-9_-]+",relevance:0},{className:"selector-class",begin:"\\.[A-Za-z0-9_-]+",relevance:0},l.ATTRIBUTE_SELECTOR_MODE,{className:"selector-tag",begin:"\\b("+e.join("|")+")\\b",relevance:0},{className:"selector-pseudo",begin:":("+d.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+_.join("|")+")"},S,{begin:/\(/,end:/\)/,contains:[l.CSS_NUMBER_MODE]},l.CSS_VARIABLE,{className:"attribute",begin:"\\b("+o.join("|")+")\\b"},{begin:"\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b"},{begin:/:/,end:/[;}{]/,relevance:0,contains:[l.BLOCK_COMMENT,S,l.HEXCOLOR,l.CSS_NUMBER_MODE,s.QUOTE_STRING_MODE,s.APOS_STRING_MODE,l.IMPORTANT,l.FUNCTION_DISPATCH]},{begin:"@(page|font-face)",keywords:{$pattern:m,keyword:"@page @font-face"}},{begin:"@",end:"[{;]",returnBegin:!0,keywords:{$pattern:/[a-z-]+/,keyword:"and or not only",attribute:t.join(" ")},contains:[{begin:m,className:"keyword"},{begin:/[a-z-]+(?=:)/,className:"attribute"},S,s.QUOTE_STRING_MODE,s.APOS_STRING_MODE,l.HEXCOLOR,l.CSS_NUMBER_MODE]},l.FUNCTION_DISPATCH]}}},3498:r=>{r.exports=function a(e){return{name:"Shell Session",aliases:["console","shellsession"],contains:[{className:"meta.prompt",begin:/^\s{0,3}[/~\w\d[\]()@-]*[>%$#][ ]?/,starts:{end:/[^\\](?=\s*$)/,subLanguage:"bash"}}]}}},5375:r=>{r.exports=function a(e){const t=["add","and","cmp","cmpg","cmpl","const","div","double","float","goto","if","int","long","move","mul","neg","new","nop","not","or","rem","return","shl","shr","sput","sub","throw","ushr","xor"];return{name:"Smali",contains:[{className:"string",begin:'"',end:'"',relevance:0},e.COMMENT("#","$",{relevance:0}),{className:"keyword",variants:[{begin:"\\s*\\.end\\s[a-zA-Z0-9]*"},{begin:"^[ ]*\\.[a-zA-Z]*",relevance:0},{begin:"\\s:[a-zA-Z_0-9]*",relevance:0},{begin:"\\s("+["transient","constructor","abstract","final","synthetic","public","private","protected","static","bridge","system"].join("|")+")"}]},{className:"built_in",variants:[{begin:"\\s("+t.join("|")+")\\s"},{begin:"\\s("+t.join("|")+")((-|/)[a-zA-Z0-9]+)+\\s",relevance:10},{begin:"\\s("+["aget","aput","array","check","execute","fill","filled","goto/16","goto/32","iget","instance","invoke","iput","monitor","packed","sget","sparse"].join("|")+")((-|/)[a-zA-Z0-9]+)*\\s",relevance:10}]},{className:"class",begin:"L[^(;:\n]*;",relevance:0},{begin:"[vp][0-9]+"}]}}},162:r=>{r.exports=function a(e){const t="[a-z][a-zA-Z0-9_]*",n={className:"string",begin:"\\$.{1}"},i={className:"symbol",begin:"#"+e.UNDERSCORE_IDENT_RE};return{name:"Smalltalk",aliases:["st"],keywords:["self","super","nil","true","false","thisContext"],contains:[e.COMMENT('"','"'),e.APOS_STRING_MODE,{className:"type",begin:"\\b[A-Z][A-Za-z0-9_]*",relevance:0},{begin:t+":",relevance:0},e.C_NUMBER_MODE,i,n,{begin:"\\|[ ]*"+t+"([ ]+"+t+")*[ ]*\\|",returnBegin:!0,end:/\|/,illegal:/\S/,contains:[{begin:"(\\|[ ]*)?"+t}]},{begin:"#\\(",end:"\\)",contains:[e.APOS_STRING_MODE,n,e.C_NUMBER_MODE,i]}]}}},2317:r=>{r.exports=function a(e){return{name:"SML (Standard ML)",aliases:["ml"],keywords:{$pattern:"[a-z_]\\w*!?",keyword:"abstype and andalso as case datatype do else end eqtype exception fn fun functor handle if in include infix infixr let local nonfix of op open orelse raise rec sharing sig signature struct structure then type val with withtype where while",built_in:"array bool char exn int list option order real ref string substring vector unit word",literal:"true false NONE SOME LESS EQUAL GREATER nil"},illegal:/\/\/|>>/,contains:[{className:"literal",begin:/\[(\|\|)?\]|\(\)/,relevance:0},e.COMMENT("\\(\\*","\\*\\)",{contains:["self"]}),{className:"symbol",begin:"'[A-Za-z_](?!')[\\w']*"},{className:"type",begin:"`[A-Z][\\w']*"},{className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},{begin:"[a-z_]\\w*'[\\w']*"},e.inherit(e.APOS_STRING_MODE,{className:"string",relevance:0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:"number",begin:"\\b(0[xX][a-fA-F0-9_]+[Lln]?|0[oO][0-7_]+[Lln]?|0[bB][01_]+[Lln]?|[0-9][0-9_]*([Lln]|(\\.[0-9_]*)?([eE][-+]?[0-9_]+)?)?)",relevance:0},{begin:/[-=]>/}]}}},8387:r=>{r.exports=function a(e){const i={className:"string",variants:[{begin:'"',end:'"',contains:[{begin:'""',relevance:0}]},{begin:"'",end:"'",contains:[{begin:"''",relevance:0}]}]},l={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:"define undef ifdef ifndef else endif include if",contains:[{begin:/\\\n/,relevance:0},e.inherit(i,{className:"string"}),{begin:/<[^\n>]*>/,end:/$/,illegal:"\\n"},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]};return{name:"SQF",case_insensitive:!0,keywords:{keyword:["break","breakWith","breakOut","breakTo","case","catch","continue","continueWith","default","do","else","exit","exitWith","for","forEach","from","if","local","private","switch","step","then","throw","to","try","waitUntil","while","with"],built_in:["abs","accTime","acos","action","actionIDs","actionKeys","actionKeysEx","actionKeysImages","actionKeysNames","actionKeysNamesArray","actionName","actionParams","activateAddons","activatedAddons","activateKey","activeTitleEffectParams","add3DENConnection","add3DENEventHandler","add3DENLayer","addAction","addBackpack","addBackpackCargo","addBackpackCargoGlobal","addBackpackGlobal","addBinocularItem","addCamShake","addCuratorAddons","addCuratorCameraArea","addCuratorEditableObjects","addCuratorEditingArea","addCuratorPoints","addEditorObject","addEventHandler","addForce","addForceGeneratorRTD","addGoggles","addGroupIcon","addHandgunItem","addHeadgear","addItem","addItemCargo","addItemCargoGlobal","addItemPool","addItemToBackpack","addItemToUniform","addItemToVest","addLiveStats","addMagazine","addMagazineAmmoCargo","addMagazineCargo","addMagazineCargoGlobal","addMagazineGlobal","addMagazinePool","addMagazines","addMagazineTurret","addMenu","addMenuItem","addMissionEventHandler","addMPEventHandler","addMusicEventHandler","addonFiles","addOwnedMine","addPlayerScores","addPrimaryWeaponItem","addPublicVariableEventHandler","addRating","addResources","addScore","addScoreSide","addSecondaryWeaponItem","addSwitchableUnit","addTeamMember","addToRemainsCollector","addTorque","addUniform","addUserActionEventHandler","addVehicle","addVest","addWaypoint","addWeapon","addWeaponCargo","addWeaponCargoGlobal","addWeaponGlobal","addWeaponItem","addWeaponPool","addWeaponTurret","addWeaponWithAttachmentsCargo","addWeaponWithAttachmentsCargoGlobal","admin","agent","agents","AGLToASL","aimedAtTarget","aimPos","airDensityCurveRTD","airDensityRTD","airplaneThrottle","airportSide","AISFinishHeal","alive","all3DENEntities","allActiveTitleEffects","allAddonsInfo","allAirports","allControls","allCurators","allCutLayers","allDead","allDeadMen","allDiaryRecords","allDiarySubjects","allDisplays","allEnv3DSoundSources","allGroups","allLODs","allMapMarkers","allMines","allMissionObjects","allObjects","allow3DMode","allowCrewInImmobile","allowCuratorLogicIgnoreAreas","allowDamage","allowDammage","allowedService","allowFileOperations","allowFleeing","allowGetIn","allowService","allowSprint","allPlayers","allSimpleObjects","allSites","allTurrets","allUnits","allUnitsUAV","allUsers","allVariables","ambientTemperature","ammo","ammoOnPylon","and","animate","animateBay","animateDoor","animatePylon","animateSource","animationNames","animationPhase","animationSourcePhase","animationState","apertureParams","append","apply","armoryPoints","arrayIntersect","asin","ASLToAGL","ASLToATL","assert","assignAsCargo","assignAsCargoIndex","assignAsCommander","assignAsDriver","assignAsGunner","assignAsTurret","assignCurator","assignedCargo","assignedCommander","assignedDriver","assignedGroup","assignedGunner","assignedItems","assignedTarget","assignedTeam","assignedVehicle","assignedVehicleRole","assignedVehicles","assignItem","assignTeam","assignToAirport","atan","atan2","atg","ATLToASL","attachedObject","attachedObjects","attachedTo","attachObject","attachTo","attackEnabled","awake","backpack","backpackCargo","backpackContainer","backpackItems","backpackMagazines","backpackSpaceFor","behaviour","benchmark","bezierInterpolation","binocular","binocularItems","binocularMagazine","boundingBox","boundingBoxReal","boundingCenter","brakesDisabled","briefingName","buildingExit","buildingPos","buldozer_EnableRoadDiag","buldozer_IsEnabledRoadDiag","buldozer_LoadNewRoads","buldozer_reloadOperMap","buttonAction","buttonSetAction","cadetMode","calculatePath","calculatePlayerVisibilityByFriendly","call","callExtension","camCommand","camCommit","camCommitPrepared","camCommitted","camConstuctionSetParams","camCreate","camDestroy","cameraEffect","cameraEffectEnableHUD","cameraInterest","cameraOn","cameraView","campaignConfigFile","camPreload","camPreloaded","camPrepareBank","camPrepareDir","camPrepareDive","camPrepareFocus","camPrepareFov","camPrepareFovRange","camPreparePos","camPrepareRelPos","camPrepareTarget","camSetBank","camSetDir","camSetDive","camSetFocus","camSetFov","camSetFovRange","camSetPos","camSetRelPos","camSetTarget","camTarget","camUseNVG","canAdd","canAddItemToBackpack","canAddItemToUniform","canAddItemToVest","cancelSimpleTaskDestination","canDeployWeapon","canFire","canMove","canSlingLoad","canStand","canSuspend","canTriggerDynamicSimulation","canUnloadInCombat","canVehicleCargo","captive","captiveNum","cbChecked","cbSetChecked","ceil","channelEnabled","cheatsEnabled","checkAIFeature","checkVisibility","className","clear3DENAttribute","clear3DENInventory","clearAllItemsFromBackpack","clearBackpackCargo","clearBackpackCargoGlobal","clearForcesRTD","clearGroupIcons","clearItemCargo","clearItemCargoGlobal","clearItemPool","clearMagazineCargo","clearMagazineCargoGlobal","clearMagazinePool","clearOverlay","clearRadio","clearWeaponCargo","clearWeaponCargoGlobal","clearWeaponPool","clientOwner","closeDialog","closeDisplay","closeOverlay","collapseObjectTree","collect3DENHistory","collectiveRTD","collisionDisabledWith","combatBehaviour","combatMode","commandArtilleryFire","commandChat","commander","commandFire","commandFollow","commandFSM","commandGetOut","commandingMenu","commandMove","commandRadio","commandStop","commandSuppressiveFire","commandTarget","commandWatch","comment","commitOverlay","compatibleItems","compatibleMagazines","compile","compileFinal","compileScript","completedFSM","composeText","configClasses","configFile","configHierarchy","configName","configOf","configProperties","configSourceAddonList","configSourceMod","configSourceModList","confirmSensorTarget","connectTerminalToUAV","connectToServer","controlsGroupCtrl","conversationDisabled","copyFromClipboard","copyToClipboard","copyWaypoints","cos","count","countEnemy","countFriendly","countSide","countType","countUnknown","create3DENComposition","create3DENEntity","createAgent","createCenter","createDialog","createDiaryLink","createDiaryRecord","createDiarySubject","createDisplay","createGearDialog","createGroup","createGuardedPoint","createHashMap","createHashMapFromArray","createLocation","createMarker","createMarkerLocal","createMenu","createMine","createMissionDisplay","createMPCampaignDisplay","createSimpleObject","createSimpleTask","createSite","createSoundSource","createTask","createTeam","createTrigger","createUnit","createVehicle","createVehicleCrew","createVehicleLocal","crew","ctAddHeader","ctAddRow","ctClear","ctCurSel","ctData","ctFindHeaderRows","ctFindRowHeader","ctHeaderControls","ctHeaderCount","ctRemoveHeaders","ctRemoveRows","ctrlActivate","ctrlAddEventHandler","ctrlAngle","ctrlAnimateModel","ctrlAnimationPhaseModel","ctrlAt","ctrlAutoScrollDelay","ctrlAutoScrollRewind","ctrlAutoScrollSpeed","ctrlBackgroundColor","ctrlChecked","ctrlClassName","ctrlCommit","ctrlCommitted","ctrlCreate","ctrlDelete","ctrlEnable","ctrlEnabled","ctrlFade","ctrlFontHeight","ctrlForegroundColor","ctrlHTMLLoaded","ctrlIDC","ctrlIDD","ctrlMapAnimAdd","ctrlMapAnimClear","ctrlMapAnimCommit","ctrlMapAnimDone","ctrlMapCursor","ctrlMapMouseOver","ctrlMapPosition","ctrlMapScale","ctrlMapScreenToWorld","ctrlMapSetPosition","ctrlMapWorldToScreen","ctrlModel","ctrlModelDirAndUp","ctrlModelScale","ctrlMousePosition","ctrlParent","ctrlParentControlsGroup","ctrlPosition","ctrlRemoveAllEventHandlers","ctrlRemoveEventHandler","ctrlScale","ctrlScrollValues","ctrlSetActiveColor","ctrlSetAngle","ctrlSetAutoScrollDelay","ctrlSetAutoScrollRewind","ctrlSetAutoScrollSpeed","ctrlSetBackgroundColor","ctrlSetChecked","ctrlSetDisabledColor","ctrlSetEventHandler","ctrlSetFade","ctrlSetFocus","ctrlSetFont","ctrlSetFontH1","ctrlSetFontH1B","ctrlSetFontH2","ctrlSetFontH2B","ctrlSetFontH3","ctrlSetFontH3B","ctrlSetFontH4","ctrlSetFontH4B","ctrlSetFontH5","ctrlSetFontH5B","ctrlSetFontH6","ctrlSetFontH6B","ctrlSetFontHeight","ctrlSetFontHeightH1","ctrlSetFontHeightH2","ctrlSetFontHeightH3","ctrlSetFontHeightH4","ctrlSetFontHeightH5","ctrlSetFontHeightH6","ctrlSetFontHeightSecondary","ctrlSetFontP","ctrlSetFontPB","ctrlSetFontSecondary","ctrlSetForegroundColor","ctrlSetModel","ctrlSetModelDirAndUp","ctrlSetModelScale","ctrlSetMousePosition","ctrlSetPixelPrecision","ctrlSetPosition","ctrlSetPositionH","ctrlSetPositionW","ctrlSetPositionX","ctrlSetPositionY","ctrlSetScale","ctrlSetScrollValues","ctrlSetShadow","ctrlSetStructuredText","ctrlSetText","ctrlSetTextColor","ctrlSetTextColorSecondary","ctrlSetTextSecondary","ctrlSetTextSelection","ctrlSetTooltip","ctrlSetTooltipColorBox","ctrlSetTooltipColorShade","ctrlSetTooltipColorText","ctrlSetTooltipMaxWidth","ctrlSetURL","ctrlSetURLOverlayMode","ctrlShadow","ctrlShow","ctrlShown","ctrlStyle","ctrlText","ctrlTextColor","ctrlTextHeight","ctrlTextSecondary","ctrlTextSelection","ctrlTextWidth","ctrlTooltip","ctrlType","ctrlURL","ctrlURLOverlayMode","ctrlVisible","ctRowControls","ctRowCount","ctSetCurSel","ctSetData","ctSetHeaderTemplate","ctSetRowTemplate","ctSetValue","ctValue","curatorAddons","curatorCamera","curatorCameraArea","curatorCameraAreaCeiling","curatorCoef","curatorEditableObjects","curatorEditingArea","curatorEditingAreaType","curatorMouseOver","curatorPoints","curatorRegisteredObjects","curatorSelected","curatorWaypointCost","current3DENOperation","currentChannel","currentCommand","currentMagazine","currentMagazineDetail","currentMagazineDetailTurret","currentMagazineTurret","currentMuzzle","currentNamespace","currentPilot","currentTask","currentTasks","currentThrowable","currentVisionMode","currentWaypoint","currentWeapon","currentWeaponMode","currentWeaponTurret","currentZeroing","cursorObject","cursorTarget","customChat","customRadio","customWaypointPosition","cutFadeOut","cutObj","cutRsc","cutText","damage","date","dateToNumber","dayTime","deActivateKey","debriefingText","debugFSM","debugLog","decayGraphValues","deg","delete3DENEntities","deleteAt","deleteCenter","deleteCollection","deleteEditorObject","deleteGroup","deleteGroupWhenEmpty","deleteIdentity","deleteLocation","deleteMarker","deleteMarkerLocal","deleteRange","deleteResources","deleteSite","deleteStatus","deleteTeam","deleteVehicle","deleteVehicleCrew","deleteWaypoint","detach","detectedMines","diag_activeMissionFSMs","diag_activeScripts","diag_activeSQFScripts","diag_activeSQSScripts","diag_allMissionEventHandlers","diag_captureFrame","diag_captureFrameToFile","diag_captureSlowFrame","diag_codePerformance","diag_deltaTime","diag_drawmode","diag_dumpCalltraceToLog","diag_dumpScriptAssembly","diag_dumpTerrainSynth","diag_dynamicSimulationEnd","diag_enable","diag_enabled","diag_exportConfig","diag_exportTerrainSVG","diag_fps","diag_fpsmin","diag_frameno","diag_getTerrainSegmentOffset","diag_lightNewLoad","diag_list","diag_localized","diag_log","diag_logSlowFrame","diag_mergeConfigFile","diag_recordTurretLimits","diag_resetFSM","diag_resetshapes","diag_scope","diag_setLightNew","diag_stacktrace","diag_tickTime","diag_toggle","dialog","diarySubjectExists","didJIP","didJIPOwner","difficulty","difficultyEnabled","difficultyEnabledRTD","difficultyOption","direction","directionStabilizationEnabled","directSay","disableAI","disableBrakes","disableCollisionWith","disableConversation","disableDebriefingStats","disableMapIndicators","disableNVGEquipment","disableRemoteSensors","disableSerialization","disableTIEquipment","disableUAVConnectability","disableUserInput","displayAddEventHandler","displayChild","displayCtrl","displayParent","displayRemoveAllEventHandlers","displayRemoveEventHandler","displaySetEventHandler","displayUniqueName","displayUpdate","dissolveTeam","distance","distance2D","distanceSqr","distributionRegion","do3DENAction","doArtilleryFire","doFire","doFollow","doFSM","doGetOut","doMove","doorPhase","doStop","doSuppressiveFire","doTarget","doWatch","drawArrow","drawEllipse","drawIcon","drawIcon3D","drawLaser","drawLine","drawLine3D","drawLink","drawLocation","drawPolygon","drawRectangle","drawTriangle","driver","drop","dynamicSimulationDistance","dynamicSimulationDistanceCoef","dynamicSimulationEnabled","dynamicSimulationSystemEnabled","echo","edit3DENMissionAttributes","editObject","editorSetEventHandler","effectiveCommander","elevatePeriscope","emptyPositions","enableAI","enableAIFeature","enableAimPrecision","enableAttack","enableAudioFeature","enableAutoStartUpRTD","enableAutoTrimRTD","enableCamShake","enableCaustics","enableChannel","enableCollisionWith","enableCopilot","enableDebriefingStats","enableDiagLegend","enableDirectionStabilization","enableDynamicSimulation","enableDynamicSimulationSystem","enableEndDialog","enableEngineArtillery","enableEnvironment","enableFatigue","enableGunLights","enableInfoPanelComponent","enableIRLasers","enableMimics","enablePersonTurret","enableRadio","enableReload","enableRopeAttach","enableSatNormalOnDetail","enableSaving","enableSentences","enableSimulation","enableSimulationGlobal","enableStamina","enableStressDamage","enableTeamSwitch","enableTraffic","enableUAVConnectability","enableUAVWaypoints","enableVehicleCargo","enableVehicleSensor","enableWeaponDisassembly","endLoadingScreen","endMission","engineOn","enginesIsOnRTD","enginesPowerRTD","enginesRpmRTD","enginesTorqueRTD","entities","environmentEnabled","environmentVolume","equipmentDisabled","estimatedEndServerTime","estimatedTimeLeft","evalObjectArgument","everyBackpack","everyContainer","exec","execEditorScript","execFSM","execVM","exp","expectedDestination","exportJIPMessages","eyeDirection","eyePos","face","faction","fadeEnvironment","fadeMusic","fadeRadio","fadeSound","fadeSpeech","failMission","fileExists","fillWeaponsFromPool","find","findAny","findCover","findDisplay","findEditorObject","findEmptyPosition","findEmptyPositionReady","findIf","findNearestEnemy","finishMissionInit","finite","fire","fireAtTarget","firstBackpack","flag","flagAnimationPhase","flagOwner","flagSide","flagTexture","flatten","fleeing","floor","flyInHeight","flyInHeightASL","focusedCtrl","fog","fogForecast","fogParams","forceAddUniform","forceAtPositionRTD","forceCadetDifficulty","forcedMap","forceEnd","forceFlagTexture","forceFollowRoad","forceGeneratorRTD","forceMap","forceRespawn","forceSpeed","forceUnicode","forceWalk","forceWeaponFire","forceWeatherChange","forEachMember","forEachMemberAgent","forEachMemberTeam","forgetTarget","format","formation","formationDirection","formationLeader","formationMembers","formationPosition","formationTask","formatText","formLeader","freeExtension","freeLook","fromEditor","fuel","fullCrew","gearIDCAmmoCount","gearSlotAmmoCount","gearSlotData","gestureState","get","get3DENActionState","get3DENAttribute","get3DENCamera","get3DENConnections","get3DENEntity","get3DENEntityID","get3DENGrid","get3DENIconsVisible","get3DENLayerEntities","get3DENLinesVisible","get3DENMissionAttribute","get3DENMouseOver","get3DENSelected","getAimingCoef","getAllEnv3DSoundControllers","getAllEnvSoundControllers","getAllHitPointsDamage","getAllOwnedMines","getAllPylonsInfo","getAllSoundControllers","getAllUnitTraits","getAmmoCargo","getAnimAimPrecision","getAnimSpeedCoef","getArray","getArtilleryAmmo","getArtilleryComputerSettings","getArtilleryETA","getAssetDLCInfo","getAssignedCuratorLogic","getAssignedCuratorUnit","getAttackTarget","getAudioOptionVolumes","getBackpackCargo","getBleedingRemaining","getBurningValue","getCalculatePlayerVisibilityByFriendly","getCameraViewDirection","getCargoIndex","getCenterOfMass","getClientState","getClientStateNumber","getCompatiblePylonMagazines","getConnectedUAV","getConnectedUAVUnit","getContainerMaxLoad","getCorpse","getCruiseControl","getCursorObjectParams","getCustomAimCoef","getCustomSoundController","getCustomSoundControllerCount","getDammage","getDebriefingText","getDescription","getDir","getDirVisual","getDiverState","getDLCAssetsUsage","getDLCAssetsUsageByName","getDLCs","getDLCUsageTime","getEditorCamera","getEditorMode","getEditorObjectScope","getElevationOffset","getEngineTargetRPMRTD","getEnv3DSoundController","getEnvSoundController","getEventHandlerInfo","getFatigue","getFieldManualStartPage","getForcedFlagTexture","getForcedSpeed","getFriend","getFSMVariable","getFuelCargo","getGraphValues","getGroupIcon","getGroupIconParams","getGroupIcons","getHideFrom","getHit","getHitIndex","getHitPointDamage","getItemCargo","getLighting","getLightingAt","getLoadedModsInfo","getMagazineCargo","getMarkerColor","getMarkerPos","getMarkerSize","getMarkerType","getMass","getMissionConfig","getMissionConfigValue","getMissionDLCs","getMissionLayerEntities","getMissionLayers","getMissionPath","getModelInfo","getMousePosition","getMusicPlayedTime","getNumber","getObjectArgument","getObjectChildren","getObjectDLC","getObjectFOV","getObjectID","getObjectMaterials","getObjectProxy","getObjectScale","getObjectTextures","getObjectType","getObjectViewDistance","getOpticsMode","getOrDefault","getOrDefaultCall","getOxygenRemaining","getPersonUsedDLCs","getPilotCameraDirection","getPilotCameraPosition","getPilotCameraRotation","getPilotCameraTarget","getPiPViewDistance","getPlateNumber","getPlayerChannel","getPlayerID","getPlayerScores","getPlayerUID","getPlayerVoNVolume","getPos","getPosASL","getPosASLVisual","getPosASLW","getPosATL","getPosATLVisual","getPosVisual","getPosWorld","getPosWorldVisual","getPylonMagazines","getRelDir","getRelPos","getRemoteSensorsDisabled","getRepairCargo","getResolution","getRoadInfo","getRotorBrakeRTD","getSensorTargets","getSensorThreats","getShadowDistance","getShotParents","getSlingLoad","getSoundController","getSoundControllerResult","getSpeed","getStamina","getStatValue","getSteamFriendsServers","getSubtitleOptions","getSuppression","getTerrainGrid","getTerrainHeight","getTerrainHeightASL","getTerrainInfo","getText","getTextRaw","getTextureInfo","getTextWidth","getTiParameters","getTotalDLCUsageTime","getTrimOffsetRTD","getTurretLimits","getTurretOpticsMode","getUnitFreefallInfo","getUnitLoadout","getUnitTrait","getUnloadInCombat","getUserInfo","getUserMFDText","getUserMFDValue","getVariable","getVehicleCargo","getVehicleTiPars","getWeaponCargo","getWeaponSway","getWingsOrientationRTD","getWingsPositionRTD","getWPPos","glanceAt","globalChat","globalRadio","goggles","goto","group","groupChat","groupFromNetId","groupIconSelectable","groupIconsVisible","groupID","groupOwner","groupRadio","groups","groupSelectedUnits","groupSelectUnit","gunner","gusts","halt","handgunItems","handgunMagazine","handgunWeapon","handsHit","hashValue","hasInterface","hasPilotCamera","hasWeapon","hcAllGroups","hcGroupParams","hcLeader","hcRemoveAllGroups","hcRemoveGroup","hcSelected","hcSelectGroup","hcSetGroup","hcShowBar","hcShownBar","headgear","hideBody","hideObject","hideObjectGlobal","hideSelection","hint","hintC","hintCadet","hintSilent","hmd","hostMission","htmlLoad","HUDMovementLevels","humidity","image","importAllGroups","importance","in","inArea","inAreaArray","incapacitatedState","inflame","inflamed","infoPanel","infoPanelComponentEnabled","infoPanelComponents","infoPanels","inGameUISetEventHandler","inheritsFrom","initAmbientLife","inPolygon","inputAction","inputController","inputMouse","inRangeOfArtillery","insert","insertEditorObject","intersect","is3DEN","is3DENMultiplayer","is3DENPreview","isAbleToBreathe","isActionMenuVisible","isAgent","isAimPrecisionEnabled","isAllowedCrewInImmobile","isArray","isAutoHoverOn","isAutonomous","isAutoStartUpEnabledRTD","isAutotest","isAutoTrimOnRTD","isAwake","isBleeding","isBurning","isClass","isCollisionLightOn","isCopilotEnabled","isDamageAllowed","isDedicated","isDLCAvailable","isEngineOn","isEqualRef","isEqualTo","isEqualType","isEqualTypeAll","isEqualTypeAny","isEqualTypeArray","isEqualTypeParams","isFilePatchingEnabled","isFinal","isFlashlightOn","isFlatEmpty","isForcedWalk","isFormationLeader","isGameFocused","isGamePaused","isGroupDeletedWhenEmpty","isHidden","isInRemainsCollector","isInstructorFigureEnabled","isIRLaserOn","isKeyActive","isKindOf","isLaserOn","isLightOn","isLocalized","isManualFire","isMarkedForCollection","isMissionProfileNamespaceLoaded","isMultiplayer","isMultiplayerSolo","isNil","isNotEqualRef","isNotEqualTo","isNull","isNumber","isObjectHidden","isObjectRTD","isOnRoad","isPiPEnabled","isPlayer","isRealTime","isRemoteExecuted","isRemoteExecutedJIP","isSaving","isSensorTargetConfirmed","isServer","isShowing3DIcons","isSimpleObject","isSprintAllowed","isStaminaEnabled","isSteamMission","isSteamOverlayEnabled","isStreamFriendlyUIEnabled","isStressDamageEnabled","isText","isTouchingGround","isTurnedOut","isTutHintsEnabled","isUAVConnectable","isUAVConnected","isUIContext","isUniformAllowed","isVehicleCargo","isVehicleRadarOn","isVehicleSensorEnabled","isWalking","isWeaponDeployed","isWeaponRested","itemCargo","items","itemsWithMagazines","join","joinAs","joinAsSilent","joinSilent","joinString","kbAddDatabase","kbAddDatabaseTargets","kbAddTopic","kbHasTopic","kbReact","kbRemoveTopic","kbTell","kbWasSaid","keyImage","keyName","keys","knowsAbout","land","landAt","landResult","language","laserTarget","lbAdd","lbClear","lbColor","lbColorRight","lbCurSel","lbData","lbDelete","lbIsSelected","lbPicture","lbPictureRight","lbSelection","lbSetColor","lbSetColorRight","lbSetCurSel","lbSetData","lbSetPicture","lbSetPictureColor","lbSetPictureColorDisabled","lbSetPictureColorSelected","lbSetPictureRight","lbSetPictureRightColor","lbSetPictureRightColorDisabled","lbSetPictureRightColorSelected","lbSetSelectColor","lbSetSelectColorRight","lbSetSelected","lbSetText","lbSetTextRight","lbSetTooltip","lbSetValue","lbSize","lbSort","lbSortBy","lbSortByValue","lbText","lbTextRight","lbTooltip","lbValue","leader","leaderboardDeInit","leaderboardGetRows","leaderboardInit","leaderboardRequestRowsFriends","leaderboardRequestRowsGlobal","leaderboardRequestRowsGlobalAroundUser","leaderboardsRequestUploadScore","leaderboardsRequestUploadScoreKeepBest","leaderboardState","leaveVehicle","libraryCredits","libraryDisclaimers","lifeState","lightAttachObject","lightDetachObject","lightIsOn","lightnings","limitSpeed","linearConversion","lineIntersects","lineIntersectsObjs","lineIntersectsSurfaces","lineIntersectsWith","linkItem","list","listObjects","listRemoteTargets","listVehicleSensors","ln","lnbAddArray","lnbAddColumn","lnbAddRow","lnbClear","lnbColor","lnbColorRight","lnbCurSelRow","lnbData","lnbDeleteColumn","lnbDeleteRow","lnbGetColumnsPosition","lnbPicture","lnbPictureRight","lnbSetColor","lnbSetColorRight","lnbSetColumnsPos","lnbSetCurSelRow","lnbSetData","lnbSetPicture","lnbSetPictureColor","lnbSetPictureColorRight","lnbSetPictureColorSelected","lnbSetPictureColorSelectedRight","lnbSetPictureRight","lnbSetText","lnbSetTextRight","lnbSetTooltip","lnbSetValue","lnbSize","lnbSort","lnbSortBy","lnbSortByValue","lnbText","lnbTextRight","lnbValue","load","loadAbs","loadBackpack","loadConfig","loadFile","loadGame","loadIdentity","loadMagazine","loadOverlay","loadStatus","loadUniform","loadVest","localize","localNamespace","locationPosition","lock","lockCameraTo","lockCargo","lockDriver","locked","lockedCameraTo","lockedCargo","lockedDriver","lockedInventory","lockedTurret","lockIdentity","lockInventory","lockTurret","lockWp","log","logEntities","logNetwork","logNetworkTerminate","lookAt","lookAtPos","magazineCargo","magazines","magazinesAllTurrets","magazinesAmmo","magazinesAmmoCargo","magazinesAmmoFull","magazinesDetail","magazinesDetailBackpack","magazinesDetailUniform","magazinesDetailVest","magazinesTurret","magazineTurretAmmo","mapAnimAdd","mapAnimClear","mapAnimCommit","mapAnimDone","mapCenterOnCamera","mapGridPosition","markAsFinishedOnSteam","markerAlpha","markerBrush","markerChannel","markerColor","markerDir","markerPolyline","markerPos","markerShadow","markerShape","markerSize","markerText","markerType","matrixMultiply","matrixTranspose","max","maxLoad","members","menuAction","menuAdd","menuChecked","menuClear","menuCollapse","menuData","menuDelete","menuEnable","menuEnabled","menuExpand","menuHover","menuPicture","menuSetAction","menuSetCheck","menuSetData","menuSetPicture","menuSetShortcut","menuSetText","menuSetURL","menuSetValue","menuShortcut","menuShortcutText","menuSize","menuSort","menuText","menuURL","menuValue","merge","min","mineActive","mineDetectedBy","missileTarget","missileTargetPos","missionConfigFile","missionDifficulty","missionEnd","missionName","missionNameSource","missionNamespace","missionProfileNamespace","missionStart","missionVersion","mod","modelToWorld","modelToWorldVisual","modelToWorldVisualWorld","modelToWorldWorld","modParams","moonIntensity","moonPhase","morale","move","move3DENCamera","moveInAny","moveInCargo","moveInCommander","moveInDriver","moveInGunner","moveInTurret","moveObjectToEnd","moveOut","moveTime","moveTo","moveToCompleted","moveToFailed","musicVolume","name","namedProperties","nameSound","nearEntities","nearestBuilding","nearestLocation","nearestLocations","nearestLocationWithDubbing","nearestMines","nearestObject","nearestObjects","nearestTerrainObjects","nearObjects","nearObjectsReady","nearRoads","nearSupplies","nearTargets","needReload","needService","netId","netObjNull","newOverlay","nextMenuItemIndex","nextWeatherChange","nMenuItems","not","numberOfEnginesRTD","numberToDate","objectCurators","objectFromNetId","objectParent","objStatus","onBriefingGroup","onBriefingNotes","onBriefingPlan","onBriefingTeamSwitch","onCommandModeChanged","onDoubleClick","onEachFrame","onGroupIconClick","onGroupIconOverEnter","onGroupIconOverLeave","onHCGroupSelectionChanged","onMapSingleClick","onPlayerConnected","onPlayerDisconnected","onPreloadFinished","onPreloadStarted","onShowNewObject","onTeamSwitch","openCuratorInterface","openDLCPage","openGPS","openMap","openSteamApp","openYoutubeVideo","or","orderGetIn","overcast","overcastForecast","owner","param","params","parseNumber","parseSimpleArray","parseText","parsingNamespace","particlesQuality","periscopeElevation","pickWeaponPool","pitch","pixelGrid","pixelGridBase","pixelGridNoUIScale","pixelH","pixelW","playableSlotsNumber","playableUnits","playAction","playActionNow","player","playerRespawnTime","playerSide","playersNumber","playGesture","playMission","playMove","playMoveNow","playMusic","playScriptedMission","playSound","playSound3D","playSoundUI","pose","position","positionCameraToWorld","posScreenToWorld","posWorldToScreen","ppEffectAdjust","ppEffectCommit","ppEffectCommitted","ppEffectCreate","ppEffectDestroy","ppEffectEnable","ppEffectEnabled","ppEffectForceInNVG","precision","preloadCamera","preloadObject","preloadSound","preloadTitleObj","preloadTitleRsc","preprocessFile","preprocessFileLineNumbers","primaryWeapon","primaryWeaponItems","primaryWeaponMagazine","priority","processDiaryLink","productVersion","profileName","profileNamespace","profileNameSteam","progressLoadingScreen","progressPosition","progressSetPosition","publicVariable","publicVariableClient","publicVariableServer","pushBack","pushBackUnique","putWeaponPool","queryItemsPool","queryMagazinePool","queryWeaponPool","rad","radioChannelAdd","radioChannelCreate","radioChannelInfo","radioChannelRemove","radioChannelSetCallSign","radioChannelSetLabel","radioEnabled","radioVolume","rain","rainbow","rainParams","random","rank","rankId","rating","rectangular","regexFind","regexMatch","regexReplace","registeredTasks","registerTask","reload","reloadEnabled","remoteControl","remoteExec","remoteExecCall","remoteExecutedOwner","remove3DENConnection","remove3DENEventHandler","remove3DENLayer","removeAction","removeAll3DENEventHandlers","removeAllActions","removeAllAssignedItems","removeAllBinocularItems","removeAllContainers","removeAllCuratorAddons","removeAllCuratorCameraAreas","removeAllCuratorEditingAreas","removeAllEventHandlers","removeAllHandgunItems","removeAllItems","removeAllItemsWithMagazines","removeAllMissionEventHandlers","removeAllMPEventHandlers","removeAllMusicEventHandlers","removeAllOwnedMines","removeAllPrimaryWeaponItems","removeAllSecondaryWeaponItems","removeAllUserActionEventHandlers","removeAllWeapons","removeBackpack","removeBackpackGlobal","removeBinocularItem","removeCuratorAddons","removeCuratorCameraArea","removeCuratorEditableObjects","removeCuratorEditingArea","removeDiaryRecord","removeDiarySubject","removeDrawIcon","removeDrawLinks","removeEventHandler","removeFromRemainsCollector","removeGoggles","removeGroupIcon","removeHandgunItem","removeHeadgear","removeItem","removeItemFromBackpack","removeItemFromUniform","removeItemFromVest","removeItems","removeMagazine","removeMagazineGlobal","removeMagazines","removeMagazinesTurret","removeMagazineTurret","removeMenuItem","removeMissionEventHandler","removeMPEventHandler","removeMusicEventHandler","removeOwnedMine","removePrimaryWeaponItem","removeSecondaryWeaponItem","removeSimpleTask","removeSwitchableUnit","removeTeamMember","removeUniform","removeUserActionEventHandler","removeVest","removeWeapon","removeWeaponAttachmentCargo","removeWeaponCargo","removeWeaponGlobal","removeWeaponTurret","reportRemoteTarget","requiredVersion","resetCamShake","resetSubgroupDirection","resize","resources","respawnVehicle","restartEditorCamera","reveal","revealMine","reverse","reversedMouseY","roadAt","roadsConnectedTo","roleDescription","ropeAttachedObjects","ropeAttachedTo","ropeAttachEnabled","ropeAttachTo","ropeCreate","ropeCut","ropeDestroy","ropeDetach","ropeEndPosition","ropeLength","ropes","ropesAttachedTo","ropeSegments","ropeUnwind","ropeUnwound","rotorsForcesRTD","rotorsRpmRTD","round","runInitScript","safeZoneH","safeZoneW","safeZoneWAbs","safeZoneX","safeZoneXAbs","safeZoneY","save3DENInventory","saveGame","saveIdentity","saveJoysticks","saveMissionProfileNamespace","saveOverlay","saveProfileNamespace","saveStatus","saveVar","savingEnabled","say","say2D","say3D","scopeName","score","scoreSide","screenshot","screenToWorld","scriptDone","scriptName","scudState","secondaryWeapon","secondaryWeaponItems","secondaryWeaponMagazine","select","selectBestPlaces","selectDiarySubject","selectedEditorObjects","selectEditorObject","selectionNames","selectionPosition","selectionVectorDirAndUp","selectLeader","selectMax","selectMin","selectNoPlayer","selectPlayer","selectRandom","selectRandomWeighted","selectWeapon","selectWeaponTurret","sendAUMessage","sendSimpleCommand","sendTask","sendTaskResult","sendUDPMessage","sentencesEnabled","serverCommand","serverCommandAvailable","serverCommandExecutable","serverName","serverNamespace","serverTime","set","set3DENAttribute","set3DENAttributes","set3DENGrid","set3DENIconsVisible","set3DENLayer","set3DENLinesVisible","set3DENLogicType","set3DENMissionAttribute","set3DENMissionAttributes","set3DENModelsVisible","set3DENObjectType","set3DENSelected","setAccTime","setActualCollectiveRTD","setAirplaneThrottle","setAirportSide","setAmmo","setAmmoCargo","setAmmoOnPylon","setAnimSpeedCoef","setAperture","setApertureNew","setArmoryPoints","setAttributes","setAutonomous","setBehaviour","setBehaviourStrong","setBleedingRemaining","setBrakesRTD","setCameraInterest","setCamShakeDefParams","setCamShakeParams","setCamUseTi","setCaptive","setCenterOfMass","setCollisionLight","setCombatBehaviour","setCombatMode","setCompassOscillation","setConvoySeparation","setCruiseControl","setCuratorCameraAreaCeiling","setCuratorCoef","setCuratorEditingAreaType","setCuratorWaypointCost","setCurrentChannel","setCurrentTask","setCurrentWaypoint","setCustomAimCoef","SetCustomMissionData","setCustomSoundController","setCustomWeightRTD","setDamage","setDammage","setDate","setDebriefingText","setDefaultCamera","setDestination","setDetailMapBlendPars","setDiaryRecordText","setDiarySubjectPicture","setDir","setDirection","setDrawIcon","setDriveOnPath","setDropInterval","setDynamicSimulationDistance","setDynamicSimulationDistanceCoef","setEditorMode","setEditorObjectScope","setEffectCondition","setEffectiveCommander","setEngineRpmRTD","setFace","setFaceanimation","setFatigue","setFeatureType","setFlagAnimationPhase","setFlagOwner","setFlagSide","setFlagTexture","setFog","setForceGeneratorRTD","setFormation","setFormationTask","setFormDir","setFriend","setFromEditor","setFSMVariable","setFuel","setFuelCargo","setGroupIcon","setGroupIconParams","setGroupIconsSelectable","setGroupIconsVisible","setGroupid","setGroupIdGlobal","setGroupOwner","setGusts","setHideBehind","setHit","setHitIndex","setHitPointDamage","setHorizonParallaxCoef","setHUDMovementLevels","setHumidity","setIdentity","setImportance","setInfoPanel","setLeader","setLightAmbient","setLightAttenuation","setLightBrightness","setLightColor","setLightConePars","setLightDayLight","setLightFlareMaxDistance","setLightFlareSize","setLightIntensity","setLightIR","setLightnings","setLightUseFlare","setLightVolumeShape","setLocalWindParams","setMagazineTurretAmmo","setMarkerAlpha","setMarkerAlphaLocal","setMarkerBrush","setMarkerBrushLocal","setMarkerColor","setMarkerColorLocal","setMarkerDir","setMarkerDirLocal","setMarkerPolyline","setMarkerPolylineLocal","setMarkerPos","setMarkerPosLocal","setMarkerShadow","setMarkerShadowLocal","setMarkerShape","setMarkerShapeLocal","setMarkerSize","setMarkerSizeLocal","setMarkerText","setMarkerTextLocal","setMarkerType","setMarkerTypeLocal","setMass","setMaxLoad","setMimic","setMissileTarget","setMissileTargetPos","setMousePosition","setMusicEffect","setMusicEventHandler","setName","setNameSound","setObjectArguments","setObjectMaterial","setObjectMaterialGlobal","setObjectProxy","setObjectScale","setObjectTexture","setObjectTextureGlobal","setObjectViewDistance","setOpticsMode","setOvercast","setOwner","setOxygenRemaining","setParticleCircle","setParticleClass","setParticleFire","setParticleParams","setParticleRandom","setPilotCameraDirection","setPilotCameraRotation","setPilotCameraTarget","setPilotLight","setPiPEffect","setPiPViewDistance","setPitch","setPlateNumber","setPlayable","setPlayerRespawnTime","setPlayerVoNVolume","setPos","setPosASL","setPosASL2","setPosASLW","setPosATL","setPosition","setPosWorld","setPylonLoadout","setPylonsPriority","setRadioMsg","setRain","setRainbow","setRandomLip","setRank","setRectangular","setRepairCargo","setRotorBrakeRTD","setShadowDistance","setShotParents","setSide","setSimpleTaskAlwaysVisible","setSimpleTaskCustomData","setSimpleTaskDescription","setSimpleTaskDestination","setSimpleTaskTarget","setSimpleTaskType","setSimulWeatherLayers","setSize","setSkill","setSlingLoad","setSoundEffect","setSpeaker","setSpeech","setSpeedMode","setStamina","setStaminaScheme","setStatValue","setSuppression","setSystemOfUnits","setTargetAge","setTaskMarkerOffset","setTaskResult","setTaskState","setTerrainGrid","setTerrainHeight","setText","setTimeMultiplier","setTiParameter","setTitleEffect","setTowParent","setTrafficDensity","setTrafficDistance","setTrafficGap","setTrafficSpeed","setTriggerActivation","setTriggerArea","setTriggerInterval","setTriggerStatements","setTriggerText","setTriggerTimeout","setTriggerType","setTurretLimits","setTurretOpticsMode","setType","setUnconscious","setUnitAbility","setUnitCombatMode","setUnitFreefallHeight","setUnitLoadout","setUnitPos","setUnitPosWeak","setUnitRank","setUnitRecoilCoefficient","setUnitTrait","setUnloadInCombat","setUserActionText","setUserMFDText","setUserMFDValue","setVariable","setVectorDir","setVectorDirAndUp","setVectorUp","setVehicleAmmo","setVehicleAmmoDef","setVehicleArmor","setVehicleCargo","setVehicleId","setVehicleLock","setVehiclePosition","setVehicleRadar","setVehicleReceiveRemoteTargets","setVehicleReportOwnPosition","setVehicleReportRemoteTargets","setVehicleTiPars","setVehicleVarName","setVelocity","setVelocityModelSpace","setVelocityTransformation","setViewDistance","setVisibleIfTreeCollapsed","setWantedRPMRTD","setWaves","setWaypointBehaviour","setWaypointCombatMode","setWaypointCompletionRadius","setWaypointDescription","setWaypointForceBehaviour","setWaypointFormation","setWaypointHousePosition","setWaypointLoiterAltitude","setWaypointLoiterRadius","setWaypointLoiterType","setWaypointName","setWaypointPosition","setWaypointScript","setWaypointSpeed","setWaypointStatements","setWaypointTimeout","setWaypointType","setWaypointVisible","setWeaponReloadingTime","setWeaponZeroing","setWind","setWindDir","setWindForce","setWindStr","setWingForceScaleRTD","setWPPos","show3DIcons","showChat","showCinemaBorder","showCommandingMenu","showCompass","showCuratorCompass","showGps","showHUD","showLegend","showMap","shownArtilleryComputer","shownChat","shownCompass","shownCuratorCompass","showNewEditorObject","shownGps","shownHUD","shownMap","shownPad","shownRadio","shownScoretable","shownSubtitles","shownUAVFeed","shownWarrant","shownWatch","showPad","showRadio","showScoretable","showSubtitles","showUAVFeed","showWarrant","showWatch","showWaypoint","showWaypoints","side","sideChat","sideRadio","simpleTasks","simulationEnabled","simulCloudDensity","simulCloudOcclusion","simulInClouds","simulWeatherSync","sin","size","sizeOf","skill","skillFinal","skipTime","sleep","sliderPosition","sliderRange","sliderSetPosition","sliderSetRange","sliderSetSpeed","sliderSpeed","slingLoadAssistantShown","soldierMagazines","someAmmo","sort","soundVolume","spawn","speaker","speechVolume","speed","speedMode","splitString","sqrt","squadParams","stance","startLoadingScreen","stop","stopEngineRTD","stopped","str","sunOrMoon","supportInfo","suppressFor","surfaceIsWater","surfaceNormal","surfaceTexture","surfaceType","swimInDepth","switchableUnits","switchAction","switchCamera","switchGesture","switchLight","switchMove","synchronizedObjects","synchronizedTriggers","synchronizedWaypoints","synchronizeObjectsAdd","synchronizeObjectsRemove","synchronizeTrigger","synchronizeWaypoint","systemChat","systemOfUnits","systemTime","systemTimeUTC","tan","targetKnowledge","targets","targetsAggregate","targetsQuery","taskAlwaysVisible","taskChildren","taskCompleted","taskCustomData","taskDescription","taskDestination","taskHint","taskMarkerOffset","taskName","taskParent","taskResult","taskState","taskType","teamMember","teamName","teams","teamSwitch","teamSwitchEnabled","teamType","terminate","terrainIntersect","terrainIntersectASL","terrainIntersectAtASL","text","textLog","textLogFormat","tg","time","timeMultiplier","titleCut","titleFadeOut","titleObj","titleRsc","titleText","toArray","toFixed","toLower","toLowerANSI","toString","toUpper","toUpperANSI","triggerActivated","triggerActivation","triggerAmmo","triggerArea","triggerAttachedVehicle","triggerAttachObject","triggerAttachVehicle","triggerDynamicSimulation","triggerInterval","triggerStatements","triggerText","triggerTimeout","triggerTimeoutCurrent","triggerType","trim","turretLocal","turretOwner","turretUnit","tvAdd","tvClear","tvCollapse","tvCollapseAll","tvCount","tvCurSel","tvData","tvDelete","tvExpand","tvExpandAll","tvIsSelected","tvPicture","tvPictureRight","tvSelection","tvSetColor","tvSetCurSel","tvSetData","tvSetPicture","tvSetPictureColor","tvSetPictureColorDisabled","tvSetPictureColorSelected","tvSetPictureRight","tvSetPictureRightColor","tvSetPictureRightColorDisabled","tvSetPictureRightColorSelected","tvSetSelectColor","tvSetSelected","tvSetText","tvSetTooltip","tvSetValue","tvSort","tvSortAll","tvSortByValue","tvSortByValueAll","tvText","tvTooltip","tvValue","type","typeName","typeOf","UAVControl","uiNamespace","uiSleep","unassignCurator","unassignItem","unassignTeam","unassignVehicle","underwater","uniform","uniformContainer","uniformItems","uniformMagazines","uniqueUnitItems","unitAddons","unitAimPosition","unitAimPositionVisual","unitBackpack","unitCombatMode","unitIsUAV","unitPos","unitReady","unitRecoilCoefficient","units","unitsBelowHeight","unitTurret","unlinkItem","unlockAchievement","unregisterTask","updateDrawIcon","updateMenuItem","updateObjectTree","useAIOperMapObstructionTest","useAISteeringComponent","useAudioTimeForMoves","userInputDisabled","values","vectorAdd","vectorCos","vectorCrossProduct","vectorDiff","vectorDir","vectorDirVisual","vectorDistance","vectorDistanceSqr","vectorDotProduct","vectorFromTo","vectorLinearConversion","vectorMagnitude","vectorMagnitudeSqr","vectorModelToWorld","vectorModelToWorldVisual","vectorMultiply","vectorNormalized","vectorUp","vectorUpVisual","vectorWorldToModel","vectorWorldToModelVisual","vehicle","vehicleCargoEnabled","vehicleChat","vehicleMoveInfo","vehicleRadio","vehicleReceiveRemoteTargets","vehicleReportOwnPosition","vehicleReportRemoteTargets","vehicles","vehicleVarName","velocity","velocityModelSpace","verifySignature","vest","vestContainer","vestItems","vestMagazines","viewDistance","visibleCompass","visibleGps","visibleMap","visiblePosition","visiblePositionASL","visibleScoretable","visibleWatch","waves","waypointAttachedObject","waypointAttachedVehicle","waypointAttachObject","waypointAttachVehicle","waypointBehaviour","waypointCombatMode","waypointCompletionRadius","waypointDescription","waypointForceBehaviour","waypointFormation","waypointHousePosition","waypointLoiterAltitude","waypointLoiterRadius","waypointLoiterType","waypointName","waypointPosition","waypoints","waypointScript","waypointsEnabledUAV","waypointShow","waypointSpeed","waypointStatements","waypointTimeout","waypointTimeoutCurrent","waypointType","waypointVisible","weaponAccessories","weaponAccessoriesCargo","weaponCargo","weaponDirection","weaponInertia","weaponLowered","weaponReloadingTime","weapons","weaponsInfo","weaponsItems","weaponsItemsCargo","weaponState","weaponsTurret","weightRTD","WFSideText","wind","windDir","windRTD","windStr","wingsForcesRTD","worldName","worldSize","worldToModel","worldToModelVisual","worldToScreen"],literal:["blufor","civilian","configNull","controlNull","displayNull","diaryRecordNull","east","endl","false","grpNull","independent","lineBreak","locationNull","nil","objNull","opfor","pi","resistance","scriptNull","sideAmbientLife","sideEmpty","sideEnemy","sideFriendly","sideLogic","sideUnknown","taskNull","teamMemberNull","true","west"]},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.NUMBER_MODE,{className:"variable",begin:/\b_+[a-zA-Z]\w*/},{className:"title",begin:/[a-zA-Z][a-zA-Z_0-9]*_fnc_[a-zA-Z_0-9]+/},i,l],illegal:[/\$[^a-fA-F0-9]/,/\w\$/,/\?/,/@/,/ \| /,/[a-zA-Z_]\./,/\:\=/,/\[\:/]}}},239:r=>{r.exports=function a(e){const t=e.regex,n=e.COMMENT("--","$"),c=["true","false","unknown"],l=["bigint","binary","blob","boolean","char","character","clob","date","dec","decfloat","decimal","float","int","integer","interval","nchar","nclob","national","numeric","real","row","smallint","time","timestamp","varchar","varying","varbinary"],m=["abs","acos","array_agg","asin","atan","avg","cast","ceil","ceiling","coalesce","corr","cos","cosh","count","covar_pop","covar_samp","cume_dist","dense_rank","deref","element","exp","extract","first_value","floor","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","last_value","lead","listagg","ln","log","log10","lower","max","min","mod","nth_value","ntile","nullif","percent_rank","percentile_cont","percentile_disc","position","position_regex","power","rank","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","row_number","sin","sinh","sqrt","stddev_pop","stddev_samp","substring","substring_regex","sum","tan","tanh","translate","translate_regex","treat","trim","trim_array","unnest","upper","value_of","var_pop","var_samp","width_bucket"],p=["create table","insert into","primary key","foreign key","not null","alter table","add constraint","grouping sets","on overflow","character set","respect nulls","ignore nulls","nulls first","nulls last","depth first","breadth first"],S=m,g=["abs","acos","all","allocate","alter","and","any","are","array","array_agg","array_max_cardinality","as","asensitive","asin","asymmetric","at","atan","atomic","authorization","avg","begin","begin_frame","begin_partition","between","bigint","binary","blob","boolean","both","by","call","called","cardinality","cascaded","case","cast","ceil","ceiling","char","char_length","character","character_length","check","classifier","clob","close","coalesce","collate","collect","column","commit","condition","connect","constraint","contains","convert","copy","corr","corresponding","cos","cosh","count","covar_pop","covar_samp","create","cross","cube","cume_dist","current","current_catalog","current_date","current_default_transform_group","current_path","current_role","current_row","current_schema","current_time","current_timestamp","current_path","current_role","current_transform_group_for_type","current_user","cursor","cycle","date","day","deallocate","dec","decimal","decfloat","declare","default","define","delete","dense_rank","deref","describe","deterministic","disconnect","distinct","double","drop","dynamic","each","element","else","empty","end","end_frame","end_partition","end-exec","equals","escape","every","except","exec","execute","exists","exp","external","extract","false","fetch","filter","first_value","float","floor","for","foreign","frame_row","free","from","full","function","fusion","get","global","grant","group","grouping","groups","having","hold","hour","identity","in","indicator","initial","inner","inout","insensitive","insert","int","integer","intersect","intersection","interval","into","is","join","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","language","large","last_value","lateral","lead","leading","left","like","like_regex","listagg","ln","local","localtime","localtimestamp","log","log10","lower","match","match_number","match_recognize","matches","max","member","merge","method","min","minute","mod","modifies","module","month","multiset","national","natural","nchar","nclob","new","no","none","normalize","not","nth_value","ntile","null","nullif","numeric","octet_length","occurrences_regex","of","offset","old","omit","on","one","only","open","or","order","out","outer","over","overlaps","overlay","parameter","partition","pattern","per","percent","percent_rank","percentile_cont","percentile_disc","period","portion","position","position_regex","power","precedes","precision","prepare","primary","procedure","ptf","range","rank","reads","real","recursive","ref","references","referencing","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","release","result","return","returns","revoke","right","rollback","rollup","row","row_number","rows","running","savepoint","scope","scroll","search","second","seek","select","sensitive","session_user","set","show","similar","sin","sinh","skip","smallint","some","specific","specifictype","sql","sqlexception","sqlstate","sqlwarning","sqrt","start","static","stddev_pop","stddev_samp","submultiset","subset","substring","substring_regex","succeeds","sum","symmetric","system","system_time","system_user","table","tablesample","tan","tanh","then","time","timestamp","timezone_hour","timezone_minute","to","trailing","translate","translate_regex","translation","treat","trigger","trim","trim_array","true","truncate","uescape","union","unique","unknown","unnest","update","upper","user","using","value","values","value_of","var_pop","var_samp","varbinary","varchar","varying","versioning","when","whenever","where","width_bucket","window","with","within","without","year","add","asc","collation","desc","final","first","last","view"].filter(v=>!m.includes(v)),C={begin:t.concat(/\b/,t.either(...S),/\s*\(/),relevance:0,keywords:{built_in:S}};return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:function f(v,{exceptions:y,when:O}={}){const w=O;return y=y||[],v.map(D=>D.match(/\|\d+$/)||y.includes(D)?D:w(D)?`${D}|0`:D)}(g,{when:v=>v.length<3}),literal:c,type:l,built_in:["current_catalog","current_date","current_default_transform_group","current_path","current_role","current_schema","current_transform_group_for_type","current_user","session_user","system_time","system_user","current_time","localtime","current_timestamp","localtimestamp"]},contains:[{begin:t.either(...p),relevance:0,keywords:{$pattern:/[\w\.]+/,keyword:g.concat(p),literal:c,type:l}},{className:"type",begin:t.either("double precision","large object","with timezone","without timezone")},C,{className:"variable",begin:/@[a-z0-9][a-z0-9_]*/},{className:"string",variants:[{begin:/'/,end:/'/,contains:[{begin:/''/}]}]},{begin:/"/,end:/"/,contains:[{begin:/""/}]},e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,n,{className:"operator",begin:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0}]}}},5769:r=>{r.exports=function a(e){const t=e.regex,s=["bernoulli","bernoulli_logit","bernoulli_logit_glm","beta","beta_binomial","beta_proportion","binomial","binomial_logit","categorical","categorical_logit","categorical_logit_glm","cauchy","chi_square","dirichlet","discrete_range","double_exponential","exp_mod_normal","exponential","frechet","gamma","gaussian_dlm_obs","gumbel","hmm_latent","hypergeometric","inv_chi_square","inv_gamma","inv_wishart","lkj_corr","lkj_corr_cholesky","logistic","lognormal","multi_gp","multi_gp_cholesky","multi_normal","multi_normal_cholesky","multi_normal_prec","multi_student_t","multinomial","multinomial_logit","neg_binomial","neg_binomial_2","neg_binomial_2_log","neg_binomial_2_log_glm","normal","normal_id_glm","ordered_logistic","ordered_logistic_glm","ordered_probit","pareto","pareto_type_2","poisson","poisson_log","poisson_log_glm","rayleigh","scaled_inv_chi_square","skew_double_exponential","skew_normal","std_normal","student_t","uniform","von_mises","weibull","wiener","wishart"],l=e.COMMENT(/\/\*/,/\*\//,{relevance:0,contains:[{scope:"doctag",match:/@(return|param)/}]}),d=["lower","upper","offset","multiplier"];return{name:"Stan",aliases:["stanfuncs"],keywords:{$pattern:e.IDENT_RE,title:["functions","model","data","parameters","quantities","transformed","generated"],type:["array","complex","int","real","vector","ordered","positive_ordered","simplex","unit_vector","row_vector","matrix","cholesky_factor_corr|10","cholesky_factor_cov|10","corr_matrix|10","cov_matrix|10","void"],keyword:["for","in","if","else","while","break","continue","return"],built_in:["Phi","Phi_approx","abs","acos","acosh","add_diag","algebra_solver","algebra_solver_newton","append_array","append_col","append_row","asin","asinh","atan","atan2","atanh","bessel_first_kind","bessel_second_kind","binary_log_loss","binomial_coefficient_log","block","cbrt","ceil","chol2inv","cholesky_decompose","choose","col","cols","columns_dot_product","columns_dot_self","conj","cos","cosh","cov_exp_quad","crossprod","csr_extract_u","csr_extract_v","csr_extract_w","csr_matrix_times_vector","csr_to_dense_matrix","cumulative_sum","determinant","diag_matrix","diag_post_multiply","diag_pre_multiply","diagonal","digamma","dims","distance","dot_product","dot_self","eigenvalues_sym","eigenvectors_sym","erf","erfc","exp","exp2","expm1","fabs","falling_factorial","fdim","floor","fma","fmax","fmin","fmod","gamma_p","gamma_q","generalized_inverse","get_imag","get_lp","get_real","head","hmm_hidden_state_prob","hmm_marginal","hypot","identity_matrix","inc_beta","int_step","integrate_1d","integrate_ode","integrate_ode_adams","integrate_ode_bdf","integrate_ode_rk45","inv","inv_Phi","inv_cloglog","inv_logit","inv_sqrt","inv_square","inverse","inverse_spd","is_inf","is_nan","lambert_w0","lambert_wm1","lbeta","lchoose","ldexp","lgamma","linspaced_array","linspaced_int_array","linspaced_row_vector","linspaced_vector","lmgamma","lmultiply","log","log1m","log1m_exp","log1m_inv_logit","log1p","log1p_exp","log_determinant","log_diff_exp","log_falling_factorial","log_inv_logit","log_inv_logit_diff","log_mix","log_modified_bessel_first_kind","log_rising_factorial","log_softmax","log_sum_exp","logit","machine_precision","map_rect","matrix_exp","matrix_exp_multiply","matrix_power","max","mdivide_left_spd","mdivide_left_tri_low","mdivide_right_spd","mdivide_right_tri_low","mean","min","modified_bessel_first_kind","modified_bessel_second_kind","multiply_log","multiply_lower_tri_self_transpose","negative_infinity","norm","not_a_number","num_elements","ode_adams","ode_adams_tol","ode_adjoint_tol_ctl","ode_bdf","ode_bdf_tol","ode_ckrk","ode_ckrk_tol","ode_rk45","ode_rk45_tol","one_hot_array","one_hot_int_array","one_hot_row_vector","one_hot_vector","ones_array","ones_int_array","ones_row_vector","ones_vector","owens_t","polar","positive_infinity","pow","print","prod","proj","qr_Q","qr_R","qr_thin_Q","qr_thin_R","quad_form","quad_form_diag","quad_form_sym","quantile","rank","reduce_sum","reject","rep_array","rep_matrix","rep_row_vector","rep_vector","reverse","rising_factorial","round","row","rows","rows_dot_product","rows_dot_self","scale_matrix_exp_multiply","sd","segment","sin","singular_values","sinh","size","softmax","sort_asc","sort_desc","sort_indices_asc","sort_indices_desc","sqrt","square","squared_distance","step","sub_col","sub_row","sum","svd_U","svd_V","symmetrize_from_lower_tri","tail","tan","tanh","target","tcrossprod","tgamma","to_array_1d","to_array_2d","to_complex","to_matrix","to_row_vector","to_vector","trace","trace_gen_quad_form","trace_quad_form","trigamma","trunc","uniform_simplex","variance","zeros_array","zeros_int_array","zeros_row_vector"]},contains:[e.C_LINE_COMMENT_MODE,{scope:"meta",begin:/#include\b/,end:/$/,contains:[{match:/[a-z][a-z-._]+/,scope:"string"},e.C_LINE_COMMENT_MODE]},e.HASH_COMMENT_MODE,l,{scope:"built_in",match:/\s(pi|e|sqrt2|log2|log10)(?=\()/,relevance:0},{match:t.concat(/[<,]\s*/,t.either(...d),/\s*=/),keywords:d},{scope:"keyword",match:/\btarget(?=\s*\+=)/},{match:[/~\s*/,t.either(...s),/(?:\(\))/,/\s*T(?=\s*\[)/],scope:{2:"built_in",4:"keyword"}},{scope:"built_in",keywords:s,begin:t.concat(/\w*/,t.either(...s),/(_lpdf|_lupdf|_lpmf|_cdf|_lcdf|_lccdf|_qf)(?=\s*[\(.*\)])/)},{begin:[/~/,/\s*/,t.concat(t.either(...s),/(?=\s*[\(.*\)])/)],scope:{3:"built_in"}},{begin:[/~/,/\s*\w+(?=\s*[\(.*\)])/,"(?!.*/\b("+t.either(...s)+")\b)"],scope:{2:"title.function"}},{scope:"title.function",begin:/\w*(_lpdf|_lupdf|_lpmf|_cdf|_lcdf|_lccdf|_qf)(?=\s*[\(.*\)])/},{scope:"number",match:t.concat(/(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)/,/(?:[eE][+-]?\d+(?:_\d+)*)?i?(?!\w)/),relevance:0},{scope:"string",begin:/"/,end:/"/}]}}},5874:r=>{r.exports=function a(e){return{name:"Stata",aliases:["do","ado"],case_insensitive:!0,keywords:"if else in foreach for forv forva forval forvalu forvalue forvalues by bys bysort xi quietly qui capture about ac ac_7 acprplot acprplot_7 adjust ado adopath adoupdate alpha ameans an ano anov anova anova_estat anova_terms anovadef aorder ap app appe appen append arch arch_dr arch_estat arch_p archlm areg areg_p args arima arima_dr arima_estat arima_p as asmprobit asmprobit_estat asmprobit_lf asmprobit_mfx__dlg asmprobit_p ass asse asser assert avplot avplot_7 avplots avplots_7 bcskew0 bgodfrey bias binreg bip0_lf biplot bipp_lf bipr_lf bipr_p biprobit bitest bitesti bitowt blogit bmemsize boot bootsamp bootstrap bootstrap_8 boxco_l boxco_p boxcox boxcox_6 boxcox_p bprobit br break brier bro brow brows browse brr brrstat bs bs_7 bsampl_w bsample bsample_7 bsqreg bstat bstat_7 bstat_8 bstrap bstrap_7 bubble bubbleplot ca ca_estat ca_p cabiplot camat canon canon_8 canon_8_p canon_estat canon_p cap caprojection capt captu captur capture cat cc cchart cchart_7 cci cd censobs_table centile cf char chdir checkdlgfiles checkestimationsample checkhlpfiles checksum chelp ci cii cl class classutil clear cli clis clist clo clog clog_lf clog_p clogi clogi_sw clogit clogit_lf clogit_p clogitp clogl_sw cloglog clonevar clslistarray cluster cluster_measures cluster_stop cluster_tree cluster_tree_8 clustermat cmdlog cnr cnre cnreg cnreg_p cnreg_sw cnsreg codebook collaps4 collapse colormult_nb colormult_nw compare compress conf confi confir confirm conren cons const constr constra constrai constrain constraint continue contract copy copyright copysource cor corc corr corr2data corr_anti corr_kmo corr_smc corre correl correla correlat correlate corrgram cou coun count cox cox_p cox_sw coxbase coxhaz coxvar cprplot cprplot_7 crc cret cretu cretur creturn cross cs cscript cscript_log csi ct ct_is ctset ctst_5 ctst_st cttost cumsp cumsp_7 cumul cusum cusum_7 cutil d|0 datasig datasign datasigna datasignat datasignatu datasignatur datasignature datetof db dbeta de dec deco decod decode deff des desc descr descri describ describe destring dfbeta dfgls dfuller di di_g dir dirstats dis discard disp disp_res disp_s displ displa display distinct do doe doed doedi doedit dotplot dotplot_7 dprobit drawnorm drop ds ds_util dstdize duplicates durbina dwstat dydx e|0 ed edi edit egen eivreg emdef en enc enco encod encode eq erase ereg ereg_lf ereg_p ereg_sw ereghet ereghet_glf ereghet_glf_sh ereghet_gp ereghet_ilf ereghet_ilf_sh ereghet_ip eret eretu eretur ereturn err erro error esize est est_cfexist est_cfname est_clickable est_expand est_hold est_table est_unhold est_unholdok estat estat_default estat_summ estat_vce_only esti estimates etodow etof etomdy ex exi exit expand expandcl fac fact facto factor factor_estat factor_p factor_pca_rotated factor_rotate factormat fcast fcast_compute fcast_graph fdades fdadesc fdadescr fdadescri fdadescrib fdadescribe fdasav fdasave fdause fh_st file open file read file close file filefilter fillin find_hlp_file findfile findit findit_7 fit fl fli flis flist for5_0 forest forestplot form forma format fpredict frac_154 frac_adj frac_chk frac_cox frac_ddp frac_dis frac_dv frac_in frac_mun frac_pp frac_pq frac_pv frac_wgt frac_xo fracgen fracplot fracplot_7 fracpoly fracpred fron_ex fron_hn fron_p fron_tn fron_tn2 frontier ftodate ftoe ftomdy ftowdate funnel funnelplot g|0 gamhet_glf gamhet_gp gamhet_ilf gamhet_ip gamma gamma_d2 gamma_p gamma_sw gammahet gdi_hexagon gdi_spokes ge gen gene gener genera generat generate genrank genstd genvmean gettoken gl gladder gladder_7 glim_l01 glim_l02 glim_l03 glim_l04 glim_l05 glim_l06 glim_l07 glim_l08 glim_l09 glim_l10 glim_l11 glim_l12 glim_lf glim_mu glim_nw1 glim_nw2 glim_nw3 glim_p glim_v1 glim_v2 glim_v3 glim_v4 glim_v5 glim_v6 glim_v7 glm glm_6 glm_p glm_sw glmpred glo glob globa global glogit glogit_8 glogit_p gmeans gnbre_lf gnbreg gnbreg_5 gnbreg_p gomp_lf gompe_sw gomper_p gompertz gompertzhet gomphet_glf gomphet_glf_sh gomphet_gp gomphet_ilf gomphet_ilf_sh gomphet_ip gphdot gphpen gphprint gprefs gprobi_p gprobit gprobit_8 gr gr7 gr_copy gr_current gr_db gr_describe gr_dir gr_draw gr_draw_replay gr_drop gr_edit gr_editviewopts gr_example gr_example2 gr_export gr_print gr_qscheme gr_query gr_read gr_rename gr_replay gr_save gr_set gr_setscheme gr_table gr_undo gr_use graph graph7 grebar greigen greigen_7 greigen_8 grmeanby grmeanby_7 gs_fileinfo gs_filetype gs_graphinfo gs_stat gsort gwood h|0 hadimvo hareg hausman haver he heck_d2 heckma_p heckman heckp_lf heckpr_p heckprob hel help hereg hetpr_lf hetpr_p hetprob hettest hexdump hilite hist hist_7 histogram hlogit hlu hmeans hotel hotelling hprobit hreg hsearch icd9 icd9_ff icd9p iis impute imtest inbase include inf infi infil infile infix inp inpu input ins insheet insp inspe inspec inspect integ inten intreg intreg_7 intreg_p intrg2_ll intrg_ll intrg_ll2 ipolate iqreg ir irf irf_create irfm iri is_svy is_svysum isid istdize ivprob_1_lf ivprob_lf ivprobit ivprobit_p ivreg ivreg_footnote ivtob_1_lf ivtob_lf ivtobit ivtobit_p jackknife jacknife jknife jknife_6 jknife_8 jkstat joinby kalarma1 kap kap_3 kapmeier kappa kapwgt kdensity kdensity_7 keep ksm ksmirnov ktau kwallis l|0 la lab labbe labbeplot labe label labelbook ladder levels levelsof leverage lfit lfit_p li lincom line linktest lis list lloghet_glf lloghet_glf_sh lloghet_gp lloghet_ilf lloghet_ilf_sh lloghet_ip llogi_sw llogis_p llogist llogistic llogistichet lnorm_lf lnorm_sw lnorma_p lnormal lnormalhet lnormhet_glf lnormhet_glf_sh lnormhet_gp lnormhet_ilf lnormhet_ilf_sh lnormhet_ip lnskew0 loadingplot loc loca local log logi logis_lf logistic logistic_p logit logit_estat logit_p loglogs logrank loneway lookfor lookup lowess lowess_7 lpredict lrecomp lroc lroc_7 lrtest ls lsens lsens_7 lsens_x lstat ltable ltable_7 ltriang lv lvr2plot lvr2plot_7 m|0 ma mac macr macro makecns man manova manova_estat manova_p manovatest mantel mark markin markout marksample mat mat_capp mat_order mat_put_rr mat_rapp mata mata_clear mata_describe mata_drop mata_matdescribe mata_matsave mata_matuse mata_memory mata_mlib mata_mosave mata_rename mata_which matalabel matcproc matlist matname matr matri matrix matrix_input__dlg matstrik mcc mcci md0_ md1_ md1debug_ md2_ md2debug_ mds mds_estat mds_p mdsconfig mdslong mdsmat mdsshepard mdytoe mdytof me_derd mean means median memory memsize menl meqparse mer merg merge meta mfp mfx mhelp mhodds minbound mixed_ll mixed_ll_reparm mkassert mkdir mkmat mkspline ml ml_5 ml_adjs ml_bhhhs ml_c_d ml_check ml_clear ml_cnt ml_debug ml_defd ml_e0 ml_e0_bfgs ml_e0_cycle ml_e0_dfp ml_e0i ml_e1 ml_e1_bfgs ml_e1_bhhh ml_e1_cycle ml_e1_dfp ml_e2 ml_e2_cycle ml_ebfg0 ml_ebfr0 ml_ebfr1 ml_ebh0q ml_ebhh0 ml_ebhr0 ml_ebr0i ml_ecr0i ml_edfp0 ml_edfr0 ml_edfr1 ml_edr0i ml_eds ml_eer0i ml_egr0i ml_elf ml_elf_bfgs ml_elf_bhhh ml_elf_cycle ml_elf_dfp ml_elfi ml_elfs ml_enr0i ml_enrr0 ml_erdu0 ml_erdu0_bfgs ml_erdu0_bhhh ml_erdu0_bhhhq ml_erdu0_cycle ml_erdu0_dfp ml_erdu0_nrbfgs ml_exde ml_footnote ml_geqnr ml_grad0 ml_graph ml_hbhhh ml_hd0 ml_hold ml_init ml_inv ml_log ml_max ml_mlout ml_mlout_8 ml_model ml_nb0 ml_opt ml_p ml_plot ml_query ml_rdgrd ml_repor ml_s_e ml_score ml_searc ml_technique ml_unhold mleval mlf_ mlmatbysum mlmatsum mlog mlogi mlogit mlogit_footnote mlogit_p mlopts mlsum mlvecsum mnl0_ mor more mov move mprobit mprobit_lf mprobit_p mrdu0_ mrdu1_ mvdecode mvencode mvreg mvreg_estat n|0 nbreg nbreg_al nbreg_lf nbreg_p nbreg_sw nestreg net newey newey_7 newey_p news nl nl_7 nl_9 nl_9_p nl_p nl_p_7 nlcom nlcom_p nlexp2 nlexp2_7 nlexp2a nlexp2a_7 nlexp3 nlexp3_7 nlgom3 nlgom3_7 nlgom4 nlgom4_7 nlinit nllog3 nllog3_7 nllog4 nllog4_7 nlog_rd nlogit nlogit_p nlogitgen nlogittree nlpred no nobreak noi nois noisi noisil noisily note notes notes_dlg nptrend numlabel numlist odbc old_ver olo olog ologi ologi_sw ologit ologit_p ologitp on one onew onewa oneway op_colnm op_comp op_diff op_inv op_str opr opro oprob oprob_sw oprobi oprobi_p oprobit oprobitp opts_exclusive order orthog orthpoly ou out outf outfi outfil outfile outs outsh outshe outshee outsheet ovtest pac pac_7 palette parse parse_dissim pause pca pca_8 pca_display pca_estat pca_p pca_rotate pcamat pchart pchart_7 pchi pchi_7 pcorr pctile pentium pergram pergram_7 permute permute_8 personal peto_st pkcollapse pkcross pkequiv pkexamine pkexamine_7 pkshape pksumm pksumm_7 pl plo plot plugin pnorm pnorm_7 poisgof poiss_lf poiss_sw poisso_p poisson poisson_estat post postclose postfile postutil pperron pr prais prais_e prais_e2 prais_p predict predictnl preserve print pro prob probi probit probit_estat probit_p proc_time procoverlay procrustes procrustes_estat procrustes_p profiler prog progr progra program prop proportion prtest prtesti pwcorr pwd q\\s qby qbys qchi qchi_7 qladder qladder_7 qnorm qnorm_7 qqplot qqplot_7 qreg qreg_c qreg_p qreg_sw qu quadchk quantile quantile_7 que quer query range ranksum ratio rchart rchart_7 rcof recast reclink recode reg reg3 reg3_p regdw regr regre regre_p2 regres regres_p regress regress_estat regriv_p remap ren rena renam rename renpfix repeat replace report reshape restore ret retu retur return rm rmdir robvar roccomp roccomp_7 roccomp_8 rocf_lf rocfit rocfit_8 rocgold rocplot rocplot_7 roctab roctab_7 rolling rologit rologit_p rot rota rotat rotate rotatemat rreg rreg_p ru run runtest rvfplot rvfplot_7 rvpplot rvpplot_7 sa safesum sample sampsi sav save savedresults saveold sc sca scal scala scalar scatter scm_mine sco scob_lf scob_p scobi_sw scobit scor score scoreplot scoreplot_help scree screeplot screeplot_help sdtest sdtesti se search separate seperate serrbar serrbar_7 serset set set_defaults sfrancia sh she shel shell shewhart shewhart_7 signestimationsample signrank signtest simul simul_7 simulate simulate_8 sktest sleep slogit slogit_d2 slogit_p smooth snapspan so sor sort spearman spikeplot spikeplot_7 spikeplt spline_x split sqreg sqreg_p sret sretu sretur sreturn ssc st st_ct st_hc st_hcd st_hcd_sh st_is st_issys st_note st_promo st_set st_show st_smpl st_subid stack statsby statsby_8 stbase stci stci_7 stcox stcox_estat stcox_fr stcox_fr_ll stcox_p stcox_sw stcoxkm stcoxkm_7 stcstat stcurv stcurve stcurve_7 stdes stem stepwise stereg stfill stgen stir stjoin stmc stmh stphplot stphplot_7 stphtest stphtest_7 stptime strate strate_7 streg streg_sw streset sts sts_7 stset stsplit stsum sttocc sttoct stvary stweib su suest suest_8 sum summ summa summar summari summariz summarize sunflower sureg survcurv survsum svar svar_p svmat svy svy_disp svy_dreg svy_est svy_est_7 svy_estat svy_get svy_gnbreg_p svy_head svy_header svy_heckman_p svy_heckprob_p svy_intreg_p svy_ivreg_p svy_logistic_p svy_logit_p svy_mlogit_p svy_nbreg_p svy_ologit_p svy_oprobit_p svy_poisson_p svy_probit_p svy_regress_p svy_sub svy_sub_7 svy_x svy_x_7 svy_x_p svydes svydes_8 svygen svygnbreg svyheckman svyheckprob svyintreg svyintreg_7 svyintrg svyivreg svylc svylog_p svylogit svymarkout svymarkout_8 svymean svymlog svymlogit svynbreg svyolog svyologit svyoprob svyoprobit svyopts svypois svypois_7 svypoisson svyprobit svyprobt svyprop svyprop_7 svyratio svyreg svyreg_p svyregress svyset svyset_7 svyset_8 svytab svytab_7 svytest svytotal sw sw_8 swcnreg swcox swereg swilk swlogis swlogit swologit swoprbt swpois swprobit swqreg swtobit swweib symmetry symmi symplot symplot_7 syntax sysdescribe sysdir sysuse szroeter ta tab tab1 tab2 tab_or tabd tabdi tabdis tabdisp tabi table tabodds tabodds_7 tabstat tabu tabul tabula tabulat tabulate te tempfile tempname tempvar tes test testnl testparm teststd tetrachoric time_it timer tis tob tobi tobit tobit_p tobit_sw token tokeni tokeniz tokenize tostring total translate translator transmap treat_ll treatr_p treatreg trim trimfill trnb_cons trnb_mean trpoiss_d2 trunc_ll truncr_p truncreg tsappend tset tsfill tsline tsline_ex tsreport tsrevar tsrline tsset tssmooth tsunab ttest ttesti tut_chk tut_wait tutorial tw tware_st two twoway twoway__fpfit_serset twoway__function_gen twoway__histogram_gen twoway__ipoint_serset twoway__ipoints_serset twoway__kdensity_gen twoway__lfit_serset twoway__normgen_gen twoway__pci_serset twoway__qfit_serset twoway__scatteri_serset twoway__sunflower_gen twoway_ksm_serset ty typ type typeof u|0 unab unabbrev unabcmd update us use uselabel var var_mkcompanion var_p varbasic varfcast vargranger varirf varirf_add varirf_cgraph varirf_create varirf_ctable varirf_describe varirf_dir varirf_drop varirf_erase varirf_graph varirf_ograph varirf_rename varirf_set varirf_table varlist varlmar varnorm varsoc varstable varstable_w varstable_w2 varwle vce vec vec_fevd vec_mkphi vec_p vec_p_w vecirf_create veclmar veclmar_w vecnorm vecnorm_w vecrank vecstable verinst vers versi versio version view viewsource vif vwls wdatetof webdescribe webseek webuse weib1_lf weib2_lf weib_lf weib_lf0 weibhet_glf weibhet_glf_sh weibhet_glfa weibhet_glfa_sh weibhet_gp weibhet_ilf weibhet_ilf_sh weibhet_ilfa weibhet_ilfa_sh weibhet_ip weibu_sw weibul_p weibull weibull_c weibull_s weibullhet wh whelp whi which whil while wilc_st wilcoxon win wind windo window winexec wntestb wntestb_7 wntestq xchart xchart_7 xcorr xcorr_7 xi xi_6 xmlsav xmlsave xmluse xpose xsh xshe xshel xshell xt_iis xt_tis xtab_p xtabond xtbin_p xtclog xtcloglog xtcloglog_8 xtcloglog_d2 xtcloglog_pa_p xtcloglog_re_p xtcnt_p xtcorr xtdata xtdes xtfront_p xtfrontier xtgee xtgee_elink xtgee_estat xtgee_makeivar xtgee_p xtgee_plink xtgls xtgls_p xthaus xthausman xtht_p xthtaylor xtile xtint_p xtintreg xtintreg_8 xtintreg_d2 xtintreg_p xtivp_1 xtivp_2 xtivreg xtline xtline_ex xtlogit xtlogit_8 xtlogit_d2 xtlogit_fe_p xtlogit_pa_p xtlogit_re_p xtmixed xtmixed_estat xtmixed_p xtnb_fe xtnb_lf xtnbreg xtnbreg_pa_p xtnbreg_refe_p xtpcse xtpcse_p xtpois xtpoisson xtpoisson_d2 xtpoisson_pa_p xtpoisson_refe_p xtpred xtprobit xtprobit_8 xtprobit_d2 xtprobit_re_p xtps_fe xtps_lf xtps_ren xtps_ren_8 xtrar_p xtrc xtrc_p xtrchh xtrefe_p xtreg xtreg_be xtreg_fe xtreg_ml xtreg_pa_p xtreg_re xtregar xtrere_p xtset xtsf_ll xtsf_llti xtsum xttab xttest0 xttobit xttobit_8 xttobit_p xttrans yx yxview__barlike_draw yxview_area_draw yxview_bar_draw yxview_dot_draw yxview_dropline_draw yxview_function_draw yxview_iarrow_draw yxview_ilabels_draw yxview_normal_draw yxview_pcarrow_draw yxview_pcbarrow_draw yxview_pccapsym_draw yxview_pcscatter_draw yxview_pcspike_draw yxview_rarea_draw yxview_rbar_draw yxview_rbarm_draw yxview_rcap_draw yxview_rcapsym_draw yxview_rconnected_draw yxview_rline_draw yxview_rscatter_draw yxview_rspike_draw yxview_spike_draw yxview_sunflower_draw zap_s zinb zinb_llf zinb_plf zip zip_llf zip_p zip_plf zt_ct_5 zt_hc_5 zt_hcd_5 zt_is_5 zt_iss_5 zt_sho_5 zt_smp_5 ztbase_5 ztcox_5 ztdes_5 ztereg_5 ztfill_5 ztgen_5 ztir_5 ztjoin_5 ztnb ztnb_p ztp ztp_p zts_5 ztset_5 ztspli_5 ztsum_5 zttoct_5 ztvary_5 ztweib_5",contains:[{className:"symbol",begin:/`[a-zA-Z0-9_]+'/},{className:"variable",begin:/\$\{?[a-zA-Z0-9_]+\}?/,relevance:0},{className:"string",variants:[{begin:'`"[^\r\n]*?"\''},{begin:'"[^\r\n"]*"'}]},{className:"built_in",variants:[{begin:"\\b(abs|acos|asin|atan|atan2|atanh|ceil|cloglog|comb|cos|digamma|exp|floor|invcloglog|invlogit|ln|lnfact|lnfactorial|lngamma|log|log10|max|min|mod|reldif|round|sign|sin|sqrt|sum|tan|tanh|trigamma|trunc|betaden|Binomial|binorm|binormal|chi2|chi2tail|dgammapda|dgammapdada|dgammapdadx|dgammapdx|dgammapdxdx|F|Fden|Ftail|gammaden|gammap|ibeta|invbinomial|invchi2|invchi2tail|invF|invFtail|invgammap|invibeta|invnchi2|invnFtail|invnibeta|invnorm|invnormal|invttail|nbetaden|nchi2|nFden|nFtail|nibeta|norm|normal|normalden|normd|npnchi2|tden|ttail|uniform|abbrev|char|index|indexnot|length|lower|ltrim|match|plural|proper|real|regexm|regexr|regexs|reverse|rtrim|string|strlen|strlower|strltrim|strmatch|strofreal|strpos|strproper|strreverse|strrtrim|strtrim|strupper|subinstr|subinword|substr|trim|upper|word|wordcount|_caller|autocode|byteorder|chop|clip|cond|e|epsdouble|epsfloat|group|inlist|inrange|irecode|matrix|maxbyte|maxdouble|maxfloat|maxint|maxlong|mi|minbyte|mindouble|minfloat|minint|minlong|missing|r|recode|replay|return|s|scalar|d|date|day|dow|doy|halfyear|mdy|month|quarter|week|year|d|daily|dofd|dofh|dofm|dofq|dofw|dofy|h|halfyearly|hofd|m|mofd|monthly|q|qofd|quarterly|tin|twithin|w|weekly|wofd|y|yearly|yh|ym|yofd|yq|yw|cholesky|colnumb|colsof|corr|det|diag|diag0cnt|el|get|hadamard|I|inv|invsym|issym|issymmetric|J|matmissing|matuniform|mreldif|nullmat|rownumb|rowsof|sweep|syminv|trace|vec|vecdiag)(?=\\()"}]},e.COMMENT("^[ \t]*\\*.*$",!1),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]}}},957:r=>{r.exports=function a(e){return{name:"STEP Part 21",aliases:["p21","step","stp"],case_insensitive:!0,keywords:{$pattern:"[A-Z_][A-Z0-9_.]*",keyword:["HEADER","ENDSEC","DATA"]},contains:[{className:"meta",begin:"ISO-10303-21;",relevance:10},{className:"meta",begin:"END-ISO-10303-21;",relevance:10},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.COMMENT("/\\*\\*!","\\*/"),e.C_NUMBER_MODE,e.inherit(e.APOS_STRING_MODE,{illegal:null}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:"string",begin:"'",end:"'"},{className:"symbol",variants:[{begin:"#",end:"\\d+",illegal:"\\W"}]}]}}},909:r=>{const e=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],t=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],n=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],i=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],o=["align-content","align-items","align-self","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inline-size","isolation","justify-content","left","letter-spacing","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","resize","rest","rest-after","rest-before","right","row-gap","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","speak","speak-as","src","tab-size","table-layout","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index"].reverse();r.exports=function c(s){const l=(s=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:s.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[s.APOS_STRING_MODE,s.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:s.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z][A-Za-z0-9_-]*/}}))(s),d={className:"variable",begin:"\\$"+s.IDENT_RE},u="(?=[.\\s\\n[:,(])";return{name:"Stylus",aliases:["styl"],case_insensitive:!1,keywords:"if else for in",illegal:"("+["\\?","(\\bReturn\\b)","(\\bEnd\\b)","(\\bend\\b)","(\\bdef\\b)",";","#\\s","\\*\\s","===\\s","\\|","%"].join("|")+")",contains:[s.QUOTE_STRING_MODE,s.APOS_STRING_MODE,s.C_LINE_COMMENT_MODE,s.C_BLOCK_COMMENT_MODE,l.HEXCOLOR,{begin:"\\.[a-zA-Z][a-zA-Z0-9_-]*"+u,className:"selector-class"},{begin:"#[a-zA-Z][a-zA-Z0-9_-]*"+u,className:"selector-id"},{begin:"\\b("+e.join("|")+")"+u,className:"selector-tag"},{className:"selector-pseudo",begin:"&?:("+n.join("|")+")"+u},{className:"selector-pseudo",begin:"&?:(:)?("+i.join("|")+")"+u},l.ATTRIBUTE_SELECTOR_MODE,{className:"keyword",begin:/@media/,starts:{end:/[{;}]/,keywords:{$pattern:/[a-z-]+/,keyword:"and or not only",attribute:t.join(" ")},contains:[l.CSS_NUMBER_MODE]}},{className:"keyword",begin:"@((-(o|moz|ms|webkit)-)?("+["charset","css","debug","extend","font-face","for","import","include","keyframes","media","mixin","page","warn","while"].join("|")+"))\\b"},d,l.CSS_NUMBER_MODE,{className:"function",begin:"^[a-zA-Z][a-zA-Z0-9_-]*\\(.*\\)",illegal:"[\\n]",returnBegin:!0,contains:[{className:"title",begin:"\\b[a-zA-Z][a-zA-Z0-9_-]*"},{className:"params",begin:/\(/,end:/\)/,contains:[l.HEXCOLOR,d,s.APOS_STRING_MODE,l.CSS_NUMBER_MODE,s.QUOTE_STRING_MODE]}]},l.CSS_VARIABLE,{className:"attribute",begin:"\\b("+o.join("|")+")\\b",starts:{end:/;|$/,contains:[l.HEXCOLOR,d,s.APOS_STRING_MODE,s.QUOTE_STRING_MODE,l.CSS_NUMBER_MODE,s.C_BLOCK_COMMENT_MODE,l.IMPORTANT,l.FUNCTION_DISPATCH],illegal:/\./,relevance:0}},l.FUNCTION_DISPATCH]}}},9804:r=>{r.exports=function a(e){return{name:"SubUnit",case_insensitive:!0,contains:[{className:"string",begin:"\\[\n(multipart)?",end:"\\]\n"},{className:"string",begin:"\\d{4}-\\d{2}-\\d{2}(\\s+)\\d{2}:\\d{2}:\\d{2}.\\d+Z"},{className:"string",begin:"(\\+|-)\\d+"},{className:"keyword",relevance:10,variants:[{begin:"^(test|testing|success|successful|failure|error|skip|xfail|uxsuccess)(:?)\\s+(test)?"},{begin:"^progress(:?)(\\s+)?(pop|push)?"},{begin:"^tags:"},{begin:"^time:"}]}]}}},7597:r=>{function a(D){return D?"string"==typeof D?D:D.source:null}function e(D){return t("(?=",D,")")}function t(...D){return D.map(H=>a(H)).join("")}function i(...D){return"("+(function n(D){const U=D[D.length-1];return"object"==typeof U&&U.constructor===Object?(D.splice(D.length-1,1),U):{}}(D).capture?"":"?:")+D.map(x=>a(x)).join("|")+")"}const o=D=>t(/\b/,D,/\w$/.test(D)?/\b/:/\B/),c=["Protocol","Type"].map(o),s=["init","self"].map(o),l=["Any","Self"],_=["actor","any","associatedtype","async","await",/as\?/,/as!/,"as","break","case","catch","class","continue","convenience","default","defer","deinit","didSet","distributed","do","dynamic","else","enum","extension","fallthrough",/fileprivate\(set\)/,"fileprivate","final","for","func","get","guard","if","import","indirect","infix",/init\?/,/init!/,"inout",/internal\(set\)/,"internal","in","is","isolated","nonisolated","lazy","let","mutating","nonmutating",/open\(set\)/,"open","operator","optional","override","postfix","precedencegroup","prefix",/private\(set\)/,"private","protocol",/public\(set\)/,"public","repeat","required","rethrows","return","set","some","static","struct","subscript","super","switch","throws","throw",/try\?/,/try!/,"try","typealias",/unowned\(safe\)/,/unowned\(unsafe\)/,"unowned","var","weak","where","while","willSet"],d=["false","nil","true"],m=["assignment","associativity","higherThan","left","lowerThan","none","right"],u=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warn_unqualified_access","#warning"],p=["abs","all","any","assert","assertionFailure","debugPrint","dump","fatalError","getVaList","isKnownUniquelyReferenced","max","min","numericCast","pointwiseMax","pointwiseMin","precondition","preconditionFailure","print","readLine","repeatElement","sequence","stride","swap","swift_unboxFromSwiftValueWithType","transcode","type","unsafeBitCast","unsafeDowncast","withExtendedLifetime","withUnsafeMutablePointer","withUnsafePointer","withVaList","withoutActuallyEscaping","zip"],S=i(/[/=\-+!*%<>&|^~?]/,/[\u00A1-\u00A7]/,/[\u00A9\u00AB]/,/[\u00AC\u00AE]/,/[\u00B0\u00B1]/,/[\u00B6\u00BB\u00BF\u00D7\u00F7]/,/[\u2016-\u2017]/,/[\u2020-\u2027]/,/[\u2030-\u203E]/,/[\u2041-\u2053]/,/[\u2055-\u205E]/,/[\u2190-\u23FF]/,/[\u2500-\u2775]/,/[\u2794-\u2BFF]/,/[\u2E00-\u2E7F]/,/[\u3001-\u3003]/,/[\u3008-\u3020]/,/[\u3030]/),g=i(S,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),T=t(S,g,"*"),R=i(/[a-zA-Z_]/,/[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,/[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,/[\u0100-\u02FF\u0370-\u167F\u1681-\u180D\u180F-\u1DBF]/,/[\u1E00-\u1FFF]/,/[\u200B-\u200D\u202A-\u202E\u203F-\u2040\u2054\u2060-\u206F]/,/[\u2070-\u20CF\u2100-\u218F\u2460-\u24FF\u2776-\u2793]/,/[\u2C00-\u2DFF\u2E80-\u2FFF]/,/[\u3004-\u3007\u3021-\u302F\u3031-\u303F\u3040-\uD7FF]/,/[\uF900-\uFD3D\uFD40-\uFDCF\uFDF0-\uFE1F\uFE30-\uFE44]/,/[\uFE47-\uFEFE\uFF00-\uFFFD]/),C=i(R,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),f=t(R,C,"*"),v=t(/[A-Z]/,C,"*"),y=["autoclosure",t(/convention\(/,i("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",t(/objc\(/,f,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","testable","UIApplicationMain","unknown","usableFromInline"],O=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"];r.exports=function w(D){const U={match:/\s+/,relevance:0},H=D.COMMENT("/\\*","\\*/",{contains:["self"]}),x=[D.C_LINE_COMMENT_MODE,H],q={match:[/\./,i(...c,...s)],className:{2:"keyword"}},le={match:t(/\./,i(..._)),relevance:0},K=_.filter(Z=>"string"==typeof Z).concat(["_|0"]),J={variants:[{className:"keyword",match:i(..._.filter(Z=>"string"!=typeof Z).concat(l).map(o),...s)}]},ie={$pattern:i(/\b\w+/,/#\w+/),keyword:K.concat(u),literal:d},ee=[q,le,J],Se=[{match:t(/\./,i(...p)),relevance:0},{className:"built_in",match:t(/\b/,i(...p),/(?=\()/)}],Ce={match:/->/,relevance:0},ue=[Ce,{className:"operator",relevance:0,variants:[{match:T},{match:`\\.(\\.|${g})+`}]}],ce="([0-9]_*)+",_e="([0-9a-fA-F]_*)+",X={className:"number",relevance:0,variants:[{match:`\\b(${ce})(\\.(${ce}))?([eE][+-]?(${ce}))?\\b`},{match:`\\b0x(${_e})(\\.(${_e}))?([pP][+-]?(${ce}))?\\b`},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},z=(Z="")=>({className:"subst",variants:[{match:t(/\\/,Z,/[0\\tnr"']/)},{match:t(/\\/,Z,/u\{[0-9a-fA-F]{1,8}\}/)}]}),te=(Z="")=>({className:"subst",match:t(/\\/,Z,/[\t ]*(?:[\r\n]|\r\n)/)}),j=(Z="")=>({className:"subst",label:"interpol",begin:t(/\\/,Z,/\(/),end:/\)/}),oe=(Z="")=>({begin:t(Z,/"""/),end:t(/"""/,Z),contains:[z(Z),te(Z),j(Z)]}),Te=(Z="")=>({begin:t(Z,/"/),end:t(/"/,Z),contains:[z(Z),j(Z)]}),Ne={className:"string",variants:[oe(),oe("#"),oe("##"),oe("###"),Te(),Te("#"),Te("##"),Te("###")]},Ve={match:t(/`/,f,/`/)},Ue=[Ve,{className:"variable",match:/\$\d+/},{className:"variable",match:`\\$${C}+`}],Pe=[{match:/(@|#(un)?)available/,className:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:O,contains:[...ue,X,Ne]}]}},{className:"keyword",match:t(/@/,i(...y))},{className:"meta",match:t(/@/,f)}],Ae={match:e(/\b[A-Z]/),relevance:0,contains:[{className:"type",match:t(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/,C,"+")},{className:"type",match:v,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:t(/\s+&\s+/,e(v)),relevance:0}]},ze={begin://,keywords:ie,contains:[...x,...ee,...Pe,Ce,Ae]};Ae.contains.push(ze);const Fe={begin:/\(/,end:/\)/,relevance:0,keywords:ie,contains:["self",{match:t(f,/\s*:/),keywords:"_|0",relevance:0},...x,...ee,...Se,...ue,X,Ne,...Ue,...Pe,Ae]},ye={begin://,contains:[...x,Ae]},Be={begin:/\(/,end:/\)/,keywords:ie,contains:[{begin:i(e(t(f,/\s*:/)),e(t(f,/\s+/,f,/\s*:/))),end:/:/,relevance:0,contains:[{className:"keyword",match:/\b_\b/},{className:"params",match:f}]},...x,...ee,...ue,X,Ne,...Pe,Ae,Fe],endsParent:!0,illegal:/["']/},nt={match:[/func/,/\s+/,i(Ve.match,f,T)],className:{1:"keyword",3:"title.function"},contains:[ye,Be,U],illegal:[/\[/,/%/]},at={match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:"keyword"},contains:[ye,Be,U],illegal:/\[|%/},rt={match:[/operator/,/\s+/,T],className:{1:"keyword",3:"title"}},it={begin:[/precedencegroup/,/\s+/,v],className:{1:"keyword",3:"title"},contains:[Ae],keywords:[...m,...d],end:/}/};for(const Z of Ne.variants){const Ge=Z.contains.find(ot=>"interpol"===ot.label);Ge.keywords=ie;const qe=[...ee,...Se,...ue,X,Ne,...Ue];Ge.contains=[...qe,{begin:/\(/,end:/\)/,contains:["self",...qe]}]}return{name:"Swift",keywords:ie,contains:[...x,nt,at,{beginKeywords:"struct protocol class extension enum actor",end:"\\{",excludeEnd:!0,keywords:ie,contains:[D.inherit(D.TITLE_MODE,{className:"title.class",begin:/[A-Za-z$_][\u00C0-\u02B80-9A-Za-z$_]*/}),...ee]},rt,it,{beginKeywords:"import",end:/$/,contains:[...x],relevance:0},...ee,...Se,...ue,X,Ne,...Ue,...Pe,Ae,Fe]}}},2387:r=>{r.exports=function a(e){return{name:"Tagger Script",contains:[{className:"comment",begin:/\$noop\(/,end:/\)/,contains:[{begin:/\\[()]/},{begin:/\(/,end:/\)/,contains:[{begin:/\\[()]/},"self"]}],relevance:10},{className:"keyword",begin:/\$[_a-zA-Z0-9]+(?=\()/},{className:"variable",begin:/%[_a-zA-Z0-9:]+%/},{className:"symbol",begin:/\\[\\nt$%,()]/},{className:"symbol",begin:/\\u[a-fA-F0-9]{4}/}]}}},7378:r=>{r.exports=function a(e){return{name:"Test Anything Protocol",case_insensitive:!0,contains:[e.HASH_COMMENT_MODE,{className:"meta",variants:[{begin:"^TAP version (\\d+)$"},{begin:"^1\\.\\.(\\d+)$"}]},{begin:/---$/,end:"\\.\\.\\.$",subLanguage:"yaml",relevance:0},{className:"number",begin:" (\\d+) "},{className:"symbol",variants:[{begin:"^ok"},{begin:"^not ok"}]}]}}},8875:r=>{r.exports=function a(e){const t=e.regex,n=/[a-zA-Z_][a-zA-Z0-9_]*/,i={className:"number",variants:[e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE]};return{name:"Tcl",aliases:["tk"],keywords:["after","append","apply","array","auto_execok","auto_import","auto_load","auto_mkindex","auto_mkindex_old","auto_qualify","auto_reset","bgerror","binary","break","catch","cd","chan","clock","close","concat","continue","dde","dict","encoding","eof","error","eval","exec","exit","expr","fblocked","fconfigure","fcopy","file","fileevent","filename","flush","for","foreach","format","gets","glob","global","history","http","if","incr","info","interp","join","lappend|10","lassign|10","lindex|10","linsert|10","list","llength|10","load","lrange|10","lrepeat|10","lreplace|10","lreverse|10","lsearch|10","lset|10","lsort|10","mathfunc","mathop","memory","msgcat","namespace","open","package","parray","pid","pkg::create","pkg_mkIndex","platform","platform::shell","proc","puts","pwd","read","refchan","regexp","registry","regsub|10","rename","return","safe","scan","seek","set","socket","source","split","string","subst","switch","tcl_endOfWord","tcl_findLibrary","tcl_startOfNextWord","tcl_startOfPreviousWord","tcl_wordBreakAfter","tcl_wordBreakBefore","tcltest","tclvars","tell","time","tm","trace","unknown","unload","unset","update","uplevel","upvar","variable","vwait","while"],contains:[e.COMMENT(";[ \\t]*#","$"),e.COMMENT("^[ \\t]*#","$"),{beginKeywords:"proc",end:"[\\{]",excludeEnd:!0,contains:[{className:"title",begin:"[ \\t\\n\\r]+(::)?[a-zA-Z_]((::)?[a-zA-Z0-9_])*",end:"[ \\t\\n\\r]",endsWithParent:!0,excludeEnd:!0}]},{className:"variable",variants:[{begin:t.concat(/\$/,t.optional(/::/),n,"(::",n,")*")},{begin:"\\$\\{(::)?[a-zA-Z_]((::)?[a-zA-Z0-9_])*",end:"\\}",contains:[i]}]},{className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[e.inherit(e.QUOTE_STRING_MODE,{illegal:null})]},i]}}},3158:r=>{r.exports=function a(e){const t=["bool","byte","i16","i32","i64","double","string","binary"];return{name:"Thrift",keywords:{keyword:["namespace","const","typedef","struct","enum","service","exception","void","oneway","set","list","map","required","optional"],type:t,literal:"true false"},contains:[e.QUOTE_STRING_MODE,e.NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"class",beginKeywords:"struct enum service exception",end:/\{/,illegal:/\n/,contains:[e.inherit(e.TITLE_MODE,{starts:{endsWithParent:!0,excludeEnd:!0}})]},{begin:"\\b(set|list|map)\\s*<",keywords:{type:[...t,"set","list","map"]},end:">",contains:["self"]}]}}},9165:r=>{r.exports=function a(e){const t={className:"number",begin:"[1-9][0-9]*",relevance:0},n={className:"symbol",begin:":[^\\]]+"};return{name:"TP",keywords:{keyword:["ABORT","ACC","ADJUST","AND","AP_LD","BREAK","CALL","CNT","COL","CONDITION","CONFIG","DA","DB","DIV","DETECT","ELSE","END","ENDFOR","ERR_NUM","ERROR_PROG","FINE","FOR","GP","GUARD","INC","IF","JMP","LINEAR_MAX_SPEED","LOCK","MOD","MONITOR","OFFSET","Offset","OR","OVERRIDE","PAUSE","PREG","PTH","RT_LD","RUN","SELECT","SKIP","Skip","TA","TB","TO","TOOL_OFFSET","Tool_Offset","UF","UT","UFRAME_NUM","UTOOL_NUM","UNLOCK","WAIT","X","Y","Z","W","P","R","STRLEN","SUBSTR","FINDSTR","VOFFSET","PROG","ATTR","MN","POS"],literal:["ON","OFF","max_speed","LPOS","JPOS","ENABLE","DISABLE","START","STOP","RESET"]},contains:[{className:"built_in",begin:"(AR|P|PAYLOAD|PR|R|SR|RSR|LBL|VR|UALM|MESSAGE|UTOOL|UFRAME|TIMER|TIMER_OVERFLOW|JOINT_MAX_SPEED|RESUME_PROG|DIAG_REC)\\[",end:"\\]",contains:["self",t,n]},{className:"built_in",begin:"(AI|AO|DI|DO|F|RI|RO|UI|UO|GI|GO|SI|SO)\\[",end:"\\]",contains:["self",t,e.QUOTE_STRING_MODE,n]},{className:"keyword",begin:"/(PROG|ATTR|MN|POS|END)\\b"},{className:"keyword",begin:"(CALL|RUN|POINT_LOGIC|LBL)\\b"},{className:"keyword",begin:"\\b(ACC|CNT|Skip|Offset|PSPD|RT_LD|AP_LD|Tool_Offset)"},{className:"number",begin:"\\d+(sec|msec|mm/sec|cm/min|inch/min|deg/sec|mm|in|cm)?\\b",relevance:0},e.COMMENT("//","[;$]"),e.COMMENT("!","[;$]"),e.COMMENT("--eg:","$"),e.QUOTE_STRING_MODE,{className:"string",begin:"'",end:"'"},e.C_NUMBER_MODE,{className:"variable",begin:"\\$[A-Za-z0-9_]+"}]}}},4565:r=>{r.exports=function a(e){const t=e.regex,n=["absolute_url","asset|0","asset_version","attribute","block","constant","controller|0","country_timezones","csrf_token","cycle","date","dump","expression","form|0","form_end","form_errors","form_help","form_label","form_rest","form_row","form_start","form_widget","html_classes","include","is_granted","logout_path","logout_url","max","min","parent","path|0","random","range","relative_path","render","render_esi","source","template_from_string","url|0"];let o=["apply","autoescape","block","cache","deprecated","do","embed","extends","filter","flush","for","form_theme","from","if","import","include","macro","sandbox","set","stopwatch","trans","trans_default_domain","transchoice","use","verbatim","with"];o=o.concat(o.map(g=>`end${g}`));const c={scope:"string",variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/}]},s={scope:"number",match:/\d+/},l={begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,contains:[c,s]},_={beginKeywords:n.join(" "),keywords:{name:n},relevance:0,contains:[l]},d={match:/\|(?=[A-Za-z_]+:?)/,beginScope:"punctuation",relevance:0,contains:[{match:/[A-Za-z_]+:?/,keywords:["abs","abbr_class","abbr_method","batch","capitalize","column","convert_encoding","country_name","currency_name","currency_symbol","data_uri","date","date_modify","default","escape","file_excerpt","file_link","file_relative","filter","first","format","format_args","format_args_as_text","format_currency","format_date","format_datetime","format_file","format_file_from_text","format_number","format_time","html_to_markdown","humanize","inky_to_html","inline_css","join","json_encode","keys","language_name","last","length","locale_name","lower","map","markdown","markdown_to_html","merge","nl2br","number_format","raw","reduce","replace","reverse","round","slice","slug","sort","spaceless","split","striptags","timezone_name","title","trans","transchoice","trim","u|0","upper","url_encode","yaml_dump","yaml_encode"]}]},m=(g,{relevance:T})=>({beginScope:{1:"template-tag",3:"name"},relevance:T||2,endScope:"template-tag",begin:[/\{%/,/\s*/,t.either(...g)],end:/%\}/,keywords:"in",contains:[d,_,c,s]}),p=m(o,{relevance:2}),S=m([/[a-z_]+/],{relevance:1});return{name:"Twig",aliases:["craftcms"],case_insensitive:!0,subLanguage:"xml",contains:[e.COMMENT(/\{#/,/#\}/),p,S,{className:"template-variable",begin:/\{\{/,end:/\}\}/,contains:["self",d,_,c,s]}]}}},603:r=>{const a="[A-Za-z$_][0-9A-Za-z$_]*",e=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],t=["true","false","null","undefined","NaN","Infinity"],n=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],i=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],o=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],c=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],s=[].concat(o,n,i);r.exports=function _(d){const m=function l(d){const m=d.regex,p=a,T={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(z,te)=>{const j=z[0].length+z.index,oe=z.input[j];if("<"===oe||","===oe)return void te.ignoreMatch();let Te;">"===oe&&(((z,{after:te})=>{const j="",X={match:[/const|var|let/,/\s+/,p,/\s*/,/=\s*/,/(async\s*)?/,m.lookahead(_e)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[J]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:R,exports:{PARAMS_CONTAINS:V,CLASS_REFERENCE:ee},illegal:/#(?![$_A-z])/,contains:[d.SHEBANG({label:"shebang",binary:"node",relevance:5}),{label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},d.APOS_STRING_MODE,d.QUOTE_STRING_MODE,w,D,U,H,q,{match:/\$\d+/},y,ee,{className:"attr",begin:p+m.lookahead(":"),relevance:0},X,{begin:"("+d.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[q,d.REGEXP_MODE,{className:"function",begin:_e,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:d.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:R,contains:V}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:"<>",end:""},{match:/<[A-Za-z0-9\\._:-]+\s*\/>/},{begin:T.begin,"on:begin":T.isTrulyOpeningTag,end:T.end}],subLanguage:"xml",contains:[{begin:T.begin,end:T.end,skip:!0,contains:["self"]}]}]},Re,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+d.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[J,d.inherit(d.TITLE_MODE,{begin:p,className:"title.function"})]},{match:/\.\.\./,relevance:0},ue,{match:"\\$"+p,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[J]},ge,{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"},ie,ce,{match:/\$[(.]/}]}}(d),u=a,p=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],S={beginKeywords:"namespace",end:/\{/,excludeEnd:!0,contains:[m.exports.CLASS_REFERENCE]},g={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:p},contains:[m.exports.CLASS_REFERENCE]},C={$pattern:a,keyword:e.concat(["type","namespace","interface","public","private","protected","implements","declare","abstract","readonly","enum","override"]),literal:t,built_in:s.concat(p),"variable.language":c},f={className:"meta",begin:"@"+u},v=(O,w,D)=>{const U=O.contains.findIndex(H=>H.label===w);if(-1===U)throw new Error("can not find mode to replace");O.contains.splice(U,1,D)};return Object.assign(m.keywords,C),m.exports.PARAMS_CONTAINS.push(f),m.contains=m.contains.concat([f,S,g]),v(m,"shebang",d.SHEBANG()),v(m,"use_strict",{className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/}),m.contains.find(O=>"func.def"===O.label).relevance=0,Object.assign(m,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),m}},4034:r=>{r.exports=function a(e){return{name:"Vala",keywords:{keyword:"char uchar unichar int uint long ulong short ushort int8 int16 int32 int64 uint8 uint16 uint32 uint64 float double bool struct enum string void weak unowned owned async signal static abstract interface override virtual delegate if while do for foreach else switch case break default return try catch public private protected internal using new this get set const stdout stdin stderr var",built_in:"DBus GLib CCode Gee Object Gtk Posix",literal:"false true null"},contains:[{className:"class",beginKeywords:"class interface namespace",end:/\{/,excludeEnd:!0,illegal:"[^,:\\n\\s\\.]",contains:[e.UNDERSCORE_TITLE_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"string",begin:'"""',end:'"""',relevance:5},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,{className:"meta",begin:"^#",end:"$"}]}}},2410:r=>{r.exports=function a(e){const t=e.regex,o=/\d{1,2}\/\d{1,2}\/\d{4}/,c=/\d{4}-\d{1,2}-\d{1,2}/,s=/(\d|1[012])(:\d+){0,2} *(AM|PM)/,l=/\d{1,2}(:\d{1,2}){1,2}/,_={className:"literal",variants:[{begin:t.concat(/# */,t.either(c,o),/ *#/)},{begin:t.concat(/# */,l,/ *#/)},{begin:t.concat(/# */,s,/ *#/)},{begin:t.concat(/# */,t.either(c,o),/ +/,t.either(s,l),/ *#/)}]},u=e.COMMENT(/'''/,/$/,{contains:[{className:"doctag",begin:/<\/?/,end:/>/}]}),p=e.COMMENT(null,/$/,{variants:[{begin:/'/},{begin:/([\t ]|^)REM(?=\s)/}]});return{name:"Visual Basic .NET",aliases:["vb"],case_insensitive:!0,classNameAliases:{label:"symbol"},keywords:{keyword:"addhandler alias aggregate ansi as async assembly auto binary by byref byval call case catch class compare const continue custom declare default delegate dim distinct do each equals else elseif end enum erase error event exit explicit finally for friend from function get global goto group handles if implements imports in inherits interface into iterator join key let lib loop me mid module mustinherit mustoverride mybase myclass namespace narrowing new next notinheritable notoverridable of off on operator option optional order overloads overridable overrides paramarray partial preserve private property protected public raiseevent readonly redim removehandler resume return select set shadows shared skip static step stop structure strict sub synclock take text then throw to try unicode until using when where while widening with withevents writeonly yield",built_in:"addressof and andalso await directcast gettype getxmlnamespace is isfalse isnot istrue like mod nameof new not or orelse trycast typeof xor cbool cbyte cchar cdate cdbl cdec cint clng cobj csbyte cshort csng cstr cuint culng cushort",type:"boolean byte char date decimal double integer long object sbyte short single string uinteger ulong ushort",literal:"true false nothing"},illegal:"//|\\{|\\}|endif|gosub|variant|wend|^\\$ ",contains:[{className:"string",begin:/"(""|[^/n])"C\b/},{className:"string",begin:/"/,end:/"/,illegal:/\n/,contains:[{begin:/""/}]},_,{className:"number",relevance:0,variants:[{begin:/\b\d[\d_]*((\.[\d_]+(E[+-]?[\d_]+)?)|(E[+-]?[\d_]+))[RFD@!#]?/},{begin:/\b\d[\d_]*((U?[SIL])|[%&])?/},{begin:/&H[\dA-F_]+((U?[SIL])|[%&])?/},{begin:/&O[0-7_]+((U?[SIL])|[%&])?/},{begin:/&B[01_]+((U?[SIL])|[%&])?/}]},{className:"label",begin:/^\w+:/},u,p,{className:"meta",begin:/[\t ]*#(const|disable|else|elseif|enable|end|externalsource|if|region)\b/,end:/$/,keywords:{keyword:"const disable else elseif enable end externalsource if region then"},contains:[p]}]}}},9767:r=>{r.exports=function a(e){return{name:"VBScript in HTML",subLanguage:"xml",contains:[{begin:"<%",end:"%>",subLanguage:"vbscript"}]}}},4055:r=>{r.exports=function a(e){const t=e.regex,n=["lcase","month","vartype","instrrev","ubound","setlocale","getobject","rgb","getref","string","weekdayname","rnd","dateadd","monthname","now","day","minute","isarray","cbool","round","formatcurrency","conversions","csng","timevalue","second","year","space","abs","clng","timeserial","fixs","len","asc","isempty","maths","dateserial","atn","timer","isobject","filter","weekday","datevalue","ccur","isdate","instr","datediff","formatdatetime","replace","isnull","right","sgn","array","snumeric","log","cdbl","hex","chr","lbound","msgbox","ucase","getlocale","cos","cdate","cbyte","rtrim","join","hour","oct","typename","trim","strcomp","int","createobject","loadpicture","tan","formatnumber","mid","split","cint","sin","datepart","ltrim","sqr","time","derived","eval","date","formatpercent","exp","inputbox","left","ascw","chrw","regexp","cstr","err"];return{name:"VBScript",aliases:["vbs"],case_insensitive:!0,keywords:{keyword:["call","class","const","dim","do","loop","erase","execute","executeglobal","exit","for","each","next","function","if","then","else","on","error","option","explicit","new","private","property","let","get","public","randomize","redim","rem","select","case","set","stop","sub","while","wend","with","end","to","elseif","is","or","xor","and","not","class_initialize","class_terminate","default","preserve","in","me","byval","byref","step","resume","goto"],built_in:["server","response","request","scriptengine","scriptenginebuildversion","scriptengineminorversion","scriptenginemajorversion"],literal:["true","false","null","nothing","empty"]},illegal:"//",contains:[{begin:t.concat(t.either(...n),"\\s*\\("),relevance:0,keywords:{built_in:n}},e.inherit(e.QUOTE_STRING_MODE,{contains:[{begin:'""'}]}),e.COMMENT(/'/,/$/,{relevance:0}),e.C_NUMBER_MODE]}}},2870:r=>{r.exports=function a(e){const t=e.regex,o=["begin_keywords","celldefine","default_nettype","default_decay_time","default_trireg_strength","define","delay_mode_distributed","delay_mode_path","delay_mode_unit","delay_mode_zero","else","elsif","end_keywords","endcelldefine","endif","ifdef","ifndef","include","line","nounconnected_drive","pragma","resetall","timescale","unconnected_drive","undef","undefineall"];return{name:"Verilog",aliases:["v","sv","svh"],case_insensitive:!1,keywords:{$pattern:/\$?[\w]+(\$[\w]+)*/,keyword:["accept_on","alias","always","always_comb","always_ff","always_latch","and","assert","assign","assume","automatic","before","begin","bind","bins","binsof","bit","break","buf|0","bufif0","bufif1","byte","case","casex","casez","cell","chandle","checker","class","clocking","cmos","config","const","constraint","context","continue","cover","covergroup","coverpoint","cross","deassign","default","defparam","design","disable","dist","do","edge","else","end","endcase","endchecker","endclass","endclocking","endconfig","endfunction","endgenerate","endgroup","endinterface","endmodule","endpackage","endprimitive","endprogram","endproperty","endspecify","endsequence","endtable","endtask","enum","event","eventually","expect","export","extends","extern","final","first_match","for","force","foreach","forever","fork","forkjoin","function","generate|5","genvar","global","highz0","highz1","if","iff","ifnone","ignore_bins","illegal_bins","implements","implies","import","incdir","include","initial","inout","input","inside","instance","int","integer","interconnect","interface","intersect","join","join_any","join_none","large","let","liblist","library","local","localparam","logic","longint","macromodule","matches","medium","modport","module","nand","negedge","nettype","new","nexttime","nmos","nor","noshowcancelled","not","notif0","notif1","or","output","package","packed","parameter","pmos","posedge","primitive","priority","program","property","protected","pull0","pull1","pulldown","pullup","pulsestyle_ondetect","pulsestyle_onevent","pure","rand","randc","randcase","randsequence","rcmos","real","realtime","ref","reg","reject_on","release","repeat","restrict","return","rnmos","rpmos","rtran","rtranif0","rtranif1","s_always","s_eventually","s_nexttime","s_until","s_until_with","scalared","sequence","shortint","shortreal","showcancelled","signed","small","soft","solve","specify","specparam","static","string","strong","strong0","strong1","struct","super","supply0","supply1","sync_accept_on","sync_reject_on","table","tagged","task","this","throughout","time","timeprecision","timeunit","tran","tranif0","tranif1","tri","tri0","tri1","triand","trior","trireg","type","typedef","union","unique","unique0","unsigned","until","until_with","untyped","use","uwire","var","vectored","virtual","void","wait","wait_order","wand","weak","weak0","weak1","while","wildcard","wire","with","within","wor","xnor","xor"],literal:["null"],built_in:["$finish","$stop","$exit","$fatal","$error","$warning","$info","$realtime","$time","$printtimescale","$bitstoreal","$bitstoshortreal","$itor","$signed","$cast","$bits","$stime","$timeformat","$realtobits","$shortrealtobits","$rtoi","$unsigned","$asserton","$assertkill","$assertpasson","$assertfailon","$assertnonvacuouson","$assertoff","$assertcontrol","$assertpassoff","$assertfailoff","$assertvacuousoff","$isunbounded","$sampled","$fell","$changed","$past_gclk","$fell_gclk","$changed_gclk","$rising_gclk","$steady_gclk","$coverage_control","$coverage_get","$coverage_save","$set_coverage_db_name","$rose","$stable","$past","$rose_gclk","$stable_gclk","$future_gclk","$falling_gclk","$changing_gclk","$display","$coverage_get_max","$coverage_merge","$get_coverage","$load_coverage_db","$typename","$unpacked_dimensions","$left","$low","$increment","$clog2","$ln","$log10","$exp","$sqrt","$pow","$floor","$ceil","$sin","$cos","$tan","$countbits","$onehot","$isunknown","$fatal","$warning","$dimensions","$right","$high","$size","$asin","$acos","$atan","$atan2","$hypot","$sinh","$cosh","$tanh","$asinh","$acosh","$atanh","$countones","$onehot0","$error","$info","$random","$dist_chi_square","$dist_erlang","$dist_exponential","$dist_normal","$dist_poisson","$dist_t","$dist_uniform","$q_initialize","$q_remove","$q_exam","$async$and$array","$async$nand$array","$async$or$array","$async$nor$array","$sync$and$array","$sync$nand$array","$sync$or$array","$sync$nor$array","$q_add","$q_full","$psprintf","$async$and$plane","$async$nand$plane","$async$or$plane","$async$nor$plane","$sync$and$plane","$sync$nand$plane","$sync$or$plane","$sync$nor$plane","$system","$display","$displayb","$displayh","$displayo","$strobe","$strobeb","$strobeh","$strobeo","$write","$readmemb","$readmemh","$writememh","$value$plusargs","$dumpvars","$dumpon","$dumplimit","$dumpports","$dumpportson","$dumpportslimit","$writeb","$writeh","$writeo","$monitor","$monitorb","$monitorh","$monitoro","$writememb","$dumpfile","$dumpoff","$dumpall","$dumpflush","$dumpportsoff","$dumpportsall","$dumpportsflush","$fclose","$fdisplay","$fdisplayb","$fdisplayh","$fdisplayo","$fstrobe","$fstrobeb","$fstrobeh","$fstrobeo","$swrite","$swriteb","$swriteh","$swriteo","$fscanf","$fread","$fseek","$fflush","$feof","$fopen","$fwrite","$fwriteb","$fwriteh","$fwriteo","$fmonitor","$fmonitorb","$fmonitorh","$fmonitoro","$sformat","$sformatf","$fgetc","$ungetc","$fgets","$sscanf","$rewind","$ftell","$ferror"]},contains:[e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE,e.QUOTE_STRING_MODE,{scope:"number",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/\b((\d+'([bhodBHOD]))[0-9xzXZa-fA-F_]+)/},{begin:/\B(('([bhodBHOD]))[0-9xzXZa-fA-F_]+)/},{begin:/\b[0-9][0-9_]*/,relevance:0}]},{scope:"variable",variants:[{begin:"#\\((?!parameter).+\\)"},{begin:"\\.\\w+",relevance:0}]},{scope:"variable.constant",match:t.concat(/`/,t.either("__FILE__","__LINE__"))},{scope:"meta",begin:t.concat(/`/,t.either(...o)),end:/$|\/\/|\/\*/,returnEnd:!0,keywords:o}]}}},8679:r=>{r.exports=function a(e){const t="\\d(_|\\d)*",n="[eE][-+]?"+t,s="\\b("+t+"#\\w+(\\.\\w+)?#("+n+")?|"+t+"(\\."+t+")?("+n+")?)";return{name:"VHDL",case_insensitive:!0,keywords:{keyword:["abs","access","after","alias","all","and","architecture","array","assert","assume","assume_guarantee","attribute","begin","block","body","buffer","bus","case","component","configuration","constant","context","cover","disconnect","downto","default","else","elsif","end","entity","exit","fairness","file","for","force","function","generate","generic","group","guarded","if","impure","in","inertial","inout","is","label","library","linkage","literal","loop","map","mod","nand","new","next","nor","not","null","of","on","open","or","others","out","package","parameter","port","postponed","procedure","process","property","protected","pure","range","record","register","reject","release","rem","report","restrict","restrict_guarantee","return","rol","ror","select","sequence","severity","shared","signal","sla","sll","sra","srl","strong","subtype","then","to","transport","type","unaffected","units","until","use","variable","view","vmode","vprop","vunit","wait","when","while","with","xnor","xor"],built_in:["boolean","bit","character","integer","time","delay_length","natural","positive","string","bit_vector","file_open_kind","file_open_status","std_logic","std_logic_vector","unsigned","signed","boolean_vector","integer_vector","std_ulogic","std_ulogic_vector","unresolved_unsigned","u_unsigned","unresolved_signed","u_signed","real_vector","time_vector"],literal:["false","true","note","warning","error","failure","line","text","side","width"]},illegal:/\{/,contains:[e.C_BLOCK_COMMENT_MODE,e.COMMENT("--","$"),e.QUOTE_STRING_MODE,{className:"number",begin:s,relevance:0},{className:"string",begin:"'(U|X|0|1|Z|W|L|H|-)'",contains:[e.BACKSLASH_ESCAPE]},{className:"symbol",begin:"'[A-Za-z](_?[A-Za-z0-9])*",contains:[e.BACKSLASH_ESCAPE]}]}}},9376:r=>{r.exports=function a(e){return{name:"Vim Script",keywords:{$pattern:/[!#@\w]+/,keyword:"N|0 P|0 X|0 a|0 ab abc abo al am an|0 ar arga argd arge argdo argg argl argu as au aug aun b|0 bN ba bad bd be bel bf bl bm bn bo bp br brea breaka breakd breakl bro bufdo buffers bun bw c|0 cN cNf ca cabc caddb cad caddf cal cat cb cc ccl cd ce cex cf cfir cgetb cgete cg changes chd che checkt cl cla clo cm cmapc cme cn cnew cnf cno cnorea cnoreme co col colo com comc comp con conf cope cp cpf cq cr cs cst cu cuna cunme cw delm deb debugg delc delf dif diffg diffo diffp diffpu diffs diffthis dig di dl dell dj dli do doautoa dp dr ds dsp e|0 ea ec echoe echoh echom echon el elsei em en endfo endf endt endw ene ex exe exi exu f|0 files filet fin fina fini fir fix fo foldc foldd folddoc foldo for fu go gr grepa gu gv ha helpf helpg helpt hi hid his ia iabc if ij il im imapc ime ino inorea inoreme int is isp iu iuna iunme j|0 ju k|0 keepa kee keepj lN lNf l|0 lad laddb laddf la lan lat lb lc lch lcl lcs le lefta let lex lf lfir lgetb lgete lg lgr lgrepa lh ll lla lli lmak lm lmapc lne lnew lnf ln loadk lo loc lockv lol lope lp lpf lr ls lt lu lua luad luaf lv lvimgrepa lw m|0 ma mak map mapc marks mat me menut mes mk mks mksp mkv mkvie mod mz mzf nbc nb nbs new nm nmapc nme nn nnoreme noa no noh norea noreme norm nu nun nunme ol o|0 om omapc ome on ono onoreme opt ou ounme ow p|0 profd prof pro promptr pc ped pe perld po popu pp pre prev ps pt ptN ptf ptj ptl ptn ptp ptr pts pu pw py3 python3 py3d py3f py pyd pyf quita qa rec red redi redr redraws reg res ret retu rew ri rightb rub rubyd rubyf rund ru rv sN san sa sal sav sb sbN sba sbf sbl sbm sbn sbp sbr scrip scripte scs se setf setg setl sf sfir sh sim sig sil sl sla sm smap smapc sme sn sni sno snor snoreme sor so spelld spe spelli spellr spellu spellw sp spr sre st sta startg startr star stopi stj sts sun sunm sunme sus sv sw sy synti sync tN tabN tabc tabdo tabe tabf tabfir tabl tabm tabnew tabn tabo tabp tabr tabs tab ta tags tc tcld tclf te tf th tj tl tm tn to tp tr try ts tu u|0 undoj undol una unh unl unlo unm unme uns up ve verb vert vim vimgrepa vi viu vie vm vmapc vme vne vn vnoreme vs vu vunme windo w|0 wN wa wh wi winc winp wn wp wq wqa ws wu wv x|0 xa xmapc xm xme xn xnoreme xu xunme y|0 z|0 ~ Next Print append abbreviate abclear aboveleft all amenu anoremenu args argadd argdelete argedit argglobal arglocal argument ascii autocmd augroup aunmenu buffer bNext ball badd bdelete behave belowright bfirst blast bmodified bnext botright bprevious brewind break breakadd breakdel breaklist browse bunload bwipeout change cNext cNfile cabbrev cabclear caddbuffer caddexpr caddfile call catch cbuffer cclose center cexpr cfile cfirst cgetbuffer cgetexpr cgetfile chdir checkpath checktime clist clast close cmap cmapclear cmenu cnext cnewer cnfile cnoremap cnoreabbrev cnoremenu copy colder colorscheme command comclear compiler continue confirm copen cprevious cpfile cquit crewind cscope cstag cunmap cunabbrev cunmenu cwindow delete delmarks debug debuggreedy delcommand delfunction diffupdate diffget diffoff diffpatch diffput diffsplit digraphs display deletel djump dlist doautocmd doautoall deletep drop dsearch dsplit edit earlier echo echoerr echohl echomsg else elseif emenu endif endfor endfunction endtry endwhile enew execute exit exusage file filetype find finally finish first fixdel fold foldclose folddoopen folddoclosed foldopen function global goto grep grepadd gui gvim hardcopy help helpfind helpgrep helptags highlight hide history insert iabbrev iabclear ijump ilist imap imapclear imenu inoremap inoreabbrev inoremenu intro isearch isplit iunmap iunabbrev iunmenu join jumps keepalt keepmarks keepjumps lNext lNfile list laddexpr laddbuffer laddfile last language later lbuffer lcd lchdir lclose lcscope left leftabove lexpr lfile lfirst lgetbuffer lgetexpr lgetfile lgrep lgrepadd lhelpgrep llast llist lmake lmap lmapclear lnext lnewer lnfile lnoremap loadkeymap loadview lockmarks lockvar lolder lopen lprevious lpfile lrewind ltag lunmap luado luafile lvimgrep lvimgrepadd lwindow move mark make mapclear match menu menutranslate messages mkexrc mksession mkspell mkvimrc mkview mode mzscheme mzfile nbclose nbkey nbsart next nmap nmapclear nmenu nnoremap nnoremenu noautocmd noremap nohlsearch noreabbrev noremenu normal number nunmap nunmenu oldfiles open omap omapclear omenu only onoremap onoremenu options ounmap ounmenu ownsyntax print profdel profile promptfind promptrepl pclose pedit perl perldo pop popup ppop preserve previous psearch ptag ptNext ptfirst ptjump ptlast ptnext ptprevious ptrewind ptselect put pwd py3do py3file python pydo pyfile quit quitall qall read recover redo redir redraw redrawstatus registers resize retab return rewind right rightbelow ruby rubydo rubyfile rundo runtime rviminfo substitute sNext sandbox sargument sall saveas sbuffer sbNext sball sbfirst sblast sbmodified sbnext sbprevious sbrewind scriptnames scriptencoding scscope set setfiletype setglobal setlocal sfind sfirst shell simalt sign silent sleep slast smagic smapclear smenu snext sniff snomagic snoremap snoremenu sort source spelldump spellgood spellinfo spellrepall spellundo spellwrong split sprevious srewind stop stag startgreplace startreplace startinsert stopinsert stjump stselect sunhide sunmap sunmenu suspend sview swapname syntax syntime syncbind tNext tabNext tabclose tabedit tabfind tabfirst tablast tabmove tabnext tabonly tabprevious tabrewind tag tcl tcldo tclfile tearoff tfirst throw tjump tlast tmenu tnext topleft tprevious trewind tselect tunmenu undo undojoin undolist unabbreviate unhide unlet unlockvar unmap unmenu unsilent update vglobal version verbose vertical vimgrep vimgrepadd visual viusage view vmap vmapclear vmenu vnew vnoremap vnoremenu vsplit vunmap vunmenu write wNext wall while winsize wincmd winpos wnext wprevious wqall wsverb wundo wviminfo xit xall xmapclear xmap xmenu xnoremap xnoremenu xunmap xunmenu yank",built_in:"synIDtrans atan2 range matcharg did_filetype asin feedkeys xor argv complete_check add getwinposx getqflist getwinposy screencol clearmatches empty extend getcmdpos mzeval garbagecollect setreg ceil sqrt diff_hlID inputsecret get getfperm getpid filewritable shiftwidth max sinh isdirectory synID system inputrestore winline atan visualmode inputlist tabpagewinnr round getregtype mapcheck hasmapto histdel argidx findfile sha256 exists toupper getcmdline taglist string getmatches bufnr strftime winwidth bufexists strtrans tabpagebuflist setcmdpos remote_read printf setloclist getpos getline bufwinnr float2nr len getcmdtype diff_filler luaeval resolve libcallnr foldclosedend reverse filter has_key bufname str2float strlen setline getcharmod setbufvar index searchpos shellescape undofile foldclosed setqflist buflisted strchars str2nr virtcol floor remove undotree remote_expr winheight gettabwinvar reltime cursor tabpagenr finddir localtime acos getloclist search tanh matchend rename gettabvar strdisplaywidth type abs py3eval setwinvar tolower wildmenumode log10 spellsuggest bufloaded synconcealed nextnonblank server2client complete settabwinvar executable input wincol setmatches getftype hlID inputsave searchpair or screenrow line settabvar histadd deepcopy strpart remote_peek and eval getftime submatch screenchar winsaveview matchadd mkdir screenattr getfontname libcall reltimestr getfsize winnr invert pow getbufline byte2line soundfold repeat fnameescape tagfiles sin strwidth spellbadword trunc maparg log lispindent hostname setpos globpath remote_foreground getchar synIDattr fnamemodify cscope_connection stridx winbufnr indent min complete_add nr2char searchpairpos inputdialog values matchlist items hlexists strridx browsedir expand fmod pathshorten line2byte argc count getwinvar glob foldtextresult getreg foreground cosh matchdelete has char2nr simplify histget searchdecl iconv winrestcmd pumvisible writefile foldlevel haslocaldir keys cos matchstr foldtext histnr tan tempname getcwd byteidx getbufvar islocked escape eventhandler remote_send serverlist winrestview synstack pyeval prevnonblank readfile cindent filereadable changenr exp"},illegal:/;/,contains:[e.NUMBER_MODE,{className:"string",begin:"'",end:"'",illegal:"\\n"},{className:"string",begin:/"(\\"|\n\\|[^"\n])*"/},e.COMMENT('"',"$"),{className:"variable",begin:/[bwtglsav]:[\w\d_]+/},{begin:[/\b(?:function|function!)/,/\s+/,e.IDENT_RE],className:{1:"keyword",3:"title"},end:"$",relevance:0,contains:[{className:"params",begin:"\\(",end:"\\)"}]},{className:"symbol",begin:/<[\w-]+>/}]}}},2065:r=>{r.exports=function a(e){const t=e.COMMENT(/\(;/,/;\)/);return t.contains.push("self"),{name:"WebAssembly",keywords:{$pattern:/[\w.]+/,keyword:["anyfunc","block","br","br_if","br_table","call","call_indirect","data","drop","elem","else","end","export","func","global.get","global.set","local.get","local.set","local.tee","get_global","get_local","global","if","import","local","loop","memory","memory.grow","memory.size","module","mut","nop","offset","param","result","return","select","set_global","set_local","start","table","tee_local","then","type","unreachable"]},contains:[e.COMMENT(/;;/,/$/),t,{match:[/(?:offset|align)/,/\s*/,/=/],className:{1:"keyword",3:"operator"}},{className:"variable",begin:/\$[\w_]+/},{match:/(\((?!;)|\))+/,className:"punctuation",relevance:0},{begin:[/(?:func|call|call_indirect)/,/\s+/,/\$[^\s)]+/],className:{1:"keyword",3:"title.function"}},e.QUOTE_STRING_MODE,{match:/(i32|i64|f32|f64)(?!\.)/,className:"type"},{className:"keyword",match:/\b(f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|nearest|neg?|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|store(?:8|16|32)?|sqrt|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))\b/},{className:"number",relevance:0,match:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/}]}}},863:r=>{r.exports=function a(e){const t=e.regex,n=/[a-zA-Z]\w*/,i=["as","break","class","construct","continue","else","for","foreign","if","import","in","is","return","static","var","while"],o=["true","false","null"],c=["this","super"],l=["-","~",/\*/,"%",/\.\.\./,/\.\./,/\+/,"<<",">>",">=","<=","<",">",/\^/,/!=/,/!/,/\bis\b/,"==","&&","&",/\|\|/,/\|/,/\?:/,"="],_={relevance:0,match:t.concat(/\b(?!(if|while|for|else|super)\b)/,n,/(?=\s*[({])/),className:"title.function"},d={match:t.concat(t.either(t.concat(/\b(?!(if|while|for|else|super)\b)/,n),t.either(...l)),/(?=\s*\([^)]+\)\s*\{)/),className:"title.function",starts:{contains:[{begin:/\(/,end:/\)/,contains:[{relevance:0,scope:"params",match:n}]}]}},m={variants:[{match:[/class\s+/,n,/\s+is\s+/,n]},{match:[/class\s+/,n]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:i},u={relevance:0,match:t.either(...l),className:"operator"},S={className:"property",begin:t.concat(/\./,t.lookahead(n)),end:n,excludeBegin:!0,relevance:0},g={relevance:0,match:t.concat(/\b_/,n),scope:"variable"},T={relevance:0,match:/\b[A-Z]+[a-z]+([A-Z]+[a-z]+)*/,scope:"title.class",keywords:{_:["Bool","Class","Fiber","Fn","List","Map","Null","Num","Object","Range","Sequence","String","System"]}},R=e.C_NUMBER_MODE,C={match:[n,/\s*/,/=/,/\s*/,/\(/,n,/\)\s*\{/],scope:{1:"title.function",3:"operator",6:"params"}},f=e.COMMENT(/\/\*\*/,/\*\//,{contains:[{match:/@[a-z]+/,scope:"doctag"},"self"]}),v={scope:"subst",begin:/%\(/,end:/\)/,contains:[R,T,_,g,u]},y={scope:"string",begin:/"/,end:/"/,contains:[v,{scope:"char.escape",variants:[{match:/\\\\|\\["0%abefnrtv]/},{match:/\\x[0-9A-F]{2}/},{match:/\\u[0-9A-F]{4}/},{match:/\\U[0-9A-F]{8}/}]}]};v.contains.push(y);const O=[...i,...c,...o],w={relevance:0,match:t.concat("\\b(?!",O.join("|"),"\\b)",/[a-zA-Z_]\w*(?:[?!]|\b)/),className:"variable"};return{name:"Wren",keywords:{keyword:i,"variable.language":c,literal:o},contains:[{scope:"comment",variants:[{begin:[/#!?/,/[A-Za-z_]+(?=\()/],beginScope:{},keywords:{literal:o},contains:[],end:/\)/},{begin:[/#!?/,/[A-Za-z_]+/],beginScope:{},end:/$/}]},R,y,{className:"string",begin:/"""/,end:/"""/},f,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,T,m,C,d,_,u,g,S,w]}}},5402:r=>{r.exports=function a(e){return{name:"Intel x86 Assembly",case_insensitive:!0,keywords:{$pattern:"[.%]?"+e.IDENT_RE,keyword:"lock rep repe repz repne repnz xaquire xrelease bnd nobnd aaa aad aam aas adc add and arpl bb0_reset bb1_reset bound bsf bsr bswap bt btc btr bts call cbw cdq cdqe clc cld cli clts cmc cmp cmpsb cmpsd cmpsq cmpsw cmpxchg cmpxchg486 cmpxchg8b cmpxchg16b cpuid cpu_read cpu_write cqo cwd cwde daa das dec div dmint emms enter equ f2xm1 fabs fadd faddp fbld fbstp fchs fclex fcmovb fcmovbe fcmove fcmovnb fcmovnbe fcmovne fcmovnu fcmovu fcom fcomi fcomip fcomp fcompp fcos fdecstp fdisi fdiv fdivp fdivr fdivrp femms feni ffree ffreep fiadd ficom ficomp fidiv fidivr fild fimul fincstp finit fist fistp fisttp fisub fisubr fld fld1 fldcw fldenv fldl2e fldl2t fldlg2 fldln2 fldpi fldz fmul fmulp fnclex fndisi fneni fninit fnop fnsave fnstcw fnstenv fnstsw fpatan fprem fprem1 fptan frndint frstor fsave fscale fsetpm fsin fsincos fsqrt fst fstcw fstenv fstp fstsw fsub fsubp fsubr fsubrp ftst fucom fucomi fucomip fucomp fucompp fxam fxch fxtract fyl2x fyl2xp1 hlt ibts icebp idiv imul in inc incbin insb insd insw int int01 int1 int03 int3 into invd invpcid invlpg invlpga iret iretd iretq iretw jcxz jecxz jrcxz jmp jmpe lahf lar lds lea leave les lfence lfs lgdt lgs lidt lldt lmsw loadall loadall286 lodsb lodsd lodsq lodsw loop loope loopne loopnz loopz lsl lss ltr mfence monitor mov movd movq movsb movsd movsq movsw movsx movsxd movzx mul mwait neg nop not or out outsb outsd outsw packssdw packsswb packuswb paddb paddd paddsb paddsiw paddsw paddusb paddusw paddw pand pandn pause paveb pavgusb pcmpeqb pcmpeqd pcmpeqw pcmpgtb pcmpgtd pcmpgtw pdistib pf2id pfacc pfadd pfcmpeq pfcmpge pfcmpgt pfmax pfmin pfmul pfrcp pfrcpit1 pfrcpit2 pfrsqit1 pfrsqrt pfsub pfsubr pi2fd pmachriw pmaddwd pmagw pmulhriw pmulhrwa pmulhrwc pmulhw pmullw pmvgezb pmvlzb pmvnzb pmvzb pop popa popad popaw popf popfd popfq popfw por prefetch prefetchw pslld psllq psllw psrad psraw psrld psrlq psrlw psubb psubd psubsb psubsiw psubsw psubusb psubusw psubw punpckhbw punpckhdq punpckhwd punpcklbw punpckldq punpcklwd push pusha pushad pushaw pushf pushfd pushfq pushfw pxor rcl rcr rdshr rdmsr rdpmc rdtsc rdtscp ret retf retn rol ror rdm rsdc rsldt rsm rsts sahf sal salc sar sbb scasb scasd scasq scasw sfence sgdt shl shld shr shrd sidt sldt skinit smi smint smintold smsw stc std sti stosb stosd stosq stosw str sub svdc svldt svts swapgs syscall sysenter sysexit sysret test ud0 ud1 ud2b ud2 ud2a umov verr verw fwait wbinvd wrshr wrmsr xadd xbts xchg xlatb xlat xor cmove cmovz cmovne cmovnz cmova cmovnbe cmovae cmovnb cmovb cmovnae cmovbe cmovna cmovg cmovnle cmovge cmovnl cmovl cmovnge cmovle cmovng cmovc cmovnc cmovo cmovno cmovs cmovns cmovp cmovpe cmovnp cmovpo je jz jne jnz ja jnbe jae jnb jb jnae jbe jna jg jnle jge jnl jl jnge jle jng jc jnc jo jno js jns jpo jnp jpe jp sete setz setne setnz seta setnbe setae setnb setnc setb setnae setcset setbe setna setg setnle setge setnl setl setnge setle setng sets setns seto setno setpe setp setpo setnp addps addss andnps andps cmpeqps cmpeqss cmpleps cmpless cmpltps cmpltss cmpneqps cmpneqss cmpnleps cmpnless cmpnltps cmpnltss cmpordps cmpordss cmpunordps cmpunordss cmpps cmpss comiss cvtpi2ps cvtps2pi cvtsi2ss cvtss2si cvttps2pi cvttss2si divps divss ldmxcsr maxps maxss minps minss movaps movhps movlhps movlps movhlps movmskps movntps movss movups mulps mulss orps rcpps rcpss rsqrtps rsqrtss shufps sqrtps sqrtss stmxcsr subps subss ucomiss unpckhps unpcklps xorps fxrstor fxrstor64 fxsave fxsave64 xgetbv xsetbv xsave xsave64 xsaveopt xsaveopt64 xrstor xrstor64 prefetchnta prefetcht0 prefetcht1 prefetcht2 maskmovq movntq pavgb pavgw pextrw pinsrw pmaxsw pmaxub pminsw pminub pmovmskb pmulhuw psadbw pshufw pf2iw pfnacc pfpnacc pi2fw pswapd maskmovdqu clflush movntdq movnti movntpd movdqa movdqu movdq2q movq2dq paddq pmuludq pshufd pshufhw pshuflw pslldq psrldq psubq punpckhqdq punpcklqdq addpd addsd andnpd andpd cmpeqpd cmpeqsd cmplepd cmplesd cmpltpd cmpltsd cmpneqpd cmpneqsd cmpnlepd cmpnlesd cmpnltpd cmpnltsd cmpordpd cmpordsd cmpunordpd cmpunordsd cmppd comisd cvtdq2pd cvtdq2ps cvtpd2dq cvtpd2pi cvtpd2ps cvtpi2pd cvtps2dq cvtps2pd cvtsd2si cvtsd2ss cvtsi2sd cvtss2sd cvttpd2pi cvttpd2dq cvttps2dq cvttsd2si divpd divsd maxpd maxsd minpd minsd movapd movhpd movlpd movmskpd movupd mulpd mulsd orpd shufpd sqrtpd sqrtsd subpd subsd ucomisd unpckhpd unpcklpd xorpd addsubpd addsubps haddpd haddps hsubpd hsubps lddqu movddup movshdup movsldup clgi stgi vmcall vmclear vmfunc vmlaunch vmload vmmcall vmptrld vmptrst vmread vmresume vmrun vmsave vmwrite vmxoff vmxon invept invvpid pabsb pabsw pabsd palignr phaddw phaddd phaddsw phsubw phsubd phsubsw pmaddubsw pmulhrsw pshufb psignb psignw psignd extrq insertq movntsd movntss lzcnt blendpd blendps blendvpd blendvps dppd dpps extractps insertps movntdqa mpsadbw packusdw pblendvb pblendw pcmpeqq pextrb pextrd pextrq phminposuw pinsrb pinsrd pinsrq pmaxsb pmaxsd pmaxud pmaxuw pminsb pminsd pminud pminuw pmovsxbw pmovsxbd pmovsxbq pmovsxwd pmovsxwq pmovsxdq pmovzxbw pmovzxbd pmovzxbq pmovzxwd pmovzxwq pmovzxdq pmuldq pmulld ptest roundpd roundps roundsd roundss crc32 pcmpestri pcmpestrm pcmpistri pcmpistrm pcmpgtq popcnt getsec pfrcpv pfrsqrtv movbe aesenc aesenclast aesdec aesdeclast aesimc aeskeygenassist vaesenc vaesenclast vaesdec vaesdeclast vaesimc vaeskeygenassist vaddpd vaddps vaddsd vaddss vaddsubpd vaddsubps vandpd vandps vandnpd vandnps vblendpd vblendps vblendvpd vblendvps vbroadcastss vbroadcastsd vbroadcastf128 vcmpeq_ospd vcmpeqpd vcmplt_ospd vcmpltpd vcmple_ospd vcmplepd vcmpunord_qpd vcmpunordpd vcmpneq_uqpd vcmpneqpd vcmpnlt_uspd vcmpnltpd vcmpnle_uspd vcmpnlepd vcmpord_qpd vcmpordpd vcmpeq_uqpd vcmpnge_uspd vcmpngepd vcmpngt_uspd vcmpngtpd vcmpfalse_oqpd vcmpfalsepd vcmpneq_oqpd vcmpge_ospd vcmpgepd vcmpgt_ospd vcmpgtpd vcmptrue_uqpd vcmptruepd vcmplt_oqpd vcmple_oqpd vcmpunord_spd vcmpneq_uspd vcmpnlt_uqpd vcmpnle_uqpd vcmpord_spd vcmpeq_uspd vcmpnge_uqpd vcmpngt_uqpd vcmpfalse_ospd vcmpneq_ospd vcmpge_oqpd vcmpgt_oqpd vcmptrue_uspd vcmppd vcmpeq_osps vcmpeqps vcmplt_osps vcmpltps vcmple_osps vcmpleps vcmpunord_qps vcmpunordps vcmpneq_uqps vcmpneqps vcmpnlt_usps vcmpnltps vcmpnle_usps vcmpnleps vcmpord_qps vcmpordps vcmpeq_uqps vcmpnge_usps vcmpngeps vcmpngt_usps vcmpngtps vcmpfalse_oqps vcmpfalseps vcmpneq_oqps vcmpge_osps vcmpgeps vcmpgt_osps vcmpgtps vcmptrue_uqps vcmptrueps vcmplt_oqps vcmple_oqps vcmpunord_sps vcmpneq_usps vcmpnlt_uqps vcmpnle_uqps vcmpord_sps vcmpeq_usps vcmpnge_uqps vcmpngt_uqps vcmpfalse_osps vcmpneq_osps vcmpge_oqps vcmpgt_oqps vcmptrue_usps vcmpps vcmpeq_ossd vcmpeqsd vcmplt_ossd vcmpltsd vcmple_ossd vcmplesd vcmpunord_qsd vcmpunordsd vcmpneq_uqsd vcmpneqsd vcmpnlt_ussd vcmpnltsd vcmpnle_ussd vcmpnlesd vcmpord_qsd vcmpordsd vcmpeq_uqsd vcmpnge_ussd vcmpngesd vcmpngt_ussd vcmpngtsd vcmpfalse_oqsd vcmpfalsesd vcmpneq_oqsd vcmpge_ossd vcmpgesd vcmpgt_ossd vcmpgtsd vcmptrue_uqsd vcmptruesd vcmplt_oqsd vcmple_oqsd vcmpunord_ssd vcmpneq_ussd vcmpnlt_uqsd vcmpnle_uqsd vcmpord_ssd vcmpeq_ussd vcmpnge_uqsd vcmpngt_uqsd vcmpfalse_ossd vcmpneq_ossd vcmpge_oqsd vcmpgt_oqsd vcmptrue_ussd vcmpsd vcmpeq_osss vcmpeqss vcmplt_osss vcmpltss vcmple_osss vcmpless vcmpunord_qss vcmpunordss vcmpneq_uqss vcmpneqss vcmpnlt_usss vcmpnltss vcmpnle_usss vcmpnless vcmpord_qss vcmpordss vcmpeq_uqss vcmpnge_usss vcmpngess vcmpngt_usss vcmpngtss vcmpfalse_oqss vcmpfalsess vcmpneq_oqss vcmpge_osss vcmpgess vcmpgt_osss vcmpgtss vcmptrue_uqss vcmptruess vcmplt_oqss vcmple_oqss vcmpunord_sss vcmpneq_usss vcmpnlt_uqss vcmpnle_uqss vcmpord_sss vcmpeq_usss vcmpnge_uqss vcmpngt_uqss vcmpfalse_osss vcmpneq_osss vcmpge_oqss vcmpgt_oqss vcmptrue_usss vcmpss vcomisd vcomiss vcvtdq2pd vcvtdq2ps vcvtpd2dq vcvtpd2ps vcvtps2dq vcvtps2pd vcvtsd2si vcvtsd2ss vcvtsi2sd vcvtsi2ss vcvtss2sd vcvtss2si vcvttpd2dq vcvttps2dq vcvttsd2si vcvttss2si vdivpd vdivps vdivsd vdivss vdppd vdpps vextractf128 vextractps vhaddpd vhaddps vhsubpd vhsubps vinsertf128 vinsertps vlddqu vldqqu vldmxcsr vmaskmovdqu vmaskmovps vmaskmovpd vmaxpd vmaxps vmaxsd vmaxss vminpd vminps vminsd vminss vmovapd vmovaps vmovd vmovq vmovddup vmovdqa vmovqqa vmovdqu vmovqqu vmovhlps vmovhpd vmovhps vmovlhps vmovlpd vmovlps vmovmskpd vmovmskps vmovntdq vmovntqq vmovntdqa vmovntpd vmovntps vmovsd vmovshdup vmovsldup vmovss vmovupd vmovups vmpsadbw vmulpd vmulps vmulsd vmulss vorpd vorps vpabsb vpabsw vpabsd vpacksswb vpackssdw vpackuswb vpackusdw vpaddb vpaddw vpaddd vpaddq vpaddsb vpaddsw vpaddusb vpaddusw vpalignr vpand vpandn vpavgb vpavgw vpblendvb vpblendw vpcmpestri vpcmpestrm vpcmpistri vpcmpistrm vpcmpeqb vpcmpeqw vpcmpeqd vpcmpeqq vpcmpgtb vpcmpgtw vpcmpgtd vpcmpgtq vpermilpd vpermilps vperm2f128 vpextrb vpextrw vpextrd vpextrq vphaddw vphaddd vphaddsw vphminposuw vphsubw vphsubd vphsubsw vpinsrb vpinsrw vpinsrd vpinsrq vpmaddwd vpmaddubsw vpmaxsb vpmaxsw vpmaxsd vpmaxub vpmaxuw vpmaxud vpminsb vpminsw vpminsd vpminub vpminuw vpminud vpmovmskb vpmovsxbw vpmovsxbd vpmovsxbq vpmovsxwd vpmovsxwq vpmovsxdq vpmovzxbw vpmovzxbd vpmovzxbq vpmovzxwd vpmovzxwq vpmovzxdq vpmulhuw vpmulhrsw vpmulhw vpmullw vpmulld vpmuludq vpmuldq vpor vpsadbw vpshufb vpshufd vpshufhw vpshuflw vpsignb vpsignw vpsignd vpslldq vpsrldq vpsllw vpslld vpsllq vpsraw vpsrad vpsrlw vpsrld vpsrlq vptest vpsubb vpsubw vpsubd vpsubq vpsubsb vpsubsw vpsubusb vpsubusw vpunpckhbw vpunpckhwd vpunpckhdq vpunpckhqdq vpunpcklbw vpunpcklwd vpunpckldq vpunpcklqdq vpxor vrcpps vrcpss vrsqrtps vrsqrtss vroundpd vroundps vroundsd vroundss vshufpd vshufps vsqrtpd vsqrtps vsqrtsd vsqrtss vstmxcsr vsubpd vsubps vsubsd vsubss vtestps vtestpd vucomisd vucomiss vunpckhpd vunpckhps vunpcklpd vunpcklps vxorpd vxorps vzeroall vzeroupper pclmullqlqdq pclmulhqlqdq pclmullqhqdq pclmulhqhqdq pclmulqdq vpclmullqlqdq vpclmulhqlqdq vpclmullqhqdq vpclmulhqhqdq vpclmulqdq vfmadd132ps vfmadd132pd vfmadd312ps vfmadd312pd vfmadd213ps vfmadd213pd vfmadd123ps vfmadd123pd vfmadd231ps vfmadd231pd vfmadd321ps vfmadd321pd vfmaddsub132ps vfmaddsub132pd vfmaddsub312ps vfmaddsub312pd vfmaddsub213ps vfmaddsub213pd vfmaddsub123ps vfmaddsub123pd vfmaddsub231ps vfmaddsub231pd vfmaddsub321ps vfmaddsub321pd vfmsub132ps vfmsub132pd vfmsub312ps vfmsub312pd vfmsub213ps vfmsub213pd vfmsub123ps vfmsub123pd vfmsub231ps vfmsub231pd vfmsub321ps vfmsub321pd vfmsubadd132ps vfmsubadd132pd vfmsubadd312ps vfmsubadd312pd vfmsubadd213ps vfmsubadd213pd vfmsubadd123ps vfmsubadd123pd vfmsubadd231ps vfmsubadd231pd vfmsubadd321ps vfmsubadd321pd vfnmadd132ps vfnmadd132pd vfnmadd312ps vfnmadd312pd vfnmadd213ps vfnmadd213pd vfnmadd123ps vfnmadd123pd vfnmadd231ps vfnmadd231pd vfnmadd321ps vfnmadd321pd vfnmsub132ps vfnmsub132pd vfnmsub312ps vfnmsub312pd vfnmsub213ps vfnmsub213pd vfnmsub123ps vfnmsub123pd vfnmsub231ps vfnmsub231pd vfnmsub321ps vfnmsub321pd vfmadd132ss vfmadd132sd vfmadd312ss vfmadd312sd vfmadd213ss vfmadd213sd vfmadd123ss vfmadd123sd vfmadd231ss vfmadd231sd vfmadd321ss vfmadd321sd vfmsub132ss vfmsub132sd vfmsub312ss vfmsub312sd vfmsub213ss vfmsub213sd vfmsub123ss vfmsub123sd vfmsub231ss vfmsub231sd vfmsub321ss vfmsub321sd vfnmadd132ss vfnmadd132sd vfnmadd312ss vfnmadd312sd vfnmadd213ss vfnmadd213sd vfnmadd123ss vfnmadd123sd vfnmadd231ss vfnmadd231sd vfnmadd321ss vfnmadd321sd vfnmsub132ss vfnmsub132sd vfnmsub312ss vfnmsub312sd vfnmsub213ss vfnmsub213sd vfnmsub123ss vfnmsub123sd vfnmsub231ss vfnmsub231sd vfnmsub321ss vfnmsub321sd rdfsbase rdgsbase rdrand wrfsbase wrgsbase vcvtph2ps vcvtps2ph adcx adox rdseed clac stac xstore xcryptecb xcryptcbc xcryptctr xcryptcfb xcryptofb montmul xsha1 xsha256 llwpcb slwpcb lwpval lwpins vfmaddpd vfmaddps vfmaddsd vfmaddss vfmaddsubpd vfmaddsubps vfmsubaddpd vfmsubaddps vfmsubpd vfmsubps vfmsubsd vfmsubss vfnmaddpd vfnmaddps vfnmaddsd vfnmaddss vfnmsubpd vfnmsubps vfnmsubsd vfnmsubss vfrczpd vfrczps vfrczsd vfrczss vpcmov vpcomb vpcomd vpcomq vpcomub vpcomud vpcomuq vpcomuw vpcomw vphaddbd vphaddbq vphaddbw vphadddq vphaddubd vphaddubq vphaddubw vphaddudq vphadduwd vphadduwq vphaddwd vphaddwq vphsubbw vphsubdq vphsubwd vpmacsdd vpmacsdqh vpmacsdql vpmacssdd vpmacssdqh vpmacssdql vpmacsswd vpmacssww vpmacswd vpmacsww vpmadcsswd vpmadcswd vpperm vprotb vprotd vprotq vprotw vpshab vpshad vpshaq vpshaw vpshlb vpshld vpshlq vpshlw vbroadcasti128 vpblendd vpbroadcastb vpbroadcastw vpbroadcastd vpbroadcastq vpermd vpermpd vpermps vpermq vperm2i128 vextracti128 vinserti128 vpmaskmovd vpmaskmovq vpsllvd vpsllvq vpsravd vpsrlvd vpsrlvq vgatherdpd vgatherqpd vgatherdps vgatherqps vpgatherdd vpgatherqd vpgatherdq vpgatherqq xabort xbegin xend xtest andn bextr blci blcic blsi blsic blcfill blsfill blcmsk blsmsk blsr blcs bzhi mulx pdep pext rorx sarx shlx shrx tzcnt tzmsk t1mskc valignd valignq vblendmpd vblendmps vbroadcastf32x4 vbroadcastf64x4 vbroadcasti32x4 vbroadcasti64x4 vcompresspd vcompressps vcvtpd2udq vcvtps2udq vcvtsd2usi vcvtss2usi vcvttpd2udq vcvttps2udq vcvttsd2usi vcvttss2usi vcvtudq2pd vcvtudq2ps vcvtusi2sd vcvtusi2ss vexpandpd vexpandps vextractf32x4 vextractf64x4 vextracti32x4 vextracti64x4 vfixupimmpd vfixupimmps vfixupimmsd vfixupimmss vgetexppd vgetexpps vgetexpsd vgetexpss vgetmantpd vgetmantps vgetmantsd vgetmantss vinsertf32x4 vinsertf64x4 vinserti32x4 vinserti64x4 vmovdqa32 vmovdqa64 vmovdqu32 vmovdqu64 vpabsq vpandd vpandnd vpandnq vpandq vpblendmd vpblendmq vpcmpltd vpcmpled vpcmpneqd vpcmpnltd vpcmpnled vpcmpd vpcmpltq vpcmpleq vpcmpneqq vpcmpnltq vpcmpnleq vpcmpq vpcmpequd vpcmpltud vpcmpleud vpcmpnequd vpcmpnltud vpcmpnleud vpcmpud vpcmpequq vpcmpltuq vpcmpleuq vpcmpnequq vpcmpnltuq vpcmpnleuq vpcmpuq vpcompressd vpcompressq vpermi2d vpermi2pd vpermi2ps vpermi2q vpermt2d vpermt2pd vpermt2ps vpermt2q vpexpandd vpexpandq vpmaxsq vpmaxuq vpminsq vpminuq vpmovdb vpmovdw vpmovqb vpmovqd vpmovqw vpmovsdb vpmovsdw vpmovsqb vpmovsqd vpmovsqw vpmovusdb vpmovusdw vpmovusqb vpmovusqd vpmovusqw vpord vporq vprold vprolq vprolvd vprolvq vprord vprorq vprorvd vprorvq vpscatterdd vpscatterdq vpscatterqd vpscatterqq vpsraq vpsravq vpternlogd vpternlogq vptestmd vptestmq vptestnmd vptestnmq vpxord vpxorq vrcp14pd vrcp14ps vrcp14sd vrcp14ss vrndscalepd vrndscaleps vrndscalesd vrndscaless vrsqrt14pd vrsqrt14ps vrsqrt14sd vrsqrt14ss vscalefpd vscalefps vscalefsd vscalefss vscatterdpd vscatterdps vscatterqpd vscatterqps vshuff32x4 vshuff64x2 vshufi32x4 vshufi64x2 kandnw kandw kmovw knotw kortestw korw kshiftlw kshiftrw kunpckbw kxnorw kxorw vpbroadcastmb2q vpbroadcastmw2d vpconflictd vpconflictq vplzcntd vplzcntq vexp2pd vexp2ps vrcp28pd vrcp28ps vrcp28sd vrcp28ss vrsqrt28pd vrsqrt28ps vrsqrt28sd vrsqrt28ss vgatherpf0dpd vgatherpf0dps vgatherpf0qpd vgatherpf0qps vgatherpf1dpd vgatherpf1dps vgatherpf1qpd vgatherpf1qps vscatterpf0dpd vscatterpf0dps vscatterpf0qpd vscatterpf0qps vscatterpf1dpd vscatterpf1dps vscatterpf1qpd vscatterpf1qps prefetchwt1 bndmk bndcl bndcu bndcn bndmov bndldx bndstx sha1rnds4 sha1nexte sha1msg1 sha1msg2 sha256rnds2 sha256msg1 sha256msg2 hint_nop0 hint_nop1 hint_nop2 hint_nop3 hint_nop4 hint_nop5 hint_nop6 hint_nop7 hint_nop8 hint_nop9 hint_nop10 hint_nop11 hint_nop12 hint_nop13 hint_nop14 hint_nop15 hint_nop16 hint_nop17 hint_nop18 hint_nop19 hint_nop20 hint_nop21 hint_nop22 hint_nop23 hint_nop24 hint_nop25 hint_nop26 hint_nop27 hint_nop28 hint_nop29 hint_nop30 hint_nop31 hint_nop32 hint_nop33 hint_nop34 hint_nop35 hint_nop36 hint_nop37 hint_nop38 hint_nop39 hint_nop40 hint_nop41 hint_nop42 hint_nop43 hint_nop44 hint_nop45 hint_nop46 hint_nop47 hint_nop48 hint_nop49 hint_nop50 hint_nop51 hint_nop52 hint_nop53 hint_nop54 hint_nop55 hint_nop56 hint_nop57 hint_nop58 hint_nop59 hint_nop60 hint_nop61 hint_nop62 hint_nop63",built_in:"ip eip rip al ah bl bh cl ch dl dh sil dil bpl spl r8b r9b r10b r11b r12b r13b r14b r15b ax bx cx dx si di bp sp r8w r9w r10w r11w r12w r13w r14w r15w eax ebx ecx edx esi edi ebp esp eip r8d r9d r10d r11d r12d r13d r14d r15d rax rbx rcx rdx rsi rdi rbp rsp r8 r9 r10 r11 r12 r13 r14 r15 cs ds es fs gs ss st st0 st1 st2 st3 st4 st5 st6 st7 mm0 mm1 mm2 mm3 mm4 mm5 mm6 mm7 xmm0 xmm1 xmm2 xmm3 xmm4 xmm5 xmm6 xmm7 xmm8 xmm9 xmm10 xmm11 xmm12 xmm13 xmm14 xmm15 xmm16 xmm17 xmm18 xmm19 xmm20 xmm21 xmm22 xmm23 xmm24 xmm25 xmm26 xmm27 xmm28 xmm29 xmm30 xmm31 ymm0 ymm1 ymm2 ymm3 ymm4 ymm5 ymm6 ymm7 ymm8 ymm9 ymm10 ymm11 ymm12 ymm13 ymm14 ymm15 ymm16 ymm17 ymm18 ymm19 ymm20 ymm21 ymm22 ymm23 ymm24 ymm25 ymm26 ymm27 ymm28 ymm29 ymm30 ymm31 zmm0 zmm1 zmm2 zmm3 zmm4 zmm5 zmm6 zmm7 zmm8 zmm9 zmm10 zmm11 zmm12 zmm13 zmm14 zmm15 zmm16 zmm17 zmm18 zmm19 zmm20 zmm21 zmm22 zmm23 zmm24 zmm25 zmm26 zmm27 zmm28 zmm29 zmm30 zmm31 k0 k1 k2 k3 k4 k5 k6 k7 bnd0 bnd1 bnd2 bnd3 cr0 cr1 cr2 cr3 cr4 cr8 dr0 dr1 dr2 dr3 dr8 tr3 tr4 tr5 tr6 tr7 r0 r1 r2 r3 r4 r5 r6 r7 r0b r1b r2b r3b r4b r5b r6b r7b r0w r1w r2w r3w r4w r5w r6w r7w r0d r1d r2d r3d r4d r5d r6d r7d r0h r1h r2h r3h r0l r1l r2l r3l r4l r5l r6l r7l r8l r9l r10l r11l r12l r13l r14l r15l db dw dd dq dt ddq do dy dz resb resw resd resq rest resdq reso resy resz incbin equ times byte word dword qword nosplit rel abs seg wrt strict near far a32 ptr",meta:"%define %xdefine %+ %undef %defstr %deftok %assign %strcat %strlen %substr %rotate %elif %else %endif %if %ifmacro %ifctx %ifidn %ifidni %ifid %ifnum %ifstr %iftoken %ifempty %ifenv %error %warning %fatal %rep %endrep %include %push %pop %repl %pathsearch %depend %use %arg %stacksize %local %line %comment %endcomment .nolist __FILE__ __LINE__ __SECT__ __BITS__ __OUTPUT_FORMAT__ __DATE__ __TIME__ __DATE_NUM__ __TIME_NUM__ __UTC_DATE__ __UTC_TIME__ __UTC_DATE_NUM__ __UTC_TIME_NUM__ __PASS__ struc endstruc istruc at iend align alignb sectalign daz nodaz up down zero default option assume public bits use16 use32 use64 default section segment absolute extern global common cpu float __utf16__ __utf16le__ __utf16be__ __utf32__ __utf32le__ __utf32be__ __float8__ __float16__ __float32__ __float64__ __float80m__ __float80e__ __float128l__ __float128h__ __Infinity__ __QNaN__ __SNaN__ Inf NaN QNaN SNaN float8 float16 float32 float64 float80m float80e float128l float128h __FLOAT_DAZ__ __FLOAT_ROUND__ __FLOAT__"},contains:[e.COMMENT(";","$",{relevance:0}),{className:"number",variants:[{begin:"\\b(?:([0-9][0-9_]*)?\\.[0-9_]*(?:[eE][+-]?[0-9_]+)?|(0[Xx])?[0-9][0-9_]*(\\.[0-9_]*)?(?:[pP](?:[+-]?[0-9_]+)?)?)\\b",relevance:0},{begin:"\\$[0-9][0-9A-Fa-f]*",relevance:0},{begin:"\\b(?:[0-9A-Fa-f][0-9A-Fa-f_]*[Hh]|[0-9][0-9_]*[DdTt]?|[0-7][0-7_]*[QqOo]|[0-1][0-1_]*[BbYy])\\b"},{begin:"\\b(?:0[Xx][0-9A-Fa-f_]+|0[DdTt][0-9_]+|0[QqOo][0-7_]+|0[BbYy][0-1_]+)\\b"}]},e.QUOTE_STRING_MODE,{className:"string",variants:[{begin:"'",end:"[^\\\\]'"},{begin:"`",end:"[^\\\\]`"}],relevance:0},{className:"symbol",variants:[{begin:"^\\s*[A-Za-z._?][A-Za-z0-9_$#@~.?]*(:|\\s+label)"},{begin:"^\\s*%%[A-Za-z0-9_$#@~.?]*:"}],relevance:0},{className:"subst",begin:"%[0-9]+",relevance:0},{className:"subst",begin:"%!S+",relevance:0},{className:"meta",begin:/^\s*\.[\w_-]+/}]}}},9905:r=>{r.exports=function a(e){const c={$pattern:/[a-zA-Z][a-zA-Z0-9_?]*/,keyword:["if","then","else","do","while","until","for","loop","import","with","is","as","where","when","by","data","constant","integer","real","text","name","boolean","symbol","infix","prefix","postfix","block","tree"],literal:["true","false","nil"],built_in:["in","mod","rem","and","or","xor","not","abs","sign","floor","ceil","sqrt","sin","cos","tan","asin","acos","atan","exp","expm1","log","log2","log10","log1p","pi","at","text_length","text_range","text_find","text_replace","contains","page","slide","basic_slide","title_slide","title","subtitle","fade_in","fade_out","fade_at","clear_color","color","line_color","line_width","texture_wrap","texture_transform","texture","scale_?x","scale_?y","scale_?z?","translate_?x","translate_?y","translate_?z?","rotate_?x","rotate_?y","rotate_?z?","rectangle","circle","ellipse","sphere","path","line_to","move_to","quad_to","curve_to","theme","background","contents","locally","time","mouse_?x","mouse_?y","mouse_buttons"].concat(["ObjectLoader","Animate","MovieCredits","Slides","Filters","Shading","Materials","LensFlare","Mapping","VLCAudioVideo","StereoDecoder","PointCloud","NetworkAccess","RemoteControl","RegExp","ChromaKey","Snowfall","NodeJS","Speech","Charts"])},s={className:"string",begin:'"',end:'"',illegal:"\\n"},m={beginKeywords:"import",end:"$",keywords:c,contains:[s]},u={className:"function",begin:/[a-z][^\n]*->/,returnBegin:!0,end:/->/,contains:[e.inherit(e.TITLE_MODE,{starts:{endsWithParent:!0,keywords:c}})]};return{name:"XL",aliases:["tao"],keywords:c,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,s,{className:"string",begin:"'",end:"'",illegal:"\\n"},{className:"string",begin:"<<",end:">>"},u,m,{className:"number",begin:"[0-9]+#[0-9A-Z_]+(\\.[0-9-A-Z_]+)?#?([Ee][+-]?[0-9]+)?"},e.NUMBER_MODE]}}},5149:r=>{r.exports=function a(e){const t=e.regex,n=t.concat(/[\p{L}_]/u,t.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),o={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},c={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},s=e.inherit(c,{begin:/\(/,end:/\)/}),l=e.inherit(e.APOS_STRING_MODE,{className:"string"}),_=e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),d={endsWithParent:!0,illegal:/`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin://,relevance:10,contains:[c,_,l,s,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin://,contains:[c,s,_,l]}]}]},e.COMMENT(//,{relevance:10}),{begin://,relevance:10},o,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[_]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/)/,end:/>/,keywords:{name:"style"},contains:[d],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/)/,end:/>/,keywords:{name:"script"},contains:[d],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:t.concat(//,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:n,relevance:0,starts:d}]},{className:"tag",begin:t.concat(/<\//,t.lookahead(t.concat(n,/>/))),contains:[{className:"name",begin:n,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}},53:r=>{r.exports=function a(e){return{name:"XQuery",aliases:["xpath","xq"],case_insensitive:!1,illegal:/(proc)|(abstract)|(extends)|(until)|(#)/,keywords:{$pattern:/[a-zA-Z$][a-zA-Z0-9_:-]*/,keyword:["module","schema","namespace","boundary-space","preserve","no-preserve","strip","default","collation","base-uri","ordering","context","decimal-format","decimal-separator","copy-namespaces","empty-sequence","except","exponent-separator","external","grouping-separator","inherit","no-inherit","lax","minus-sign","per-mille","percent","schema-attribute","schema-element","strict","unordered","zero-digit","declare","import","option","function","validate","variable","for","at","in","let","where","order","group","by","return","if","then","else","tumbling","sliding","window","start","when","only","end","previous","next","stable","ascending","descending","allowing","empty","greatest","least","some","every","satisfies","switch","case","typeswitch","try","catch","and","or","to","union","intersect","instance","of","treat","as","castable","cast","map","array","delete","insert","into","replace","value","rename","copy","modify","update"],type:["item","document-node","node","attribute","document","element","comment","namespace","namespace-node","processing-instruction","text","construction","xs:anyAtomicType","xs:untypedAtomic","xs:duration","xs:time","xs:decimal","xs:float","xs:double","xs:gYearMonth","xs:gYear","xs:gMonthDay","xs:gMonth","xs:gDay","xs:boolean","xs:base64Binary","xs:hexBinary","xs:anyURI","xs:QName","xs:NOTATION","xs:dateTime","xs:dateTimeStamp","xs:date","xs:string","xs:normalizedString","xs:token","xs:language","xs:NMTOKEN","xs:Name","xs:NCName","xs:ID","xs:IDREF","xs:ENTITY","xs:integer","xs:nonPositiveInteger","xs:negativeInteger","xs:long","xs:int","xs:short","xs:byte","xs:nonNegativeInteger","xs:unisignedLong","xs:unsignedInt","xs:unsignedShort","xs:unsignedByte","xs:positiveInteger","xs:yearMonthDuration","xs:dayTimeDuration"],literal:["eq","ne","lt","le","gt","ge","is","self::","child::","descendant::","descendant-or-self::","attribute::","following::","following-sibling::","parent::","ancestor::","ancestor-or-self::","preceding::","preceding-sibling::","NaN"]},contains:[{className:"variable",begin:/[$][\w\-:]+/},{className:"built_in",variants:[{begin:/\barray:/,end:/(?:append|filter|flatten|fold-(?:left|right)|for-each(?:-pair)?|get|head|insert-before|join|put|remove|reverse|size|sort|subarray|tail)\b/},{begin:/\bmap:/,end:/(?:contains|entry|find|for-each|get|keys|merge|put|remove|size)\b/},{begin:/\bmath:/,end:/(?:a(?:cos|sin|tan[2]?)|cos|exp(?:10)?|log(?:10)?|pi|pow|sin|sqrt|tan)\b/},{begin:/\bop:/,end:/\(/,excludeEnd:!0},{begin:/\bfn:/,end:/\(/,excludeEnd:!0},{begin:/[^/,end:/(\/[\w._:-]+>)/,subLanguage:"xml",contains:[{begin:/\{/,end:/\}/,subLanguage:"xquery"},"self"]}]}}},8084:r=>{r.exports=function a(e){const t="true false yes no null",n="[\\w#;/?:@&=+$,.~*'()[\\]]+",c={className:"string",relevance:0,variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/\S+/}],contains:[e.BACKSLASH_ESCAPE,{className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]}]},s=e.inherit(c,{variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),p={end:",",endsWithParent:!0,excludeEnd:!0,keywords:t,relevance:0},T=[{className:"attr",variants:[{begin:"\\w[\\w :\\/.-]*:(?=[ \t]|$)"},{begin:'"\\w[\\w :\\/.-]*":(?=[ \t]|$)'},{begin:"'\\w[\\w :\\/.-]*':(?=[ \t]|$)"}]},{className:"meta",begin:"^---\\s*$",relevance:10},{className:"string",begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!\\w+!"+n},{className:"type",begin:"!<"+n+">"},{className:"type",begin:"!"+n},{className:"type",begin:"!!"+n},{className:"meta",begin:"&"+e.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+e.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},e.HASH_COMMENT_MODE,{beginKeywords:t,keywords:{literal:t}},{className:"number",begin:"\\b[0-9]{4}(-[0-9][0-9]){0,2}([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?(\\.[0-9]*)?([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?\\b"},{className:"number",begin:e.C_NUMBER_RE+"\\b",relevance:0},{begin:/\{/,end:/\}/,contains:[p],illegal:"\\n",relevance:0},{begin:"\\[",end:"\\]",contains:[p],illegal:"\\n",relevance:0},c],R=[...T];return R.pop(),R.push(s),p.contains=R,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:T}}},7936:r=>{r.exports=function a(e){const t={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[e.inherit(e.APOS_STRING_MODE,{illegal:null}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null})]},n=e.UNDERSCORE_TITLE_MODE,i={variants:[e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE]},o="namespace class interface use extends function return abstract final public protected private static deprecated throw try catch Exception echo empty isset instanceof unset let var new const self require if else elseif switch case default do while loop for continue break likely unlikely __LINE__ __FILE__ __DIR__ __FUNCTION__ __CLASS__ __TRAIT__ __METHOD__ __NAMESPACE__ array boolean float double integer object resource string char long unsigned bool int uint ulong uchar true false null undefined";return{name:"Zephir",aliases:["zep"],keywords:o,contains:[e.C_LINE_COMMENT_MODE,e.COMMENT(/\/\*/,/\*\//,{contains:[{className:"doctag",begin:/@[A-Za-z]+/}]}),{className:"string",begin:/<<<['"]?\w+['"]?$/,end:/^\w+;/,contains:[e.BACKSLASH_ESCAPE]},{begin:/(::|->)+[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/},{className:"function",beginKeywords:"function fn",end:/[;{]/,excludeEnd:!0,illegal:/\$|\[|%/,contains:[n,{className:"params",begin:/\(/,end:/\)/,keywords:o,contains:["self",e.C_BLOCK_COMMENT_MODE,t,i]}]},{className:"class",beginKeywords:"class interface",end:/\{/,excludeEnd:!0,illegal:/[:($"]/,contains:[{beginKeywords:"extends implements"},n]},{beginKeywords:"namespace",end:/;/,illegal:/[.']/,contains:[n]},{beginKeywords:"use",end:/;/,contains:[n]},{begin:/=>/},t,i]}}}},Vt={};function De(r){var a=Vt[r];if(void 0!==a)return a.exports;var e=Vt[r]={exports:{}};return zt[r](e,e.exports,De),e.exports}De.n=r=>{var a=r&&r.__esModule?()=>r.default:()=>r;return De.d(a,{a}),a},De.d=(r,a)=>{for(var e in a)De.o(a,e)&&!De.o(r,e)&&Object.defineProperty(r,e,{enumerable:!0,get:a[e]})},De.o=(r,a)=>Object.prototype.hasOwnProperty.call(r,a),(()=>{"use strict";const a=De(4406);var t=De(7045);De.n(t)()(function(i){return(i=>i&&a.highlight(JSON.stringify(i,null,2),{language:"json"}).value)(i)})})()})(); \ No newline at end of file diff --git a/examples/frontend/angular/dist/casper/index.html b/examples/frontend/angular/dist/casper/index.html new file mode 100644 index 000000000..02da4179a --- /dev/null +++ b/examples/frontend/angular/dist/casper/index.html @@ -0,0 +1,17 @@ + + + + + Casper Client + + + + + + + + + + diff --git a/examples/frontend/angular/dist/casper/main.a2ceff1644efa257.js b/examples/frontend/angular/dist/casper/main.a2ceff1644efa257.js new file mode 100644 index 000000000..db16a8041 --- /dev/null +++ b/examples/frontend/angular/dist/casper/main.a2ceff1644efa257.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcasper=self.webpackChunkcasper||[]).push([[179],{2311:(Cn,cr,it)=>{function Se(e){return"function"==typeof e}function c(e){const n=e(r=>{Error.call(r),r.stack=(new Error).stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}const Ae=c(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription:\n${n.map((r,o)=>`${o+1}) ${r.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=n});function B(e,t){if(e){const n=e.indexOf(t);0<=n&&e.splice(n,1)}}class Fe{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;const{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(const i of n)i.remove(this);else n.remove(this);const{initialTeardown:r}=this;if(Se(r))try{r()}catch(i){t=i instanceof Ae?i.errors:[i]}const{_finalizers:o}=this;if(o){this._finalizers=null;for(const i of o)try{gt(i)}catch(a){t=t??[],a instanceof Ae?t=[...t,...a.errors]:t.push(a)}}if(t)throw new Ae(t)}}add(t){var n;if(t&&t!==this)if(this.closed)gt(t);else{if(t instanceof Fe){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(n=this._finalizers)&&void 0!==n?n:[]).push(t)}}_hasParent(t){const{_parentage:n}=this;return n===t||Array.isArray(n)&&n.includes(t)}_addParent(t){const{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t}_removeParent(t){const{_parentage:n}=this;n===t?this._parentage=null:Array.isArray(n)&&B(n,t)}remove(t){const{_finalizers:n}=this;n&&B(n,t),t instanceof Fe&&t._removeParent(this)}}Fe.EMPTY=(()=>{const e=new Fe;return e.closed=!0,e})();const zt=Fe.EMPTY;function M(e){return e instanceof Fe||e&&"closed"in e&&Se(e.remove)&&Se(e.add)&&Se(e.unsubscribe)}function gt(e){Se(e)?e():e.unsubscribe()}const Be={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},tt={setTimeout(e,t,...n){const{delegate:r}=tt;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){const{delegate:t}=tt;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function O(e){tt.setTimeout(()=>{const{onUnhandledError:t}=Be;if(!t)throw e;t(e)})}function H(){}const D=C("C",void 0,void 0);function C(e,t,n){return{kind:e,value:t,error:n}}let E=null;function In(e){if(Be.useDeprecatedSynchronousErrorHandling){const t=!E;if(t&&(E={errorThrown:!1,error:null}),e(),t){const{errorThrown:n,error:r}=E;if(E=null,n)throw r}}else e()}class Tr extends Fe{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,M(t)&&t.add(this)):this.destination=$c}static create(t,n,r){return new Ar(t,n,r)}next(t){this.isStopped?Hi(function Vc(e){return C("N",e,void 0)}(t),this):this._next(t)}error(t){this.isStopped?Hi(function io(e){return C("E",void 0,e)}(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?Hi(D,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const Bc=Function.prototype.bind;function ws(e,t){return Bc.call(e,t)}class P{constructor(t){this.partialObserver=t}next(t){const{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){ao(r)}}error(t){const{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){ao(r)}else ao(t)}complete(){const{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){ao(n)}}}class Ar extends Tr{constructor(t,n,r){let o;if(super(),Se(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else{let i;this&&Be.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe(),o={next:t.next&&ws(t.next,i),error:t.error&&ws(t.error,i),complete:t.complete&&ws(t.complete,i)}):o=t}this.destination=new P(o)}}function ao(e){Be.useDeprecatedSynchronousErrorHandling?function w(e){Be.useDeprecatedSynchronousErrorHandling&&E&&(E.errorThrown=!0,E.error=e)}(e):O(e)}function Hi(e,t){const{onStoppedNotification:n}=Be;n&&tt.setTimeout(()=>n(e,t))}const $c={closed:!0,next:H,error:function p_(e){throw e},complete:H},ys="function"==typeof Symbol&&Symbol.observable||"@@observable";function bs(e){return e}let mt=(()=>{class e{constructor(n){n&&(this._subscribe=n)}lift(n){const r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,o){const i=function qc(e){return e&&e instanceof Tr||function Uc(e){return e&&Se(e.next)&&Se(e.error)&&Se(e.complete)}(e)&&M(e)}(n)?n:new Ar(n,r,o);return In(()=>{const{operator:a,source:u}=this;i.add(a?a.call(i,u):u?this._subscribe(i):this._trySubscribe(i))}),i}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r)}}forEach(n,r){return new(r=ze(r))((o,i)=>{const a=new Ar({next:u=>{try{n(u)}catch(d){i(d),a.unsubscribe()}},error:i,complete:o});this.subscribe(a)})}_subscribe(n){var r;return null===(r=this.source)||void 0===r?void 0:r.subscribe(n)}[ys](){return this}pipe(...n){return function ht(e){return 0===e.length?bs:1===e.length?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}(n)(this)}toPromise(n){return new(n=ze(n))((r,o)=>{let i;this.subscribe(a=>i=a,a=>o(a),()=>r(i))})}}return e.create=t=>new e(t),e})();function ze(e){var t;return null!==(t=e??Be.Promise)&&void 0!==t?t:Promise}const co=c(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let Qe=(()=>{class e extends mt{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){const r=new fn(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new co}next(n){In(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const r of this.currentObservers)r.next(n)}})}error(n){In(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=n;const{observers:r}=this;for(;r.length;)r.shift().error(n)}})}complete(){In(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:n}=this;for(;n.length;)n.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var n;return(null===(n=this.observers)||void 0===n?void 0:n.length)>0}_trySubscribe(n){return this._throwIfClosed(),super._trySubscribe(n)}_subscribe(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)}_innerSubscribe(n){const{hasError:r,isStopped:o,observers:i}=this;return r||o?zt:(this.currentObservers=null,i.push(n),new Fe(()=>{this.currentObservers=null,B(i,n)}))}_checkFinalizedStatuses(n){const{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete()}asObservable(){const n=new mt;return n.source=this,n}}return e.create=(t,n)=>new fn(t,n),e})();class fn extends Qe{constructor(t,n){super(),this.destination=t,this.source=n}next(t){var n,r;null===(r=null===(n=this.destination)||void 0===n?void 0:n.next)||void 0===r||r.call(n,t)}error(t){var n,r;null===(r=null===(n=this.destination)||void 0===n?void 0:n.error)||void 0===r||r.call(n,t)}complete(){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.complete)||void 0===n||n.call(t)}_subscribe(t){var n,r;return null!==(r=null===(n=this.source)||void 0===n?void 0:n.subscribe(t))&&void 0!==r?r:zt}}class vs extends Qe{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const n=super._subscribe(t);return!n.closed&&t.next(this._value),n}getValue(){const{hasError:t,thrownError:n,_value:r}=this;if(t)throw n;return this._throwIfClosed(),r}next(t){super.next(this._value=t)}}function he(e){return t=>{if(function pn(e){return Se(e?.lift)}(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function nt(e,t,n,r,o){return new lr(e,t,n,r,o)}class lr extends Tr{constructor(t,n,r,o,i,a){super(t),this.onFinalize=i,this.shouldUnsubscribe=a,this._next=n?function(u){try{n(u)}catch(d){t.error(d)}}:super._next,this._error=o?function(u){try{o(u)}catch(d){t.error(d)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(u){t.error(u)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:n}=this;super.unsubscribe(),!n&&(null===(t=this.onFinalize)||void 0===t||t.call(this))}}}function rn(e,t){return he((n,r)=>{let o=0;n.subscribe(nt(r,i=>{r.next(e.call(t,i,o++))}))})}function on(e){return this instanceof on?(this.v=e,this):new on(e)}function ur(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,t=e[Symbol.asyncIterator];return t?t.call(e):(e=function Rr(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[i]=e[i]&&function(a){return new Promise(function(u,d){!function o(i,a,u,d){Promise.resolve(d).then(function(f){i({value:f,done:u})},a)}(u,d,(a=e[i](a)).done,a.value)})}}}"function"==typeof SuppressedError&&SuppressedError;const Wt=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function fo(e){return Se(e?.then)}function dr(e){return Se(e[ys])}function Ft(e){return Symbol.asyncIterator&&Se(e?.[Symbol.asyncIterator])}function _r(e){return new TypeError(`You provided ${null!==e&&"object"==typeof e?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const Or=function Pr(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function fr(e){return Se(e?.[Or])}function pr(e){return function _o(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o,r=n.apply(e,t||[]),i=[];return o={},a("next"),a("throw"),a("return"),o[Symbol.asyncIterator]=function(){return this},o;function a(y){r[y]&&(o[y]=function(b){return new Promise(function(I,T){i.push([y,b,I,T])>1||u(y,b)})})}function u(y,b){try{!function d(y){y.value instanceof on?Promise.resolve(y.value.v).then(f,g):h(i[0][2],y)}(r[y](b))}catch(I){h(i[0][3],I)}}function f(y){u("next",y)}function g(y){u("throw",y)}function h(y,b){y(b),i.shift(),i.length&&u(i[0][0],i[0][1])}}(this,arguments,function*(){const n=e.getReader();try{for(;;){const{value:r,done:o}=yield on(n.read());if(o)return yield on(void 0);yield yield on(r)}}finally{n.releaseLock()}})}function Fr(e){return Se(e?.getReader)}function It(e){if(e instanceof mt)return e;if(null!=e){if(dr(e))return function Lr(e){return new mt(t=>{const n=e[ys]();if(Se(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(e);if(Wt(e))return function po(e){return new mt(t=>{for(let n=0;n{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,O)})}(e);if(Ft(e))return gr(e);if(fr(e))return function ho(e){return new mt(t=>{for(const n of e)if(t.next(n),t.closed)return;t.complete()})}(e);if(Fr(e))return function mo(e){return gr(pr(e))}(e)}throw _r(e)}function gr(e){return new mt(t=>{(function wo(e,t){var n,r,o,i;return function lo(e,t,n,r){return new(n||(n=Promise))(function(i,a){function u(g){try{f(r.next(g))}catch(h){a(h)}}function d(g){try{f(r.throw(g))}catch(h){a(h)}}function f(g){g.done?i(g.value):function o(i){return i instanceof n?i:new n(function(a){a(i)})}(g.value).then(u,d)}f((r=r.apply(e,t||[])).next())})}(this,void 0,void 0,function*(){try{for(n=ur(e);!(r=yield n.next()).done;)if(t.next(r.value),t.closed)return}catch(a){o={error:a}}finally{try{r&&!r.done&&(i=n.return)&&(yield i.call(n))}finally{if(o)throw o.error}}t.complete()})})(e,t).catch(n=>t.error(n))})}function Jt(e,t,n,r=0,o=!1){const i=t.schedule(function(){n(),o?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(i),!o)return i}function bo(e,t,n=1/0){return Se(t)?bo((r,o)=>rn((i,a)=>t(r,i,o,a))(It(e(r,o))),n):("number"==typeof t&&(n=t),he((r,o)=>function yo(e,t,n,r,o,i,a,u){const d=[];let f=0,g=0,h=!1;const y=()=>{h&&!d.length&&!f&&t.complete()},b=T=>f{i&&t.next(T),f++;let x=!1;It(n(T,g++)).subscribe(nt(t,L=>{o?.(L),i?b(L):t.next(L)},()=>{x=!0},void 0,()=>{if(x)try{for(f--;d.length&&fI(L)):I(L)}y()}catch(L){t.error(L)}}))};return e.subscribe(nt(t,b,()=>{h=!0,y()})),()=>{u?.()}}(r,o,e,n)))}const Os=new mt(e=>e.complete());function vo(e){return e[e.length-1]}function qi(e){return function m_(e){return e&&Se(e.schedule)}(vo(e))?e.pop():void 0}function s(e,t=0){return he((n,r)=>{n.subscribe(nt(r,o=>Jt(r,e,()=>r.next(o),t),()=>Jt(r,e,()=>r.complete(),t),o=>Jt(r,e,()=>r.error(o),t)))})}function l(e,t=0){return he((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function N(e,t){if(!e)throw new Error("Iterable cannot be null");return new mt(n=>{Jt(n,t,()=>{const r=e[Symbol.asyncIterator]();Jt(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function oe(e,t){return t?function le(e,t){if(null!=e){if(dr(e))return function _(e,t){return It(e).pipe(l(t),s(t))}(e,t);if(Wt(e))return function m(e,t){return new mt(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}(e,t);if(fo(e))return function p(e,t){return It(e).pipe(l(t),s(t))}(e,t);if(Ft(e))return N(e,t);if(fr(e))return function S(e,t){return new mt(n=>{let r;return Jt(n,t,()=>{r=e[Or](),Jt(n,t,()=>{let o,i;try{({value:o,done:i}=r.next())}catch(a){return void n.error(a)}i?n.complete():n.next(o)},0,!0)}),()=>Se(r?.return)&&r.return()})}(e,t);if(Fr(e))return function Z(e,t){return N(pr(e),t)}(e,t)}throw _r(e)}(e,t):It(e)}function Ue(...e){return oe(e,qi(e))}function Re(e={}){const{connector:t=(()=>new Qe),resetOnError:n=!0,resetOnComplete:r=!0,resetOnRefCountZero:o=!0}=e;return i=>{let a,u,d,f=0,g=!1,h=!1;const y=()=>{u?.unsubscribe(),u=void 0},b=()=>{y(),a=d=void 0,g=h=!1},I=()=>{const T=a;b(),T?.unsubscribe()};return he((T,x)=>{f++,!h&&!g&&y();const L=d=d??t();x.add(()=>{f--,0===f&&!h&&!g&&(u=ut(I,o))}),L.subscribe(x),!a&&f>0&&(a=new Ar({next:A=>L.next(A),error:A=>{h=!0,y(),u=ut(b,n,A),L.error(A)},complete:()=>{g=!0,y(),u=ut(b,r),L.complete()}}),It(T).subscribe(a))})(i)}}function ut(e,t,...n){if(!0===t)return void e();if(!1===t)return;const r=new Ar({next:()=>{r.unsubscribe(),e()}});return It(t(...n)).subscribe(r)}function yt(e,t){return he((n,r)=>{let o=null,i=0,a=!1;const u=()=>a&&!o&&r.complete();n.subscribe(nt(r,d=>{o?.unsubscribe();let f=0;const g=i++;It(e(d,g)).subscribe(o=nt(r,h=>r.next(t?t(d,h,g,f++):h),()=>{o=null,u()}))},()=>{a=!0,u()}))})}function Zt(e,t){return e===t}function fe(e){for(let t in e)if(e[t]===fe)return t;throw Error("Could not find renamed property on target object.")}function Le(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(Le).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function Wn(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const jr=fe({__forward_ref__:fe});function An(e){return e.__forward_ref__=An,e.toString=function(){return Le(this())},e}function K(e){return function Hr(e){return"function"==typeof e&&e.hasOwnProperty(jr)&&e.__forward_ref__===An}(e)?e():e}function Vr(e){return e&&!!e.\u0275providers}const Do="https://g.co/ng/security#xss";class U extends Error{constructor(t,n){super(function hr(e,t){return`NG0${Math.abs(e)}${t?": "+t:""}`}(t,n)),this.code=t}}function Y(e){return"string"==typeof e?e:null==e?"":String(e)}function zc(e,t){throw new U(-201,!1)}function sn(e,t){null==e&&function Q(e,t,n,r){throw new Error(`ASSERTION ERROR: ${e}`+(null==r?"":` [Expected=> ${n} ${r} ${t} <=Actual]`))}(t,e,null,"!=")}function De(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function $r(e){return{providers:e.providers||[],imports:e.imports||[]}}function Gi(e){return w_(e,Ji)||w_(e,y_)}function w_(e,t){return e.hasOwnProperty(t)?e[t]:null}function Wi(e){return e&&(e.hasOwnProperty(Gc)||e.hasOwnProperty(hb))?e[Gc]:null}const Ji=fe({\u0275prov:fe}),Gc=fe({\u0275inj:fe}),y_=fe({ngInjectableDef:fe}),hb=fe({ngInjectorDef:fe});var me=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(me||{});let Wc;function Lt(e){const t=Wc;return Wc=e,t}function v_(e,t,n){const r=Gi(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&me.Optional?null:void 0!==t?t:void zc(Le(e))}const Pe=globalThis,Fs={},Qc="__NG_DI_FLAG__",Zi="ngTempTokenPath",yb=/\n/gm,E_="__source";let Eo;function mr(e){const t=Eo;return Eo=e,t}function Db(e,t=me.Default){if(void 0===Eo)throw new U(-203,!1);return null===Eo?v_(e,void 0,t):Eo.get(e,t&me.Optional?null:void 0,t)}function ae(e,t=me.Default){return(function b_(){return Wc}()||Db)(K(e),t)}function Ee(e,t=me.Default){return ae(e,Ki(t))}function Ki(e){return typeof e>"u"||"number"==typeof e?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function Xc(e){const t=[];for(let n=0;nt){a=i-1;break}}}for(;ii?"":o[h+1].toLowerCase();const b=8&r?y:null;if(b&&-1!==M_(b,f,0)||2&r&&f!==y){if(mn(r))return!1;a=!0}}}}else{if(!a&&!mn(r)&&!mn(d))return!1;if(a&&mn(d))continue;a=!1,r=d|1&r}}return mn(r)||a}function mn(e){return 0==(1&e)}function Tb(e,t,n,r){if(null===t)return-1;let o=0;if(r||!n){let i=!1;for(;o-1)for(n++;n0?'="'+u+'"':"")+"]"}else 8&r?o+="."+a:4&r&&(o+=" "+a);else""!==o&&!mn(a)&&(t+=P_(i,o),o=""),r=a,i=i||!mn(r);n++}return""!==o&&(t+=P_(i,o)),t}function rl(e){return Jn(()=>{const t=F_(e),n={...t,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Yi.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||hn.Emulated,styles:e.styles||Ce,_:null,schemas:e.schemas||null,tView:null,id:""};L_(n);const r=e.dependencies;return n.directiveDefs=Xi(r,!1),n.pipeDefs=Xi(r,!0),n.id=function $b(e){let t=0;const n=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery].join("|");for(const o of n)t=Math.imul(31,t)+o.charCodeAt(0)<<0;return t+=2147483648,"c"+t}(n),n})}function jb(e){return ye(e)||dt(e)}function Hb(e){return null!==e}function Co(e){return Jn(()=>({type:e.type,bootstrap:e.bootstrap||Ce,declarations:e.declarations||Ce,imports:e.imports||Ce,exports:e.exports||Ce,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function O_(e,t){if(null==e)return Nn;const n={};for(const r in e)if(e.hasOwnProperty(r)){let o=e[r],i=o;Array.isArray(o)&&(i=o[1],o=o[0]),n[o]=r,t&&(t[o]=i)}return n}function an(e){return Jn(()=>{const t=F_(e);return L_(t),t})}function ye(e){return e[Qi]||null}function dt(e){return e[el]||null}function Mt(e){return e[tl]||null}function F_(e){const t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputTransforms:null,inputConfig:e.inputs||Nn,exportAs:e.exportAs||null,standalone:!0===e.standalone,signals:!0===e.signals,selectors:e.selectors||Ce,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:O_(e.inputs,t),outputs:O_(e.outputs)}}function L_(e){e.features?.forEach(t=>t(e))}function Xi(e,t){if(!e)return null;const n=t?Mt:jb;return()=>("function"==typeof e?e():e).map(r=>n(r)).filter(Hb)}const Je=0,q=1,se=2,qe=3,wn=4,Bs=5,bt=6,Io=7,Ze=8,wr=9,So=10,re=11,$s=12,j_=13,Mo=14,Ke=15,Us=16,ko=17,xn=18,qs=19,H_=20,yr=21,Kn=22,ea=23,ta=24,pe=25,ol=1,V_=2,Rn=7,To=9,_t=11;function Ht(e){return Array.isArray(e)&&"object"==typeof e[ol]}function Vt(e){return Array.isArray(e)&&!0===e[ol]}function sl(e){return 0!=(4&e.flags)}function Ur(e){return e.componentOffset>-1}function ra(e){return 1==(1&e.flags)}function yn(e){return!!e.template}function il(e){return 0!=(512&e[se])}function qr(e,t){return e.hasOwnProperty(Zn)?e[Zn]:null}let Jb=Pe.WeakRef??class Wb{constructor(t){this.ref=t}deref(){return this.ref}},Kb=0,Pn=null,oa=!1;function ct(e){const t=Pn;return Pn=e,t}class z_{constructor(){this.id=Kb++,this.ref=function Zb(e){return new Jb(e)}(this),this.producers=new Map,this.consumers=new Map,this.trackingVersion=0,this.valueVersion=0}consumerPollProducersForChange(){for(const[t,n]of this.producers){const r=n.producerNode.deref();if(null!=r&&n.atTrackingVersion===this.trackingVersion){if(r.producerPollStatus(n.seenValueVersion))return!0}else this.producers.delete(t),r?.consumers.delete(this.id)}return!1}producerMayHaveChanged(){const t=oa;oa=!0;try{for(const[n,r]of this.consumers){const o=r.consumerNode.deref();null!=o&&o.trackingVersion===r.atTrackingVersion?o.onConsumerDependencyMayHaveChanged():(this.consumers.delete(n),o?.producers.delete(this.id))}}finally{oa=t}}producerAccessed(){if(oa)throw new Error("");if(null===Pn)return;let t=Pn.producers.get(this.id);void 0===t?(t={consumerNode:Pn.ref,producerNode:this.ref,seenValueVersion:this.valueVersion,atTrackingVersion:Pn.trackingVersion},Pn.producers.set(this.id,t),this.consumers.set(Pn.id,t)):(t.seenValueVersion=this.valueVersion,t.atTrackingVersion=Pn.trackingVersion)}get hasProducers(){return this.producers.size>0}get producerUpdatesAllowed(){return!1!==Pn?.consumerAllowSignalWrites}producerPollStatus(t){return this.valueVersion!==t||(this.onProducerUpdateValueVersion(),this.valueVersion!==t)}}let G_=null;const J_=()=>{};class ev extends z_{constructor(t,n,r){super(),this.watch=t,this.schedule=n,this.dirty=!1,this.cleanupFn=J_,this.registerOnCleanup=o=>{this.cleanupFn=o},this.consumerAllowSignalWrites=r}notify(){this.dirty||this.schedule(this),this.dirty=!0}onConsumerDependencyMayHaveChanged(){this.notify()}onProducerUpdateValueVersion(){}run(){if(this.dirty=!1,0!==this.trackingVersion&&!this.consumerPollProducersForChange())return;const t=ct(this);this.trackingVersion++;try{this.cleanupFn(),this.cleanupFn=J_,this.watch(this.registerOnCleanup)}finally{ct(t)}}cleanup(){this.cleanupFn()}}class tv{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}}function Z_(e){return e.type.prototype.ngOnChanges&&(e.setInput=rv),nv}function nv(){const e=Y_(this),t=e?.current;if(t){const n=e.previous;if(n===Nn)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function rv(e,t,n,r){const o=this.declaredInputs[n],i=Y_(e)||function ov(e,t){return e[K_]=t}(e,{previous:Nn,current:null}),a=i.current||(i.current={}),u=i.previous,d=u[o];a[o]=new tv(d&&d.currentValue,t,u===Nn),e[r]=t}const K_="__ngSimpleChanges__";function Y_(e){return e[K_]||null}const On=function(e,t,n){},Q_="svg";function je(e){for(;Array.isArray(e);)e=e[Je];return e}function Bt(e,t){return je(t[e.index])}function ef(e,t){return e.data[t]}function Qt(e,t){const n=t[e];return Ht(n)?n:n[Je]}function br(e,t){return null==t?null:e[t]}function tf(e){e[ko]=0}function dv(e){1024&e[se]||(e[se]|=1024,rf(e,1))}function nf(e){1024&e[se]&&(e[se]&=-1025,rf(e,-1))}function rf(e,t){let n=e[qe];if(null===n)return;n[Bs]+=t;let r=n;for(n=n[qe];null!==n&&(1===t&&1===r[Bs]||-1===t&&0===r[Bs]);)n[Bs]+=t,r=n,n=n[qe]}const X={lFrame:hf(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function cf(){return X.bindingsEnabled}function F(){return X.lFrame.lView}function be(){return X.lFrame.tView}function vt(e){return X.lFrame.contextLView=e,e[Ze]}function Dt(e){return X.lFrame.contextLView=null,e}function ft(){let e=lf();for(;null!==e&&64===e.type;)e=e.parent;return e}function lf(){return X.lFrame.currentTNode}function Fn(e,t){const n=X.lFrame;n.currentTNode=e,n.isParent=t}function _l(){return X.lFrame.isParent}function fl(){X.lFrame.isParent=!1}function xo(){return X.lFrame.bindingIndex++}function Ev(e,t){const n=X.lFrame;n.bindingIndex=n.bindingRootIndex=e,pl(t)}function pl(e){X.lFrame.currentDirectiveIndex=e}function ff(){return X.lFrame.currentQueryIndex}function hl(e){X.lFrame.currentQueryIndex=e}function Iv(e){const t=e[q];return 2===t.type?t.declTNode:1===t.type?e[bt]:null}function pf(e,t,n){if(n&me.SkipSelf){let o=t,i=e;for(;!(o=o.parent,null!==o||n&me.Host||(o=Iv(i),null===o||(i=i[Mo],10&o.type))););if(null===o)return!1;t=o,e=i}const r=X.lFrame=gf();return r.currentTNode=t,r.lView=e,!0}function ml(e){const t=gf(),n=e[q];X.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function gf(){const e=X.lFrame,t=null===e?null:e.child;return null===t?hf(e):t}function hf(e){const t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function mf(){const e=X.lFrame;return X.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const wf=mf;function wl(){const e=mf();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function Tt(){return X.lFrame.selectedIndex}function zr(e){X.lFrame.selectedIndex=e}function Ge(){const e=X.lFrame;return ef(e.tView,e.selectedIndex)}function Ws(){X.lFrame.currentNamespace=Q_}function yl(){!function Tv(){X.lFrame.currentNamespace=null}()}let bf=!0;function la(){return bf}function vr(e){bf=e}function ua(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[d]<0&&(e[ko]+=65536),(u>13>16&&(3&e[se])===t&&(e[se]+=8192,Df(u,i)):Df(u,i)}const Ro=-1;class Js{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}}function Dl(e){return e!==Ro}function Zs(e){return 32767&e}function Ks(e,t){let n=function Ov(e){return e>>16}(e),r=t;for(;n>0;)r=r[Mo],n--;return r}let El=!0;function fa(e){const t=El;return El=e,t}const Ef=255,Cf=5;let Fv=0;const Ln={};function pa(e,t){const n=If(e,t);if(-1!==n)return n;const r=t[q];r.firstCreatePass&&(e.injectorIndex=t.length,Cl(r.data,e),Cl(t,null),Cl(r.blueprint,null));const o=ga(e,t),i=e.injectorIndex;if(Dl(o)){const a=Zs(o),u=Ks(o,t),d=u[q].data;for(let f=0;f<8;f++)t[i+f]=u[a+f]|d[a+f]}return t[i+8]=o,i}function Cl(e,t){e.push(0,0,0,0,0,0,0,0,t)}function If(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function ga(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,r=null,o=t;for(;null!==o;){if(r=xf(o),null===r)return Ro;if(n++,o=o[Mo],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return Ro}function Il(e,t,n){!function Lv(e,t,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(js)&&(r=n[js]),null==r&&(r=n[js]=Fv++);const o=r&Ef;t.data[e+(o>>Cf)]|=1<=0?t&Ef:$v:t}(n);if("function"==typeof i){if(!pf(t,e,r))return r&me.Host?Sf(o,0,r):Mf(t,n,r,o);try{let a;if(a=i(r),null!=a||r&me.Optional)return a;zc()}finally{wf()}}else if("number"==typeof i){let a=null,u=If(e,t),d=Ro,f=r&me.Host?t[Ke][bt]:null;for((-1===u||r&me.SkipSelf)&&(d=-1===u?ga(e,t):t[u+8],d!==Ro&&Nf(r,!1)?(a=t[q],u=Zs(d),t=Ks(d,t)):u=-1);-1!==u;){const g=t[q];if(Af(i,u,g.data)){const h=Hv(u,t,n,a,r,f);if(h!==Ln)return h}d=t[u+8],d!==Ro&&Nf(r,t[q].data[u+8]===f)&&Af(i,u,t)?(a=g,u=Zs(d),t=Ks(d,t)):u=-1}}return o}function Hv(e,t,n,r,o,i){const a=t[q],u=a.data[e+8],g=ha(u,a,n,null==r?Ur(u)&&El:r!=a&&0!=(3&u.type),o&me.Host&&i===u);return null!==g?Gr(t,a,g,u):Ln}function ha(e,t,n,r,o){const i=e.providerIndexes,a=t.data,u=1048575&i,d=e.directiveStart,g=i>>20,y=o?u+g:e.directiveEnd;for(let b=r?u:u+g;b=d&&I.type===n)return b}if(o){const b=a[d];if(b&&yn(b)&&b.type===n)return d}return null}function Gr(e,t,n,r){let o=e[n];const i=t.data;if(function xv(e){return e instanceof Js}(o)){const a=o;a.resolving&&function ub(e,t){const n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new U(-200,`Circular dependency in DI detected for ${e}${n}`)}(function we(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():Y(e)}(i[n]));const u=fa(a.canSeeViewProviders);a.resolving=!0;const f=a.injectImpl?Lt(a.injectImpl):null;pf(e,r,me.Default);try{o=e[n]=a.factory(void 0,i,e,r),t.firstCreatePass&&n>=r.directiveStart&&function Av(e,t,n){const{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){const a=Z_(t);(n.preOrderHooks??=[]).push(e,a),(n.preOrderCheckHooks??=[]).push(e,a)}o&&(n.preOrderHooks??=[]).push(0-e,o),i&&((n.preOrderHooks??=[]).push(e,i),(n.preOrderCheckHooks??=[]).push(e,i))}(n,i[n],t)}finally{null!==f&&Lt(f),fa(u),a.resolving=!1,wf()}}return o}function Af(e,t,n){return!!(n[t+(e>>Cf)]&1<{const r=function kl(e){return function(...n){if(e){const r=e(...n);for(const o in r)this[o]=r[o]}}}(t);function o(...i){if(this instanceof o)return r.apply(this,i),this;const a=new o(...i);return u.annotation=a,u;function u(d,f,g){const h=d.hasOwnProperty(Oo)?d[Oo]:Object.defineProperty(d,Oo,{value:[]})[Oo];for(;h.length<=g;)h.push(null);return(h[g]=h[g]||[]).push(a),d}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o})}function Ho(e,t){e.forEach(n=>Array.isArray(n)?Ho(n,t):t(n))}function Pf(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function ma(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}const Nl=Ls(Lo("Optional"),8),xl=Ls(Lo("SkipSelf"),4);function Ea(e){return 128==(128&e.flags)}var Dr=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(Dr||{});const wD=/^>|^->||--!>|)/,bD="\u200b$1\u200b";const Fl=new Map;let vD=0;const jl="__ngContext__";function Et(e,t){Ht(t)?(e[jl]=t[qs],function ED(e){Fl.set(e[qs],e)}(t)):e[jl]=t}let Hl;function Vl(e,t){return Hl(e,t)}function ni(e){const t=e[qe];return Vt(t)?t[qe]:t}function tp(e){return rp(e[$s])}function np(e){return rp(e[wn])}function rp(e){for(;null!==e&&!Vt(e);)e=e[wn];return e}function Uo(e,t,n,r,o){if(null!=r){let i,a=!1;Vt(r)?i=r:Ht(r)&&(a=!0,r=r[Je]);const u=je(r);0===e&&null!==n?null==o?ap(t,n,u):Wr(t,n,u,o||null,!0):1===e&&null!==n?Wr(t,n,u,o||null,!0):2===e?function Aa(e,t,n){const r=ka(e,t);r&&function $D(e,t,n,r){e.removeChild(t,n,r)}(e,r,t,n)}(t,u,a):3===e&&t.destroyNode(u),null!=i&&function zD(e,t,n,r,o){const i=n[Rn];i!==je(n)&&Uo(t,e,r,i,o);for(let u=_t;ut.replace(yD,bD))}(t))}function Sa(e,t,n){return e.createElement(t,n)}function sp(e,t){const n=e[To],r=n.indexOf(t);nf(t),n.splice(r,1)}function Ma(e,t){if(e.length<=_t)return;const n=_t+t,r=e[n];if(r){const o=r[Us];null!==o&&o!==e&&sp(o,r),t>0&&(e[n-1][wn]=r[wn]);const i=ma(e,_t+t);!function PD(e,t){oi(e,t,t[re],2,null,null),t[Je]=null,t[bt]=null}(r[q],r);const a=i[xn];null!==a&&a.detachView(i[q]),r[qe]=null,r[wn]=null,r[se]&=-129}return r}function $l(e,t){if(!(256&t[se])){const n=t[re];t[ea]?.destroy(),t[ta]?.destroy(),n.destroyNode&&oi(e,t,n,3,null,null),function LD(e){let t=e[$s];if(!t)return Ul(e[q],e);for(;t;){let n=null;if(Ht(t))n=t[$s];else{const r=t[_t];r&&(n=r)}if(!n){for(;t&&!t[wn]&&t!==e;)Ht(t)&&Ul(t[q],t),t=t[qe];null===t&&(t=e),Ht(t)&&Ul(t[q],t),n=t&&t[wn]}t=n}}(t)}}function Ul(e,t){if(!(256&t[se])){t[se]&=-129,t[se]|=256,function BD(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let r=0;r=0?r[a]():r[-a].unsubscribe(),i+=2}else n[i].call(r[n[i+1]]);null!==r&&(t[Io]=null);const o=t[yr];if(null!==o){t[yr]=null;for(let i=0;i-1){const{encapsulation:i}=e.data[r.directiveStart+o];if(i===hn.None||i===hn.Emulated)return null}return Bt(r,n)}}(e,t.parent,n)}function Wr(e,t,n,r,o){e.insertBefore(t,n,r,o)}function ap(e,t,n){e.appendChild(t,n)}function cp(e,t,n,r,o){null!==r?Wr(e,t,n,r,o):ap(e,t,n)}function ka(e,t){return e.parentNode(t)}let zl,Na,Zl,xa,dp=function up(e,t,n){return 40&e.type?Bt(e,n):null};function Ta(e,t,n,r){const o=ql(e,r,t),i=t[re],u=function lp(e,t,n){return dp(e,t,n)}(r.parent||t[bt],r,t);if(null!=o)if(Array.isArray(n))for(let d=0;de,createScript:e=>e,createScriptURL:e=>e})}catch{}return Na}()?.createHTML(e)||e}function zo(){if(void 0!==Zl)return Zl;if(typeof document<"u")return document;throw new U(210,!1)}function wp(e){return function Kl(){if(void 0===xa&&(xa=null,Pe.trustedTypes))try{xa=Pe.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return xa}()?.createHTML(e)||e}class vp{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Do})`}}class o0{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{const n=(new window.DOMParser).parseFromString(qo(t),"text/html").body;return null===n?this.inertDocumentHelper.getInertBodyElement(t):(n.removeChild(n.firstChild),n)}catch{return null}}}class s0{constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(t){const n=this.inertDocument.createElement("template");return n.innerHTML=qo(t),n}}const c0=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Xn(e){const t={};for(const n of e.split(","))t[n]=!0;return t}function ii(...e){const t={};for(const n of e)for(const r in n)n.hasOwnProperty(r)&&(t[r]=!0);return t}const Ep=Xn("area,br,col,hr,img,wbr"),Cp=Xn("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Ip=Xn("rp,rt"),Ql=ii(Ep,ii(Cp,Xn("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),ii(Ip,Xn("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),ii(Ip,Cp)),Xl=Xn("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Sp=ii(Xl,Xn("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Xn("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),l0=Xn("script,style,template");class u0{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let n=t.firstChild,r=!0;for(;n;)if(n.nodeType===Node.ELEMENT_NODE?r=this.startElement(n):n.nodeType===Node.TEXT_NODE?this.chars(n.nodeValue):this.sanitizedSomething=!0,r&&n.firstChild)n=n.firstChild;else for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let o=this.checkClobberedElement(n,n.nextSibling);if(o){n=o;break}n=this.checkClobberedElement(n,n.parentNode)}return this.buf.join("")}startElement(t){const n=t.nodeName.toLowerCase();if(!Ql.hasOwnProperty(n))return this.sanitizedSomething=!0,!l0.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);const r=t.attributes;for(let o=0;o"),!0}endElement(t){const n=t.nodeName.toLowerCase();Ql.hasOwnProperty(n)&&!Ep.hasOwnProperty(n)&&(this.buf.push(""))}chars(t){this.buf.push(Mp(t))}checkClobberedElement(t,n){if(n&&(t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return n}}const d0=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,_0=/([^\#-~ |!])/g;function Mp(e){return e.replace(/&/g,"&").replace(d0,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(_0,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}let Ra;function eu(e){return"content"in e&&function p0(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var Go=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}(Go||{});function tu(e){const t=function ai(){const e=F();return e&&e[So].sanitizer}();return t?wp(t.sanitize(Go.HTML,e)||""):function si(e,t){const n=function r0(e){return e instanceof vp&&e.getTypeName()||null}(e);if(null!=n&&n!==t){if("ResourceURL"===n&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${Do})`)}return n===t}(e,"HTML")?wp(function Er(e){return e instanceof vp?e.changingThisBreaksApplicationSecurity:e}(e)):function f0(e,t){let n=null;try{Ra=Ra||function Dp(e){const t=new s0(e);return function a0(){try{return!!(new window.DOMParser).parseFromString(qo(""),"text/html")}catch{return!1}}()?new o0(t):t}(e);let r=t?String(t):"";n=Ra.getInertBodyElement(r);let o=5,i=r;do{if(0===o)throw new Error("Failed to sanitize html because the input is unstable");o--,r=i,i=n.innerHTML,n=Ra.getInertBodyElement(r)}while(r!==i);return qo((new u0).sanitizeChildren(eu(n)||n))}finally{if(n){const r=eu(n)||n;for(;r.firstChild;)r.removeChild(r.firstChild)}}}(zo(),Y(e))}class G{constructor(t,n){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=De({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}const Pa=new G("ENVIRONMENT_INITIALIZER"),Ap=new G("INJECTOR",-1),Np=new G("INJECTOR_DEF_TYPES");class nu{get(t,n=Fs){if(n===Fs){const r=new Error(`NullInjectorError: No provider for ${Le(t)}!`);throw r.name="NullInjectorError",r}return n}}function ru(e){return{\u0275providers:e}}function xp(...e){return{\u0275providers:Rp(0,e),\u0275fromNgModule:!0}}function Rp(e,...t){const n=[],r=new Set;let o;const i=a=>{n.push(a)};return Ho(t,a=>{const u=a;Oa(u,i,[],r)&&(o||=[],o.push(u))}),void 0!==o&&Pp(o,i),n}function Pp(e,t){for(let n=0;n{t(i,r)})}}function Oa(e,t,n,r){if(!(e=K(e)))return!1;let o=null,i=Wi(e);const a=!i&&ye(e);if(i||a){if(a&&!a.standalone)return!1;o=e}else{const d=e.ngModule;if(i=Wi(d),!i)return!1;o=d}const u=r.has(o);if(a){if(u)return!1;if(r.add(o),a.dependencies){const d="function"==typeof a.dependencies?a.dependencies():a.dependencies;for(const f of d)Oa(f,t,n,r)}}else{if(!i)return!1;{if(null!=i.imports&&!u){let f;r.add(o);try{Ho(i.imports,g=>{Oa(g,t,n,r)&&(f||=[],f.push(g))})}finally{}void 0!==f&&Pp(f,t)}if(!u){const f=qr(o)||(()=>new o);t({provide:o,useFactory:f,deps:Ce},o),t({provide:Np,useValue:o,multi:!0},o),t({provide:Pa,useValue:()=>ae(o),multi:!0},o)}const d=i.providers;if(null!=d&&!u){const f=e;ou(d,g=>{t(g,f)})}}}return o!==e&&void 0!==e.providers}function ou(e,t){for(let n of e)Vr(n)&&(n=n.\u0275providers),Array.isArray(n)?ou(n,t):t(n)}const v0=fe({provide:String,useValue:fe});function su(e){return null!==e&&"object"==typeof e&&v0 in e}function Jr(e){return"function"==typeof e}const iu=new G("Set Injector scope."),Fa={},E0={};let au;function La(){return void 0===au&&(au=new nu),au}class jn{}class ja extends jn{get destroyed(){return this._destroyed}constructor(t,n,r,o){super(),this.parent=n,this.source=r,this.scopes=o,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,lu(t,a=>this.processProvider(a)),this.records.set(Ap,Wo(void 0,this)),o.has("environment")&&this.records.set(jn,Wo(void 0,this));const i=this.records.get(iu);null!=i&&"string"==typeof i.value&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(Np.multi,Ce,me.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const n of this._ngOnDestroyHooks)n.ngOnDestroy();const t=this._onDestroyHooks;this._onDestroyHooks=[];for(const n of t)n()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear()}}onDestroy(t){return this.assertNotDestroyed(),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){this.assertNotDestroyed();const n=mr(this),r=Lt(void 0);try{return t()}finally{mr(n),Lt(r)}}get(t,n=Fs,r=me.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(S_))return t[S_](this);r=Ki(r);const i=mr(this),a=Lt(void 0);try{if(!(r&me.SkipSelf)){let d=this.records.get(t);if(void 0===d){const f=function k0(e){return"function"==typeof e||"object"==typeof e&&e instanceof G}(t)&&Gi(t);d=f&&this.injectableDefInScope(f)?Wo(cu(t),Fa):null,this.records.set(t,d)}if(null!=d)return this.hydrate(t,d)}return(r&me.Self?La():this.parent).get(t,n=r&me.Optional&&n===Fs?null:n)}catch(u){if("NullInjectorError"===u.name){if((u[Zi]=u[Zi]||[]).unshift(Le(t)),i)throw u;return function Cb(e,t,n,r){const o=e[Zi];throw t[E_]&&o.unshift(t[E_]),e.message=function Ib(e,t,n,r=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let o=Le(t);if(Array.isArray(t))o=t.map(Le).join(" -> ");else if("object"==typeof t){let i=[];for(let a in t)if(t.hasOwnProperty(a)){let u=t[a];i.push(a+":"+("string"==typeof u?JSON.stringify(u):Le(u)))}o=`{${i.join(", ")}}`}return`${n}${r?"("+r+")":""}[${o}]: ${e.replace(yb,"\n ")}`}("\n"+e.message,o,n,r),e.ngTokenPath=o,e[Zi]=null,e}(u,t,"R3InjectorError",this.source)}throw u}finally{Lt(a),mr(i)}}resolveInjectorInitializers(){const t=mr(this),n=Lt(void 0);try{const o=this.get(Pa.multi,Ce,me.Self);for(const i of o)i()}finally{mr(t),Lt(n)}}toString(){const t=[],n=this.records;for(const r of n.keys())t.push(Le(r));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new U(205,!1)}processProvider(t){let n=Jr(t=K(t))?t:K(t&&t.provide);const r=function I0(e){return su(e)?Wo(void 0,e.useValue):Wo(Lp(e),Fa)}(t);if(Jr(t)||!0!==t.multi)this.records.get(n);else{let o=this.records.get(n);o||(o=Wo(void 0,Fa,!0),o.factory=()=>Xc(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n){return n.value===Fa&&(n.value=E0,n.value=n.factory()),"object"==typeof n.value&&n.value&&function M0(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}injectableDefInScope(t){if(!t.providedIn)return!1;const n=K(t.providedIn);return"string"==typeof n?"any"===n||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){const n=this._onDestroyHooks.indexOf(t);-1!==n&&this._onDestroyHooks.splice(n,1)}}function cu(e){const t=Gi(e),n=null!==t?t.factory:qr(e);if(null!==n)return n;if(e instanceof G)throw new U(204,!1);if(e instanceof Function)return function C0(e){const t=e.length;if(t>0)throw function Xs(e,t){const n=[];for(let r=0;rn.factory(e):()=>new e}(e);throw new U(204,!1)}function Lp(e,t,n){let r;if(Jr(e)){const o=K(e);return qr(o)||cu(o)}if(su(e))r=()=>K(e.useValue);else if(function Fp(e){return!(!e||!e.useFactory)}(e))r=()=>e.useFactory(...Xc(e.deps||[]));else if(function Op(e){return!(!e||!e.useExisting)}(e))r=()=>ae(K(e.useExisting));else{const o=K(e&&(e.useClass||e.provide));if(!function S0(e){return!!e.deps}(e))return qr(o)||cu(o);r=()=>new o(...Xc(e.deps))}return r}function Wo(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function lu(e,t){for(const n of e)Array.isArray(n)?lu(n,t):n&&Vr(n)?lu(n.\u0275providers,t):t(n)}const uu=new G("AppId",{providedIn:"root",factory:()=>T0}),T0="ng",jp=new G("Platform Initializer"),Zr=new G("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),Hp=new G("CSP nonce",{providedIn:"root",factory:()=>zo().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let Bp=(e,t,n)=>null;function mu(e,t,n=!1){return Bp(e,t,n)}class H0{}class qp{}class B0{resolveComponentFactory(t){throw function V0(e){const t=Error(`No component factory found for ${Le(e)}.`);return t.ngComponent=e,t}(t)}}let qa=(()=>{class t{}return t.NULL=new B0,t})();function $0(){return Zo(ft(),F())}function Zo(e,t){return new Kr(Bt(e,t))}let Kr=(()=>{class t{constructor(r){this.nativeElement=r}}return t.__NG_ELEMENT_ID__=$0,t})();function U0(e){return e instanceof Kr?e.nativeElement:e}class Gp{}let z0=(()=>{var e;class t{}return(e=t).\u0275prov=De({token:e,providedIn:"root",factory:()=>null}),t})();class bu{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const G0=new bu("16.2.2"),vu={};function Yp(e,t=null,n=null,r){const o=function Qp(e,t=null,n=null,r,o=new Set){const i=[n||Ce,xp(e)];return r=r||("object"==typeof e?void 0:Le(e)),new ja(i,t||La(),r||null,o)}(e,t,n,r);return o.resolveInjectorInitializers(),o}let Hn=(()=>{var e;class t{static create(r,o){if(Array.isArray(r))return Yp({name:""},o,r,"");{const i=r.name??"";return Yp({name:i},r.parent,r.providers,i)}}}return(e=t).THROW_IF_NOT_FOUND=Fs,e.NULL=new nu,e.\u0275prov=De({token:e,providedIn:"any",factory:()=>ae(Ap)}),e.__NG_ELEMENT_ID__=-1,t})(),Cu=(()=>{var e;class t{constructor(){this.callbacks=new Set,this.deferredCallbacks=new Set,this.renderDepth=0,this.runningCallbacks=!1}begin(){if(this.runningCallbacks)throw new U(102,!1);this.renderDepth++}end(){if(this.renderDepth--,0===this.renderDepth)try{this.runningCallbacks=!0;for(const r of this.callbacks)r.invoke()}finally{this.runningCallbacks=!1;for(const r of this.deferredCallbacks)this.callbacks.add(r);this.deferredCallbacks.clear()}}register(r){(this.runningCallbacks?this.deferredCallbacks:this.callbacks).add(r)}unregister(r){this.callbacks.delete(r),this.deferredCallbacks.delete(r)}ngOnDestroy(){this.callbacks.clear(),this.deferredCallbacks.clear()}}return(e=t).\u0275prov=De({token:e,providedIn:"root",factory:()=>new e}),t})();function di(e){for(;e;){e[se]|=64;const t=ni(e);if(il(e)&&!t)return e;e=t}return null}function Iu(e){return e.ngOriginalError}class Yr{constructor(){this._console=console}handleError(t){const n=this._findOriginalError(t);this._console.error("ERROR",t),n&&this._console.error("ORIGINAL ERROR",n)}_findOriginalError(t){let n=t&&Iu(t);for(;n&&Iu(n);)n=Iu(n);return n||null}}const rg=new G("",{providedIn:"root",factory:()=>!1});class ag extends z_{constructor(){super(...arguments),this.consumerAllowSignalWrites=!1,this._lView=null}set lView(t){this._lView=t}onConsumerDependencyMayHaveChanged(){di(this._lView)}onProducerUpdateValueVersion(){}get hasReadASignal(){return this.hasProducers}runInContext(t,n,r){const o=ct(this);this.trackingVersion++;try{t(n,r)}finally{ct(o)}}destroy(){this.trackingVersion++}}let Ga=null;function cg(){return Ga??=new ag,Ga}function lg(e,t){return e[t]??cg()}function ug(e,t){const n=cg();n.hasReadASignal&&(e[t]=Ga,n.lView=e,Ga=new ag)}const ie={};function j(e){dg(be(),F(),Tt()+e,!1)}function dg(e,t,n,r){if(!r)if(3==(3&t[se])){const i=e.preOrderCheckHooks;null!==i&&da(t,i,n)}else{const i=e.preOrderHooks;null!==i&&_a(t,i,0,n)}zr(n)}function te(e,t=me.Default){const n=F();return null===n?ae(e,t):kf(ft(),n,K(e),t)}function Wa(e,t,n,r,o,i,a,u,d,f,g){const h=t.blueprint.slice();return h[Je]=o,h[se]=140|r,(null!==f||e&&2048&e[se])&&(h[se]|=2048),tf(h),h[qe]=h[Mo]=e,h[Ze]=n,h[So]=a||e&&e[So],h[re]=u||e&&e[re],h[wr]=d||e&&e[wr]||null,h[bt]=i,h[qs]=function DD(){return vD++}(),h[Kn]=g,h[H_]=f,h[Ke]=2==t.type?e[Ke]:h,h}function Qo(e,t,n,r,o){let i=e.data[t];if(null===i)i=function Su(e,t,n,r,o){const i=lf(),a=_l(),d=e.data[t]=function hE(e,t,n,r,o,i){let a=t?t.injectorIndex:-1,u=0;return function No(){return null!==X.skipHydrationRootTNode}()&&(u|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:a,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:u,providerIndexes:0,value:o,attrs:i,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,a?i:i&&i.parent,n,t,r,o);return null===e.firstChild&&(e.firstChild=d),null!==i&&(a?null==i.child&&null!==d.parent&&(i.child=d):null===i.next&&(i.next=d,d.prev=i)),d}(e,t,n,r,o),function Dv(){return X.lFrame.inI18n}()&&(i.flags|=32);else if(64&i.type){i.type=n,i.value=r,i.attrs=o;const a=function Gs(){const e=X.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}();i.injectorIndex=null===a?-1:a.injectorIndex}return Fn(i,!0),i}function _i(e,t,n,r){if(0===n)return-1;const o=t.length;for(let i=0;ipe&&dg(e,t,pe,!1),On(u?2:0,o),u)i.runInContext(n,r,o);else{const f=ct(null);try{n(r,o)}finally{ct(f)}}}finally{u&&null===t[ea]&&ug(t,ea),zr(a),On(u?3:1,o)}}function Mu(e,t,n){if(sl(t)){const r=ct(null);try{const i=t.directiveEnd;for(let a=t.directiveStart;anull;function gg(e,t,n,r){for(let o in e)if(e.hasOwnProperty(o)){n=null===n?{}:n;const i=e[o];null===r?hg(n,t,o,i):r.hasOwnProperty(o)&&hg(n,t,r[o],i)}return n}function hg(e,t,n,r){e.hasOwnProperty(n)?e[n].push(t,r):e[n]=[t,r]}function en(e,t,n,r,o,i,a,u){const d=Bt(t,n);let g,f=t.inputs;!u&&null!=f&&(g=f[r])?(Ou(e,n,g,r,o),Ur(t)&&function yE(e,t){const n=Qt(t,e);16&n[se]||(n[se]|=64)}(n,t.index)):3&t.type&&(r=function wE(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(r),o=null!=a?a(o,t.value||"",r):o,i.setProperty(d,r,o))}function Nu(e,t,n,r){if(cf()){const o=null===r?null:{"":-1},i=function IE(e,t){const n=e.directiveRegistry;let r=null,o=null;if(n)for(let i=0;i0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(a)!=u&&a.push(u),a.push(n,r,i)}}(e,t,r,_i(e,n,o.hostVars,ie),o)}function NE(e,t,n,r,o,i){const a=i[t];if(null!==a)for(let u=0;u{var e;class t{constructor(){this.all=new Set,this.queue=new Map}create(r,o,i){const a=typeof Zone>"u"?null:Zone.current,u=new ev(r,g=>{this.all.has(g)&&this.queue.set(g,a)},i);let d;this.all.add(u),u.notify();const f=()=>{u.cleanup(),d?.(),this.all.delete(u),this.queue.delete(u)};return d=o?.onDestroy(f),{destroy:f}}flush(){if(0!==this.queue.size)for(const[r,o]of this.queue)this.queue.delete(r),o?o.run(()=>r.run()):r.run()}get isQueueEmpty(){return 0===this.queue.size}}return(e=t).\u0275prov=De({token:e,providedIn:"root",factory:()=>new e}),t})();function Za(e,t,n){let r=n?e.styles:null,o=n?e.classes:null,i=0;if(null!==t)for(let a=0;a0){kg(e,1);const o=e[q].components;null!==o&&Ag(e,o,1)}}function Ag(e,t,n){for(let r=0;r-1&&(Ma(t,r),ma(n,r))}this._attachedToViewContainer=!1}$l(this._lView[q],this._lView)}onDestroy(t){!function sf(e,t){if(256==(256&e[se]))throw new U(911,!1);null===e[yr]&&(e[yr]=[]),e[yr].push(t)}(this._lView,t)}markForCheck(){di(this._cdRefInjectingView||this._lView)}detach(){this._lView[se]&=-129}reattach(){this._lView[se]|=128}detectChanges(){Ka(this._lView[q],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new U(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function FD(e,t){oi(e,t,t[re],2,null,null)}(this._lView[q],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new U(902,!1);this._appRef=t}}class VE extends pi{constructor(t){super(t),this._view=t}detectChanges(){const t=this._view;Ka(t[q],t,t[Ze],!1)}checkNoChanges(){}get context(){return null}}class Ng extends qa{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const n=ye(t);return new gi(n,this.ngModule)}}function xg(e){const t=[];for(let n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}class $E{constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){r=Ki(r);const o=this.injector.get(t,vu,r);return o!==vu||n===vu?o:this.parentInjector.get(t,n,r)}}class gi extends qp{get inputs(){const t=this.componentDef,n=t.inputTransforms,r=xg(t.inputs);if(null!==n)for(const o of r)n.hasOwnProperty(o.propName)&&(o.transform=n[o.propName]);return r}get outputs(){return xg(this.componentDef.outputs)}constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=function Ob(e){return e.map(Pb).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!n}create(t,n,r,o){let i=(o=o||this.ngModule)instanceof jn?o:o?.injector;i&&null!==this.componentDef.getStandaloneInjector&&(i=this.componentDef.getStandaloneInjector(i)||i);const a=i?new $E(t,i):t,u=a.get(Gp,null);if(null===u)throw new U(407,!1);const h={rendererFactory:u,sanitizer:a.get(z0,null),effectManager:a.get(Sg,null),afterRenderEventManager:a.get(Cu,null)},y=u.createRenderer(null,this.componentDef),b=this.componentDef.selectors[0][0]||"div",I=r?function dE(e,t,n,r){const i=r.get(rg,!1)||n===hn.ShadowDom,a=e.selectRootElement(t,i);return function _E(e){pg(e)}(a),a}(y,r,this.componentDef.encapsulation,a):Sa(y,b,function BE(e){const t=e.toLowerCase();return"svg"===t?Q_:"math"===t?"math":null}(b)),L=this.componentDef.signals?4608:this.componentDef.onPush?576:528;let A=null;null!==I&&(A=mu(I,a,!0));const W=Au(0,null,null,1,0,null,null,null,null,null,null),z=Wa(null,W,null,L,null,null,h,y,a,null,A);let ce,pt;ml(z);try{const nn=this.componentDef;let so,Hc=null;nn.findHostDirectiveDefs?(so=[],Hc=new Map,nn.findHostDirectiveDefs(nn,so,Hc),so.push(nn)):so=[nn];const Yx=function qE(e,t){const n=e[q],r=pe;return e[r]=t,Qo(n,r,2,"#host",null)}(z,I),Qx=function zE(e,t,n,r,o,i,a){const u=o[q];!function GE(e,t,n,r){for(const o of e)t.mergedAttrs=Hs(t.mergedAttrs,o.hostAttrs);null!==t.mergedAttrs&&(Za(t,t.mergedAttrs,!0),null!==n&&mp(r,n,t))}(r,e,t,a);let d=null;null!==t&&(d=mu(t,o[wr]));const f=i.rendererFactory.createRenderer(t,n);let g=16;n.signals?g=4096:n.onPush&&(g=64);const h=Wa(o,fg(n),null,g,o[e.index],e,i,f,null,null,d);return u.firstCreatePass&&xu(u,e,r.length-1),Ja(o,h),o[e.index]=h}(Yx,I,nn,so,z,h,y);pt=ef(W,pe),I&&function JE(e,t,n,r){if(r)nl(e,n,["ng-version",G0.full]);else{const{attrs:o,classes:i}=function Fb(e){const t=[],n=[];let r=1,o=2;for(;r0&&hp(e,n,i.join(" "))}}(y,nn,I,r),void 0!==n&&function ZE(e,t,n){const r=e.projection=[];for(let o=0;o(vr(!0),Sa(r,o,function yf(){return X.lFrame.currentNamespace}()));function cs(e,t,n){const r=F(),o=be(),i=e+pe,a=o.firstCreatePass?function R1(e,t,n,r,o){const i=t.consts,a=br(i,r),u=Qo(t,e,8,"ng-container",a);return null!==a&&Za(u,a,!0),Nu(t,n,u,br(i,o)),null!==t.queries&&t.queries.elementStart(t,u),u}(i,o,r,t,n):o.data[i];Fn(a,!0);const u=th(o,r,a,e);return r[i]=u,la()&&Ta(o,r,u,a),Et(u,r),ra(a)&&(ku(o,r,a),Mu(o,a,r)),null!=n&&Tu(r,a),cs}function ls(){let e=ft();const t=be();return _l()?fl():(e=e.parent,Fn(e,!1)),t.firstCreatePass&&(ua(t,e),sl(e)&&t.queries.elementEnd(e)),ls}let th=(e,t,n,r)=>(vr(!0),Bl(t[re],""));function Nt(){return F()}function qu(e){return!!e&&"function"==typeof e.then}function nh(e){return!!e&&"function"==typeof e.subscribe}function Ie(e,t,n,r){const o=F(),i=be(),a=ft();return function oh(e,t,n,r,o,i,a){const u=ra(r),f=e.firstCreatePass&&Eg(e),g=t[Ze],h=Dg(t);let y=!0;if(3&r.type||a){const T=Bt(r,t),x=a?a(T):T,L=h.length,A=a?z=>a(je(z[r.index])):r.index;let W=null;if(!a&&u&&(W=function F1(e,t,n,r){const o=e.cleanup;if(null!=o)for(let i=0;id?u[d]:null}"string"==typeof a&&(i+=2)}return null}(e,t,o,r.index)),null!==W)(W.__ngLastListenerFn__||W).__ngNextListenerFn__=i,W.__ngLastListenerFn__=i,y=!1;else{i=ih(r,t,g,i,!1);const z=n.listen(x,o,i);h.push(i,z),f&&f.push(o,A,L,L+1)}}else i=ih(r,t,g,i,!1);const b=r.outputs;let I;if(y&&null!==b&&(I=b[o])){const T=I.length;if(T)for(let x=0;x-1?Qt(e.index,t):t);let d=sh(t,n,r,a),f=i.__ngNextListenerFn__;for(;f;)d=sh(t,n,f,a)&&d,f=f.__ngNextListenerFn__;return o&&!1===d&&a.preventDefault(),d}}function J(e=1){return function Sv(e){return(X.lFrame.contextLView=function Mv(e,t){for(;e>0;)t=t[Mo],e--;return t}(e,X.lFrame.contextLView))[Ze]}(e)}function rc(e,t,n,r,o){const i=F(),a=es(i,t,n,r);return a!==ie&&en(be(),Ge(),i,e,a,i[re],o,!1),rc}function $(e,t=""){const n=F(),r=be(),o=e+pe,i=r.firstCreatePass?Qo(r,o,1,t,null):r.data[o],a=Nh(r,n,i,t,e);n[o]=a,la()&&Ta(r,n,a,i),Fn(i,!1)}let Nh=(e,t,n,r,o)=>(vr(!0),function Ia(e,t){return e.createText(t)}(t[re],r));function eo(e){return st("",e,""),eo}function st(e,t,n){const r=F(),o=es(r,e,t,n);return o!==ie&&tr(r,Tt(),o),st}function ic(e,t,n,r,o){const i=F(),a=ts(i,e,t,n,r,o);return a!==ie&&tr(i,Tt(),a),ic}const _s="en-US";let Qh=_s;function Yu(e,t,n,r,o){if(e=K(e),Array.isArray(e))for(let i=0;i>20;if(Jr(e)||!e.multi){const b=new Js(f,o,te),I=Xu(d,t,o?g:g+y,h);-1===I?(Il(pa(u,a),i,d),Qu(i,e,t.length),t.push(d),u.directiveStart++,u.directiveEnd++,o&&(u.providerIndexes+=1048576),n.push(b),a.push(b)):(n[I]=b,a[I]=b)}else{const b=Xu(d,t,g+y,h),I=Xu(d,t,g,g+y),x=I>=0&&n[I];if(o&&!x||!o&&!(b>=0&&n[b])){Il(pa(u,a),i,d);const L=function kI(e,t,n,r,o){const i=new Js(e,n,te);return i.multi=[],i.index=t,i.componentProviders=0,Em(i,o,r&&!n),i}(o?MI:SI,n.length,o,r,f);!o&&x&&(n[I].providerFactory=L),Qu(i,e,t.length,0),t.push(d),u.directiveStart++,u.directiveEnd++,o&&(u.providerIndexes+=1048576),n.push(L),a.push(L)}else Qu(i,e,b>-1?b:I,Em(n[o?I:b],f,!o&&r));!o&&r&&x&&n[I].componentProviders++}}}function Qu(e,t,n,r){const o=Jr(t),i=function D0(e){return!!e.useClass}(t);if(o||i){const d=(i?K(t.useClass):t).prototype.ngOnDestroy;if(d){const f=e.destroyHooks||(e.destroyHooks=[]);if(!o&&t.multi){const g=f.indexOf(n);-1===g?f.push(n,[r,d]):f[g+1].push(r,d)}else f.push(n,d)}}}function Em(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Xu(e,t,n,r){for(let o=n;o{n.providersResolver=(r,o)=>function II(e,t,n){const r=be();if(r.firstCreatePass){const o=yn(e);Yu(n,r.data,r.blueprint,o,!0),Yu(t,r.data,r.blueprint,o,!1)}}(r,o?o(e):e,t)}}class no{}class Im extends no{constructor(t){super(),this.componentFactoryResolver=new Ng(this),this.instance=null;const n=new ja([...t.providers,{provide:no,useValue:this},{provide:qa,useValue:this.componentFactoryResolver}],t.parent||La(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}}let RI=(()=>{var e;class t{constructor(r){this._injector=r,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(r){if(!r.standalone)return null;if(!this.cachedInjectors.has(r)){const o=Rp(0,r.type),i=o.length>0?function xI(e,t,n=null){return new Im({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}([o],this._injector,`Standalone[${r.type.name}]`):null;this.cachedInjectors.set(r,i)}return this.cachedInjectors.get(r)}ngOnDestroy(){try{for(const r of this.cachedInjectors.values())null!==r&&r.destroy()}finally{this.cachedInjectors.clear()}}}return(e=t).\u0275prov=De({token:e,providedIn:"environment",factory:()=>new e(ae(jn))}),t})();function rd(e){e.getStandaloneInjector=t=>t.get(RI).getOrCreateStandaloneInjector(e)}function lt(e,t,n){const r=function kt(){const e=X.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}()+e,o=F();return o[r]===ie?function Bn(e,t,n){return e[t]=n}(o,r,n?t.call(n):t()):function hi(e,t){return e[t]}(o,r)}function sd(e){return t=>{setTimeout(e,void 0,t)}}const nr=class oS extends Qe{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,n,r){let o=t,i=n||(()=>null),a=r;if(t&&"object"==typeof t){const d=t;o=d.next?.bind(d),i=d.error?.bind(d),a=d.complete?.bind(d)}this.__isAsync&&(i=sd(i),o&&(o=sd(o)),a&&(a=sd(a)));const u=super.subscribe({next:o,error:i,complete:a});return t instanceof Fe&&t.add(u),u}};function sS(){return this._results[Symbol.iterator]()}class id{get changes(){return this._changes||(this._changes=new nr)}constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const n=id.prototype;n[Symbol.iterator]||(n[Symbol.iterator]=sS)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,n){return this._results.reduce(t,n)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,n){const r=this;r.dirty=!1;const o=function cn(e){return e.flat(Number.POSITIVE_INFINITY)}(t);(this._changesDetected=!function Zv(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r0&&(n[o-1][wn]=t),r{class t{}return t.__NG_ELEMENT_ID__=uS,t})();const cS=rr,lS=class extends cS{constructor(t,n,r){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=r}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(t,n){return this.createEmbeddedViewImpl(t,n)}createEmbeddedViewImpl(t,n,r){const o=function iS(e,t,n,r){const o=t.tView,u=Wa(e,o,n,4096&e[se]?4096:16,null,t,null,null,null,r?.injector??null,r?.hydrationInfo??null);u[Us]=e[t.index];const f=e[xn];return null!==f&&(u[xn]=f.createEmbeddedView(o)),Fu(o,u,n),u}(this._declarationLView,this._declarationTContainer,t,{injector:n,hydrationInfo:r});return new pi(o)}};function uS(){return dc(ft(),F())}function dc(e,t){return 4&e.type?new lS(t,e,Zo(e,t)):null}let qn=(()=>{class t{}return t.__NG_ELEMENT_ID__=hS,t})();function hS(){return Um(ft(),F())}const mS=qn,Bm=class extends mS{constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return Zo(this._hostTNode,this._hostLView)}get injector(){return new At(this._hostTNode,this._hostLView)}get parentInjector(){const t=ga(this._hostTNode,this._hostLView);if(Dl(t)){const n=Ks(t,this._hostLView),r=Zs(t);return new At(n[q].data[r+8],n)}return new At(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const n=$m(this._lContainer);return null!==n&&n[t]||null}get length(){return this._lContainer.length-_t}createEmbeddedView(t,n,r){let o,i;"number"==typeof r?o=r:null!=r&&(o=r.index,i=r.injector);const u=t.createEmbeddedViewImpl(n||{},i,null);return this.insertImpl(u,o,false),u}createComponent(t,n,r,o,i){const a=t&&!function Qs(e){return"function"==typeof e}(t);let u;if(a)u=n;else{const T=n||{};u=T.index,r=T.injector,o=T.projectableNodes,i=T.environmentInjector||T.ngModuleRef}const d=a?t:new gi(ye(t)),f=r||this.parentInjector;if(!i&&null==d.ngModule){const x=(a?f:this.parentInjector).get(jn,null);x&&(i=x)}ye(d.componentType??{});const b=d.create(f,o,null,i);return this.insertImpl(b.hostView,u,false),b}insert(t,n){return this.insertImpl(t,n,!1)}insertImpl(t,n,r){const o=t._lView;if(function uv(e){return Vt(e[qe])}(o)){const d=this.indexOf(t);if(-1!==d)this.detach(d);else{const f=o[qe],g=new Bm(f,f[bt],f[qe]);g.detach(g.indexOf(t))}}const a=this._adjustIndex(n),u=this._lContainer;return aS(u,o,a,!r),t.attachToViewContainerRef(),Pf(ad(u),a,t),t}move(t,n){return this.insert(t,n)}indexOf(t){const n=$m(this._lContainer);return null!==n?n.indexOf(t):-1}remove(t){const n=this._adjustIndex(t,-1),r=Ma(this._lContainer,n);r&&(ma(ad(this._lContainer),n),$l(r[q],r))}detach(t){const n=this._adjustIndex(t,-1),r=Ma(this._lContainer,n);return r&&null!=ma(ad(this._lContainer),n)?new pi(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function $m(e){return e[8]}function ad(e){return e[8]||(e[8]=[])}function Um(e,t){let n;const r=t[e.index];return Vt(r)?n=r:(n=bg(r,t,null,e),t[e.index]=n,Ja(t,n)),qm(n,t,e,r),new Bm(n,e,t)}let qm=function zm(e,t,n,r){if(e[Rn])return;let o;o=8&n.type?je(r):function wS(e,t){const n=e[re],r=n.createComment(""),o=Bt(t,e);return Wr(n,ka(n,o),r,function UD(e,t){return e.nextSibling(t)}(n,o),!1),r}(t,n),e[Rn]=o};class cd{constructor(t){this.queryList=t,this.matches=null}clone(){return new cd(this.queryList)}setDirty(){this.queryList.setDirty()}}class ld{constructor(t=[]){this.queries=t}createEmbeddedView(t){const n=t.queries;if(null!==n){const r=null!==t.contentQueries?t.contentQueries[0]:n.length,o=[];for(let i=0;i0)r.push(a[u/2]);else{const f=i[u+1],g=t[-d];for(let h=_t;h{var e;class t{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((r,o)=>{this.resolve=r,this.reject=o}),this.appInits=Ee(pw,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const r=[];for(const i of this.appInits){const a=i();if(qu(a))r.push(a);else if(nh(a)){const u=new Promise((d,f)=>{a.subscribe({complete:d,error:f})});r.push(u)}}const o=()=>{this.done=!0,this.resolve()};Promise.all(r).then(()=>{o()}).catch(i=>{this.reject(i)}),0===r.length&&o(),this.initialized=!0}}return(e=t).\u0275fac=function(r){return new(r||e)},e.\u0275prov=De({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();const or=new G("LocaleId",{providedIn:"root",factory:()=>Ee(or,me.Optional|me.SkipSelf)||function KS(){return typeof $localize<"u"&&$localize.locale||_s}()});let md=(()=>{var e;class t{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new vs(!1)}add(){this.hasPendingTasks.next(!0);const r=this.taskId++;return this.pendingTasks.add(r),r}remove(r){this.pendingTasks.delete(r),0===this.pendingTasks.size&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks.next(!1)}}return(e=t).\u0275fac=function(r){return new(r||e)},e.\u0275prov=De({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();function ww(...e){}class Xe{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new nr(!1),this.onMicrotaskEmpty=new nr(!1),this.onStable=new nr(!1),this.onError=new nr(!1),typeof Zone>"u")throw new U(908,!1);Zone.assertZonePatched();const o=this;o._nesting=0,o._outer=o._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!r&&n,o.shouldCoalesceRunChangeDetection=r,o.lastRequestAnimationFrameId=-1,o.nativeRequestAnimationFrame=function yM(){const e="function"==typeof Pe.requestAnimationFrame;let t=Pe[e?"requestAnimationFrame":"setTimeout"],n=Pe[e?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&t&&n){const r=t[Zone.__symbol__("OriginalDelegate")];r&&(t=r);const o=n[Zone.__symbol__("OriginalDelegate")];o&&(n=o)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:n}}().nativeRequestAnimationFrame,function DM(e){const t=()=>{!function vM(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(Pe,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,vd(e),e.isCheckStableRunning=!0,bd(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),vd(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,o,i,a,u)=>{try{return yw(e),n.invokeTask(o,i,a,u)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===i.type||e.shouldCoalesceRunChangeDetection)&&t(),bw(e)}},onInvoke:(n,r,o,i,a,u,d)=>{try{return yw(e),n.invoke(o,i,a,u,d)}finally{e.shouldCoalesceRunChangeDetection&&t(),bw(e)}},onHasTask:(n,r,o,i)=>{n.hasTask(o,i),r===o&&("microTask"==i.change?(e._hasPendingMicrotasks=i.microTask,vd(e),bd(e)):"macroTask"==i.change&&(e.hasPendingMacrotasks=i.macroTask))},onHandleError:(n,r,o,i)=>(n.handleError(o,i),e.runOutsideAngular(()=>e.onError.emit(i)),!1)})}(o)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Xe.isInAngularZone())throw new U(909,!1)}static assertNotInAngularZone(){if(Xe.isInAngularZone())throw new U(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,o){const i=this._inner,a=i.scheduleEventTask("NgZoneEvent: "+o,t,bM,ww,ww);try{return i.runTask(a,n,r)}finally{i.cancelTask(a)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}}const bM={};function bd(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function vd(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function yw(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function bw(e){e._nesting--,bd(e)}const vw=new G("",{providedIn:"root",factory:Dw});function Dw(){const e=Ee(Xe);let t=!0;return function Ne(...e){const t=qi(e),n=function v(e,t){return"number"==typeof vo(e)?e.pop():t}(e,1/0),r=e;return r.length?1===r.length?It(r[0]):function Ps(e=1/0){return bo(bs,e)}(n)(oe(r,t)):Os}(new mt(o=>{t=e.isStable&&!e.hasPendingMacrotasks&&!e.hasPendingMicrotasks,e.runOutsideAngular(()=>{o.next(t),o.complete()})}),new mt(o=>{let i;e.runOutsideAngular(()=>{i=e.onStable.subscribe(()=>{Xe.assertNotInAngularZone(),queueMicrotask(()=>{!t&&!e.hasPendingMacrotasks&&!e.hasPendingMicrotasks&&(t=!0,o.next(!0))})})});const a=e.onUnstable.subscribe(()=>{Xe.assertInAngularZone(),t&&(t=!1,e.runOutsideAngular(()=>{o.next(!1)}))});return()=>{i.unsubscribe(),a.unsubscribe()}}).pipe(Re()))}const Ew=new G("");let Ir=null;const Id=new G("PlatformDestroyListeners"),Iw=new G("appBootstrapListener");function TM(e){try{const{rootComponent:t,appProviders:n,platformProviders:r}=e,o=function kM(e=[]){if(Ir)return Ir;const t=function kw(e=[],t){return Hn.create({name:t,providers:[{provide:iu,useValue:"platform"},{provide:Id,useValue:new Set([()=>Ir=null])},...e]})}(e);return Ir=t,function Sw(){!function Qb(e){G_=e}(()=>{throw new U(600,!1)})}(),function Mw(e){e.get(jp,null)?.forEach(n=>n())}(t),t}(r),i=[PM(),...n||[]],u=new Im({providers:i,parent:o,debugName:"",runEnvironmentInitializers:!1}).injector,d=u.get(Xe);return d.run(()=>{u.resolveInjectorInitializers();const f=u.get(Yr,null);let g;d.runOutsideAngular(()=>{g=d.onError.subscribe({next:b=>{f.handleError(b)}})});const h=()=>u.destroy(),y=o.get(Id);return y.add(h),u.onDestroy(()=>{g.unsubscribe(),y.delete(h)}),function Nw(e,t,n){try{const r=n();return qu(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e.handleError(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}(f,d,()=>{const b=u.get(pc);return b.runInitializers(),b.donePromise.then(()=>{!function Xh(e){sn(e,"Expected localeId to be defined"),"string"==typeof e&&(Qh=e.toLowerCase().replace(/_/g,"-"))}(u.get(or,_s)||_s);const T=u.get(Ai);return void 0!==t&&T.bootstrap(t),T})})})}catch(t){return Promise.reject(t)}}let Ai=(()=>{var e;class t{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=Ee(Pw),this.zoneIsStable=Ee(vw),this.componentTypes=[],this.components=[],this.isStable=Ee(md).hasPendingTasks.pipe(yt(r=>r?Ue(!1):this.zoneIsStable),function St(e,t=bs){return e=e??Zt,he((n,r)=>{let o,i=!0;n.subscribe(nt(r,a=>{const u=t(a);(i||!e(o,u))&&(i=!1,o=u,r.next(a))}))})}(),Re()),this._injector=Ee(jn)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(r,o){const i=r instanceof qp;if(!this._injector.get(pc).done)throw!i&&function Vs(e){const t=ye(e)||dt(e)||Mt(e);return null!==t&&t.standalone}(r),new U(405,!1);let u;u=i?r:this._injector.get(qa).resolveComponentFactory(r),this.componentTypes.push(u.componentType);const d=function SM(e){return e.isBoundToModule}(u)?void 0:this._injector.get(no),g=u.create(Hn.NULL,[],o||u.selector,d),h=g.location.nativeElement,y=g.injector.get(Ew,null);return y?.registerApplication(h),g.onDestroy(()=>{this.detachView(g.hostView),mc(this.components,g),y?.unregisterApplication(h)}),this._loadComponent(g),g}tick(){if(this._runningTick)throw new U(101,!1);try{this._runningTick=!0;for(let r of this._views)r.detectChanges()}catch(r){this.internalErrorHandler(r)}finally{this._runningTick=!1}}attachView(r){const o=r;this._views.push(o),o.attachToAppRef(this)}detachView(r){const o=r;mc(this._views,o),o.detachFromAppRef()}_loadComponent(r){this.attachView(r.hostView),this.tick(),this.components.push(r);const o=this._injector.get(Iw,[]);o.push(...this._bootstrapListeners),o.forEach(i=>i(r))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(r=>r()),this._views.slice().forEach(r=>r.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(r){return this._destroyListeners.push(r),()=>mc(this._destroyListeners,r)}destroy(){if(this._destroyed)throw new U(406,!1);const r=this._injector;r.destroy&&!r.destroyed&&r.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return(e=t).\u0275fac=function(r){return new(r||e)},e.\u0275prov=De({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();function mc(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Pw=new G("",{providedIn:"root",factory:()=>Ee(Yr).handleError.bind(void 0)});function xM(){const e=Ee(Xe),t=Ee(Yr);return n=>e.runOutsideAngular(()=>t.handleError(n))}let RM=(()=>{var e;class t{constructor(){this.zone=Ee(Xe),this.applicationRef=Ee(Ai)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}}return(e=t).\u0275fac=function(r){return new(r||e)},e.\u0275prov=De({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();function Ow(e){return[{provide:Xe,useFactory:e},{provide:Pa,multi:!0,useFactory:()=>{const t=Ee(RM,{optional:!0});return()=>t.initialize()}},{provide:Pw,useFactory:xM},{provide:vw,useFactory:Dw}]}function PM(e){return ru([[],Ow(()=>new Xe(function Aw(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}(e)))])}let Md=(()=>{class t{}return t.__NG_ELEMENT_ID__=OM,t})();function OM(e){return function FM(e,t,n){if(Ur(e)&&!n){const r=Qt(e.index,t);return new pi(r,r)}return 47&e.type?new pi(t[Ke],t):null}(ft(),F(),16==(16&e))}class Hw{constructor(){}supports(t){return Qa(t)}create(t){return new $M(t)}}const BM=(e,t)=>t;class $M{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||BM}forEachItem(t){let n;for(n=this._itHead;null!==n;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,r=this._removalsHead,o=0,i=null;for(;n||r;){const a=!r||n&&n.currentIndex{a=this._trackByFn(o,u),null!==n&&Object.is(n.trackById,a)?(r&&(n=this._verifyReinsertion(n,u,a,o)),Object.is(n.item,u)||this._addIdentityChange(n,u)):(n=this._mismatch(n,u,a,o),r=!0),n=n._next,o++}),this.length=o;return this._truncate(n),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,n,r,o){let i;return null===t?i=this._itTail:(i=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,i,o)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(r,o))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,i,o)):t=this._addAfter(new UM(n,r),i,o),t}_verifyReinsertion(t,n,r,o){let i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null);return null!==i?t=this._reinsertAfter(i,t._prev,o):t.currentIndex!=o&&(t.currentIndex=o,this._addToMoves(t,o)),t}_truncate(t){for(;null!==t;){const n=t._next;this._addToRemovals(this._unlink(t)),t=n}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,n,r){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const o=t._prevRemoved,i=t._nextRemoved;return null===o?this._removalsHead=i:o._nextRemoved=i,null===i?this._removalsTail=o:i._prevRemoved=o,this._insertAfter(t,n,r),this._addToMoves(t,r),t}_moveAfter(t,n,r){return this._unlink(t),this._insertAfter(t,n,r),this._addToMoves(t,r),t}_addAfter(t,n,r){return this._insertAfter(t,n,r),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,n,r){const o=null===n?this._itHead:n._next;return t._next=o,t._prev=n,null===o?this._itTail=t:o._prev=t,null===n?this._itHead=t:n._next=t,null===this._linkedRecords&&(this._linkedRecords=new Vw),this._linkedRecords.put(t),t.currentIndex=r,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const n=t._prev,r=t._next;return null===n?this._itHead=r:n._next=r,null===r?this._itTail=n:r._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Vw),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,n){return t.item=n,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class UM{constructor(t,n){this.item=t,this.trackById=n,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class qM{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,n){let r;for(r=this._head;null!==r;r=r._nextDup)if((null===n||n<=r.currentIndex)&&Object.is(r.trackById,t))return r;return null}remove(t){const n=t._prevDup,r=t._nextDup;return null===n?this._head=r:n._nextDup=r,null===r?this._tail=n:r._prevDup=n,null===this._head}}class Vw{constructor(){this.map=new Map}put(t){const n=t.trackById;let r=this.map.get(n);r||(r=new qM,this.map.set(n,r)),r.add(t)}get(t,n){const o=this.map.get(t);return o?o.get(t,n):null}remove(t){const n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Bw(e,t,n){const r=e.previousIndex;if(null===r)return r;let o=0;return n&&r{var e;class t{constructor(r){this.factories=r}static create(r,o){if(null!=o){const i=o.factories.slice();r=r.concat(i)}return new t(r)}static extend(r){return{provide:t,useFactory:o=>t.create(r,o||Uw()),deps:[[t,new xl,new Nl]]}}find(r){const o=this.factories.find(i=>i.supports(r));if(null!=o)return o;throw new U(901,!1)}}return(e=t).\u0275prov=De({token:e,providedIn:"root",factory:Uw}),t})();function Qw(e){return he((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}let Rd=null;function Pd(){return Rd}class lk{}const sr=new G("DocumentToken");function ay(e,t){t=encodeURIComponent(t);for(const n of e.split(";")){const r=n.indexOf("="),[o,i]=-1==r?[n,""]:[n.slice(0,r),n.slice(r+1)];if(o.trim()===t)return decodeURIComponent(i)}return null}class Yk{constructor(t,n,r,o){this.$implicit=t,this.ngForOf=n,this.index=r,this.count=o}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let uy=(()=>{var e;class t{set ngForOf(r){this._ngForOf=r,this._ngForOfDirty=!0}set ngForTrackBy(r){this._trackByFn=r}get ngForTrackBy(){return this._trackByFn}constructor(r,o,i){this._viewContainer=r,this._template=o,this._differs=i,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(r){r&&(this._template=r)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const r=this._ngForOf;!this._differ&&r&&(this._differ=this._differs.find(r).create(this.ngForTrackBy))}if(this._differ){const r=this._differ.diff(this._ngForOf);r&&this._applyChanges(r)}}_applyChanges(r){const o=this._viewContainer;r.forEachOperation((i,a,u)=>{if(null==i.previousIndex)o.createEmbeddedView(this._template,new Yk(i.item,this._ngForOf,-1,-1),null===u?void 0:u);else if(null==u)o.remove(null===a?void 0:a);else if(null!==a){const d=o.get(a);o.move(d,u),dy(d,i)}});for(let i=0,a=o.length;i{dy(o.get(i.currentIndex),i)})}static ngTemplateContextGuard(r,o){return!0}}return(e=t).\u0275fac=function(r){return new(r||e)(te(qn),te(rr),te(bc))},e.\u0275dir=an({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),t})();function dy(e,t){e.context.$implicit=t.item}let zd=(()=>{var e;class t{constructor(r,o){this._viewContainer=r,this._context=new Qk,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=o}set ngIf(r){this._context.$implicit=this._context.ngIf=r,this._updateView()}set ngIfThen(r){_y("ngIfThen",r),this._thenTemplateRef=r,this._thenViewRef=null,this._updateView()}set ngIfElse(r){_y("ngIfElse",r),this._elseTemplateRef=r,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(r,o){return!0}}return(e=t).\u0275fac=function(r){return new(r||e)(te(qn),te(rr))},e.\u0275dir=an({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),t})();class Qk{constructor(){this.$implicit=null,this.ngIf=null}}function _y(e,t){if(t&&!t.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${Le(t)}'.`)}let Pi=(()=>{var e;class t{}return(e=t).\u0275fac=function(r){return new(r||e)},e.\u0275mod=Co({type:e}),e.\u0275inj=$r({}),t})();function hy(e){return"server"===e}class my{}class Pc{}class Oc{}class zn{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?"string"==typeof t?this.lazyInit=()=>{this.headers=new Map,t.split("\n").forEach(n=>{const r=n.indexOf(":");if(r>0){const o=n.slice(0,r),i=o.toLowerCase(),a=n.slice(r+1).trim();this.maybeSetNormalizedName(o,i),this.headers.has(i)?this.headers.get(i).push(a):this.headers.set(i,[a])}})}:typeof Headers<"u"&&t instanceof Headers?(this.headers=new Map,t.forEach((n,r)=>{this.setHeaderEntries(r,n)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(t).forEach(([n,r])=>{this.setHeaderEntries(n,r)})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const n=this.headers.get(t.toLowerCase());return n&&n.length>0?n[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,n){return this.clone({name:t,value:n,op:"a"})}set(t,n){return this.clone({name:t,value:n,op:"s"})}delete(t,n){return this.clone({name:t,value:n,op:"d"})}maybeSetNormalizedName(t,n){this.normalizedNames.has(n)||this.normalizedNames.set(n,t)}init(){this.lazyInit&&(this.lazyInit instanceof zn?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(n=>{this.headers.set(n,t.headers.get(n)),this.normalizedNames.set(n,t.normalizedNames.get(n))})}clone(t){const n=new zn;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof zn?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n}applyUpdate(t){const n=t.name.toLowerCase();switch(t.op){case"a":case"s":let r=t.value;if("string"==typeof r&&(r=[r]),0===r.length)return;this.maybeSetNormalizedName(t.name,n);const o=("a"===t.op?this.headers.get(n):void 0)||[];o.push(...r),this.headers.set(n,o);break;case"d":const i=t.value;if(i){let a=this.headers.get(n);if(!a)return;a=a.filter(u=>-1===i.indexOf(u)),0===a.length?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,a)}else this.headers.delete(n),this.normalizedNames.delete(n)}}setHeaderEntries(t,n){const r=(Array.isArray(n)?n:[n]).map(i=>i.toString()),o=t.toLowerCase();this.headers.set(o,r),this.maybeSetNormalizedName(t,o)}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(n=>t(this.normalizedNames.get(n),this.headers.get(n)))}}class ZT{encodeKey(t){return Dy(t)}encodeValue(t){return Dy(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}const YT=/%(\d[a-f0-9])/gi,QT={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Dy(e){return encodeURIComponent(e).replace(YT,(t,n)=>QT[n]??t)}function Fc(e){return`${e}`}class Sr{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new ZT,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function KT(e,t){const n=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(o=>{const i=o.indexOf("="),[a,u]=-1==i?[t.decodeKey(o),""]:[t.decodeKey(o.slice(0,i)),t.decodeValue(o.slice(i+1))],d=n.get(a)||[];d.push(u),n.set(a,d)}),n}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(n=>{const r=t.fromObject[n],o=Array.isArray(r)?r.map(Fc):[Fc(r)];this.map.set(n,o)})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const n=this.map.get(t);return n?n[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,n){return this.clone({param:t,value:n,op:"a"})}appendAll(t){const n=[];return Object.keys(t).forEach(r=>{const o=t[r];Array.isArray(o)?o.forEach(i=>{n.push({param:r,value:i,op:"a"})}):n.push({param:r,value:o,op:"a"})}),this.clone(n)}set(t,n){return this.clone({param:t,value:n,op:"s"})}delete(t,n){return this.clone({param:t,value:n,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const n=this.encoder.encodeKey(t);return this.map.get(t).map(r=>n+"="+this.encoder.encodeValue(r)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const n=new Sr({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(t),n}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const n=("a"===t.op?this.map.get(t.param):void 0)||[];n.push(Fc(t.value)),this.map.set(t.param,n);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let r=this.map.get(t.param)||[];const o=r.indexOf(Fc(t.value));-1!==o&&r.splice(o,1),r.length>0?this.map.set(t.param,r):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}class XT{constructor(){this.map=new Map}set(t,n){return this.map.set(t,n),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}}function Ey(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function Cy(e){return typeof Blob<"u"&&e instanceof Blob}function Iy(e){return typeof FormData<"u"&&e instanceof FormData}class Fi{constructor(t,n,r,o){let i;if(this.url=n,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function eA(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||o?(this.body=void 0!==r?r:null,i=o):i=r,i&&(this.reportProgress=!!i.reportProgress,this.withCredentials=!!i.withCredentials,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.context&&(this.context=i.context),i.params&&(this.params=i.params)),this.headers||(this.headers=new zn),this.context||(this.context=new XT),this.params){const a=this.params.toString();if(0===a.length)this.urlWithParams=n;else{const u=n.indexOf("?");this.urlWithParams=n+(-1===u?"?":uh.set(y,t.setHeaders[y]),d)),t.setParams&&(f=Object.keys(t.setParams).reduce((h,y)=>h.set(y,t.setParams[y]),f)),new Fi(n,r,i,{params:f,headers:d,context:g,reportProgress:u,responseType:o,withCredentials:a})}}var hs=function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e}(hs||{});class Qd{constructor(t,n=200,r="OK"){this.headers=t.headers||new zn,this.status=void 0!==t.status?t.status:n,this.statusText=t.statusText||r,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class Xd extends Qd{constructor(t={}){super(t),this.type=hs.ResponseHeader}clone(t={}){return new Xd({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class ms extends Qd{constructor(t={}){super(t),this.type=hs.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new ms({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class Sy extends Qd{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${t.url||"(unknown url)"}`:`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}}function e_(e,t){return{body:t,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}let nA=(()=>{var e;class t{constructor(r){this.handler=r}request(r,o,i={}){let a;if(r instanceof Fi)a=r;else{let f,g;f=i.headers instanceof zn?i.headers:new zn(i.headers),i.params&&(g=i.params instanceof Sr?i.params:new Sr({fromObject:i.params})),a=new Fi(r,o,void 0!==i.body?i.body:null,{headers:f,context:i.context,params:g,reportProgress:i.reportProgress,responseType:i.responseType||"json",withCredentials:i.withCredentials})}const u=Ue(a).pipe(function ik(e,t){return Se(t)?bo(e,t,1):bo(e,1)}(f=>this.handler.handle(f)));if(r instanceof Fi||"events"===i.observe)return u;const d=u.pipe(function ak(e,t){return he((n,r)=>{let o=0;n.subscribe(nt(r,i=>e.call(t,i,o++)&&r.next(i)))})}(f=>f instanceof ms));switch(i.observe||"body"){case"body":switch(a.responseType){case"arraybuffer":return d.pipe(rn(f=>{if(null!==f.body&&!(f.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return f.body}));case"blob":return d.pipe(rn(f=>{if(null!==f.body&&!(f.body instanceof Blob))throw new Error("Response is not a Blob.");return f.body}));case"text":return d.pipe(rn(f=>{if(null!==f.body&&"string"!=typeof f.body)throw new Error("Response is not a string.");return f.body}));default:return d.pipe(rn(f=>f.body))}case"response":return d;default:throw new Error(`Unreachable: unhandled observe type ${i.observe}}`)}}delete(r,o={}){return this.request("DELETE",r,o)}get(r,o={}){return this.request("GET",r,o)}head(r,o={}){return this.request("HEAD",r,o)}jsonp(r,o){return this.request("JSONP",r,{params:(new Sr).append(o,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(r,o={}){return this.request("OPTIONS",r,o)}patch(r,o,i={}){return this.request("PATCH",r,e_(i,o))}post(r,o,i={}){return this.request("POST",r,e_(i,o))}put(r,o,i={}){return this.request("PUT",r,e_(i,o))}}return(e=t).\u0275fac=function(r){return new(r||e)(ae(Pc))},e.\u0275prov=De({token:e,factory:e.\u0275fac}),t})();function Ty(e,t){return t(e)}function oA(e,t){return(n,r)=>t.intercept(n,{handle:o=>e(o,r)})}const iA=new G(""),Li=new G(""),Ay=new G("");function aA(){let e=null;return(t,n)=>{null===e&&(e=(Ee(iA,{optional:!0})??[]).reduceRight(oA,Ty));const r=Ee(md),o=r.add();return e(t,n).pipe(Qw(()=>r.remove(o)))}}let Ny=(()=>{var e;class t extends Pc{constructor(r,o){super(),this.backend=r,this.injector=o,this.chain=null,this.pendingTasks=Ee(md)}handle(r){if(null===this.chain){const i=Array.from(new Set([...this.injector.get(Li),...this.injector.get(Ay,[])]));this.chain=i.reduceRight((a,u)=>function sA(e,t,n){return(r,o)=>n.runInContext(()=>t(r,i=>e(i,o)))}(a,u,this.injector),Ty)}const o=this.pendingTasks.add();return this.chain(r,i=>this.backend.handle(i)).pipe(Qw(()=>this.pendingTasks.remove(o)))}}return(e=t).\u0275fac=function(r){return new(r||e)(ae(Oc),ae(jn))},e.\u0275prov=De({token:e,factory:e.\u0275fac}),t})();const dA=/^\)\]\}',?\n/;let Ry=(()=>{var e;class t{constructor(r){this.xhrFactory=r}handle(r){if("JSONP"===r.method)throw new U(-2800,!1);const o=this.xhrFactory;return(o.\u0275loadImpl?oe(o.\u0275loadImpl()):Ue(null)).pipe(yt(()=>new mt(a=>{const u=o.build();if(u.open(r.method,r.urlWithParams),r.withCredentials&&(u.withCredentials=!0),r.headers.forEach((x,L)=>u.setRequestHeader(x,L.join(","))),r.headers.has("Accept")||u.setRequestHeader("Accept","application/json, text/plain, */*"),!r.headers.has("Content-Type")){const x=r.detectContentTypeHeader();null!==x&&u.setRequestHeader("Content-Type",x)}if(r.responseType){const x=r.responseType.toLowerCase();u.responseType="json"!==x?x:"text"}const d=r.serializeBody();let f=null;const g=()=>{if(null!==f)return f;const x=u.statusText||"OK",L=new zn(u.getAllResponseHeaders()),A=function _A(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(u)||r.url;return f=new Xd({headers:L,status:u.status,statusText:x,url:A}),f},h=()=>{let{headers:x,status:L,statusText:A,url:W}=g(),z=null;204!==L&&(z=typeof u.response>"u"?u.responseText:u.response),0===L&&(L=z?200:0);let ce=L>=200&&L<300;if("json"===r.responseType&&"string"==typeof z){const pt=z;z=z.replace(dA,"");try{z=""!==z?JSON.parse(z):null}catch(nn){z=pt,ce&&(ce=!1,z={error:nn,text:z})}}ce?(a.next(new ms({body:z,headers:x,status:L,statusText:A,url:W||void 0})),a.complete()):a.error(new Sy({error:z,headers:x,status:L,statusText:A,url:W||void 0}))},y=x=>{const{url:L}=g(),A=new Sy({error:x,status:u.status||0,statusText:u.statusText||"Unknown Error",url:L||void 0});a.error(A)};let b=!1;const I=x=>{b||(a.next(g()),b=!0);let L={type:hs.DownloadProgress,loaded:x.loaded};x.lengthComputable&&(L.total=x.total),"text"===r.responseType&&u.responseText&&(L.partialText=u.responseText),a.next(L)},T=x=>{let L={type:hs.UploadProgress,loaded:x.loaded};x.lengthComputable&&(L.total=x.total),a.next(L)};return u.addEventListener("load",h),u.addEventListener("error",y),u.addEventListener("timeout",y),u.addEventListener("abort",y),r.reportProgress&&(u.addEventListener("progress",I),null!==d&&u.upload&&u.upload.addEventListener("progress",T)),u.send(d),a.next({type:hs.Sent}),()=>{u.removeEventListener("error",y),u.removeEventListener("abort",y),u.removeEventListener("load",h),u.removeEventListener("timeout",y),r.reportProgress&&(u.removeEventListener("progress",I),null!==d&&u.upload&&u.upload.removeEventListener("progress",T)),u.readyState!==u.DONE&&u.abort()}})))}}return(e=t).\u0275fac=function(r){return new(r||e)(ae(my))},e.\u0275prov=De({token:e,factory:e.\u0275fac}),t})();const t_=new G("XSRF_ENABLED"),Py=new G("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),Oy=new G("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class Fy{}let gA=(()=>{var e;class t{constructor(r,o,i){this.doc=r,this.platform=o,this.cookieName=i,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const r=this.doc.cookie||"";return r!==this.lastCookieString&&(this.parseCount++,this.lastToken=ay(r,this.cookieName),this.lastCookieString=r),this.lastToken}}return(e=t).\u0275fac=function(r){return new(r||e)(ae(sr),ae(Zr),ae(Py))},e.\u0275prov=De({token:e,factory:e.\u0275fac}),t})();function hA(e,t){const n=e.url.toLowerCase();if(!Ee(t_)||"GET"===e.method||"HEAD"===e.method||n.startsWith("http://")||n.startsWith("https://"))return t(e);const r=Ee(Fy).getToken(),o=Ee(Oy);return null!=r&&!e.headers.has(o)&&(e=e.clone({headers:e.headers.set(o,r)})),t(e)}var Mr=function(e){return e[e.Interceptors=0]="Interceptors",e[e.LegacyInterceptors=1]="LegacyInterceptors",e[e.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",e[e.NoXsrfProtection=3]="NoXsrfProtection",e[e.JsonpSupport=4]="JsonpSupport",e[e.RequestsMadeViaParent=5]="RequestsMadeViaParent",e[e.Fetch=6]="Fetch",e}(Mr||{});function oo(e,t){return{\u0275kind:e,\u0275providers:t}}function mA(...e){const t=[nA,Ry,Ny,{provide:Pc,useExisting:Ny},{provide:Oc,useExisting:Ry},{provide:Li,useValue:hA,multi:!0},{provide:t_,useValue:!0},{provide:Fy,useClass:gA}];for(const n of e)t.push(...n.\u0275providers);return ru(t)}const Ly=new G("LEGACY_INTERCEPTOR_FN");let yA=(()=>{var e;class t{}return(e=t).\u0275fac=function(r){return new(r||e)},e.\u0275mod=Co({type:e}),e.\u0275inj=$r({providers:[mA(oo(Mr.LegacyInterceptors,[{provide:Ly,useFactory:aA},{provide:Li,useExisting:Ly,multi:!0}]))]}),t})();class IA extends lk{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class n_ extends IA{static makeCurrent(){!function ck(e){Rd||(Rd=e)}(new n_)}onAndCancel(t,n,r){return t.addEventListener(n,r),()=>{t.removeEventListener(n,r)}}dispatchEvent(t,n){t.dispatchEvent(n)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,n){return(n=n||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,n){return"window"===n?window:"document"===n?t:"body"===n?t.body:null}getBaseHref(t){const n=function SA(){return ji=ji||document.querySelector("base"),ji?ji.getAttribute("href"):null}();return null==n?null:function MA(e){jc=jc||document.createElement("a"),jc.setAttribute("href",e);const t=jc.pathname;return"/"===t.charAt(0)?t:`/${t}`}(n)}resetBaseElement(){ji=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return ay(document.cookie,t)}}let jc,ji=null,TA=(()=>{var e;class t{build(){return new XMLHttpRequest}}return(e=t).\u0275fac=function(r){return new(r||e)},e.\u0275prov=De({token:e,factory:e.\u0275fac}),t})();const r_=new G("EventManagerPlugins");let jy=(()=>{var e;class t{constructor(r,o){this._zone=o,this._eventNameToPlugin=new Map,r.forEach(i=>{i.manager=this}),this._plugins=r.slice().reverse()}addEventListener(r,o,i){return this._findPluginFor(o).addEventListener(r,o,i)}getZone(){return this._zone}_findPluginFor(r){let o=this._eventNameToPlugin.get(r);if(o)return o;if(o=this._plugins.find(a=>a.supports(r)),!o)throw new U(5101,!1);return this._eventNameToPlugin.set(r,o),o}}return(e=t).\u0275fac=function(r){return new(r||e)(ae(r_),ae(Xe))},e.\u0275prov=De({token:e,factory:e.\u0275fac}),t})();class Hy{constructor(t){this._doc=t}}const o_="ng-app-id";let Vy=(()=>{var e;class t{constructor(r,o,i,a={}){this.doc=r,this.appId=o,this.nonce=i,this.platformId=a,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=hy(a),this.resetHostNodes()}addStyles(r){for(const o of r)1===this.changeUsageCount(o,1)&&this.onStyleAdded(o)}removeStyles(r){for(const o of r)this.changeUsageCount(o,-1)<=0&&this.onStyleRemoved(o)}ngOnDestroy(){const r=this.styleNodesInDOM;r&&(r.forEach(o=>o.remove()),r.clear());for(const o of this.getAllStyles())this.onStyleRemoved(o);this.resetHostNodes()}addHost(r){this.hostNodes.add(r);for(const o of this.getAllStyles())this.addStyleToHost(r,o)}removeHost(r){this.hostNodes.delete(r)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(r){for(const o of this.hostNodes)this.addStyleToHost(o,r)}onStyleRemoved(r){const o=this.styleRef;o.get(r)?.elements?.forEach(i=>i.remove()),o.delete(r)}collectServerRenderedStyles(){const r=this.doc.head?.querySelectorAll(`style[${o_}="${this.appId}"]`);if(r?.length){const o=new Map;return r.forEach(i=>{null!=i.textContent&&o.set(i.textContent,i)}),o}return null}changeUsageCount(r,o){const i=this.styleRef;if(i.has(r)){const a=i.get(r);return a.usage+=o,a.usage}return i.set(r,{usage:o,elements:[]}),o}getStyleElement(r,o){const i=this.styleNodesInDOM,a=i?.get(o);if(a?.parentNode===r)return i.delete(o),a.removeAttribute(o_),a;{const u=this.doc.createElement("style");return this.nonce&&u.setAttribute("nonce",this.nonce),u.textContent=o,this.platformIsServer&&u.setAttribute(o_,this.appId),u}}addStyleToHost(r,o){const i=this.getStyleElement(r,o);r.appendChild(i);const a=this.styleRef,u=a.get(o)?.elements;u?u.push(i):a.set(o,{elements:[i],usage:1})}resetHostNodes(){const r=this.hostNodes;r.clear(),r.add(this.doc.head)}}return(e=t).\u0275fac=function(r){return new(r||e)(ae(sr),ae(uu),ae(Hp,8),ae(Zr))},e.\u0275prov=De({token:e,factory:e.\u0275fac}),t})();const s_={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},i_=/%COMP%/g,RA=new G("RemoveStylesOnCompDestroy",{providedIn:"root",factory:()=>!1});function $y(e,t){return t.map(n=>n.replace(i_,e))}let Uy=(()=>{var e;class t{constructor(r,o,i,a,u,d,f,g=null){this.eventManager=r,this.sharedStylesHost=o,this.appId=i,this.removeStylesOnCompDestroy=a,this.doc=u,this.platformId=d,this.ngZone=f,this.nonce=g,this.rendererByCompId=new Map,this.platformIsServer=hy(d),this.defaultRenderer=new a_(r,u,f,this.platformIsServer)}createRenderer(r,o){if(!r||!o)return this.defaultRenderer;this.platformIsServer&&o.encapsulation===hn.ShadowDom&&(o={...o,encapsulation:hn.Emulated});const i=this.getOrCreateRenderer(r,o);return i instanceof zy?i.applyToHost(r):i instanceof c_&&i.applyStyles(),i}getOrCreateRenderer(r,o){const i=this.rendererByCompId;let a=i.get(o.id);if(!a){const u=this.doc,d=this.ngZone,f=this.eventManager,g=this.sharedStylesHost,h=this.removeStylesOnCompDestroy,y=this.platformIsServer;switch(o.encapsulation){case hn.Emulated:a=new zy(f,g,o,this.appId,h,u,d,y);break;case hn.ShadowDom:return new LA(f,g,r,o,u,d,this.nonce,y);default:a=new c_(f,g,o,h,u,d,y)}i.set(o.id,a)}return a}ngOnDestroy(){this.rendererByCompId.clear()}}return(e=t).\u0275fac=function(r){return new(r||e)(ae(jy),ae(Vy),ae(uu),ae(RA),ae(sr),ae(Zr),ae(Xe),ae(Hp))},e.\u0275prov=De({token:e,factory:e.\u0275fac}),t})();class a_{constructor(t,n,r,o){this.eventManager=t,this.doc=n,this.ngZone=r,this.platformIsServer=o,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(t,n){return n?this.doc.createElementNS(s_[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){(qy(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){t&&(qy(t)?t.content:t).insertBefore(n,r)}removeChild(t,n){t&&t.removeChild(n)}selectRootElement(t,n){let r="string"==typeof t?this.doc.querySelector(t):t;if(!r)throw new U(-5104,!1);return n||(r.textContent=""),r}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,n,r,o){if(o){n=o+":"+n;const i=s_[o];i?t.setAttributeNS(i,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){const o=s_[r];o?t.removeAttributeNS(o,n):t.removeAttribute(`${r}:${n}`)}else t.removeAttribute(n)}addClass(t,n){t.classList.add(n)}removeClass(t,n){t.classList.remove(n)}setStyle(t,n,r,o){o&(Dr.DashCase|Dr.Important)?t.style.setProperty(n,r,o&Dr.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r&Dr.DashCase?t.style.removeProperty(n):t.style[n]=""}setProperty(t,n,r){t[n]=r}setValue(t,n){t.nodeValue=n}listen(t,n,r){if("string"==typeof t&&!(t=Pd().getGlobalEventTarget(this.doc,t)))throw new Error(`Unsupported event target ${t} for event ${n}`);return this.eventManager.addEventListener(t,n,this.decoratePreventDefault(r))}decoratePreventDefault(t){return n=>{if("__ngUnwrap__"===n)return t;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>t(n)):t(n))&&n.preventDefault()}}}function qy(e){return"TEMPLATE"===e.tagName&&void 0!==e.content}class LA extends a_{constructor(t,n,r,o,i,a,u,d){super(t,i,a,d),this.sharedStylesHost=n,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const f=$y(o.id,o.styles);for(const g of f){const h=document.createElement("style");u&&h.setAttribute("nonce",u),h.textContent=g,this.shadowRoot.appendChild(h)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,n){return super.appendChild(this.nodeOrShadowRoot(t),n)}insertBefore(t,n,r){return super.insertBefore(this.nodeOrShadowRoot(t),n,r)}removeChild(t,n){return super.removeChild(this.nodeOrShadowRoot(t),n)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class c_ extends a_{constructor(t,n,r,o,i,a,u,d){super(t,i,a,u),this.sharedStylesHost=n,this.removeStylesOnCompDestroy=o,this.styles=d?$y(d,r.styles):r.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class zy extends c_{constructor(t,n,r,o,i,a,u,d){const f=o+"-"+r.id;super(t,n,r,i,a,u,d,f),this.contentAttr=function PA(e){return"_ngcontent-%COMP%".replace(i_,e)}(f),this.hostAttr=function OA(e){return"_nghost-%COMP%".replace(i_,e)}(f)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,n){const r=super.createElement(t,n);return super.setAttribute(r,this.contentAttr,""),r}}const Gy=["alt","control","meta","shift"],HA={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},VA={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};function Wy(e){return{appProviders:[...JA,...e?.providers??[]],platformProviders:GA}}const GA=[{provide:Zr,useValue:"browser"},{provide:jp,useValue:function UA(){n_.makeCurrent()},multi:!0},{provide:sr,useFactory:function zA(){return function YD(e){Zl=e}(document),document},deps:[]}],JA=[{provide:iu,useValue:"root"},{provide:Yr,useFactory:function qA(){return new Yr},deps:[]},{provide:r_,useClass:(()=>{var e;class t extends Hy{constructor(r){super(r)}supports(r){return!0}addEventListener(r,o,i){return r.addEventListener(o,i,!1),()=>this.removeEventListener(r,o,i)}removeEventListener(r,o,i){return r.removeEventListener(o,i)}}return(e=t).\u0275fac=function(r){return new(r||e)(ae(sr))},e.\u0275prov=De({token:e,factory:e.\u0275fac}),t})(),multi:!0,deps:[sr,Xe,Zr]},{provide:r_,useClass:(()=>{var e;class t extends Hy{constructor(r){super(r)}supports(r){return null!=t.parseEventName(r)}addEventListener(r,o,i){const a=t.parseEventName(o),u=t.eventCallback(a.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Pd().onAndCancel(r,a.domEventName,u))}static parseEventName(r){const o=r.toLowerCase().split("."),i=o.shift();if(0===o.length||"keydown"!==i&&"keyup"!==i)return null;const a=t._normalizeKey(o.pop());let u="",d=o.indexOf("code");if(d>-1&&(o.splice(d,1),u="code."),Gy.forEach(g=>{const h=o.indexOf(g);h>-1&&(o.splice(h,1),u+=g+".")}),u+=a,0!=o.length||0===a.length)return null;const f={};return f.domEventName=i,f.fullKey=u,f}static matchEventFullKeyCode(r,o){let i=HA[r.key]||r.key,a="";return o.indexOf("code.")>-1&&(i=r.code,a="code."),!(null==i||!i)&&(i=i.toLowerCase()," "===i?i="space":"."===i&&(i="dot"),Gy.forEach(u=>{u!==i&&(0,VA[u])(r)&&(a+=u+".")}),a+=i,a===o)}static eventCallback(r,o,i){return a=>{t.matchEventFullKeyCode(a,r)&&i.runGuarded(()=>o(a))}}static _normalizeKey(r){return"esc"===r?"escape":r}}return(e=t).\u0275fac=function(r){return new(r||e)(ae(sr))},e.\u0275prov=De({token:e,factory:e.\u0275fac}),t})(),multi:!0,deps:[sr]},Uy,Vy,jy,{provide:Gp,useExisting:Uy},{provide:my,useClass:TA,deps:[]},[]];typeof window<"u"&&window;var ne=it(9671),ge=it(3138);const Yy=new G("SDK"),Qy=new G("wasm_asset_path"),Xy=new G("node_address"),eb=new G("verbosity"),rN=function nN(e,t){const n={value:void 0};return[{provide:pw,useFactory:(r,o,i)=>(0,ne.Z)(function*(){return n.value=yield t({wasm_asset_path:r,node_address:o,verbosity:i})}),multi:!0,deps:[Qy,Xy,eb]},{provide:e,useFactory:()=>{if(!Ee(pc).done)throw new Error(`Cannot inject ${e} until bootstrap is complete.`);return n.value}}]}(Yy,function(){var e=(0,ne.Z)(function*(t){return(yield(0,ge.ZP)(t.wasm_asset_path))&&new ge.Bq(t.node_address,t.verbosity)});return function(n){return e.apply(this,arguments)}}());let u_=(()=>{var e;class t{}return(e=t).\u0275fac=function(r){return new(r||e)},e.\u0275mod=Co({type:e}),e.\u0275inj=$r({providers:rN,imports:[Pi]}),t})();const tb=new G("EnvironmentConfig"),nb=new G("EnvironmentConfig"),d_={wasm_asset_path:"assets/casper_rust_wasm_sdk_bg.wasm",verbosity:"High",minimum_transfer:"2500000000",TTL:"30m",gas_fee_transfer:"100000000",block_identifier_height_default:"1958541",block_identifier_hash:"372e4c83a6ca19c027d3daf4807ad8fc16b9f01411ef39d5e00888128bf4fd59",networks:{localhost:{node_address:"http://localhost:11101",chain_name:"casper-net-1"},integration:{node_address:"https://rpc.integration.casperlabs.io",chain_name:"integration-test"},testnet:{node_address:"https://rpc.testnet.casperlabs.io",chain_name:"casper-test"},mainnet:{node_address:"https://rpc.mainnet.casperlabs.io",chain_name:"casper"},ip:{node_address:"http://3.136.227.9:7777",chain_name:"integration-test"}}},__={production:!0,node_address:"https://rpc.integration.casperlabs.io",chain_name:"integration-test"},rb=new G("highlight");var oN=it(6666),sN=it.n(oN);let ob=(()=>{var e;class t{constructor(r){this.highlightWebworkerFactory=r}highlightMessage(r){var o=this;return(0,ne.Z)(function*(){o.activateWorker();const i=o.hightlightWebworker&&(yield o.hightlightWebworker.postMessage(r).catch(a=>{console.error(a)}));return o.terminateWorker(),i})()}activateWorker(){if(this.webworker)return;const r=this.highlightWebworkerFactory();this.webworker=r[0],this.hightlightWebworker=r[1]}terminateWorker(){this.webworker&&(this.webworker.terminate(),delete this.webworker)}}return(e=t).\u0275fac=function(r){return new(r||e)(ae(rb))},e.\u0275prov=De({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();const iN={provide:rb,useValue:function(){const e=new Worker(it.tu(new URL(it.p+it.u(434),it.b)),{name:"highlight.worker",type:void 0});return[e,new(sN())(e)]}};let aN=(()=>{var e;class t{}return(e=t).\u0275fac=function(r){return new(r||e)},e.\u0275mod=Co({type:e}),e.\u0275inj=$r({providers:[iN,ob],imports:[Pi]}),t})(),f_=(()=>{var e;class t{constructor(r,o){this.highlightService=r,this.document=o,this.result=new Qe,this.window=this.document.defaultView}getResult(){return this.result.asObservable()}setResult(r){var o=this;return(0,ne.Z)(function*(){const i=r,a=yield o.highlightService.highlightMessage(i),u="string"==typeof r;o.result.next({result:u?i:JSON.stringify(i),resultHtml:u?i:a})})()}copyClipboard(r){this.window?.navigator.clipboard.writeText(r).catch(o=>console.error(o))}}return(e=t).\u0275fac=function(r){return new(r||e)(ae(ob),ae(sr))},e.\u0275prov=De({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();const cN=["resultElt"],lN=["codeElt"];function uN(e,t){if(1&e&&(Ws(),yl(),k(0,"div",12,13)(2,"div",14),Me(3,"code",15,16),R()()),2&e){const n=J(2);j(3),V("innerHtml",n.resultHtml,tu)}}function dN(e,t){if(1&e){const n=Nt();k(0,"div",1)(1,"div",2)(2,"span"),Ws(),k(3,"svg",3),Ie("click",function(){vt(n);const o=J();return Dt(o.copy(o.result))}),Me(4,"rect",4)(5,"path",5),R()(),yl(),k(6,"span",6),Ie("click",function(){return vt(n),Dt(J().reset())}),Ws(),k(7,"svg",7),Me(8,"path",8)(9,"path",9)(10,"path",10),R()()(),ee(11,uN,5,1,"div",11),R()}if(2&e){const n=J();j(11),V("ngIf",n.resultHtml)}}let sb=(()=>{var e;class t{constructor(r,o){this.resultService=r,this.changeDetectorRef=o}ngAfterViewInit(){this.getResultSubscription=this.resultService.getResult().subscribe(r=>{this.result=r.result,this.resultHtml=r.resultHtml,this.changeDetectorRef.markForCheck()})}ngOnDestroy(){this.getResultSubscription&&this.getResultSubscription.unsubscribe()}copy(r){this.resultService.copyClipboard((0,ge.vj)(JSON.parse(r),1))}reset(){this.result="",this.resultHtml="",this.resultService.setResult("")}}return(e=t).\u0275fac=function(r){return new(r||e)(te(f_),te(Md))},e.\u0275cmp=rl({type:e,selectors:[["comp-result"]],viewQuery:function(r,o){if(1&r&&(de(cN,5),de(lN,5,Kr)),2&r){let i;ue(i=_e())&&(o.resultElt=i.first),ue(i=_e())&&(o.contentChildren=i.first)}},standalone:!0,features:[rd],decls:1,vars:1,consts:[["class","row",4,"ngIf"],[1,"row"],[1,"col-xs-12","d-flex","flex-row","justify-content-between","mb-2"],["viewBox","0 0 24 24","fill","none","stroke","currentColor","stroke-width","2","stroke-linecap","round","stroke-linejoin","round",1,"shrink-0","ml-2","w-5","min-w-5","text-gray-500","cursor-pointer",3,"click"],["x","9","y","9","width","13","height","13","rx","2","ry","2"],["d","M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"],["e2e-id","clear result",3,"click"],["xmlns","http://www.w3.org/2000/svg","width","16","height","16","fill","currentColor","viewBox","0 0 16 16",1,"bi","bi-journal-x","cursor-pointer"],["fill-rule","evenodd","d","M6.146 6.146a.5.5 0 0 1 .708 0L8 7.293l1.146-1.147a.5.5 0 1 1 .708.708L8.707 8l1.147 1.146a.5.5 0 0 1-.708.708L8 8.707 6.854 9.854a.5.5 0 0 1-.708-.708L7.293 8 6.146 6.854a.5.5 0 0 1 0-.708z"],["d","M3 0h10a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2v-1h1v1a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1H3a1 1 0 0 0-1 1v1H1V2a2 2 0 0 1 2-2z"],["d","M1 5v-.5a.5.5 0 0 1 1 0V5h.5a.5.5 0 0 1 0 1h-2a.5.5 0 0 1 0-1H1zm0 3v-.5a.5.5 0 0 1 1 0V8h.5a.5.5 0 0 1 0 1h-2a.5.5 0 0 1 0-1H1zm0 3v-.5a.5.5 0 0 1 1 0v.5h.5a.5.5 0 0 1 0 1h-2a.5.5 0 0 1 0-1H1z"],["class","col-xs-12",4,"ngIf"],[1,"col-xs-12"],["resultElt",""],[1,"card"],["e2e-id","result",1,"card-body",2,"white-space","pre-wrap",3,"innerHtml"],["codeElt",""]],template:function(r,o){1&r&&ee(0,dN,12,1,"div",0),2&r&&V("ngIf",o.result)},dependencies:[Pi,zd,aN],changeDetection:0}),t})();const _N=["selectKeyElt"],fN=["blockIdentifierHeightElt"],pN=["blockIdentifierHashElt"],gN=["purseUrefElt"],hN=["stateRootHashElt"],mN=["finalizedApprovalsElt"],wN=["deployHashElt"],yN=["purseIdentifierElt"],bN=["itemKeyElt"],vN=["seedUrefElt"],DN=["seedAccounttHashElt"],EN=["seedContractHashElt"],CN=["seedNameElt"],IN=["seedKeyElt"],SN=["queryKeyElt"],MN=["queryPathElt"],kN=["accountIdentifierElt"],TN=["publicKeyElt"],AN=["privateKeyElt"],NN=["TTLElt"],xN=["transferAmountElt"],RN=["targetAccountElt"],PN=["entryPointElt"],ON=["argsSimpleElt"],FN=["argsJsonElt"],LN=["sessionHashElt"],jN=["sessionNameElt"],HN=["versionElt"],VN=["callPackageElt"],BN=["deployJsonElt"],$N=["paymentAmountElt"],UN=["selectDictIdentifierElt"],qN=["wasmElt"],zN=["deployFileElt"],GN=["selectNetworkElt"];function WN(e,t){if(1&e&&(k(0,"option",43),$(1),R()),2&e){const n=t.$implicit,r=J();V("value",n.name)("selected",n.node_address===r.node_address),j(1),ic(" ",n.name," (",n.node_address,") ")}}function JN(e,t){if(1&e&&(k(0,"option",43),$(1),R()),2&e){const n=t.$implicit,r=J(2);V("value",r.changePort(n))("selected",r.changePort(n)===r.node_address),j(1),ic(" ",r.changePort(n)," (",r.chain_name,") ")}}function ZN(e,t){if(1&e&&(k(0,"optgroup",44),ee(1,JN,2,4,"option",12),R()),2&e){const n=J();j(1),V("ngForOf",n.peers)}}function KN(e,t){if(1&e){const n=Nt();k(0,"div",45)(1,"span",46),$(2),R(),k(3,"button",47),Ie("click",function(){return vt(n),Dt(J().get_state_root_hash(!0))}),$(4," Refresh "),R()()}if(2&e){const n=J();j(2),st("state root hash is ",n.state_root_hash,"")}}function YN(e,t){if(1&e&&(k(0,"div",48)(1,"span",49),$(2),R()()),2&e){const n=J();j(2),st("account hash is ",n.account_hash,"")}}function QN(e,t){if(1&e&&(k(0,"div",48)(1,"span",50),$(2),R()()),2&e){const n=J();j(2),st("main purse is ",n.main_purse,"")}}function XN(e,t){if(1&e&&(k(0,"option",43),$(1),R()),2&e){const n=t.$implicit,r=J();V("value",n)("selected",r.action===n),j(1),st(" ",n," ")}}function ex(e,t){if(1&e&&(k(0,"option",43),$(1),R()),2&e){const n=t.$implicit,r=J();V("value",n)("selected",r.action===n),j(1),st(" ",n," ")}}function tx(e,t){if(1&e&&(k(0,"option",43),$(1),R()),2&e){const n=t.$implicit,r=J();V("value",n)("selected",r.action===n),j(1),st(" ",n," ")}}function nx(e,t){if(1&e&&(k(0,"option",51),$(1),R()),2&e){const n=t.$implicit;V("value",n),j(1),st(" ",n," ")}}function rx(e,t){if(1&e){const n=Nt();k(0,"button",52),Ie("click",function(){vt(n);const o=J();return Dt(o.submitAction(o.action))}),$(1," Go "),R()}}function ox(e,t){if(1&e){const n=Nt();k(0,"button",53),Ie("click",function(){return vt(n),Dt(J().onPrivateKeyClick())}),$(1," Load Private Key "),R()}}function sx(e,t){if(1&e){const n=Nt();k(0,"button",54),Ie("click",function(){return vt(n),Dt(J().onPrivateKeyClick())}),$(1," Private Key Loaded "),R()}}function ix(e,t){if(1&e&&(k(0,"div",68)(1,"label",69),$(2,"Account identifier"),R(),k(3,"div",59),Me(4,"input",70,71),k(6,"label",69),$(7,"e.g. Public Key, AccountHash"),R()()()),2&e){const n=J(2);j(4),V("value",n.account_identifier||"")}}function ax(e,t){if(1&e&&(k(0,"div",55)(1,"form",56),Ie("submit",function(){return!1}),k(2,"div",57)(3,"label",58),$(4,"Block Height"),R(),k(5,"div",59),Me(6,"input",60,61),k(8,"label",58),$(9),R()()(),k(10,"div",62)(11,"label",63),$(12,"Block Hash"),R(),k(13,"div",59),Me(14,"input",64,65),k(16,"label",58),$(17),R()()(),k(18,"div",66),ee(19,ix,8,1,"div",67),R()()()),2&e){const n=J();j(6),V("value",n.block_identifier_height||"")("placeholder",n.block_identifier_height_default),j(3),st("e.g. ",n.block_identifier_height_default,""),j(5),V("value",n.block_identifier_hash||"")("placeholder",n.block_identifier_hash_default),j(3),st("e.g. ",n.block_identifier_hash_default,""),j(2),V("ngIf","get_account"===n.action)}}function cx(e,t){if(1&e&&(k(0,"div",72)(1,"label",77),$(2,"Purse Uref "),R(),k(3,"div",59),Me(4,"input",78,79),k(6,"label",77),$(7),R()()()),2&e){const n=J(2);j(4),rc("placeholder","e.g. ",n.main_purse||"uref-0x",""),V("value",n.purse_uref||n.main_purse||""),j(3),st("e.g. ",n.main_purse||"uref-0x","")}}function lx(e,t){if(1&e&&(k(0,"div",72)(1,"label",80),$(2,"Purse Identifier "),R(),k(3,"div",59),Me(4,"input",81,82),k(6,"label",80),$(7,"e.g. Public Key, AccountHash, Purse URef"),R()()()),2&e){const n=J(2);j(4),V("value",n.purse_identifier||n.main_purse||n.public_key||n.account_hash||"")}}function ux(e,t){if(1&e&&(k(0,"div",55)(1,"form",56),Ie("submit",function(){return!1}),k(2,"div",72)(3,"label",73),$(4,"State Root Hash "),R(),k(5,"div",59),Me(6,"input",74,75),k(8,"label",73),$(9),R()()(),ee(10,cx,8,3,"div",76),ee(11,lx,8,1,"div",76),R()()),2&e){const n=J();j(6),V("placeholder",n.state_root_hash),j(3),st("e.g. ",n.state_root_hash,""),j(1),V("ngIf","get_balance"===n.action),j(1),V("ngIf","query_balance"===n.action)}}function dx(e,t){if(1&e){const n=Nt();k(0,"div",85)(1,"div",14)(2,"div",86)(3,"div",7)(4,"label",20),$(5,"Dictionary identifier"),R(),k(6,"select",87,88),Ie("change",function(){vt(n);const o=un(7);return Dt(J(2).select_dict_identifier=o.value)}),k(8,"option",89),$(9," From Dictionary Uref "),R(),k(10,"option",90),$(11," From Contract Info "),R(),k(12,"option",91),$(13," From Account Info "),R(),k(14,"option",92),$(15," From Dictionary Key "),R()()()()()()}if(2&e){const n=J(2);j(6),V("value",n.select_dict_identifier||""),j(2),V("selected","newFromSeedUref"===n.select_dict_identifier),j(2),V("selected","newFromContractInfo"===n.select_dict_identifier),j(2),V("selected","newFromAccountInfo"===n.select_dict_identifier),j(2),V("selected","newFromDictionaryKey"===n.select_dict_identifier)}}function _x(e,t){if(1&e&&(k(0,"div",72)(1,"label",93),$(2,"Dictionary Uref "),R(),k(3,"div",59),Me(4,"input",94,95),k(6,"label",93),$(7,"e.g. uref-0x"),R()()()),2&e){const n=J(3);j(4),V("value",n.seed_uref||"")}}function fx(e,t){if(1&e&&(k(0,"div",72)(1,"label",96),$(2,"Account Hash"),R(),k(3,"div",59),Me(4,"input",97,98),k(6,"label",96),$(7,"e.g. account-hash-0x"),R()()()),2&e){const n=J(3);j(4),V("value",n.seed_account_hash||"")}}function px(e,t){if(1&e&&(k(0,"div",72)(1,"label",99),$(2,"Contract Hash"),R(),k(3,"div",59),Me(4,"input",100,101),k(6,"label",99),$(7,"e.g. hash-0x"),R()()()),2&e){const n=J(3);j(4),V("value",n.seed_contract_hash||"")}}function gx(e,t){if(1&e&&(k(0,"div",72)(1,"label",102),$(2,"Dictionary Key"),R(),k(3,"div",59),Me(4,"input",103,104),k(6,"label",102),$(7,"e.g. dictionary-0x"),R()()()),2&e){const n=J(3);j(4),V("value",n.seed_key||"")}}function hx(e,t){if(1&e&&(k(0,"div",72)(1,"label",105),$(2,"Dictionary Name"),R(),k(3,"div",59),Me(4,"input",106,107),k(6,"label",105),$(7,"e.g. events"),R()()()),2&e){const n=J(3);j(4),V("value",n.seed_name||"")}}function mx(e,t){if(1&e&&(k(0,"div",72)(1,"label",108),$(2,"Dictionary Item key "),R(),k(3,"div",59),Me(4,"input",109,110),k(6,"label",108),$(7,"e.g. Item key string"),R()()()),2&e){const n=J(3);j(4),V("value",n.item_key||"")("placeholder",n.item_key)}}const wx=function(){return["newFromContractInfo","newFromAccountInfo"]};function yx(e,t){if(1&e&&(cs(0),ee(1,_x,8,1,"div",76),ee(2,fx,8,1,"div",76),ee(3,px,8,1,"div",76),ee(4,gx,8,1,"div",76),ee(5,hx,8,1,"div",76),ee(6,mx,8,2,"div",76),ls()),2&e){const n=J(2);j(1),V("ngIf",!!n.selectDictIdentifierElt&&"newFromSeedUref"===n.select_dict_identifier),j(1),V("ngIf",!!n.selectDictIdentifierElt&&"newFromAccountInfo"===n.select_dict_identifier),j(1),V("ngIf","newFromContractInfo"===n.select_dict_identifier||"query_contract_dict"===n.action),j(1),V("ngIf",!!n.selectDictIdentifierElt&&"newFromDictionaryKey"===n.select_dict_identifier),j(1),V("ngIf",lt(6,wx).includes(n.select_dict_identifier)||"query_contract_dict"===n.action),j(1),V("ngIf","newFromDictionaryKey"!==n.select_dict_identifier)}}function bx(e,t){if(1&e&&(cs(0),k(1,"div",72)(2,"label",111),$(3),R(),k(4,"div",59),Me(5,"input",112,113),k(7,"label",111),$(8),R()()(),k(9,"div",72)(10,"label",114),$(11,"Path"),R(),k(12,"div",59),Me(13,"input",115,116),k(15,"label",114),$(16,"e.g. counter/count"),R()()(),ls()),2&e){const n=J(2);j(3),eo("query_global_state"===n.action?"Key":"Contract Hash"),j(2),V("value",n.query_key||"")("placeholder","query_global_state"===n.action?"e.g. uref-0x || hash-0x || account-hash-0x":"e.g. hash-0x"),j(3),eo("query_global_state"===n.action?"e.g. uref-0x || hash-0x || account-hash-0x":"e.g. hash-0x"),j(5),V("value",n.query_path||"")}}const vx=function(){return["get_dictionary_item"]},Dx=function(){return["get_dictionary_item","query_contract_dict"]},Ex=function(){return["query_global_state","query_contract_key"]};function Cx(e,t){if(1&e&&(k(0,"div",55)(1,"form",56),Ie("submit",function(){return!1}),ee(2,dx,16,5,"div",83),ee(3,yx,7,7,"ng-container",84),ee(4,bx,17,5,"ng-container",84),R()()),2&e){const n=J();j(2),V("ngIf",lt(3,vx).includes(n.action)),j(1),V("ngIf",lt(4,Dx).includes(n.action)),j(1),V("ngIf",lt(5,Ex).includes(n.action))}}function Ix(e,t){if(1&e&&(k(0,"div",55)(1,"form",56),Ie("submit",function(){return!1}),k(2,"div",117)(3,"label",118),$(4,"Deploy Hash "),R(),k(5,"div",59),Me(6,"input",119,120),k(8,"label",73),$(9,"e.g. 0x"),R()()(),k(10,"div",121)(11,"label",122),$(12,"Finalized approvals"),R(),k(13,"div"),Me(14,"input",123,124),R()()()()),2&e){const n=J();j(6),V("value",n.deploy_hash||""),j(8),V("checked",n.finalized_approvals)("value",n.finalized_approvals||"")}}function Sx(e,t){if(1&e){const n=Nt();k(0,"button",53),Ie("click",function(){return vt(n),Dt(J(2).deployFileClick())}),$(1," Load deploy file "),R()}}function Mx(e,t){if(1&e){const n=Nt();k(0,"div",55)(1,"form",56),Ie("submit",function(){return!1}),k(2,"div",121)(3,"input",125,126),Ie("change",function(o){return vt(n),Dt(J().onDeployFileSelected(o))}),R(),ee(5,Sx,2,0,"button",37),R(),k(6,"div",15)(7,"div",127)(8,"textarea",128,129),$(10," "),R(),k(11,"label",130),$(12,"Deploy as Json string"),R()()()()()}if(2&e){const n=J();j(5),V("ngIf",!n.file_name),j(3),V("innerHTML",n.deploy_json||"",tu)}}function kx(e,t){if(1&e&&(k(0,"span",141),$(1),R()),2&e){J();const n=un(6),r=J(2);j(1),st("(",r.motesToCSPR(n)," CSPR)")}}function Tx(e,t){if(1&e){const n=Nt();k(0,"div",121)(1,"label",136),$(2,"Transfer Amount "),ee(3,kx,2,1,"span",137),R(),k(4,"div",59)(5,"input",138,139),Ie("change",function(){vt(n);const o=un(6);return Dt(J(2).motesToCSPR(o))}),R(),k(7,"label",140),$(8),R()()()}if(2&e){const n=un(6),r=J(2);j(3),V("ngIf",n.value),j(2),V("value",r.transfer_amount||"")("placeholder",r.config.minimum_transfer),j(3),st("e.g. ",r.config.minimum_transfer,"")}}function Ax(e,t){if(1&e&&(k(0,"span",141),$(1),R()),2&e){J();const n=un(6),r=J(2);j(1),st("(",r.motesToCSPR(n)," CSPR)")}}function Nx(e,t){if(1&e){const n=Nt();k(0,"div",142)(1,"label",136),$(2,"Payment Amount "),ee(3,Ax,2,1,"span",137),R(),k(4,"div",59)(5,"input",143,144),Ie("change",function(){vt(n);const o=un(6);return Dt(J(2).motesToCSPR(o))}),R()()()}if(2&e){const n=un(6),r=J(2);j(3),V("ngIf",n.value),j(2),V("value",r.payment_amount||"")}}function xx(e,t){if(1&e&&(k(0,"div",145)(1,"label",146),$(2,"TTL"),R(),k(3,"div",59),Me(4,"input",147,148),k(6,"label",146),$(7),R()()()),2&e){const n=J(2);j(4),V("value",n.ttl||n.config.TTL)("placeholder",n.config.TTL),j(3),st("e.g. ",n.config.TTL,"")}}function Rx(e,t){if(1&e&&(k(0,"div",117)(1,"label",149),$(2,"Target Account"),R(),k(3,"div",59),Me(4,"input",150,151),k(6,"label",58),$(7,"e.g. Public Key, AccountHash, Purse URef"),R()()()),2&e){const n=J(2);j(4),V("value",n.target_account||"")}}function Px(e,t){if(1&e){const n=Nt();k(0,"button",53),Ie("click",function(){return vt(n),Dt(J(3).onWasmClick())}),$(1," Wasm Module Bytes "),R()}}function Ox(e,t){if(1&e){const n=Nt();k(0,"span",155),Ie("click",function(){return vt(n),Dt(J(3).resetWasmClick())}),$(1),Ws(),k(2,"svg",156),Me(3,"path",157),R()()}if(2&e){const n=J(3);j(1),st(" ",n.file_name," ")}}function Fx(e,t){if(1&e){const n=Nt();k(0,"div",117)(1,"div",121)(2,"input",152,153),Ie("change",function(o){return vt(n),Dt(J(2).onWasmSelected(o))}),R(),ee(4,Px,2,0,"button",37),ee(5,Ox,4,1,"span",154),R()()}if(2&e){const n=J(2);j(4),V("ngIf",!n.file_name),j(1),V("ngIf",n.file_name)}}function Lx(e,t){if(1&e&&(cs(0),k(1,"div",72)(2,"label",165),$(3,"Smart Contract hash or Package hash"),R(),k(4,"div",59)(5,"input",166,167),Ie("change",function(){return!0}),R(),k(7,"label",165),$(8,"e.g. Contract Hash or Package Hash"),R()()(),k(9,"div",121)(10,"label",168),$(11,"Call Package"),R(),k(12,"div"),Me(13,"input",169,170),R()(),k(15,"div",171)(16,"label",172),$(17,"Version"),R(),k(18,"div",59),Me(19,"input",173,174),k(21,"label",172),$(22,"e.g.1, empty for last version"),R()()(),k(23,"div",72)(24,"label",175),$(25,"Smart Contract name or Package name"),R(),k(26,"div",59)(27,"input",176,177),Ie("change",function(){return!0}),R(),k(29,"label",175),$(30,"e.g. Counter"),R()()(),k(31,"div",86)(32,"label",178),$(33,"Entry point"),R(),k(34,"div",59),Me(35,"input",179,180),k(37,"label",178),$(38,"e.g. counter_inc"),R()()(),ls()),2&e){const n=un(6),r=un(28),o=J(3);j(5),V("value",o.session_hash||"")("disabled",!!r.value||o.file_name&&"call_entrypoint"!==o.action),j(8),V("checked",o.call_package)("value",o.call_package||"")("disabled",o.file_name&&"call_entrypoint"!==o.action),j(6),V("value",o.version||"")("disabled",o.file_name&&"call_entrypoint"!==o.action),j(8),V("value",o.session_name||"")("disabled",!!n.value||o.file_name&&"call_entrypoint"!==o.action),j(8),V("value",o.entry_point||"")("disabled",o.file_name&&"call_entrypoint"!==o.action)}}function jx(e,t){if(1&e&&(k(0,"div",158),ee(1,Lx,39,11,"ng-container",84),k(2,"div",72)(3,"label",159),$(4,"Args"),R(),k(5,"div",59)(6,"input",160,161),Ie("change",function(){return!0}),R(),k(8,"label",159),$(9,"e.g. foo:Bool='true', bar:String='value'"),R()()(),k(10,"div",72)(11,"label",162),$(12,"Args Json"),R(),k(13,"div",59)(14,"input",163,164),Ie("change",function(){return!0}),R(),k(16,"label",162),$(17,'e.g. [{ "name": "foo", "type": "U256", "value": 1 }]'),R()()()()),2&e){const n=un(7),r=un(15),o=J(2);j(1),V("ngIf","install"!==o.action&&(!o.file_name||"call_entrypoint"===o.action)),j(5),V("value",o.args_simple||"")("disabled",!!r.value),j(8),V("value",o.args_json||"")("disabled",!!n.value)}}const ib=function(){return["make_transfer","transfer","speculative_transfer"]},ab=function(){return["make_deploy","deploy","speculative_deploy","call_entrypoint","install"]},Hx=function(){return["make_transfer","make_deploy","transfer","deploy","speculative_transfer","speculative_deploy","install"]},Vx=function(){return["make_deploy","deploy","install","speculative_deploy"]};function Bx(e,t){if(1&e&&(k(0,"div",55)(1,"form",56),Ie("submit",function(){return!1}),ee(2,Tx,9,4,"div",131),ee(3,Nx,7,2,"div",132),ee(4,xx,8,3,"div",133),ee(5,Rx,8,1,"div",134),ee(6,Fx,6,2,"div",134),ee(7,jx,18,5,"div",135),R()()),2&e){const n=J();j(2),V("ngIf",lt(6,ib).includes(n.action)),j(1),V("ngIf",lt(7,ab).includes(n.action)),j(1),V("ngIf",lt(8,Hx).includes(n.action)),j(1),V("ngIf",lt(9,ib).includes(n.action)),j(1),V("ngIf",lt(10,Vx).includes(n.action)),j(1),V("ngIf",lt(11,ab).includes(n.action))}}function $x(e,t){if(1&e){const n=Nt();k(0,"div",181)(1,"div",145)(2,"button",182),Ie("click",function(){vt(n);const o=J();return Dt(o.submitAction(o.action))}),$(3," Sign "),R()()()}}function Ux(e,t){if(1&e&&(k(0,"section",183)(1,"pre",184),$(2),R()()),2&e){const n=J();j(2),eo(n.error)}}const cb=function(){return["sign_deploy"]},qx=function(){return["get_block","get_block_transfers","get_era_info","get_era_summary","get_account","speculative_exec","speculative_deploy","speculative_transfer","query_balance","query_global_state","get_state_root_hash"]},zx=function(){return["get_balance","query_balance","query_global_state","query_contract_dict","query_contract_key","get_dictionary_item"]},Gx=function(){return["get_dictionary_item","query_global_state","query_contract_dict","query_contract_key"]},Wx=function(){return["put_deploy","sign_deploy","speculative_exec"]},Jx=function(){return["make_transfer","make_deploy","transfer","deploy","speculative_transfer","speculative_deploy","call_entrypoint","install"]};(function $A(e,t){return TM({rootComponent:e,...Wy(t)})})((()=>{var e;class t{constructor(r,o,i,a,u){this.sdk=r,this.config=o,this.env=i,this.resultService=a,this.changeDetectorRef=u,this.title="Casper client",this.verbosity=ge.HE.High,this.node_address=this.env.node_address.toString(),this.block_identifier_height_default=this.config.block_identifier_height_default.toString(),this.block_identifier_hash_default=this.config.block_identifier_hash.toString(),this.finalized_approvals=!0,this.select_dict_identifier="newFromContractInfo",this.call_package=!1,this.chain_name=this.env.chain_name.toString(),this.network={name:"default",node_address:this.env.node_address.toString(),chain_name:this.env.chain_name.toString()}}ngOnInit(){var r=this;return(0,ne.Z)(function*(){console.info(r.sdk),r.sdk_methods=Object.getOwnPropertyNames(Object.getPrototypeOf(r.sdk)).filter(o=>"function"==typeof r.sdk[o]).filter(o=>!["free","constructor","__destroy_into_raw","getNodeAddress","setNodeAddress","getVerbosity","setVerbosity"].includes(o)).filter(o=>!o.endsWith("_options")).filter(o=>!o.startsWith("chain_")).filter(o=>!o.startsWith("state_")).filter(o=>!o.startsWith("info_")).filter(o=>!o.startsWith("account")).sort(),r.sdk_deploy_methods=r.sdk_methods.filter(o=>["deploy","speculative_deploy","speculative_transfer","transfer"].includes(o)),r.sdk_deploy_utils_methods=r.sdk_methods.filter(o=>["make_deploy","make_transfer","sign_deploy","put_deploy"].includes(o)),r.sdk_contract_methods=r.sdk_methods.filter(o=>["call_entrypoint","install","query_contract_dict","query_contract_key"].includes(o)),r.sdk_rpc_methods=r.sdk_methods.filter(o=>!r.sdk_deploy_methods.concat(r.sdk_deploy_utils_methods,r.sdk_contract_methods).includes(o))})()}selectNetwork(){let r=this.selectNetworkElt.nativeElement.value;if(r=r&&this.networks.find(o=>o.name==r),!r){const o=this.selectNetworkElt.nativeElement.value;o&&(this.node_address=o)}this.network=r,this.chain_name=r.chain_name,this.node_address=r.node_address,this.sdk.setNodeAddress(this.node_address)}get_peers(){var r=this;return(0,ne.Z)(function*(){try{const o=yield r.sdk.get_peers();o&&r.resultService.setResult(o.toJson()),o&&(r.peers=o.peers)}catch(o){o&&(r.error=o.toString())}})()}get_node_status(){var r=this;return(0,ne.Z)(function*(){const o=yield r.sdk.get_node_status();return o&&r.resultService.setResult(o.toJson()),o})()}get_state_root_hash(r){var o=this;return(0,ne.Z)(function*(){const i=o.sdk.get_state_root_hash_options({});if(i)if(r){const a=yield o.sdk.get_state_root_hash(i);o.state_root_hash=a.state_root_hash_as_string,o.changeDetectorRef.markForCheck()}else{o.getIdentifieBlock(i);const a=yield o.sdk.get_state_root_hash(i);o.state_root_hash&&o.resultService.setResult(a.toJson())}})()}get_account(r){var o=this;return(0,ne.Z)(function*(){let i;if(i=r||o.accountIdentifierElt&&o.accountIdentifierElt.nativeElement.value.toString().trim(),!i)return;const a=o.sdk.get_account_options({account_identifier_as_string:i});if(!a)return;o.getIdentifieBlock(a);const u=yield o.sdk.get_account(a);return r||u&&o.resultService.setResult(u.toJson()),u})()}onPublicKeyChange(){var r=this;return(0,ne.Z)(function*(){const o=r.publicKeyElt&&r.publicKeyElt.nativeElement.value.toString().trim();r.account_hash="",r.main_purse="";const i=yield r.get_account(o);o!==r.public_key&&(r.public_key=o,r.private_key="",r.has_private_key=!1,r.privateKeyElt.nativeElement.value=""),r.account_hash=i?.account.account_hash,r.main_purse=i?.account.main_purse,r.changeDetectorRef.markForCheck()})()}get_auction_info(){var r=this;return(0,ne.Z)(function*(){try{const o=r.sdk.get_auction_info_options({});r.getIdentifieBlock(o);const i=yield r.sdk.get_auction_info(o);i&&r.resultService.setResult(i.toJson())}catch(o){o&&(r.error=o.toString())}})()}install(){var r=this;return(0,ne.Z)(function*(){const o=r.paymentAmountElt&&r.paymentAmountElt.nativeElement.value.toString().trim();if(!(o&&r.public_key&&r.private_key&&r._wasm?.buffer))return;const a=new ge.hZ(r.chain_name,r.public_key,r.private_key),u=r.get_session_params();try{const d=yield r.sdk.install(a,u,o);d&&r.resultService.setResult(d.toJson())}catch(d){console.error(d),d&&(r.error=d.toString())}})()}get_balance(){var r=this;return(0,ne.Z)(function*(){const o=r.purseUrefElt&&r.purseUrefElt.nativeElement.value.toString().trim(),i=r.stateRootHashElt&&r.stateRootHashElt.nativeElement.value.toString().trim();if(o)try{const a=r.sdk.get_balance_options({state_root_hash_as_string:i||"",purse_uref_as_string:o}),u=yield r.sdk.get_balance(a);u&&r.resultService.setResult(u.toJson())}catch(a){console.error(a),a&&(r.error=a.toString())}})()}get_block_transfers(){var r=this;return(0,ne.Z)(function*(){try{const o=r.sdk.get_block_transfers_options({});r.getIdentifieBlock(o);const i=yield r.sdk.get_block_transfers(o);i&&r.resultService.setResult(i.toJson())}catch(o){o&&(r.error=o.toString())}})()}get_block(){var r=this;return(0,ne.Z)(function*(){try{const o=r.sdk.get_block_options({});r.getIdentifieBlock(o);const i=yield r.sdk.get_block(o);i&&r.resultService.setResult(i.toJson())}catch(o){o&&(r.error=o.toString())}})()}submitAction(r){var o=this;return(0,ne.Z)(function*(){yield o.cleanResult(),yield o.handleAction(r,!0),o.changeDetectorRef.markForCheck()})()}get_chainspec(){var r=this;return(0,ne.Z)(function*(){try{const o=yield r.sdk.get_chainspec(),i=(0,ge.rR)(o?.chainspec_bytes.chainspec_bytes);i&&r.resultService.setResult(i)}catch(o){o&&(r.error=o.toString())}})()}get_deploy(){var r=this;return(0,ne.Z)(function*(){const o=r.finalizedApprovalsElt&&r.finalizedApprovalsElt.nativeElement.value,i=r.deployHashElt&&r.deployHashElt.nativeElement.value.toString().trim();if(!i)return;const a=r.sdk.get_deploy_options({deploy_hash_as_string:i});a.finalized_approvals=o;try{const u=yield r.sdk.get_deploy(a);u&&r.resultService.setResult(u.toJson())}catch(u){u&&(r.error=u.toString())}})()}get_dictionary_item(){var r=this;return(0,ne.Z)(function*(){const o=r.stateRootHashElt&&r.stateRootHashElt.nativeElement.value.toString().trim(),i=r.itemKeyElt&&r.itemKeyElt.nativeElement.value.toString().trim(),a=r.seedKeyElt&&r.seedKeyElt.nativeElement.value.toString().trim();if(!i&&!a)return;const u=r.seedUrefElt&&r.seedUrefElt.nativeElement.value.toString().trim();let d;if(u&&"newFromSeedUref"===r.select_dict_identifier)d=ge.Tz.newFromSeedUref(u,i);else if(a&&"newFromDictionaryKey"===r.select_dict_identifier)d=ge.Tz.newFromDictionaryKey(a);else{const g=r.seedContractHashElt&&r.seedContractHashElt.nativeElement.value.toString().trim(),h=r.seedAccounttHashElt&&r.seedAccounttHashElt.nativeElement.value.toString().trim(),y=r.seedNameElt&&r.seedNameElt.nativeElement.value.toString().trim();if(!y)return;g&&"newFromContractInfo"===r.select_dict_identifier?d=ge.Tz.newFromContractInfo(g,y,i):h&&"newFromAccountInfo"===r.select_dict_identifier&&(d=ge.Tz.newFromAccountInfo(h,y,i))}if(!d)return;const f=r.sdk.get_dictionary_item_options({state_root_hash_as_string:o||""});f.dictionary_item_identifier=d;try{const g=yield r.sdk.state_get_dictionary_item(f);g&&r.resultService.setResult(g.toJson())}catch(g){g&&(r.error=g.toString())}})()}get_era_info(){var r=this;return(0,ne.Z)(function*(){const o=r.sdk.get_era_info_options({});r.getIdentifieBlock(o);try{const i=yield r.sdk.get_era_info(o);i&&r.resultService.setResult(i.toJson())}catch(i){i&&(r.error=i.toString())}})()}get_era_summary(){var r=this;return(0,ne.Z)(function*(){const o=r.sdk.get_era_summary_options({});r.getIdentifieBlock(o);try{const i=yield r.sdk.get_era_summary(o);i&&r.resultService.setResult(i.toJson())}catch(i){i&&(r.error=i.toString())}})()}get_validator_changes(){var r=this;return(0,ne.Z)(function*(){try{const o=yield r.sdk.get_validator_changes();o&&r.resultService.setResult(o.toJson())}catch(o){o&&(r.error=o.toString())}})()}list_rpcs(){var r=this;return(0,ne.Z)(function*(){try{const o=yield r.sdk.list_rpcs();o&&r.resultService.setResult(o.toJson())}catch(o){o&&(r.error=o.toString())}})()}query_balance(){var r=this;return(0,ne.Z)(function*(){const o=r.purseIdentifierElt&&r.purseIdentifierElt.nativeElement.value.toString().trim();if(!o)return;const i=r.sdk.query_balance_options({purse_identifier_as_string:o});r.getGlobalIdentifier(i);try{const a=yield r.sdk.query_balance(i);a&&r.resultService.setResult(a.balance)}catch(a){a&&(r.error=a.toString())}})()}query_global_state(){var r=this;return(0,ne.Z)(function*(){const o=r.queryPathElt&&r.queryPathElt.nativeElement.value.toString().trim().replace(/^\/+|\/+$/g,""),i=r.queryKeyElt&&r.queryKeyElt.nativeElement.value.toString().trim();if(!i)return;const a=r.sdk.query_global_state_options({key_as_string:i,path_as_string:o});r.getGlobalIdentifier(a);try{const u=yield r.sdk.query_global_state(a);u&&r.resultService.setResult(u.toJson())}catch(u){u&&(r.error=u.toString())}})()}deploy(r=!0,o){var i=this;return(0,ne.Z)(function*(){const a=(0,ge.u3)(),u=i.TTLElt&&i.TTLElt.nativeElement.value.toString().trim();if(!i.public_key)return;const d=new ge.hZ(i.chain_name,i.public_key,i.private_key,a,u),f=new ge.Jf,g=i.paymentAmountElt&&i.paymentAmountElt.nativeElement.value.toString().trim();if(!g)return;f.payment_amount=g;const h=i.get_session_params();let y;if(o){const b={maybe_block_id_as_string:void 0,maybe_block_identifier:void 0};i.getIdentifieBlock(b);const{maybe_block_id_as_string:I,maybe_block_identifier:T}=b;y=yield i.sdk.speculative_deploy(d,h,f,I,T)}else y=r?yield i.sdk.deploy(d,h,f):i.sdk.make_deploy(d,h,f);if(y){const b=y.toJson();i.deploy_json=(0,ge.vj)(b,i.verbosity),i.deploy_json&&i.resultService.setResult(b)}return y})()}transfer(r=!0,o){var i=this;return(0,ne.Z)(function*(){const a=(0,ge.u3)(),u=i.TTLElt&&i.TTLElt.nativeElement.value.toString().trim();if(!i.public_key)return;const d=new ge.hZ(i.chain_name,i.public_key,i.private_key,a,u),f=new ge.Jf;f.payment_amount=i.config.gas_fee_transfer.toString();const g=i.transferAmountElt&&i.transferAmountElt.nativeElement.value.toString().trim(),h=i.targetAccountElt&&i.targetAccountElt.nativeElement.value.toString().trim();if(!g||!h)return;let y;if(o){const b={maybe_block_id_as_string:void 0,maybe_block_identifier:void 0};i.getIdentifieBlock(b);const{maybe_block_id_as_string:I,maybe_block_identifier:T}=b;y=yield i.sdk.speculative_transfer(g,h,void 0,d,f,I,T)}else y=r?yield i.sdk.transfer(g,h,void 0,d,f):yield i.sdk.make_transfer(g,h,void 0,d,f);if(y){const b=y.toJson();i.deploy_json=(0,ge.vj)(b,i.verbosity),i.deploy_json&&i.resultService.setResult(b)}return y})()}put_deploy(){var r=this;return(0,ne.Z)(function*(){const o=r.deployJsonElt&&r.deployJsonElt.nativeElement.value.toString().trim();if(!o)return;const i=new ge.g1(JSON.parse(o)),a=yield r.sdk.put_deploy(i);return a&&r.resultService.setResult(a.toJson()),a})()}speculative_exec(){var r=this;return(0,ne.Z)(function*(){const o=r.deployJsonElt&&r.deployJsonElt.nativeElement.value.toString().trim();if(!o)return;const i=new ge.g1(JSON.parse(o)),a=r.sdk.speculative_exec_options({deploy:i.toJson()});r.getIdentifieBlock(a);const u=yield r.sdk.speculative_exec(a);return u&&r.resultService.setResult(u.toJson()),u})()}sign_deploy(){var r=this;return(0,ne.Z)(function*(){if(!r.private_key)return;const o=r.deployJsonElt&&r.deployJsonElt.nativeElement.value.toString().trim();if(!o)return;let i;try{i=new ge.g1(JSON.parse(o))}catch{console.error("Error parsing deploy")}i&&(i=i.sign(r.private_key),r.deploy_json=(0,ge.vj)(i.toJson(),r.verbosity),r.deployJsonElt.nativeElement.value=r.deploy_json)})()}make_deploy(){var r=this;return(0,ne.Z)(function*(){yield r.deploy(!1)})()}make_transfer(){var r=this;return(0,ne.Z)(function*(){yield r.transfer(!1)})()}speculative_transfer(){var r=this;return(0,ne.Z)(function*(){yield r.transfer(!1,!0)})()}speculative_deploy(){var r=this;return(0,ne.Z)(function*(){yield r.deploy(!1,!0)})()}call_entrypoint(){var r=this;return(0,ne.Z)(function*(){if(!r.public_key||!r.private_key)return;const o=new ge.hZ(r.chain_name,r.public_key,r.private_key),i=r.get_session_params(),a=r.paymentAmountElt&&r.paymentAmountElt.nativeElement.value.toString().trim();if(a)try{const u=yield r.sdk.call_entrypoint(o,i,a);u&&r.resultService.setResult(u.toJson())}catch(u){u&&(r.error=u.toString())}})()}query_contract_dict(){var r=this;return(0,ne.Z)(function*(){const o=r.stateRootHashElt&&r.stateRootHashElt.nativeElement.value.toString().trim(),i=r.itemKeyElt&&r.itemKeyElt.nativeElement.value.toString().trim();if(!i)return;const a=r.seedContractHashElt&&r.seedContractHashElt.nativeElement.value.toString().trim(),u=r.seedNameElt&&r.seedNameElt.nativeElement.value.toString().trim();if(!u)return;let d;if(a&&(d=new ge._R,d.setContractNamedKey(a,u,i)),!d)return;const f=r.sdk.query_contract_dict_options({state_root_hash_as_string:o||""});f.dictionary_item_params=d;try{const g=yield r.sdk.query_contract_dict(f);g&&r.resultService.setResult(g.toJson())}catch(g){g&&(r.error=g.toString())}})()}query_contract_key(){var r=this;return(0,ne.Z)(function*(){const o=r.stateRootHashElt&&r.stateRootHashElt.nativeElement.value.toString().trim(),i=r.queryKeyElt&&r.queryKeyElt.nativeElement.value.toString().trim();if(!i)return;const a=r.queryPathElt&&r.queryPathElt.nativeElement.value.toString().trim().replace(/^\/+|\/+$/g,""),u=r.sdk.query_contract_key_options({state_root_hash_as_string:o||"",key_as_string:i,path_as_string:a});try{const d=yield r.sdk.query_contract_key(u);d&&r.resultService.setResult(d.toJson())}catch(d){d&&(r.error=d.toString())}})()}ngAfterViewInit(){var r=this;return(0,ne.Z)(function*(){r.networks=Object.entries(r.config.networks).map(([i,a])=>({name:i,...a}));try{(yield r.get_node_status())&&(yield r.get_state_root_hash(!0),r.action="get_node_status")}catch(i){console.error(i)}r.changeDetectorRef.markForCheck()})()}onDeployFileSelected(r){var o=this;return(0,ne.Z)(function*(){const i=r.target.files?.item(0);let a;if(i){if(a=yield i.text(),!a.trim())return;a=a.trim();try{const u=JSON.parse(a);o.deploy_json=(0,ge.vj)(new ge.g1(u).toJson(),o.verbosity)}catch{console.error("Error parsing deploy")}}else o.deploy_json="";o.changeDetectorRef.markForCheck()})()}deployFileClick(){this.deployFileElt.nativeElement.click()}onPrivateKeyClick(){this.privateKeyElt.nativeElement.click()}onWasmClick(){this.wasmElt.nativeElement.click()}resetWasmClick(){this.wasmElt.nativeElement.value="",this._wasm=void 0,this.file_name=""}cleanResult(){var r=this;return(0,ne.Z)(function*(){r.error="",yield r.resultService.setResult("")})()}selectAction(r){var o=this;return(0,ne.Z)(function*(){yield o.cleanResult();const i=r.target.value;yield o.handleAction(i),o.changeDetectorRef.detectChanges()})()}onWasmSelected(r){var o=this;return(0,ne.Z)(function*(){o.file_name=o.wasmElt?.nativeElement.value.split("\\").pop();const i=r.target.files?.item(0),a=yield i?.arrayBuffer();o._wasm=a&&new Uint8Array(a),o._wasm?.buffer||o.resetWasmClick()})()}onPemSelected(r){var o=this;return(0,ne.Z)(function*(){const i=r.target.files?.item(0);if(i){let a=yield i.text();if(!a.trim())return;a=a.trim(),o.public_key="";const u=(0,ge.GD)(a);u&&(o.public_key=u,o.private_key=a,o.has_private_key=!0)}else o.private_key="",o.has_private_key=!1,o.privateKeyElt.nativeElement.value="";o.changeDetectorRef.markForCheck(),setTimeout((0,ne.Z)(function*(){yield o.onPublicKeyChange()}),0)})()}handleAction(r,o){var i=this;return(0,ne.Z)(function*(){const a=i[r];"function"==typeof a?(o&&(yield a.bind(i).call()),i.action=r):console.error(`Method ${r} is not defined on the component.`)})()}motesToCSPR(r){let o=r.value;if(o)return o=this.parse_commas(o),r.value=o.toString(),(0,ge.HJ)(o)}parse_commas(r){return r.replace(/[,.]/g,"")}getGlobalIdentifier(r){const o=this.stateRootHashElt&&this.stateRootHashElt.nativeElement.value.toString().trim();let i;if(o)i=ge.CG.fromStateRootHash(new ge.zZ(o));else{const a=this.blockIdentifierHeightElt&&this.blockIdentifierHeightElt.nativeElement.value.toString().trim(),u=this.blockIdentifierHashElt&&this.blockIdentifierHashElt.nativeElement.value.toString().trim();u?i=ge.CG.fromBlockHash(new ge.Q6(u)):a&&(i=ge.CG.fromBlockHeight(BigInt(a)))}i&&(r.global_state_identifier=i)}getIdentifieBlock(r){const o=this.blockIdentifierHeightElt&&this.blockIdentifierHeightElt.nativeElement.value.toString().trim(),i=this.blockIdentifierHashElt&&this.blockIdentifierHashElt.nativeElement.value.toString().trim();if(i)r.maybe_block_id_as_string=i,r.maybe_block_identifier=void 0;else if(o){const a=ge.c.fromHeight(BigInt(o));r.maybe_block_id_as_string=void 0,r.maybe_block_identifier=a}else r.maybe_block_id_as_string=void 0,r.maybe_block_identifier=void 0}get_session_params(){const r=new ge.B$,o=this.entryPointElt&&this.entryPointElt.nativeElement.value.toString().trim();o&&(r.session_entry_point=o);const i=this.argsSimpleElt&&this.argsSimpleElt.nativeElement.value.toString().trim().split(",").map(h=>h.trim()).filter(h=>""!==h),a=this.argsJsonElt&&this.argsJsonElt.nativeElement.value.toString().trim();i?.length?r.session_args_simple=i:a&&(r.session_args_json=a);const u=this.callPackageElt&&this.callPackageElt.nativeElement.value,d=this.sessionHashElt&&this.sessionHashElt.nativeElement.value.toString().trim(),f=this.sessionNameElt&&this.sessionNameElt.nativeElement.value.toString().trim();u?d?r.session_package_hash=d:f&&(r.session_package_name=f):d?r.session_hash=d:f&&(r.session_name=f),this._wasm&&(r.session_bytes=ge.Jj.fromUint8Array(this._wasm));const g=this.versionElt&&this.versionElt.nativeElement.value.toString().trim();return g&&(r.session_version=g),r}changePort(r){return["http://",r.address.split(":").shift(),":","7777"].join("")}copy(r){var o=this;return(0,ne.Z)(function*(){o.resultService.copyClipboard(r)})()}}return(e=t).\u0275fac=function(r){return new(r||e)(te(Yy),te(tb),te(nb),te(f_),te(Md))},e.\u0275cmp=rl({type:e,selectors:[["app-root"]],viewQuery:function(r,o){if(1&r&&(de(_N,5),de(fN,5),de(pN,5),de(gN,5),de(hN,5),de(mN,5),de(wN,5),de(yN,5),de(bN,5),de(vN,5),de(DN,5),de(EN,5),de(CN,5),de(IN,5),de(SN,5),de(MN,5),de(kN,5),de(TN,5),de(AN,5),de(NN,5),de(xN,5),de(RN,5),de(PN,5),de(ON,5),de(FN,5),de(LN,5),de(jN,5),de(HN,5),de(VN,5),de(BN,5),de($N,5),de(UN,5),de(qN,5),de(zN,5),de(GN,5)),2&r){let i;ue(i=_e())&&(o.selectKeyElt=i.first),ue(i=_e())&&(o.blockIdentifierHeightElt=i.first),ue(i=_e())&&(o.blockIdentifierHashElt=i.first),ue(i=_e())&&(o.purseUrefElt=i.first),ue(i=_e())&&(o.stateRootHashElt=i.first),ue(i=_e())&&(o.finalizedApprovalsElt=i.first),ue(i=_e())&&(o.deployHashElt=i.first),ue(i=_e())&&(o.purseIdentifierElt=i.first),ue(i=_e())&&(o.itemKeyElt=i.first),ue(i=_e())&&(o.seedUrefElt=i.first),ue(i=_e())&&(o.seedAccounttHashElt=i.first),ue(i=_e())&&(o.seedContractHashElt=i.first),ue(i=_e())&&(o.seedNameElt=i.first),ue(i=_e())&&(o.seedKeyElt=i.first),ue(i=_e())&&(o.queryKeyElt=i.first),ue(i=_e())&&(o.queryPathElt=i.first),ue(i=_e())&&(o.accountIdentifierElt=i.first),ue(i=_e())&&(o.publicKeyElt=i.first),ue(i=_e())&&(o.privateKeyElt=i.first),ue(i=_e())&&(o.TTLElt=i.first),ue(i=_e())&&(o.transferAmountElt=i.first),ue(i=_e())&&(o.targetAccountElt=i.first),ue(i=_e())&&(o.entryPointElt=i.first),ue(i=_e())&&(o.argsSimpleElt=i.first),ue(i=_e())&&(o.argsJsonElt=i.first),ue(i=_e())&&(o.sessionHashElt=i.first),ue(i=_e())&&(o.sessionNameElt=i.first),ue(i=_e())&&(o.versionElt=i.first),ue(i=_e())&&(o.callPackageElt=i.first),ue(i=_e())&&(o.deployJsonElt=i.first),ue(i=_e())&&(o.paymentAmountElt=i.first),ue(i=_e())&&(o.selectDictIdentifierElt=i.first),ue(i=_e())&&(o.wasmElt=i.first),ue(i=_e())&&(o.deployFileElt=i.first),ue(i=_e())&&(o.selectNetworkElt=i.first)}},standalone:!0,features:[Cm([f_]),rd],decls:61,vars:32,consts:[[1,"container"],[1,"navbar","navbar-light"],[1,"navbar-brand"],["src","assets/logo.png","alt","CasperLabs"],["e2e-id","chain_name",1,"badge","rounded-pill","bg-success",3,"hidden"],["e2e-id","node_address",1,"badge","rounded-pill","bg-success",3,"hidden"],[1,"form-inline"],[1,"input-group"],["for","selectActionElt","for","selectNetworkElt",1,"input-group-text"],["id","selectNetworkElt","e2e-id","selectNetworkElt",1,"form-select","form-control","form-control-sm",3,"change"],["selectNetworkElt",""],["label","default"],[3,"value","selected",4,"ngFor","ngForOf"],["label","fetched",4,"ngIf"],[1,"row"],[1,"col-sm-12"],["class","alert alert-success d-flex justify-content-between align-items-center",4,"ngIf"],["class","alert alert-warning",4,"ngIf"],[1,"row","align-items-start",3,"submit"],[1,"col-sm-4","d-flex","justify-content-between"],["for","selectActionElt",1,"input-group-text"],["id","selectActionElt","e2e-id","selectActionElt",1,"form-select","form-control","form-control-sm",3,"change"],["selectActionElt",""],["label","rpc"],["label","deploy utils"],["label","deploy"],["label","contract"],[3,"value",4,"ngFor","ngForOf"],["type","button","class","btn btn-success ms-3","e2e-id","submit",3,"click",4,"ngIf"],[1,"col-sm-8","ps-0","d-flex","justify-content-end"],[1,"input-group","me-2"],["for","publicKeyElt",1,"input-group-text"],["type","search","name","public_key","placeholder","e.g. 0x","id","publicKeyElt","e2e-id","publicKeyElt",1,"form-control","form-control-xs",3,"value","change"],["publicKeyElt",""],[1,"col-sm-2","d-flex","justify-content-end","ms-3"],["name","private_key","type","file","id","privateKeyElt","accept",".pem","e2e-id","privateKeyElt",1,"visually-hidden",3,"change"],["privateKeyElt",""],["class","btn btn-secondary",3,"click",4,"ngIf"],["class","btn btn-light",3,"click",4,"ngIf"],["class","row mt-3 d-flex align-items-end",4,"ngIf"],["class","row d-flex mt-4 justify-content-start",4,"ngIf"],["class","mt-3","e2e-id","error",4,"ngIf"],[1,"mt-3"],[3,"value","selected"],["label","fetched"],[1,"alert","alert-success","d-flex","justify-content-between","align-items-center"],["e2e-id","state_root_hash"],[1,"btn","me-0",3,"click"],[1,"alert","alert-warning"],["e2e-id","account_hash"],["e2e-id","main_purse"],[3,"value"],["type","button","e2e-id","submit",1,"btn","btn-success","ms-3",3,"click"],[1,"btn","btn-secondary",3,"click"],[1,"btn","btn-light",3,"click"],[1,"row","mt-3","d-flex","align-items-end"],[1,"row","align-items-end",3,"submit"],[1,"col-sm-2","mb-2"],["for","blockIdentifierHeightElt"],[1,"form-floating"],["type","search","id","blockIdentifierHeightElt","name","block_identifier_height","e2e-id","blockIdentifierHeightElt",1,"form-control","form-control-xs",3,"value","placeholder"],["blockIdentifierHeightElt",""],[1,"col-sm-6","mb-2"],["for","blockIdentifierHashElt"],["type","search","name","block_identifier_hash","id","blockIdentifierHashElt","e2e-id","blockIdentifierHashElt",1,"form-control","form-control-xs",3,"value","placeholder"],["blockIdentifierHashElt",""],[1,"col-sm-12","mb-2"],["class","col-sm-7",4,"ngIf"],[1,"col-sm-7"],["for","accountIdentifierElt"],["type","search","name","account_identifier","placeholder","e.g. Public Key, AccountHash, Purse URef","id","accountIdentifierElt","e2e-id","accountIdentifierElt",1,"form-control","form-control-xs",3,"value"],["accountIdentifierElt",""],[1,"col-sm-7","mb-2"],["for","stateRootHashElt"],["type","search","name","state_root_hash","id","stateRootHashElt","e2e-id","stateRootHashElt",1,"form-control","form-control-xs",3,"placeholder"],["stateRootHashElt",""],["class","col-sm-7 mb-2",4,"ngIf"],["for","purseUrefElt"],["type","search","name","purse_uref","id","purseUrefElt","e2e-id","purseUrefElt",1,"form-control","form-control-xs",3,"value","placeholder"],["purseUrefElt",""],["for","purseIdentifierElt"],["type","search","name","purse_identifier","placeholder","e.g. Public Key, AccountHash, Purse URef","id","purseIdentifierElt","e2e-id","purseIdentifierElt",1,"form-control","form-control-xs",3,"value"],["purseIdentifierElt",""],["class","col-sm-12 mb-3",4,"ngIf"],[4,"ngIf"],[1,"col-sm-12","mb-3"],[1,"col-sm-5","mb-2"],["id","selectDictIdentifierElt","e2e-id","selectDictIdentifierElt",1,"form-select","form-control","form-control-sm",3,"value","change"],["selectDictIdentifierElt",""],["value","newFromSeedUref",3,"selected"],["value","newFromContractInfo",3,"selected"],["value","newFromAccountInfo",3,"selected"],["value","newFromDictionaryKey",3,"selected"],["for","seedUrefElt"],["type","search","name","seed_uref","placeholder","uref-0x","id","seedUrefElt","e2e-id","seedUrefElt",1,"form-control","form-control-xs",3,"value"],["seedUrefElt",""],["for","seedAccounttHashElt"],["type","search","name","seed_account_hash","placeholder","account-hash-0x","id","seedAccounttHashElt","e2e-id","seedAccounttHashElt",1,"form-control","form-control-xs",3,"value"],["seedAccounttHashElt",""],["for","seedContractHashElt"],["type","search","name","seed_contract_hash","placeholder","hash-0x","id","seedContractHashElt","e2e-id","seedContractHashElt",1,"form-control","form-control-xs",3,"value"],["seedContractHashElt",""],["for","seedKeyElt"],["type","search","name","seed_key","placeholder","dictionary-0x","id","seedKeyElt","e2e-id","seedKeyElt",1,"form-control","form-control-xs",3,"value"],["seedKeyElt",""],["for","seedNameElt"],["type","search","name","seed_name","placeholder","e.g. events","id","seedNameElt","e2e-id","seedNameElt",1,"form-control","form-control-xs",3,"value"],["seedNameElt",""],["for","itemKeyElt"],["type","search","name","item_key","id","itemKeyElt","e2e-id","itemKeyElt",1,"form-control","form-control-xs",3,"value","placeholder"],["itemKeyElt",""],["for","queryKeyElt"],["type","search","name","query_key","id","queryKeyElt","e2e-id","queryKeyElt",1,"form-control","form-control-xs",3,"value","placeholder"],["queryKeyElt",""],["for","queryPathElt"],["type","search","name","query_path","placeholder","e.g. counter/count","id","queryPathElt","e2e-id","queryPathElt",1,"form-control","form-control-xs",3,"value"],["queryPathElt",""],[1,"col-sm-6"],["for","deployHashElt"],["type","search","name","deploy_hash","placeholder","e.g. 0x","id","deployHashElt","e2e-id","deployHashElt",1,"form-control","form-control-xs",3,"value"],["deployHashElt",""],[1,"col-sm-2"],["for","finalizedApprovalsElt",1,"form-label"],["type","checkbox","name","finalized_approvals","id","finalizedApprovalsElt","e2e-id","finalizedApprovalsElt",1,"form-check-input","mt-0",3,"checked","value"],["finalizedApprovalsElt",""],["name","deploy_file","type","file","id","deployFileElt","accept",".json, .txt","e2e-id","deployFileElt",1,"visually-hidden",3,"change"],["deployFileElt",""],[1,"form-floating","mt-3"],["name","deploy_json","value","deploy_json","id","deployJsonElt","e2e-id","deployJsonElt",1,"form-control",2,"height","300px","white-space","pre-wrap",3,"innerHTML"],["deployJsonElt",""],["for","deployJsonElt"],["class","col-sm-2",4,"ngIf"],["class","col-sm-3",4,"ngIf"],["class","col-sm-1",4,"ngIf"],["class","col-sm-6",4,"ngIf"],["class","row mt-2",4,"ngIf"],[1,"text-nowrap"],["class","fw-light small text-nowrap",4,"ngIf"],["type","tel","id","transferAmountElt","name","transfer_amount","pattern","\\d*","maxlength","28","e2e-id","transferAmountElt",1,"form-control","form-control-xs",3,"value","placeholder","change"],["transferAmountElt",""],["for","transferAmountElt"],[1,"fw-light","small","text-nowrap"],[1,"col-sm-3"],["type","tel","id","paymentAmountElt","name","payment_amount","pattern","\\d*","maxlength","28","e2e-id","paymentAmountElt",1,"form-control","form-control-xs",3,"value","change"],["paymentAmountElt",""],[1,"col-sm-1"],["for","TTLElt"],["type","search","id","TTLElt","name","ttl","e2e-id","TTLElt",1,"form-control","form-control-xs",3,"value","placeholder"],["TTLElt",""],["for","targetAccountElt"],["type","search","name","target_account","placeholder","e.g. Public Key, AccountHash, Purse URef","id","targetAccountElt","e2e-id","targetAccountElt",1,"form-control","form-control-xs",3,"value"],["targetAccountElt",""],["name","wasm","type","file","id","wasmElt","accept",".wasm","e2e-id","wasmElt",1,"visually-hidden",3,"change"],["wasmElt",""],["class","break-all text-nowrap","class","btn btn-light","e2e-id","wasmName",3,"click",4,"ngIf"],["e2e-id","wasmName",1,"btn","btn-light",3,"click"],["fill","none","stroke","currentColor","viewBox","0 0 24 24","xmlns","http://www.w3.org/2000/svg",1,"w-6","h-6","ml-1","cursor-pointer","shrink-0"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"],[1,"row","mt-2"],["for","argsSimpleElt"],["type","search","name","args_simple","placeholder","e.g. foo:Bool='true', bar:String='value'","id","argsSimpleElt","e2e-id","argsSimpleElt",1,"form-control","form-control-xs",3,"value","disabled","change"],["argsSimpleElt",""],["for","argsJsonElt"],["type","search","name","args_json","placeholder",'e.g. [{ "name": "foo", "type": "U256", "value": 1 }]',"e2e-id","argsJsonElt",1,"form-control","form-control-xs",3,"value","disabled","change"],["argsJsonElt",""],["for","sessionHashElt"],["type","search","name","session_hash","placeholder","e.g. Contract Hash or Package Hash","id","sessionHashElt","e2e-id","sessionHashElt",1,"form-control","form-control-xs",3,"value","disabled","change"],["sessionHashElt",""],["for","callPackageElt",1,"form-label"],["type","checkbox","name","call_package","id","callPackageElt","e2e-id","callPackageElt",1,"form-check-input","mt-0",3,"checked","value","disabled"],["callPackageElt",""],[1,"col-sm-3","mb-2"],["for","versionElt"],["type","search","name","version","placeholder","e.g.1, empty for last version","id","versionElt","e2e-id","versionElt",1,"form-control","form-control-xs",3,"value","disabled"],["versionElt",""],["for","sessionNameElt"],["type","search","name","session_name","placeholder","e.g. Counter","id","sessionNameElt","e2e-id","sessionNameElt",1,"form-control","form-control-xs",3,"value","disabled","change"],["sessionNameElt",""],["for","entryPointElt"],["type","search","name","entry_point","placeholder","e.g. counter_inc","id","entryPointElt","e2e-id","entryPointElt",1,"form-control","form-control-xs",3,"value","disabled"],["entryPointElt",""],[1,"row","d-flex","mt-4","justify-content-start"],["type","button","e2e-id","sign",1,"btn","btn-warning",3,"click"],["e2e-id","error",1,"mt-3"],[1,"error","alert","alert-warning","d-flex"]],template:function(r,o){1&r&&(k(0,"main",0)(1,"nav",1)(2,"a",2),Me(3,"img",3),R(),k(4,"span",4),$(5),R(),k(6,"span",5),$(7),R(),k(8,"form",6)(9,"div",7)(10,"label",8),$(11,"RPC"),R(),k(12,"select",9,10),Ie("change",function(){return o.selectNetwork()}),Me(14,"option"),k(15,"optgroup",11),ee(16,WN,2,4,"option",12),R(),ee(17,ZN,2,1,"optgroup",13),R()()()(),k(18,"div",14)(19,"div",15),ee(20,KN,5,1,"div",16),ee(21,YN,3,1,"div",17),ee(22,QN,3,1,"div",17),R()(),k(23,"form",18),Ie("submit",function(){return!1}),k(24,"div",19)(25,"div",7)(26,"label",20),$(27,"Action"),R(),k(28,"select",21,22),Ie("change",function(a){return o.selectAction(a)}),Me(30,"option"),k(31,"optgroup",23),ee(32,XN,2,3,"option",12),R(),k(33,"optgroup",24),ee(34,ex,2,3,"option",12),R(),k(35,"optgroup",25),ee(36,tx,2,3,"option",12),R(),k(37,"optgroup",26),ee(38,nx,2,2,"option",27),R()()(),ee(39,rx,2,0,"button",28),R(),k(40,"div",29)(41,"div",30)(42,"label",31),$(43," Public Key"),R(),k(44,"input",32,33),Ie("change",function(){return o.onPublicKeyChange()}),R()(),k(46,"div",34)(47,"input",35,36),Ie("change",function(a){return o.onPemSelected(a)}),R(),ee(49,ox,2,0,"button",37),ee(50,sx,2,0,"button",38),R()()(),ee(51,ax,20,7,"div",39),ee(52,ux,12,4,"div",39),ee(53,Cx,5,6,"div",39),ee(54,Ix,16,3,"div",39),ee(55,Mx,13,2,"div",39),ee(56,Bx,8,12,"div",39),ee(57,$x,4,0,"div",40),ee(58,Ux,3,1,"section",41),k(59,"section",42),Me(60,"comp-result"),R()()),2&r&&(j(4),V("hidden",!o.chain_name),j(1),eo(o.chain_name),j(1),V("hidden",!o.node_address),j(1),eo(o.node_address),j(9),V("ngForOf",o.networks),j(1),V("ngIf",o.peers),j(3),V("ngIf",o.state_root_hash),j(1),V("ngIf",o.account_hash),j(1),V("ngIf",o.main_purse),j(10),V("ngForOf",o.sdk_rpc_methods),j(2),V("ngForOf",o.sdk_deploy_utils_methods),j(2),V("ngForOf",o.sdk_deploy_methods),j(2),V("ngForOf",o.sdk_contract_methods),j(1),V("ngIf",!lt(25,cb).includes(o.action)),j(5),V("value",o.public_key||""),j(5),V("ngIf",!o.has_private_key),j(1),V("ngIf",o.has_private_key),j(1),V("ngIf",lt(26,qx).includes(o.action)),j(1),V("ngIf",lt(27,zx).includes(o.action)),j(1),V("ngIf",lt(28,Gx).includes(o.action)),j(1),V("ngIf","get_deploy"===o.action),j(1),V("ngIf",lt(29,Wx).includes(o.action)),j(1),V("ngIf",lt(30,Jx).includes(o.action)),j(1),V("ngIf",lt(31,cb).includes(o.action)),j(1),V("ngIf",o.error))},dependencies:[Pi,uy,zd,sb,u_],styles:[".form-floating[_ngcontent-%COMP%] > label[_ngcontent-%COMP%]{color:#d3d3d3}.error[_ngcontent-%COMP%]{display:block;font-family:monospace;white-space:pre-wrap;word-break:break-word}"],changeDetection:0}),t})(),{providers:[{provide:nb,useValue:__},{provide:tb,useValue:d_},{provide:Qy,useValue:d_.wasm_asset_path},{provide:Xy,useValue:__.node_address},{provide:eb,useValue:ge.HE[d_.verbosity]},xp([yA,u_])]}).then(()=>{}).catch(()=>{})},6666:Cn=>{var cr=0;function it(c,Ae){var B=Ae.data;if(Array.isArray(B)&&!(B.length<2)){var Fe=B[0],zt=B[1],M=B[2],gt=c._callbacks[Fe];gt&&(delete c._callbacks[Fe],gt(zt,M))}}function Se(c){var Ae=this;Ae._worker=c,Ae._callbacks={},c.addEventListener("message",function(B){it(Ae,B)})}Se.prototype.postMessage=function(c){var Ae=this,B=cr++,Fe=[B,c];return new Promise(function(zt,M){if(Ae._callbacks[B]=function(Be,tt){if(Be)return M(new Error(Be.message));zt(tt)},typeof Ae._worker.controller<"u"){var gt=new MessageChannel;gt.port1.onmessage=function(Be){it(Ae,Be)},Ae._worker.controller.postMessage(Fe,[gt.port2])}else Ae._worker.postMessage(Fe)})},Cn.exports=Se},3138:(Cn,cr,it)=>{it.d(cr,{B$:()=>Wt,Bq:()=>Rs,CG:()=>wt,GD:()=>bs,HE:()=>qc,HJ:()=>$c,Jf:()=>Ot,Jj:()=>nt,Q6:()=>pn,Tz:()=>Gt,ZP:()=>qi,_R:()=>Mn,c:()=>he,g1:()=>ve,hZ:()=>at,rR:()=>Ar,u3:()=>g_,vj:()=>ys,zZ:()=>$e});var Se=it(9671);let c;Cn=it.hmd(Cn);const Ae=new Array(128).fill(void 0);function B(v){return Ae[v]}Ae.push(void 0,null,!0,!1);let Fe=Ae.length;function M(v){const s=B(v);return function zt(v){v<132||(Ae[v]=Fe,Fe=v)}(v),s}const gt=typeof TextDecoder<"u"?new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}):{decode:()=>{throw Error("TextDecoder not available")}};typeof TextDecoder<"u"&>.decode();let Be=null;function tt(){return(null===Be||0===Be.byteLength)&&(Be=new Uint8Array(c.memory.buffer)),Be}function O(v,s){return v>>>=0,gt.decode(tt().subarray(v,v+s))}function H(v){Fe===Ae.length&&Ae.push(Ae.length+1);const s=Fe;return Fe=Ae[s],Ae[s]=v,s}let D=0;const io=typeof TextEncoder<"u"?new TextEncoder("utf-8"):{encode:()=>{throw Error("TextEncoder not available")}},Vc="function"==typeof io.encodeInto?function(v,s){return io.encodeInto(v,s)}:function(v,s){const l=io.encode(v);return s.set(l),{read:v.length,written:l.length}};function C(v,s,l){if(void 0===l){const N=io.encode(v),Z=s(N.length,1)>>>0;return tt().subarray(Z,Z+N.length).set(N),D=N.length,Z}let _=v.length,p=s(_,1)>>>0;const m=tt();let S=0;for(;S<_;S++){const N=v.charCodeAt(S);if(N>127)break;m[p+S]=N}if(S!==_){0!==S&&(v=v.slice(S)),p=l(p,_,_=S+3*v.length,1)>>>0;const N=tt().subarray(p+S,p+_);S+=Vc(v,N).written}return D=S,p}function E(v){return null==v}let In=null;function w(){return(null===In||0===In.byteLength)&&(In=new Int32Array(c.memory.buffer)),In}function Tr(v){const s=typeof v;if("number"==s||"boolean"==s||null==v)return`${v}`;if("string"==s)return`"${v}"`;if("symbol"==s){const p=v.description;return null==p?"Symbol":`Symbol(${p})`}if("function"==s){const p=v.name;return"string"==typeof p&&p.length>0?`Function(${p})`:"Function"}if(Array.isArray(v)){const p=v.length;let m="[";p>0&&(m+=Tr(v[0]));for(let S=1;S1))return toString.call(v);if(_=l[1],"Object"==_)try{return"Object("+JSON.stringify(v)+")"}catch{return"Object"}return v instanceof Error?`${v.name}: ${v.message}\n${v.stack}`:_}function ws(v,s,l){c._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__he9a0163254a4b264(v,s,H(l))}function P(v,s){if(!(v instanceof s))throw new Error(`expected instance of ${s.name}`);return v.ptr}function Ar(v){let s,l;try{const m=c.__wbindgen_add_to_stack_pointer(-16),S=C(v,c.__wbindgen_malloc,c.__wbindgen_realloc);c.hexToString(m,S,D);var _=w()[m/4+0],p=w()[m/4+1];return s=_,l=p,O(_,p)}finally{c.__wbindgen_add_to_stack_pointer(16),c.__wbindgen_free(s,l,1)}}function $c(v){let s,l;try{const m=c.__wbindgen_add_to_stack_pointer(-16),S=C(v,c.__wbindgen_malloc,c.__wbindgen_realloc);c.motesToCSPR(m,S,D);var _=w()[m/4+0],p=w()[m/4+1];return s=_,l=p,O(_,p)}finally{c.__wbindgen_add_to_stack_pointer(16),c.__wbindgen_free(s,l,1)}}function ys(v,s){return M(c.jsonPrettyPrint(H(v),E(s)?3:s))}function bs(v){const s=C(v,c.__wbindgen_malloc,c.__wbindgen_realloc);return M(c.privateToPublicKey(s,D))}function g_(){return M(c.getTimestamp())}function ht(v,s){const l=s(1*v.length,1)>>>0;return tt().set(v,l/1),D=v.length,l}function ze(v,s){try{return v.apply(this,s)}catch(l){c.__wbindgen_exn_store(H(l))}}const qc=Object.freeze({Low:0,0:"Low",Medium:1,1:"Medium",High:2,2:"High"});class Qe{static __wrap(s){s>>>=0;const l=Object.create(Qe.prototype);return l.__wbg_ptr=s,l}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,s}free(){const s=this.__destroy_into_raw();c.__wbg_accounthash_free(s)}constructor(s){try{const m=c.__wbindgen_add_to_stack_pointer(-16),S=C(s,c.__wbindgen_malloc,c.__wbindgen_realloc);c.accounthash_new(m,S,D);var l=w()[m/4+0],_=w()[m/4+1];if(w()[m/4+2])throw M(_);return Qe.__wrap(l)}finally{c.__wbindgen_add_to_stack_pointer(16)}}static fromFormattedStr(s){try{const m=c.__wbindgen_add_to_stack_pointer(-16),S=C(s,c.__wbindgen_malloc,c.__wbindgen_realloc);c.accounthash_fromFormattedStr(m,S,D);var l=w()[m/4+0],_=w()[m/4+1];if(w()[m/4+2])throw M(_);return Qe.__wrap(l)}finally{c.__wbindgen_add_to_stack_pointer(16)}}static fromPublicKey(s){P(s,gn);var l=s.__destroy_into_raw();const _=c.accounthash_fromPublicKey(l);return Qe.__wrap(_)}toFormattedString(){let s,l;try{const m=c.__wbindgen_add_to_stack_pointer(-16);c.accounthash_toFormattedString(m,this.__wbg_ptr);var _=w()[m/4+0],p=w()[m/4+1];return s=_,l=p,O(_,p)}finally{c.__wbindgen_add_to_stack_pointer(16),c.__wbindgen_free(s,l,1)}}static fromUint8Array(s){const l=ht(s,c.__wbindgen_malloc),p=c.accounthash_fromUint8Array(l,D);return Qe.__wrap(p)}toJson(){return M(c.accounthash_toJson(this.__wbg_ptr))}}class fn{static __wrap(s){s>>>=0;const l=Object.create(fn.prototype);return l.__wbg_ptr=s,l}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,s}free(){const s=this.__destroy_into_raw();c.__wbg_accountidentifier_free(s)}constructor(s){try{const m=c.__wbindgen_add_to_stack_pointer(-16),S=C(s,c.__wbindgen_malloc,c.__wbindgen_realloc);c.accountidentifier_fromFormattedStr(m,S,D);var l=w()[m/4+0],_=w()[m/4+1];if(w()[m/4+2])throw M(_);return fn.__wrap(l)}finally{c.__wbindgen_add_to_stack_pointer(16)}}static fromFormattedStr(s){try{const m=c.__wbindgen_add_to_stack_pointer(-16),S=C(s,c.__wbindgen_malloc,c.__wbindgen_realloc);c.accountidentifier_fromFormattedStr(m,S,D);var l=w()[m/4+0],_=w()[m/4+1];if(w()[m/4+2])throw M(_);return fn.__wrap(l)}finally{c.__wbindgen_add_to_stack_pointer(16)}}static fromPublicKey(s){P(s,gn);var l=s.__destroy_into_raw();const _=c.accountidentifier_fromPublicKey(l);return fn.__wrap(_)}static fromAccountHash(s){P(s,Qe);var l=s.__destroy_into_raw();const _=c.accountidentifier_fromAccountHash(l);return fn.__wrap(_)}toJson(){return M(c.accountidentifier_toJson(this.__wbg_ptr))}}class vs{static __wrap(s){s>>>=0;const l=Object.create(vs.prototype);return l.__wbg_ptr=s,l}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,s}free(){const s=this.__destroy_into_raw();c.__wbg_argssimple_free(s)}}class pn{static __wrap(s){s>>>=0;const l=Object.create(pn.prototype);return l.__wbg_ptr=s,l}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,s}free(){const s=this.__destroy_into_raw();c.__wbg_blockhash_free(s)}constructor(s){try{const m=c.__wbindgen_add_to_stack_pointer(-16),S=C(s,c.__wbindgen_malloc,c.__wbindgen_realloc);c.blockhash_new(m,S,D);var l=w()[m/4+0],_=w()[m/4+1];if(w()[m/4+2])throw M(_);return pn.__wrap(l)}finally{c.__wbindgen_add_to_stack_pointer(16)}}static fromDigest(s){try{const S=c.__wbindgen_add_to_stack_pointer(-16);P(s,$e);var l=s.__destroy_into_raw();c.blockhash_fromDigest(S,l);var _=w()[S/4+0],p=w()[S/4+1];if(w()[S/4+2])throw M(p);return pn.__wrap(_)}finally{c.__wbindgen_add_to_stack_pointer(16)}}toJson(){return M(c.blockhash_toJson(this.__wbg_ptr))}toString(){let s,l;try{const m=c.__wbindgen_add_to_stack_pointer(-16);c.blockhash_toString(m,this.__wbg_ptr);var _=w()[m/4+0],p=w()[m/4+1];return s=_,l=p,O(_,p)}finally{c.__wbindgen_add_to_stack_pointer(16),c.__wbindgen_free(s,l,1)}}}class he{static __wrap(s){s>>>=0;const l=Object.create(he.prototype);return l.__wbg_ptr=s,l}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,s}free(){const s=this.__destroy_into_raw();c.__wbg_blockidentifier_free(s)}constructor(s){P(s,he);var l=s.__destroy_into_raw();const _=c.blockidentifier_new(l);return he.__wrap(_)}static from_hash(s){P(s,pn);var l=s.__destroy_into_raw();const _=c.blockidentifier_from_hash(l);return he.__wrap(_)}static fromHeight(s){const l=c.blockidentifier_fromHeight(s);return he.__wrap(l)}toJson(){return M(c.blockidentifier_toJson(this.__wbg_ptr))}}class nt{static __wrap(s){s>>>=0;const l=Object.create(nt.prototype);return l.__wbg_ptr=s,l}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,s}free(){const s=this.__destroy_into_raw();c.__wbg_bytes_free(s)}constructor(){const s=c.bytes_new();return nt.__wrap(s)}static fromUint8Array(s){const l=c.bytes_fromUint8Array(H(s));return nt.__wrap(l)}}class lr{static __wrap(s){s>>>=0;const l=Object.create(lr.prototype);return l.__wbg_ptr=s,l}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,s}free(){const s=this.__destroy_into_raw();c.__wbg_contracthash_free(s)}constructor(s){try{const m=c.__wbindgen_add_to_stack_pointer(-16),S=C(s,c.__wbindgen_malloc,c.__wbindgen_realloc);c.contracthash_fromString(m,S,D);var l=w()[m/4+0],_=w()[m/4+1];if(w()[m/4+2])throw M(_);return lr.__wrap(l)}finally{c.__wbindgen_add_to_stack_pointer(16)}}static fromFormattedStr(s){try{const m=c.__wbindgen_add_to_stack_pointer(-16),S=C(s,c.__wbindgen_malloc,c.__wbindgen_realloc);c.contracthash_fromFormattedStr(m,S,D);var l=w()[m/4+0],_=w()[m/4+1];if(w()[m/4+2])throw M(_);return lr.__wrap(l)}finally{c.__wbindgen_add_to_stack_pointer(16)}}toFormattedString(){let s,l;try{const m=c.__wbindgen_add_to_stack_pointer(-16);c.contracthash_toFormattedString(m,this.__wbg_ptr);var _=w()[m/4+0],p=w()[m/4+1];return s=_,l=p,O(_,p)}finally{c.__wbindgen_add_to_stack_pointer(16),c.__wbindgen_free(s,l,1)}}static fromUint8Array(s){const l=ht(s,c.__wbindgen_malloc),p=c.contracthash_fromUint8Array(l,D);return lr.__wrap(p)}}class rn{static __wrap(s){s>>>=0;const l=Object.create(rn.prototype);return l.__wbg_ptr=s,l}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,s}free(){const s=this.__destroy_into_raw();c.__wbg_contractpackagehash_free(s)}constructor(s){try{const m=c.__wbindgen_add_to_stack_pointer(-16),S=C(s,c.__wbindgen_malloc,c.__wbindgen_realloc);c.contractpackagehash_fromString(m,S,D);var l=w()[m/4+0],_=w()[m/4+1];if(w()[m/4+2])throw M(_);return rn.__wrap(l)}finally{c.__wbindgen_add_to_stack_pointer(16)}}static fromFormattedStr(s){try{const m=c.__wbindgen_add_to_stack_pointer(-16),S=C(s,c.__wbindgen_malloc,c.__wbindgen_realloc);c.contractpackagehash_fromFormattedStr(m,S,D);var l=w()[m/4+0],_=w()[m/4+1];if(w()[m/4+2])throw M(_);return rn.__wrap(l)}finally{c.__wbindgen_add_to_stack_pointer(16)}}toFormattedString(){let s,l;try{const m=c.__wbindgen_add_to_stack_pointer(-16);c.contractpackagehash_toFormattedString(m,this.__wbg_ptr);var _=w()[m/4+0],p=w()[m/4+1];return s=_,l=p,O(_,p)}finally{c.__wbindgen_add_to_stack_pointer(16),c.__wbindgen_free(s,l,1)}}static fromUint8Array(s){const l=ht(s,c.__wbindgen_malloc),p=c.contractpackagehash_fromUint8Array(l,D);return rn.__wrap(p)}}class ve{static __wrap(s){s>>>=0;const l=Object.create(ve.prototype);return l.__wbg_ptr=s,l}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,s}free(){const s=this.__destroy_into_raw();c.__wbg_deploy_free(s)}constructor(s){const l=c.deploy_new(H(s));return ve.__wrap(l)}toJson(){return M(c.deploy_toJson(this.__wbg_ptr))}static withPaymentAndSession(s,l,_){try{const oe=c.__wbindgen_add_to_stack_pointer(-16);P(s,at);var p=s.__destroy_into_raw();P(l,Wt);var m=l.__destroy_into_raw();P(_,Ot);var S=_.__destroy_into_raw();c.deploy_withPaymentAndSession(oe,p,m,S);var N=w()[oe/4+0],Z=w()[oe/4+1];if(w()[oe/4+2])throw M(Z);return ve.__wrap(N)}finally{c.__wbindgen_add_to_stack_pointer(16)}}static withTransfer(s,l,_,p,m){try{const Re=c.__wbindgen_add_to_stack_pointer(-16),ut=C(s,c.__wbindgen_malloc,c.__wbindgen_realloc),yt=D,St=C(l,c.__wbindgen_malloc,c.__wbindgen_realloc),Zt=D;var S=E(_)?0:C(_,c.__wbindgen_malloc,c.__wbindgen_realloc),N=D;P(p,at);var Z=p.__destroy_into_raw();P(m,Ot);var le=m.__destroy_into_raw();c.deploy_withTransfer(Re,ut,yt,St,Zt,S,N,Z,le);var oe=w()[Re/4+0],Ne=w()[Re/4+1];if(w()[Re/4+2])throw M(Ne);return ve.__wrap(oe)}finally{c.__wbindgen_add_to_stack_pointer(16)}}withTTL(s,l){const _=C(s,c.__wbindgen_malloc,c.__wbindgen_realloc),p=D;var m=E(l)?0:C(l,c.__wbindgen_malloc,c.__wbindgen_realloc);const N=c.deploy_withTTL(this.__wbg_ptr,_,p,m,D);return ve.__wrap(N)}withTimestamp(s,l){const _=C(s,c.__wbindgen_malloc,c.__wbindgen_realloc),p=D;var m=E(l)?0:C(l,c.__wbindgen_malloc,c.__wbindgen_realloc);const N=c.deploy_withTimestamp(this.__wbg_ptr,_,p,m,D);return ve.__wrap(N)}withChainName(s,l){const _=C(s,c.__wbindgen_malloc,c.__wbindgen_realloc),p=D;var m=E(l)?0:C(l,c.__wbindgen_malloc,c.__wbindgen_realloc);const N=c.deploy_withChainName(this.__wbg_ptr,_,p,m,D);return ve.__wrap(N)}withAccount(s,l){P(s,gn);var _=s.__destroy_into_raw(),p=E(l)?0:C(l,c.__wbindgen_malloc,c.__wbindgen_realloc);const S=c.deploy_withAccount(this.__wbg_ptr,_,p,D);return ve.__wrap(S)}withEntryPointName(s,l){const _=C(s,c.__wbindgen_malloc,c.__wbindgen_realloc),p=D;var m=E(l)?0:C(l,c.__wbindgen_malloc,c.__wbindgen_realloc);const N=c.deploy_withEntryPointName(this.__wbg_ptr,_,p,m,D);return ve.__wrap(N)}withHash(s,l){P(s,lr);var _=s.__destroy_into_raw(),p=E(l)?0:C(l,c.__wbindgen_malloc,c.__wbindgen_realloc);const S=c.deploy_withHash(this.__wbg_ptr,_,p,D);return ve.__wrap(S)}withPackageHash(s,l){P(s,rn);var _=s.__destroy_into_raw(),p=E(l)?0:C(l,c.__wbindgen_malloc,c.__wbindgen_realloc);const S=c.deploy_withPackageHash(this.__wbg_ptr,_,p,D);return ve.__wrap(S)}withModuleBytes(s,l){P(s,nt);var _=s.__destroy_into_raw(),p=E(l)?0:C(l,c.__wbindgen_malloc,c.__wbindgen_realloc);const S=c.deploy_withModuleBytes(this.__wbg_ptr,_,p,D);return ve.__wrap(S)}withSecretKey(s){var l=E(s)?0:C(s,c.__wbindgen_malloc,c.__wbindgen_realloc);const p=c.deploy_withSecretKey(this.__wbg_ptr,l,D);return ve.__wrap(p)}withStandardPayment(s,l){const _=C(s,c.__wbindgen_malloc,c.__wbindgen_realloc),p=D;var m=E(l)?0:C(l,c.__wbindgen_malloc,c.__wbindgen_realloc);const N=c.deploy_withStandardPayment(this.__wbg_ptr,_,p,m,D);return ve.__wrap(N)}withPayment(s,l){var _=E(l)?0:C(l,c.__wbindgen_malloc,c.__wbindgen_realloc),p=D;const m=c.deploy_withPayment(this.__wbg_ptr,H(s),_,p);return ve.__wrap(m)}withSession(s,l){var _=E(l)?0:C(l,c.__wbindgen_malloc,c.__wbindgen_realloc),p=D;const m=c.deploy_withSession(this.__wbg_ptr,H(s),_,p);return ve.__wrap(m)}validateDeploySize(){return 0!==c.deploy_validateDeploySize(this.__wbg_ptr)}sign(s){const l=C(s,c.__wbindgen_malloc,c.__wbindgen_realloc),p=c.deploy_sign(this.__wbg_ptr,l,D);return ve.__wrap(p)}TTL(){let s,l;try{const m=c.__wbindgen_add_to_stack_pointer(-16);c.deploy_TTL(m,this.__wbg_ptr);var _=w()[m/4+0],p=w()[m/4+1];return s=_,l=p,O(_,p)}finally{c.__wbindgen_add_to_stack_pointer(16),c.__wbindgen_free(s,l,1)}}timestamp(){let s,l;try{const m=c.__wbindgen_add_to_stack_pointer(-16);c.deploy_timestamp(m,this.__wbg_ptr);var _=w()[m/4+0],p=w()[m/4+1];return s=_,l=p,O(_,p)}finally{c.__wbindgen_add_to_stack_pointer(16),c.__wbindgen_free(s,l,1)}}chainName(){let s,l;try{const m=c.__wbindgen_add_to_stack_pointer(-16);c.deploy_chainName(m,this.__wbg_ptr);var _=w()[m/4+0],p=w()[m/4+1];return s=_,l=p,O(_,p)}finally{c.__wbindgen_add_to_stack_pointer(16),c.__wbindgen_free(s,l,1)}}account(){let s,l;try{const m=c.__wbindgen_add_to_stack_pointer(-16);c.deploy_account(m,this.__wbg_ptr);var _=w()[m/4+0],p=w()[m/4+1];return s=_,l=p,O(_,p)}finally{c.__wbindgen_add_to_stack_pointer(16),c.__wbindgen_free(s,l,1)}}args(){return M(c.deploy_args(this.__wbg_ptr))}addArg(s,l){var _=E(l)?0:C(l,c.__wbindgen_malloc,c.__wbindgen_realloc),p=D;const m=c.deploy_addArg(this.__wbg_ptr,H(s),_,p);return ve.__wrap(m)}}class Sn{static __wrap(s){s>>>=0;const l=Object.create(Sn.prototype);return l.__wbg_ptr=s,l}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,s}free(){const s=this.__destroy_into_raw();c.__wbg_deployhash_free(s)}constructor(s){try{const m=c.__wbindgen_add_to_stack_pointer(-16),S=C(s,c.__wbindgen_malloc,c.__wbindgen_realloc);c.deployhash_new(m,S,D);var l=w()[m/4+0],_=w()[m/4+1];if(w()[m/4+2])throw M(_);return Sn.__wrap(l)}finally{c.__wbindgen_add_to_stack_pointer(16)}}static fromDigest(s){try{const S=c.__wbindgen_add_to_stack_pointer(-16);P(s,$e);var l=s.__destroy_into_raw();c.deployhash_fromDigest(S,l);var _=w()[S/4+0],p=w()[S/4+1];if(w()[S/4+2])throw M(p);return Sn.__wrap(_)}finally{c.__wbindgen_add_to_stack_pointer(16)}}toJson(){return M(c.deployhash_toJson(this.__wbg_ptr))}toString(){let s,l;try{const m=c.__wbindgen_add_to_stack_pointer(-16);c.deployhash_toString(m,this.__wbg_ptr);var _=w()[m/4+0],p=w()[m/4+1];return s=_,l=p,O(_,p)}finally{c.__wbindgen_add_to_stack_pointer(16),c.__wbindgen_free(s,l,1)}}}class at{static __wrap(s){s>>>=0;const l=Object.create(at.prototype);return l.__wbg_ptr=s,l}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,s}free(){const s=this.__destroy_into_raw();c.__wbg_deploystrparams_free(s)}constructor(s,l,_,p,m){const S=C(s,c.__wbindgen_malloc,c.__wbindgen_realloc),N=D,Z=C(l,c.__wbindgen_malloc,c.__wbindgen_realloc),le=D;var oe=E(_)?0:C(_,c.__wbindgen_malloc,c.__wbindgen_realloc),Ne=D,Ue=E(p)?0:C(p,c.__wbindgen_malloc,c.__wbindgen_realloc),Re=D,ut=E(m)?0:C(m,c.__wbindgen_malloc,c.__wbindgen_realloc);const St=c.deploystrparams_new(S,N,Z,le,oe,Ne,Ue,Re,ut,D);return at.__wrap(St)}get secret_key(){try{const _=c.__wbindgen_add_to_stack_pointer(-16);c.deploystrparams_secret_key(_,this.__wbg_ptr);var s=w()[_/4+0],l=w()[_/4+1];let p;return 0!==s&&(p=O(s,l).slice(),c.__wbindgen_free(s,1*l)),p}finally{c.__wbindgen_add_to_stack_pointer(16)}}set secret_key(s){const l=C(s,c.__wbindgen_malloc,c.__wbindgen_realloc);c.deploystrparams_set_secret_key(this.__wbg_ptr,l,D)}get timestamp(){try{const _=c.__wbindgen_add_to_stack_pointer(-16);c.deploystrparams_timestamp(_,this.__wbg_ptr);var s=w()[_/4+0],l=w()[_/4+1];let p;return 0!==s&&(p=O(s,l).slice(),c.__wbindgen_free(s,1*l)),p}finally{c.__wbindgen_add_to_stack_pointer(16)}}set timestamp(s){var l=E(s)?0:C(s,c.__wbindgen_malloc,c.__wbindgen_realloc);c.deploystrparams_set_timestamp(this.__wbg_ptr,l,D)}setDefaultTimestamp(){c.deploystrparams_setDefaultTimestamp(this.__wbg_ptr)}get ttl(){try{const _=c.__wbindgen_add_to_stack_pointer(-16);c.deploystrparams_ttl(_,this.__wbg_ptr);var s=w()[_/4+0],l=w()[_/4+1];let p;return 0!==s&&(p=O(s,l).slice(),c.__wbindgen_free(s,1*l)),p}finally{c.__wbindgen_add_to_stack_pointer(16)}}set ttl(s){var l=E(s)?0:C(s,c.__wbindgen_malloc,c.__wbindgen_realloc);c.deploystrparams_set_ttl(this.__wbg_ptr,l,D)}setDefaultTTL(){c.deploystrparams_setDefaultTTL(this.__wbg_ptr)}get chain_name(){try{const _=c.__wbindgen_add_to_stack_pointer(-16);c.deploystrparams_chain_name(_,this.__wbg_ptr);var s=w()[_/4+0],l=w()[_/4+1];let p;return 0!==s&&(p=O(s,l).slice(),c.__wbindgen_free(s,1*l)),p}finally{c.__wbindgen_add_to_stack_pointer(16)}}set chain_name(s){const l=C(s,c.__wbindgen_malloc,c.__wbindgen_realloc);c.deploystrparams_set_chain_name(this.__wbg_ptr,l,D)}get session_account(){try{const _=c.__wbindgen_add_to_stack_pointer(-16);c.deploystrparams_session_account(_,this.__wbg_ptr);var s=w()[_/4+0],l=w()[_/4+1];let p;return 0!==s&&(p=O(s,l).slice(),c.__wbindgen_free(s,1*l)),p}finally{c.__wbindgen_add_to_stack_pointer(16)}}set session_account(s){const l=C(s,c.__wbindgen_malloc,c.__wbindgen_realloc);c.deploystrparams_set_session_account(this.__wbg_ptr,l,D)}}class Nr{static __wrap(s){s>>>=0;const l=Object.create(Nr.prototype);return l.__wbg_ptr=s,l}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,s}free(){const s=this.__destroy_into_raw();c.__wbg_dictionaryaddr_free(s)}constructor(s){try{const m=c.__wbindgen_add_to_stack_pointer(-16),S=ht(s,c.__wbindgen_malloc);c.dictionaryaddr_new(m,S,D);var l=w()[m/4+0],_=w()[m/4+1];if(w()[m/4+2])throw M(_);return Nr.__wrap(l)}finally{c.__wbindgen_add_to_stack_pointer(16)}}}class Gt{static __wrap(s){s>>>=0;const l=Object.create(Gt.prototype);return l.__wbg_ptr=s,l}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,s}free(){const s=this.__destroy_into_raw();c.__wbg_dictionaryitemidentifier_free(s)}static newFromAccountInfo(s,l,_){try{const N=c.__wbindgen_add_to_stack_pointer(-16),Z=C(s,c.__wbindgen_malloc,c.__wbindgen_realloc),le=D,oe=C(l,c.__wbindgen_malloc,c.__wbindgen_realloc),Ne=D,Ue=C(_,c.__wbindgen_malloc,c.__wbindgen_realloc);c.dictionaryitemidentifier_newFromAccountInfo(N,Z,le,oe,Ne,Ue,D);var p=w()[N/4+0],m=w()[N/4+1];if(w()[N/4+2])throw M(m);return Gt.__wrap(p)}finally{c.__wbindgen_add_to_stack_pointer(16)}}static newFromContractInfo(s,l,_){try{const N=c.__wbindgen_add_to_stack_pointer(-16),Z=C(s,c.__wbindgen_malloc,c.__wbindgen_realloc),le=D,oe=C(l,c.__wbindgen_malloc,c.__wbindgen_realloc),Ne=D,Ue=C(_,c.__wbindgen_malloc,c.__wbindgen_realloc);c.dictionaryitemidentifier_newFromContractInfo(N,Z,le,oe,Ne,Ue,D);var p=w()[N/4+0],m=w()[N/4+1];if(w()[N/4+2])throw M(m);return Gt.__wrap(p)}finally{c.__wbindgen_add_to_stack_pointer(16)}}static newFromSeedUref(s,l){try{const S=c.__wbindgen_add_to_stack_pointer(-16),N=C(s,c.__wbindgen_malloc,c.__wbindgen_realloc),Z=D,le=C(l,c.__wbindgen_malloc,c.__wbindgen_realloc);c.dictionaryitemidentifier_newFromSeedUref(S,N,Z,le,D);var _=w()[S/4+0],p=w()[S/4+1];if(w()[S/4+2])throw M(p);return Gt.__wrap(_)}finally{c.__wbindgen_add_to_stack_pointer(16)}}static newFromDictionaryKey(s){try{const m=c.__wbindgen_add_to_stack_pointer(-16),S=C(s,c.__wbindgen_malloc,c.__wbindgen_realloc);c.dictionaryitemidentifier_newFromDictionaryKey(m,S,D);var l=w()[m/4+0],_=w()[m/4+1];if(w()[m/4+2])throw M(_);return Gt.__wrap(l)}finally{c.__wbindgen_add_to_stack_pointer(16)}}toJson(){return M(c.dictionaryitemidentifier_toJson(this.__wbg_ptr))}}class Mn{static __wrap(s){s>>>=0;const l=Object.create(Mn.prototype);return l.__wbg_ptr=s,l}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,s}free(){const s=this.__destroy_into_raw();c.__wbg_dictionaryitemstrparams_free(s)}constructor(){const s=c.dictionaryitemstrparams_new();return Mn.__wrap(s)}setAccountNamedKey(s,l,_){const p=C(s,c.__wbindgen_malloc,c.__wbindgen_realloc),m=D,S=C(l,c.__wbindgen_malloc,c.__wbindgen_realloc),N=D,Z=C(_,c.__wbindgen_malloc,c.__wbindgen_realloc);c.dictionaryitemstrparams_setAccountNamedKey(this.__wbg_ptr,p,m,S,N,Z,D)}setContractNamedKey(s,l,_){const p=C(s,c.__wbindgen_malloc,c.__wbindgen_realloc),m=D,S=C(l,c.__wbindgen_malloc,c.__wbindgen_realloc),N=D,Z=C(_,c.__wbindgen_malloc,c.__wbindgen_realloc);c.dictionaryitemstrparams_setContractNamedKey(this.__wbg_ptr,p,m,S,N,Z,D)}setUref(s,l){const _=C(s,c.__wbindgen_malloc,c.__wbindgen_realloc),p=D,m=C(l,c.__wbindgen_malloc,c.__wbindgen_realloc);c.dictionaryitemstrparams_setUref(this.__wbg_ptr,_,p,m,D)}setDictionary(s){const l=C(s,c.__wbindgen_malloc,c.__wbindgen_realloc);c.dictionaryitemstrparams_setDictionary(this.__wbg_ptr,l,D)}toJson(){return M(c.dictionaryitemstrparams_toJson(this.__wbg_ptr))}}class $e{static __wrap(s){s>>>=0;const l=Object.create($e.prototype);return l.__wbg_ptr=s,l}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,s}free(){const s=this.__destroy_into_raw();c.__wbg_digest_free(s)}constructor(s){try{const m=c.__wbindgen_add_to_stack_pointer(-16),S=C(s,c.__wbindgen_malloc,c.__wbindgen_realloc);c.digest__new(m,S,D);var l=w()[m/4+0],_=w()[m/4+1];if(w()[m/4+2])throw M(_);return $e.__wrap(l)}finally{c.__wbindgen_add_to_stack_pointer(16)}}static fromString(s){try{const m=c.__wbindgen_add_to_stack_pointer(-16),S=C(s,c.__wbindgen_malloc,c.__wbindgen_realloc);c.digest__new(m,S,D);var l=w()[m/4+0],_=w()[m/4+1];if(w()[m/4+2])throw M(_);return $e.__wrap(l)}finally{c.__wbindgen_add_to_stack_pointer(16)}}static fromDigest(s){try{const m=c.__wbindgen_add_to_stack_pointer(-16),S=ht(s,c.__wbindgen_malloc);c.digest_fromDigest(m,S,D);var l=w()[m/4+0],_=w()[m/4+1];if(w()[m/4+2])throw M(_);return $e.__wrap(l)}finally{c.__wbindgen_add_to_stack_pointer(16)}}toJson(){return M(c.digest_toJson(this.__wbg_ptr))}toString(){let s,l;try{const m=c.__wbindgen_add_to_stack_pointer(-16);c.digest_toString(m,this.__wbg_ptr);var _=w()[m/4+0],p=w()[m/4+1];return s=_,l=p,O(_,p)}finally{c.__wbindgen_add_to_stack_pointer(16),c.__wbindgen_free(s,l,1)}}}class Ds{static __wrap(s){s>>>=0;const l=Object.create(Ds.prototype);return l.__wbg_ptr=s,l}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,s}free(){const s=this.__destroy_into_raw();c.__wbg_eraid_free(s)}constructor(s){const l=c.eraid_new(s);return Ds.__wrap(l)}value(){const s=c.eraid_value(this.__wbg_ptr);return BigInt.asUintN(64,s)}}class Vi{static __wrap(s){s>>>=0;const l=Object.create(Vi.prototype);return l.__wbg_ptr=s,l}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,s}free(){const s=this.__destroy_into_raw();c.__wbg_getaccountresult_free(s)}get api_version(){return M(c.getaccountresult_api_version(this.__wbg_ptr))}get account(){return M(c.getaccountresult_account(this.__wbg_ptr))}get merkle_proof(){let s,l;try{const m=c.__wbindgen_add_to_stack_pointer(-16);c.getaccountresult_merkle_proof(m,this.__wbg_ptr);var _=w()[m/4+0],p=w()[m/4+1];return s=_,l=p,O(_,p)}finally{c.__wbindgen_add_to_stack_pointer(16),c.__wbindgen_free(s,l,1)}}toJson(){return M(c.getaccountresult_toJson(this.__wbg_ptr))}}class Bi{static __wrap(s){s>>>=0;const l=Object.create(Bi.prototype);return l.__wbg_ptr=s,l}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,s}free(){const s=this.__destroy_into_raw();c.__wbg_getauctioninforesult_free(s)}get api_version(){return M(c.getauctioninforesult_api_version(this.__wbg_ptr))}get auction_state(){return M(c.getauctioninforesult_auction_state(this.__wbg_ptr))}toJson(){return M(c.getauctioninforesult_toJson(this.__wbg_ptr))}}class Es{static __wrap(s){s>>>=0;const l=Object.create(Es.prototype);return l.__wbg_ptr=s,l}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,s}free(){const s=this.__destroy_into_raw();c.__wbg_getbalanceresult_free(s)}get api_version(){return M(c.getbalanceresult_api_version(this.__wbg_ptr))}get balance_value(){return M(c.getbalanceresult_balance_value(this.__wbg_ptr))}get merkle_proof(){let s,l;try{const m=c.__wbindgen_add_to_stack_pointer(-16);c.getbalanceresult_merkle_proof(m,this.__wbg_ptr);var _=w()[m/4+0],p=w()[m/4+1];return s=_,l=p,O(_,p)}finally{c.__wbindgen_add_to_stack_pointer(16),c.__wbindgen_free(s,l,1)}}toJson(){return M(c.getbalanceresult_toJson(this.__wbg_ptr))}}class lo{static __wrap(s){s>>>=0;const l=Object.create(lo.prototype);return l.__wbg_ptr=s,l}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,s}free(){const s=this.__destroy_into_raw();c.__wbg_getblockresult_free(s)}get api_version(){return M(c.getblockresult_api_version(this.__wbg_ptr))}get block(){return M(c.getblockresult_block(this.__wbg_ptr))}toJson(){return M(c.getblockresult_toJson(this.__wbg_ptr))}}class Cs{static __wrap(s){s>>>=0;const l=Object.create(Cs.prototype);return l.__wbg_ptr=s,l}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,s}free(){const s=this.__destroy_into_raw();c.__wbg_getblocktransfersresult_free(s)}get api_version(){return M(c.getblocktransfersresult_api_version(this.__wbg_ptr))}get block_hash(){const s=c.getblocktransfersresult_block_hash(this.__wbg_ptr);return 0===s?void 0:pn.__wrap(s)}get transfers(){return M(c.getblocktransfersresult_transfers(this.__wbg_ptr))}toJson(){return M(c.getblocktransfersresult_toJson(this.__wbg_ptr))}}class xr{static __wrap(s){s>>>=0;const l=Object.create(xr.prototype);return l.__wbg_ptr=s,l}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,s}free(){const s=this.__destroy_into_raw();c.__wbg_getchainspecresult_free(s)}get api_version(){return M(c.getchainspecresult_api_version(this.__wbg_ptr))}get chainspec_bytes(){return M(c.getchainspecresult_chainspec_bytes(this.__wbg_ptr))}toJson(){return M(c.getchainspecresult_toJson(this.__wbg_ptr))}}class Is{static __wrap(s){s>>>=0;const l=Object.create(Is.prototype);return l.__wbg_ptr=s,l}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,s}free(){const s=this.__destroy_into_raw();c.__wbg_getdeployresult_free(s)}get api_version(){return M(c.getdeployresult_api_version(this.__wbg_ptr))}get deploy(){const s=c.getdeployresult_deploy(this.__wbg_ptr);return ve.__wrap(s)}toJson(){return M(c.getdeployresult_toJson(this.__wbg_ptr))}}class Rr{static __wrap(s){s>>>=0;const l=Object.create(Rr.prototype);return l.__wbg_ptr=s,l}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,s}free(){const s=this.__destroy_into_raw();c.__wbg_getdictionaryitemresult_free(s)}get api_version(){return M(c.getdictionaryitemresult_api_version(this.__wbg_ptr))}get dictionary_key(){let s,l;try{const m=c.__wbindgen_add_to_stack_pointer(-16);c.getdictionaryitemresult_dictionary_key(m,this.__wbg_ptr);var _=w()[m/4+0],p=w()[m/4+1];return s=_,l=p,O(_,p)}finally{c.__wbindgen_add_to_stack_pointer(16),c.__wbindgen_free(s,l,1)}}get stored_value(){return M(c.getdictionaryitemresult_stored_value(this.__wbg_ptr))}get merkle_proof(){let s,l;try{const m=c.__wbindgen_add_to_stack_pointer(-16);c.getdictionaryitemresult_merkle_proof(m,this.__wbg_ptr);var _=w()[m/4+0],p=w()[m/4+1];return s=_,l=p,O(_,p)}finally{c.__wbindgen_add_to_stack_pointer(16),c.__wbindgen_free(s,l,1)}}toJson(){return M(c.getdictionaryitemresult_toJson(this.__wbg_ptr))}}class uo{static __wrap(s){s>>>=0;const l=Object.create(uo.prototype);return l.__wbg_ptr=s,l}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,s}free(){const s=this.__destroy_into_raw();c.__wbg_geterainforesult_free(s)}get api_version(){return M(c.geterainforesult_api_version(this.__wbg_ptr))}get era_summary(){return M(c.geterainforesult_era_summary(this.__wbg_ptr))}toJson(){return M(c.geterainforesult_toJson(this.__wbg_ptr))}}class Ss{static __wrap(s){s>>>=0;const l=Object.create(Ss.prototype);return l.__wbg_ptr=s,l}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,s}free(){const s=this.__destroy_into_raw();c.__wbg_geterasummaryresult_free(s)}get api_version(){return M(c.geterasummaryresult_api_version(this.__wbg_ptr))}get era_summary(){return M(c.geterasummaryresult_era_summary(this.__wbg_ptr))}toJson(){return M(c.geterasummaryresult_toJson(this.__wbg_ptr))}}class Ms{static __wrap(s){s>>>=0;const l=Object.create(Ms.prototype);return l.__wbg_ptr=s,l}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,s}free(){const s=this.__destroy_into_raw();c.__wbg_getnodestatusresult_free(s)}get api_version(){return M(c.getnodestatusresult_api_version(this.__wbg_ptr))}get chainspec_name(){let s,l;try{const m=c.__wbindgen_add_to_stack_pointer(-16);c.getnodestatusresult_chainspec_name(m,this.__wbg_ptr);var _=w()[m/4+0],p=w()[m/4+1];return s=_,l=p,O(_,p)}finally{c.__wbindgen_add_to_stack_pointer(16),c.__wbindgen_free(s,l,1)}}get starting_state_root_hash(){const s=c.getnodestatusresult_starting_state_root_hash(this.__wbg_ptr);return $e.__wrap(s)}get peers(){return M(c.getnodestatusresult_peers(this.__wbg_ptr))}get last_added_block_info(){return M(c.getnodestatusresult_last_added_block_info(this.__wbg_ptr))}get our_public_signing_key(){const s=c.getnodestatusresult_our_public_signing_key(this.__wbg_ptr);return 0===s?void 0:gn.__wrap(s)}get round_length(){return M(c.getnodestatusresult_round_length(this.__wbg_ptr))}get next_upgrade(){return M(c.getnodestatusresult_next_upgrade(this.__wbg_ptr))}get build_version(){let s,l;try{const m=c.__wbindgen_add_to_stack_pointer(-16);c.getnodestatusresult_build_version(m,this.__wbg_ptr);var _=w()[m/4+0],p=w()[m/4+1];return s=_,l=p,O(_,p)}finally{c.__wbindgen_add_to_stack_pointer(16),c.__wbindgen_free(s,l,1)}}get uptime(){return M(c.getnodestatusresult_uptime(this.__wbg_ptr))}get reactor_state(){return M(c.getnodestatusresult_reactor_state(this.__wbg_ptr))}get last_progress(){return M(c.getnodestatusresult_last_progress(this.__wbg_ptr))}get available_block_range(){return M(c.getnodestatusresult_available_block_range(this.__wbg_ptr))}get block_sync(){return M(c.getnodestatusresult_block_sync(this.__wbg_ptr))}toJson(){return M(c.getnodestatusresult_toJson(this.__wbg_ptr))}}class ks{static __wrap(s){s>>>=0;const l=Object.create(ks.prototype);return l.__wbg_ptr=s,l}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,s}free(){const s=this.__destroy_into_raw();c.__wbg_getpeersresult_free(s)}get api_version(){return M(c.getpeersresult_api_version(this.__wbg_ptr))}get peers(){return M(c.getpeersresult_peers(this.__wbg_ptr))}toJson(){return M(c.getpeersresult_toJson(this.__wbg_ptr))}}class on{static __wrap(s){s>>>=0;const l=Object.create(on.prototype);return l.__wbg_ptr=s,l}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,s}free(){const s=this.__destroy_into_raw();c.__wbg_getstateroothashresult_free(s)}get api_version(){return M(c.getstateroothashresult_api_version(this.__wbg_ptr))}get state_root_hash(){const s=c.getstateroothashresult_state_root_hash(this.__wbg_ptr);return 0===s?void 0:$e.__wrap(s)}get state_root_hash_as_string(){let s,l;try{const m=c.__wbindgen_add_to_stack_pointer(-16);c.getstateroothashresult_state_root_hash_as_string(m,this.__wbg_ptr);var _=w()[m/4+0],p=w()[m/4+1];return s=_,l=p,O(_,p)}finally{c.__wbindgen_add_to_stack_pointer(16),c.__wbindgen_free(s,l,1)}}toJson(){return M(c.getstateroothashresult_toJson(this.__wbg_ptr))}}class _o{static __wrap(s){s>>>=0;const l=Object.create(_o.prototype);return l.__wbg_ptr=s,l}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,s}free(){const s=this.__destroy_into_raw();c.__wbg_getvalidatorchangesresult_free(s)}get api_version(){return M(c.getvalidatorchangesresult_api_version(this.__wbg_ptr))}get changes(){return M(c.getvalidatorchangesresult_changes(this.__wbg_ptr))}toJson(){return M(c.getvalidatorchangesresult_toJson(this.__wbg_ptr))}}class wt{static __wrap(s){s>>>=0;const l=Object.create(wt.prototype);return l.__wbg_ptr=s,l}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,s}free(){const s=this.__destroy_into_raw();c.__wbg_globalstateidentifier_free(s)}constructor(s){P(s,wt);var l=s.__destroy_into_raw();const _=c.blockidentifier_new(l);return wt.__wrap(_)}static fromBlockHash(s){P(s,pn);var l=s.__destroy_into_raw();const _=c.blockidentifier_from_hash(l);return wt.__wrap(_)}static fromBlockHeight(s){const l=c.blockidentifier_fromHeight(s);return wt.__wrap(l)}static fromStateRootHash(s){P(s,$e);var l=s.__destroy_into_raw();const _=c.globalstateidentifier_fromStateRootHash(l);return wt.__wrap(_)}toJson(){return M(c.globalstateidentifier_toJson(this.__wbg_ptr))}}class ur{static __wrap(s){s>>>=0;const l=Object.create(ur.prototype);return l.__wbg_ptr=s,l}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,s}free(){const s=this.__destroy_into_raw();c.__wbg_hashaddr_free(s)}constructor(s){try{const m=c.__wbindgen_add_to_stack_pointer(-16),S=ht(s,c.__wbindgen_malloc);c.hashaddr_new(m,S,D);var l=w()[m/4+0],_=w()[m/4+1];if(w()[m/4+2])throw M(_);return ur.__wrap(l)}finally{c.__wbindgen_add_to_stack_pointer(16)}}}class xe{static __wrap(s){s>>>=0;const l=Object.create(xe.prototype);return l.__wbg_ptr=s,l}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,s}free(){const s=this.__destroy_into_raw();c.__wbg_key_free(s)}constructor(s){try{const S=c.__wbindgen_add_to_stack_pointer(-16);P(s,xe);var l=s.__destroy_into_raw();c.key_new(S,l);var _=w()[S/4+0],p=w()[S/4+1];if(w()[S/4+2])throw M(p);return xe.__wrap(_)}finally{c.__wbindgen_add_to_stack_pointer(16)}}toJson(){return M(c.key_toJson(this.__wbg_ptr))}static fromURef(s){P(s,Ft);var l=s.__destroy_into_raw();const _=c.key_fromURef(l);return xe.__wrap(_)}static fromDeployInfo(s){P(s,Sn);var l=s.__destroy_into_raw();const _=c.key_fromDeployInfo(l);return xe.__wrap(_)}static fromAccount(s){P(s,Qe);var l=s.__destroy_into_raw();const _=c.key_fromAccount(l);return xe.__wrap(_)}static fromHash(s){P(s,ur);var l=s.__destroy_into_raw();const _=c.key_fromHash(l);return xe.__wrap(_)}static fromTransfer(s){const l=ht(s,c.__wbindgen_malloc),p=c.key_fromTransfer(l,D);return dr.__wrap(p)}static fromEraInfo(s){P(s,Ds);var l=s.__destroy_into_raw();const _=c.key_fromEraInfo(l);return xe.__wrap(_)}static fromBalance(s){P(s,_r);var l=s.__destroy_into_raw();const _=c.key_fromBalance(l);return xe.__wrap(_)}static fromBid(s){P(s,Qe);var l=s.__destroy_into_raw();const _=c.key_fromBid(l);return xe.__wrap(_)}static fromWithdraw(s){P(s,Qe);var l=s.__destroy_into_raw();const _=c.key_fromWithdraw(l);return xe.__wrap(_)}static fromDictionaryAddr(s){P(s,Nr);var l=s.__destroy_into_raw();const _=c.key_fromDictionaryAddr(l);return xe.__wrap(_)}asDictionaryAddr(){const s=c.key_asDictionaryAddr(this.__wbg_ptr);return 0===s?void 0:Nr.__wrap(s)}static fromSystemContractRegistry(){const s=c.key_fromSystemContractRegistry();return xe.__wrap(s)}static fromEraSummary(){const s=c.key_fromEraSummary();return xe.__wrap(s)}static fromUnbond(s){P(s,Qe);var l=s.__destroy_into_raw();const _=c.key_fromUnbond(l);return xe.__wrap(_)}static fromChainspecRegistry(){const s=c.key_fromChainspecRegistry();return xe.__wrap(s)}static fromChecksumRegistry(){const s=c.key_fromChecksumRegistry();return xe.__wrap(s)}toFormattedString(){let s,l;try{const m=c.__wbindgen_add_to_stack_pointer(-16);c.key_toFormattedString(m,this.__wbg_ptr);var _=w()[m/4+0],p=w()[m/4+1];return s=_,l=p,O(_,p)}finally{c.__wbindgen_add_to_stack_pointer(16),c.__wbindgen_free(s,l,1)}}static fromFormattedString(s){try{const m=c.__wbindgen_add_to_stack_pointer(-16);c.key_fromFormattedString(m,H(s));var l=w()[m/4+0],_=w()[m/4+1];if(w()[m/4+2])throw M(_);return xe.__wrap(l)}finally{c.__wbindgen_add_to_stack_pointer(16)}}static fromDictionaryKey(s,l){P(s,Ft);var _=s.__destroy_into_raw();const p=ht(l,c.__wbindgen_malloc),S=c.key_fromDictionaryKey(_,p,D);return xe.__wrap(S)}isDictionaryKey(){return 0!==c.key_isDictionaryKey(this.__wbg_ptr)}intoAccount(){const s=this.__destroy_into_raw(),l=c.key_intoAccount(s);return 0===l?void 0:Qe.__wrap(l)}intoHash(){const s=this.__destroy_into_raw(),l=c.key_intoHash(s);return 0===l?void 0:ur.__wrap(l)}asBalance(){const s=c.key_asBalance(this.__wbg_ptr);return 0===s?void 0:_r.__wrap(s)}intoURef(){const s=this.__destroy_into_raw(),l=c.key_intoURef(s);return 0===l?void 0:Ft.__wrap(l)}urefToHash(){const s=c.key_urefToHash(this.__wbg_ptr);return 0===s?void 0:xe.__wrap(s)}withdrawToUnbond(){const s=c.key_withdrawToUnbond(this.__wbg_ptr);return 0===s?void 0:xe.__wrap(s)}}class Ts{static __wrap(s){s>>>=0;const l=Object.create(Ts.prototype);return l.__wbg_ptr=s,l}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,s}free(){const s=this.__destroy_into_raw();c.__wbg_listrpcsresult_free(s)}get api_version(){return M(c.listrpcsresult_api_version(this.__wbg_ptr))}get name(){let s,l;try{const m=c.__wbindgen_add_to_stack_pointer(-16);c.listrpcsresult_name(m,this.__wbg_ptr);var _=w()[m/4+0],p=w()[m/4+1];return s=_,l=p,O(_,p)}finally{c.__wbindgen_add_to_stack_pointer(16),c.__wbindgen_free(s,l,1)}}get schema(){return M(c.listrpcsresult_schema(this.__wbg_ptr))}toJson(){return M(c.listrpcsresult_toJson(this.__wbg_ptr))}}class kn{static __wrap(s){s>>>=0;const l=Object.create(kn.prototype);return l.__wbg_ptr=s,l}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,s}free(){const s=this.__destroy_into_raw();c.__wbg_path_free(s)}constructor(s){const l=c.path_new(H(s));return kn.__wrap(l)}static fromArray(s){const l=c.path_fromArray(H(s));return kn.__wrap(l)}toJson(){return M(c.path_toJson(this.__wbg_ptr))}toString(){let s,l;try{const m=c.__wbindgen_add_to_stack_pointer(-16);c.path_toString(m,this.__wbg_ptr);var _=w()[m/4+0],p=w()[m/4+1];return s=_,l=p,O(_,p)}finally{c.__wbindgen_add_to_stack_pointer(16),c.__wbindgen_free(s,l,1)}}is_empty(){return 0!==c.path_is_empty(this.__wbg_ptr)}}class Ot{static __wrap(s){s>>>=0;const l=Object.create(Ot.prototype);return l.__wbg_ptr=s,l}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,s}free(){const s=this.__destroy_into_raw();c.__wbg_paymentstrparams_free(s)}constructor(s,l,_,p,m,S,N,Z,le,oe,Ne){var Ue=E(s)?0:C(s,c.__wbindgen_malloc,c.__wbindgen_realloc),Re=D,ut=E(l)?0:C(l,c.__wbindgen_malloc,c.__wbindgen_realloc),yt=D,St=E(_)?0:C(_,c.__wbindgen_malloc,c.__wbindgen_realloc),Zt=D,fe=E(p)?0:C(p,c.__wbindgen_malloc,c.__wbindgen_realloc),Tn=D,Le=E(m)?0:C(m,c.__wbindgen_malloc,c.__wbindgen_realloc),Wn=D,jr=E(S)?0:C(S,c.__wbindgen_malloc,c.__wbindgen_realloc),An=D,K=E(Z)?0:C(Z,c.__wbindgen_malloc,c.__wbindgen_realloc),Hr=D,Vr=E(le)?0:C(le,c.__wbindgen_malloc,c.__wbindgen_realloc),zi=D,Do=E(oe)?0:C(oe,c.__wbindgen_malloc,c.__wbindgen_realloc),U=D,hr=E(Ne)?0:C(Ne,c.__wbindgen_malloc,c.__wbindgen_realloc),Y=D;const we=c.paymentstrparams_new(Ue,Re,ut,yt,St,Zt,fe,Tn,Le,Wn,jr,An,E(N)?0:H(N),K,Hr,Vr,zi,Do,U,hr,Y);return Ot.__wrap(we)}get payment_amount(){try{const _=c.__wbindgen_add_to_stack_pointer(-16);c.paymentstrparams_payment_amount(_,this.__wbg_ptr);var s=w()[_/4+0],l=w()[_/4+1];let p;return 0!==s&&(p=O(s,l).slice(),c.__wbindgen_free(s,1*l)),p}finally{c.__wbindgen_add_to_stack_pointer(16)}}set payment_amount(s){const l=C(s,c.__wbindgen_malloc,c.__wbindgen_realloc);c.paymentstrparams_set_payment_amount(this.__wbg_ptr,l,D)}get payment_hash(){try{const _=c.__wbindgen_add_to_stack_pointer(-16);c.paymentstrparams_payment_hash(_,this.__wbg_ptr);var s=w()[_/4+0],l=w()[_/4+1];let p;return 0!==s&&(p=O(s,l).slice(),c.__wbindgen_free(s,1*l)),p}finally{c.__wbindgen_add_to_stack_pointer(16)}}set payment_hash(s){const l=C(s,c.__wbindgen_malloc,c.__wbindgen_realloc);c.paymentstrparams_set_payment_hash(this.__wbg_ptr,l,D)}get payment_name(){try{const _=c.__wbindgen_add_to_stack_pointer(-16);c.paymentstrparams_payment_name(_,this.__wbg_ptr);var s=w()[_/4+0],l=w()[_/4+1];let p;return 0!==s&&(p=O(s,l).slice(),c.__wbindgen_free(s,1*l)),p}finally{c.__wbindgen_add_to_stack_pointer(16)}}set payment_name(s){const l=C(s,c.__wbindgen_malloc,c.__wbindgen_realloc);c.paymentstrparams_set_payment_name(this.__wbg_ptr,l,D)}get payment_package_hash(){try{const _=c.__wbindgen_add_to_stack_pointer(-16);c.paymentstrparams_payment_package_hash(_,this.__wbg_ptr);var s=w()[_/4+0],l=w()[_/4+1];let p;return 0!==s&&(p=O(s,l).slice(),c.__wbindgen_free(s,1*l)),p}finally{c.__wbindgen_add_to_stack_pointer(16)}}set payment_package_hash(s){const l=C(s,c.__wbindgen_malloc,c.__wbindgen_realloc);c.paymentstrparams_set_payment_package_hash(this.__wbg_ptr,l,D)}get payment_package_name(){try{const _=c.__wbindgen_add_to_stack_pointer(-16);c.paymentstrparams_payment_package_name(_,this.__wbg_ptr);var s=w()[_/4+0],l=w()[_/4+1];let p;return 0!==s&&(p=O(s,l).slice(),c.__wbindgen_free(s,1*l)),p}finally{c.__wbindgen_add_to_stack_pointer(16)}}set payment_package_name(s){const l=C(s,c.__wbindgen_malloc,c.__wbindgen_realloc);c.paymentstrparams_set_payment_package_name(this.__wbg_ptr,l,D)}get payment_path(){try{const _=c.__wbindgen_add_to_stack_pointer(-16);c.paymentstrparams_payment_path(_,this.__wbg_ptr);var s=w()[_/4+0],l=w()[_/4+1];let p;return 0!==s&&(p=O(s,l).slice(),c.__wbindgen_free(s,1*l)),p}finally{c.__wbindgen_add_to_stack_pointer(16)}}set payment_path(s){const l=C(s,c.__wbindgen_malloc,c.__wbindgen_realloc);c.paymentstrparams_set_payment_path(this.__wbg_ptr,l,D)}get payment_args_simple(){return M(c.paymentstrparams_payment_args_simple(this.__wbg_ptr))}set payment_args_simple(s){c.paymentstrparams_set_payment_args_simple(this.__wbg_ptr,H(s))}get payment_args_json(){try{const _=c.__wbindgen_add_to_stack_pointer(-16);c.paymentstrparams_payment_args_json(_,this.__wbg_ptr);var s=w()[_/4+0],l=w()[_/4+1];let p;return 0!==s&&(p=O(s,l).slice(),c.__wbindgen_free(s,1*l)),p}finally{c.__wbindgen_add_to_stack_pointer(16)}}set payment_args_json(s){const l=C(s,c.__wbindgen_malloc,c.__wbindgen_realloc);c.paymentstrparams_set_payment_args_json(this.__wbg_ptr,l,D)}get payment_args_complex(){try{const _=c.__wbindgen_add_to_stack_pointer(-16);c.paymentstrparams_payment_args_complex(_,this.__wbg_ptr);var s=w()[_/4+0],l=w()[_/4+1];let p;return 0!==s&&(p=O(s,l).slice(),c.__wbindgen_free(s,1*l)),p}finally{c.__wbindgen_add_to_stack_pointer(16)}}set payment_args_complex(s){const l=C(s,c.__wbindgen_malloc,c.__wbindgen_realloc);c.paymentstrparams_set_payment_args_complex(this.__wbg_ptr,l,D)}get payment_version(){try{const _=c.__wbindgen_add_to_stack_pointer(-16);c.paymentstrparams_payment_version(_,this.__wbg_ptr);var s=w()[_/4+0],l=w()[_/4+1];let p;return 0!==s&&(p=O(s,l).slice(),c.__wbindgen_free(s,1*l)),p}finally{c.__wbindgen_add_to_stack_pointer(16)}}set payment_version(s){const l=C(s,c.__wbindgen_malloc,c.__wbindgen_realloc);c.paymentstrparams_set_payment_version(this.__wbg_ptr,l,D)}get payment_entry_point(){try{const _=c.__wbindgen_add_to_stack_pointer(-16);c.paymentstrparams_payment_entry_point(_,this.__wbg_ptr);var s=w()[_/4+0],l=w()[_/4+1];let p;return 0!==s&&(p=O(s,l).slice(),c.__wbindgen_free(s,1*l)),p}finally{c.__wbindgen_add_to_stack_pointer(16)}}set payment_entry_point(s){const l=C(s,c.__wbindgen_malloc,c.__wbindgen_realloc);c.paymentstrparams_set_payment_entry_point(this.__wbg_ptr,l,D)}}class gn{static __wrap(s){s>>>=0;const l=Object.create(gn.prototype);return l.__wbg_ptr=s,l}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,s}free(){const s=this.__destroy_into_raw();c.__wbg_publickey_free(s)}constructor(s){try{const m=c.__wbindgen_add_to_stack_pointer(-16),S=C(s,c.__wbindgen_malloc,c.__wbindgen_realloc);c.publickey_new(m,S,D);var l=w()[m/4+0],_=w()[m/4+1];if(w()[m/4+2])throw M(_);return gn.__wrap(l)}finally{c.__wbindgen_add_to_stack_pointer(16)}}static fromUint8Array(s){const l=ht(s,c.__wbindgen_malloc),p=c.publickey_fromUint8Array(l,D);return gn.__wrap(p)}toAccountHash(){const s=c.publickey_toAccountHash(this.__wbg_ptr);return Qe.__wrap(s)}toPurseUref(){const s=c.publickey_toPurseUref(this.__wbg_ptr);return Ft.__wrap(s)}toJson(){return M(c.publickey_toJson(this.__wbg_ptr))}}class Gn{static __wrap(s){s>>>=0;const l=Object.create(Gn.prototype);return l.__wbg_ptr=s,l}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,s}free(){const s=this.__destroy_into_raw();c.__wbg_purseidentifier_free(s)}constructor(s){P(s,gn);var l=s.__destroy_into_raw();const _=c.purseidentifier_fromPublicKey(l);return Gn.__wrap(_)}static fromAccountHash(s){P(s,Qe);var l=s.__destroy_into_raw();const _=c.purseidentifier_fromAccountHash(l);return Gn.__wrap(_)}static fromURef(s){P(s,Ft);var l=s.__destroy_into_raw();const _=c.purseidentifier_fromURef(l);return Gn.__wrap(_)}}class As{static __wrap(s){s>>>=0;const l=Object.create(As.prototype);return l.__wbg_ptr=s,l}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,s}free(){const s=this.__destroy_into_raw();c.__wbg_putdeployresult_free(s)}get api_version(){return M(c.putdeployresult_api_version(this.__wbg_ptr))}get deploy_hash(){const s=c.putdeployresult_deploy_hash(this.__wbg_ptr);return Sn.__wrap(s)}toJson(){return M(c.putdeployresult_toJson(this.__wbg_ptr))}}class Ns{static __wrap(s){s>>>=0;const l=Object.create(Ns.prototype);return l.__wbg_ptr=s,l}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,s}free(){const s=this.__destroy_into_raw();c.__wbg_querybalanceresult_free(s)}get api_version(){return M(c.querybalanceresult_api_version(this.__wbg_ptr))}get balance(){return M(c.querybalanceresult_balance(this.__wbg_ptr))}toJson(){return M(c.querybalanceresult_toJson(this.__wbg_ptr))}}class xs{static __wrap(s){s>>>=0;const l=Object.create(xs.prototype);return l.__wbg_ptr=s,l}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,s}free(){const s=this.__destroy_into_raw();c.__wbg_queryglobalstateresult_free(s)}get api_version(){return M(c.queryglobalstateresult_api_version(this.__wbg_ptr))}get block_header(){return M(c.queryglobalstateresult_block_header(this.__wbg_ptr))}get stored_value(){return M(c.queryglobalstateresult_stored_value(this.__wbg_ptr))}get merkle_proof(){let s,l;try{const m=c.__wbindgen_add_to_stack_pointer(-16);c.queryglobalstateresult_merkle_proof(m,this.__wbg_ptr);var _=w()[m/4+0],p=w()[m/4+1];return s=_,l=p,O(_,p)}finally{c.__wbindgen_add_to_stack_pointer(16),c.__wbindgen_free(s,l,1)}}toJson(){return M(c.queryglobalstateresult_toJson(this.__wbg_ptr))}}class Rs{static __wrap(s){s>>>=0;const l=Object.create(Rs.prototype);return l.__wbg_ptr=s,l}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,s}free(){const s=this.__destroy_into_raw();c.__wbg_sdk_free(s)}get_deploy_options(s){const l=c.sdk_get_deploy_options(this.__wbg_ptr,H(s));return It.__wrap(l)}get_deploy(s){let l=0;return E(s)||(P(s,It),l=s.__destroy_into_raw()),M(c.sdk_get_deploy(this.__wbg_ptr,l))}info_get_deploy(s){let l=0;return E(s)||(P(s,It),l=s.__destroy_into_raw()),M(c.sdk_info_get_deploy(this.__wbg_ptr,l))}get_era_info_options(s){const l=c.sdk_get_era_info_options(this.__wbg_ptr,H(s));return po.__wrap(l)}get_era_info(s){let l=0;return E(s)||(P(s,po),l=s.__destroy_into_raw()),M(c.sdk_get_era_info(this.__wbg_ptr,l))}get_state_root_hash_options(s){const l=c.sdk_get_state_root_hash_options(this.__wbg_ptr,H(s));return gr.__wrap(l)}get_state_root_hash(s){let l=0;return E(s)||(P(s,gr),l=s.__destroy_into_raw()),M(c.sdk_get_state_root_hash(this.__wbg_ptr,l))}chain_get_state_root_hash(s){let l=0;return E(s)||(P(s,gr),l=s.__destroy_into_raw()),M(c.sdk_chain_get_state_root_hash(this.__wbg_ptr,l))}speculative_exec_options(s){const l=c.sdk_speculative_exec_options(this.__wbg_ptr,H(s));return ho.__wrap(l)}speculative_exec(s){let l=0;return E(s)||(P(s,ho),l=s.__destroy_into_raw()),M(c.sdk_speculative_exec(this.__wbg_ptr,l))}constructor(s,l){var _=E(s)?0:C(s,c.__wbindgen_malloc,c.__wbindgen_realloc);const m=c.sdk_new(_,D,E(l)?3:l);return Rs.__wrap(m)}getNodeAddress(s){let l,_;try{const Z=c.__wbindgen_add_to_stack_pointer(-16);var p=E(s)?0:C(s,c.__wbindgen_malloc,c.__wbindgen_realloc);c.sdk_getNodeAddress(Z,this.__wbg_ptr,p,D);var S=w()[Z/4+0],N=w()[Z/4+1];return l=S,_=N,O(S,N)}finally{c.__wbindgen_add_to_stack_pointer(16),c.__wbindgen_free(l,_,1)}}setNodeAddress(s){try{const S=c.__wbindgen_add_to_stack_pointer(-16);var l=E(s)?0:C(s,c.__wbindgen_malloc,c.__wbindgen_realloc);c.sdk_setNodeAddress(S,this.__wbg_ptr,l,D);var p=w()[S/4+0];if(w()[S/4+1])throw M(p)}finally{c.__wbindgen_add_to_stack_pointer(16)}}getVerbosity(s){return c.sdk_getVerbosity(this.__wbg_ptr,E(s)?3:s)>>>0}setVerbosity(s){try{const p=c.__wbindgen_add_to_stack_pointer(-16);c.sdk_setVerbosity(p,this.__wbg_ptr,E(s)?3:s);var l=w()[p/4+0];if(w()[p/4+1])throw M(l)}finally{c.__wbindgen_add_to_stack_pointer(16)}}put_deploy(s,l,_){P(s,ve);var p=s.__destroy_into_raw(),m=E(_)?0:C(_,c.__wbindgen_malloc,c.__wbindgen_realloc),S=D;return M(c.sdk_put_deploy(this.__wbg_ptr,p,E(l)?3:l,m,S))}account_put_deploy(s,l,_){P(s,ve);var p=s.__destroy_into_raw(),m=E(_)?0:C(_,c.__wbindgen_malloc,c.__wbindgen_realloc),S=D;return M(c.sdk_account_put_deploy(this.__wbg_ptr,p,E(l)?3:l,m,S))}make_deploy(s,l,_){try{const oe=c.__wbindgen_add_to_stack_pointer(-16);P(s,at);var p=s.__destroy_into_raw();P(l,Wt);var m=l.__destroy_into_raw();P(_,Ot);var S=_.__destroy_into_raw();c.sdk_make_deploy(oe,this.__wbg_ptr,p,m,S);var N=w()[oe/4+0],Z=w()[oe/4+1];if(w()[oe/4+2])throw M(Z);return ve.__wrap(N)}finally{c.__wbindgen_add_to_stack_pointer(16)}}speculative_transfer(s,l,_,p,m,S,N,Z,le){const oe=C(s,c.__wbindgen_malloc,c.__wbindgen_realloc),Ne=D,Ue=C(l,c.__wbindgen_malloc,c.__wbindgen_realloc),Re=D;var ut=E(_)?0:C(_,c.__wbindgen_malloc,c.__wbindgen_realloc),yt=D;P(p,at);var St=p.__destroy_into_raw();P(m,Ot);var Zt=m.__destroy_into_raw(),fe=E(S)?0:C(S,c.__wbindgen_malloc,c.__wbindgen_realloc),Tn=D;let Le=0;E(N)||(P(N,he),Le=N.__destroy_into_raw());var Wn=E(le)?0:C(le,c.__wbindgen_malloc,c.__wbindgen_realloc),jr=D;return M(c.sdk_speculative_transfer(this.__wbg_ptr,oe,Ne,Ue,Re,ut,yt,St,Zt,fe,Tn,Le,E(Z)?3:Z,Wn,jr))}sign_deploy(s,l){P(s,ve);var _=s.__destroy_into_raw();const p=C(l,c.__wbindgen_malloc,c.__wbindgen_realloc),S=c.sdk_sign_deploy(this.__wbg_ptr,_,p,D);return ve.__wrap(S)}get_block_transfers_options(s){const l=c.sdk_get_block_transfers_options(this.__wbg_ptr,H(s));return Fr.__wrap(l)}get_block_transfers(s){let l=0;return E(s)||(P(s,Fr),l=s.__destroy_into_raw()),M(c.sdk_get_block_transfers(this.__wbg_ptr,l))}query_balance_options(s){const l=c.sdk_query_balance_options(this.__wbg_ptr,H(s));return mo.__wrap(l)}query_balance(s){let l=0;return E(s)||(P(s,mo),l=s.__destroy_into_raw()),M(c.sdk_query_balance(this.__wbg_ptr,l))}deploy(s,l,_,p,m){P(s,at);var S=s.__destroy_into_raw();P(l,Wt);var N=l.__destroy_into_raw();P(_,Ot);var Z=_.__destroy_into_raw(),le=E(m)?0:C(m,c.__wbindgen_malloc,c.__wbindgen_realloc),oe=D;return M(c.sdk_deploy(this.__wbg_ptr,S,N,Z,E(p)?3:p,le,oe))}transfer(s,l,_,p,m,S,N){const Z=C(s,c.__wbindgen_malloc,c.__wbindgen_realloc),le=D,oe=C(l,c.__wbindgen_malloc,c.__wbindgen_realloc),Ne=D;var Ue=E(_)?0:C(_,c.__wbindgen_malloc,c.__wbindgen_realloc),Re=D;P(p,at);var ut=p.__destroy_into_raw();P(m,Ot);var yt=m.__destroy_into_raw(),St=E(N)?0:C(N,c.__wbindgen_malloc,c.__wbindgen_realloc),Zt=D;return M(c.sdk_transfer(this.__wbg_ptr,Z,le,oe,Ne,Ue,Re,ut,yt,E(S)?3:S,St,Zt))}get_account_options(s){const l=c.sdk_get_account_options(this.__wbg_ptr,H(s));return Pr.__wrap(l)}get_account(s){let l=0;return E(s)||(P(s,Pr),l=s.__destroy_into_raw()),M(c.sdk_get_account(this.__wbg_ptr,l))}state_get_account_info(s){let l=0;return E(s)||(P(s,Pr),l=s.__destroy_into_raw()),M(c.sdk_state_get_account_info(this.__wbg_ptr,l))}get_era_summary_options(s){const l=c.sdk_get_era_summary_options(this.__wbg_ptr,H(s));return go.__wrap(l)}get_era_summary(s){let l=0;return E(s)||(P(s,go),l=s.__destroy_into_raw()),M(c.sdk_get_era_summary(this.__wbg_ptr,l))}get_node_status(s,l){var _=E(l)?0:C(l,c.__wbindgen_malloc,c.__wbindgen_realloc),p=D;return M(c.sdk_get_node_status(this.__wbg_ptr,E(s)?3:s,_,p))}get_validator_changes(s,l){var _=E(l)?0:C(l,c.__wbindgen_malloc,c.__wbindgen_realloc),p=D;return M(c.sdk_get_validator_changes(this.__wbg_ptr,E(s)?3:s,_,p))}list_rpcs(s,l){var _=E(l)?0:C(l,c.__wbindgen_malloc,c.__wbindgen_realloc),p=D;return M(c.sdk_list_rpcs(this.__wbg_ptr,E(s)?3:s,_,p))}query_global_state_options(s){const l=c.sdk_query_global_state_options(this.__wbg_ptr,H(s));return yo.__wrap(l)}query_global_state(s){let l=0;return E(s)||(P(s,yo),l=s.__destroy_into_raw()),M(c.sdk_query_global_state(this.__wbg_ptr,l))}get_auction_info_options(s){const l=c.sdk_get_auction_info_options(this.__wbg_ptr,H(s));return Or.__wrap(l)}get_auction_info(s){let l=0;return E(s)||(P(s,Or),l=s.__destroy_into_raw()),M(c.sdk_get_auction_info(this.__wbg_ptr,l))}get_block_options(s){const l=c.sdk_get_block_options(this.__wbg_ptr,H(s));return pr.__wrap(l)}get_block(s){let l=0;return E(s)||(P(s,pr),l=s.__destroy_into_raw()),M(c.sdk_get_block(this.__wbg_ptr,l))}chain_get_block(s){let l=0;return E(s)||(P(s,pr),l=s.__destroy_into_raw()),M(c.sdk_chain_get_block(this.__wbg_ptr,l))}get_peers(s,l){var _=E(l)?0:C(l,c.__wbindgen_malloc,c.__wbindgen_realloc),p=D;return M(c.sdk_get_peers(this.__wbg_ptr,E(s)?3:s,_,p))}make_transfer(s,l,_,p,m){try{const Re=c.__wbindgen_add_to_stack_pointer(-16),ut=C(s,c.__wbindgen_malloc,c.__wbindgen_realloc),yt=D,St=C(l,c.__wbindgen_malloc,c.__wbindgen_realloc),Zt=D;var S=E(_)?0:C(_,c.__wbindgen_malloc,c.__wbindgen_realloc),N=D;P(p,at);var Z=p.__destroy_into_raw();P(m,Ot);var le=m.__destroy_into_raw();c.sdk_make_transfer(Re,this.__wbg_ptr,ut,yt,St,Zt,S,N,Z,le);var oe=w()[Re/4+0],Ne=w()[Re/4+1];if(w()[Re/4+2])throw M(Ne);return ve.__wrap(oe)}finally{c.__wbindgen_add_to_stack_pointer(16)}}speculative_deploy(s,l,_,p,m,S){P(s,at);var N=s.__destroy_into_raw();P(l,Wt);var Z=l.__destroy_into_raw();P(_,Ot);var le=_.__destroy_into_raw();let oe=0;E(p)||(P(p,he),oe=p.__destroy_into_raw());var Ne=E(S)?0:C(S,c.__wbindgen_malloc,c.__wbindgen_realloc),Ue=D;return M(c.sdk_speculative_deploy(this.__wbg_ptr,N,Z,le,oe,E(m)?3:m,Ne,Ue))}get_balance_options(s){const l=c.sdk_get_balance_options(this.__wbg_ptr,H(s));return fr.__wrap(l)}get_balance(s){let l=0;return E(s)||(P(s,fr),l=s.__destroy_into_raw()),M(c.sdk_get_balance(this.__wbg_ptr,l))}state_get_balance(s){let l=0;return E(s)||(P(s,fr),l=s.__destroy_into_raw()),M(c.sdk_state_get_balance(this.__wbg_ptr,l))}get_chainspec(s,l){var _=E(l)?0:C(l,c.__wbindgen_malloc,c.__wbindgen_realloc),p=D;return M(c.sdk_get_chainspec(this.__wbg_ptr,E(s)?3:s,_,p))}get_dictionary_item_options(s){const l=c.sdk_get_dictionary_item_options(this.__wbg_ptr,H(s));return Lr.__wrap(l)}get_dictionary_item(s){let l=0;return E(s)||(P(s,Lr),l=s.__destroy_into_raw()),M(c.sdk_get_dictionary_item(this.__wbg_ptr,l))}state_get_dictionary_item(s){let l=0;return E(s)||(P(s,Lr),l=s.__destroy_into_raw()),M(c.sdk_state_get_dictionary_item(this.__wbg_ptr,l))}query_contract_dict_options(s){const l=c.sdk_query_contract_dict_options(this.__wbg_ptr,H(s));return wo.__wrap(l)}query_contract_dict(s){let l=0;return E(s)||(P(s,wo),l=s.__destroy_into_raw()),M(c.sdk_query_contract_dict(this.__wbg_ptr,l))}query_contract_key_options(s){const l=c.sdk_query_contract_key_options(this.__wbg_ptr,H(s));return Jt.__wrap(l)}query_contract_key(s){let l=0;return E(s)||(P(s,Jt),l=s.__destroy_into_raw()),M(c.sdk_query_contract_key(this.__wbg_ptr,l))}install(s,l,_,p){P(s,at);var m=s.__destroy_into_raw();P(l,Wt);var S=l.__destroy_into_raw();const N=C(_,c.__wbindgen_malloc,c.__wbindgen_realloc),Z=D;var le=E(p)?0:C(p,c.__wbindgen_malloc,c.__wbindgen_realloc);return M(c.sdk_install(this.__wbg_ptr,m,S,N,Z,le,D))}call_entrypoint(s,l,_,p){P(s,at);var m=s.__destroy_into_raw();P(l,Wt);var S=l.__destroy_into_raw();const N=C(_,c.__wbindgen_malloc,c.__wbindgen_realloc),Z=D;var le=E(p)?0:C(p,c.__wbindgen_malloc,c.__wbindgen_realloc);return M(c.sdk_call_entrypoint(this.__wbg_ptr,m,S,N,Z,le,D))}}class Wt{static __wrap(s){s>>>=0;const l=Object.create(Wt.prototype);return l.__wbg_ptr=s,l}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,s}free(){const s=this.__destroy_into_raw();c.__wbg_sessionstrparams_free(s)}constructor(s,l,_,p,m,S,N,Z,le,oe,Ne,Ue){var Re=E(s)?0:C(s,c.__wbindgen_malloc,c.__wbindgen_realloc),ut=D,yt=E(l)?0:C(l,c.__wbindgen_malloc,c.__wbindgen_realloc),St=D,Zt=E(_)?0:C(_,c.__wbindgen_malloc,c.__wbindgen_realloc),fe=D,Tn=E(p)?0:C(p,c.__wbindgen_malloc,c.__wbindgen_realloc),Le=D,Wn=E(m)?0:C(m,c.__wbindgen_malloc,c.__wbindgen_realloc),jr=D;let An=0;E(S)||(P(S,nt),An=S.__destroy_into_raw());var K=E(Z)?0:C(Z,c.__wbindgen_malloc,c.__wbindgen_realloc),Hr=D,Vr=E(le)?0:C(le,c.__wbindgen_malloc,c.__wbindgen_realloc),zi=D,Do=E(oe)?0:C(oe,c.__wbindgen_malloc,c.__wbindgen_realloc),U=D,hr=E(Ne)?0:C(Ne,c.__wbindgen_malloc,c.__wbindgen_realloc),Y=D;const we=c.sessionstrparams_new(Re,ut,yt,St,Zt,fe,Tn,Le,Wn,jr,An,E(N)?0:H(N),K,Hr,Vr,zi,Do,U,hr,Y,E(Ue)?16777215:Ue?1:0);return Wt.__wrap(we)}get session_hash(){try{const _=c.__wbindgen_add_to_stack_pointer(-16);c.sessionstrparams_session_hash(_,this.__wbg_ptr);var s=w()[_/4+0],l=w()[_/4+1];let p;return 0!==s&&(p=O(s,l).slice(),c.__wbindgen_free(s,1*l)),p}finally{c.__wbindgen_add_to_stack_pointer(16)}}set session_hash(s){const l=C(s,c.__wbindgen_malloc,c.__wbindgen_realloc);c.sessionstrparams_set_session_hash(this.__wbg_ptr,l,D)}get session_name(){try{const _=c.__wbindgen_add_to_stack_pointer(-16);c.sessionstrparams_session_name(_,this.__wbg_ptr);var s=w()[_/4+0],l=w()[_/4+1];let p;return 0!==s&&(p=O(s,l).slice(),c.__wbindgen_free(s,1*l)),p}finally{c.__wbindgen_add_to_stack_pointer(16)}}set session_name(s){const l=C(s,c.__wbindgen_malloc,c.__wbindgen_realloc);c.sessionstrparams_set_session_name(this.__wbg_ptr,l,D)}get session_package_hash(){try{const _=c.__wbindgen_add_to_stack_pointer(-16);c.sessionstrparams_session_package_hash(_,this.__wbg_ptr);var s=w()[_/4+0],l=w()[_/4+1];let p;return 0!==s&&(p=O(s,l).slice(),c.__wbindgen_free(s,1*l)),p}finally{c.__wbindgen_add_to_stack_pointer(16)}}set session_package_hash(s){const l=C(s,c.__wbindgen_malloc,c.__wbindgen_realloc);c.sessionstrparams_set_session_package_hash(this.__wbg_ptr,l,D)}get session_package_name(){try{const _=c.__wbindgen_add_to_stack_pointer(-16);c.sessionstrparams_session_package_name(_,this.__wbg_ptr);var s=w()[_/4+0],l=w()[_/4+1];let p;return 0!==s&&(p=O(s,l).slice(),c.__wbindgen_free(s,1*l)),p}finally{c.__wbindgen_add_to_stack_pointer(16)}}set session_package_name(s){const l=C(s,c.__wbindgen_malloc,c.__wbindgen_realloc);c.sessionstrparams_set_session_package_name(this.__wbg_ptr,l,D)}get session_path(){try{const _=c.__wbindgen_add_to_stack_pointer(-16);c.sessionstrparams_session_path(_,this.__wbg_ptr);var s=w()[_/4+0],l=w()[_/4+1];let p;return 0!==s&&(p=O(s,l).slice(),c.__wbindgen_free(s,1*l)),p}finally{c.__wbindgen_add_to_stack_pointer(16)}}set session_path(s){const l=C(s,c.__wbindgen_malloc,c.__wbindgen_realloc);c.sessionstrparams_set_session_path(this.__wbg_ptr,l,D)}get session_bytes(){const s=c.sessionstrparams_session_bytes(this.__wbg_ptr);return 0===s?void 0:nt.__wrap(s)}set session_bytes(s){P(s,nt);var l=s.__destroy_into_raw();c.sessionstrparams_set_session_bytes(this.__wbg_ptr,l)}get session_args_simple(){const s=c.sessionstrparams_session_args_simple(this.__wbg_ptr);return 0===s?void 0:vs.__wrap(s)}set session_args_simple(s){c.sessionstrparams_set_session_args_simple(this.__wbg_ptr,H(s))}get session_args_json(){try{const _=c.__wbindgen_add_to_stack_pointer(-16);c.sessionstrparams_session_args_json(_,this.__wbg_ptr);var s=w()[_/4+0],l=w()[_/4+1];let p;return 0!==s&&(p=O(s,l).slice(),c.__wbindgen_free(s,1*l)),p}finally{c.__wbindgen_add_to_stack_pointer(16)}}set session_args_json(s){const l=C(s,c.__wbindgen_malloc,c.__wbindgen_realloc);c.sessionstrparams_set_session_args_json(this.__wbg_ptr,l,D)}get session_args_complex(){try{const _=c.__wbindgen_add_to_stack_pointer(-16);c.sessionstrparams_session_args_complex(_,this.__wbg_ptr);var s=w()[_/4+0],l=w()[_/4+1];let p;return 0!==s&&(p=O(s,l).slice(),c.__wbindgen_free(s,1*l)),p}finally{c.__wbindgen_add_to_stack_pointer(16)}}set session_args_complex(s){const l=C(s,c.__wbindgen_malloc,c.__wbindgen_realloc);c.sessionstrparams_set_session_args_complex(this.__wbg_ptr,l,D)}get session_version(){try{const _=c.__wbindgen_add_to_stack_pointer(-16);c.sessionstrparams_session_version(_,this.__wbg_ptr);var s=w()[_/4+0],l=w()[_/4+1];let p;return 0!==s&&(p=O(s,l).slice(),c.__wbindgen_free(s,1*l)),p}finally{c.__wbindgen_add_to_stack_pointer(16)}}set session_version(s){const l=C(s,c.__wbindgen_malloc,c.__wbindgen_realloc);c.sessionstrparams_set_session_version(this.__wbg_ptr,l,D)}get session_entry_point(){try{const _=c.__wbindgen_add_to_stack_pointer(-16);c.sessionstrparams_session_entry_point(_,this.__wbg_ptr);var s=w()[_/4+0],l=w()[_/4+1];let p;return 0!==s&&(p=O(s,l).slice(),c.__wbindgen_free(s,1*l)),p}finally{c.__wbindgen_add_to_stack_pointer(16)}}set session_entry_point(s){const l=C(s,c.__wbindgen_malloc,c.__wbindgen_realloc);c.sessionstrparams_set_session_entry_point(this.__wbg_ptr,l,D)}get is_session_transfer(){const s=c.sessionstrparams_is_session_transfer(this.__wbg_ptr);return 16777215===s?void 0:0!==s}set is_session_transfer(s){c.sessionstrparams_set_is_session_transfer(this.__wbg_ptr,s)}}class fo{static __wrap(s){s>>>=0;const l=Object.create(fo.prototype);return l.__wbg_ptr=s,l}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,s}free(){const s=this.__destroy_into_raw();c.__wbg_speculativeexecresult_free(s)}get api_version(){return M(c.speculativeexecresult_api_version(this.__wbg_ptr))}get block_hash(){const s=c.speculativeexecresult_block_hash(this.__wbg_ptr);return pn.__wrap(s)}get execution_result(){return M(c.speculativeexecresult_execution_result(this.__wbg_ptr))}toJson(){return M(c.speculativeexecresult_toJson(this.__wbg_ptr))}}class dr{static __wrap(s){s>>>=0;const l=Object.create(dr.prototype);return l.__wbg_ptr=s,l}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,s}free(){const s=this.__destroy_into_raw();c.__wbg_transferaddr_free(s)}constructor(s){try{const m=c.__wbindgen_add_to_stack_pointer(-16),S=ht(s,c.__wbindgen_malloc);c.transferaddr_new(m,S,D);var l=w()[m/4+0],_=w()[m/4+1];if(w()[m/4+2])throw M(_);return dr.__wrap(l)}finally{c.__wbindgen_add_to_stack_pointer(16)}}}class Ft{static __wrap(s){s>>>=0;const l=Object.create(Ft.prototype);return l.__wbg_ptr=s,l}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,s}free(){const s=this.__destroy_into_raw();c.__wbg_uref_free(s)}constructor(s,l){try{const S=c.__wbindgen_add_to_stack_pointer(-16),N=C(s,c.__wbindgen_malloc,c.__wbindgen_realloc);c.uref_new(S,N,D,l);var _=w()[S/4+0],p=w()[S/4+1];if(w()[S/4+2])throw M(p);return Ft.__wrap(_)}finally{c.__wbindgen_add_to_stack_pointer(16)}}static fromUint8Array(s,l){const _=ht(s,c.__wbindgen_malloc),m=c.uref_fromUint8Array(_,D,l);return Ft.__wrap(m)}toFormattedString(){let s,l;try{const m=c.__wbindgen_add_to_stack_pointer(-16);c.uref_toFormattedString(m,this.__wbg_ptr);var _=w()[m/4+0],p=w()[m/4+1];return s=_,l=p,O(_,p)}finally{c.__wbindgen_add_to_stack_pointer(16),c.__wbindgen_free(s,l,1)}}toJson(){return M(c.uref_toJson(this.__wbg_ptr))}}class _r{static __wrap(s){s>>>=0;const l=Object.create(_r.prototype);return l.__wbg_ptr=s,l}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,s}free(){const s=this.__destroy_into_raw();c.__wbg_urefaddr_free(s)}constructor(s){try{const m=c.__wbindgen_add_to_stack_pointer(-16),S=ht(s,c.__wbindgen_malloc);c.urefaddr_new(m,S,D);var l=w()[m/4+0],_=w()[m/4+1];if(w()[m/4+2])throw M(_);return _r.__wrap(l)}finally{c.__wbindgen_add_to_stack_pointer(16)}}}class Pr{static __wrap(s){s>>>=0;const l=Object.create(Pr.prototype);return l.__wbg_ptr=s,l}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,s}free(){const s=this.__destroy_into_raw();c.__wbg_getaccountoptions_free(s)}get account_identifier(){const s=c.__wbg_get_getaccountoptions_account_identifier(this.__wbg_ptr);return 0===s?void 0:fn.__wrap(s)}set account_identifier(s){let l=0;E(s)||(P(s,fn),l=s.__destroy_into_raw()),c.__wbg_set_getaccountoptions_account_identifier(this.__wbg_ptr,l)}get account_identifier_as_string(){try{const _=c.__wbindgen_add_to_stack_pointer(-16);c.__wbg_get_getaccountoptions_account_identifier_as_string(_,this.__wbg_ptr);var s=w()[_/4+0],l=w()[_/4+1];let p;return 0!==s&&(p=O(s,l).slice(),c.__wbindgen_free(s,1*l)),p}finally{c.__wbindgen_add_to_stack_pointer(16)}}set account_identifier_as_string(s){var l=E(s)?0:C(s,c.__wbindgen_malloc,c.__wbindgen_realloc);c.__wbg_set_getaccountoptions_account_identifier_as_string(this.__wbg_ptr,l,D)}get maybe_block_id_as_string(){try{const _=c.__wbindgen_add_to_stack_pointer(-16);c.__wbg_get_getaccountoptions_maybe_block_id_as_string(_,this.__wbg_ptr);var s=w()[_/4+0],l=w()[_/4+1];let p;return 0!==s&&(p=O(s,l).slice(),c.__wbindgen_free(s,1*l)),p}finally{c.__wbindgen_add_to_stack_pointer(16)}}set maybe_block_id_as_string(s){var l=E(s)?0:C(s,c.__wbindgen_malloc,c.__wbindgen_realloc);c.__wbg_set_getaccountoptions_maybe_block_id_as_string(this.__wbg_ptr,l,D)}get maybe_block_identifier(){const s=c.__wbg_get_getaccountoptions_maybe_block_identifier(this.__wbg_ptr);return 0===s?void 0:he.__wrap(s)}set maybe_block_identifier(s){let l=0;E(s)||(P(s,he),l=s.__destroy_into_raw()),c.__wbg_set_getaccountoptions_maybe_block_identifier(this.__wbg_ptr,l)}get node_address(){try{const _=c.__wbindgen_add_to_stack_pointer(-16);c.__wbg_get_getaccountoptions_node_address(_,this.__wbg_ptr);var s=w()[_/4+0],l=w()[_/4+1];let p;return 0!==s&&(p=O(s,l).slice(),c.__wbindgen_free(s,1*l)),p}finally{c.__wbindgen_add_to_stack_pointer(16)}}set node_address(s){var l=E(s)?0:C(s,c.__wbindgen_malloc,c.__wbindgen_realloc);c.__wbg_set_getaccountoptions_node_address(this.__wbg_ptr,l,D)}get verbosity(){const s=c.__wbg_get_getaccountoptions_verbosity(this.__wbg_ptr);return 3===s?void 0:s}set verbosity(s){c.__wbg_set_getaccountoptions_verbosity(this.__wbg_ptr,E(s)?3:s)}}class Or{static __wrap(s){s>>>=0;const l=Object.create(Or.prototype);return l.__wbg_ptr=s,l}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,s}free(){const s=this.__destroy_into_raw();c.__wbg_getauctioninfooptions_free(s)}get maybe_block_id_as_string(){try{const _=c.__wbindgen_add_to_stack_pointer(-16);c.__wbg_get_getauctioninfooptions_maybe_block_id_as_string(_,this.__wbg_ptr);var s=w()[_/4+0],l=w()[_/4+1];let p;return 0!==s&&(p=O(s,l).slice(),c.__wbindgen_free(s,1*l)),p}finally{c.__wbindgen_add_to_stack_pointer(16)}}set maybe_block_id_as_string(s){var l=E(s)?0:C(s,c.__wbindgen_malloc,c.__wbindgen_realloc);c.__wbg_set_getauctioninfooptions_maybe_block_id_as_string(this.__wbg_ptr,l,D)}get maybe_block_identifier(){const s=c.__wbg_get_getauctioninfooptions_maybe_block_identifier(this.__wbg_ptr);return 0===s?void 0:he.__wrap(s)}set maybe_block_identifier(s){let l=0;E(s)||(P(s,he),l=s.__destroy_into_raw()),c.__wbg_set_getauctioninfooptions_maybe_block_identifier(this.__wbg_ptr,l)}get node_address(){try{const _=c.__wbindgen_add_to_stack_pointer(-16);c.__wbg_get_getauctioninfooptions_node_address(_,this.__wbg_ptr);var s=w()[_/4+0],l=w()[_/4+1];let p;return 0!==s&&(p=O(s,l).slice(),c.__wbindgen_free(s,1*l)),p}finally{c.__wbindgen_add_to_stack_pointer(16)}}set node_address(s){var l=E(s)?0:C(s,c.__wbindgen_malloc,c.__wbindgen_realloc);c.__wbg_set_getauctioninfooptions_node_address(this.__wbg_ptr,l,D)}get verbosity(){const s=c.__wbg_get_getauctioninfooptions_verbosity(this.__wbg_ptr);return 3===s?void 0:s}set verbosity(s){c.__wbg_set_getauctioninfooptions_verbosity(this.__wbg_ptr,E(s)?3:s)}}class fr{static __wrap(s){s>>>=0;const l=Object.create(fr.prototype);return l.__wbg_ptr=s,l}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,s}free(){const s=this.__destroy_into_raw();c.__wbg_getbalanceoptions_free(s)}get state_root_hash_as_string(){try{const _=c.__wbindgen_add_to_stack_pointer(-16);c.__wbg_get_getbalanceoptions_state_root_hash_as_string(_,this.__wbg_ptr);var s=w()[_/4+0],l=w()[_/4+1];let p;return 0!==s&&(p=O(s,l).slice(),c.__wbindgen_free(s,1*l)),p}finally{c.__wbindgen_add_to_stack_pointer(16)}}set state_root_hash_as_string(s){var l=E(s)?0:C(s,c.__wbindgen_malloc,c.__wbindgen_realloc);c.__wbg_set_getbalanceoptions_state_root_hash_as_string(this.__wbg_ptr,l,D)}get state_root_hash(){const s=c.__wbg_get_getbalanceoptions_state_root_hash(this.__wbg_ptr);return 0===s?void 0:$e.__wrap(s)}set state_root_hash(s){let l=0;E(s)||(P(s,$e),l=s.__destroy_into_raw()),c.__wbg_set_getbalanceoptions_state_root_hash(this.__wbg_ptr,l)}get purse_uref_as_string(){try{const _=c.__wbindgen_add_to_stack_pointer(-16);c.__wbg_get_getbalanceoptions_purse_uref_as_string(_,this.__wbg_ptr);var s=w()[_/4+0],l=w()[_/4+1];let p;return 0!==s&&(p=O(s,l).slice(),c.__wbindgen_free(s,1*l)),p}finally{c.__wbindgen_add_to_stack_pointer(16)}}set purse_uref_as_string(s){var l=E(s)?0:C(s,c.__wbindgen_malloc,c.__wbindgen_realloc);c.__wbg_set_getbalanceoptions_purse_uref_as_string(this.__wbg_ptr,l,D)}get purse_uref(){const s=c.__wbg_get_getbalanceoptions_purse_uref(this.__wbg_ptr);return 0===s?void 0:Ft.__wrap(s)}set purse_uref(s){let l=0;E(s)||(P(s,Ft),l=s.__destroy_into_raw()),c.__wbg_set_getbalanceoptions_purse_uref(this.__wbg_ptr,l)}get node_address(){try{const _=c.__wbindgen_add_to_stack_pointer(-16);c.__wbg_get_getbalanceoptions_node_address(_,this.__wbg_ptr);var s=w()[_/4+0],l=w()[_/4+1];let p;return 0!==s&&(p=O(s,l).slice(),c.__wbindgen_free(s,1*l)),p}finally{c.__wbindgen_add_to_stack_pointer(16)}}set node_address(s){var l=E(s)?0:C(s,c.__wbindgen_malloc,c.__wbindgen_realloc);c.__wbg_set_getbalanceoptions_node_address(this.__wbg_ptr,l,D)}get verbosity(){const s=c.__wbg_get_getbalanceoptions_verbosity(this.__wbg_ptr);return 3===s?void 0:s}set verbosity(s){c.__wbg_set_getbalanceoptions_verbosity(this.__wbg_ptr,E(s)?3:s)}}class pr{static __wrap(s){s>>>=0;const l=Object.create(pr.prototype);return l.__wbg_ptr=s,l}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,s}free(){const s=this.__destroy_into_raw();c.__wbg_getblockoptions_free(s)}get maybe_block_id_as_string(){try{const _=c.__wbindgen_add_to_stack_pointer(-16);c.__wbg_get_getauctioninfooptions_maybe_block_id_as_string(_,this.__wbg_ptr);var s=w()[_/4+0],l=w()[_/4+1];let p;return 0!==s&&(p=O(s,l).slice(),c.__wbindgen_free(s,1*l)),p}finally{c.__wbindgen_add_to_stack_pointer(16)}}set maybe_block_id_as_string(s){var l=E(s)?0:C(s,c.__wbindgen_malloc,c.__wbindgen_realloc);c.__wbg_set_getauctioninfooptions_maybe_block_id_as_string(this.__wbg_ptr,l,D)}get maybe_block_identifier(){const s=c.__wbg_get_getauctioninfooptions_maybe_block_identifier(this.__wbg_ptr);return 0===s?void 0:he.__wrap(s)}set maybe_block_identifier(s){let l=0;E(s)||(P(s,he),l=s.__destroy_into_raw()),c.__wbg_set_getauctioninfooptions_maybe_block_identifier(this.__wbg_ptr,l)}get node_address(){try{const _=c.__wbindgen_add_to_stack_pointer(-16);c.__wbg_get_getauctioninfooptions_node_address(_,this.__wbg_ptr);var s=w()[_/4+0],l=w()[_/4+1];let p;return 0!==s&&(p=O(s,l).slice(),c.__wbindgen_free(s,1*l)),p}finally{c.__wbindgen_add_to_stack_pointer(16)}}set node_address(s){var l=E(s)?0:C(s,c.__wbindgen_malloc,c.__wbindgen_realloc);c.__wbg_set_getauctioninfooptions_node_address(this.__wbg_ptr,l,D)}get verbosity(){const s=c.__wbg_get_getauctioninfooptions_verbosity(this.__wbg_ptr);return 3===s?void 0:s}set verbosity(s){c.__wbg_set_getauctioninfooptions_verbosity(this.__wbg_ptr,E(s)?3:s)}}class Fr{static __wrap(s){s>>>=0;const l=Object.create(Fr.prototype);return l.__wbg_ptr=s,l}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,s}free(){const s=this.__destroy_into_raw();c.__wbg_getblocktransfersoptions_free(s)}get maybe_block_id_as_string(){try{const _=c.__wbindgen_add_to_stack_pointer(-16);c.__wbg_get_getblocktransfersoptions_maybe_block_id_as_string(_,this.__wbg_ptr);var s=w()[_/4+0],l=w()[_/4+1];let p;return 0!==s&&(p=O(s,l).slice(),c.__wbindgen_free(s,1*l)),p}finally{c.__wbindgen_add_to_stack_pointer(16)}}set maybe_block_id_as_string(s){var l=E(s)?0:C(s,c.__wbindgen_malloc,c.__wbindgen_realloc);c.__wbg_set_getblocktransfersoptions_maybe_block_id_as_string(this.__wbg_ptr,l,D)}get maybe_block_identifier(){const s=c.__wbg_get_getblocktransfersoptions_maybe_block_identifier(this.__wbg_ptr);return 0===s?void 0:he.__wrap(s)}set maybe_block_identifier(s){let l=0;E(s)||(P(s,he),l=s.__destroy_into_raw()),c.__wbg_set_getblocktransfersoptions_maybe_block_identifier(this.__wbg_ptr,l)}get verbosity(){const s=c.__wbg_get_getblocktransfersoptions_verbosity(this.__wbg_ptr);return 3===s?void 0:s}set verbosity(s){c.__wbg_set_getblocktransfersoptions_verbosity(this.__wbg_ptr,E(s)?3:s)}get node_address(){try{const _=c.__wbindgen_add_to_stack_pointer(-16);c.__wbg_get_getblocktransfersoptions_node_address(_,this.__wbg_ptr);var s=w()[_/4+0],l=w()[_/4+1];let p;return 0!==s&&(p=O(s,l).slice(),c.__wbindgen_free(s,1*l)),p}finally{c.__wbindgen_add_to_stack_pointer(16)}}set node_address(s){var l=E(s)?0:C(s,c.__wbindgen_malloc,c.__wbindgen_realloc);c.__wbg_set_getblocktransfersoptions_node_address(this.__wbg_ptr,l,D)}}class It{static __wrap(s){s>>>=0;const l=Object.create(It.prototype);return l.__wbg_ptr=s,l}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,s}free(){const s=this.__destroy_into_raw();c.__wbg_getdeployoptions_free(s)}get deploy_hash_as_string(){try{const _=c.__wbindgen_add_to_stack_pointer(-16);c.__wbg_get_getdeployoptions_deploy_hash_as_string(_,this.__wbg_ptr);var s=w()[_/4+0],l=w()[_/4+1];let p;return 0!==s&&(p=O(s,l).slice(),c.__wbindgen_free(s,1*l)),p}finally{c.__wbindgen_add_to_stack_pointer(16)}}set deploy_hash_as_string(s){var l=E(s)?0:C(s,c.__wbindgen_malloc,c.__wbindgen_realloc);c.__wbg_set_getdeployoptions_deploy_hash_as_string(this.__wbg_ptr,l,D)}get deploy_hash(){const s=c.__wbg_get_getdeployoptions_deploy_hash(this.__wbg_ptr);return 0===s?void 0:Sn.__wrap(s)}set deploy_hash(s){let l=0;E(s)||(P(s,Sn),l=s.__destroy_into_raw()),c.__wbg_set_getdeployoptions_deploy_hash(this.__wbg_ptr,l)}get finalized_approvals(){const s=c.__wbg_get_getdeployoptions_finalized_approvals(this.__wbg_ptr);return 16777215===s?void 0:0!==s}set finalized_approvals(s){c.__wbg_set_getdeployoptions_finalized_approvals(this.__wbg_ptr,E(s)?16777215:s?1:0)}get node_address(){try{const _=c.__wbindgen_add_to_stack_pointer(-16);c.__wbg_get_getdeployoptions_node_address(_,this.__wbg_ptr);var s=w()[_/4+0],l=w()[_/4+1];let p;return 0!==s&&(p=O(s,l).slice(),c.__wbindgen_free(s,1*l)),p}finally{c.__wbindgen_add_to_stack_pointer(16)}}set node_address(s){var l=E(s)?0:C(s,c.__wbindgen_malloc,c.__wbindgen_realloc);c.__wbg_set_getdeployoptions_node_address(this.__wbg_ptr,l,D)}get verbosity(){const s=c.__wbg_get_getdeployoptions_verbosity(this.__wbg_ptr);return 3===s?void 0:s}set verbosity(s){c.__wbg_set_getdeployoptions_verbosity(this.__wbg_ptr,E(s)?3:s)}}class Lr{static __wrap(s){s>>>=0;const l=Object.create(Lr.prototype);return l.__wbg_ptr=s,l}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,s}free(){const s=this.__destroy_into_raw();c.__wbg_getdictionaryitemoptions_free(s)}get state_root_hash_as_string(){try{const _=c.__wbindgen_add_to_stack_pointer(-16);c.__wbg_get_getdictionaryitemoptions_state_root_hash_as_string(_,this.__wbg_ptr);var s=w()[_/4+0],l=w()[_/4+1];let p;return 0!==s&&(p=O(s,l).slice(),c.__wbindgen_free(s,1*l)),p}finally{c.__wbindgen_add_to_stack_pointer(16)}}set state_root_hash_as_string(s){var l=E(s)?0:C(s,c.__wbindgen_malloc,c.__wbindgen_realloc);c.__wbg_set_getdictionaryitemoptions_state_root_hash_as_string(this.__wbg_ptr,l,D)}get state_root_hash(){const s=c.__wbg_get_getdictionaryitemoptions_state_root_hash(this.__wbg_ptr);return 0===s?void 0:$e.__wrap(s)}set state_root_hash(s){let l=0;E(s)||(P(s,$e),l=s.__destroy_into_raw()),c.__wbg_set_getdictionaryitemoptions_state_root_hash(this.__wbg_ptr,l)}get dictionary_item_params(){const s=c.__wbg_get_getdictionaryitemoptions_dictionary_item_params(this.__wbg_ptr);return 0===s?void 0:Mn.__wrap(s)}set dictionary_item_params(s){let l=0;E(s)||(P(s,Mn),l=s.__destroy_into_raw()),c.__wbg_set_getdictionaryitemoptions_dictionary_item_params(this.__wbg_ptr,l)}get dictionary_item_identifier(){const s=c.__wbg_get_getdictionaryitemoptions_dictionary_item_identifier(this.__wbg_ptr);return 0===s?void 0:Gt.__wrap(s)}set dictionary_item_identifier(s){let l=0;E(s)||(P(s,Gt),l=s.__destroy_into_raw()),c.__wbg_set_getdictionaryitemoptions_dictionary_item_identifier(this.__wbg_ptr,l)}get node_address(){try{const _=c.__wbindgen_add_to_stack_pointer(-16);c.__wbg_get_getdictionaryitemoptions_node_address(_,this.__wbg_ptr);var s=w()[_/4+0],l=w()[_/4+1];let p;return 0!==s&&(p=O(s,l).slice(),c.__wbindgen_free(s,1*l)),p}finally{c.__wbindgen_add_to_stack_pointer(16)}}set node_address(s){var l=E(s)?0:C(s,c.__wbindgen_malloc,c.__wbindgen_realloc);c.__wbg_set_getdictionaryitemoptions_node_address(this.__wbg_ptr,l,D)}get verbosity(){const s=c.__wbg_get_getdictionaryitemoptions_verbosity(this.__wbg_ptr);return 3===s?void 0:s}set verbosity(s){c.__wbg_set_getdictionaryitemoptions_verbosity(this.__wbg_ptr,E(s)?3:s)}}class po{static __wrap(s){s>>>=0;const l=Object.create(po.prototype);return l.__wbg_ptr=s,l}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,s}free(){const s=this.__destroy_into_raw();c.__wbg_geterainfooptions_free(s)}get maybe_block_id_as_string(){try{const _=c.__wbindgen_add_to_stack_pointer(-16);c.__wbg_get_geterainfooptions_maybe_block_id_as_string(_,this.__wbg_ptr);var s=w()[_/4+0],l=w()[_/4+1];let p;return 0!==s&&(p=O(s,l).slice(),c.__wbindgen_free(s,1*l)),p}finally{c.__wbindgen_add_to_stack_pointer(16)}}set maybe_block_id_as_string(s){var l=E(s)?0:C(s,c.__wbindgen_malloc,c.__wbindgen_realloc);c.__wbg_set_geterainfooptions_maybe_block_id_as_string(this.__wbg_ptr,l,D)}get maybe_block_identifier(){const s=c.__wbg_get_geterainfooptions_maybe_block_identifier(this.__wbg_ptr);return 0===s?void 0:he.__wrap(s)}set maybe_block_identifier(s){let l=0;E(s)||(P(s,he),l=s.__destroy_into_raw()),c.__wbg_set_geterainfooptions_maybe_block_identifier(this.__wbg_ptr,l)}get node_address(){try{const _=c.__wbindgen_add_to_stack_pointer(-16);c.__wbg_get_geterainfooptions_node_address(_,this.__wbg_ptr);var s=w()[_/4+0],l=w()[_/4+1];let p;return 0!==s&&(p=O(s,l).slice(),c.__wbindgen_free(s,1*l)),p}finally{c.__wbindgen_add_to_stack_pointer(16)}}set node_address(s){var l=E(s)?0:C(s,c.__wbindgen_malloc,c.__wbindgen_realloc);c.__wbg_set_geterainfooptions_node_address(this.__wbg_ptr,l,D)}get verbosity(){const s=c.__wbg_get_geterainfooptions_verbosity(this.__wbg_ptr);return 3===s?void 0:s}set verbosity(s){c.__wbg_set_geterainfooptions_verbosity(this.__wbg_ptr,E(s)?3:s)}}class go{static __wrap(s){s>>>=0;const l=Object.create(go.prototype);return l.__wbg_ptr=s,l}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,s}free(){const s=this.__destroy_into_raw();c.__wbg_geterasummaryoptions_free(s)}get maybe_block_id_as_string(){try{const _=c.__wbindgen_add_to_stack_pointer(-16);c.__wbg_get_geterasummaryoptions_maybe_block_id_as_string(_,this.__wbg_ptr);var s=w()[_/4+0],l=w()[_/4+1];let p;return 0!==s&&(p=O(s,l).slice(),c.__wbindgen_free(s,1*l)),p}finally{c.__wbindgen_add_to_stack_pointer(16)}}set maybe_block_id_as_string(s){var l=E(s)?0:C(s,c.__wbindgen_malloc,c.__wbindgen_realloc);c.__wbg_set_geterasummaryoptions_maybe_block_id_as_string(this.__wbg_ptr,l,D)}get maybe_block_identifier(){const s=c.__wbg_get_getaccountoptions_maybe_block_identifier(this.__wbg_ptr);return 0===s?void 0:he.__wrap(s)}set maybe_block_identifier(s){let l=0;E(s)||(P(s,he),l=s.__destroy_into_raw()),c.__wbg_set_getaccountoptions_maybe_block_identifier(this.__wbg_ptr,l)}get node_address(){try{const _=c.__wbindgen_add_to_stack_pointer(-16);c.__wbg_get_geterasummaryoptions_node_address(_,this.__wbg_ptr);var s=w()[_/4+0],l=w()[_/4+1];let p;return 0!==s&&(p=O(s,l).slice(),c.__wbindgen_free(s,1*l)),p}finally{c.__wbindgen_add_to_stack_pointer(16)}}set node_address(s){var l=E(s)?0:C(s,c.__wbindgen_malloc,c.__wbindgen_realloc);c.__wbg_set_geterasummaryoptions_node_address(this.__wbg_ptr,l,D)}get verbosity(){const s=c.__wbg_get_geterasummaryoptions_verbosity(this.__wbg_ptr);return 3===s?void 0:s}set verbosity(s){c.__wbg_set_geterasummaryoptions_verbosity(this.__wbg_ptr,E(s)?3:s)}}class ho{static __wrap(s){s>>>=0;const l=Object.create(ho.prototype);return l.__wbg_ptr=s,l}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,s}free(){const s=this.__destroy_into_raw();c.__wbg_getspeculativeexecoptions_free(s)}get deploy_as_string(){try{const _=c.__wbindgen_add_to_stack_pointer(-16);c.__wbg_get_getspeculativeexecoptions_deploy_as_string(_,this.__wbg_ptr);var s=w()[_/4+0],l=w()[_/4+1];let p;return 0!==s&&(p=O(s,l).slice(),c.__wbindgen_free(s,1*l)),p}finally{c.__wbindgen_add_to_stack_pointer(16)}}set deploy_as_string(s){var l=E(s)?0:C(s,c.__wbindgen_malloc,c.__wbindgen_realloc);c.__wbg_set_getspeculativeexecoptions_deploy_as_string(this.__wbg_ptr,l,D)}get deploy(){const s=c.__wbg_get_getspeculativeexecoptions_deploy(this.__wbg_ptr);return 0===s?void 0:ve.__wrap(s)}set deploy(s){let l=0;E(s)||(P(s,ve),l=s.__destroy_into_raw()),c.__wbg_set_getspeculativeexecoptions_deploy(this.__wbg_ptr,l)}get maybe_block_id_as_string(){try{const _=c.__wbindgen_add_to_stack_pointer(-16);c.__wbg_get_getspeculativeexecoptions_maybe_block_id_as_string(_,this.__wbg_ptr);var s=w()[_/4+0],l=w()[_/4+1];let p;return 0!==s&&(p=O(s,l).slice(),c.__wbindgen_free(s,1*l)),p}finally{c.__wbindgen_add_to_stack_pointer(16)}}set maybe_block_id_as_string(s){var l=E(s)?0:C(s,c.__wbindgen_malloc,c.__wbindgen_realloc);c.__wbg_set_getspeculativeexecoptions_maybe_block_id_as_string(this.__wbg_ptr,l,D)}get maybe_block_identifier(){const s=c.__wbg_get_getspeculativeexecoptions_maybe_block_identifier(this.__wbg_ptr);return 0===s?void 0:he.__wrap(s)}set maybe_block_identifier(s){let l=0;E(s)||(P(s,he),l=s.__destroy_into_raw()),c.__wbg_set_getspeculativeexecoptions_maybe_block_identifier(this.__wbg_ptr,l)}get node_address(){try{const _=c.__wbindgen_add_to_stack_pointer(-16);c.__wbg_get_getspeculativeexecoptions_node_address(_,this.__wbg_ptr);var s=w()[_/4+0],l=w()[_/4+1];let p;return 0!==s&&(p=O(s,l).slice(),c.__wbindgen_free(s,1*l)),p}finally{c.__wbindgen_add_to_stack_pointer(16)}}set node_address(s){var l=E(s)?0:C(s,c.__wbindgen_malloc,c.__wbindgen_realloc);c.__wbg_set_getspeculativeexecoptions_node_address(this.__wbg_ptr,l,D)}get verbosity(){const s=c.__wbg_get_getspeculativeexecoptions_verbosity(this.__wbg_ptr);return 3===s?void 0:s}set verbosity(s){c.__wbg_set_getspeculativeexecoptions_verbosity(this.__wbg_ptr,E(s)?3:s)}}class gr{static __wrap(s){s>>>=0;const l=Object.create(gr.prototype);return l.__wbg_ptr=s,l}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,s}free(){const s=this.__destroy_into_raw();c.__wbg_getstateroothashoptions_free(s)}get maybe_block_id_as_string(){try{const _=c.__wbindgen_add_to_stack_pointer(-16);c.__wbg_get_geterainfooptions_maybe_block_id_as_string(_,this.__wbg_ptr);var s=w()[_/4+0],l=w()[_/4+1];let p;return 0!==s&&(p=O(s,l).slice(),c.__wbindgen_free(s,1*l)),p}finally{c.__wbindgen_add_to_stack_pointer(16)}}set maybe_block_id_as_string(s){var l=E(s)?0:C(s,c.__wbindgen_malloc,c.__wbindgen_realloc);c.__wbg_set_geterainfooptions_maybe_block_id_as_string(this.__wbg_ptr,l,D)}get maybe_block_identifier(){const s=c.__wbg_get_geterainfooptions_maybe_block_identifier(this.__wbg_ptr);return 0===s?void 0:he.__wrap(s)}set maybe_block_identifier(s){let l=0;E(s)||(P(s,he),l=s.__destroy_into_raw()),c.__wbg_set_geterainfooptions_maybe_block_identifier(this.__wbg_ptr,l)}get node_address(){try{const _=c.__wbindgen_add_to_stack_pointer(-16);c.__wbg_get_geterainfooptions_node_address(_,this.__wbg_ptr);var s=w()[_/4+0],l=w()[_/4+1];let p;return 0!==s&&(p=O(s,l).slice(),c.__wbindgen_free(s,1*l)),p}finally{c.__wbindgen_add_to_stack_pointer(16)}}set node_address(s){var l=E(s)?0:C(s,c.__wbindgen_malloc,c.__wbindgen_realloc);c.__wbg_set_geterainfooptions_node_address(this.__wbg_ptr,l,D)}get verbosity(){const s=c.__wbg_get_geterainfooptions_verbosity(this.__wbg_ptr);return 3===s?void 0:s}set verbosity(s){c.__wbg_set_geterainfooptions_verbosity(this.__wbg_ptr,E(s)?3:s)}}class mo{static __wrap(s){s>>>=0;const l=Object.create(mo.prototype);return l.__wbg_ptr=s,l}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,s}free(){const s=this.__destroy_into_raw();c.__wbg_querybalanceoptions_free(s)}get purse_identifier_as_string(){try{const _=c.__wbindgen_add_to_stack_pointer(-16);c.__wbg_get_querybalanceoptions_purse_identifier_as_string(_,this.__wbg_ptr);var s=w()[_/4+0],l=w()[_/4+1];let p;return 0!==s&&(p=O(s,l).slice(),c.__wbindgen_free(s,1*l)),p}finally{c.__wbindgen_add_to_stack_pointer(16)}}set purse_identifier_as_string(s){var l=E(s)?0:C(s,c.__wbindgen_malloc,c.__wbindgen_realloc);c.__wbg_set_querybalanceoptions_purse_identifier_as_string(this.__wbg_ptr,l,D)}get purse_identifier(){const s=c.__wbg_get_querybalanceoptions_purse_identifier(this.__wbg_ptr);return 0===s?void 0:Gn.__wrap(s)}set purse_identifier(s){let l=0;E(s)||(P(s,Gn),l=s.__destroy_into_raw()),c.__wbg_set_querybalanceoptions_purse_identifier(this.__wbg_ptr,l)}get global_state_identifier(){const s=c.__wbg_get_querybalanceoptions_global_state_identifier(this.__wbg_ptr);return 0===s?void 0:wt.__wrap(s)}set global_state_identifier(s){let l=0;E(s)||(P(s,wt),l=s.__destroy_into_raw()),c.__wbg_set_querybalanceoptions_global_state_identifier(this.__wbg_ptr,l)}get state_root_hash_as_string(){try{const _=c.__wbindgen_add_to_stack_pointer(-16);c.__wbg_get_querybalanceoptions_state_root_hash_as_string(_,this.__wbg_ptr);var s=w()[_/4+0],l=w()[_/4+1];let p;return 0!==s&&(p=O(s,l).slice(),c.__wbindgen_free(s,1*l)),p}finally{c.__wbindgen_add_to_stack_pointer(16)}}set state_root_hash_as_string(s){var l=E(s)?0:C(s,c.__wbindgen_malloc,c.__wbindgen_realloc);c.__wbg_set_querybalanceoptions_state_root_hash_as_string(this.__wbg_ptr,l,D)}get state_root_hash(){const s=c.__wbg_get_querybalanceoptions_state_root_hash(this.__wbg_ptr);return 0===s?void 0:$e.__wrap(s)}set state_root_hash(s){let l=0;E(s)||(P(s,$e),l=s.__destroy_into_raw()),c.__wbg_set_querybalanceoptions_state_root_hash(this.__wbg_ptr,l)}get maybe_block_id_as_string(){try{const _=c.__wbindgen_add_to_stack_pointer(-16);c.__wbg_get_querybalanceoptions_maybe_block_id_as_string(_,this.__wbg_ptr);var s=w()[_/4+0],l=w()[_/4+1];let p;return 0!==s&&(p=O(s,l).slice(),c.__wbindgen_free(s,1*l)),p}finally{c.__wbindgen_add_to_stack_pointer(16)}}set maybe_block_id_as_string(s){var l=E(s)?0:C(s,c.__wbindgen_malloc,c.__wbindgen_realloc);c.__wbg_set_querybalanceoptions_maybe_block_id_as_string(this.__wbg_ptr,l,D)}get node_address(){try{const _=c.__wbindgen_add_to_stack_pointer(-16);c.__wbg_get_querybalanceoptions_node_address(_,this.__wbg_ptr);var s=w()[_/4+0],l=w()[_/4+1];let p;return 0!==s&&(p=O(s,l).slice(),c.__wbindgen_free(s,1*l)),p}finally{c.__wbindgen_add_to_stack_pointer(16)}}set node_address(s){var l=E(s)?0:C(s,c.__wbindgen_malloc,c.__wbindgen_realloc);c.__wbg_set_querybalanceoptions_node_address(this.__wbg_ptr,l,D)}get verbosity(){const s=c.__wbg_get_querybalanceoptions_verbosity(this.__wbg_ptr);return 3===s?void 0:s}set verbosity(s){c.__wbg_set_querybalanceoptions_verbosity(this.__wbg_ptr,E(s)?3:s)}}class wo{static __wrap(s){s>>>=0;const l=Object.create(wo.prototype);return l.__wbg_ptr=s,l}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,s}free(){const s=this.__destroy_into_raw();c.__wbg_querycontractdictoptions_free(s)}get state_root_hash_as_string(){try{const _=c.__wbindgen_add_to_stack_pointer(-16);c.__wbg_get_getdictionaryitemoptions_state_root_hash_as_string(_,this.__wbg_ptr);var s=w()[_/4+0],l=w()[_/4+1];let p;return 0!==s&&(p=O(s,l).slice(),c.__wbindgen_free(s,1*l)),p}finally{c.__wbindgen_add_to_stack_pointer(16)}}set state_root_hash_as_string(s){var l=E(s)?0:C(s,c.__wbindgen_malloc,c.__wbindgen_realloc);c.__wbg_set_getdictionaryitemoptions_state_root_hash_as_string(this.__wbg_ptr,l,D)}get state_root_hash(){const s=c.__wbg_get_getdictionaryitemoptions_state_root_hash(this.__wbg_ptr);return 0===s?void 0:$e.__wrap(s)}set state_root_hash(s){let l=0;E(s)||(P(s,$e),l=s.__destroy_into_raw()),c.__wbg_set_getdictionaryitemoptions_state_root_hash(this.__wbg_ptr,l)}get dictionary_item_params(){const s=c.__wbg_get_getdictionaryitemoptions_dictionary_item_params(this.__wbg_ptr);return 0===s?void 0:Mn.__wrap(s)}set dictionary_item_params(s){let l=0;E(s)||(P(s,Mn),l=s.__destroy_into_raw()),c.__wbg_set_getdictionaryitemoptions_dictionary_item_params(this.__wbg_ptr,l)}get dictionary_item_identifier(){const s=c.__wbg_get_getdictionaryitemoptions_dictionary_item_identifier(this.__wbg_ptr);return 0===s?void 0:Gt.__wrap(s)}set dictionary_item_identifier(s){let l=0;E(s)||(P(s,Gt),l=s.__destroy_into_raw()),c.__wbg_set_getdictionaryitemoptions_dictionary_item_identifier(this.__wbg_ptr,l)}get node_address(){try{const _=c.__wbindgen_add_to_stack_pointer(-16);c.__wbg_get_getdictionaryitemoptions_node_address(_,this.__wbg_ptr);var s=w()[_/4+0],l=w()[_/4+1];let p;return 0!==s&&(p=O(s,l).slice(),c.__wbindgen_free(s,1*l)),p}finally{c.__wbindgen_add_to_stack_pointer(16)}}set node_address(s){var l=E(s)?0:C(s,c.__wbindgen_malloc,c.__wbindgen_realloc);c.__wbg_set_getdictionaryitemoptions_node_address(this.__wbg_ptr,l,D)}get verbosity(){const s=c.__wbg_get_getdictionaryitemoptions_verbosity(this.__wbg_ptr);return 3===s?void 0:s}set verbosity(s){c.__wbg_set_getdictionaryitemoptions_verbosity(this.__wbg_ptr,E(s)?3:s)}}class Jt{static __wrap(s){s>>>=0;const l=Object.create(Jt.prototype);return l.__wbg_ptr=s,l}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,s}free(){const s=this.__destroy_into_raw();c.__wbg_querycontractkeyoptions_free(s)}get global_state_identifier(){const s=c.__wbg_get_querycontractkeyoptions_global_state_identifier(this.__wbg_ptr);return 0===s?void 0:wt.__wrap(s)}set global_state_identifier(s){let l=0;E(s)||(P(s,wt),l=s.__destroy_into_raw()),c.__wbg_set_querycontractkeyoptions_global_state_identifier(this.__wbg_ptr,l)}get state_root_hash_as_string(){try{const _=c.__wbindgen_add_to_stack_pointer(-16);c.__wbg_get_querycontractkeyoptions_state_root_hash_as_string(_,this.__wbg_ptr);var s=w()[_/4+0],l=w()[_/4+1];let p;return 0!==s&&(p=O(s,l).slice(),c.__wbindgen_free(s,1*l)),p}finally{c.__wbindgen_add_to_stack_pointer(16)}}set state_root_hash_as_string(s){var l=E(s)?0:C(s,c.__wbindgen_malloc,c.__wbindgen_realloc);c.__wbg_set_querycontractkeyoptions_state_root_hash_as_string(this.__wbg_ptr,l,D)}get state_root_hash(){const s=c.__wbg_get_querycontractkeyoptions_state_root_hash(this.__wbg_ptr);return 0===s?void 0:$e.__wrap(s)}set state_root_hash(s){let l=0;E(s)||(P(s,$e),l=s.__destroy_into_raw()),c.__wbg_set_querycontractkeyoptions_state_root_hash(this.__wbg_ptr,l)}get maybe_block_id_as_string(){try{const _=c.__wbindgen_add_to_stack_pointer(-16);c.__wbg_get_querycontractkeyoptions_maybe_block_id_as_string(_,this.__wbg_ptr);var s=w()[_/4+0],l=w()[_/4+1];let p;return 0!==s&&(p=O(s,l).slice(),c.__wbindgen_free(s,1*l)),p}finally{c.__wbindgen_add_to_stack_pointer(16)}}set maybe_block_id_as_string(s){var l=E(s)?0:C(s,c.__wbindgen_malloc,c.__wbindgen_realloc);c.__wbg_set_querycontractkeyoptions_maybe_block_id_as_string(this.__wbg_ptr,l,D)}get contract_key_as_string(){try{const _=c.__wbindgen_add_to_stack_pointer(-16);c.__wbg_get_querycontractkeyoptions_contract_key_as_string(_,this.__wbg_ptr);var s=w()[_/4+0],l=w()[_/4+1];let p;return 0!==s&&(p=O(s,l).slice(),c.__wbindgen_free(s,1*l)),p}finally{c.__wbindgen_add_to_stack_pointer(16)}}set contract_key_as_string(s){var l=E(s)?0:C(s,c.__wbindgen_malloc,c.__wbindgen_realloc);c.__wbg_set_querycontractkeyoptions_contract_key_as_string(this.__wbg_ptr,l,D)}get contract_key(){const s=c.__wbg_get_querycontractkeyoptions_contract_key(this.__wbg_ptr);return 0===s?void 0:xe.__wrap(s)}set contract_key(s){let l=0;E(s)||(P(s,xe),l=s.__destroy_into_raw()),c.__wbg_set_querycontractkeyoptions_contract_key(this.__wbg_ptr,l)}get path_as_string(){try{const _=c.__wbindgen_add_to_stack_pointer(-16);c.__wbg_get_querycontractkeyoptions_path_as_string(_,this.__wbg_ptr);var s=w()[_/4+0],l=w()[_/4+1];let p;return 0!==s&&(p=O(s,l).slice(),c.__wbindgen_free(s,1*l)),p}finally{c.__wbindgen_add_to_stack_pointer(16)}}set path_as_string(s){var l=E(s)?0:C(s,c.__wbindgen_malloc,c.__wbindgen_realloc);c.__wbg_set_querycontractkeyoptions_path_as_string(this.__wbg_ptr,l,D)}get path(){const s=c.__wbg_get_querycontractkeyoptions_path(this.__wbg_ptr);return 0===s?void 0:kn.__wrap(s)}set path(s){let l=0;E(s)||(P(s,kn),l=s.__destroy_into_raw()),c.__wbg_set_querycontractkeyoptions_path(this.__wbg_ptr,l)}get node_address(){try{const _=c.__wbindgen_add_to_stack_pointer(-16);c.__wbg_get_querycontractkeyoptions_node_address(_,this.__wbg_ptr);var s=w()[_/4+0],l=w()[_/4+1];let p;return 0!==s&&(p=O(s,l).slice(),c.__wbindgen_free(s,1*l)),p}finally{c.__wbindgen_add_to_stack_pointer(16)}}set node_address(s){var l=E(s)?0:C(s,c.__wbindgen_malloc,c.__wbindgen_realloc);c.__wbg_set_querycontractkeyoptions_node_address(this.__wbg_ptr,l,D)}get verbosity(){const s=c.__wbg_get_querycontractkeyoptions_verbosity(this.__wbg_ptr);return 3===s?void 0:s}set verbosity(s){c.__wbg_set_querycontractkeyoptions_verbosity(this.__wbg_ptr,E(s)?3:s)}}class yo{static __wrap(s){s>>>=0;const l=Object.create(yo.prototype);return l.__wbg_ptr=s,l}__destroy_into_raw(){const s=this.__wbg_ptr;return this.__wbg_ptr=0,s}free(){const s=this.__destroy_into_raw();c.__wbg_queryglobalstateoptions_free(s)}get global_state_identifier(){const s=c.__wbg_get_queryglobalstateoptions_global_state_identifier(this.__wbg_ptr);return 0===s?void 0:wt.__wrap(s)}set global_state_identifier(s){let l=0;E(s)||(P(s,wt),l=s.__destroy_into_raw()),c.__wbg_set_queryglobalstateoptions_global_state_identifier(this.__wbg_ptr,l)}get state_root_hash_as_string(){try{const _=c.__wbindgen_add_to_stack_pointer(-16);c.__wbg_get_queryglobalstateoptions_state_root_hash_as_string(_,this.__wbg_ptr);var s=w()[_/4+0],l=w()[_/4+1];let p;return 0!==s&&(p=O(s,l).slice(),c.__wbindgen_free(s,1*l)),p}finally{c.__wbindgen_add_to_stack_pointer(16)}}set state_root_hash_as_string(s){var l=E(s)?0:C(s,c.__wbindgen_malloc,c.__wbindgen_realloc);c.__wbg_set_queryglobalstateoptions_state_root_hash_as_string(this.__wbg_ptr,l,D)}get state_root_hash(){const s=c.__wbg_get_queryglobalstateoptions_state_root_hash(this.__wbg_ptr);return 0===s?void 0:$e.__wrap(s)}set state_root_hash(s){let l=0;E(s)||(P(s,$e),l=s.__destroy_into_raw()),c.__wbg_set_queryglobalstateoptions_state_root_hash(this.__wbg_ptr,l)}get maybe_block_id_as_string(){try{const _=c.__wbindgen_add_to_stack_pointer(-16);c.__wbg_get_queryglobalstateoptions_maybe_block_id_as_string(_,this.__wbg_ptr);var s=w()[_/4+0],l=w()[_/4+1];let p;return 0!==s&&(p=O(s,l).slice(),c.__wbindgen_free(s,1*l)),p}finally{c.__wbindgen_add_to_stack_pointer(16)}}set maybe_block_id_as_string(s){var l=E(s)?0:C(s,c.__wbindgen_malloc,c.__wbindgen_realloc);c.__wbg_set_queryglobalstateoptions_maybe_block_id_as_string(this.__wbg_ptr,l,D)}get key_as_string(){try{const _=c.__wbindgen_add_to_stack_pointer(-16);c.__wbg_get_queryglobalstateoptions_key_as_string(_,this.__wbg_ptr);var s=w()[_/4+0],l=w()[_/4+1];let p;return 0!==s&&(p=O(s,l).slice(),c.__wbindgen_free(s,1*l)),p}finally{c.__wbindgen_add_to_stack_pointer(16)}}set key_as_string(s){var l=E(s)?0:C(s,c.__wbindgen_malloc,c.__wbindgen_realloc);c.__wbg_set_queryglobalstateoptions_key_as_string(this.__wbg_ptr,l,D)}get key(){const s=c.__wbg_get_queryglobalstateoptions_key(this.__wbg_ptr);return 0===s?void 0:xe.__wrap(s)}set key(s){let l=0;E(s)||(P(s,xe),l=s.__destroy_into_raw()),c.__wbg_set_queryglobalstateoptions_key(this.__wbg_ptr,l)}get path_as_string(){try{const _=c.__wbindgen_add_to_stack_pointer(-16);c.__wbg_get_queryglobalstateoptions_path_as_string(_,this.__wbg_ptr);var s=w()[_/4+0],l=w()[_/4+1];let p;return 0!==s&&(p=O(s,l).slice(),c.__wbindgen_free(s,1*l)),p}finally{c.__wbindgen_add_to_stack_pointer(16)}}set path_as_string(s){var l=E(s)?0:C(s,c.__wbindgen_malloc,c.__wbindgen_realloc);c.__wbg_set_queryglobalstateoptions_path_as_string(this.__wbg_ptr,l,D)}get path(){const s=c.__wbg_get_queryglobalstateoptions_path(this.__wbg_ptr);return 0===s?void 0:kn.__wrap(s)}set path(s){let l=0;E(s)||(P(s,kn),l=s.__destroy_into_raw()),c.__wbg_set_queryglobalstateoptions_path(this.__wbg_ptr,l)}get node_address(){try{const _=c.__wbindgen_add_to_stack_pointer(-16);c.__wbg_get_queryglobalstateoptions_node_address(_,this.__wbg_ptr);var s=w()[_/4+0],l=w()[_/4+1];let p;return 0!==s&&(p=O(s,l).slice(),c.__wbindgen_free(s,1*l)),p}finally{c.__wbindgen_add_to_stack_pointer(16)}}set node_address(s){var l=E(s)?0:C(s,c.__wbindgen_malloc,c.__wbindgen_realloc);c.__wbg_set_queryglobalstateoptions_node_address(this.__wbg_ptr,l,D)}get verbosity(){const s=c.__wbg_get_queryglobalstateoptions_verbosity(this.__wbg_ptr);return 3===s?void 0:s}set verbosity(s){c.__wbg_set_queryglobalstateoptions_verbosity(this.__wbg_ptr,E(s)?3:s)}}function Ps(){return(Ps=(0,Se.Z)(function*(v,s){if("function"==typeof Response&&v instanceof Response){if("function"==typeof WebAssembly.instantiateStreaming)try{return yield WebAssembly.instantiateStreaming(v,s)}catch(_){if("application/wasm"==v.headers.get("Content-Type"))throw _;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",_)}const l=yield v.arrayBuffer();return yield WebAssembly.instantiate(l,s)}{const l=yield WebAssembly.instantiate(v,s);return l instanceof WebAssembly.Instance?{instance:l,module:v}:l}})).apply(this,arguments)}function Os(){const v={wbg:{}};return v.wbg.__wbindgen_object_drop_ref=function(s){M(s)},v.wbg.__wbg_getblockresult_new=function(s){return H(lo.__wrap(s))},v.wbg.__wbg_error_82cd4adbafcf90ca=function(s,l){console.error(O(s,l))},v.wbg.__wbindgen_error_new=function(s,l){return H(new Error(O(s,l)))},v.wbg.__wbg_geterasummaryresult_new=function(s){return H(Ss.__wrap(s))},v.wbg.__wbg_getdictionaryitemresult_new=function(s){return H(Rr.__wrap(s))},v.wbg.__wbg_listrpcsresult_new=function(s){return H(Ts.__wrap(s))},v.wbg.__wbg_speculativeexecresult_new=function(s){return H(fo.__wrap(s))},v.wbg.__wbindgen_string_new=function(s,l){return H(O(s,l))},v.wbg.__wbg_putdeployresult_new=function(s){return H(As.__wrap(s))},v.wbg.__wbg_getchainspecresult_new=function(s){return H(xr.__wrap(s))},v.wbg.__wbg_getaccountresult_new=function(s){return H(Vi.__wrap(s))},v.wbg.__wbg_getstateroothashresult_new=function(s){return H(on.__wrap(s))},v.wbg.__wbg_getauctioninforesult_new=function(s){return H(Bi.__wrap(s))},v.wbg.__wbg_getpeersresult_new=function(s){return H(ks.__wrap(s))},v.wbg.__wbg_queryglobalstateresult_new=function(s){return H(xs.__wrap(s))},v.wbg.__wbg_querybalanceresult_new=function(s){return H(Ns.__wrap(s))},v.wbg.__wbg_getbalanceresult_new=function(s){return H(Es.__wrap(s))},v.wbg.__wbg_geterainforesult_new=function(s){return H(uo.__wrap(s))},v.wbg.__wbg_getdeployresult_new=function(s){return H(Is.__wrap(s))},v.wbg.__wbg_getnodestatusresult_new=function(s){return H(Ms.__wrap(s))},v.wbg.__wbg_getblocktransfersresult_new=function(s){return H(Cs.__wrap(s))},v.wbg.__wbg_getvalidatorchangesresult_new=function(s){return H(_o.__wrap(s))},v.wbg.__wbindgen_jsval_eq=function(s,l){return B(s)===B(l)},v.wbg.__wbindgen_is_undefined=function(s){return void 0===B(s)},v.wbg.__wbindgen_string_get=function(s,l){const _=B(l),p="string"==typeof _?_:void 0;var m=E(p)?0:C(p,c.__wbindgen_malloc,c.__wbindgen_realloc),S=D;w()[s/4+1]=S,w()[s/4+0]=m},v.wbg.__wbindgen_is_null=function(s){return null===B(s)},v.wbg.__wbindgen_cb_drop=function(s){const l=M(s).original;return 1==l.cnt--&&(l.a=0,!0)},v.wbg.__wbindgen_object_clone_ref=function(s){return H(B(s))},v.wbg.__wbg_fetch_57429b87be3dcc33=function(s){return H(fetch(B(s)))},v.wbg.__wbg_fetch_8eaf01857a5bb21f=function(s,l){return H(B(s).fetch(B(l)))},v.wbg.__wbg_signal_4bd18fb489af2d4c=function(s){return H(B(s).signal)},v.wbg.__wbg_new_55c9955722952374=function(){return ze(function(){return H(new AbortController)},arguments)},v.wbg.__wbg_abort_654b796176d117aa=function(s){B(s).abort()},v.wbg.__wbg_newwithstrandinit_cad5cd6038c7ff5d=function(){return ze(function(s,l,_){return H(new Request(O(s,l),B(_)))},arguments)},v.wbg.__wbg_instanceof_Response_fc4327dbfcdf5ced=function(s){let l;try{l=B(s)instanceof Response}catch{l=!1}return l},v.wbg.__wbg_url_8503de97f69da463=function(s,l){const p=C(B(l).url,c.__wbindgen_malloc,c.__wbindgen_realloc),m=D;w()[s/4+1]=m,w()[s/4+0]=p},v.wbg.__wbg_status_ac85a3142a84caa2=function(s){return B(s).status},v.wbg.__wbg_headers_b70de86b8e989bc0=function(s){return H(B(s).headers)},v.wbg.__wbg_arrayBuffer_288fb3538806e85c=function(){return ze(function(s){return H(B(s).arrayBuffer())},arguments)},v.wbg.__wbg_new_1eead62f64ca15ce=function(){return ze(function(){return H(new Headers)},arguments)},v.wbg.__wbg_append_fda9e3432e3e88da=function(){return ze(function(s,l,_,p,m){B(s).append(O(l,_),O(p,m))},arguments)},v.wbg.__wbg_crypto_c48a774b022d20ac=function(s){return H(B(s).crypto)},v.wbg.__wbindgen_is_object=function(s){const l=B(s);return"object"==typeof l&&null!==l},v.wbg.__wbg_process_298734cf255a885d=function(s){return H(B(s).process)},v.wbg.__wbg_versions_e2e78e134e3e5d01=function(s){return H(B(s).versions)},v.wbg.__wbg_node_1cd7a5d853dbea79=function(s){return H(B(s).node)},v.wbg.__wbindgen_is_string=function(s){return"string"==typeof B(s)},v.wbg.__wbg_msCrypto_bcb970640f50a1e8=function(s){return H(B(s).msCrypto)},v.wbg.__wbg_require_8f08ceecec0f4fee=function(){return ze(function(){return H(Cn.require)},arguments)},v.wbg.__wbindgen_is_function=function(s){return"function"==typeof B(s)},v.wbg.__wbg_randomFillSync_dc1e9a60c158336d=function(){return ze(function(s,l){B(s).randomFillSync(M(l))},arguments)},v.wbg.__wbg_getRandomValues_37fa2ca9e4e07fab=function(){return ze(function(s,l){B(s).getRandomValues(B(l))},arguments)},v.wbg.__wbg_get_44be0491f933a435=function(s,l){return H(B(s)[l>>>0])},v.wbg.__wbg_length_fff51ee6522a1a18=function(s){return B(s).length},v.wbg.__wbg_new_898a68150f225f2e=function(){return H(new Array)},v.wbg.__wbg_newnoargs_581967eacc0e2604=function(s,l){return H(new Function(O(s,l)))},v.wbg.__wbg_next_526fc47e980da008=function(s){return H(B(s).next)},v.wbg.__wbg_next_ddb3312ca1c4e32a=function(){return ze(function(s){return H(B(s).next())},arguments)},v.wbg.__wbg_done_5c1f01fb660d73b5=function(s){return B(s).done},v.wbg.__wbg_value_1695675138684bd5=function(s){return H(B(s).value)},v.wbg.__wbg_iterator_97f0c81209c6c35a=function(){return H(Symbol.iterator)},v.wbg.__wbg_get_97b561fb56f034b5=function(){return ze(function(s,l){return H(Reflect.get(B(s),B(l)))},arguments)},v.wbg.__wbg_call_cb65541d95d71282=function(){return ze(function(s,l){return H(B(s).call(B(l)))},arguments)},v.wbg.__wbg_new_b51585de1b234aff=function(){return H(new Object)},v.wbg.__wbg_self_1ff1d729e9aae938=function(){return ze(function(){return H(self.self)},arguments)},v.wbg.__wbg_window_5f4faef6c12b79ec=function(){return ze(function(){return H(window.window)},arguments)},v.wbg.__wbg_globalThis_1d39714405582d3c=function(){return ze(function(){return H(globalThis.globalThis)},arguments)},v.wbg.__wbg_global_651f05c6a0944d1c=function(){return ze(function(){return H(global.global)},arguments)},v.wbg.__wbg_push_ca1c26067ef907ac=function(s,l){return B(s).push(B(l))},v.wbg.__wbg_call_01734de55d61e11d=function(){return ze(function(s,l,_){return H(B(s).call(B(l),B(_)))},arguments)},v.wbg.__wbg_getTime_5e2054f832d82ec9=function(s){return B(s).getTime()},v.wbg.__wbg_new0_c0be7df4b6bd481f=function(){return H(new Date)},v.wbg.__wbg_instanceof_Object_3daa8298c86298be=function(s){let l;try{l=B(s)instanceof Object}catch{l=!1}return l},v.wbg.__wbg_new_43f1b47c28813cbd=function(s,l){try{var _={a:s,b:l};const m=new Promise((S,N)=>{const Z=_.a;_.a=0;try{return function Uc(v,s,l,_){c.wasm_bindgen__convert__closures__invoke2_mut__h02a7a5846fd066d3(v,s,H(l),H(_))}(Z,_.b,S,N)}finally{_.a=Z}});return H(m)}finally{_.a=_.b=0}},v.wbg.__wbg_resolve_53698b95aaf7fcf8=function(s){return H(Promise.resolve(B(s)))},v.wbg.__wbg_then_f7e06ee3c11698eb=function(s,l){return H(B(s).then(B(l)))},v.wbg.__wbg_then_b2267541e2a73865=function(s,l,_){return H(B(s).then(B(l),B(_)))},v.wbg.__wbg_buffer_085ec1f694018c4f=function(s){return H(B(s).buffer)},v.wbg.__wbg_newwithbyteoffsetandlength_6da8e527659b86aa=function(s,l,_){return H(new Uint8Array(B(s),l>>>0,_>>>0))},v.wbg.__wbg_new_8125e318e6245eed=function(s){return H(new Uint8Array(B(s)))},v.wbg.__wbg_set_5cf90238115182c3=function(s,l,_){B(s).set(B(l),_>>>0)},v.wbg.__wbg_length_72e2208bbc0efc61=function(s){return B(s).length},v.wbg.__wbg_newwithlength_e5d69174d6984cd7=function(s){return H(new Uint8Array(s>>>0))},v.wbg.__wbg_subarray_13db269f57aa838d=function(s,l,_){return H(B(s).subarray(l>>>0,_>>>0))},v.wbg.__wbg_getindex_961202524f8271d6=function(s,l){return B(s)[l>>>0]},v.wbg.__wbg_parse_670c19d4e984792e=function(){return ze(function(s,l){return H(JSON.parse(O(s,l)))},arguments)},v.wbg.__wbg_stringify_e25465938f3f611f=function(){return ze(function(s){return H(JSON.stringify(B(s)))},arguments)},v.wbg.__wbg_has_c5fcd020291e56b8=function(){return ze(function(s,l){return Reflect.has(B(s),B(l))},arguments)},v.wbg.__wbg_set_092e06b0f9d71865=function(){return ze(function(s,l,_){return Reflect.set(B(s),B(l),B(_))},arguments)},v.wbg.__wbindgen_debug_string=function(s,l){const p=C(Tr(B(l)),c.__wbindgen_malloc,c.__wbindgen_realloc),m=D;w()[s/4+1]=m,w()[s/4+0]=p},v.wbg.__wbindgen_throw=function(s,l){throw new Error(O(s,l))},v.wbg.__wbindgen_memory=function(){return H(c.memory)},v.wbg.__wbindgen_closure_wrapper3953=function(s,l,_){const p=function Bc(v,s,l,_){const p={a:v,b:s,cnt:1,dtor:l},m=(...S)=>{p.cnt++;const N=p.a;p.a=0;try{return _(N,p.b,...S)}finally{0==--p.cnt?c.__wbindgen_export_2.get(p.dtor)(N,p.b):p.a=N}};return m.original=p,m}(s,l,741,ws);return H(p)},v}function vo(v){return Ui.apply(this,arguments)}function Ui(){return Ui=(0,Se.Z)(function*(v){if(void 0!==c)return c;typeof v>"u"&&(v=new URL("casper_rust_wasm_sdk_bg.wasm","file:///media/WINKING/opt2/casper/rustSDK/pkg/casper_rust_wasm_sdk.js"));const s=Os();("string"==typeof v||"function"==typeof Request&&v instanceof Request||"function"==typeof URL&&v instanceof URL)&&(v=fetch(v));const{instance:l,module:_}=yield function bo(v,s){return Ps.apply(this,arguments)}(yield v,s);return function $i(v,s){return c=v.exports,vo.__wbindgen_wasm_module=s,In=null,Be=null,c}(l,_)}),Ui.apply(this,arguments)}const qi=vo},9671:(Cn,cr,it)=>{function Se(Ae,B,Fe,zt,M,gt,Be){try{var tt=Ae[gt](Be),O=tt.value}catch(H){return void Fe(H)}tt.done?B(O):Promise.resolve(O).then(zt,M)}function c(Ae){return function(){var B=this,Fe=arguments;return new Promise(function(zt,M){var gt=Ae.apply(B,Fe);function Be(O){Se(gt,zt,M,Be,tt,"next",O)}function tt(O){Se(gt,zt,M,Be,tt,"throw",O)}Be(void 0)})}}it.d(cr,{Z:()=>c})}},Cn=>{Cn(Cn.s=2311)}]); \ No newline at end of file diff --git a/examples/frontend/angular/dist/casper/polyfills.9266d9d3bbc6dd54.js b/examples/frontend/angular/dist/casper/polyfills.9266d9d3bbc6dd54.js new file mode 100644 index 000000000..44827a698 --- /dev/null +++ b/examples/frontend/angular/dist/casper/polyfills.9266d9d3bbc6dd54.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcasper=self.webpackChunkcasper||[]).push([[429],{8332:()=>{!function(e){const n=e.performance;function s(j){n&&n.mark&&n.mark(j)}function r(j,h){n&&n.measure&&n.measure(j,h)}s("Zone");const i=e.__Zone_symbol_prefix||"__zone_symbol__";function l(j){return i+j}const p=!0===e[l("forceDuplicateZoneCheck")];if(e.Zone){if(p||"function"!=typeof e.Zone.__symbol__)throw new Error("Zone already loaded.");return e.Zone}let E=(()=>{class h{static assertZonePatched(){if(e.Promise!==oe.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")}static get root(){let t=h.current;for(;t.parent;)t=t.parent;return t}static get current(){return W.zone}static get currentTask(){return re}static __load_patch(t,_,w=!1){if(oe.hasOwnProperty(t)){if(!w&&p)throw Error("Already loaded patch: "+t)}else if(!e["__Zone_disable_"+t]){const L="Zone:"+t;s(L),oe[t]=_(e,h,Y),r(L,L)}}get parent(){return this._parent}get name(){return this._name}constructor(t,_){this._parent=t,this._name=_?_.name||"unnamed":"",this._properties=_&&_.properties||{},this._zoneDelegate=new v(this,this._parent&&this._parent._zoneDelegate,_)}get(t){const _=this.getZoneWith(t);if(_)return _._properties[t]}getZoneWith(t){let _=this;for(;_;){if(_._properties.hasOwnProperty(t))return _;_=_._parent}return null}fork(t){if(!t)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,t)}wrap(t,_){if("function"!=typeof t)throw new Error("Expecting function got: "+t);const w=this._zoneDelegate.intercept(this,t,_),L=this;return function(){return L.runGuarded(w,this,arguments,_)}}run(t,_,w,L){W={parent:W,zone:this};try{return this._zoneDelegate.invoke(this,t,_,w,L)}finally{W=W.parent}}runGuarded(t,_=null,w,L){W={parent:W,zone:this};try{try{return this._zoneDelegate.invoke(this,t,_,w,L)}catch(a){if(this._zoneDelegate.handleError(this,a))throw a}}finally{W=W.parent}}runTask(t,_,w){if(t.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(t.zone||J).name+"; Execution: "+this.name+")");if(t.state===G&&(t.type===Q||t.type===P))return;const L=t.state!=y;L&&t._transitionTo(y,A),t.runCount++;const a=re;re=t,W={parent:W,zone:this};try{t.type==P&&t.data&&!t.data.isPeriodic&&(t.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,t,_,w)}catch(u){if(this._zoneDelegate.handleError(this,u))throw u}}finally{t.state!==G&&t.state!==d&&(t.type==Q||t.data&&t.data.isPeriodic?L&&t._transitionTo(A,y):(t.runCount=0,this._updateTaskCount(t,-1),L&&t._transitionTo(G,y,G))),W=W.parent,re=a}}scheduleTask(t){if(t.zone&&t.zone!==this){let w=this;for(;w;){if(w===t.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${t.zone.name}`);w=w.parent}}t._transitionTo(z,G);const _=[];t._zoneDelegates=_,t._zone=this;try{t=this._zoneDelegate.scheduleTask(this,t)}catch(w){throw t._transitionTo(d,z,G),this._zoneDelegate.handleError(this,w),w}return t._zoneDelegates===_&&this._updateTaskCount(t,1),t.state==z&&t._transitionTo(A,z),t}scheduleMicroTask(t,_,w,L){return this.scheduleTask(new m(I,t,_,w,L,void 0))}scheduleMacroTask(t,_,w,L,a){return this.scheduleTask(new m(P,t,_,w,L,a))}scheduleEventTask(t,_,w,L,a){return this.scheduleTask(new m(Q,t,_,w,L,a))}cancelTask(t){if(t.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(t.zone||J).name+"; Execution: "+this.name+")");if(t.state===A||t.state===y){t._transitionTo(V,A,y);try{this._zoneDelegate.cancelTask(this,t)}catch(_){throw t._transitionTo(d,V),this._zoneDelegate.handleError(this,_),_}return this._updateTaskCount(t,-1),t._transitionTo(G,V),t.runCount=0,t}}_updateTaskCount(t,_){const w=t._zoneDelegates;-1==_&&(t._zoneDelegates=null);for(let L=0;Lj.hasTask(c,t),onScheduleTask:(j,h,c,t)=>j.scheduleTask(c,t),onInvokeTask:(j,h,c,t,_,w)=>j.invokeTask(c,t,_,w),onCancelTask:(j,h,c,t)=>j.cancelTask(c,t)};class v{constructor(h,c,t){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this.zone=h,this._parentDelegate=c,this._forkZS=t&&(t&&t.onFork?t:c._forkZS),this._forkDlgt=t&&(t.onFork?c:c._forkDlgt),this._forkCurrZone=t&&(t.onFork?this.zone:c._forkCurrZone),this._interceptZS=t&&(t.onIntercept?t:c._interceptZS),this._interceptDlgt=t&&(t.onIntercept?c:c._interceptDlgt),this._interceptCurrZone=t&&(t.onIntercept?this.zone:c._interceptCurrZone),this._invokeZS=t&&(t.onInvoke?t:c._invokeZS),this._invokeDlgt=t&&(t.onInvoke?c:c._invokeDlgt),this._invokeCurrZone=t&&(t.onInvoke?this.zone:c._invokeCurrZone),this._handleErrorZS=t&&(t.onHandleError?t:c._handleErrorZS),this._handleErrorDlgt=t&&(t.onHandleError?c:c._handleErrorDlgt),this._handleErrorCurrZone=t&&(t.onHandleError?this.zone:c._handleErrorCurrZone),this._scheduleTaskZS=t&&(t.onScheduleTask?t:c._scheduleTaskZS),this._scheduleTaskDlgt=t&&(t.onScheduleTask?c:c._scheduleTaskDlgt),this._scheduleTaskCurrZone=t&&(t.onScheduleTask?this.zone:c._scheduleTaskCurrZone),this._invokeTaskZS=t&&(t.onInvokeTask?t:c._invokeTaskZS),this._invokeTaskDlgt=t&&(t.onInvokeTask?c:c._invokeTaskDlgt),this._invokeTaskCurrZone=t&&(t.onInvokeTask?this.zone:c._invokeTaskCurrZone),this._cancelTaskZS=t&&(t.onCancelTask?t:c._cancelTaskZS),this._cancelTaskDlgt=t&&(t.onCancelTask?c:c._cancelTaskDlgt),this._cancelTaskCurrZone=t&&(t.onCancelTask?this.zone:c._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;const _=t&&t.onHasTask;(_||c&&c._hasTaskZS)&&(this._hasTaskZS=_?t:b,this._hasTaskDlgt=c,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=h,t.onScheduleTask||(this._scheduleTaskZS=b,this._scheduleTaskDlgt=c,this._scheduleTaskCurrZone=this.zone),t.onInvokeTask||(this._invokeTaskZS=b,this._invokeTaskDlgt=c,this._invokeTaskCurrZone=this.zone),t.onCancelTask||(this._cancelTaskZS=b,this._cancelTaskDlgt=c,this._cancelTaskCurrZone=this.zone))}fork(h,c){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,h,c):new E(h,c)}intercept(h,c,t){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,h,c,t):c}invoke(h,c,t,_,w){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,h,c,t,_,w):c.apply(t,_)}handleError(h,c){return!this._handleErrorZS||this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,h,c)}scheduleTask(h,c){let t=c;if(this._scheduleTaskZS)this._hasTaskZS&&t._zoneDelegates.push(this._hasTaskDlgtOwner),t=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,h,c),t||(t=c);else if(c.scheduleFn)c.scheduleFn(c);else{if(c.type!=I)throw new Error("Task is missing scheduleFn.");C(c)}return t}invokeTask(h,c,t,_){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,h,c,t,_):c.callback.apply(t,_)}cancelTask(h,c){let t;if(this._cancelTaskZS)t=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,h,c);else{if(!c.cancelFn)throw Error("Task is not cancelable");t=c.cancelFn(c)}return t}hasTask(h,c){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,h,c)}catch(t){this.handleError(h,t)}}_updateTaskCount(h,c){const t=this._taskCounts,_=t[h],w=t[h]=_+c;if(w<0)throw new Error("More tasks executed then were scheduled.");0!=_&&0!=w||this.hasTask(this.zone,{microTask:t.microTask>0,macroTask:t.macroTask>0,eventTask:t.eventTask>0,change:h})}}class m{constructor(h,c,t,_,w,L){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=h,this.source=c,this.data=_,this.scheduleFn=w,this.cancelFn=L,!t)throw new Error("callback is not defined");this.callback=t;const a=this;this.invoke=h===Q&&_&&_.useG?m.invokeTask:function(){return m.invokeTask.call(e,a,this,arguments)}}static invokeTask(h,c,t){h||(h=this),ee++;try{return h.runCount++,h.zone.runTask(h,c,t)}finally{1==ee&&T(),ee--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(G,z)}_transitionTo(h,c,t){if(this._state!==c&&this._state!==t)throw new Error(`${this.type} '${this.source}': can not transition to '${h}', expecting state '${c}'${t?" or '"+t+"'":""}, was '${this._state}'.`);this._state=h,h==G&&(this._zoneDelegates=null)}toString(){return this.data&&typeof this.data.handleId<"u"?this.data.handleId.toString():Object.prototype.toString.call(this)}toJSON(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}}}const M=l("setTimeout"),O=l("Promise"),N=l("then");let K,U=[],x=!1;function X(j){if(K||e[O]&&(K=e[O].resolve(0)),K){let h=K[N];h||(h=K.then),h.call(K,j)}else e[M](j,0)}function C(j){0===ee&&0===U.length&&X(T),j&&U.push(j)}function T(){if(!x){for(x=!0;U.length;){const j=U;U=[];for(let h=0;hW,onUnhandledError:q,microtaskDrainDone:q,scheduleMicroTask:C,showUncaughtError:()=>!E[l("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:q,patchMethod:()=>q,bindArguments:()=>[],patchThen:()=>q,patchMacroTask:()=>q,patchEventPrototype:()=>q,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>q,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>q,wrapWithCurrentZone:()=>q,filterProperties:()=>[],attachOriginToPatched:()=>q,_redefineProperty:()=>q,patchCallbacks:()=>q,nativeScheduleMicroTask:X};let W={parent:null,zone:new E(null,null)},re=null,ee=0;function q(){}r("Zone","Zone"),e.Zone=E}(typeof window<"u"&&window||typeof self<"u"&&self||global);const ue=Object.getOwnPropertyDescriptor,pe=Object.defineProperty,ve=Object.getPrototypeOf,Se=Object.create,it=Array.prototype.slice,Ze="addEventListener",De="removeEventListener",Oe=Zone.__symbol__(Ze),Ne=Zone.__symbol__(De),ie="true",ce="false",me=Zone.__symbol__("");function Ie(e,n){return Zone.current.wrap(e,n)}function Me(e,n,s,r,i){return Zone.current.scheduleMacroTask(e,n,s,r,i)}const H=Zone.__symbol__,be=typeof window<"u",_e=be?window:void 0,$=be&&_e||"object"==typeof self&&self||global,ct="removeAttribute";function Le(e,n){for(let s=e.length-1;s>=0;s--)"function"==typeof e[s]&&(e[s]=Ie(e[s],n+"_"+s));return e}function Ve(e){return!e||!1!==e.writable&&!("function"==typeof e.get&&typeof e.set>"u")}const Fe=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,Pe=!("nw"in $)&&typeof $.process<"u"&&"[object process]"==={}.toString.call($.process),Ae=!Pe&&!Fe&&!(!be||!_e.HTMLElement),Be=typeof $.process<"u"&&"[object process]"==={}.toString.call($.process)&&!Fe&&!(!be||!_e.HTMLElement),we={},Ue=function(e){if(!(e=e||$.event))return;let n=we[e.type];n||(n=we[e.type]=H("ON_PROPERTY"+e.type));const s=this||e.target||$,r=s[n];let i;return Ae&&s===_e&&"error"===e.type?(i=r&&r.call(this,e.message,e.filename,e.lineno,e.colno,e.error),!0===i&&e.preventDefault()):(i=r&&r.apply(this,arguments),null!=i&&!i&&e.preventDefault()),i};function We(e,n,s){let r=ue(e,n);if(!r&&s&&ue(s,n)&&(r={enumerable:!0,configurable:!0}),!r||!r.configurable)return;const i=H("on"+n+"patched");if(e.hasOwnProperty(i)&&e[i])return;delete r.writable,delete r.value;const l=r.get,p=r.set,E=n.slice(2);let b=we[E];b||(b=we[E]=H("ON_PROPERTY"+E)),r.set=function(v){let m=this;!m&&e===$&&(m=$),m&&("function"==typeof m[b]&&m.removeEventListener(E,Ue),p&&p.call(m,null),m[b]=v,"function"==typeof v&&m.addEventListener(E,Ue,!1))},r.get=function(){let v=this;if(!v&&e===$&&(v=$),!v)return null;const m=v[b];if(m)return m;if(l){let M=l.call(this);if(M)return r.set.call(this,M),"function"==typeof v[ct]&&v.removeAttribute(n),M}return null},pe(e,n,r),e[i]=!0}function qe(e,n,s){if(n)for(let r=0;rfunction(p,E){const b=s(p,E);return b.cbIdx>=0&&"function"==typeof E[b.cbIdx]?Me(b.name,E[b.cbIdx],b,i):l.apply(p,E)})}function le(e,n){e[H("OriginalDelegate")]=n}let Xe=!1,je=!1;function ft(){if(Xe)return je;Xe=!0;try{const e=_e.navigator.userAgent;(-1!==e.indexOf("MSIE ")||-1!==e.indexOf("Trident/")||-1!==e.indexOf("Edge/"))&&(je=!0)}catch{}return je}Zone.__load_patch("ZoneAwarePromise",(e,n,s)=>{const r=Object.getOwnPropertyDescriptor,i=Object.defineProperty,p=s.symbol,E=[],b=!0===e[p("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")],v=p("Promise"),m=p("then"),M="__creationTrace__";s.onUnhandledError=a=>{if(s.showUncaughtError()){const u=a&&a.rejection;u?console.error("Unhandled Promise rejection:",u instanceof Error?u.message:u,"; Zone:",a.zone.name,"; Task:",a.task&&a.task.source,"; Value:",u,u instanceof Error?u.stack:void 0):console.error(a)}},s.microtaskDrainDone=()=>{for(;E.length;){const a=E.shift();try{a.zone.runGuarded(()=>{throw a.throwOriginal?a.rejection:a})}catch(u){N(u)}}};const O=p("unhandledPromiseRejectionHandler");function N(a){s.onUnhandledError(a);try{const u=n[O];"function"==typeof u&&u.call(this,a)}catch{}}function U(a){return a&&a.then}function x(a){return a}function K(a){return c.reject(a)}const X=p("state"),C=p("value"),T=p("finally"),J=p("parentPromiseValue"),G=p("parentPromiseState"),z="Promise.then",A=null,y=!0,V=!1,d=0;function I(a,u){return o=>{try{Y(a,u,o)}catch(f){Y(a,!1,f)}}}const P=function(){let a=!1;return function(o){return function(){a||(a=!0,o.apply(null,arguments))}}},Q="Promise resolved with itself",oe=p("currentTaskTrace");function Y(a,u,o){const f=P();if(a===o)throw new TypeError(Q);if(a[X]===A){let k=null;try{("object"==typeof o||"function"==typeof o)&&(k=o&&o.then)}catch(R){return f(()=>{Y(a,!1,R)})(),a}if(u!==V&&o instanceof c&&o.hasOwnProperty(X)&&o.hasOwnProperty(C)&&o[X]!==A)re(o),Y(a,o[X],o[C]);else if(u!==V&&"function"==typeof k)try{k.call(o,f(I(a,u)),f(I(a,!1)))}catch(R){f(()=>{Y(a,!1,R)})()}else{a[X]=u;const R=a[C];if(a[C]=o,a[T]===T&&u===y&&(a[X]=a[G],a[C]=a[J]),u===V&&o instanceof Error){const g=n.currentTask&&n.currentTask.data&&n.currentTask.data[M];g&&i(o,oe,{configurable:!0,enumerable:!1,writable:!0,value:g})}for(let g=0;g{try{const S=a[C],Z=!!o&&T===o[T];Z&&(o[J]=S,o[G]=R);const D=u.run(g,void 0,Z&&g!==K&&g!==x?[]:[S]);Y(o,!0,D)}catch(S){Y(o,!1,S)}},o)}const j=function(){},h=e.AggregateError;class c{static toString(){return"function ZoneAwarePromise() { [native code] }"}static resolve(u){return Y(new this(null),y,u)}static reject(u){return Y(new this(null),V,u)}static any(u){if(!u||"function"!=typeof u[Symbol.iterator])return Promise.reject(new h([],"All promises were rejected"));const o=[];let f=0;try{for(let g of u)f++,o.push(c.resolve(g))}catch{return Promise.reject(new h([],"All promises were rejected"))}if(0===f)return Promise.reject(new h([],"All promises were rejected"));let k=!1;const R=[];return new c((g,S)=>{for(let Z=0;Z{k||(k=!0,g(D))},D=>{R.push(D),f--,0===f&&(k=!0,S(new h(R,"All promises were rejected")))})})}static race(u){let o,f,k=new this((S,Z)=>{o=S,f=Z});function R(S){o(S)}function g(S){f(S)}for(let S of u)U(S)||(S=this.resolve(S)),S.then(R,g);return k}static all(u){return c.allWithCallback(u)}static allSettled(u){return(this&&this.prototype instanceof c?this:c).allWithCallback(u,{thenCallback:f=>({status:"fulfilled",value:f}),errorCallback:f=>({status:"rejected",reason:f})})}static allWithCallback(u,o){let f,k,R=new this((D,F)=>{f=D,k=F}),g=2,S=0;const Z=[];for(let D of u){U(D)||(D=this.resolve(D));const F=S;try{D.then(B=>{Z[F]=o?o.thenCallback(B):B,g--,0===g&&f(Z)},B=>{o?(Z[F]=o.errorCallback(B),g--,0===g&&f(Z)):k(B)})}catch(B){k(B)}g++,S++}return g-=2,0===g&&f(Z),R}constructor(u){const o=this;if(!(o instanceof c))throw new Error("Must be an instanceof Promise.");o[X]=A,o[C]=[];try{const f=P();u&&u(f(I(o,y)),f(I(o,V)))}catch(f){Y(o,!1,f)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return c}then(u,o){let f=this.constructor?.[Symbol.species];(!f||"function"!=typeof f)&&(f=this.constructor||c);const k=new f(j),R=n.current;return this[X]==A?this[C].push(R,k,u,o):ee(this,R,k,u,o),k}catch(u){return this.then(null,u)}finally(u){let o=this.constructor?.[Symbol.species];(!o||"function"!=typeof o)&&(o=c);const f=new o(j);f[T]=T;const k=n.current;return this[X]==A?this[C].push(k,f,u,u):ee(this,k,f,u,u),f}}c.resolve=c.resolve,c.reject=c.reject,c.race=c.race,c.all=c.all;const t=e[v]=e.Promise;e.Promise=c;const _=p("thenPatched");function w(a){const u=a.prototype,o=r(u,"then");if(o&&(!1===o.writable||!o.configurable))return;const f=u.then;u[m]=f,a.prototype.then=function(k,R){return new c((S,Z)=>{f.call(this,S,Z)}).then(k,R)},a[_]=!0}return s.patchThen=w,t&&(w(t),ae(e,"fetch",a=>function L(a){return function(u,o){let f=a.apply(u,o);if(f instanceof c)return f;let k=f.constructor;return k[_]||w(k),f}}(a))),Promise[n.__symbol__("uncaughtPromiseErrors")]=E,c}),Zone.__load_patch("toString",e=>{const n=Function.prototype.toString,s=H("OriginalDelegate"),r=H("Promise"),i=H("Error"),l=function(){if("function"==typeof this){const v=this[s];if(v)return"function"==typeof v?n.call(v):Object.prototype.toString.call(v);if(this===Promise){const m=e[r];if(m)return n.call(m)}if(this===Error){const m=e[i];if(m)return n.call(m)}}return n.call(this)};l[s]=n,Function.prototype.toString=l;const p=Object.prototype.toString;Object.prototype.toString=function(){return"function"==typeof Promise&&this instanceof Promise?"[object Promise]":p.call(this)}});let Ee=!1;if(typeof window<"u")try{const e=Object.defineProperty({},"passive",{get:function(){Ee=!0}});window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch{Ee=!1}const ht={useG:!0},te={},ze={},Ye=new RegExp("^"+me+"(\\w+)(true|false)$"),$e=H("propagationStopped");function Je(e,n){const s=(n?n(e):e)+ce,r=(n?n(e):e)+ie,i=me+s,l=me+r;te[e]={},te[e][ce]=i,te[e][ie]=l}function dt(e,n,s,r){const i=r&&r.add||Ze,l=r&&r.rm||De,p=r&&r.listeners||"eventListeners",E=r&&r.rmAll||"removeAllListeners",b=H(i),v="."+i+":",m="prependListener",M="."+m+":",O=function(C,T,J){if(C.isRemoved)return;const G=C.callback;let z;"object"==typeof G&&G.handleEvent&&(C.callback=y=>G.handleEvent(y),C.originalDelegate=G);try{C.invoke(C,T,[J])}catch(y){z=y}const A=C.options;return A&&"object"==typeof A&&A.once&&T[l].call(T,J.type,C.originalDelegate?C.originalDelegate:C.callback,A),z};function N(C,T,J){if(!(T=T||e.event))return;const G=C||T.target||e,z=G[te[T.type][J?ie:ce]];if(z){const A=[];if(1===z.length){const y=O(z[0],G,T);y&&A.push(y)}else{const y=z.slice();for(let V=0;V{throw V})}}}const U=function(C){return N(this,C,!1)},x=function(C){return N(this,C,!0)};function K(C,T){if(!C)return!1;let J=!0;T&&void 0!==T.useG&&(J=T.useG);const G=T&&T.vh;let z=!0;T&&void 0!==T.chkDup&&(z=T.chkDup);let A=!1;T&&void 0!==T.rt&&(A=T.rt);let y=C;for(;y&&!y.hasOwnProperty(i);)y=ve(y);if(!y&&C[i]&&(y=C),!y||y[b])return!1;const V=T&&T.eventNameToString,d={},I=y[b]=y[i],P=y[H(l)]=y[l],Q=y[H(p)]=y[p],oe=y[H(E)]=y[E];let Y;T&&T.prepend&&(Y=y[H(T.prepend)]=y[T.prepend]);const c=J?function(o){if(!d.isExisting)return I.call(d.target,d.eventName,d.capture?x:U,d.options)}:function(o){return I.call(d.target,d.eventName,o.invoke,d.options)},t=J?function(o){if(!o.isRemoved){const f=te[o.eventName];let k;f&&(k=f[o.capture?ie:ce]);const R=k&&o.target[k];if(R)for(let g=0;gfunction(i,l){i[$e]=!0,r&&r.apply(i,l)})}function Et(e,n,s,r,i){const l=Zone.__symbol__(r);if(n[l])return;const p=n[l]=n[r];n[r]=function(E,b,v){return b&&b.prototype&&i.forEach(function(m){const M=`${s}.${r}::`+m,O=b.prototype;try{if(O.hasOwnProperty(m)){const N=e.ObjectGetOwnPropertyDescriptor(O,m);N&&N.value?(N.value=e.wrapWithCurrentZone(N.value,M),e._redefineProperty(b.prototype,m,N)):O[m]&&(O[m]=e.wrapWithCurrentZone(O[m],M))}else O[m]&&(O[m]=e.wrapWithCurrentZone(O[m],M))}catch{}}),p.call(n,E,b,v)},e.attachOriginToPatched(n[r],p)}function Qe(e,n,s){if(!s||0===s.length)return n;const r=s.filter(l=>l.target===e);if(!r||0===r.length)return n;const i=r[0].ignoreProperties;return n.filter(l=>-1===i.indexOf(l))}function et(e,n,s,r){e&&qe(e,Qe(e,n,s),r)}function He(e){return Object.getOwnPropertyNames(e).filter(n=>n.startsWith("on")&&n.length>2).map(n=>n.substring(2))}Zone.__load_patch("util",(e,n,s)=>{const r=He(e);s.patchOnProperties=qe,s.patchMethod=ae,s.bindArguments=Le,s.patchMacroTask=lt;const i=n.__symbol__("BLACK_LISTED_EVENTS"),l=n.__symbol__("UNPATCHED_EVENTS");e[l]&&(e[i]=e[l]),e[i]&&(n[i]=n[l]=e[i]),s.patchEventPrototype=_t,s.patchEventTarget=dt,s.isIEOrEdge=ft,s.ObjectDefineProperty=pe,s.ObjectGetOwnPropertyDescriptor=ue,s.ObjectCreate=Se,s.ArraySlice=it,s.patchClass=ge,s.wrapWithCurrentZone=Ie,s.filterProperties=Qe,s.attachOriginToPatched=le,s._redefineProperty=Object.defineProperty,s.patchCallbacks=Et,s.getGlobalObjects=()=>({globalSources:ze,zoneSymbolEventNames:te,eventNames:r,isBrowser:Ae,isMix:Be,isNode:Pe,TRUE_STR:ie,FALSE_STR:ce,ZONE_SYMBOL_PREFIX:me,ADD_EVENT_LISTENER_STR:Ze,REMOVE_EVENT_LISTENER_STR:De})});const Re=H("zoneTask");function Te(e,n,s,r){let i=null,l=null;s+=r;const p={};function E(v){const m=v.data;return m.args[0]=function(){return v.invoke.apply(this,arguments)},m.handleId=i.apply(e,m.args),v}function b(v){return l.call(e,v.data.handleId)}i=ae(e,n+=r,v=>function(m,M){if("function"==typeof M[0]){const O={isPeriodic:"Interval"===r,delay:"Timeout"===r||"Interval"===r?M[1]||0:void 0,args:M},N=M[0];M[0]=function(){try{return N.apply(this,arguments)}finally{O.isPeriodic||("number"==typeof O.handleId?delete p[O.handleId]:O.handleId&&(O.handleId[Re]=null))}};const U=Me(n,M[0],O,E,b);if(!U)return U;const x=U.data.handleId;return"number"==typeof x?p[x]=U:x&&(x[Re]=U),x&&x.ref&&x.unref&&"function"==typeof x.ref&&"function"==typeof x.unref&&(U.ref=x.ref.bind(x),U.unref=x.unref.bind(x)),"number"==typeof x||x?x:U}return v.apply(e,M)}),l=ae(e,s,v=>function(m,M){const O=M[0];let N;"number"==typeof O?N=p[O]:(N=O&&O[Re],N||(N=O)),N&&"string"==typeof N.type?"notScheduled"!==N.state&&(N.cancelFn&&N.data.isPeriodic||0===N.runCount)&&("number"==typeof O?delete p[O]:O&&(O[Re]=null),N.zone.cancelTask(N)):v.apply(e,M)})}Zone.__load_patch("legacy",e=>{const n=e[Zone.__symbol__("legacyPatch")];n&&n()}),Zone.__load_patch("timers",e=>{const n="set",s="clear";Te(e,n,s,"Timeout"),Te(e,n,s,"Interval"),Te(e,n,s,"Immediate")}),Zone.__load_patch("requestAnimationFrame",e=>{Te(e,"request","cancel","AnimationFrame"),Te(e,"mozRequest","mozCancel","AnimationFrame"),Te(e,"webkitRequest","webkitCancel","AnimationFrame")}),Zone.__load_patch("blocking",(e,n)=>{const s=["alert","prompt","confirm"];for(let r=0;rfunction(b,v){return n.current.run(l,e,v,E)})}),Zone.__load_patch("EventTarget",(e,n,s)=>{(function gt(e,n){n.patchEventPrototype(e,n)})(e,s),function mt(e,n){if(Zone[n.symbol("patchEventTarget")])return;const{eventNames:s,zoneSymbolEventNames:r,TRUE_STR:i,FALSE_STR:l,ZONE_SYMBOL_PREFIX:p}=n.getGlobalObjects();for(let b=0;b{ge("MutationObserver"),ge("WebKitMutationObserver")}),Zone.__load_patch("IntersectionObserver",(e,n,s)=>{ge("IntersectionObserver")}),Zone.__load_patch("FileReader",(e,n,s)=>{ge("FileReader")}),Zone.__load_patch("on_property",(e,n,s)=>{!function Tt(e,n){if(Pe&&!Be||Zone[e.symbol("patchEvents")])return;const s=n.__Zone_ignore_on_properties;let r=[];if(Ae){const i=window;r=r.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]);const l=function ut(){try{const e=_e.navigator.userAgent;if(-1!==e.indexOf("MSIE ")||-1!==e.indexOf("Trident/"))return!0}catch{}return!1}()?[{target:i,ignoreProperties:["error"]}]:[];et(i,He(i),s&&s.concat(l),ve(i))}r=r.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(let i=0;i{!function pt(e,n){const{isBrowser:s,isMix:r}=n.getGlobalObjects();(s||r)&&e.customElements&&"customElements"in e&&n.patchCallbacks(n,e.customElements,"customElements","define",["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback"])}(e,s)}),Zone.__load_patch("XHR",(e,n)=>{!function b(v){const m=v.XMLHttpRequest;if(!m)return;const M=m.prototype;let N=M[Oe],U=M[Ne];if(!N){const d=v.XMLHttpRequestEventTarget;if(d){const I=d.prototype;N=I[Oe],U=I[Ne]}}const x="readystatechange",K="scheduled";function X(d){const I=d.data,P=I.target;P[l]=!1,P[E]=!1;const Q=P[i];N||(N=P[Oe],U=P[Ne]),Q&&U.call(P,x,Q);const oe=P[i]=()=>{if(P.readyState===P.DONE)if(!I.aborted&&P[l]&&d.state===K){const W=P[n.__symbol__("loadfalse")];if(0!==P.status&&W&&W.length>0){const re=d.invoke;d.invoke=function(){const ee=P[n.__symbol__("loadfalse")];for(let q=0;qfunction(d,I){return d[r]=0==I[2],d[p]=I[1],J.apply(d,I)}),z=H("fetchTaskAborting"),A=H("fetchTaskScheduling"),y=ae(M,"send",()=>function(d,I){if(!0===n.current[A]||d[r])return y.apply(d,I);{const P={target:d,url:d[p],isPeriodic:!1,args:I,aborted:!1},Q=Me("XMLHttpRequest.send",C,P,X,T);d&&!0===d[E]&&!P.aborted&&Q.state===K&&Q.invoke()}}),V=ae(M,"abort",()=>function(d,I){const P=function O(d){return d[s]}(d);if(P&&"string"==typeof P.type){if(null==P.cancelFn||P.data&&P.data.aborted)return;P.zone.cancelTask(P)}else if(!0===n.current[z])return V.apply(d,I)})}(e);const s=H("xhrTask"),r=H("xhrSync"),i=H("xhrListener"),l=H("xhrScheduled"),p=H("xhrURL"),E=H("xhrErrorBeforeScheduled")}),Zone.__load_patch("geolocation",e=>{e.navigator&&e.navigator.geolocation&&function at(e,n){const s=e.constructor.name;for(let r=0;r{const b=function(){return E.apply(this,Le(arguments,s+"."+i))};return le(b,E),b})(l)}}}(e.navigator.geolocation,["getCurrentPosition","watchPosition"])}),Zone.__load_patch("PromiseRejectionEvent",(e,n)=>{function s(r){return function(i){Ke(e,r).forEach(p=>{const E=e.PromiseRejectionEvent;if(E){const b=new E(r,{promise:i.promise,reason:i.rejection});p.invoke(b)}})}}e.PromiseRejectionEvent&&(n[H("unhandledPromiseRejectionHandler")]=s("unhandledrejection"),n[H("rejectionHandledHandler")]=s("rejectionhandled"))}),Zone.__load_patch("queueMicrotask",(e,n,s)=>{!function yt(e,n){n.patchMethod(e,"queueMicrotask",s=>function(r,i){Zone.current.scheduleMicroTask("queueMicrotask",i[0])})}(e,s)})}},ue=>{ue(ue.s=8332)}]); \ No newline at end of file diff --git a/examples/frontend/angular/dist/casper/runtime.18dd85814679311c.js b/examples/frontend/angular/dist/casper/runtime.18dd85814679311c.js new file mode 100644 index 000000000..710dc970e --- /dev/null +++ b/examples/frontend/angular/dist/casper/runtime.18dd85814679311c.js @@ -0,0 +1 @@ +(()=>{"use strict";var e,d={},p={};function r(e){var a=p[e];if(void 0!==a)return a.exports;var t=p[e]={id:e,loaded:!1,exports:{}};return d[e](t,t.exports,r),t.loaded=!0,t.exports}r.m=d,e=[],r.O=(a,t,f,s)=>{if(!t){var o=1/0;for(n=0;n=s)&&Object.keys(r.O).every(v=>r.O[v](t[c]))?t.splice(c--,1):(i=!1,s0&&e[n-1][2]>s;n--)e[n]=e[n-1];e[n]=[t,f,s]},r.n=e=>{var a=e&&e.__esModule?()=>e.default:()=>e;return r.d(a,{a}),a},r.d=(e,a)=>{for(var t in a)r.o(a,t)&&!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:a[t]})},r.u=e=>"highlight.worker.273ed77c2f6dd9a8.js",r.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),r.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a),(()=>{var e;r.tt=()=>(void 0===e&&(e={createScriptURL:a=>a},typeof trustedTypes<"u"&&trustedTypes.createPolicy&&(e=trustedTypes.createPolicy("angular#bundler",e))),e)})(),r.tu=e=>r.tt().createScriptURL(e),r.p="",(()=>{r.b=document.baseURI||self.location.href;var e={666:0};r.O.j=f=>0===e[f];var a=(f,s)=>{var c,u,[n,o,i]=s,l=0;if(n.some(b=>0!==e[b])){for(c in o)r.o(o,c)&&(r.m[c]=o[c]);if(i)var h=i(r)}for(f&&f(s);l + Maintainer: @highlightjs/core-team + Website: https://highlightjs.org/ + License: see project LICENSE + Touched: 2021 +*/pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}.hljs{background:#f3f3f3;color:#444}.hljs-comment{color:#697070}.hljs-punctuation,.hljs-tag{color:#444a}.hljs-tag .hljs-attr,.hljs-tag .hljs-name{color:#444}.hljs-attribute,.hljs-doctag,.hljs-keyword,.hljs-meta .hljs-keyword,.hljs-name,.hljs-selector-tag{font-weight:700}.hljs-deletion,.hljs-number,.hljs-quote,.hljs-selector-class,.hljs-selector-id,.hljs-string,.hljs-template-tag,.hljs-type{color:#800}.hljs-section,.hljs-title{color:#800;font-weight:700}.hljs-link,.hljs-operator,.hljs-regexp,.hljs-selector-attr,.hljs-selector-pseudo,.hljs-symbol,.hljs-template-variable,.hljs-variable{color:#ab5656}.hljs-literal{color:#695}.hljs-addition,.hljs-built_in,.hljs-bullet,.hljs-code{color:#397300}.hljs-meta{color:#1f7199}.hljs-meta .hljs-string{color:#38a}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:700} diff --git a/examples/frontend/angular/jest.config.app.ts b/examples/frontend/angular/jest.config.app.ts new file mode 100644 index 000000000..24a11140d --- /dev/null +++ b/examples/frontend/angular/jest.config.app.ts @@ -0,0 +1,26 @@ +/* eslint-disable */ +export default { + displayName: 'Casper Client', + preset: './jest.preset.js', + setupFilesAfterEnv: ['/src/test-setup.ts'], + coverageDirectory: './coverage/casper', + transform: { + '^.+\\.(ts|mjs|js|html)$': [ + 'jest-preset-angular', + { + tsconfig: '/tsconfig.spec.json', + stringifyContentPathRegex: '\\.(html|svg)$', + }, + ], + }, + transformIgnorePatterns: ['node_modules/(?!.*\\.mjs$)'], + snapshotSerializers: [ + 'jest-preset-angular/build/serializers/no-ng-attributes', + 'jest-preset-angular/build/serializers/ng-snapshot', + 'jest-preset-angular/build/serializers/html-comment', + ], + testMatch: [ + '/src/**/__tests__/**/*.[jt]s?(x)', + '/src/**/*(*.)@(spec|test).[jt]s?(x)', + ], +}; diff --git a/examples/frontend/angular/jest.config.ts b/examples/frontend/angular/jest.config.ts new file mode 100644 index 000000000..d0dbd1b88 --- /dev/null +++ b/examples/frontend/angular/jest.config.ts @@ -0,0 +1,5 @@ +import { getJestProjects } from '@nx/jest'; + +export default { + projects: getJestProjects(), +}; diff --git a/examples/frontend/angular/jest.preset.js b/examples/frontend/angular/jest.preset.js new file mode 100644 index 000000000..f078ddcec --- /dev/null +++ b/examples/frontend/angular/jest.preset.js @@ -0,0 +1,3 @@ +const nxPreset = require('@nx/jest/preset').default; + +module.exports = { ...nxPreset }; diff --git a/examples/frontend/angular/libs/components/.eslintrc.json b/examples/frontend/angular/libs/components/.eslintrc.json new file mode 100644 index 000000000..43eb1c863 --- /dev/null +++ b/examples/frontend/angular/libs/components/.eslintrc.json @@ -0,0 +1,36 @@ +{ + "extends": ["../../.eslintrc.base.json"], + "ignorePatterns": ["!**/*"], + "overrides": [ + { + "files": ["*.ts"], + "rules": { + "@angular-eslint/directive-selector": [ + "error", + { + "type": "attribute", + "prefix": "comp", + "style": "camelCase" + } + ], + "@angular-eslint/component-selector": [ + "error", + { + "type": "element", + "prefix": "comp", + "style": "kebab-case" + } + ] + }, + "extends": [ + "plugin:@nx/angular", + "plugin:@angular-eslint/template/process-inline-templates" + ] + }, + { + "files": ["*.html"], + "extends": ["plugin:@nx/angular-template"], + "rules": {} + } + ] +} diff --git a/examples/frontend/angular/libs/components/README.md b/examples/frontend/angular/libs/components/README.md new file mode 100644 index 000000000..2146ff8eb --- /dev/null +++ b/examples/frontend/angular/libs/components/README.md @@ -0,0 +1,3 @@ +# components + +This library was generated with [Nx](https://nx.dev). diff --git a/examples/frontend/angular/libs/components/project.json b/examples/frontend/angular/libs/components/project.json new file mode 100644 index 000000000..e924ab44f --- /dev/null +++ b/examples/frontend/angular/libs/components/project.json @@ -0,0 +1,22 @@ +{ + "name": "components", + "$schema": "../../node_modules/nx/schemas/project-schema.json", + "sourceRoot": "libs/components/src", + "prefix": "comp", + "tags": [], + "projectType": "library", + "targets": { + "lint": { + "executor": "@nx/linter:eslint", + "outputs": [ + "{options.outputFile}" + ], + "options": { + "lintFilePatterns": [ + "libs/components/**/*.ts", + "libs/components/**/*.html" + ] + } + } + } +} \ No newline at end of file diff --git a/examples/frontend/angular/libs/components/src/index.ts b/examples/frontend/angular/libs/components/src/index.ts new file mode 100644 index 000000000..df5433578 --- /dev/null +++ b/examples/frontend/angular/libs/components/src/index.ts @@ -0,0 +1,2 @@ +export * from "./lib/result/result.component"; +export * from './lib/result/result.service'; \ No newline at end of file diff --git a/examples/frontend/angular/libs/components/src/lib/result/result.component.html b/examples/frontend/angular/libs/components/src/lib/result/result.component.html new file mode 100644 index 000000000..3685aaa08 --- /dev/null +++ b/examples/frontend/angular/libs/components/src/lib/result/result.component.html @@ -0,0 +1,51 @@ +
+
+ + + + + + + + + + + + + +
+
+
+ +
+
+
diff --git a/examples/frontend/angular/libs/components/src/lib/result/result.component.scss b/examples/frontend/angular/libs/components/src/lib/result/result.component.scss new file mode 100644 index 000000000..e69de29bb diff --git a/examples/frontend/angular/libs/components/src/lib/result/result.component.spec.ts b/examples/frontend/angular/libs/components/src/lib/result/result.component.spec.ts new file mode 100644 index 000000000..55da5754e --- /dev/null +++ b/examples/frontend/angular/libs/components/src/lib/result/result.component.spec.ts @@ -0,0 +1,21 @@ +import { ComponentFixture, TestBed } from '@angular/core/testing'; +import { ResultComponent } from './result.component'; + +describe('ResultComponent', () => { + let component: ResultComponent; + let fixture: ComponentFixture; + + beforeEach(async () => { + await TestBed.configureTestingModule({ + imports: [ResultComponent], + }).compileComponents(); + + fixture = TestBed.createComponent(ResultComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/examples/frontend/angular/libs/components/src/lib/result/result.component.ts b/examples/frontend/angular/libs/components/src/lib/result/result.component.ts new file mode 100644 index 000000000..30f24132b --- /dev/null +++ b/examples/frontend/angular/libs/components/src/lib/result/result.component.ts @@ -0,0 +1,53 @@ +import { AfterViewInit, ChangeDetectionStrategy, ChangeDetectorRef, Component, ElementRef, OnDestroy, ViewChild } from '@angular/core'; +import { CommonModule } from '@angular/common'; +import { ResultService } from './result.service'; +import { Result } from './result'; +import { Subscription } from 'rxjs'; +import { UtilHihlightWebworkerModule } from '@util/hightlight-webworker'; +import { jsonPrettyPrint } from 'casper-sdk'; + +@Component({ + selector: 'comp-result', + standalone: true, + imports: [CommonModule, UtilHihlightWebworkerModule], + templateUrl: './result.component.html', + styleUrls: ['./result.component.scss'], + changeDetection: ChangeDetectionStrategy.OnPush, +}) +export class ResultComponent implements AfterViewInit, OnDestroy { + title!: string; + result!: string; + resultHtml!: string; + + @ViewChild('resultElt') resultElt!: ElementRef; + @ViewChild('codeElt', { read: ElementRef }) contentChildren!: ElementRef; + + private getResultSubscription!: Subscription; + + constructor( + private readonly resultService: ResultService, + private readonly changeDetectorRef: ChangeDetectorRef, + ) { } + + ngAfterViewInit() { + this.getResultSubscription = this.resultService.getResult().subscribe((res: Result) => { + this.result = res.result; + this.resultHtml = res.resultHtml; + this.changeDetectorRef.markForCheck(); + }); + } + + ngOnDestroy() { + this.getResultSubscription && this.getResultSubscription.unsubscribe(); + } + + copy(value: string): void { + this.resultService.copyClipboard(jsonPrettyPrint(JSON.parse(value), 1)); + } + + reset() { + this.result = ''; + this.resultHtml = ''; + this.resultService.setResult(''); + } +} diff --git a/examples/frontend/angular/libs/components/src/lib/result/result.service.ts b/examples/frontend/angular/libs/components/src/lib/result/result.service.ts new file mode 100644 index 000000000..a97dbcc36 --- /dev/null +++ b/examples/frontend/angular/libs/components/src/lib/result/result.service.ts @@ -0,0 +1,40 @@ +import { DOCUMENT } from '@angular/common'; +import { Inject, Injectable } from '@angular/core'; +import { HighlightService } from '@util/hightlight-webworker'; +import { Subject } from 'rxjs'; +import { Result } from './result'; + +@Injectable({ + providedIn: 'root' +}) +export class ResultService { + + private readonly result = new Subject; + private readonly window = this.document.defaultView; + + constructor( + private readonly highlightService: HighlightService, + @Inject(DOCUMENT) private document: Document, + ) { } + + getResult() { + return this.result.asObservable(); + } + + async setResult(result: object | string) { + const res = result as T; + const resultHtml = await this.highlightService.highlightMessage( + res + ); + const isString = typeof result === 'string'; + this.result.next({ + result: isString ? res as string : JSON.stringify(res), + resultHtml: isString ? res as string : resultHtml, + }); + } + + copyClipboard(value: string) { + this.window?.navigator.clipboard.writeText(value).catch(e => console.error(e)); + } + +} diff --git a/examples/frontend/angular/libs/components/src/lib/result/result.ts b/examples/frontend/angular/libs/components/src/lib/result/result.ts new file mode 100644 index 000000000..3b7583b55 --- /dev/null +++ b/examples/frontend/angular/libs/components/src/lib/result/result.ts @@ -0,0 +1,4 @@ +export type Result = { + result: string; + resultHtml: string; +}; \ No newline at end of file diff --git a/examples/frontend/angular/libs/components/tsconfig.json b/examples/frontend/angular/libs/components/tsconfig.json new file mode 100644 index 000000000..8973c2e90 --- /dev/null +++ b/examples/frontend/angular/libs/components/tsconfig.json @@ -0,0 +1,26 @@ +{ + "compilerOptions": { + "target": "es2022", + "useDefineForClassFields": false, + "forceConsistentCasingInFileNames": true, + "strict": true, + "noImplicitOverride": true, + "noPropertyAccessFromIndexSignature": true, + "noImplicitReturns": true, + "noFallthroughCasesInSwitch": true + }, + "files": [], + "include": [], + "references": [ + { + "path": "./tsconfig.lib.json" + } + ], + "extends": "../../tsconfig.base.json", + "angularCompilerOptions": { + "enableI18nLegacyMessageIdFormat": false, + "strictInjectionParameters": true, + "strictInputAccessModifiers": true, + "strictTemplates": true + } +} diff --git a/examples/frontend/angular/libs/components/tsconfig.lib.json b/examples/frontend/angular/libs/components/tsconfig.lib.json new file mode 100644 index 000000000..77b13c67d --- /dev/null +++ b/examples/frontend/angular/libs/components/tsconfig.lib.json @@ -0,0 +1,12 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "outDir": "../../dist/out-tsc", + "declaration": true, + "declarationMap": true, + "inlineSources": true, + "types": [] + }, + "exclude": ["src/**/*.spec.ts", "jest.config.ts", "src/**/*.test.ts"], + "include": ["src/**/*.ts"] +} diff --git a/examples/frontend/angular/libs/util/config/.eslintrc.json b/examples/frontend/angular/libs/util/config/.eslintrc.json new file mode 100644 index 000000000..b848ac62f --- /dev/null +++ b/examples/frontend/angular/libs/util/config/.eslintrc.json @@ -0,0 +1,36 @@ +{ + "extends": ["../../../.eslintrc.base.json"], + "ignorePatterns": ["!**/*"], + "overrides": [ + { + "files": ["*.ts"], + "rules": { + "@angular-eslint/directive-selector": [ + "error", + { + "type": "attribute", + "prefix": "lib", + "style": "camelCase" + } + ], + "@angular-eslint/component-selector": [ + "error", + { + "type": "element", + "prefix": "lib", + "style": "kebab-case" + } + ] + }, + "extends": [ + "plugin:@nx/angular", + "plugin:@angular-eslint/template/process-inline-templates" + ] + }, + { + "files": ["*.html"], + "extends": ["plugin:@nx/angular-template"], + "rules": {} + } + ] +} diff --git a/examples/frontend/angular/libs/util/config/README.md b/examples/frontend/angular/libs/util/config/README.md new file mode 100644 index 000000000..5fbd92969 --- /dev/null +++ b/examples/frontend/angular/libs/util/config/README.md @@ -0,0 +1,7 @@ +# util-config + +This library was generated with [Nx](https://nx.dev). + +## Running unit tests + +Run `nx test util-config` to execute the unit tests. diff --git a/examples/frontend/angular/libs/util/config/jest.config.ts b/examples/frontend/angular/libs/util/config/jest.config.ts new file mode 100644 index 000000000..c407a29d8 --- /dev/null +++ b/examples/frontend/angular/libs/util/config/jest.config.ts @@ -0,0 +1,22 @@ +/* eslint-disable */ +export default { + displayName: 'util-config', + preset: '../../../jest.preset.js', + setupFilesAfterEnv: ['/src/test-setup.ts'], + coverageDirectory: '../../../coverage/libs/util/config', + transform: { + '^.+\\.(ts|mjs|js|html)$': [ + 'jest-preset-angular', + { + tsconfig: '/tsconfig.spec.json', + stringifyContentPathRegex: '\\.(html|svg)$', + }, + ], + }, + transformIgnorePatterns: ['node_modules/(?!.*\\.mjs$)'], + snapshotSerializers: [ + 'jest-preset-angular/build/serializers/no-ng-attributes', + 'jest-preset-angular/build/serializers/ng-snapshot', + 'jest-preset-angular/build/serializers/html-comment', + ], +}; diff --git a/examples/frontend/angular/libs/util/config/project.json b/examples/frontend/angular/libs/util/config/project.json new file mode 100644 index 000000000..b422d4fb7 --- /dev/null +++ b/examples/frontend/angular/libs/util/config/project.json @@ -0,0 +1,34 @@ +{ + "name": "util-config", + "$schema": "../../../node_modules/nx/schemas/project-schema.json", + "sourceRoot": "libs/util/config/src", + "prefix": "lib", + "tags": [], + "projectType": "library", + "targets": { + "test": { + "executor": "@nx/jest:jest", + "outputs": ["{workspaceRoot}/coverage/{projectRoot}"], + "options": { + "jestConfig": "libs/util/config/jest.config.ts", + "passWithNoTests": true + }, + "configurations": { + "ci": { + "ci": true, + "codeCoverage": true + } + } + }, + "lint": { + "executor": "@nx/linter:eslint", + "outputs": ["{options.outputFile}"], + "options": { + "lintFilePatterns": [ + "libs/util/config/**/*.ts", + "libs/util/config/**/*.html" + ] + } + } + } +} diff --git a/examples/frontend/angular/libs/util/config/src/config.token.ts b/examples/frontend/angular/libs/util/config/src/config.token.ts new file mode 100644 index 000000000..1a29491d1 --- /dev/null +++ b/examples/frontend/angular/libs/util/config/src/config.token.ts @@ -0,0 +1,5 @@ +import { InjectionToken } from "@angular/core"; +import { EnvironmentConfig } from "./config"; + +export const CONFIG = new InjectionToken('EnvironmentConfig'); +export const ENV = new InjectionToken('EnvironmentConfig'); diff --git a/examples/frontend/angular/libs/util/config/src/config.ts b/examples/frontend/angular/libs/util/config/src/config.ts new file mode 100644 index 000000000..8953da543 --- /dev/null +++ b/examples/frontend/angular/libs/util/config/src/config.ts @@ -0,0 +1,34 @@ +export type EnvironmentConfig = { + [key: string]: string | object; +}; +export const config: EnvironmentConfig = { + wasm_asset_path: 'assets/casper_rust_wasm_sdk_bg.wasm', + verbosity: 'High', + minimum_transfer: '2500000000', + TTL: '30m', + gas_fee_transfer: '100000000', + block_identifier_height_default: '1958541', + block_identifier_hash: '372e4c83a6ca19c027d3daf4807ad8fc16b9f01411ef39d5e00888128bf4fd59', + networks: { + localhost: { + node_address: 'http://localhost:11101', + chain_name: 'casper-net-1' + }, + integration: { + node_address: 'https://rpc.integration.casperlabs.io', + chain_name: 'integration-test' + }, + testnet: { + node_address: 'https://rpc.testnet.casperlabs.io', + chain_name: 'casper-test' + }, + mainnet: { + node_address: 'https://rpc.mainnet.casperlabs.io', + chain_name: 'casper' + }, + ip: { + node_address: 'http://3.136.227.9:7777', + chain_name: 'integration-test' + }, + } +}; \ No newline at end of file diff --git a/examples/frontend/angular/libs/util/config/src/index.ts b/examples/frontend/angular/libs/util/config/src/index.ts new file mode 100644 index 000000000..fa5c78807 --- /dev/null +++ b/examples/frontend/angular/libs/util/config/src/index.ts @@ -0,0 +1,2 @@ +export * from './config.token'; +export * from './config'; \ No newline at end of file diff --git a/examples/frontend/angular/libs/util/config/src/test-setup.ts b/examples/frontend/angular/libs/util/config/src/test-setup.ts new file mode 100644 index 000000000..ab1eeeb33 --- /dev/null +++ b/examples/frontend/angular/libs/util/config/src/test-setup.ts @@ -0,0 +1,8 @@ +// @ts-expect-error https://thymikee.github.io/jest-preset-angular/docs/getting-started/test-environment +globalThis.ngJest = { + testEnvironmentOptions: { + errorOnUnknownElements: true, + errorOnUnknownProperties: true, + }, +}; +import 'jest-preset-angular/setup-jest'; diff --git a/examples/frontend/angular/libs/util/config/tsconfig.json b/examples/frontend/angular/libs/util/config/tsconfig.json new file mode 100644 index 000000000..5cf0a1656 --- /dev/null +++ b/examples/frontend/angular/libs/util/config/tsconfig.json @@ -0,0 +1,29 @@ +{ + "compilerOptions": { + "target": "es2022", + "useDefineForClassFields": false, + "forceConsistentCasingInFileNames": true, + "strict": true, + "noImplicitOverride": true, + "noPropertyAccessFromIndexSignature": true, + "noImplicitReturns": true, + "noFallthroughCasesInSwitch": true + }, + "files": [], + "include": [], + "references": [ + { + "path": "./tsconfig.lib.json" + }, + { + "path": "./tsconfig.spec.json" + } + ], + "extends": "../../../tsconfig.base.json", + "angularCompilerOptions": { + "enableI18nLegacyMessageIdFormat": false, + "strictInjectionParameters": true, + "strictInputAccessModifiers": true, + "strictTemplates": true + } +} diff --git a/examples/frontend/angular/libs/util/config/tsconfig.lib.json b/examples/frontend/angular/libs/util/config/tsconfig.lib.json new file mode 100644 index 000000000..9b49be758 --- /dev/null +++ b/examples/frontend/angular/libs/util/config/tsconfig.lib.json @@ -0,0 +1,17 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "outDir": "../../../dist/out-tsc", + "declaration": true, + "declarationMap": true, + "inlineSources": true, + "types": [] + }, + "exclude": [ + "src/**/*.spec.ts", + "src/test-setup.ts", + "jest.config.ts", + "src/**/*.test.ts" + ], + "include": ["src/**/*.ts"] +} diff --git a/examples/frontend/angular/libs/util/config/tsconfig.spec.json b/examples/frontend/angular/libs/util/config/tsconfig.spec.json new file mode 100644 index 000000000..f858ef78c --- /dev/null +++ b/examples/frontend/angular/libs/util/config/tsconfig.spec.json @@ -0,0 +1,16 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "outDir": "../../../dist/out-tsc", + "module": "commonjs", + "target": "es2016", + "types": ["jest", "node"] + }, + "files": ["src/test-setup.ts"], + "include": [ + "jest.config.ts", + "src/**/*.test.ts", + "src/**/*.spec.ts", + "src/**/*.d.ts" + ] +} diff --git a/examples/frontend/angular/libs/util/hihlight-webworker/.eslintrc.json b/examples/frontend/angular/libs/util/hihlight-webworker/.eslintrc.json new file mode 100644 index 000000000..9072e34b1 --- /dev/null +++ b/examples/frontend/angular/libs/util/hihlight-webworker/.eslintrc.json @@ -0,0 +1,36 @@ +{ + "extends": ["../../../.eslintrc.json"], + "ignorePatterns": ["!**/*"], + "overrides": [ + { + "files": ["*.ts"], + "extends": [ + "plugin:@nrwl/nx/angular", + "plugin:@angular-eslint/template/process-inline-templates" + ], + "rules": { + "@angular-eslint/directive-selector": [ + "error", + { + "type": "attribute", + "prefix": "evaluator", + "style": "camelCase" + } + ], + "@angular-eslint/component-selector": [ + "error", + { + "type": "element", + "prefix": "evaluator", + "style": "kebab-case" + } + ] + } + }, + { + "files": ["*.html"], + "extends": ["plugin:@nrwl/nx/angular-template"], + "rules": {} + } + ] +} diff --git a/examples/frontend/angular/libs/util/hihlight-webworker/README.md b/examples/frontend/angular/libs/util/hihlight-webworker/README.md new file mode 100644 index 000000000..c7ef87943 --- /dev/null +++ b/examples/frontend/angular/libs/util/hihlight-webworker/README.md @@ -0,0 +1,7 @@ +# util-hihlight-webworker + +This library was generated with [Nx](https://nx.dev). + +## Running unit tests + +Run `nx test util-hihlight-webworker` to execute the unit tests. diff --git a/examples/frontend/angular/libs/util/hihlight-webworker/jest.config.ts b/examples/frontend/angular/libs/util/hihlight-webworker/jest.config.ts new file mode 100644 index 000000000..e5511f304 --- /dev/null +++ b/examples/frontend/angular/libs/util/hihlight-webworker/jest.config.ts @@ -0,0 +1,33 @@ +/* eslint-disable */ +export default { + displayName: 'util-hihlight-webworker', + preset: '../../../jest.preset.js', + setupFilesAfterEnv: ['/src/test-setup.ts'], + globals: { + 'ts-jest': { + tsconfig: '/tsconfig.spec.json', + stringifyContentPathRegex: '\\.(html|svg)$', + diagnostics: { + ignoreCodes: [1343] + }, + astTransformers: { + before: [ + { + path: 'ts-jest-mock-import-meta', + options: { metaObjectReplacement: { url: 'https://www.url.com' } } + } + ], + } + }, + }, + coverageDirectory: '../../../coverage/libs/util/hihlight-webworker', + transform: { + '^.+\\.(ts|mjs|js|html)$': 'jest-preset-angular', + }, + transformIgnorePatterns: ['node_modules/(?!.*\\.mjs$)'], + snapshotSerializers: [ + 'jest-preset-angular/build/serializers/no-ng-attributes', + 'jest-preset-angular/build/serializers/ng-snapshot', + 'jest-preset-angular/build/serializers/html-comment', + ], +}; diff --git a/examples/frontend/angular/libs/util/hihlight-webworker/project.json b/examples/frontend/angular/libs/util/hihlight-webworker/project.json new file mode 100644 index 000000000..c4be50ecb --- /dev/null +++ b/examples/frontend/angular/libs/util/hihlight-webworker/project.json @@ -0,0 +1,25 @@ +{ + "name": "util-hihlight-webworker", + "projectType": "library", + "sourceRoot": "libs/util/hihlight-webworker/src", + "targets": { + "test": { + "executor": "@nrwl/jest:jest", + "outputs": ["coverage/libs/util/hihlight-webworker"], + "options": { + "jestConfig": "libs/util/hihlight-webworker/jest.config.ts", + "passWithNoTests": true + } + }, + "lint": { + "executor": "@nrwl/linter:eslint", + "options": { + "lintFilePatterns": [ + "libs/util/hihlight-webworker/**/*.ts", + "libs/util/hihlight-webworker/**/*.html" + ] + } + } + }, + "tags": ["util-highlight-webworker"] +} diff --git a/examples/frontend/angular/libs/util/hihlight-webworker/src/index.ts b/examples/frontend/angular/libs/util/hihlight-webworker/src/index.ts new file mode 100644 index 000000000..ac3b0cc65 --- /dev/null +++ b/examples/frontend/angular/libs/util/hihlight-webworker/src/index.ts @@ -0,0 +1,3 @@ +export * from './lib/util-hihlight-webworker.module'; +export * from './lib/util-hihlight-webworker.token'; +export * from './lib/highlight.service'; diff --git a/examples/frontend/angular/libs/util/hihlight-webworker/src/lib/highlight.service.spec.ts b/examples/frontend/angular/libs/util/hihlight-webworker/src/lib/highlight.service.spec.ts new file mode 100644 index 000000000..f177bc3e3 --- /dev/null +++ b/examples/frontend/angular/libs/util/hihlight-webworker/src/lib/highlight.service.spec.ts @@ -0,0 +1,44 @@ +import { TestBed } from '@angular/core/testing'; +import { HighlightService } from './highlight.service'; +import { HIGHLIGHT_WEBWORKER_FACTORY } from './util-hihlight-webworker.token'; + +describe('HighlightService', () => { + let service: HighlightService; + const test = 'test', postMessage = jest.fn().mockResolvedValue(test), + webWorker = { + terminate: jest.fn() + }, + promiseWorker = { + postMessage + }; + beforeEach(() => { + TestBed.configureTestingModule({ + providers: [ + { + provide: HIGHLIGHT_WEBWORKER_FACTORY, useValue: jest.fn().mockReturnValue( + [ + webWorker, + promiseWorker + ] + ) + }, + ] + }); + service = TestBed.inject(HighlightService); + }); + + it('should be created', () => { + expect(service).toBeTruthy(); + }); + + it('should highlightMessage', async () => { + expect(await service.highlightMessage(test)).toStrictEqual(test); + }); + + it('highlightMessage should console on error', async () => { + const spy = jest.spyOn(console, 'error'); + postMessage.mockRejectedValue(test); + await service.highlightMessage(test); + expect(spy).toHaveBeenNthCalledWith(1, test); + }); +}); diff --git a/examples/frontend/angular/libs/util/hihlight-webworker/src/lib/highlight.service.ts b/examples/frontend/angular/libs/util/hihlight-webworker/src/lib/highlight.service.ts new file mode 100644 index 000000000..594482eac --- /dev/null +++ b/examples/frontend/angular/libs/util/hihlight-webworker/src/lib/highlight.service.ts @@ -0,0 +1,37 @@ +import { Inject, Injectable } from '@angular/core'; +import PromiseWorker from 'promise-worker'; +import { HIGHLIGHT_WEBWORKER_FACTORY } from './util-hihlight-webworker.token'; + +@Injectable({ + providedIn: 'root' +}) +export class HighlightService { + + private webworker?: Worker; + private hightlightWebworker!: PromiseWorker; + + constructor(@Inject(HIGHLIGHT_WEBWORKER_FACTORY) private readonly highlightWebworkerFactory: () => [Worker, PromiseWorker]) { } + + async highlightMessage(message: T): Promise { + this.activateWorker(); + const hightlight = this.hightlightWebworker && await this.hightlightWebworker.postMessage(message) + .catch((error) => { + console.error(error); + }); + this.terminateWorker(); + return hightlight as string; + } + + private activateWorker() { + if (this.webworker) { return; } + const factory = this.highlightWebworkerFactory(); + this.webworker = factory[0] as Worker; + this.hightlightWebworker = factory[1] as PromiseWorker; + } + + private terminateWorker() { + if (!this.webworker) { return; } + this.webworker.terminate(); + delete (this.webworker); + } +} diff --git a/examples/frontend/angular/libs/util/hihlight-webworker/src/lib/util-hihlight-webworker.module.ts b/examples/frontend/angular/libs/util/hihlight-webworker/src/lib/util-hihlight-webworker.module.ts new file mode 100644 index 000000000..e18601266 --- /dev/null +++ b/examples/frontend/angular/libs/util/hihlight-webworker/src/lib/util-hihlight-webworker.module.ts @@ -0,0 +1,23 @@ +import { NgModule } from '@angular/core'; +import { CommonModule } from '@angular/common'; +import { HIGHLIGHT_WEBWORKER_FACTORY } from './util-hihlight-webworker.token'; +import PromiseWorker from 'promise-worker'; +import { HighlightService } from './highlight.service'; + +const highlightProvider = { + provide: HIGHLIGHT_WEBWORKER_FACTORY, + useValue: function (): [Worker, PromiseWorker] { + const worker = new Worker(new URL( + './util-hihlight-webworker', import.meta.url), { + name: 'highlight.worker', + type: 'module', + }); + return [worker, new PromiseWorker(worker)]; + }, +}; + +@NgModule({ + imports: [CommonModule], + providers: [highlightProvider, HighlightService] +}) +export class UtilHihlightWebworkerModule { } diff --git a/examples/frontend/angular/libs/util/hihlight-webworker/src/lib/util-hihlight-webworker.token.ts b/examples/frontend/angular/libs/util/hihlight-webworker/src/lib/util-hihlight-webworker.token.ts new file mode 100644 index 000000000..9d9dfa6bd --- /dev/null +++ b/examples/frontend/angular/libs/util/hihlight-webworker/src/lib/util-hihlight-webworker.token.ts @@ -0,0 +1,6 @@ +import { InjectionToken } from '@angular/core'; +import PromiseWorker from 'promise-worker'; + +export const HIGHLIGHT_WEBWORKER_FACTORY = new InjectionToken<() => [Worker, PromiseWorker]>( + 'highlight' +); \ No newline at end of file diff --git a/examples/frontend/angular/libs/util/hihlight-webworker/src/lib/util-hihlight-webworker.ts b/examples/frontend/angular/libs/util/hihlight-webworker/src/lib/util-hihlight-webworker.ts new file mode 100644 index 000000000..593f0426e --- /dev/null +++ b/examples/frontend/angular/libs/util/hihlight-webworker/src/lib/util-hihlight-webworker.ts @@ -0,0 +1,13 @@ +/// + +// this file is excluded from the compilation of the `highlight-webworker` library +// this is due to the fact that an app has to import it directly (instead of a path +// coming from a ts alias path) +//https://github.com/angular/angular-cli/issues/15059 + +import { highlight } from './util-hihlight'; +import registerPromiseWorker from 'promise-worker/register'; + +registerPromiseWorker(function (message: object) { + return highlight(message); +}); \ No newline at end of file diff --git a/examples/frontend/angular/libs/util/hihlight-webworker/src/lib/util-hihlight.ts b/examples/frontend/angular/libs/util/hihlight-webworker/src/lib/util-hihlight.ts new file mode 100644 index 000000000..ecf65b121 --- /dev/null +++ b/examples/frontend/angular/libs/util/hihlight-webworker/src/lib/util-hihlight.ts @@ -0,0 +1,8 @@ +import hljs from 'highlight.js'; + +export const highlight = (message: object) => { + if (!message) { + return message; + } + return hljs.highlight(JSON.stringify(message, null, 2), { language: 'json' }).value; +}; \ No newline at end of file diff --git a/examples/frontend/angular/libs/util/hihlight-webworker/src/test-setup.ts b/examples/frontend/angular/libs/util/hihlight-webworker/src/test-setup.ts new file mode 100644 index 000000000..1100b3e8a --- /dev/null +++ b/examples/frontend/angular/libs/util/hihlight-webworker/src/test-setup.ts @@ -0,0 +1 @@ +import 'jest-preset-angular/setup-jest'; diff --git a/examples/frontend/angular/libs/util/hihlight-webworker/tsconfig.json b/examples/frontend/angular/libs/util/hihlight-webworker/tsconfig.json new file mode 100644 index 000000000..7504c346e --- /dev/null +++ b/examples/frontend/angular/libs/util/hihlight-webworker/tsconfig.json @@ -0,0 +1,28 @@ +{ + "extends": "../../../tsconfig.base.json", + "files": [], + "include": [], + "references": [ + { + "path": "./tsconfig.lib.json" + }, + { + "path": "./tsconfig.spec.json" + } + ], + "compilerOptions": { + "target": "es2020", + "forceConsistentCasingInFileNames": true, + "strict": true, + "noImplicitOverride": true, + "noPropertyAccessFromIndexSignature": true, + "noImplicitReturns": true, + "noFallthroughCasesInSwitch": true + }, + "angularCompilerOptions": { + "enableI18nLegacyMessageIdFormat": false, + "strictInjectionParameters": true, + "strictInputAccessModifiers": true, + "strictTemplates": true + } +} diff --git a/examples/frontend/angular/libs/util/hihlight-webworker/tsconfig.lib.json b/examples/frontend/angular/libs/util/hihlight-webworker/tsconfig.lib.json new file mode 100644 index 000000000..283afb4ac --- /dev/null +++ b/examples/frontend/angular/libs/util/hihlight-webworker/tsconfig.lib.json @@ -0,0 +1,19 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "outDir": "../../../dist/out-tsc", + "declaration": true, + "declarationMap": true, + "inlineSources": true, + "types": [] + }, + "exclude": [ + // this file is excluded from the compilation of the `highlight-webworker` library + "src/lib/util-hihlight.ts", + "src/test-setup.ts", + "**/*.spec.ts", + "jest.config.ts", + "**/*.test.ts" + ], + "include": ["**/*.ts"] +} diff --git a/examples/frontend/angular/libs/util/hihlight-webworker/tsconfig.spec.json b/examples/frontend/angular/libs/util/hihlight-webworker/tsconfig.spec.json new file mode 100644 index 000000000..7aa46d88c --- /dev/null +++ b/examples/frontend/angular/libs/util/hihlight-webworker/tsconfig.spec.json @@ -0,0 +1,10 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "outDir": "../../../dist/out-tsc", + "module": "commonjs", + "types": ["jest", "node"] + }, + "files": ["src/test-setup.ts"], + "include": ["jest.config.ts", "**/*.test.ts", "**/*.spec.ts", "**/*.d.ts"] +} diff --git a/examples/frontend/angular/libs/util/hihlight-webworker/tsconfig.webworker.json b/examples/frontend/angular/libs/util/hihlight-webworker/tsconfig.webworker.json new file mode 100644 index 000000000..f232c9246 --- /dev/null +++ b/examples/frontend/angular/libs/util/hihlight-webworker/tsconfig.webworker.json @@ -0,0 +1,9 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "outDir": "./out-tsc/worker", + "lib": ["es2018", "webworker"], + "types": [] + }, + "include": ["src/lib/util-hihlight-webworker.ts"] +} diff --git a/examples/frontend/angular/libs/util/services/wasm/.eslintrc.json b/examples/frontend/angular/libs/util/services/wasm/.eslintrc.json new file mode 100644 index 000000000..8fb32cfd6 --- /dev/null +++ b/examples/frontend/angular/libs/util/services/wasm/.eslintrc.json @@ -0,0 +1,36 @@ +{ + "extends": ["../../../../../.eslintrc.base.json"], + "ignorePatterns": ["!**/*"], + "overrides": [ + { + "files": ["*.ts"], + "rules": { + "@angular-eslint/directive-selector": [ + "error", + { + "type": "attribute", + "prefix": "lib", + "style": "camelCase" + } + ], + "@angular-eslint/component-selector": [ + "error", + { + "type": "element", + "prefix": "lib", + "style": "kebab-case" + } + ] + }, + "extends": [ + "plugin:@nx/angular", + "plugin:@angular-eslint/template/process-inline-templates" + ] + }, + { + "files": ["*.html"], + "extends": ["plugin:@nx/angular-template"], + "rules": {} + } + ] +} diff --git a/examples/frontend/angular/libs/util/services/wasm/README.md b/examples/frontend/angular/libs/util/services/wasm/README.md new file mode 100644 index 000000000..af7e5618a --- /dev/null +++ b/examples/frontend/angular/libs/util/services/wasm/README.md @@ -0,0 +1,7 @@ +# util-services-wasm + +This library was generated with [Nx](https://nx.dev). + +## Running unit tests + +Run `nx test util-services-wasm` to execute the unit tests. diff --git a/examples/frontend/angular/libs/util/services/wasm/jest.config.ts b/examples/frontend/angular/libs/util/services/wasm/jest.config.ts new file mode 100644 index 000000000..372653a77 --- /dev/null +++ b/examples/frontend/angular/libs/util/services/wasm/jest.config.ts @@ -0,0 +1,22 @@ +/* eslint-disable */ +export default { + displayName: 'util-services-wasm', + preset: '../../../../../jest.preset.js', + setupFilesAfterEnv: ['/src/test-setup.ts'], + coverageDirectory: '../../../../coverage/libs/util/services/wasm', + transform: { + '^.+\\.(ts|mjs|js|html)$': [ + 'jest-preset-angular', + { + tsconfig: '/tsconfig.spec.json', + stringifyContentPathRegex: '\\.(html|svg)$', + }, + ], + }, + transformIgnorePatterns: ['node_modules/(?!.*\\.mjs$)'], + snapshotSerializers: [ + 'jest-preset-angular/build/serializers/no-ng-attributes', + 'jest-preset-angular/build/serializers/ng-snapshot', + 'jest-preset-angular/build/serializers/html-comment', + ], +}; diff --git a/examples/frontend/angular/libs/util/services/wasm/project.json b/examples/frontend/angular/libs/util/services/wasm/project.json new file mode 100644 index 000000000..cda3b86f8 --- /dev/null +++ b/examples/frontend/angular/libs/util/services/wasm/project.json @@ -0,0 +1,38 @@ +{ + "name": "util-services-wasm", + "$schema": "../../../../node_modules/nx/schemas/project-schema.json", + "sourceRoot": "libs/util/services/wasm/src", + "prefix": "lib", + "tags": [], + "projectType": "library", + "targets": { + "test": { + "executor": "@nx/jest:jest", + "outputs": [ + "{workspaceRoot}/coverage/{projectRoot}" + ], + "options": { + "jestConfig": "libs/util/services/wasm/jest.config.ts", + "passWithNoTests": true + }, + "configurations": { + "ci": { + "ci": true, + "codeCoverage": true + } + } + }, + "lint": { + "executor": "@nx/linter:eslint", + "outputs": [ + "{options.outputFile}" + ], + "options": { + "lintFilePatterns": [ + "libs/util/services/wasm/**/*.ts", + "libs/util/services/wasm/**/*.html" + ] + } + } + } +} \ No newline at end of file diff --git a/examples/frontend/angular/libs/util/services/wasm/src/index.ts b/examples/frontend/angular/libs/util/services/wasm/src/index.ts new file mode 100644 index 000000000..604879859 --- /dev/null +++ b/examples/frontend/angular/libs/util/services/wasm/src/index.ts @@ -0,0 +1,2 @@ +export * from './lib/wasm.module'; +export * from './lib/wasm.factory'; diff --git a/examples/frontend/angular/libs/util/services/wasm/src/lib/wasm.factory.ts b/examples/frontend/angular/libs/util/services/wasm/src/lib/wasm.factory.ts new file mode 100644 index 000000000..b63847ed0 --- /dev/null +++ b/examples/frontend/angular/libs/util/services/wasm/src/lib/wasm.factory.ts @@ -0,0 +1,50 @@ +import { ApplicationInitStatus, APP_INITIALIZER, inject, InjectionToken, Provider } from "@angular/core"; +import init, { SDK, Verbosity } from "casper-sdk"; + +export const SDK_TOKEN = new InjectionToken('SDK'); +export const WASM_ASSET_PATH = new InjectionToken('wasm_asset_path'); +export const NODE_ADDRESS = new InjectionToken('node_address'); +export const VERBOSITY = new InjectionToken('verbosity'); + +type Params = { + wasm_asset_path: string, + node_address: string; + verbosity: Verbosity; +}; + +export const fetchWasmFactory = async ( + params: Params +): Promise => { + const wasm = await init(params.wasm_asset_path); + return wasm && new SDK(params.node_address, params.verbosity); +}; + +export function provideSafeAsync( + token: T | InjectionToken, + initializer: ( + params: Params + ) => Promise +): Provider[] { + const container: { value?: T; } = { value: undefined }; + return [ + { + provide: APP_INITIALIZER, + useFactory: (wasm_asset_path: string, node_address: string, verbosity: Verbosity) => + async () => container.value = await initializer({ wasm_asset_path, node_address, verbosity }) + , + multi: true, + deps: [WASM_ASSET_PATH, NODE_ADDRESS, VERBOSITY], + }, + { + provide: token, + useFactory: () => { + if (!inject(ApplicationInitStatus).done) { + throw new Error( + `Cannot inject ${token} until bootstrap is complete.` + ); + } + return container.value; + }, + }, + ]; +} \ No newline at end of file diff --git a/examples/frontend/angular/libs/util/services/wasm/src/lib/wasm.module.ts b/examples/frontend/angular/libs/util/services/wasm/src/lib/wasm.module.ts new file mode 100644 index 000000000..5ec31b8c1 --- /dev/null +++ b/examples/frontend/angular/libs/util/services/wasm/src/lib/wasm.module.ts @@ -0,0 +1,11 @@ +import { NgModule } from '@angular/core'; +import { CommonModule } from '@angular/common'; +import { SDK_TOKEN, fetchWasmFactory, provideSafeAsync } from './wasm.factory'; + +const providers = provideSafeAsync(SDK_TOKEN, fetchWasmFactory); + +@NgModule({ + imports: [CommonModule], + providers +}) +export class WasmModule { } \ No newline at end of file diff --git a/examples/frontend/angular/libs/util/services/wasm/src/test-setup.ts b/examples/frontend/angular/libs/util/services/wasm/src/test-setup.ts new file mode 100644 index 000000000..ab1eeeb33 --- /dev/null +++ b/examples/frontend/angular/libs/util/services/wasm/src/test-setup.ts @@ -0,0 +1,8 @@ +// @ts-expect-error https://thymikee.github.io/jest-preset-angular/docs/getting-started/test-environment +globalThis.ngJest = { + testEnvironmentOptions: { + errorOnUnknownElements: true, + errorOnUnknownProperties: true, + }, +}; +import 'jest-preset-angular/setup-jest'; diff --git a/examples/frontend/angular/libs/util/services/wasm/tsconfig.json b/examples/frontend/angular/libs/util/services/wasm/tsconfig.json new file mode 100644 index 000000000..0ba12d472 --- /dev/null +++ b/examples/frontend/angular/libs/util/services/wasm/tsconfig.json @@ -0,0 +1,29 @@ +{ + "compilerOptions": { + "target": "es2022", + "useDefineForClassFields": false, + "forceConsistentCasingInFileNames": true, + "strict": true, + "noImplicitOverride": true, + "noPropertyAccessFromIndexSignature": true, + "noImplicitReturns": true, + "noFallthroughCasesInSwitch": true + }, + "files": [], + "include": [], + "references": [ + { + "path": "./tsconfig.lib.json" + }, + { + "path": "./tsconfig.spec.json" + } + ], + "extends": "../../../../../tsconfig.base.json", + "angularCompilerOptions": { + "enableI18nLegacyMessageIdFormat": false, + "strictInjectionParameters": true, + "strictInputAccessModifiers": true, + "strictTemplates": true + } +} diff --git a/examples/frontend/angular/libs/util/services/wasm/tsconfig.lib.json b/examples/frontend/angular/libs/util/services/wasm/tsconfig.lib.json new file mode 100644 index 000000000..c3acdfc86 --- /dev/null +++ b/examples/frontend/angular/libs/util/services/wasm/tsconfig.lib.json @@ -0,0 +1,17 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "outDir": "../../../../../dist/out-tsc", + "declaration": true, + "declarationMap": true, + "inlineSources": true, + "types": [] + }, + "exclude": [ + "src/**/*.spec.ts", + "src/test-setup.ts", + "jest.config.ts", + "src/**/*.test.ts" + ], + "include": ["src/**/*.ts"] +} diff --git a/examples/frontend/angular/libs/util/services/wasm/tsconfig.spec.json b/examples/frontend/angular/libs/util/services/wasm/tsconfig.spec.json new file mode 100644 index 000000000..b73117d1f --- /dev/null +++ b/examples/frontend/angular/libs/util/services/wasm/tsconfig.spec.json @@ -0,0 +1,16 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "outDir": "../../../../../dist/out-tsc", + "module": "commonjs", + "target": "es2016", + "types": ["jest", "node"] + }, + "files": ["src/test-setup.ts"], + "include": [ + "jest.config.ts", + "src/**/*.test.ts", + "src/**/*.spec.ts", + "src/**/*.d.ts" + ] +} diff --git a/examples/frontend/angular/nx.json b/examples/frontend/angular/nx.json new file mode 100644 index 000000000..5fb36ae90 --- /dev/null +++ b/examples/frontend/angular/nx.json @@ -0,0 +1,74 @@ +{ + "$schema": "./node_modules/nx/schemas/nx-schema.json", + "tasksRunnerOptions": { + "default": { + "runner": "nx-cloud", + "options": { + "cacheableOperations": [ + "build", + "lint", + "test", + "e2e" + ], + "accessToken": "YjZiZDA1OWItOTFmYS00Yzg3LTllZTUtYWZmYTM5MzgzOGU5fHJlYWQtd3JpdGU=" + } + } + }, + "targetDefaults": { + "build": { + "dependsOn": [ + "^build" + ], + "inputs": [ + "production", + "^production" + ] + }, + "test": { + "inputs": [ + "default", + "^production", + "{workspaceRoot}/jest.preset.js" + ] + }, + "lint": { + "inputs": [ + "default", + "{workspaceRoot}/.eslintrc.json", + "{workspaceRoot}/.eslintignore" + ] + } + }, + "namedInputs": { + "default": [ + "{projectRoot}/**/*", + "sharedGlobals" + ], + "production": [ + "default", + "!{projectRoot}/**/?(*.)+(spec|test).[jt]s?(x)?(.snap)", + "!{projectRoot}/tsconfig.spec.json", + "!{projectRoot}/jest.config.[jt]s", + "!{projectRoot}/src/test-setup.[jt]s", + "!{projectRoot}/test-setup.[jt]s", + "!{projectRoot}/.eslintrc.json" + ], + "sharedGlobals": [] + }, + "generators": { + "@nx/angular:application": { + "style": "scss", + "linter": "eslint", + "unitTestRunner": "jest", + "e2eTestRunner": "none" + }, + "@nx/angular:library": { + "linter": "eslint", + "unitTestRunner": "jest" + }, + "@nx/angular:component": { + "style": "scss" + } + }, + "defaultProject": "casper" +} diff --git a/examples/frontend/angular/package-lock.json b/examples/frontend/angular/package-lock.json new file mode 100644 index 000000000..bf9671749 --- /dev/null +++ b/examples/frontend/angular/package-lock.json @@ -0,0 +1,15310 @@ +{ + "name": "casper", + "version": "0.0.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "casper", + "version": "0.0.0", + "license": "MIT", + "dependencies": { + "@angular/animations": "~16.2.0", + "@angular/common": "~16.2.0", + "@angular/compiler": "~16.2.0", + "@angular/core": "~16.2.0", + "@angular/forms": "~16.2.0", + "@angular/platform-browser": "~16.2.0", + "@angular/platform-browser-dynamic": "~16.2.0", + "@angular/router": "~16.2.0", + "@nx/angular": "16.7.4", + "casper-sdk": "file:../../../pkg", + "highlight.js": "^11.8.0", + "promise-worker": "^2.0.1", + "rxjs": "~7.8.0", + "tslib": "^2.3.0", + "zone.js": "~0.13.0" + }, + "devDependencies": { + "@angular-devkit/build-angular": "~16.2.0", + "@angular-devkit/core": "~16.2.0", + "@angular-devkit/schematics": "~16.2.0", + "@angular-eslint/eslint-plugin": "~16.0.0", + "@angular-eslint/eslint-plugin-template": "~16.0.0", + "@angular-eslint/template-parser": "~16.0.0", + "@angular/cli": "~16.2.0", + "@angular/compiler-cli": "~16.2.0", + "@angular/language-service": "~16.2.0", + "@nx/eslint-plugin": "16.7.4", + "@nx/jest": "16.7.4", + "@nx/js": "16.7.4", + "@nx/linter": "16.7.4", + "@nx/workspace": "16.7.4", + "@schematics/angular": "~16.2.0", + "@types/jest": "^29.4.0", + "@types/node": "16.11.7", + "@typescript-eslint/eslint-plugin": "^5.60.1", + "@typescript-eslint/parser": "^5.60.1", + "eslint": "~8.46.0", + "eslint-config-prettier": "8.1.0", + "jest": "^29.4.1", + "jest-environment-jsdom": "^29.4.1", + "jest-preset-angular": "~13.1.0", + "nx": "16.7.4", + "nx-cloud": "latest", + "prettier": "^2.6.2", + "ts-jest": "^29.1.0", + "ts-node": "10.9.1", + "typescript": "~5.1.3" + } + }, + "../../../pkg": { + "name": "casper-rust-wasm-sdk", + "version": "0.1.0", + "license": "Apache-2.0" + }, + "node_modules/@aashutoshrathi/word-wrap": { + "version": "1.2.6", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/@adobe/css-tools": { + "version": "4.3.1", + "license": "MIT" + }, + "node_modules/@ampproject/remapping": { + "version": "2.2.1", + "license": "Apache-2.0", + "dependencies": { + "@jridgewell/gen-mapping": "^0.3.0", + "@jridgewell/trace-mapping": "^0.3.9" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@angular-devkit/architect": { + "version": "0.1602.0", + "license": "MIT", + "dependencies": { + "@angular-devkit/core": "16.2.0", + "rxjs": "7.8.1" + }, + "engines": { + "node": "^16.14.0 || >=18.10.0", + "npm": "^6.11.0 || ^7.5.6 || >=8.0.0", + "yarn": ">= 1.13.0" + } + }, + "node_modules/@angular-devkit/build-angular": { + "version": "16.2.0", + "license": "MIT", + "dependencies": { + "@ampproject/remapping": "2.2.1", + "@angular-devkit/architect": "0.1602.0", + "@angular-devkit/build-webpack": "0.1602.0", + "@angular-devkit/core": "16.2.0", + "@babel/core": "7.22.9", + "@babel/generator": "7.22.9", + "@babel/helper-annotate-as-pure": "7.22.5", + "@babel/helper-split-export-declaration": "7.22.6", + "@babel/plugin-proposal-async-generator-functions": "7.20.7", + "@babel/plugin-transform-async-to-generator": "7.22.5", + "@babel/plugin-transform-runtime": "7.22.9", + "@babel/preset-env": "7.22.9", + "@babel/runtime": "7.22.6", + "@babel/template": "7.22.5", + "@discoveryjs/json-ext": "0.5.7", + "@ngtools/webpack": "16.2.0", + "@vitejs/plugin-basic-ssl": "1.0.1", + "ansi-colors": "4.1.3", + "autoprefixer": "10.4.14", + "babel-loader": "9.1.3", + "babel-plugin-istanbul": "6.1.1", + "browserslist": "^4.21.5", + "chokidar": "3.5.3", + "copy-webpack-plugin": "11.0.0", + "critters": "0.0.20", + "css-loader": "6.8.1", + "esbuild-wasm": "0.18.17", + "fast-glob": "3.3.1", + "guess-parser": "0.4.22", + "https-proxy-agent": "5.0.1", + "inquirer": "8.2.4", + "jsonc-parser": "3.2.0", + "karma-source-map-support": "1.4.0", + "less": "4.1.3", + "less-loader": "11.1.0", + "license-webpack-plugin": "4.0.2", + "loader-utils": "3.2.1", + "magic-string": "0.30.1", + "mini-css-extract-plugin": "2.7.6", + "mrmime": "1.0.1", + "open": "8.4.2", + "ora": "5.4.1", + "parse5-html-rewriting-stream": "7.0.0", + "picomatch": "2.3.1", + "piscina": "4.0.0", + "postcss": "8.4.27", + "postcss-loader": "7.3.3", + "resolve-url-loader": "5.0.0", + "rxjs": "7.8.1", + "sass": "1.64.1", + "sass-loader": "13.3.2", + "semver": "7.5.4", + "source-map-loader": "4.0.1", + "source-map-support": "0.5.21", + "terser": "5.19.2", + "text-table": "0.2.0", + "tree-kill": "1.2.2", + "tslib": "2.6.1", + "vite": "4.4.7", + "webpack": "5.88.2", + "webpack-dev-middleware": "6.1.1", + "webpack-dev-server": "4.15.1", + "webpack-merge": "5.9.0", + "webpack-subresource-integrity": "5.1.0" + }, + "engines": { + "node": "^16.14.0 || >=18.10.0", + "npm": "^6.11.0 || ^7.5.6 || >=8.0.0", + "yarn": ">= 1.13.0" + }, + "optionalDependencies": { + "esbuild": "0.18.17" + }, + "peerDependencies": { + "@angular/compiler-cli": "^16.0.0", + "@angular/localize": "^16.0.0", + "@angular/platform-server": "^16.0.0", + "@angular/service-worker": "^16.0.0", + "jest": "^29.5.0", + "jest-environment-jsdom": "^29.5.0", + "karma": "^6.3.0", + "ng-packagr": "^16.0.0", + "protractor": "^7.0.0", + "tailwindcss": "^2.0.0 || ^3.0.0", + "typescript": ">=4.9.3 <5.2" + }, + "peerDependenciesMeta": { + "@angular/localize": { + "optional": true + }, + "@angular/platform-server": { + "optional": true + }, + "@angular/service-worker": { + "optional": true + }, + "jest": { + "optional": true + }, + "jest-environment-jsdom": { + "optional": true + }, + "karma": { + "optional": true + }, + "ng-packagr": { + "optional": true + }, + "protractor": { + "optional": true + }, + "tailwindcss": { + "optional": true + } + } + }, + "node_modules/@angular-devkit/build-angular/node_modules/@babel/core": { + "version": "7.22.9", + "license": "MIT", + "dependencies": { + "@ampproject/remapping": "^2.2.0", + "@babel/code-frame": "^7.22.5", + "@babel/generator": "^7.22.9", + "@babel/helper-compilation-targets": "^7.22.9", + "@babel/helper-module-transforms": "^7.22.9", + "@babel/helpers": "^7.22.6", + "@babel/parser": "^7.22.7", + "@babel/template": "^7.22.5", + "@babel/traverse": "^7.22.8", + "@babel/types": "^7.22.5", + "convert-source-map": "^1.7.0", + "debug": "^4.1.0", + "gensync": "^1.0.0-beta.2", + "json5": "^2.2.2", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/babel" + } + }, + "node_modules/@angular-devkit/build-angular/node_modules/@babel/core/node_modules/semver": { + "version": "6.3.1", + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/@angular-devkit/build-angular/node_modules/@babel/generator": { + "version": "7.22.9", + "license": "MIT", + "dependencies": { + "@babel/types": "^7.22.5", + "@jridgewell/gen-mapping": "^0.3.2", + "@jridgewell/trace-mapping": "^0.3.17", + "jsesc": "^2.5.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@angular-devkit/build-angular/node_modules/@babel/plugin-transform-runtime": { + "version": "7.22.9", + "license": "MIT", + "dependencies": { + "@babel/helper-module-imports": "^7.22.5", + "@babel/helper-plugin-utils": "^7.22.5", + "babel-plugin-polyfill-corejs2": "^0.4.4", + "babel-plugin-polyfill-corejs3": "^0.8.2", + "babel-plugin-polyfill-regenerator": "^0.5.1", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@angular-devkit/build-angular/node_modules/@babel/plugin-transform-runtime/node_modules/semver": { + "version": "6.3.1", + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/@angular-devkit/build-angular/node_modules/@babel/preset-env": { + "version": "7.22.9", + "license": "MIT", + "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/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-meta": "^7.10.4", + "@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-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", + "core-js-compat": "^3.31.0", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@angular-devkit/build-angular/node_modules/@babel/preset-env/node_modules/semver": { + "version": "6.3.1", + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/@angular-devkit/build-angular/node_modules/@babel/preset-modules": { + "version": "0.1.6", + "license": "MIT", + "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" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0 || ^8.0.0-0 <8.0.0" + } + }, + "node_modules/@angular-devkit/build-angular/node_modules/@babel/runtime": { + "version": "7.22.6", + "license": "MIT", + "dependencies": { + "regenerator-runtime": "^0.13.11" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@angular-devkit/build-angular/node_modules/@esbuild/linux-x64": { + "version": "0.18.17", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@angular-devkit/build-angular/node_modules/argparse": { + "version": "2.0.1", + "license": "Python-2.0" + }, + "node_modules/@angular-devkit/build-angular/node_modules/autoprefixer": { + "version": "10.4.14", + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/autoprefixer" + } + ], + "license": "MIT", + "dependencies": { + "browserslist": "^4.21.5", + "caniuse-lite": "^1.0.30001464", + "fraction.js": "^4.2.0", + "normalize-range": "^0.1.2", + "picocolors": "^1.0.0", + "postcss-value-parser": "^4.2.0" + }, + "bin": { + "autoprefixer": "bin/autoprefixer" + }, + "engines": { + "node": "^10 || ^12 || >=14" + }, + "peerDependencies": { + "postcss": "^8.1.0" + } + }, + "node_modules/@angular-devkit/build-angular/node_modules/convert-source-map": { + "version": "1.9.0", + "license": "MIT" + }, + "node_modules/@angular-devkit/build-angular/node_modules/copy-webpack-plugin": { + "version": "11.0.0", + "license": "MIT", + "dependencies": { + "fast-glob": "^3.2.11", + "glob-parent": "^6.0.1", + "globby": "^13.1.1", + "normalize-path": "^3.0.0", + "schema-utils": "^4.0.0", + "serialize-javascript": "^6.0.0" + }, + "engines": { + "node": ">= 14.15.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "webpack": "^5.1.0" + } + }, + "node_modules/@angular-devkit/build-angular/node_modules/copy-webpack-plugin/node_modules/glob-parent": { + "version": "6.0.2", + "license": "ISC", + "dependencies": { + "is-glob": "^4.0.3" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/@angular-devkit/build-angular/node_modules/cosmiconfig": { + "version": "8.2.0", + "license": "MIT", + "dependencies": { + "import-fresh": "^3.2.1", + "js-yaml": "^4.1.0", + "parse-json": "^5.0.0", + "path-type": "^4.0.0" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/d-fischer" + } + }, + "node_modules/@angular-devkit/build-angular/node_modules/esbuild": { + "version": "0.18.17", + "hasInstallScript": true, + "license": "MIT", + "optional": true, + "bin": { + "esbuild": "bin/esbuild" + }, + "engines": { + "node": ">=12" + }, + "optionalDependencies": { + "@esbuild/android-arm": "0.18.17", + "@esbuild/android-arm64": "0.18.17", + "@esbuild/android-x64": "0.18.17", + "@esbuild/darwin-arm64": "0.18.17", + "@esbuild/darwin-x64": "0.18.17", + "@esbuild/freebsd-arm64": "0.18.17", + "@esbuild/freebsd-x64": "0.18.17", + "@esbuild/linux-arm": "0.18.17", + "@esbuild/linux-arm64": "0.18.17", + "@esbuild/linux-ia32": "0.18.17", + "@esbuild/linux-loong64": "0.18.17", + "@esbuild/linux-mips64el": "0.18.17", + "@esbuild/linux-ppc64": "0.18.17", + "@esbuild/linux-riscv64": "0.18.17", + "@esbuild/linux-s390x": "0.18.17", + "@esbuild/linux-x64": "0.18.17", + "@esbuild/netbsd-x64": "0.18.17", + "@esbuild/openbsd-x64": "0.18.17", + "@esbuild/sunos-x64": "0.18.17", + "@esbuild/win32-arm64": "0.18.17", + "@esbuild/win32-ia32": "0.18.17", + "@esbuild/win32-x64": "0.18.17" + } + }, + "node_modules/@angular-devkit/build-angular/node_modules/fast-glob": { + "version": "3.3.1", + "license": "MIT", + "dependencies": { + "@nodelib/fs.stat": "^2.0.2", + "@nodelib/fs.walk": "^1.2.3", + "glob-parent": "^5.1.2", + "merge2": "^1.3.0", + "micromatch": "^4.0.4" + }, + "engines": { + "node": ">=8.6.0" + } + }, + "node_modules/@angular-devkit/build-angular/node_modules/globby": { + "version": "13.2.2", + "license": "MIT", + "dependencies": { + "dir-glob": "^3.0.1", + "fast-glob": "^3.3.0", + "ignore": "^5.2.4", + "merge2": "^1.4.1", + "slash": "^4.0.0" + }, + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@angular-devkit/build-angular/node_modules/js-yaml": { + "version": "4.1.0", + "license": "MIT", + "dependencies": { + "argparse": "^2.0.1" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "node_modules/@angular-devkit/build-angular/node_modules/loader-utils": { + "version": "3.2.1", + "license": "MIT", + "engines": { + "node": ">= 12.13.0" + } + }, + "node_modules/@angular-devkit/build-angular/node_modules/lru-cache": { + "version": "6.0.0", + "license": "ISC", + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@angular-devkit/build-angular/node_modules/magic-string": { + "version": "0.30.1", + "license": "MIT", + "dependencies": { + "@jridgewell/sourcemap-codec": "^1.4.15" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/@angular-devkit/build-angular/node_modules/mini-css-extract-plugin": { + "version": "2.7.6", + "license": "MIT", + "dependencies": { + "schema-utils": "^4.0.0" + }, + "engines": { + "node": ">= 12.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "webpack": "^5.0.0" + } + }, + "node_modules/@angular-devkit/build-angular/node_modules/postcss": { + "version": "8.4.27", + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/postcss" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "nanoid": "^3.3.6", + "picocolors": "^1.0.0", + "source-map-js": "^1.0.2" + }, + "engines": { + "node": "^10 || ^12 || >=14" + } + }, + "node_modules/@angular-devkit/build-angular/node_modules/postcss-loader": { + "version": "7.3.3", + "license": "MIT", + "dependencies": { + "cosmiconfig": "^8.2.0", + "jiti": "^1.18.2", + "semver": "^7.3.8" + }, + "engines": { + "node": ">= 14.15.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "postcss": "^7.0.0 || ^8.0.1", + "webpack": "^5.0.0" + } + }, + "node_modules/@angular-devkit/build-angular/node_modules/regenerator-runtime": { + "version": "0.13.11", + "license": "MIT" + }, + "node_modules/@angular-devkit/build-angular/node_modules/sass": { + "version": "1.64.1", + "license": "MIT", + "dependencies": { + "chokidar": ">=3.0.0 <4.0.0", + "immutable": "^4.0.0", + "source-map-js": ">=0.6.2 <2.0.0" + }, + "bin": { + "sass": "sass.js" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@angular-devkit/build-angular/node_modules/sass-loader": { + "version": "13.3.2", + "license": "MIT", + "dependencies": { + "neo-async": "^2.6.2" + }, + "engines": { + "node": ">= 14.15.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "fibers": ">= 3.1.0", + "node-sass": "^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0 || ^9.0.0", + "sass": "^1.3.0", + "sass-embedded": "*", + "webpack": "^5.0.0" + }, + "peerDependenciesMeta": { + "fibers": { + "optional": true + }, + "node-sass": { + "optional": true + }, + "sass": { + "optional": true + }, + "sass-embedded": { + "optional": true + } + } + }, + "node_modules/@angular-devkit/build-angular/node_modules/semver": { + "version": "7.5.4", + "license": "ISC", + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@angular-devkit/build-angular/node_modules/slash": { + "version": "4.0.0", + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@angular-devkit/build-angular/node_modules/source-map": { + "version": "0.6.1", + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/@angular-devkit/build-angular/node_modules/source-map-loader": { + "version": "4.0.1", + "license": "MIT", + "dependencies": { + "abab": "^2.0.6", + "iconv-lite": "^0.6.3", + "source-map-js": "^1.0.2" + }, + "engines": { + "node": ">= 14.15.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "webpack": "^5.72.1" + } + }, + "node_modules/@angular-devkit/build-angular/node_modules/source-map-support": { + "version": "0.5.21", + "license": "MIT", + "dependencies": { + "buffer-from": "^1.0.0", + "source-map": "^0.6.0" + } + }, + "node_modules/@angular-devkit/build-angular/node_modules/tslib": { + "version": "2.6.1", + "license": "0BSD" + }, + "node_modules/@angular-devkit/build-angular/node_modules/webpack-dev-middleware": { + "version": "6.1.1", + "license": "MIT", + "dependencies": { + "colorette": "^2.0.10", + "memfs": "^3.4.12", + "mime-types": "^2.1.31", + "range-parser": "^1.2.1", + "schema-utils": "^4.0.0" + }, + "engines": { + "node": ">= 14.15.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "webpack": "^5.0.0" + }, + "peerDependenciesMeta": { + "webpack": { + "optional": true + } + } + }, + "node_modules/@angular-devkit/build-angular/node_modules/yallist": { + "version": "4.0.0", + "license": "ISC" + }, + "node_modules/@angular-devkit/build-webpack": { + "version": "0.1602.0", + "license": "MIT", + "dependencies": { + "@angular-devkit/architect": "0.1602.0", + "rxjs": "7.8.1" + }, + "engines": { + "node": "^16.14.0 || >=18.10.0", + "npm": "^6.11.0 || ^7.5.6 || >=8.0.0", + "yarn": ">= 1.13.0" + }, + "peerDependencies": { + "webpack": "^5.30.0", + "webpack-dev-server": "^4.0.0" + } + }, + "node_modules/@angular-devkit/core": { + "version": "16.2.0", + "license": "MIT", + "dependencies": { + "ajv": "8.12.0", + "ajv-formats": "2.1.1", + "jsonc-parser": "3.2.0", + "rxjs": "7.8.1", + "source-map": "0.7.4" + }, + "engines": { + "node": "^16.14.0 || >=18.10.0", + "npm": "^6.11.0 || ^7.5.6 || >=8.0.0", + "yarn": ">= 1.13.0" + }, + "peerDependencies": { + "chokidar": "^3.5.2" + }, + "peerDependenciesMeta": { + "chokidar": { + "optional": true + } + } + }, + "node_modules/@angular-devkit/schematics": { + "version": "16.2.0", + "license": "MIT", + "dependencies": { + "@angular-devkit/core": "16.2.0", + "jsonc-parser": "3.2.0", + "magic-string": "0.30.1", + "ora": "5.4.1", + "rxjs": "7.8.1" + }, + "engines": { + "node": "^16.14.0 || >=18.10.0", + "npm": "^6.11.0 || ^7.5.6 || >=8.0.0", + "yarn": ">= 1.13.0" + } + }, + "node_modules/@angular-devkit/schematics/node_modules/magic-string": { + "version": "0.30.1", + "license": "MIT", + "dependencies": { + "@jridgewell/sourcemap-codec": "^1.4.15" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/@angular-eslint/bundled-angular-compiler": { + "version": "16.0.3", + "dev": true, + "license": "MIT" + }, + "node_modules/@angular-eslint/eslint-plugin": { + "version": "16.0.3", + "dev": true, + "license": "MIT", + "dependencies": { + "@angular-eslint/utils": "16.0.3", + "@typescript-eslint/utils": "5.59.7" + }, + "peerDependencies": { + "eslint": "^7.20.0 || ^8.0.0", + "typescript": "*" + } + }, + "node_modules/@angular-eslint/eslint-plugin-template": { + "version": "16.0.3", + "dev": true, + "license": "MIT", + "dependencies": { + "@angular-eslint/bundled-angular-compiler": "16.0.3", + "@angular-eslint/utils": "16.0.3", + "@typescript-eslint/type-utils": "5.59.7", + "@typescript-eslint/utils": "5.59.7", + "aria-query": "5.1.3", + "axobject-query": "3.1.1" + }, + "peerDependencies": { + "eslint": "^7.20.0 || ^8.0.0", + "typescript": "*" + } + }, + "node_modules/@angular-eslint/eslint-plugin-template/node_modules/@typescript-eslint/scope-manager": { + "version": "5.59.7", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/types": "5.59.7", + "@typescript-eslint/visitor-keys": "5.59.7" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@angular-eslint/eslint-plugin-template/node_modules/@typescript-eslint/type-utils": { + "version": "5.59.7", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/typescript-estree": "5.59.7", + "@typescript-eslint/utils": "5.59.7", + "debug": "^4.3.4", + "tsutils": "^3.21.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "*" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@angular-eslint/eslint-plugin-template/node_modules/@typescript-eslint/types": { + "version": "5.59.7", + "dev": true, + "license": "MIT", + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@angular-eslint/eslint-plugin-template/node_modules/@typescript-eslint/typescript-estree": { + "version": "5.59.7", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "@typescript-eslint/types": "5.59.7", + "@typescript-eslint/visitor-keys": "5.59.7", + "debug": "^4.3.4", + "globby": "^11.1.0", + "is-glob": "^4.0.3", + "semver": "^7.3.7", + "tsutils": "^3.21.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@angular-eslint/eslint-plugin-template/node_modules/@typescript-eslint/utils": { + "version": "5.59.7", + "dev": true, + "license": "MIT", + "dependencies": { + "@eslint-community/eslint-utils": "^4.2.0", + "@types/json-schema": "^7.0.9", + "@types/semver": "^7.3.12", + "@typescript-eslint/scope-manager": "5.59.7", + "@typescript-eslint/types": "5.59.7", + "@typescript-eslint/typescript-estree": "5.59.7", + "eslint-scope": "^5.1.1", + "semver": "^7.3.7" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" + } + }, + "node_modules/@angular-eslint/eslint-plugin-template/node_modules/@typescript-eslint/visitor-keys": { + "version": "5.59.7", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/types": "5.59.7", + "eslint-visitor-keys": "^3.3.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@angular-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager": { + "version": "5.59.7", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/types": "5.59.7", + "@typescript-eslint/visitor-keys": "5.59.7" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@angular-eslint/eslint-plugin/node_modules/@typescript-eslint/types": { + "version": "5.59.7", + "dev": true, + "license": "MIT", + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@angular-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree": { + "version": "5.59.7", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "@typescript-eslint/types": "5.59.7", + "@typescript-eslint/visitor-keys": "5.59.7", + "debug": "^4.3.4", + "globby": "^11.1.0", + "is-glob": "^4.0.3", + "semver": "^7.3.7", + "tsutils": "^3.21.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@angular-eslint/eslint-plugin/node_modules/@typescript-eslint/utils": { + "version": "5.59.7", + "dev": true, + "license": "MIT", + "dependencies": { + "@eslint-community/eslint-utils": "^4.2.0", + "@types/json-schema": "^7.0.9", + "@types/semver": "^7.3.12", + "@typescript-eslint/scope-manager": "5.59.7", + "@typescript-eslint/types": "5.59.7", + "@typescript-eslint/typescript-estree": "5.59.7", + "eslint-scope": "^5.1.1", + "semver": "^7.3.7" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" + } + }, + "node_modules/@angular-eslint/eslint-plugin/node_modules/@typescript-eslint/visitor-keys": { + "version": "5.59.7", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/types": "5.59.7", + "eslint-visitor-keys": "^3.3.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@angular-eslint/template-parser": { + "version": "16.0.3", + "dev": true, + "license": "MIT", + "dependencies": { + "@angular-eslint/bundled-angular-compiler": "16.0.3", + "eslint-scope": "^7.0.0" + }, + "peerDependencies": { + "eslint": "^7.20.0 || ^8.0.0", + "typescript": "*" + } + }, + "node_modules/@angular-eslint/template-parser/node_modules/eslint-scope": { + "version": "7.2.2", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "esrecurse": "^4.3.0", + "estraverse": "^5.2.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/@angular-eslint/template-parser/node_modules/estraverse": { + "version": "5.3.0", + "dev": true, + "license": "BSD-2-Clause", + "engines": { + "node": ">=4.0" + } + }, + "node_modules/@angular-eslint/utils": { + "version": "16.0.3", + "dev": true, + "license": "MIT", + "dependencies": { + "@angular-eslint/bundled-angular-compiler": "16.0.3", + "@typescript-eslint/utils": "5.59.7" + }, + "peerDependencies": { + "eslint": "^7.20.0 || ^8.0.0", + "typescript": "*" + } + }, + "node_modules/@angular-eslint/utils/node_modules/@typescript-eslint/scope-manager": { + "version": "5.59.7", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/types": "5.59.7", + "@typescript-eslint/visitor-keys": "5.59.7" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@angular-eslint/utils/node_modules/@typescript-eslint/types": { + "version": "5.59.7", + "dev": true, + "license": "MIT", + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@angular-eslint/utils/node_modules/@typescript-eslint/typescript-estree": { + "version": "5.59.7", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "@typescript-eslint/types": "5.59.7", + "@typescript-eslint/visitor-keys": "5.59.7", + "debug": "^4.3.4", + "globby": "^11.1.0", + "is-glob": "^4.0.3", + "semver": "^7.3.7", + "tsutils": "^3.21.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@angular-eslint/utils/node_modules/@typescript-eslint/utils": { + "version": "5.59.7", + "dev": true, + "license": "MIT", + "dependencies": { + "@eslint-community/eslint-utils": "^4.2.0", + "@types/json-schema": "^7.0.9", + "@types/semver": "^7.3.12", + "@typescript-eslint/scope-manager": "5.59.7", + "@typescript-eslint/types": "5.59.7", + "@typescript-eslint/typescript-estree": "5.59.7", + "eslint-scope": "^5.1.1", + "semver": "^7.3.7" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" + } + }, + "node_modules/@angular-eslint/utils/node_modules/@typescript-eslint/visitor-keys": { + "version": "5.59.7", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/types": "5.59.7", + "eslint-visitor-keys": "^3.3.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@angular/animations": { + "version": "16.2.2", + "license": "MIT", + "dependencies": { + "tslib": "^2.3.0" + }, + "engines": { + "node": "^16.14.0 || >=18.10.0" + }, + "peerDependencies": { + "@angular/core": "16.2.2" + } + }, + "node_modules/@angular/cli": { + "version": "16.2.0", + "dev": true, + "license": "MIT", + "dependencies": { + "@angular-devkit/architect": "0.1602.0", + "@angular-devkit/core": "16.2.0", + "@angular-devkit/schematics": "16.2.0", + "@schematics/angular": "16.2.0", + "@yarnpkg/lockfile": "1.1.0", + "ansi-colors": "4.1.3", + "ini": "4.1.1", + "inquirer": "8.2.4", + "jsonc-parser": "3.2.0", + "npm-package-arg": "10.1.0", + "npm-pick-manifest": "8.0.1", + "open": "8.4.2", + "ora": "5.4.1", + "pacote": "15.2.0", + "resolve": "1.22.2", + "semver": "7.5.4", + "symbol-observable": "4.0.0", + "yargs": "17.7.2" + }, + "bin": { + "ng": "bin/ng.js" + }, + "engines": { + "node": "^16.14.0 || >=18.10.0", + "npm": "^6.11.0 || ^7.5.6 || >=8.0.0", + "yarn": ">= 1.13.0" + } + }, + "node_modules/@angular/cli/node_modules/lru-cache": { + "version": "6.0.0", + "dev": true, + "license": "ISC", + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@angular/cli/node_modules/resolve": { + "version": "1.22.2", + "dev": true, + "license": "MIT", + "dependencies": { + "is-core-module": "^2.11.0", + "path-parse": "^1.0.7", + "supports-preserve-symlinks-flag": "^1.0.0" + }, + "bin": { + "resolve": "bin/resolve" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/@angular/cli/node_modules/semver": { + "version": "7.5.4", + "dev": true, + "license": "ISC", + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@angular/cli/node_modules/yallist": { + "version": "4.0.0", + "dev": true, + "license": "ISC" + }, + "node_modules/@angular/common": { + "version": "16.2.2", + "license": "MIT", + "dependencies": { + "tslib": "^2.3.0" + }, + "engines": { + "node": "^16.14.0 || >=18.10.0" + }, + "peerDependencies": { + "@angular/core": "16.2.2", + "rxjs": "^6.5.3 || ^7.4.0" + } + }, + "node_modules/@angular/compiler": { + "version": "16.2.2", + "license": "MIT", + "dependencies": { + "tslib": "^2.3.0" + }, + "engines": { + "node": "^16.14.0 || >=18.10.0" + }, + "peerDependencies": { + "@angular/core": "16.2.2" + }, + "peerDependenciesMeta": { + "@angular/core": { + "optional": true + } + } + }, + "node_modules/@angular/compiler-cli": { + "version": "16.2.2", + "license": "MIT", + "dependencies": { + "@babel/core": "7.22.5", + "@jridgewell/sourcemap-codec": "^1.4.14", + "chokidar": "^3.0.0", + "convert-source-map": "^1.5.1", + "reflect-metadata": "^0.1.2", + "semver": "^7.0.0", + "tslib": "^2.3.0", + "yargs": "^17.2.1" + }, + "bin": { + "ng-xi18n": "bundles/src/bin/ng_xi18n.js", + "ngc": "bundles/src/bin/ngc.js", + "ngcc": "bundles/ngcc/index.js" + }, + "engines": { + "node": "^16.14.0 || >=18.10.0" + }, + "peerDependencies": { + "@angular/compiler": "16.2.2", + "typescript": ">=4.9.3 <5.2" + } + }, + "node_modules/@angular/compiler-cli/node_modules/@babel/core": { + "version": "7.22.5", + "license": "MIT", + "dependencies": { + "@ampproject/remapping": "^2.2.0", + "@babel/code-frame": "^7.22.5", + "@babel/generator": "^7.22.5", + "@babel/helper-compilation-targets": "^7.22.5", + "@babel/helper-module-transforms": "^7.22.5", + "@babel/helpers": "^7.22.5", + "@babel/parser": "^7.22.5", + "@babel/template": "^7.22.5", + "@babel/traverse": "^7.22.5", + "@babel/types": "^7.22.5", + "convert-source-map": "^1.7.0", + "debug": "^4.1.0", + "gensync": "^1.0.0-beta.2", + "json5": "^2.2.2", + "semver": "^6.3.0" + }, + "engines": { + "node": ">=6.9.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/babel" + } + }, + "node_modules/@angular/compiler-cli/node_modules/@babel/core/node_modules/semver": { + "version": "6.3.1", + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/@angular/compiler-cli/node_modules/convert-source-map": { + "version": "1.9.0", + "license": "MIT" + }, + "node_modules/@angular/core": { + "version": "16.2.2", + "license": "MIT", + "dependencies": { + "tslib": "^2.3.0" + }, + "engines": { + "node": "^16.14.0 || >=18.10.0" + }, + "peerDependencies": { + "rxjs": "^6.5.3 || ^7.4.0", + "zone.js": "~0.13.0" + } + }, + "node_modules/@angular/forms": { + "version": "16.2.2", + "license": "MIT", + "dependencies": { + "tslib": "^2.3.0" + }, + "engines": { + "node": "^16.14.0 || >=18.10.0" + }, + "peerDependencies": { + "@angular/common": "16.2.2", + "@angular/core": "16.2.2", + "@angular/platform-browser": "16.2.2", + "rxjs": "^6.5.3 || ^7.4.0" + } + }, + "node_modules/@angular/language-service": { + "version": "16.2.2", + "dev": true, + "license": "MIT", + "engines": { + "node": "^16.14.0 || >=18.10.0" + } + }, + "node_modules/@angular/platform-browser": { + "version": "16.2.2", + "license": "MIT", + "dependencies": { + "tslib": "^2.3.0" + }, + "engines": { + "node": "^16.14.0 || >=18.10.0" + }, + "peerDependencies": { + "@angular/animations": "16.2.2", + "@angular/common": "16.2.2", + "@angular/core": "16.2.2" + }, + "peerDependenciesMeta": { + "@angular/animations": { + "optional": true + } + } + }, + "node_modules/@angular/platform-browser-dynamic": { + "version": "16.2.2", + "license": "MIT", + "dependencies": { + "tslib": "^2.3.0" + }, + "engines": { + "node": "^16.14.0 || >=18.10.0" + }, + "peerDependencies": { + "@angular/common": "16.2.2", + "@angular/compiler": "16.2.2", + "@angular/core": "16.2.2", + "@angular/platform-browser": "16.2.2" + } + }, + "node_modules/@angular/router": { + "version": "16.2.2", + "license": "MIT", + "dependencies": { + "tslib": "^2.3.0" + }, + "engines": { + "node": "^16.14.0 || >=18.10.0" + }, + "peerDependencies": { + "@angular/common": "16.2.2", + "@angular/core": "16.2.2", + "@angular/platform-browser": "16.2.2", + "rxjs": "^6.5.3 || ^7.4.0" + } + }, + "node_modules/@assemblyscript/loader": { + "version": "0.10.1", + "license": "Apache-2.0" + }, + "node_modules/@babel/code-frame": { + "version": "7.22.10", + "license": "MIT", + "dependencies": { + "@babel/highlight": "^7.22.10", + "chalk": "^2.4.2" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/code-frame/node_modules/ansi-styles": { + "version": "3.2.1", + "license": "MIT", + "dependencies": { + "color-convert": "^1.9.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/@babel/code-frame/node_modules/chalk": { + "version": "2.4.2", + "license": "MIT", + "dependencies": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/@babel/code-frame/node_modules/color-convert": { + "version": "1.9.3", + "license": "MIT", + "dependencies": { + "color-name": "1.1.3" + } + }, + "node_modules/@babel/code-frame/node_modules/color-name": { + "version": "1.1.3", + "license": "MIT" + }, + "node_modules/@babel/code-frame/node_modules/has-flag": { + "version": "3.0.0", + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/@babel/code-frame/node_modules/supports-color": { + "version": "5.5.0", + "license": "MIT", + "dependencies": { + "has-flag": "^3.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/@babel/compat-data": { + "version": "7.22.9", + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/core": { + "version": "7.22.11", + "license": "MIT", + "dependencies": { + "@ampproject/remapping": "^2.2.0", + "@babel/code-frame": "^7.22.10", + "@babel/generator": "^7.22.10", + "@babel/helper-compilation-targets": "^7.22.10", + "@babel/helper-module-transforms": "^7.22.9", + "@babel/helpers": "^7.22.11", + "@babel/parser": "^7.22.11", + "@babel/template": "^7.22.5", + "@babel/traverse": "^7.22.11", + "@babel/types": "^7.22.11", + "convert-source-map": "^1.7.0", + "debug": "^4.1.0", + "gensync": "^1.0.0-beta.2", + "json5": "^2.2.3", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/babel" + } + }, + "node_modules/@babel/core/node_modules/convert-source-map": { + "version": "1.9.0", + "license": "MIT" + }, + "node_modules/@babel/core/node_modules/semver": { + "version": "6.3.1", + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/@babel/generator": { + "version": "7.22.10", + "license": "MIT", + "dependencies": { + "@babel/types": "^7.22.10", + "@jridgewell/gen-mapping": "^0.3.2", + "@jridgewell/trace-mapping": "^0.3.17", + "jsesc": "^2.5.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-annotate-as-pure": { + "version": "7.22.5", + "license": "MIT", + "dependencies": { + "@babel/types": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-builder-binary-assignment-operator-visitor": { + "version": "7.22.10", + "license": "MIT", + "dependencies": { + "@babel/types": "^7.22.10" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-compilation-targets": { + "version": "7.22.10", + "license": "MIT", + "dependencies": { + "@babel/compat-data": "^7.22.9", + "@babel/helper-validator-option": "^7.22.5", + "browserslist": "^4.21.9", + "lru-cache": "^5.1.1", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-compilation-targets/node_modules/semver": { + "version": "6.3.1", + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/@babel/helper-create-class-features-plugin": { + "version": "7.22.11", + "license": "MIT", + "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.9", + "@babel/helper-skip-transparent-expression-wrappers": "^7.22.5", + "@babel/helper-split-export-declaration": "^7.22.6", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/helper-create-class-features-plugin/node_modules/semver": { + "version": "6.3.1", + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/@babel/helper-create-regexp-features-plugin": { + "version": "7.22.9", + "license": "MIT", + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.22.5", + "regexpu-core": "^5.3.1", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/helper-create-regexp-features-plugin/node_modules/semver": { + "version": "6.3.1", + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/@babel/helper-define-polyfill-provider": { + "version": "0.4.2", + "license": "MIT", + "dependencies": { + "@babel/helper-compilation-targets": "^7.22.6", + "@babel/helper-plugin-utils": "^7.22.5", + "debug": "^4.1.1", + "lodash.debounce": "^4.0.8", + "resolve": "^1.14.2" + }, + "peerDependencies": { + "@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0" + } + }, + "node_modules/@babel/helper-environment-visitor": { + "version": "7.22.5", + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-function-name": { + "version": "7.22.5", + "license": "MIT", + "dependencies": { + "@babel/template": "^7.22.5", + "@babel/types": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-hoist-variables": { + "version": "7.22.5", + "license": "MIT", + "dependencies": { + "@babel/types": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-member-expression-to-functions": { + "version": "7.22.5", + "license": "MIT", + "dependencies": { + "@babel/types": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-module-imports": { + "version": "7.22.5", + "license": "MIT", + "dependencies": { + "@babel/types": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-module-transforms": { + "version": "7.22.9", + "license": "MIT", + "dependencies": { + "@babel/helper-environment-visitor": "^7.22.5", + "@babel/helper-module-imports": "^7.22.5", + "@babel/helper-simple-access": "^7.22.5", + "@babel/helper-split-export-declaration": "^7.22.6", + "@babel/helper-validator-identifier": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/helper-optimise-call-expression": { + "version": "7.22.5", + "license": "MIT", + "dependencies": { + "@babel/types": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-plugin-utils": { + "version": "7.22.5", + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-remap-async-to-generator": { + "version": "7.22.9", + "license": "MIT", + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.22.5", + "@babel/helper-environment-visitor": "^7.22.5", + "@babel/helper-wrap-function": "^7.22.9" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/helper-replace-supers": { + "version": "7.22.9", + "license": "MIT", + "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" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/helper-simple-access": { + "version": "7.22.5", + "license": "MIT", + "dependencies": { + "@babel/types": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-skip-transparent-expression-wrappers": { + "version": "7.22.5", + "license": "MIT", + "dependencies": { + "@babel/types": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-split-export-declaration": { + "version": "7.22.6", + "license": "MIT", + "dependencies": { + "@babel/types": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-string-parser": { + "version": "7.22.5", + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-identifier": { + "version": "7.22.5", + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-option": { + "version": "7.22.5", + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-wrap-function": { + "version": "7.22.10", + "license": "MIT", + "dependencies": { + "@babel/helper-function-name": "^7.22.5", + "@babel/template": "^7.22.5", + "@babel/types": "^7.22.10" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helpers": { + "version": "7.22.11", + "license": "MIT", + "dependencies": { + "@babel/template": "^7.22.5", + "@babel/traverse": "^7.22.11", + "@babel/types": "^7.22.11" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/highlight": { + "version": "7.22.10", + "license": "MIT", + "dependencies": { + "@babel/helper-validator-identifier": "^7.22.5", + "chalk": "^2.4.2", + "js-tokens": "^4.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/highlight/node_modules/ansi-styles": { + "version": "3.2.1", + "license": "MIT", + "dependencies": { + "color-convert": "^1.9.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/@babel/highlight/node_modules/chalk": { + "version": "2.4.2", + "license": "MIT", + "dependencies": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/@babel/highlight/node_modules/color-convert": { + "version": "1.9.3", + "license": "MIT", + "dependencies": { + "color-name": "1.1.3" + } + }, + "node_modules/@babel/highlight/node_modules/color-name": { + "version": "1.1.3", + "license": "MIT" + }, + "node_modules/@babel/highlight/node_modules/has-flag": { + "version": "3.0.0", + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/@babel/highlight/node_modules/supports-color": { + "version": "5.5.0", + "license": "MIT", + "dependencies": { + "has-flag": "^3.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/@babel/parser": { + "version": "7.22.11", + "license": "MIT", + "bin": { + "parser": "bin/babel-parser.js" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": { + "version": "7.22.5", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": { + "version": "7.22.5", + "license": "MIT", + "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" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.13.0" + } + }, + "node_modules/@babel/plugin-proposal-async-generator-functions": { + "version": "7.20.7", + "license": "MIT", + "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" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-proposal-class-properties": { + "version": "7.18.6", + "license": "MIT", + "dependencies": { + "@babel/helper-create-class-features-plugin": "^7.18.6", + "@babel/helper-plugin-utils": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-proposal-decorators": { + "version": "7.22.10", + "license": "MIT", + "dependencies": { + "@babel/helper-create-class-features-plugin": "^7.22.10", + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/helper-replace-supers": "^7.22.9", + "@babel/helper-split-export-declaration": "^7.22.6", + "@babel/plugin-syntax-decorators": "^7.22.10" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-proposal-private-property-in-object": { + "version": "7.21.0-placeholder-for-preset-env.2", + "license": "MIT", + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-proposal-unicode-property-regex": { + "version": "7.18.6", + "license": "MIT", + "dependencies": { + "@babel/helper-create-regexp-features-plugin": "^7.18.6", + "@babel/helper-plugin-utils": "^7.18.6" + }, + "engines": { + "node": ">=4" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-async-generators": { + "version": "7.8.4", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-bigint": { + "version": "7.8.3", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-class-properties": { + "version": "7.12.13", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.12.13" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-class-static-block": { + "version": "7.14.5", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-decorators": { + "version": "7.22.10", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-dynamic-import": { + "version": "7.8.3", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-export-namespace-from": { + "version": "7.8.3", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.3" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-import-assertions": { + "version": "7.22.5", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-import-attributes": { + "version": "7.22.5", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-import-meta": { + "version": "7.10.4", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.10.4" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-json-strings": { + "version": "7.8.3", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-jsx": { + "version": "7.22.5", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-logical-assignment-operators": { + "version": "7.10.4", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.10.4" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-nullish-coalescing-operator": { + "version": "7.8.3", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-numeric-separator": { + "version": "7.10.4", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.10.4" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-object-rest-spread": { + "version": "7.8.3", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-optional-catch-binding": { + "version": "7.8.3", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-optional-chaining": { + "version": "7.8.3", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-private-property-in-object": { + "version": "7.14.5", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-top-level-await": { + "version": "7.14.5", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-typescript": { + "version": "7.22.5", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-unicode-sets-regex": { + "version": "7.18.6", + "license": "MIT", + "dependencies": { + "@babel/helper-create-regexp-features-plugin": "^7.18.6", + "@babel/helper-plugin-utils": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/plugin-transform-arrow-functions": { + "version": "7.22.5", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-async-generator-functions": { + "version": "7.22.11", + "license": "MIT", + "dependencies": { + "@babel/helper-environment-visitor": "^7.22.5", + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/helper-remap-async-to-generator": "^7.22.9", + "@babel/plugin-syntax-async-generators": "^7.8.4" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-async-to-generator": { + "version": "7.22.5", + "license": "MIT", + "dependencies": { + "@babel/helper-module-imports": "^7.22.5", + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/helper-remap-async-to-generator": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-block-scoped-functions": { + "version": "7.22.5", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-block-scoping": { + "version": "7.22.10", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-class-properties": { + "version": "7.22.5", + "license": "MIT", + "dependencies": { + "@babel/helper-create-class-features-plugin": "^7.22.5", + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-class-static-block": { + "version": "7.22.11", + "license": "MIT", + "dependencies": { + "@babel/helper-create-class-features-plugin": "^7.22.11", + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/plugin-syntax-class-static-block": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.12.0" + } + }, + "node_modules/@babel/plugin-transform-classes": { + "version": "7.22.6", + "license": "MIT", + "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" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-computed-properties": { + "version": "7.22.5", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/template": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-destructuring": { + "version": "7.22.10", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-dotall-regex": { + "version": "7.22.5", + "license": "MIT", + "dependencies": { + "@babel/helper-create-regexp-features-plugin": "^7.22.5", + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-duplicate-keys": { + "version": "7.22.5", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-dynamic-import": { + "version": "7.22.11", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/plugin-syntax-dynamic-import": "^7.8.3" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-exponentiation-operator": { + "version": "7.22.5", + "license": "MIT", + "dependencies": { + "@babel/helper-builder-binary-assignment-operator-visitor": "^7.22.5", + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-export-namespace-from": { + "version": "7.22.11", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/plugin-syntax-export-namespace-from": "^7.8.3" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-for-of": { + "version": "7.22.5", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-function-name": { + "version": "7.22.5", + "license": "MIT", + "dependencies": { + "@babel/helper-compilation-targets": "^7.22.5", + "@babel/helper-function-name": "^7.22.5", + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-json-strings": { + "version": "7.22.11", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/plugin-syntax-json-strings": "^7.8.3" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-literals": { + "version": "7.22.5", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-logical-assignment-operators": { + "version": "7.22.11", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/plugin-syntax-logical-assignment-operators": "^7.10.4" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-member-expression-literals": { + "version": "7.22.5", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-modules-amd": { + "version": "7.22.5", + "license": "MIT", + "dependencies": { + "@babel/helper-module-transforms": "^7.22.5", + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-modules-commonjs": { + "version": "7.22.11", + "license": "MIT", + "dependencies": { + "@babel/helper-module-transforms": "^7.22.9", + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/helper-simple-access": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-modules-systemjs": { + "version": "7.22.11", + "license": "MIT", + "dependencies": { + "@babel/helper-hoist-variables": "^7.22.5", + "@babel/helper-module-transforms": "^7.22.9", + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/helper-validator-identifier": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-modules-umd": { + "version": "7.22.5", + "license": "MIT", + "dependencies": { + "@babel/helper-module-transforms": "^7.22.5", + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-named-capturing-groups-regex": { + "version": "7.22.5", + "license": "MIT", + "dependencies": { + "@babel/helper-create-regexp-features-plugin": "^7.22.5", + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/plugin-transform-new-target": { + "version": "7.22.5", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-nullish-coalescing-operator": { + "version": "7.22.11", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-numeric-separator": { + "version": "7.22.11", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/plugin-syntax-numeric-separator": "^7.10.4" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-object-rest-spread": { + "version": "7.22.11", + "license": "MIT", + "dependencies": { + "@babel/compat-data": "^7.22.9", + "@babel/helper-compilation-targets": "^7.22.10", + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/plugin-syntax-object-rest-spread": "^7.8.3", + "@babel/plugin-transform-parameters": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-object-super": { + "version": "7.22.5", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/helper-replace-supers": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-optional-catch-binding": { + "version": "7.22.11", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/plugin-syntax-optional-catch-binding": "^7.8.3" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-optional-chaining": { + "version": "7.22.12", + "license": "MIT", + "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" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-parameters": { + "version": "7.22.5", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-private-methods": { + "version": "7.22.5", + "license": "MIT", + "dependencies": { + "@babel/helper-create-class-features-plugin": "^7.22.5", + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-private-property-in-object": { + "version": "7.22.11", + "license": "MIT", + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.22.5", + "@babel/helper-create-class-features-plugin": "^7.22.11", + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/plugin-syntax-private-property-in-object": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-property-literals": { + "version": "7.22.5", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-regenerator": { + "version": "7.22.10", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5", + "regenerator-transform": "^0.15.2" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-reserved-words": { + "version": "7.22.5", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-runtime": { + "version": "7.22.10", + "license": "MIT", + "dependencies": { + "@babel/helper-module-imports": "^7.22.5", + "@babel/helper-plugin-utils": "^7.22.5", + "babel-plugin-polyfill-corejs2": "^0.4.5", + "babel-plugin-polyfill-corejs3": "^0.8.3", + "babel-plugin-polyfill-regenerator": "^0.5.2", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-runtime/node_modules/semver": { + "version": "6.3.1", + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/@babel/plugin-transform-shorthand-properties": { + "version": "7.22.5", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-spread": { + "version": "7.22.5", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/helper-skip-transparent-expression-wrappers": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-sticky-regex": { + "version": "7.22.5", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-template-literals": { + "version": "7.22.5", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-typeof-symbol": { + "version": "7.22.5", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-typescript": { + "version": "7.22.11", + "license": "MIT", + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.22.5", + "@babel/helper-create-class-features-plugin": "^7.22.11", + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/plugin-syntax-typescript": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-unicode-escapes": { + "version": "7.22.10", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-unicode-property-regex": { + "version": "7.22.5", + "license": "MIT", + "dependencies": { + "@babel/helper-create-regexp-features-plugin": "^7.22.5", + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-unicode-regex": { + "version": "7.22.5", + "license": "MIT", + "dependencies": { + "@babel/helper-create-regexp-features-plugin": "^7.22.5", + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-unicode-sets-regex": { + "version": "7.22.5", + "license": "MIT", + "dependencies": { + "@babel/helper-create-regexp-features-plugin": "^7.22.5", + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/preset-env": { + "version": "7.22.10", + "license": "MIT", + "dependencies": { + "@babel/compat-data": "^7.22.9", + "@babel/helper-compilation-targets": "^7.22.10", + "@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/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-meta": "^7.10.4", + "@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-syntax-unicode-sets-regex": "^7.18.6", + "@babel/plugin-transform-arrow-functions": "^7.22.5", + "@babel/plugin-transform-async-generator-functions": "^7.22.10", + "@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.10", + "@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.10", + "@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.10", + "@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.10", + "@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.10", + "@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.6-no-external-plugins", + "@babel/types": "^7.22.10", + "babel-plugin-polyfill-corejs2": "^0.4.5", + "babel-plugin-polyfill-corejs3": "^0.8.3", + "babel-plugin-polyfill-regenerator": "^0.5.2", + "core-js-compat": "^3.31.0", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/preset-env/node_modules/semver": { + "version": "6.3.1", + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/@babel/preset-modules": { + "version": "0.1.6-no-external-plugins", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.0.0", + "@babel/types": "^7.4.4", + "esutils": "^2.0.2" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0 || ^8.0.0-0 <8.0.0" + } + }, + "node_modules/@babel/preset-typescript": { + "version": "7.22.11", + "license": "MIT", + "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.11", + "@babel/plugin-transform-typescript": "^7.22.11" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/regjsgen": { + "version": "0.8.0", + "license": "MIT" + }, + "node_modules/@babel/runtime": { + "version": "7.22.11", + "license": "MIT", + "dependencies": { + "regenerator-runtime": "^0.14.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/template": { + "version": "7.22.5", + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.22.5", + "@babel/parser": "^7.22.5", + "@babel/types": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/traverse": { + "version": "7.22.11", + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.22.10", + "@babel/generator": "^7.22.10", + "@babel/helper-environment-visitor": "^7.22.5", + "@babel/helper-function-name": "^7.22.5", + "@babel/helper-hoist-variables": "^7.22.5", + "@babel/helper-split-export-declaration": "^7.22.6", + "@babel/parser": "^7.22.11", + "@babel/types": "^7.22.11", + "debug": "^4.1.0", + "globals": "^11.1.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/types": { + "version": "7.22.11", + "license": "MIT", + "dependencies": { + "@babel/helper-string-parser": "^7.22.5", + "@babel/helper-validator-identifier": "^7.22.5", + "to-fast-properties": "^2.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@bcoe/v8-coverage": { + "version": "0.2.3", + "license": "MIT" + }, + "node_modules/@cspotcode/source-map-support": { + "version": "0.8.1", + "license": "MIT", + "dependencies": { + "@jridgewell/trace-mapping": "0.3.9" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/@cspotcode/source-map-support/node_modules/@jridgewell/trace-mapping": { + "version": "0.3.9", + "license": "MIT", + "dependencies": { + "@jridgewell/resolve-uri": "^3.0.3", + "@jridgewell/sourcemap-codec": "^1.4.10" + } + }, + "node_modules/@discoveryjs/json-ext": { + "version": "0.5.7", + "license": "MIT", + "engines": { + "node": ">=10.0.0" + } + }, + "node_modules/@esbuild/linux-x64": { + "version": "0.17.19", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@eslint-community/eslint-utils": { + "version": "4.4.0", + "license": "MIT", + "dependencies": { + "eslint-visitor-keys": "^3.3.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "peerDependencies": { + "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" + } + }, + "node_modules/@eslint-community/regexpp": { + "version": "4.8.0", + "license": "MIT", + "engines": { + "node": "^12.0.0 || ^14.0.0 || >=16.0.0" + } + }, + "node_modules/@eslint/eslintrc": { + "version": "2.1.2", + "license": "MIT", + "dependencies": { + "ajv": "^6.12.4", + "debug": "^4.3.2", + "espree": "^9.6.0", + "globals": "^13.19.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" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/@eslint/eslintrc/node_modules/ajv": { + "version": "6.12.6", + "license": "MIT", + "dependencies": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/@eslint/eslintrc/node_modules/argparse": { + "version": "2.0.1", + "license": "Python-2.0" + }, + "node_modules/@eslint/eslintrc/node_modules/globals": { + "version": "13.21.0", + "license": "MIT", + "dependencies": { + "type-fest": "^0.20.2" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@eslint/eslintrc/node_modules/js-yaml": { + "version": "4.1.0", + "license": "MIT", + "dependencies": { + "argparse": "^2.0.1" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "node_modules/@eslint/eslintrc/node_modules/json-schema-traverse": { + "version": "0.4.1", + "license": "MIT" + }, + "node_modules/@eslint/eslintrc/node_modules/minimatch": { + "version": "3.1.2", + "license": "ISC", + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/@eslint/eslintrc/node_modules/type-fest": { + "version": "0.20.2", + "license": "(MIT OR CC0-1.0)", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@eslint/js": { + "version": "8.47.0", + "license": "MIT", + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + } + }, + "node_modules/@humanwhocodes/config-array": { + "version": "0.11.10", + "license": "Apache-2.0", + "dependencies": { + "@humanwhocodes/object-schema": "^1.2.1", + "debug": "^4.1.1", + "minimatch": "^3.0.5" + }, + "engines": { + "node": ">=10.10.0" + } + }, + "node_modules/@humanwhocodes/module-importer": { + "version": "1.0.1", + "license": "Apache-2.0", + "engines": { + "node": ">=12.22" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/nzakas" + } + }, + "node_modules/@humanwhocodes/object-schema": { + "version": "1.2.1", + "license": "BSD-3-Clause" + }, + "node_modules/@isaacs/cliui": { + "version": "8.0.2", + "dev": true, + "license": "ISC", + "dependencies": { + "string-width": "^5.1.2", + "string-width-cjs": "npm:string-width@^4.2.0", + "strip-ansi": "^7.0.1", + "strip-ansi-cjs": "npm:strip-ansi@^6.0.1", + "wrap-ansi": "^8.1.0", + "wrap-ansi-cjs": "npm:wrap-ansi@^7.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/@isaacs/cliui/node_modules/ansi-regex": { + "version": "6.0.1", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-regex?sponsor=1" + } + }, + "node_modules/@isaacs/cliui/node_modules/ansi-styles": { + "version": "6.2.1", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/@isaacs/cliui/node_modules/emoji-regex": { + "version": "9.2.2", + "dev": true, + "license": "MIT" + }, + "node_modules/@isaacs/cliui/node_modules/string-width": { + "version": "5.1.2", + "dev": true, + "license": "MIT", + "dependencies": { + "eastasianwidth": "^0.2.0", + "emoji-regex": "^9.2.2", + "strip-ansi": "^7.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@isaacs/cliui/node_modules/strip-ansi": { + "version": "7.1.0", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-regex": "^6.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/strip-ansi?sponsor=1" + } + }, + "node_modules/@isaacs/cliui/node_modules/wrap-ansi": { + "version": "8.1.0", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-styles": "^6.1.0", + "string-width": "^5.0.1", + "strip-ansi": "^7.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } + }, + "node_modules/@istanbuljs/load-nyc-config": { + "version": "1.1.0", + "license": "ISC", + "dependencies": { + "camelcase": "^5.3.1", + "find-up": "^4.1.0", + "get-package-type": "^0.1.0", + "js-yaml": "^3.13.1", + "resolve-from": "^5.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@istanbuljs/schema": { + "version": "0.1.3", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/@jest/console": { + "version": "29.6.4", + "license": "MIT", + "dependencies": { + "@jest/types": "^29.6.3", + "@types/node": "*", + "chalk": "^4.0.0", + "jest-message-util": "^29.6.3", + "jest-util": "^29.6.3", + "slash": "^3.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/core": { + "version": "29.6.4", + "devOptional": true, + "license": "MIT", + "dependencies": { + "@jest/console": "^29.6.4", + "@jest/reporters": "^29.6.4", + "@jest/test-result": "^29.6.4", + "@jest/transform": "^29.6.4", + "@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.6.3", + "jest-config": "^29.6.4", + "jest-haste-map": "^29.6.4", + "jest-message-util": "^29.6.3", + "jest-regex-util": "^29.6.3", + "jest-resolve": "^29.6.4", + "jest-resolve-dependencies": "^29.6.4", + "jest-runner": "^29.6.4", + "jest-runtime": "^29.6.4", + "jest-snapshot": "^29.6.4", + "jest-util": "^29.6.3", + "jest-validate": "^29.6.3", + "jest-watcher": "^29.6.4", + "micromatch": "^4.0.4", + "pretty-format": "^29.6.3", + "slash": "^3.0.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" + }, + "peerDependenciesMeta": { + "node-notifier": { + "optional": true + } + } + }, + "node_modules/@jest/environment": { + "version": "29.6.4", + "license": "MIT", + "dependencies": { + "@jest/fake-timers": "^29.6.4", + "@jest/types": "^29.6.3", + "@types/node": "*", + "jest-mock": "^29.6.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/expect": { + "version": "29.6.4", + "license": "MIT", + "dependencies": { + "expect": "^29.6.4", + "jest-snapshot": "^29.6.4" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/expect-utils": { + "version": "29.6.4", + "license": "MIT", + "dependencies": { + "jest-get-type": "^29.6.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/fake-timers": { + "version": "29.6.4", + "license": "MIT", + "dependencies": { + "@jest/types": "^29.6.3", + "@sinonjs/fake-timers": "^10.0.2", + "@types/node": "*", + "jest-message-util": "^29.6.3", + "jest-mock": "^29.6.3", + "jest-util": "^29.6.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/globals": { + "version": "29.6.4", + "license": "MIT", + "dependencies": { + "@jest/environment": "^29.6.4", + "@jest/expect": "^29.6.4", + "@jest/types": "^29.6.3", + "jest-mock": "^29.6.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/reporters": { + "version": "29.6.4", + "license": "MIT", + "dependencies": { + "@bcoe/v8-coverage": "^0.2.3", + "@jest/console": "^29.6.4", + "@jest/test-result": "^29.6.4", + "@jest/transform": "^29.6.4", + "@jest/types": "^29.6.3", + "@jridgewell/trace-mapping": "^0.3.18", + "@types/node": "*", + "chalk": "^4.0.0", + "collect-v8-coverage": "^1.0.0", + "exit": "^0.1.2", + "glob": "^7.1.3", + "graceful-fs": "^4.2.9", + "istanbul-lib-coverage": "^3.0.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.3", + "jest-util": "^29.6.3", + "jest-worker": "^29.6.4", + "slash": "^3.0.0", + "string-length": "^4.0.1", + "strip-ansi": "^6.0.0", + "v8-to-istanbul": "^9.0.1" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" + }, + "peerDependenciesMeta": { + "node-notifier": { + "optional": true + } + } + }, + "node_modules/@jest/schemas": { + "version": "29.6.3", + "license": "MIT", + "dependencies": { + "@sinclair/typebox": "^0.27.8" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/source-map": { + "version": "29.6.3", + "license": "MIT", + "dependencies": { + "@jridgewell/trace-mapping": "^0.3.18", + "callsites": "^3.0.0", + "graceful-fs": "^4.2.9" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/test-result": { + "version": "29.6.4", + "license": "MIT", + "dependencies": { + "@jest/console": "^29.6.4", + "@jest/types": "^29.6.3", + "@types/istanbul-lib-coverage": "^2.0.0", + "collect-v8-coverage": "^1.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/test-sequencer": { + "version": "29.6.4", + "license": "MIT", + "dependencies": { + "@jest/test-result": "^29.6.4", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^29.6.4", + "slash": "^3.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/transform": { + "version": "29.6.4", + "license": "MIT", + "dependencies": { + "@babel/core": "^7.11.6", + "@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.4", + "jest-regex-util": "^29.6.3", + "jest-util": "^29.6.3", + "micromatch": "^4.0.4", + "pirates": "^4.0.4", + "slash": "^3.0.0", + "write-file-atomic": "^4.0.2" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/types": { + "version": "29.6.3", + "license": "MIT", + "dependencies": { + "@jest/schemas": "^29.6.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" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jridgewell/gen-mapping": { + "version": "0.3.3", + "license": "MIT", + "dependencies": { + "@jridgewell/set-array": "^1.0.1", + "@jridgewell/sourcemap-codec": "^1.4.10", + "@jridgewell/trace-mapping": "^0.3.9" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/resolve-uri": { + "version": "3.1.1", + "license": "MIT", + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/set-array": { + "version": "1.1.2", + "license": "MIT", + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/source-map": { + "version": "0.3.5", + "license": "MIT", + "dependencies": { + "@jridgewell/gen-mapping": "^0.3.0", + "@jridgewell/trace-mapping": "^0.3.9" + } + }, + "node_modules/@jridgewell/sourcemap-codec": { + "version": "1.4.15", + "license": "MIT" + }, + "node_modules/@jridgewell/trace-mapping": { + "version": "0.3.19", + "license": "MIT", + "dependencies": { + "@jridgewell/resolve-uri": "^3.1.0", + "@jridgewell/sourcemap-codec": "^1.4.14" + } + }, + "node_modules/@leichtgewicht/ip-codec": { + "version": "2.0.4", + "license": "MIT" + }, + "node_modules/@ngtools/webpack": { + "version": "16.2.0", + "license": "MIT", + "engines": { + "node": "^16.14.0 || >=18.10.0", + "npm": "^6.11.0 || ^7.5.6 || >=8.0.0", + "yarn": ">= 1.13.0" + }, + "peerDependencies": { + "@angular/compiler-cli": "^16.0.0", + "typescript": ">=4.9.3 <5.2", + "webpack": "^5.54.0" + } + }, + "node_modules/@nodelib/fs.scandir": { + "version": "2.1.5", + "license": "MIT", + "dependencies": { + "@nodelib/fs.stat": "2.0.5", + "run-parallel": "^1.1.9" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.stat": { + "version": "2.0.5", + "license": "MIT", + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.walk": { + "version": "1.2.8", + "license": "MIT", + "dependencies": { + "@nodelib/fs.scandir": "2.1.5", + "fastq": "^1.6.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@npmcli/fs": { + "version": "3.1.0", + "dev": true, + "license": "ISC", + "dependencies": { + "semver": "^7.3.5" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/@npmcli/git": { + "version": "4.1.0", + "dev": true, + "license": "ISC", + "dependencies": { + "@npmcli/promise-spawn": "^6.0.0", + "lru-cache": "^7.4.4", + "npm-pick-manifest": "^8.0.0", + "proc-log": "^3.0.0", + "promise-inflight": "^1.0.1", + "promise-retry": "^2.0.1", + "semver": "^7.3.5", + "which": "^3.0.0" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/@npmcli/git/node_modules/lru-cache": { + "version": "7.18.3", + "dev": true, + "license": "ISC", + "engines": { + "node": ">=12" + } + }, + "node_modules/@npmcli/git/node_modules/which": { + "version": "3.0.1", + "dev": true, + "license": "ISC", + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/which.js" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/@npmcli/installed-package-contents": { + "version": "2.0.2", + "dev": true, + "license": "ISC", + "dependencies": { + "npm-bundled": "^3.0.0", + "npm-normalize-package-bin": "^3.0.0" + }, + "bin": { + "installed-package-contents": "lib/index.js" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/@npmcli/node-gyp": { + "version": "3.0.0", + "dev": true, + "license": "ISC", + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/@npmcli/promise-spawn": { + "version": "6.0.2", + "dev": true, + "license": "ISC", + "dependencies": { + "which": "^3.0.0" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/@npmcli/promise-spawn/node_modules/which": { + "version": "3.0.1", + "dev": true, + "license": "ISC", + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/which.js" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/@npmcli/run-script": { + "version": "6.0.2", + "dev": true, + "license": "ISC", + "dependencies": { + "@npmcli/node-gyp": "^3.0.0", + "@npmcli/promise-spawn": "^6.0.0", + "node-gyp": "^9.0.0", + "read-package-json-fast": "^3.0.0", + "which": "^3.0.0" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/@npmcli/run-script/node_modules/which": { + "version": "3.0.1", + "dev": true, + "license": "ISC", + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/which.js" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/@nrwl/angular": { + "version": "16.7.4", + "license": "MIT", + "dependencies": { + "@nx/angular": "16.7.4", + "tslib": "^2.3.0" + } + }, + "node_modules/@nrwl/cypress": { + "version": "16.7.4", + "license": "MIT", + "dependencies": { + "@nx/cypress": "16.7.4" + } + }, + "node_modules/@nrwl/devkit": { + "version": "16.7.4", + "license": "MIT", + "dependencies": { + "@nx/devkit": "16.7.4" + } + }, + "node_modules/@nrwl/eslint-plugin-nx": { + "version": "16.7.4", + "dev": true, + "license": "MIT", + "dependencies": { + "@nx/eslint-plugin": "16.7.4" + } + }, + "node_modules/@nrwl/jest": { + "version": "16.7.4", + "license": "MIT", + "dependencies": { + "@nx/jest": "16.7.4" + } + }, + "node_modules/@nrwl/js": { + "version": "16.7.4", + "license": "MIT", + "dependencies": { + "@nx/js": "16.7.4" + } + }, + "node_modules/@nrwl/linter": { + "version": "16.7.4", + "license": "MIT", + "dependencies": { + "@nx/linter": "16.7.4" + } + }, + "node_modules/@nrwl/nx-cloud": { + "version": "16.4.0", + "resolved": "https://registry.npmjs.org/@nrwl/nx-cloud/-/nx-cloud-16.4.0.tgz", + "integrity": "sha512-QitrYK6z9ceagetBlgLMZnC0T85k2JTk+oK0MxZ5p/woclqeYN7SiGNZgMzDq8TjJwt8Fm/MDnsSo3xtufmLBg==", + "dev": true, + "dependencies": { + "nx-cloud": "16.4.0" + } + }, + "node_modules/@nrwl/tao": { + "version": "16.7.4", + "license": "MIT", + "dependencies": { + "nx": "16.7.4", + "tslib": "^2.3.0" + }, + "bin": { + "tao": "index.js" + } + }, + "node_modules/@nrwl/webpack": { + "version": "16.7.4", + "license": "MIT", + "dependencies": { + "@nx/webpack": "16.7.4" + } + }, + "node_modules/@nrwl/workspace": { + "version": "16.7.4", + "license": "MIT", + "dependencies": { + "@nx/workspace": "16.7.4" + } + }, + "node_modules/@nx/angular": { + "version": "16.7.4", + "license": "MIT", + "dependencies": { + "@nrwl/angular": "16.7.4", + "@nx/cypress": "16.7.4", + "@nx/devkit": "16.7.4", + "@nx/jest": "16.7.4", + "@nx/js": "16.7.4", + "@nx/linter": "16.7.4", + "@nx/webpack": "16.7.4", + "@nx/workspace": "16.7.4", + "@phenomnomnominal/tsquery": "~5.0.1", + "@typescript-eslint/type-utils": "^5.36.1", + "chalk": "^4.1.0", + "enquirer": "^2.3.6", + "find-cache-dir": "^3.3.2", + "ignore": "^5.0.4", + "magic-string": "~0.30.2", + "minimatch": "3.0.5", + "semver": "7.5.3", + "tslib": "^2.3.0", + "webpack": "^5.80.0", + "webpack-merge": "^5.8.0" + }, + "peerDependencies": { + "@angular-devkit/build-angular": ">= 14.0.0 < 17.0.0", + "@angular-devkit/core": ">= 14.0.0 < 17.0.0", + "@angular-devkit/schematics": ">= 14.0.0 < 17.0.0", + "@nguniversal/builders": ">= 14.0.0 < 17.0.0", + "@schematics/angular": ">= 14.0.0 < 17.0.0", + "esbuild": "^0.17.5", + "rxjs": "^6.5.3 || ^7.5.0" + }, + "peerDependenciesMeta": { + "@nguniversal/builders": { + "optional": true + }, + "esbuild": { + "optional": true + } + } + }, + "node_modules/@nx/cypress": { + "version": "16.7.4", + "license": "MIT", + "dependencies": { + "@nrwl/cypress": "16.7.4", + "@nx/devkit": "16.7.4", + "@nx/js": "16.7.4", + "@nx/linter": "16.7.4", + "@phenomnomnominal/tsquery": "~5.0.1", + "detect-port": "^1.5.1", + "dotenv": "~16.3.1", + "semver": "7.5.3", + "tslib": "^2.3.0" + }, + "peerDependencies": { + "cypress": ">= 3 < 13" + }, + "peerDependenciesMeta": { + "cypress": { + "optional": true + } + } + }, + "node_modules/@nx/devkit": { + "version": "16.7.4", + "license": "MIT", + "dependencies": { + "@nrwl/devkit": "16.7.4", + "ejs": "^3.1.7", + "enquirer": "~2.3.6", + "ignore": "^5.0.4", + "semver": "7.5.3", + "tmp": "~0.2.1", + "tslib": "^2.3.0" + }, + "peerDependencies": { + "nx": ">= 15 <= 17" + } + }, + "node_modules/@nx/devkit/node_modules/enquirer": { + "version": "2.3.6", + "license": "MIT", + "dependencies": { + "ansi-colors": "^4.1.1" + }, + "engines": { + "node": ">=8.6" + } + }, + "node_modules/@nx/eslint-plugin": { + "version": "16.7.4", + "dev": true, + "license": "MIT", + "dependencies": { + "@nrwl/eslint-plugin-nx": "16.7.4", + "@nx/devkit": "16.7.4", + "@nx/js": "16.7.4", + "@typescript-eslint/type-utils": "^5.60.1", + "@typescript-eslint/utils": "^5.60.1", + "chalk": "^4.1.0", + "confusing-browser-globals": "^1.0.9", + "jsonc-eslint-parser": "^2.1.0", + "semver": "7.5.3", + "tslib": "^2.3.0" + }, + "peerDependencies": { + "@typescript-eslint/parser": "^5.60.1", + "eslint-config-prettier": "^8.1.0" + }, + "peerDependenciesMeta": { + "eslint-config-prettier": { + "optional": true + } + } + }, + "node_modules/@nx/jest": { + "version": "16.7.4", + "license": "MIT", + "dependencies": { + "@jest/reporters": "^29.4.1", + "@jest/test-result": "^29.4.1", + "@nrwl/jest": "16.7.4", + "@nx/devkit": "16.7.4", + "@nx/js": "16.7.4", + "@phenomnomnominal/tsquery": "~5.0.1", + "chalk": "^4.1.0", + "dotenv": "~16.3.1", + "identity-obj-proxy": "3.0.0", + "jest-config": "^29.4.1", + "jest-resolve": "^29.4.1", + "jest-util": "^29.4.1", + "resolve.exports": "1.1.0", + "tslib": "^2.3.0" + } + }, + "node_modules/@nx/js": { + "version": "16.7.4", + "license": "MIT", + "dependencies": { + "@babel/core": "^7.22.9", + "@babel/plugin-proposal-class-properties": "^7.18.6", + "@babel/plugin-proposal-decorators": "^7.22.7", + "@babel/plugin-transform-runtime": "^7.22.9", + "@babel/preset-env": "^7.22.9", + "@babel/preset-typescript": "^7.22.5", + "@babel/runtime": "^7.22.6", + "@nrwl/js": "16.7.4", + "@nx/devkit": "16.7.4", + "@nx/workspace": "16.7.4", + "@phenomnomnominal/tsquery": "~5.0.1", + "babel-plugin-const-enum": "^1.0.1", + "babel-plugin-macros": "^2.8.0", + "babel-plugin-transform-typescript-metadata": "^0.3.1", + "chalk": "^4.1.0", + "detect-port": "^1.5.1", + "fast-glob": "3.2.7", + "fs-extra": "^11.1.0", + "ignore": "^5.0.4", + "js-tokens": "^4.0.0", + "minimatch": "3.0.5", + "semver": "7.5.3", + "source-map-support": "0.5.19", + "ts-node": "10.9.1", + "tsconfig-paths": "^4.1.2", + "tslib": "^2.3.0" + }, + "peerDependencies": { + "verdaccio": "^5.0.4" + }, + "peerDependenciesMeta": { + "verdaccio": { + "optional": true + } + } + }, + "node_modules/@nx/js/node_modules/babel-plugin-macros": { + "version": "2.8.0", + "license": "MIT", + "dependencies": { + "@babel/runtime": "^7.7.2", + "cosmiconfig": "^6.0.0", + "resolve": "^1.12.0" + } + }, + "node_modules/@nx/js/node_modules/cosmiconfig": { + "version": "6.0.0", + "license": "MIT", + "dependencies": { + "@types/parse-json": "^4.0.0", + "import-fresh": "^3.1.0", + "parse-json": "^5.0.0", + "path-type": "^4.0.0", + "yaml": "^1.7.2" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@nx/linter": { + "version": "16.7.4", + "license": "MIT", + "dependencies": { + "@nrwl/linter": "16.7.4", + "@nx/devkit": "16.7.4", + "@nx/js": "16.7.4", + "@phenomnomnominal/tsquery": "~5.0.1", + "tmp": "~0.2.1", + "tslib": "^2.3.0" + }, + "peerDependencies": { + "eslint": "^8.0.0" + }, + "peerDependenciesMeta": { + "eslint": { + "optional": true + } + } + }, + "node_modules/@nx/nx-linux-x64-gnu": { + "version": "16.7.4", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@nx/nx-linux-x64-musl": { + "version": "16.7.4", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@nx/webpack": { + "version": "16.7.4", + "license": "MIT", + "dependencies": { + "@babel/core": "^7.22.9", + "@nrwl/webpack": "16.7.4", + "@nx/devkit": "16.7.4", + "@nx/js": "16.7.4", + "autoprefixer": "^10.4.9", + "babel-loader": "^9.1.2", + "browserslist": "^4.21.4", + "chalk": "^4.1.0", + "chokidar": "^3.5.1", + "copy-webpack-plugin": "^10.2.4", + "css-loader": "^6.4.0", + "css-minimizer-webpack-plugin": "^5.0.0", + "dotenv": "~16.3.1", + "fork-ts-checker-webpack-plugin": "7.2.13", + "ignore": "^5.0.4", + "less": "4.1.3", + "less-loader": "11.1.0", + "license-webpack-plugin": "^4.0.2", + "loader-utils": "^2.0.3", + "mini-css-extract-plugin": "~2.4.7", + "parse5": "4.0.0", + "postcss": "^8.4.14", + "postcss-import": "~14.1.0", + "postcss-loader": "^6.1.1", + "rxjs": "^7.8.0", + "sass": "^1.42.1", + "sass-loader": "^12.2.0", + "source-map-loader": "^3.0.0", + "style-loader": "^3.3.0", + "stylus": "^0.59.0", + "stylus-loader": "^7.1.0", + "terser-webpack-plugin": "^5.3.3", + "ts-loader": "^9.3.1", + "tsconfig-paths-webpack-plugin": "4.0.0", + "tslib": "^2.3.0", + "webpack": "^5.80.0", + "webpack-dev-server": "^4.9.3", + "webpack-node-externals": "^3.0.0", + "webpack-subresource-integrity": "^5.1.0" + } + }, + "node_modules/@nx/workspace": { + "version": "16.7.4", + "license": "MIT", + "dependencies": { + "@nrwl/workspace": "16.7.4", + "@nx/devkit": "16.7.4", + "chalk": "^4.1.0", + "ignore": "^5.0.4", + "nx": "16.7.4", + "rxjs": "^7.8.0", + "tslib": "^2.3.0", + "yargs-parser": "21.1.1" + } + }, + "node_modules/@parcel/watcher": { + "version": "2.0.4", + "hasInstallScript": true, + "license": "MIT", + "dependencies": { + "node-addon-api": "^3.2.1", + "node-gyp-build": "^4.3.0" + }, + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@phenomnomnominal/tsquery": { + "version": "5.0.1", + "license": "MIT", + "dependencies": { + "esquery": "^1.4.0" + }, + "peerDependencies": { + "typescript": "^3 || ^4 || ^5" + } + }, + "node_modules/@pkgjs/parseargs": { + "version": "0.11.0", + "dev": true, + "license": "MIT", + "optional": true, + "engines": { + "node": ">=14" + } + }, + "node_modules/@schematics/angular": { + "version": "16.2.0", + "license": "MIT", + "dependencies": { + "@angular-devkit/core": "16.2.0", + "@angular-devkit/schematics": "16.2.0", + "jsonc-parser": "3.2.0" + }, + "engines": { + "node": "^16.14.0 || >=18.10.0", + "npm": "^6.11.0 || ^7.5.6 || >=8.0.0", + "yarn": ">= 1.13.0" + } + }, + "node_modules/@sigstore/bundle": { + "version": "1.1.0", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@sigstore/protobuf-specs": "^0.2.0" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/@sigstore/protobuf-specs": { + "version": "0.2.1", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/@sigstore/sign": { + "version": "1.0.0", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@sigstore/bundle": "^1.1.0", + "@sigstore/protobuf-specs": "^0.2.0", + "make-fetch-happen": "^11.0.1" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/@sigstore/tuf": { + "version": "1.0.3", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@sigstore/protobuf-specs": "^0.2.0", + "tuf-js": "^1.1.7" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/@sinclair/typebox": { + "version": "0.27.8", + "license": "MIT" + }, + "node_modules/@sinonjs/commons": { + "version": "3.0.0", + "license": "BSD-3-Clause", + "dependencies": { + "type-detect": "4.0.8" + } + }, + "node_modules/@sinonjs/fake-timers": { + "version": "10.3.0", + "license": "BSD-3-Clause", + "dependencies": { + "@sinonjs/commons": "^3.0.0" + } + }, + "node_modules/@tootallnate/once": { + "version": "1.1.2", + "license": "MIT", + "engines": { + "node": ">= 6" + } + }, + "node_modules/@trysound/sax": { + "version": "0.2.0", + "license": "ISC", + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/@tsconfig/node10": { + "version": "1.0.9", + "license": "MIT" + }, + "node_modules/@tsconfig/node12": { + "version": "1.0.11", + "license": "MIT" + }, + "node_modules/@tsconfig/node14": { + "version": "1.0.3", + "license": "MIT" + }, + "node_modules/@tsconfig/node16": { + "version": "1.0.4", + "license": "MIT" + }, + "node_modules/@tufjs/canonical-json": { + "version": "1.0.0", + "dev": true, + "license": "MIT", + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/@tufjs/models": { + "version": "1.0.4", + "dev": true, + "license": "MIT", + "dependencies": { + "@tufjs/canonical-json": "1.0.0", + "minimatch": "^9.0.0" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/@tufjs/models/node_modules/brace-expansion": { + "version": "2.0.1", + "dev": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/@tufjs/models/node_modules/minimatch": { + "version": "9.0.3", + "dev": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/@types/babel__core": { + "version": "7.20.1", + "license": "MIT", + "dependencies": { + "@babel/parser": "^7.20.7", + "@babel/types": "^7.20.7", + "@types/babel__generator": "*", + "@types/babel__template": "*", + "@types/babel__traverse": "*" + } + }, + "node_modules/@types/babel__generator": { + "version": "7.6.4", + "license": "MIT", + "dependencies": { + "@babel/types": "^7.0.0" + } + }, + "node_modules/@types/babel__template": { + "version": "7.4.1", + "license": "MIT", + "dependencies": { + "@babel/parser": "^7.1.0", + "@babel/types": "^7.0.0" + } + }, + "node_modules/@types/babel__traverse": { + "version": "7.20.1", + "license": "MIT", + "dependencies": { + "@babel/types": "^7.20.7" + } + }, + "node_modules/@types/body-parser": { + "version": "1.19.2", + "license": "MIT", + "dependencies": { + "@types/connect": "*", + "@types/node": "*" + } + }, + "node_modules/@types/bonjour": { + "version": "3.5.10", + "license": "MIT", + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/connect": { + "version": "3.4.35", + "license": "MIT", + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/connect-history-api-fallback": { + "version": "1.5.0", + "license": "MIT", + "dependencies": { + "@types/express-serve-static-core": "*", + "@types/node": "*" + } + }, + "node_modules/@types/eslint": { + "version": "8.44.2", + "license": "MIT", + "dependencies": { + "@types/estree": "*", + "@types/json-schema": "*" + } + }, + "node_modules/@types/eslint-scope": { + "version": "3.7.4", + "license": "MIT", + "dependencies": { + "@types/eslint": "*", + "@types/estree": "*" + } + }, + "node_modules/@types/estree": { + "version": "1.0.1", + "license": "MIT" + }, + "node_modules/@types/express": { + "version": "4.17.17", + "license": "MIT", + "dependencies": { + "@types/body-parser": "*", + "@types/express-serve-static-core": "^4.17.33", + "@types/qs": "*", + "@types/serve-static": "*" + } + }, + "node_modules/@types/express-serve-static-core": { + "version": "4.17.36", + "license": "MIT", + "dependencies": { + "@types/node": "*", + "@types/qs": "*", + "@types/range-parser": "*", + "@types/send": "*" + } + }, + "node_modules/@types/graceful-fs": { + "version": "4.1.6", + "license": "MIT", + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/http-errors": { + "version": "2.0.1", + "license": "MIT" + }, + "node_modules/@types/http-proxy": { + "version": "1.17.11", + "license": "MIT", + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/istanbul-lib-coverage": { + "version": "2.0.4", + "license": "MIT" + }, + "node_modules/@types/istanbul-lib-report": { + "version": "3.0.0", + "license": "MIT", + "dependencies": { + "@types/istanbul-lib-coverage": "*" + } + }, + "node_modules/@types/istanbul-reports": { + "version": "3.0.1", + "license": "MIT", + "dependencies": { + "@types/istanbul-lib-report": "*" + } + }, + "node_modules/@types/jest": { + "version": "29.5.4", + "dev": true, + "license": "MIT", + "dependencies": { + "expect": "^29.0.0", + "pretty-format": "^29.0.0" + } + }, + "node_modules/@types/jsdom": { + "version": "20.0.1", + "devOptional": true, + "license": "MIT", + "dependencies": { + "@types/node": "*", + "@types/tough-cookie": "*", + "parse5": "^7.0.0" + } + }, + "node_modules/@types/jsdom/node_modules/parse5": { + "version": "7.1.2", + "devOptional": true, + "license": "MIT", + "dependencies": { + "entities": "^4.4.0" + }, + "funding": { + "url": "https://github.com/inikulin/parse5?sponsor=1" + } + }, + "node_modules/@types/json-schema": { + "version": "7.0.12", + "license": "MIT" + }, + "node_modules/@types/mime": { + "version": "1.3.2", + "license": "MIT" + }, + "node_modules/@types/node": { + "version": "16.11.7", + "license": "MIT" + }, + "node_modules/@types/parse-json": { + "version": "4.0.0", + "license": "MIT" + }, + "node_modules/@types/qs": { + "version": "6.9.7", + "license": "MIT" + }, + "node_modules/@types/range-parser": { + "version": "1.2.4", + "license": "MIT" + }, + "node_modules/@types/retry": { + "version": "0.12.0", + "license": "MIT" + }, + "node_modules/@types/semver": { + "version": "7.5.0", + "license": "MIT" + }, + "node_modules/@types/send": { + "version": "0.17.1", + "license": "MIT", + "dependencies": { + "@types/mime": "^1", + "@types/node": "*" + } + }, + "node_modules/@types/serve-index": { + "version": "1.9.1", + "license": "MIT", + "dependencies": { + "@types/express": "*" + } + }, + "node_modules/@types/serve-static": { + "version": "1.15.2", + "license": "MIT", + "dependencies": { + "@types/http-errors": "*", + "@types/mime": "*", + "@types/node": "*" + } + }, + "node_modules/@types/sockjs": { + "version": "0.3.33", + "license": "MIT", + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/stack-utils": { + "version": "2.0.1", + "license": "MIT" + }, + "node_modules/@types/tough-cookie": { + "version": "4.0.2", + "devOptional": true, + "license": "MIT" + }, + "node_modules/@types/ws": { + "version": "8.5.5", + "license": "MIT", + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/yargs": { + "version": "17.0.24", + "license": "MIT", + "dependencies": { + "@types/yargs-parser": "*" + } + }, + "node_modules/@types/yargs-parser": { + "version": "21.0.0", + "license": "MIT" + }, + "node_modules/@typescript-eslint/eslint-plugin": { + "version": "5.62.0", + "dev": true, + "license": "MIT", + "dependencies": { + "@eslint-community/regexpp": "^4.4.0", + "@typescript-eslint/scope-manager": "5.62.0", + "@typescript-eslint/type-utils": "5.62.0", + "@typescript-eslint/utils": "5.62.0", + "debug": "^4.3.4", + "graphemer": "^1.4.0", + "ignore": "^5.2.0", + "natural-compare-lite": "^1.4.0", + "semver": "^7.3.7", + "tsutils": "^3.21.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "@typescript-eslint/parser": "^5.0.0", + "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@typescript-eslint/parser": { + "version": "5.62.0", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "@typescript-eslint/scope-manager": "5.62.0", + "@typescript-eslint/types": "5.62.0", + "@typescript-eslint/typescript-estree": "5.62.0", + "debug": "^4.3.4" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@typescript-eslint/scope-manager": { + "version": "5.62.0", + "license": "MIT", + "dependencies": { + "@typescript-eslint/types": "5.62.0", + "@typescript-eslint/visitor-keys": "5.62.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/type-utils": { + "version": "5.62.0", + "license": "MIT", + "dependencies": { + "@typescript-eslint/typescript-estree": "5.62.0", + "@typescript-eslint/utils": "5.62.0", + "debug": "^4.3.4", + "tsutils": "^3.21.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "*" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@typescript-eslint/types": { + "version": "5.62.0", + "license": "MIT", + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/typescript-estree": { + "version": "5.62.0", + "license": "BSD-2-Clause", + "dependencies": { + "@typescript-eslint/types": "5.62.0", + "@typescript-eslint/visitor-keys": "5.62.0", + "debug": "^4.3.4", + "globby": "^11.1.0", + "is-glob": "^4.0.3", + "semver": "^7.3.7", + "tsutils": "^3.21.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@typescript-eslint/utils": { + "version": "5.62.0", + "license": "MIT", + "dependencies": { + "@eslint-community/eslint-utils": "^4.2.0", + "@types/json-schema": "^7.0.9", + "@types/semver": "^7.3.12", + "@typescript-eslint/scope-manager": "5.62.0", + "@typescript-eslint/types": "5.62.0", + "@typescript-eslint/typescript-estree": "5.62.0", + "eslint-scope": "^5.1.1", + "semver": "^7.3.7" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" + } + }, + "node_modules/@typescript-eslint/visitor-keys": { + "version": "5.62.0", + "license": "MIT", + "dependencies": { + "@typescript-eslint/types": "5.62.0", + "eslint-visitor-keys": "^3.3.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@vitejs/plugin-basic-ssl": { + "version": "1.0.1", + "license": "MIT", + "engines": { + "node": ">=14.6.0" + }, + "peerDependencies": { + "vite": "^3.0.0 || ^4.0.0" + } + }, + "node_modules/@webassemblyjs/ast": { + "version": "1.11.6", + "license": "MIT", + "dependencies": { + "@webassemblyjs/helper-numbers": "1.11.6", + "@webassemblyjs/helper-wasm-bytecode": "1.11.6" + } + }, + "node_modules/@webassemblyjs/floating-point-hex-parser": { + "version": "1.11.6", + "license": "MIT" + }, + "node_modules/@webassemblyjs/helper-api-error": { + "version": "1.11.6", + "license": "MIT" + }, + "node_modules/@webassemblyjs/helper-buffer": { + "version": "1.11.6", + "license": "MIT" + }, + "node_modules/@webassemblyjs/helper-numbers": { + "version": "1.11.6", + "license": "MIT", + "dependencies": { + "@webassemblyjs/floating-point-hex-parser": "1.11.6", + "@webassemblyjs/helper-api-error": "1.11.6", + "@xtuc/long": "4.2.2" + } + }, + "node_modules/@webassemblyjs/helper-wasm-bytecode": { + "version": "1.11.6", + "license": "MIT" + }, + "node_modules/@webassemblyjs/helper-wasm-section": { + "version": "1.11.6", + "license": "MIT", + "dependencies": { + "@webassemblyjs/ast": "1.11.6", + "@webassemblyjs/helper-buffer": "1.11.6", + "@webassemblyjs/helper-wasm-bytecode": "1.11.6", + "@webassemblyjs/wasm-gen": "1.11.6" + } + }, + "node_modules/@webassemblyjs/ieee754": { + "version": "1.11.6", + "license": "MIT", + "dependencies": { + "@xtuc/ieee754": "^1.2.0" + } + }, + "node_modules/@webassemblyjs/leb128": { + "version": "1.11.6", + "license": "Apache-2.0", + "dependencies": { + "@xtuc/long": "4.2.2" + } + }, + "node_modules/@webassemblyjs/utf8": { + "version": "1.11.6", + "license": "MIT" + }, + "node_modules/@webassemblyjs/wasm-edit": { + "version": "1.11.6", + "license": "MIT", + "dependencies": { + "@webassemblyjs/ast": "1.11.6", + "@webassemblyjs/helper-buffer": "1.11.6", + "@webassemblyjs/helper-wasm-bytecode": "1.11.6", + "@webassemblyjs/helper-wasm-section": "1.11.6", + "@webassemblyjs/wasm-gen": "1.11.6", + "@webassemblyjs/wasm-opt": "1.11.6", + "@webassemblyjs/wasm-parser": "1.11.6", + "@webassemblyjs/wast-printer": "1.11.6" + } + }, + "node_modules/@webassemblyjs/wasm-gen": { + "version": "1.11.6", + "license": "MIT", + "dependencies": { + "@webassemblyjs/ast": "1.11.6", + "@webassemblyjs/helper-wasm-bytecode": "1.11.6", + "@webassemblyjs/ieee754": "1.11.6", + "@webassemblyjs/leb128": "1.11.6", + "@webassemblyjs/utf8": "1.11.6" + } + }, + "node_modules/@webassemblyjs/wasm-opt": { + "version": "1.11.6", + "license": "MIT", + "dependencies": { + "@webassemblyjs/ast": "1.11.6", + "@webassemblyjs/helper-buffer": "1.11.6", + "@webassemblyjs/wasm-gen": "1.11.6", + "@webassemblyjs/wasm-parser": "1.11.6" + } + }, + "node_modules/@webassemblyjs/wasm-parser": { + "version": "1.11.6", + "license": "MIT", + "dependencies": { + "@webassemblyjs/ast": "1.11.6", + "@webassemblyjs/helper-api-error": "1.11.6", + "@webassemblyjs/helper-wasm-bytecode": "1.11.6", + "@webassemblyjs/ieee754": "1.11.6", + "@webassemblyjs/leb128": "1.11.6", + "@webassemblyjs/utf8": "1.11.6" + } + }, + "node_modules/@webassemblyjs/wast-printer": { + "version": "1.11.6", + "license": "MIT", + "dependencies": { + "@webassemblyjs/ast": "1.11.6", + "@xtuc/long": "4.2.2" + } + }, + "node_modules/@wessberg/ts-evaluator": { + "version": "0.0.27", + "license": "MIT", + "dependencies": { + "chalk": "^4.1.0", + "jsdom": "^16.4.0", + "object-path": "^0.11.5", + "tslib": "^2.0.3" + }, + "engines": { + "node": ">=10.1.0" + }, + "funding": { + "type": "github", + "url": "https://github.com/wessberg/ts-evaluator?sponsor=1" + }, + "peerDependencies": { + "typescript": ">=3.2.x || >= 4.x" + } + }, + "node_modules/@xtuc/ieee754": { + "version": "1.2.0", + "license": "BSD-3-Clause" + }, + "node_modules/@xtuc/long": { + "version": "4.2.2", + "license": "Apache-2.0" + }, + "node_modules/@yarnpkg/lockfile": { + "version": "1.1.0", + "license": "BSD-2-Clause" + }, + "node_modules/@yarnpkg/parsers": { + "version": "3.0.0-rc.46", + "license": "BSD-2-Clause", + "dependencies": { + "js-yaml": "^3.10.0", + "tslib": "^2.4.0" + }, + "engines": { + "node": ">=14.15.0" + } + }, + "node_modules/@zkochan/js-yaml": { + "version": "0.0.6", + "license": "MIT", + "dependencies": { + "argparse": "^2.0.1" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "node_modules/@zkochan/js-yaml/node_modules/argparse": { + "version": "2.0.1", + "license": "Python-2.0" + }, + "node_modules/abab": { + "version": "2.0.6", + "license": "BSD-3-Clause" + }, + "node_modules/abbrev": { + "version": "1.1.1", + "dev": true, + "license": "ISC" + }, + "node_modules/accepts": { + "version": "1.3.8", + "license": "MIT", + "dependencies": { + "mime-types": "~2.1.34", + "negotiator": "0.6.3" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/acorn": { + "version": "8.10.0", + "license": "MIT", + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/acorn-globals": { + "version": "6.0.0", + "license": "MIT", + "dependencies": { + "acorn": "^7.1.1", + "acorn-walk": "^7.1.1" + } + }, + "node_modules/acorn-globals/node_modules/acorn": { + "version": "7.4.1", + "license": "MIT", + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/acorn-globals/node_modules/acorn-walk": { + "version": "7.2.0", + "license": "MIT", + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/acorn-import-assertions": { + "version": "1.9.0", + "license": "MIT", + "peerDependencies": { + "acorn": "^8" + } + }, + "node_modules/acorn-jsx": { + "version": "5.3.2", + "license": "MIT", + "peerDependencies": { + "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" + } + }, + "node_modules/acorn-walk": { + "version": "8.2.0", + "license": "MIT", + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/address": { + "version": "1.2.2", + "license": "MIT", + "engines": { + "node": ">= 10.0.0" + } + }, + "node_modules/adjust-sourcemap-loader": { + "version": "4.0.0", + "license": "MIT", + "dependencies": { + "loader-utils": "^2.0.0", + "regex-parser": "^2.2.11" + }, + "engines": { + "node": ">=8.9" + } + }, + "node_modules/agent-base": { + "version": "6.0.2", + "license": "MIT", + "dependencies": { + "debug": "4" + }, + "engines": { + "node": ">= 6.0.0" + } + }, + "node_modules/agentkeepalive": { + "version": "4.5.0", + "dev": true, + "license": "MIT", + "dependencies": { + "humanize-ms": "^1.2.1" + }, + "engines": { + "node": ">= 8.0.0" + } + }, + "node_modules/aggregate-error": { + "version": "3.1.0", + "dev": true, + "license": "MIT", + "dependencies": { + "clean-stack": "^2.0.0", + "indent-string": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/ajv": { + "version": "8.12.0", + "license": "MIT", + "dependencies": { + "fast-deep-equal": "^3.1.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/ajv-formats": { + "version": "2.1.1", + "license": "MIT", + "dependencies": { + "ajv": "^8.0.0" + }, + "peerDependencies": { + "ajv": "^8.0.0" + }, + "peerDependenciesMeta": { + "ajv": { + "optional": true + } + } + }, + "node_modules/ajv-keywords": { + "version": "5.1.0", + "license": "MIT", + "dependencies": { + "fast-deep-equal": "^3.1.3" + }, + "peerDependencies": { + "ajv": "^8.8.2" + } + }, + "node_modules/ansi-colors": { + "version": "4.1.3", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/ansi-escapes": { + "version": "4.3.2", + "license": "MIT", + "dependencies": { + "type-fest": "^0.21.3" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/ansi-html-community": { + "version": "0.0.8", + "engines": [ + "node >= 0.8.0" + ], + "license": "Apache-2.0", + "bin": { + "ansi-html": "bin/ansi-html" + } + }, + "node_modules/ansi-regex": { + "version": "5.0.1", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/ansi-styles": { + "version": "4.3.0", + "license": "MIT", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/anymatch": { + "version": "3.1.3", + "license": "ISC", + "dependencies": { + "normalize-path": "^3.0.0", + "picomatch": "^2.0.4" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/aproba": { + "version": "2.0.0", + "dev": true, + "license": "ISC" + }, + "node_modules/are-we-there-yet": { + "version": "3.0.1", + "dev": true, + "license": "ISC", + "dependencies": { + "delegates": "^1.0.0", + "readable-stream": "^3.6.0" + }, + "engines": { + "node": "^12.13.0 || ^14.15.0 || >=16.0.0" + } + }, + "node_modules/arg": { + "version": "4.1.3", + "license": "MIT" + }, + "node_modules/argparse": { + "version": "1.0.10", + "license": "MIT", + "dependencies": { + "sprintf-js": "~1.0.2" + } + }, + "node_modules/aria-query": { + "version": "5.1.3", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "deep-equal": "^2.0.5" + } + }, + "node_modules/array-buffer-byte-length": { + "version": "1.0.0", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.2", + "is-array-buffer": "^3.0.1" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/array-flatten": { + "version": "2.1.2", + "license": "MIT" + }, + "node_modules/array-union": { + "version": "2.1.0", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/async": { + "version": "3.2.4", + "license": "MIT" + }, + "node_modules/asynckit": { + "version": "0.4.0", + "license": "MIT" + }, + "node_modules/autoprefixer": { + "version": "10.4.15", + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/autoprefixer" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "browserslist": "^4.21.10", + "caniuse-lite": "^1.0.30001520", + "fraction.js": "^4.2.0", + "normalize-range": "^0.1.2", + "picocolors": "^1.0.0", + "postcss-value-parser": "^4.2.0" + }, + "bin": { + "autoprefixer": "bin/autoprefixer" + }, + "engines": { + "node": "^10 || ^12 || >=14" + }, + "peerDependencies": { + "postcss": "^8.1.0" + } + }, + "node_modules/available-typed-arrays": { + "version": "1.0.5", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/axios": { + "version": "1.4.0", + "license": "MIT", + "dependencies": { + "follow-redirects": "^1.15.0", + "form-data": "^4.0.0", + "proxy-from-env": "^1.1.0" + } + }, + "node_modules/axobject-query": { + "version": "3.1.1", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "deep-equal": "^2.0.5" + } + }, + "node_modules/babel-jest": { + "version": "29.6.4", + "license": "MIT", + "dependencies": { + "@jest/transform": "^29.6.4", + "@types/babel__core": "^7.1.14", + "babel-plugin-istanbul": "^6.1.1", + "babel-preset-jest": "^29.6.3", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.9", + "slash": "^3.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "@babel/core": "^7.8.0" + } + }, + "node_modules/babel-loader": { + "version": "9.1.3", + "license": "MIT", + "dependencies": { + "find-cache-dir": "^4.0.0", + "schema-utils": "^4.0.0" + }, + "engines": { + "node": ">= 14.15.0" + }, + "peerDependencies": { + "@babel/core": "^7.12.0", + "webpack": ">=5" + } + }, + "node_modules/babel-loader/node_modules/find-cache-dir": { + "version": "4.0.0", + "license": "MIT", + "dependencies": { + "common-path-prefix": "^3.0.0", + "pkg-dir": "^7.0.0" + }, + "engines": { + "node": ">=14.16" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/babel-loader/node_modules/find-up": { + "version": "6.3.0", + "license": "MIT", + "dependencies": { + "locate-path": "^7.1.0", + "path-exists": "^5.0.0" + }, + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/babel-loader/node_modules/locate-path": { + "version": "7.2.0", + "license": "MIT", + "dependencies": { + "p-locate": "^6.0.0" + }, + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/babel-loader/node_modules/p-limit": { + "version": "4.0.0", + "license": "MIT", + "dependencies": { + "yocto-queue": "^1.0.0" + }, + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/babel-loader/node_modules/p-locate": { + "version": "6.0.0", + "license": "MIT", + "dependencies": { + "p-limit": "^4.0.0" + }, + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/babel-loader/node_modules/path-exists": { + "version": "5.0.0", + "license": "MIT", + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + } + }, + "node_modules/babel-loader/node_modules/pkg-dir": { + "version": "7.0.0", + "license": "MIT", + "dependencies": { + "find-up": "^6.3.0" + }, + "engines": { + "node": ">=14.16" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/babel-loader/node_modules/yocto-queue": { + "version": "1.0.0", + "license": "MIT", + "engines": { + "node": ">=12.20" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/babel-plugin-const-enum": { + "version": "1.2.0", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.0.0", + "@babel/plugin-syntax-typescript": "^7.3.3", + "@babel/traverse": "^7.16.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/babel-plugin-istanbul": { + "version": "6.1.1", + "license": "BSD-3-Clause", + "dependencies": { + "@babel/helper-plugin-utils": "^7.0.0", + "@istanbuljs/load-nyc-config": "^1.0.0", + "@istanbuljs/schema": "^0.1.2", + "istanbul-lib-instrument": "^5.0.4", + "test-exclude": "^6.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/babel-plugin-istanbul/node_modules/istanbul-lib-instrument": { + "version": "5.2.1", + "license": "BSD-3-Clause", + "dependencies": { + "@babel/core": "^7.12.3", + "@babel/parser": "^7.14.7", + "@istanbuljs/schema": "^0.1.2", + "istanbul-lib-coverage": "^3.2.0", + "semver": "^6.3.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/babel-plugin-istanbul/node_modules/semver": { + "version": "6.3.1", + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/babel-plugin-jest-hoist": { + "version": "29.6.3", + "license": "MIT", + "dependencies": { + "@babel/template": "^7.3.3", + "@babel/types": "^7.3.3", + "@types/babel__core": "^7.1.14", + "@types/babel__traverse": "^7.0.6" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/babel-plugin-macros": { + "version": "3.1.0", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@babel/runtime": "^7.12.5", + "cosmiconfig": "^7.0.0", + "resolve": "^1.19.0" + }, + "engines": { + "node": ">=10", + "npm": ">=6" + } + }, + "node_modules/babel-plugin-polyfill-corejs2": { + "version": "0.4.5", + "license": "MIT", + "dependencies": { + "@babel/compat-data": "^7.22.6", + "@babel/helper-define-polyfill-provider": "^0.4.2", + "semver": "^6.3.1" + }, + "peerDependencies": { + "@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0" + } + }, + "node_modules/babel-plugin-polyfill-corejs2/node_modules/semver": { + "version": "6.3.1", + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/babel-plugin-polyfill-corejs3": { + "version": "0.8.3", + "license": "MIT", + "dependencies": { + "@babel/helper-define-polyfill-provider": "^0.4.2", + "core-js-compat": "^3.31.0" + }, + "peerDependencies": { + "@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0" + } + }, + "node_modules/babel-plugin-polyfill-regenerator": { + "version": "0.5.2", + "license": "MIT", + "dependencies": { + "@babel/helper-define-polyfill-provider": "^0.4.2" + }, + "peerDependencies": { + "@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0" + } + }, + "node_modules/babel-plugin-transform-typescript-metadata": { + "version": "0.3.2", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.0.0" + } + }, + "node_modules/babel-preset-current-node-syntax": { + "version": "1.0.1", + "license": "MIT", + "dependencies": { + "@babel/plugin-syntax-async-generators": "^7.8.4", + "@babel/plugin-syntax-bigint": "^7.8.3", + "@babel/plugin-syntax-class-properties": "^7.8.3", + "@babel/plugin-syntax-import-meta": "^7.8.3", + "@babel/plugin-syntax-json-strings": "^7.8.3", + "@babel/plugin-syntax-logical-assignment-operators": "^7.8.3", + "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3", + "@babel/plugin-syntax-numeric-separator": "^7.8.3", + "@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-top-level-await": "^7.8.3" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/babel-preset-jest": { + "version": "29.6.3", + "license": "MIT", + "dependencies": { + "babel-plugin-jest-hoist": "^29.6.3", + "babel-preset-current-node-syntax": "^1.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/balanced-match": { + "version": "1.0.2", + "license": "MIT" + }, + "node_modules/base64-js": { + "version": "1.5.1", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT" + }, + "node_modules/batch": { + "version": "0.6.1", + "license": "MIT" + }, + "node_modules/big.js": { + "version": "5.2.2", + "license": "MIT", + "engines": { + "node": "*" + } + }, + "node_modules/binary-extensions": { + "version": "2.2.0", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/bl": { + "version": "4.1.0", + "license": "MIT", + "dependencies": { + "buffer": "^5.5.0", + "inherits": "^2.0.4", + "readable-stream": "^3.4.0" + } + }, + "node_modules/body-parser": { + "version": "1.20.1", + "license": "MIT", + "dependencies": { + "bytes": "3.1.2", + "content-type": "~1.0.4", + "debug": "2.6.9", + "depd": "2.0.0", + "destroy": "1.2.0", + "http-errors": "2.0.0", + "iconv-lite": "0.4.24", + "on-finished": "2.4.1", + "qs": "6.11.0", + "raw-body": "2.5.1", + "type-is": "~1.6.18", + "unpipe": "1.0.0" + }, + "engines": { + "node": ">= 0.8", + "npm": "1.2.8000 || >= 1.4.16" + } + }, + "node_modules/body-parser/node_modules/bytes": { + "version": "3.1.2", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/body-parser/node_modules/debug": { + "version": "2.6.9", + "license": "MIT", + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/body-parser/node_modules/iconv-lite": { + "version": "0.4.24", + "license": "MIT", + "dependencies": { + "safer-buffer": ">= 2.1.2 < 3" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/body-parser/node_modules/ms": { + "version": "2.0.0", + "license": "MIT" + }, + "node_modules/bonjour-service": { + "version": "1.1.1", + "license": "MIT", + "dependencies": { + "array-flatten": "^2.1.2", + "dns-equal": "^1.0.0", + "fast-deep-equal": "^3.1.3", + "multicast-dns": "^7.2.5" + } + }, + "node_modules/boolbase": { + "version": "1.0.0", + "license": "ISC" + }, + "node_modules/brace-expansion": { + "version": "1.1.11", + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/braces": { + "version": "3.0.2", + "license": "MIT", + "dependencies": { + "fill-range": "^7.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/browser-process-hrtime": { + "version": "1.0.0", + "license": "BSD-2-Clause" + }, + "node_modules/browserslist": { + "version": "4.21.10", + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "caniuse-lite": "^1.0.30001517", + "electron-to-chromium": "^1.4.477", + "node-releases": "^2.0.13", + "update-browserslist-db": "^1.0.11" + }, + "bin": { + "browserslist": "cli.js" + }, + "engines": { + "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" + } + }, + "node_modules/bs-logger": { + "version": "0.2.6", + "dev": true, + "license": "MIT", + "dependencies": { + "fast-json-stable-stringify": "2.x" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/bser": { + "version": "2.1.1", + "license": "Apache-2.0", + "dependencies": { + "node-int64": "^0.4.0" + } + }, + "node_modules/buffer": { + "version": "5.7.1", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT", + "dependencies": { + "base64-js": "^1.3.1", + "ieee754": "^1.1.13" + } + }, + "node_modules/buffer-from": { + "version": "1.1.2", + "license": "MIT" + }, + "node_modules/builtins": { + "version": "5.0.1", + "dev": true, + "license": "MIT", + "dependencies": { + "semver": "^7.0.0" + } + }, + "node_modules/bytes": { + "version": "3.0.0", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/cacache": { + "version": "17.1.4", + "dev": true, + "license": "ISC", + "dependencies": { + "@npmcli/fs": "^3.1.0", + "fs-minipass": "^3.0.0", + "glob": "^10.2.2", + "lru-cache": "^7.7.1", + "minipass": "^7.0.3", + "minipass-collect": "^1.0.2", + "minipass-flush": "^1.0.5", + "minipass-pipeline": "^1.2.4", + "p-map": "^4.0.0", + "ssri": "^10.0.0", + "tar": "^6.1.11", + "unique-filename": "^3.0.0" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/cacache/node_modules/brace-expansion": { + "version": "2.0.1", + "dev": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/cacache/node_modules/fs-minipass": { + "version": "3.0.3", + "dev": true, + "license": "ISC", + "dependencies": { + "minipass": "^7.0.3" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/cacache/node_modules/glob": { + "version": "10.3.3", + "dev": true, + "license": "ISC", + "dependencies": { + "foreground-child": "^3.1.0", + "jackspeak": "^2.0.3", + "minimatch": "^9.0.1", + "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0", + "path-scurry": "^1.10.1" + }, + "bin": { + "glob": "dist/cjs/src/bin.js" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/cacache/node_modules/lru-cache": { + "version": "7.18.3", + "dev": true, + "license": "ISC", + "engines": { + "node": ">=12" + } + }, + "node_modules/cacache/node_modules/minimatch": { + "version": "9.0.3", + "dev": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/cacache/node_modules/minipass": { + "version": "7.0.3", + "dev": true, + "license": "ISC", + "engines": { + "node": ">=16 || 14 >=14.17" + } + }, + "node_modules/call-bind": { + "version": "1.0.2", + "license": "MIT", + "dependencies": { + "function-bind": "^1.1.1", + "get-intrinsic": "^1.0.2" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/callsites": { + "version": "3.1.0", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/camelcase": { + "version": "5.3.1", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/caniuse-api": { + "version": "3.0.0", + "license": "MIT", + "dependencies": { + "browserslist": "^4.0.0", + "caniuse-lite": "^1.0.0", + "lodash.memoize": "^4.1.2", + "lodash.uniq": "^4.5.0" + } + }, + "node_modules/caniuse-lite": { + "version": "1.0.30001523", + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/caniuse-lite" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "CC-BY-4.0" + }, + "node_modules/casper-sdk": { + "resolved": "../../../pkg", + "link": true + }, + "node_modules/chalk": { + "version": "4.1.2", + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/char-regex": { + "version": "1.0.2", + "license": "MIT", + "engines": { + "node": ">=10" + } + }, + "node_modules/chardet": { + "version": "0.7.0", + "license": "MIT" + }, + "node_modules/chokidar": { + "version": "3.5.3", + "funding": [ + { + "type": "individual", + "url": "https://paulmillr.com/funding/" + } + ], + "license": "MIT", + "dependencies": { + "anymatch": "~3.1.2", + "braces": "~3.0.2", + "glob-parent": "~5.1.2", + "is-binary-path": "~2.1.0", + "is-glob": "~4.0.1", + "normalize-path": "~3.0.0", + "readdirp": "~3.6.0" + }, + "engines": { + "node": ">= 8.10.0" + }, + "optionalDependencies": { + "fsevents": "~2.3.2" + } + }, + "node_modules/chownr": { + "version": "2.0.0", + "dev": true, + "license": "ISC", + "engines": { + "node": ">=10" + } + }, + "node_modules/chrome-trace-event": { + "version": "1.0.3", + "license": "MIT", + "engines": { + "node": ">=6.0" + } + }, + "node_modules/ci-info": { + "version": "3.8.0", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/sibiraj-s" + } + ], + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/cjs-module-lexer": { + "version": "1.2.3", + "license": "MIT" + }, + "node_modules/clean-stack": { + "version": "2.2.0", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/cli-cursor": { + "version": "3.1.0", + "license": "MIT", + "dependencies": { + "restore-cursor": "^3.1.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/cli-spinners": { + "version": "2.6.1", + "license": "MIT", + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/cli-width": { + "version": "3.0.0", + "license": "ISC", + "engines": { + "node": ">= 10" + } + }, + "node_modules/cliui": { + "version": "7.0.4", + "license": "ISC", + "dependencies": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.0", + "wrap-ansi": "^7.0.0" + } + }, + "node_modules/clone": { + "version": "1.0.4", + "license": "MIT", + "engines": { + "node": ">=0.8" + } + }, + "node_modules/clone-deep": { + "version": "4.0.1", + "license": "MIT", + "dependencies": { + "is-plain-object": "^2.0.4", + "kind-of": "^6.0.2", + "shallow-clone": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/co": { + "version": "4.6.0", + "license": "MIT", + "engines": { + "iojs": ">= 1.0.0", + "node": ">= 0.12.0" + } + }, + "node_modules/collect-v8-coverage": { + "version": "1.0.2", + "license": "MIT" + }, + "node_modules/color-convert": { + "version": "2.0.1", + "license": "MIT", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/color-name": { + "version": "1.1.4", + "license": "MIT" + }, + "node_modules/color-support": { + "version": "1.1.3", + "dev": true, + "license": "ISC", + "bin": { + "color-support": "bin.js" + } + }, + "node_modules/colord": { + "version": "2.9.3", + "license": "MIT" + }, + "node_modules/colorette": { + "version": "2.0.20", + "license": "MIT" + }, + "node_modules/combined-stream": { + "version": "1.0.8", + "license": "MIT", + "dependencies": { + "delayed-stream": "~1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/commander": { + "version": "7.2.0", + "license": "MIT", + "engines": { + "node": ">= 10" + } + }, + "node_modules/common-path-prefix": { + "version": "3.0.0", + "license": "ISC" + }, + "node_modules/commondir": { + "version": "1.0.1", + "license": "MIT" + }, + "node_modules/compressible": { + "version": "2.0.18", + "license": "MIT", + "dependencies": { + "mime-db": ">= 1.43.0 < 2" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/compression": { + "version": "1.7.4", + "license": "MIT", + "dependencies": { + "accepts": "~1.3.5", + "bytes": "3.0.0", + "compressible": "~2.0.16", + "debug": "2.6.9", + "on-headers": "~1.0.2", + "safe-buffer": "5.1.2", + "vary": "~1.1.2" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/compression/node_modules/debug": { + "version": "2.6.9", + "license": "MIT", + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/compression/node_modules/ms": { + "version": "2.0.0", + "license": "MIT" + }, + "node_modules/compression/node_modules/safe-buffer": { + "version": "5.1.2", + "license": "MIT" + }, + "node_modules/concat-map": { + "version": "0.0.1", + "license": "MIT" + }, + "node_modules/confusing-browser-globals": { + "version": "1.0.11", + "dev": true, + "license": "MIT" + }, + "node_modules/connect-history-api-fallback": { + "version": "2.0.0", + "license": "MIT", + "engines": { + "node": ">=0.8" + } + }, + "node_modules/console-control-strings": { + "version": "1.1.0", + "dev": true, + "license": "ISC" + }, + "node_modules/content-disposition": { + "version": "0.5.4", + "license": "MIT", + "dependencies": { + "safe-buffer": "5.2.1" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/content-type": { + "version": "1.0.5", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/convert-source-map": { + "version": "2.0.0", + "license": "MIT" + }, + "node_modules/cookie": { + "version": "0.5.0", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/cookie-signature": { + "version": "1.0.6", + "license": "MIT" + }, + "node_modules/copy-anything": { + "version": "2.0.6", + "license": "MIT", + "dependencies": { + "is-what": "^3.14.1" + }, + "funding": { + "url": "https://github.com/sponsors/mesqueeb" + } + }, + "node_modules/copy-webpack-plugin": { + "version": "10.2.4", + "license": "MIT", + "dependencies": { + "fast-glob": "^3.2.7", + "glob-parent": "^6.0.1", + "globby": "^12.0.2", + "normalize-path": "^3.0.0", + "schema-utils": "^4.0.0", + "serialize-javascript": "^6.0.0" + }, + "engines": { + "node": ">= 12.20.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "webpack": "^5.1.0" + } + }, + "node_modules/copy-webpack-plugin/node_modules/array-union": { + "version": "3.0.1", + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/copy-webpack-plugin/node_modules/glob-parent": { + "version": "6.0.2", + "license": "ISC", + "dependencies": { + "is-glob": "^4.0.3" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/copy-webpack-plugin/node_modules/globby": { + "version": "12.2.0", + "license": "MIT", + "dependencies": { + "array-union": "^3.0.1", + "dir-glob": "^3.0.1", + "fast-glob": "^3.2.7", + "ignore": "^5.1.9", + "merge2": "^1.4.1", + "slash": "^4.0.0" + }, + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/copy-webpack-plugin/node_modules/slash": { + "version": "4.0.0", + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/core-js-compat": { + "version": "3.32.1", + "license": "MIT", + "dependencies": { + "browserslist": "^4.21.10" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/core-js" + } + }, + "node_modules/core-util-is": { + "version": "1.0.3", + "license": "MIT" + }, + "node_modules/cosmiconfig": { + "version": "7.1.0", + "license": "MIT", + "dependencies": { + "@types/parse-json": "^4.0.0", + "import-fresh": "^3.2.1", + "parse-json": "^5.0.0", + "path-type": "^4.0.0", + "yaml": "^1.10.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/create-require": { + "version": "1.1.1", + "license": "MIT" + }, + "node_modules/critters": { + "version": "0.0.20", + "license": "Apache-2.0", + "dependencies": { + "chalk": "^4.1.0", + "css-select": "^5.1.0", + "dom-serializer": "^2.0.0", + "domhandler": "^5.0.2", + "htmlparser2": "^8.0.2", + "postcss": "^8.4.23", + "pretty-bytes": "^5.3.0" + } + }, + "node_modules/cross-spawn": { + "version": "7.0.3", + "license": "MIT", + "dependencies": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/css-declaration-sorter": { + "version": "6.4.1", + "license": "ISC", + "engines": { + "node": "^10 || ^12 || >=14" + }, + "peerDependencies": { + "postcss": "^8.0.9" + } + }, + "node_modules/css-loader": { + "version": "6.8.1", + "license": "MIT", + "dependencies": { + "icss-utils": "^5.1.0", + "postcss": "^8.4.21", + "postcss-modules-extract-imports": "^3.0.0", + "postcss-modules-local-by-default": "^4.0.3", + "postcss-modules-scope": "^3.0.0", + "postcss-modules-values": "^4.0.0", + "postcss-value-parser": "^4.2.0", + "semver": "^7.3.8" + }, + "engines": { + "node": ">= 12.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "webpack": "^5.0.0" + } + }, + "node_modules/css-minimizer-webpack-plugin": { + "version": "5.0.1", + "license": "MIT", + "dependencies": { + "@jridgewell/trace-mapping": "^0.3.18", + "cssnano": "^6.0.1", + "jest-worker": "^29.4.3", + "postcss": "^8.4.24", + "schema-utils": "^4.0.1", + "serialize-javascript": "^6.0.1" + }, + "engines": { + "node": ">= 14.15.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "webpack": "^5.0.0" + }, + "peerDependenciesMeta": { + "@parcel/css": { + "optional": true + }, + "@swc/css": { + "optional": true + }, + "clean-css": { + "optional": true + }, + "csso": { + "optional": true + }, + "esbuild": { + "optional": true + }, + "lightningcss": { + "optional": true + } + } + }, + "node_modules/css-select": { + "version": "5.1.0", + "license": "BSD-2-Clause", + "dependencies": { + "boolbase": "^1.0.0", + "css-what": "^6.1.0", + "domhandler": "^5.0.2", + "domutils": "^3.0.1", + "nth-check": "^2.0.1" + }, + "funding": { + "url": "https://github.com/sponsors/fb55" + } + }, + "node_modules/css-tree": { + "version": "2.3.1", + "license": "MIT", + "dependencies": { + "mdn-data": "2.0.30", + "source-map-js": "^1.0.1" + }, + "engines": { + "node": "^10 || ^12.20.0 || ^14.13.0 || >=15.0.0" + } + }, + "node_modules/css-what": { + "version": "6.1.0", + "license": "BSD-2-Clause", + "engines": { + "node": ">= 6" + }, + "funding": { + "url": "https://github.com/sponsors/fb55" + } + }, + "node_modules/cssesc": { + "version": "3.0.0", + "license": "MIT", + "bin": { + "cssesc": "bin/cssesc" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/cssnano": { + "version": "6.0.1", + "license": "MIT", + "dependencies": { + "cssnano-preset-default": "^6.0.1", + "lilconfig": "^2.1.0" + }, + "engines": { + "node": "^14 || ^16 || >=18.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/cssnano" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/cssnano-preset-default": { + "version": "6.0.1", + "license": "MIT", + "dependencies": { + "css-declaration-sorter": "^6.3.1", + "cssnano-utils": "^4.0.0", + "postcss-calc": "^9.0.0", + "postcss-colormin": "^6.0.0", + "postcss-convert-values": "^6.0.0", + "postcss-discard-comments": "^6.0.0", + "postcss-discard-duplicates": "^6.0.0", + "postcss-discard-empty": "^6.0.0", + "postcss-discard-overridden": "^6.0.0", + "postcss-merge-longhand": "^6.0.0", + "postcss-merge-rules": "^6.0.1", + "postcss-minify-font-values": "^6.0.0", + "postcss-minify-gradients": "^6.0.0", + "postcss-minify-params": "^6.0.0", + "postcss-minify-selectors": "^6.0.0", + "postcss-normalize-charset": "^6.0.0", + "postcss-normalize-display-values": "^6.0.0", + "postcss-normalize-positions": "^6.0.0", + "postcss-normalize-repeat-style": "^6.0.0", + "postcss-normalize-string": "^6.0.0", + "postcss-normalize-timing-functions": "^6.0.0", + "postcss-normalize-unicode": "^6.0.0", + "postcss-normalize-url": "^6.0.0", + "postcss-normalize-whitespace": "^6.0.0", + "postcss-ordered-values": "^6.0.0", + "postcss-reduce-initial": "^6.0.0", + "postcss-reduce-transforms": "^6.0.0", + "postcss-svgo": "^6.0.0", + "postcss-unique-selectors": "^6.0.0" + }, + "engines": { + "node": "^14 || ^16 || >=18.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/cssnano-utils": { + "version": "4.0.0", + "license": "MIT", + "engines": { + "node": "^14 || ^16 || >=18.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/csso": { + "version": "5.0.5", + "license": "MIT", + "dependencies": { + "css-tree": "~2.2.0" + }, + "engines": { + "node": "^10 || ^12.20.0 || ^14.13.0 || >=15.0.0", + "npm": ">=7.0.0" + } + }, + "node_modules/csso/node_modules/css-tree": { + "version": "2.2.1", + "license": "MIT", + "dependencies": { + "mdn-data": "2.0.28", + "source-map-js": "^1.0.1" + }, + "engines": { + "node": "^10 || ^12.20.0 || ^14.13.0 || >=15.0.0", + "npm": ">=7.0.0" + } + }, + "node_modules/csso/node_modules/mdn-data": { + "version": "2.0.28", + "license": "CC0-1.0" + }, + "node_modules/cssom": { + "version": "0.4.4", + "license": "MIT" + }, + "node_modules/cssstyle": { + "version": "2.3.0", + "license": "MIT", + "dependencies": { + "cssom": "~0.3.6" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/cssstyle/node_modules/cssom": { + "version": "0.3.8", + "license": "MIT" + }, + "node_modules/data-urls": { + "version": "2.0.0", + "license": "MIT", + "dependencies": { + "abab": "^2.0.3", + "whatwg-mimetype": "^2.3.0", + "whatwg-url": "^8.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/debug": { + "version": "4.3.4", + "license": "MIT", + "dependencies": { + "ms": "2.1.2" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/decimal.js": { + "version": "10.4.3", + "license": "MIT" + }, + "node_modules/dedent": { + "version": "1.5.1", + "license": "MIT", + "peerDependencies": { + "babel-plugin-macros": "^3.1.0" + }, + "peerDependenciesMeta": { + "babel-plugin-macros": { + "optional": true + } + } + }, + "node_modules/deep-equal": { + "version": "2.2.2", + "dev": true, + "license": "MIT", + "dependencies": { + "array-buffer-byte-length": "^1.0.0", + "call-bind": "^1.0.2", + "es-get-iterator": "^1.1.3", + "get-intrinsic": "^1.2.1", + "is-arguments": "^1.1.1", + "is-array-buffer": "^3.0.2", + "is-date-object": "^1.0.5", + "is-regex": "^1.1.4", + "is-shared-array-buffer": "^1.0.2", + "isarray": "^2.0.5", + "object-is": "^1.1.5", + "object-keys": "^1.1.1", + "object.assign": "^4.1.4", + "regexp.prototype.flags": "^1.5.0", + "side-channel": "^1.0.4", + "which-boxed-primitive": "^1.0.2", + "which-collection": "^1.0.1", + "which-typed-array": "^1.1.9" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/deep-equal/node_modules/isarray": { + "version": "2.0.5", + "dev": true, + "license": "MIT" + }, + "node_modules/deep-is": { + "version": "0.1.4", + "license": "MIT" + }, + "node_modules/deepmerge": { + "version": "4.3.1", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/default-gateway": { + "version": "6.0.3", + "license": "BSD-2-Clause", + "dependencies": { + "execa": "^5.0.0" + }, + "engines": { + "node": ">= 10" + } + }, + "node_modules/defaults": { + "version": "1.0.4", + "license": "MIT", + "dependencies": { + "clone": "^1.0.2" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/define-lazy-prop": { + "version": "2.0.0", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/define-properties": { + "version": "1.2.0", + "dev": true, + "license": "MIT", + "dependencies": { + "has-property-descriptors": "^1.0.0", + "object-keys": "^1.1.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/delayed-stream": { + "version": "1.0.0", + "license": "MIT", + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/delegates": { + "version": "1.0.0", + "dev": true, + "license": "MIT" + }, + "node_modules/depd": { + "version": "2.0.0", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/destroy": { + "version": "1.2.0", + "license": "MIT", + "engines": { + "node": ">= 0.8", + "npm": "1.2.8000 || >= 1.4.16" + } + }, + "node_modules/detect-newline": { + "version": "3.1.0", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/detect-node": { + "version": "2.1.0", + "license": "MIT" + }, + "node_modules/detect-port": { + "version": "1.5.1", + "license": "MIT", + "dependencies": { + "address": "^1.0.1", + "debug": "4" + }, + "bin": { + "detect": "bin/detect-port.js", + "detect-port": "bin/detect-port.js" + } + }, + "node_modules/diff": { + "version": "4.0.2", + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.3.1" + } + }, + "node_modules/diff-sequences": { + "version": "29.6.3", + "license": "MIT", + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/dir-glob": { + "version": "3.0.1", + "license": "MIT", + "dependencies": { + "path-type": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/dns-equal": { + "version": "1.0.0", + "license": "MIT" + }, + "node_modules/dns-packet": { + "version": "5.6.1", + "license": "MIT", + "dependencies": { + "@leichtgewicht/ip-codec": "^2.0.1" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/doctrine": { + "version": "3.0.0", + "license": "Apache-2.0", + "dependencies": { + "esutils": "^2.0.2" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/dom-serializer": { + "version": "2.0.0", + "license": "MIT", + "dependencies": { + "domelementtype": "^2.3.0", + "domhandler": "^5.0.2", + "entities": "^4.2.0" + }, + "funding": { + "url": "https://github.com/cheeriojs/dom-serializer?sponsor=1" + } + }, + "node_modules/domelementtype": { + "version": "2.3.0", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/fb55" + } + ], + "license": "BSD-2-Clause" + }, + "node_modules/domexception": { + "version": "2.0.1", + "license": "MIT", + "dependencies": { + "webidl-conversions": "^5.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/domexception/node_modules/webidl-conversions": { + "version": "5.0.0", + "license": "BSD-2-Clause", + "engines": { + "node": ">=8" + } + }, + "node_modules/domhandler": { + "version": "5.0.3", + "license": "BSD-2-Clause", + "dependencies": { + "domelementtype": "^2.3.0" + }, + "engines": { + "node": ">= 4" + }, + "funding": { + "url": "https://github.com/fb55/domhandler?sponsor=1" + } + }, + "node_modules/domutils": { + "version": "3.1.0", + "license": "BSD-2-Clause", + "dependencies": { + "dom-serializer": "^2.0.0", + "domelementtype": "^2.3.0", + "domhandler": "^5.0.3" + }, + "funding": { + "url": "https://github.com/fb55/domutils?sponsor=1" + } + }, + "node_modules/dotenv": { + "version": "16.3.1", + "license": "BSD-2-Clause", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/motdotla/dotenv?sponsor=1" + } + }, + "node_modules/duplexer": { + "version": "0.1.2", + "license": "MIT" + }, + "node_modules/eastasianwidth": { + "version": "0.2.0", + "dev": true, + "license": "MIT" + }, + "node_modules/ee-first": { + "version": "1.1.1", + "license": "MIT" + }, + "node_modules/ejs": { + "version": "3.1.9", + "license": "Apache-2.0", + "dependencies": { + "jake": "^10.8.5" + }, + "bin": { + "ejs": "bin/cli.js" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/electron-to-chromium": { + "version": "1.4.502", + "license": "ISC" + }, + "node_modules/emittery": { + "version": "0.13.1", + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sindresorhus/emittery?sponsor=1" + } + }, + "node_modules/emoji-regex": { + "version": "8.0.0", + "license": "MIT" + }, + "node_modules/emojis-list": { + "version": "3.0.0", + "license": "MIT", + "engines": { + "node": ">= 4" + } + }, + "node_modules/encodeurl": { + "version": "1.0.2", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/encoding": { + "version": "0.1.13", + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "iconv-lite": "^0.6.2" + } + }, + "node_modules/end-of-stream": { + "version": "1.4.4", + "license": "MIT", + "dependencies": { + "once": "^1.4.0" + } + }, + "node_modules/enhanced-resolve": { + "version": "5.15.0", + "license": "MIT", + "dependencies": { + "graceful-fs": "^4.2.4", + "tapable": "^2.2.0" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/enquirer": { + "version": "2.4.1", + "license": "MIT", + "dependencies": { + "ansi-colors": "^4.1.1", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8.6" + } + }, + "node_modules/entities": { + "version": "4.5.0", + "license": "BSD-2-Clause", + "engines": { + "node": ">=0.12" + }, + "funding": { + "url": "https://github.com/fb55/entities?sponsor=1" + } + }, + "node_modules/env-paths": { + "version": "2.2.1", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/err-code": { + "version": "2.0.3", + "dev": true, + "license": "MIT" + }, + "node_modules/errno": { + "version": "0.1.8", + "license": "MIT", + "optional": true, + "dependencies": { + "prr": "~1.0.1" + }, + "bin": { + "errno": "cli.js" + } + }, + "node_modules/error-ex": { + "version": "1.3.2", + "license": "MIT", + "dependencies": { + "is-arrayish": "^0.2.1" + } + }, + "node_modules/es-get-iterator": { + "version": "1.1.3", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.2", + "get-intrinsic": "^1.1.3", + "has-symbols": "^1.0.3", + "is-arguments": "^1.1.1", + "is-map": "^2.0.2", + "is-set": "^2.0.2", + "is-string": "^1.0.7", + "isarray": "^2.0.5", + "stop-iteration-iterator": "^1.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/es-get-iterator/node_modules/isarray": { + "version": "2.0.5", + "dev": true, + "license": "MIT" + }, + "node_modules/es-module-lexer": { + "version": "1.3.0", + "license": "MIT" + }, + "node_modules/esbuild": { + "version": "0.17.19", + "hasInstallScript": true, + "license": "MIT", + "optional": true, + "bin": { + "esbuild": "bin/esbuild" + }, + "engines": { + "node": ">=12" + }, + "optionalDependencies": { + "@esbuild/android-arm": "0.17.19", + "@esbuild/android-arm64": "0.17.19", + "@esbuild/android-x64": "0.17.19", + "@esbuild/darwin-arm64": "0.17.19", + "@esbuild/darwin-x64": "0.17.19", + "@esbuild/freebsd-arm64": "0.17.19", + "@esbuild/freebsd-x64": "0.17.19", + "@esbuild/linux-arm": "0.17.19", + "@esbuild/linux-arm64": "0.17.19", + "@esbuild/linux-ia32": "0.17.19", + "@esbuild/linux-loong64": "0.17.19", + "@esbuild/linux-mips64el": "0.17.19", + "@esbuild/linux-ppc64": "0.17.19", + "@esbuild/linux-riscv64": "0.17.19", + "@esbuild/linux-s390x": "0.17.19", + "@esbuild/linux-x64": "0.17.19", + "@esbuild/netbsd-x64": "0.17.19", + "@esbuild/openbsd-x64": "0.17.19", + "@esbuild/sunos-x64": "0.17.19", + "@esbuild/win32-arm64": "0.17.19", + "@esbuild/win32-ia32": "0.17.19", + "@esbuild/win32-x64": "0.17.19" + } + }, + "node_modules/esbuild-wasm": { + "version": "0.18.17", + "license": "MIT", + "bin": { + "esbuild": "bin/esbuild" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/escalade": { + "version": "3.1.1", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/escape-html": { + "version": "1.0.3", + "license": "MIT" + }, + "node_modules/escape-string-regexp": { + "version": "1.0.5", + "license": "MIT", + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/escodegen": { + "version": "2.1.0", + "license": "BSD-2-Clause", + "dependencies": { + "esprima": "^4.0.1", + "estraverse": "^5.2.0", + "esutils": "^2.0.2" + }, + "bin": { + "escodegen": "bin/escodegen.js", + "esgenerate": "bin/esgenerate.js" + }, + "engines": { + "node": ">=6.0" + }, + "optionalDependencies": { + "source-map": "~0.6.1" + } + }, + "node_modules/escodegen/node_modules/estraverse": { + "version": "5.3.0", + "license": "BSD-2-Clause", + "engines": { + "node": ">=4.0" + } + }, + "node_modules/escodegen/node_modules/source-map": { + "version": "0.6.1", + "license": "BSD-3-Clause", + "optional": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/eslint": { + "version": "8.46.0", + "license": "MIT", + "dependencies": { + "@eslint-community/eslint-utils": "^4.2.0", + "@eslint-community/regexpp": "^4.6.1", + "@eslint/eslintrc": "^2.1.1", + "@eslint/js": "^8.46.0", + "@humanwhocodes/config-array": "^0.11.10", + "@humanwhocodes/module-importer": "^1.0.1", + "@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.2", + "espree": "^9.6.1", + "esquery": "^1.4.2", + "esutils": "^2.0.2", + "fast-deep-equal": "^3.1.3", + "file-entry-cache": "^6.0.1", + "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", + "minimatch": "^3.1.2", + "natural-compare": "^1.4.0", + "optionator": "^0.9.3", + "strip-ansi": "^6.0.1", + "text-table": "^0.2.0" + }, + "bin": { + "eslint": "bin/eslint.js" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint-config-prettier": { + "version": "8.1.0", + "dev": true, + "license": "MIT", + "bin": { + "eslint-config-prettier": "bin/cli.js" + }, + "peerDependencies": { + "eslint": ">=7.0.0" + } + }, + "node_modules/eslint-scope": { + "version": "5.1.1", + "license": "BSD-2-Clause", + "dependencies": { + "esrecurse": "^4.3.0", + "estraverse": "^4.1.1" + }, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/eslint-visitor-keys": { + "version": "3.4.3", + "license": "Apache-2.0", + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint/node_modules/ajv": { + "version": "6.12.6", + "license": "MIT", + "dependencies": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/eslint/node_modules/argparse": { + "version": "2.0.1", + "license": "Python-2.0" + }, + "node_modules/eslint/node_modules/escape-string-regexp": { + "version": "4.0.0", + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/eslint/node_modules/eslint-scope": { + "version": "7.2.2", + "license": "BSD-2-Clause", + "dependencies": { + "esrecurse": "^4.3.0", + "estraverse": "^5.2.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint/node_modules/estraverse": { + "version": "5.3.0", + "license": "BSD-2-Clause", + "engines": { + "node": ">=4.0" + } + }, + "node_modules/eslint/node_modules/find-up": { + "version": "5.0.0", + "license": "MIT", + "dependencies": { + "locate-path": "^6.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/eslint/node_modules/glob-parent": { + "version": "6.0.2", + "license": "ISC", + "dependencies": { + "is-glob": "^4.0.3" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/eslint/node_modules/globals": { + "version": "13.21.0", + "license": "MIT", + "dependencies": { + "type-fest": "^0.20.2" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/eslint/node_modules/js-yaml": { + "version": "4.1.0", + "license": "MIT", + "dependencies": { + "argparse": "^2.0.1" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "node_modules/eslint/node_modules/json-schema-traverse": { + "version": "0.4.1", + "license": "MIT" + }, + "node_modules/eslint/node_modules/locate-path": { + "version": "6.0.0", + "license": "MIT", + "dependencies": { + "p-locate": "^5.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/eslint/node_modules/minimatch": { + "version": "3.1.2", + "license": "ISC", + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/eslint/node_modules/p-locate": { + "version": "5.0.0", + "license": "MIT", + "dependencies": { + "p-limit": "^3.0.2" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/eslint/node_modules/type-fest": { + "version": "0.20.2", + "license": "(MIT OR CC0-1.0)", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/espree": { + "version": "9.6.1", + "license": "BSD-2-Clause", + "dependencies": { + "acorn": "^8.9.0", + "acorn-jsx": "^5.3.2", + "eslint-visitor-keys": "^3.4.1" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/esprima": { + "version": "4.0.1", + "license": "BSD-2-Clause", + "bin": { + "esparse": "bin/esparse.js", + "esvalidate": "bin/esvalidate.js" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/esquery": { + "version": "1.5.0", + "license": "BSD-3-Clause", + "dependencies": { + "estraverse": "^5.1.0" + }, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/esquery/node_modules/estraverse": { + "version": "5.3.0", + "license": "BSD-2-Clause", + "engines": { + "node": ">=4.0" + } + }, + "node_modules/esrecurse": { + "version": "4.3.0", + "license": "BSD-2-Clause", + "dependencies": { + "estraverse": "^5.2.0" + }, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/esrecurse/node_modules/estraverse": { + "version": "5.3.0", + "license": "BSD-2-Clause", + "engines": { + "node": ">=4.0" + } + }, + "node_modules/estraverse": { + "version": "4.3.0", + "license": "BSD-2-Clause", + "engines": { + "node": ">=4.0" + } + }, + "node_modules/esutils": { + "version": "2.0.3", + "license": "BSD-2-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/etag": { + "version": "1.8.1", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/eventemitter-asyncresource": { + "version": "1.0.0", + "license": "MIT" + }, + "node_modules/eventemitter3": { + "version": "4.0.7", + "license": "MIT" + }, + "node_modules/events": { + "version": "3.3.0", + "license": "MIT", + "engines": { + "node": ">=0.8.x" + } + }, + "node_modules/execa": { + "version": "5.1.1", + "license": "MIT", + "dependencies": { + "cross-spawn": "^7.0.3", + "get-stream": "^6.0.0", + "human-signals": "^2.1.0", + "is-stream": "^2.0.0", + "merge-stream": "^2.0.0", + "npm-run-path": "^4.0.1", + "onetime": "^5.1.2", + "signal-exit": "^3.0.3", + "strip-final-newline": "^2.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sindresorhus/execa?sponsor=1" + } + }, + "node_modules/exit": { + "version": "0.1.2", + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/expect": { + "version": "29.6.4", + "license": "MIT", + "dependencies": { + "@jest/expect-utils": "^29.6.4", + "jest-get-type": "^29.6.3", + "jest-matcher-utils": "^29.6.4", + "jest-message-util": "^29.6.3", + "jest-util": "^29.6.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/exponential-backoff": { + "version": "3.1.1", + "dev": true, + "license": "Apache-2.0" + }, + "node_modules/express": { + "version": "4.18.2", + "license": "MIT", + "dependencies": { + "accepts": "~1.3.8", + "array-flatten": "1.1.1", + "body-parser": "1.20.1", + "content-disposition": "0.5.4", + "content-type": "~1.0.4", + "cookie": "0.5.0", + "cookie-signature": "1.0.6", + "debug": "2.6.9", + "depd": "2.0.0", + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "etag": "~1.8.1", + "finalhandler": "1.2.0", + "fresh": "0.5.2", + "http-errors": "2.0.0", + "merge-descriptors": "1.0.1", + "methods": "~1.1.2", + "on-finished": "2.4.1", + "parseurl": "~1.3.3", + "path-to-regexp": "0.1.7", + "proxy-addr": "~2.0.7", + "qs": "6.11.0", + "range-parser": "~1.2.1", + "safe-buffer": "5.2.1", + "send": "0.18.0", + "serve-static": "1.15.0", + "setprototypeof": "1.2.0", + "statuses": "2.0.1", + "type-is": "~1.6.18", + "utils-merge": "1.0.1", + "vary": "~1.1.2" + }, + "engines": { + "node": ">= 0.10.0" + } + }, + "node_modules/express/node_modules/array-flatten": { + "version": "1.1.1", + "license": "MIT" + }, + "node_modules/express/node_modules/debug": { + "version": "2.6.9", + "license": "MIT", + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/express/node_modules/ms": { + "version": "2.0.0", + "license": "MIT" + }, + "node_modules/external-editor": { + "version": "3.1.0", + "license": "MIT", + "dependencies": { + "chardet": "^0.7.0", + "iconv-lite": "^0.4.24", + "tmp": "^0.0.33" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/external-editor/node_modules/iconv-lite": { + "version": "0.4.24", + "license": "MIT", + "dependencies": { + "safer-buffer": ">= 2.1.2 < 3" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/external-editor/node_modules/tmp": { + "version": "0.0.33", + "license": "MIT", + "dependencies": { + "os-tmpdir": "~1.0.2" + }, + "engines": { + "node": ">=0.6.0" + } + }, + "node_modules/fast-deep-equal": { + "version": "3.1.3", + "license": "MIT" + }, + "node_modules/fast-glob": { + "version": "3.2.7", + "license": "MIT", + "dependencies": { + "@nodelib/fs.stat": "^2.0.2", + "@nodelib/fs.walk": "^1.2.3", + "glob-parent": "^5.1.2", + "merge2": "^1.3.0", + "micromatch": "^4.0.4" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/fast-json-stable-stringify": { + "version": "2.1.0", + "license": "MIT" + }, + "node_modules/fast-levenshtein": { + "version": "2.0.6", + "license": "MIT" + }, + "node_modules/fastq": { + "version": "1.15.0", + "license": "ISC", + "dependencies": { + "reusify": "^1.0.4" + } + }, + "node_modules/faye-websocket": { + "version": "0.11.4", + "license": "Apache-2.0", + "dependencies": { + "websocket-driver": ">=0.5.1" + }, + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/fb-watchman": { + "version": "2.0.2", + "license": "Apache-2.0", + "dependencies": { + "bser": "2.1.1" + } + }, + "node_modules/figures": { + "version": "3.2.0", + "license": "MIT", + "dependencies": { + "escape-string-regexp": "^1.0.5" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/file-entry-cache": { + "version": "6.0.1", + "license": "MIT", + "dependencies": { + "flat-cache": "^3.0.4" + }, + "engines": { + "node": "^10.12.0 || >=12.0.0" + } + }, + "node_modules/filelist": { + "version": "1.0.4", + "license": "Apache-2.0", + "dependencies": { + "minimatch": "^5.0.1" + } + }, + "node_modules/filelist/node_modules/brace-expansion": { + "version": "2.0.1", + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/filelist/node_modules/minimatch": { + "version": "5.1.6", + "license": "ISC", + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/fill-range": { + "version": "7.0.1", + "license": "MIT", + "dependencies": { + "to-regex-range": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/finalhandler": { + "version": "1.2.0", + "license": "MIT", + "dependencies": { + "debug": "2.6.9", + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "on-finished": "2.4.1", + "parseurl": "~1.3.3", + "statuses": "2.0.1", + "unpipe": "~1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/finalhandler/node_modules/debug": { + "version": "2.6.9", + "license": "MIT", + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/finalhandler/node_modules/ms": { + "version": "2.0.0", + "license": "MIT" + }, + "node_modules/find-cache-dir": { + "version": "3.3.2", + "license": "MIT", + "dependencies": { + "commondir": "^1.0.1", + "make-dir": "^3.0.2", + "pkg-dir": "^4.1.0" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/avajs/find-cache-dir?sponsor=1" + } + }, + "node_modules/find-up": { + "version": "4.1.0", + "license": "MIT", + "dependencies": { + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/flat": { + "version": "5.0.2", + "license": "BSD-3-Clause", + "bin": { + "flat": "cli.js" + } + }, + "node_modules/flat-cache": { + "version": "3.0.4", + "license": "MIT", + "dependencies": { + "flatted": "^3.1.0", + "rimraf": "^3.0.2" + }, + "engines": { + "node": "^10.12.0 || >=12.0.0" + } + }, + "node_modules/flatted": { + "version": "3.2.7", + "license": "ISC" + }, + "node_modules/follow-redirects": { + "version": "1.15.2", + "funding": [ + { + "type": "individual", + "url": "https://github.com/sponsors/RubenVerborgh" + } + ], + "license": "MIT", + "engines": { + "node": ">=4.0" + }, + "peerDependenciesMeta": { + "debug": { + "optional": true + } + } + }, + "node_modules/for-each": { + "version": "0.3.3", + "dev": true, + "license": "MIT", + "dependencies": { + "is-callable": "^1.1.3" + } + }, + "node_modules/foreground-child": { + "version": "3.1.1", + "dev": true, + "license": "ISC", + "dependencies": { + "cross-spawn": "^7.0.0", + "signal-exit": "^4.0.1" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/foreground-child/node_modules/signal-exit": { + "version": "4.1.0", + "dev": true, + "license": "ISC", + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/fork-ts-checker-webpack-plugin": { + "version": "7.2.13", + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.16.7", + "chalk": "^4.1.2", + "chokidar": "^3.5.3", + "cosmiconfig": "^7.0.1", + "deepmerge": "^4.2.2", + "fs-extra": "^10.0.0", + "memfs": "^3.4.1", + "minimatch": "^3.0.4", + "node-abort-controller": "^3.0.1", + "schema-utils": "^3.1.1", + "semver": "^7.3.5", + "tapable": "^2.2.1" + }, + "engines": { + "node": ">=12.13.0", + "yarn": ">=1.0.0" + }, + "peerDependencies": { + "typescript": ">3.6.0", + "vue-template-compiler": "*", + "webpack": "^5.11.0" + }, + "peerDependenciesMeta": { + "vue-template-compiler": { + "optional": true + } + } + }, + "node_modules/fork-ts-checker-webpack-plugin/node_modules/ajv": { + "version": "6.12.6", + "license": "MIT", + "dependencies": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/fork-ts-checker-webpack-plugin/node_modules/ajv-keywords": { + "version": "3.5.2", + "license": "MIT", + "peerDependencies": { + "ajv": "^6.9.1" + } + }, + "node_modules/fork-ts-checker-webpack-plugin/node_modules/fs-extra": { + "version": "10.1.0", + "license": "MIT", + "dependencies": { + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/fork-ts-checker-webpack-plugin/node_modules/json-schema-traverse": { + "version": "0.4.1", + "license": "MIT" + }, + "node_modules/fork-ts-checker-webpack-plugin/node_modules/schema-utils": { + "version": "3.3.0", + "license": "MIT", + "dependencies": { + "@types/json-schema": "^7.0.8", + "ajv": "^6.12.5", + "ajv-keywords": "^3.5.2" + }, + "engines": { + "node": ">= 10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + } + }, + "node_modules/form-data": { + "version": "4.0.0", + "license": "MIT", + "dependencies": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.8", + "mime-types": "^2.1.12" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/forwarded": { + "version": "0.2.0", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/fraction.js": { + "version": "4.2.1", + "license": "MIT", + "engines": { + "node": "*" + }, + "funding": { + "type": "patreon", + "url": "https://www.patreon.com/infusion" + } + }, + "node_modules/fresh": { + "version": "0.5.2", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/fs-constants": { + "version": "1.0.0", + "license": "MIT" + }, + "node_modules/fs-extra": { + "version": "11.1.1", + "license": "MIT", + "dependencies": { + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" + }, + "engines": { + "node": ">=14.14" + } + }, + "node_modules/fs-minipass": { + "version": "2.1.0", + "dev": true, + "license": "ISC", + "dependencies": { + "minipass": "^3.0.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/fs-monkey": { + "version": "1.0.4", + "license": "Unlicense" + }, + "node_modules/fs.realpath": { + "version": "1.0.0", + "license": "ISC" + }, + "node_modules/function-bind": { + "version": "1.1.1", + "license": "MIT" + }, + "node_modules/functions-have-names": { + "version": "1.2.3", + "dev": true, + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/gauge": { + "version": "4.0.4", + "dev": true, + "license": "ISC", + "dependencies": { + "aproba": "^1.0.3 || ^2.0.0", + "color-support": "^1.1.3", + "console-control-strings": "^1.1.0", + "has-unicode": "^2.0.1", + "signal-exit": "^3.0.7", + "string-width": "^4.2.3", + "strip-ansi": "^6.0.1", + "wide-align": "^1.1.5" + }, + "engines": { + "node": "^12.13.0 || ^14.15.0 || >=16.0.0" + } + }, + "node_modules/gensync": { + "version": "1.0.0-beta.2", + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/get-caller-file": { + "version": "2.0.5", + "license": "ISC", + "engines": { + "node": "6.* || 8.* || >= 10.*" + } + }, + "node_modules/get-intrinsic": { + "version": "1.2.1", + "license": "MIT", + "dependencies": { + "function-bind": "^1.1.1", + "has": "^1.0.3", + "has-proto": "^1.0.1", + "has-symbols": "^1.0.3" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/get-package-type": { + "version": "0.1.0", + "license": "MIT", + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/get-stream": { + "version": "6.0.1", + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/glob": { + "version": "7.2.3", + "license": "ISC", + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/glob-parent": { + "version": "5.1.2", + "license": "ISC", + "dependencies": { + "is-glob": "^4.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/glob-to-regexp": { + "version": "0.4.1", + "license": "BSD-2-Clause" + }, + "node_modules/glob/node_modules/minimatch": { + "version": "3.1.2", + "license": "ISC", + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/globals": { + "version": "11.12.0", + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/globby": { + "version": "11.1.0", + "license": "MIT", + "dependencies": { + "array-union": "^2.1.0", + "dir-glob": "^3.0.1", + "fast-glob": "^3.2.9", + "ignore": "^5.2.0", + "merge2": "^1.4.1", + "slash": "^3.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/globby/node_modules/fast-glob": { + "version": "3.3.1", + "license": "MIT", + "dependencies": { + "@nodelib/fs.stat": "^2.0.2", + "@nodelib/fs.walk": "^1.2.3", + "glob-parent": "^5.1.2", + "merge2": "^1.3.0", + "micromatch": "^4.0.4" + }, + "engines": { + "node": ">=8.6.0" + } + }, + "node_modules/gopd": { + "version": "1.0.1", + "dev": true, + "license": "MIT", + "dependencies": { + "get-intrinsic": "^1.1.3" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/graceful-fs": { + "version": "4.2.11", + "license": "ISC" + }, + "node_modules/graphemer": { + "version": "1.4.0", + "license": "MIT" + }, + "node_modules/guess-parser": { + "version": "0.4.22", + "license": "MIT", + "dependencies": { + "@wessberg/ts-evaluator": "0.0.27" + }, + "peerDependencies": { + "typescript": ">=3.7.5" + } + }, + "node_modules/handle-thing": { + "version": "2.0.1", + "license": "MIT" + }, + "node_modules/harmony-reflect": { + "version": "1.6.2", + "license": "(Apache-2.0 OR MPL-1.1)" + }, + "node_modules/has": { + "version": "1.0.3", + "license": "MIT", + "dependencies": { + "function-bind": "^1.1.1" + }, + "engines": { + "node": ">= 0.4.0" + } + }, + "node_modules/has-bigints": { + "version": "1.0.2", + "dev": true, + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-flag": { + "version": "4.0.0", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/has-property-descriptors": { + "version": "1.0.0", + "dev": true, + "license": "MIT", + "dependencies": { + "get-intrinsic": "^1.1.1" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-proto": { + "version": "1.0.1", + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-symbols": { + "version": "1.0.3", + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-tostringtag": { + "version": "1.0.0", + "dev": true, + "license": "MIT", + "dependencies": { + "has-symbols": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-unicode": { + "version": "2.0.1", + "dev": true, + "license": "ISC" + }, + "node_modules/hdr-histogram-js": { + "version": "2.0.3", + "license": "BSD", + "dependencies": { + "@assemblyscript/loader": "^0.10.1", + "base64-js": "^1.2.0", + "pako": "^1.0.3" + } + }, + "node_modules/hdr-histogram-percentiles-obj": { + "version": "3.0.0", + "license": "MIT" + }, + "node_modules/highlight.js": { + "version": "11.8.0", + "license": "BSD-3-Clause", + "engines": { + "node": ">=12.0.0" + } + }, + "node_modules/hosted-git-info": { + "version": "6.1.1", + "dev": true, + "license": "ISC", + "dependencies": { + "lru-cache": "^7.5.1" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/hosted-git-info/node_modules/lru-cache": { + "version": "7.18.3", + "dev": true, + "license": "ISC", + "engines": { + "node": ">=12" + } + }, + "node_modules/hpack.js": { + "version": "2.1.6", + "license": "MIT", + "dependencies": { + "inherits": "^2.0.1", + "obuf": "^1.0.0", + "readable-stream": "^2.0.1", + "wbuf": "^1.1.0" + } + }, + "node_modules/hpack.js/node_modules/readable-stream": { + "version": "2.3.8", + "license": "MIT", + "dependencies": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + }, + "node_modules/hpack.js/node_modules/safe-buffer": { + "version": "5.1.2", + "license": "MIT" + }, + "node_modules/hpack.js/node_modules/string_decoder": { + "version": "1.1.1", + "license": "MIT", + "dependencies": { + "safe-buffer": "~5.1.0" + } + }, + "node_modules/html-encoding-sniffer": { + "version": "2.0.1", + "license": "MIT", + "dependencies": { + "whatwg-encoding": "^1.0.5" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/html-entities": { + "version": "2.4.0", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/mdevils" + }, + { + "type": "patreon", + "url": "https://patreon.com/mdevils" + } + ], + "license": "MIT" + }, + "node_modules/html-escaper": { + "version": "2.0.2", + "license": "MIT" + }, + "node_modules/htmlparser2": { + "version": "8.0.2", + "funding": [ + "https://github.com/fb55/htmlparser2?sponsor=1", + { + "type": "github", + "url": "https://github.com/sponsors/fb55" + } + ], + "license": "MIT", + "dependencies": { + "domelementtype": "^2.3.0", + "domhandler": "^5.0.3", + "domutils": "^3.0.1", + "entities": "^4.4.0" + } + }, + "node_modules/http-cache-semantics": { + "version": "4.1.1", + "dev": true, + "license": "BSD-2-Clause" + }, + "node_modules/http-deceiver": { + "version": "1.2.7", + "license": "MIT" + }, + "node_modules/http-errors": { + "version": "2.0.0", + "license": "MIT", + "dependencies": { + "depd": "2.0.0", + "inherits": "2.0.4", + "setprototypeof": "1.2.0", + "statuses": "2.0.1", + "toidentifier": "1.0.1" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/http-parser-js": { + "version": "0.5.8", + "license": "MIT" + }, + "node_modules/http-proxy": { + "version": "1.18.1", + "license": "MIT", + "dependencies": { + "eventemitter3": "^4.0.0", + "follow-redirects": "^1.0.0", + "requires-port": "^1.0.0" + }, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/http-proxy-agent": { + "version": "4.0.1", + "license": "MIT", + "dependencies": { + "@tootallnate/once": "1", + "agent-base": "6", + "debug": "4" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/http-proxy-middleware": { + "version": "2.0.6", + "license": "MIT", + "dependencies": { + "@types/http-proxy": "^1.17.8", + "http-proxy": "^1.18.1", + "is-glob": "^4.0.1", + "is-plain-obj": "^3.0.0", + "micromatch": "^4.0.2" + }, + "engines": { + "node": ">=12.0.0" + }, + "peerDependencies": { + "@types/express": "^4.17.13" + }, + "peerDependenciesMeta": { + "@types/express": { + "optional": true + } + } + }, + "node_modules/https-proxy-agent": { + "version": "5.0.1", + "license": "MIT", + "dependencies": { + "agent-base": "6", + "debug": "4" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/human-signals": { + "version": "2.1.0", + "license": "Apache-2.0", + "engines": { + "node": ">=10.17.0" + } + }, + "node_modules/humanize-ms": { + "version": "1.2.1", + "dev": true, + "license": "MIT", + "dependencies": { + "ms": "^2.0.0" + } + }, + "node_modules/iconv-lite": { + "version": "0.6.3", + "license": "MIT", + "dependencies": { + "safer-buffer": ">= 2.1.2 < 3.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/icss-utils": { + "version": "5.1.0", + "license": "ISC", + "engines": { + "node": "^10 || ^12 || >= 14" + }, + "peerDependencies": { + "postcss": "^8.1.0" + } + }, + "node_modules/identity-obj-proxy": { + "version": "3.0.0", + "license": "MIT", + "dependencies": { + "harmony-reflect": "^1.4.6" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/ieee754": { + "version": "1.2.1", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "BSD-3-Clause" + }, + "node_modules/ignore": { + "version": "5.2.4", + "license": "MIT", + "engines": { + "node": ">= 4" + } + }, + "node_modules/ignore-walk": { + "version": "6.0.3", + "dev": true, + "license": "ISC", + "dependencies": { + "minimatch": "^9.0.0" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/ignore-walk/node_modules/brace-expansion": { + "version": "2.0.1", + "dev": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/ignore-walk/node_modules/minimatch": { + "version": "9.0.3", + "dev": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/image-size": { + "version": "0.5.5", + "license": "MIT", + "optional": true, + "bin": { + "image-size": "bin/image-size.js" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/immutable": { + "version": "4.3.4", + "license": "MIT" + }, + "node_modules/import-fresh": { + "version": "3.3.0", + "license": "MIT", + "dependencies": { + "parent-module": "^1.0.0", + "resolve-from": "^4.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/import-fresh/node_modules/resolve-from": { + "version": "4.0.0", + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/import-local": { + "version": "3.1.0", + "devOptional": true, + "license": "MIT", + "dependencies": { + "pkg-dir": "^4.2.0", + "resolve-cwd": "^3.0.0" + }, + "bin": { + "import-local-fixture": "fixtures/cli.js" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/imurmurhash": { + "version": "0.1.4", + "license": "MIT", + "engines": { + "node": ">=0.8.19" + } + }, + "node_modules/indent-string": { + "version": "4.0.0", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/inflight": { + "version": "1.0.6", + "license": "ISC", + "dependencies": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "node_modules/inherits": { + "version": "2.0.4", + "license": "ISC" + }, + "node_modules/ini": { + "version": "4.1.1", + "dev": true, + "license": "ISC", + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/inquirer": { + "version": "8.2.4", + "license": "MIT", + "dependencies": { + "ansi-escapes": "^4.2.1", + "chalk": "^4.1.1", + "cli-cursor": "^3.1.0", + "cli-width": "^3.0.0", + "external-editor": "^3.0.3", + "figures": "^3.0.0", + "lodash": "^4.17.21", + "mute-stream": "0.0.8", + "ora": "^5.4.1", + "run-async": "^2.4.0", + "rxjs": "^7.5.5", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0", + "through": "^2.3.6", + "wrap-ansi": "^7.0.0" + }, + "engines": { + "node": ">=12.0.0" + } + }, + "node_modules/internal-slot": { + "version": "1.0.5", + "dev": true, + "license": "MIT", + "dependencies": { + "get-intrinsic": "^1.2.0", + "has": "^1.0.3", + "side-channel": "^1.0.4" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/ip": { + "version": "2.0.0", + "dev": true, + "license": "MIT" + }, + "node_modules/ipaddr.js": { + "version": "2.1.0", + "license": "MIT", + "engines": { + "node": ">= 10" + } + }, + "node_modules/is-arguments": { + "version": "1.1.1", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.2", + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-array-buffer": { + "version": "3.0.2", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.2", + "get-intrinsic": "^1.2.0", + "is-typed-array": "^1.1.10" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-arrayish": { + "version": "0.2.1", + "license": "MIT" + }, + "node_modules/is-bigint": { + "version": "1.0.4", + "dev": true, + "license": "MIT", + "dependencies": { + "has-bigints": "^1.0.1" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-binary-path": { + "version": "2.1.0", + "license": "MIT", + "dependencies": { + "binary-extensions": "^2.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/is-boolean-object": { + "version": "1.1.2", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.2", + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-callable": { + "version": "1.2.7", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-core-module": { + "version": "2.13.0", + "license": "MIT", + "dependencies": { + "has": "^1.0.3" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-date-object": { + "version": "1.0.5", + "dev": true, + "license": "MIT", + "dependencies": { + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-docker": { + "version": "2.2.1", + "license": "MIT", + "bin": { + "is-docker": "cli.js" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/is-extglob": { + "version": "2.1.1", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/is-generator-fn": { + "version": "2.1.0", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/is-glob": { + "version": "4.0.3", + "license": "MIT", + "dependencies": { + "is-extglob": "^2.1.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-interactive": { + "version": "1.0.0", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/is-lambda": { + "version": "1.0.1", + "dev": true, + "license": "MIT" + }, + "node_modules/is-map": { + "version": "2.0.2", + "dev": true, + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-number": { + "version": "7.0.0", + "license": "MIT", + "engines": { + "node": ">=0.12.0" + } + }, + "node_modules/is-number-object": { + "version": "1.0.7", + "dev": true, + "license": "MIT", + "dependencies": { + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-path-inside": { + "version": "3.0.3", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/is-plain-obj": { + "version": "3.0.0", + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/is-plain-object": { + "version": "2.0.4", + "license": "MIT", + "dependencies": { + "isobject": "^3.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-potential-custom-element-name": { + "version": "1.0.1", + "license": "MIT" + }, + "node_modules/is-regex": { + "version": "1.1.4", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.2", + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-set": { + "version": "2.0.2", + "dev": true, + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-shared-array-buffer": { + "version": "1.0.2", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.2" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-stream": { + "version": "2.0.1", + "license": "MIT", + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/is-string": { + "version": "1.0.7", + "dev": true, + "license": "MIT", + "dependencies": { + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-symbol": { + "version": "1.0.4", + "dev": true, + "license": "MIT", + "dependencies": { + "has-symbols": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-typed-array": { + "version": "1.1.12", + "dev": true, + "license": "MIT", + "dependencies": { + "which-typed-array": "^1.1.11" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-unicode-supported": { + "version": "0.1.0", + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/is-weakmap": { + "version": "2.0.1", + "dev": true, + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-weakset": { + "version": "2.0.2", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.2", + "get-intrinsic": "^1.1.1" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-what": { + "version": "3.14.1", + "license": "MIT" + }, + "node_modules/is-wsl": { + "version": "2.2.0", + "license": "MIT", + "dependencies": { + "is-docker": "^2.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/isarray": { + "version": "1.0.0", + "license": "MIT" + }, + "node_modules/isexe": { + "version": "2.0.0", + "license": "ISC" + }, + "node_modules/isobject": { + "version": "3.0.1", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/istanbul-lib-coverage": { + "version": "3.2.0", + "license": "BSD-3-Clause", + "engines": { + "node": ">=8" + } + }, + "node_modules/istanbul-lib-instrument": { + "version": "6.0.0", + "license": "BSD-3-Clause", + "dependencies": { + "@babel/core": "^7.12.3", + "@babel/parser": "^7.14.7", + "@istanbuljs/schema": "^0.1.2", + "istanbul-lib-coverage": "^3.2.0", + "semver": "^7.5.4" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/istanbul-lib-instrument/node_modules/lru-cache": { + "version": "6.0.0", + "license": "ISC", + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/istanbul-lib-instrument/node_modules/semver": { + "version": "7.5.4", + "license": "ISC", + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/istanbul-lib-instrument/node_modules/yallist": { + "version": "4.0.0", + "license": "ISC" + }, + "node_modules/istanbul-lib-report": { + "version": "3.0.1", + "license": "BSD-3-Clause", + "dependencies": { + "istanbul-lib-coverage": "^3.0.0", + "make-dir": "^4.0.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/istanbul-lib-report/node_modules/make-dir": { + "version": "4.0.0", + "license": "MIT", + "dependencies": { + "semver": "^7.5.3" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/istanbul-lib-source-maps": { + "version": "4.0.1", + "license": "BSD-3-Clause", + "dependencies": { + "debug": "^4.1.1", + "istanbul-lib-coverage": "^3.0.0", + "source-map": "^0.6.1" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/istanbul-lib-source-maps/node_modules/source-map": { + "version": "0.6.1", + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/istanbul-reports": { + "version": "3.1.6", + "license": "BSD-3-Clause", + "dependencies": { + "html-escaper": "^2.0.0", + "istanbul-lib-report": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jackspeak": { + "version": "2.3.0", + "dev": true, + "license": "BlueOak-1.0.0", + "dependencies": { + "@isaacs/cliui": "^8.0.2" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + }, + "optionalDependencies": { + "@pkgjs/parseargs": "^0.11.0" + } + }, + "node_modules/jake": { + "version": "10.8.7", + "license": "Apache-2.0", + "dependencies": { + "async": "^3.2.3", + "chalk": "^4.0.2", + "filelist": "^1.0.4", + "minimatch": "^3.1.2" + }, + "bin": { + "jake": "bin/cli.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/jake/node_modules/minimatch": { + "version": "3.1.2", + "license": "ISC", + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/jest": { + "version": "29.6.4", + "devOptional": true, + "license": "MIT", + "dependencies": { + "@jest/core": "^29.6.4", + "@jest/types": "^29.6.3", + "import-local": "^3.0.2", + "jest-cli": "^29.6.4" + }, + "bin": { + "jest": "bin/jest.js" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" + }, + "peerDependenciesMeta": { + "node-notifier": { + "optional": true + } + } + }, + "node_modules/jest-changed-files": { + "version": "29.6.3", + "devOptional": true, + "license": "MIT", + "dependencies": { + "execa": "^5.0.0", + "jest-util": "^29.6.3", + "p-limit": "^3.1.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-circus": { + "version": "29.6.4", + "license": "MIT", + "dependencies": { + "@jest/environment": "^29.6.4", + "@jest/expect": "^29.6.4", + "@jest/test-result": "^29.6.4", + "@jest/types": "^29.6.3", + "@types/node": "*", + "chalk": "^4.0.0", + "co": "^4.6.0", + "dedent": "^1.0.0", + "is-generator-fn": "^2.0.0", + "jest-each": "^29.6.3", + "jest-matcher-utils": "^29.6.4", + "jest-message-util": "^29.6.3", + "jest-runtime": "^29.6.4", + "jest-snapshot": "^29.6.4", + "jest-util": "^29.6.3", + "p-limit": "^3.1.0", + "pretty-format": "^29.6.3", + "pure-rand": "^6.0.0", + "slash": "^3.0.0", + "stack-utils": "^2.0.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-cli": { + "version": "29.6.4", + "devOptional": true, + "license": "MIT", + "dependencies": { + "@jest/core": "^29.6.4", + "@jest/test-result": "^29.6.4", + "@jest/types": "^29.6.3", + "chalk": "^4.0.0", + "exit": "^0.1.2", + "graceful-fs": "^4.2.9", + "import-local": "^3.0.2", + "jest-config": "^29.6.4", + "jest-util": "^29.6.3", + "jest-validate": "^29.6.3", + "prompts": "^2.0.1", + "yargs": "^17.3.1" + }, + "bin": { + "jest": "bin/jest.js" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" + }, + "peerDependenciesMeta": { + "node-notifier": { + "optional": true + } + } + }, + "node_modules/jest-config": { + "version": "29.6.4", + "license": "MIT", + "dependencies": { + "@babel/core": "^7.11.6", + "@jest/test-sequencer": "^29.6.4", + "@jest/types": "^29.6.3", + "babel-jest": "^29.6.4", + "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.4", + "jest-environment-node": "^29.6.4", + "jest-get-type": "^29.6.3", + "jest-regex-util": "^29.6.3", + "jest-resolve": "^29.6.4", + "jest-runner": "^29.6.4", + "jest-util": "^29.6.3", + "jest-validate": "^29.6.3", + "micromatch": "^4.0.4", + "parse-json": "^5.2.0", + "pretty-format": "^29.6.3", + "slash": "^3.0.0", + "strip-json-comments": "^3.1.1" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "@types/node": "*", + "ts-node": ">=9.0.0" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + }, + "ts-node": { + "optional": true + } + } + }, + "node_modules/jest-diff": { + "version": "29.6.4", + "license": "MIT", + "dependencies": { + "chalk": "^4.0.0", + "diff-sequences": "^29.6.3", + "jest-get-type": "^29.6.3", + "pretty-format": "^29.6.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-docblock": { + "version": "29.6.3", + "license": "MIT", + "dependencies": { + "detect-newline": "^3.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-each": { + "version": "29.6.3", + "license": "MIT", + "dependencies": { + "@jest/types": "^29.6.3", + "chalk": "^4.0.0", + "jest-get-type": "^29.6.3", + "jest-util": "^29.6.3", + "pretty-format": "^29.6.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-environment-jsdom": { + "version": "29.6.4", + "devOptional": true, + "license": "MIT", + "dependencies": { + "@jest/environment": "^29.6.4", + "@jest/fake-timers": "^29.6.4", + "@jest/types": "^29.6.3", + "@types/jsdom": "^20.0.0", + "@types/node": "*", + "jest-mock": "^29.6.3", + "jest-util": "^29.6.3", + "jsdom": "^20.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "canvas": "^2.5.0" + }, + "peerDependenciesMeta": { + "canvas": { + "optional": true + } + } + }, + "node_modules/jest-environment-jsdom/node_modules/@tootallnate/once": { + "version": "2.0.0", + "devOptional": true, + "license": "MIT", + "engines": { + "node": ">= 10" + } + }, + "node_modules/jest-environment-jsdom/node_modules/acorn-globals": { + "version": "7.0.1", + "devOptional": true, + "license": "MIT", + "dependencies": { + "acorn": "^8.1.0", + "acorn-walk": "^8.0.2" + } + }, + "node_modules/jest-environment-jsdom/node_modules/cssom": { + "version": "0.5.0", + "devOptional": true, + "license": "MIT" + }, + "node_modules/jest-environment-jsdom/node_modules/data-urls": { + "version": "3.0.2", + "devOptional": true, + "license": "MIT", + "dependencies": { + "abab": "^2.0.6", + "whatwg-mimetype": "^3.0.0", + "whatwg-url": "^11.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/jest-environment-jsdom/node_modules/domexception": { + "version": "4.0.0", + "devOptional": true, + "license": "MIT", + "dependencies": { + "webidl-conversions": "^7.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/jest-environment-jsdom/node_modules/html-encoding-sniffer": { + "version": "3.0.0", + "devOptional": true, + "license": "MIT", + "dependencies": { + "whatwg-encoding": "^2.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/jest-environment-jsdom/node_modules/http-proxy-agent": { + "version": "5.0.0", + "devOptional": true, + "license": "MIT", + "dependencies": { + "@tootallnate/once": "2", + "agent-base": "6", + "debug": "4" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/jest-environment-jsdom/node_modules/jsdom": { + "version": "20.0.3", + "devOptional": true, + "license": "MIT", + "dependencies": { + "abab": "^2.0.6", + "acorn": "^8.8.1", + "acorn-globals": "^7.0.0", + "cssom": "^0.5.0", + "cssstyle": "^2.3.0", + "data-urls": "^3.0.2", + "decimal.js": "^10.4.2", + "domexception": "^4.0.0", + "escodegen": "^2.0.0", + "form-data": "^4.0.0", + "html-encoding-sniffer": "^3.0.0", + "http-proxy-agent": "^5.0.0", + "https-proxy-agent": "^5.0.1", + "is-potential-custom-element-name": "^1.0.1", + "nwsapi": "^2.2.2", + "parse5": "^7.1.1", + "saxes": "^6.0.0", + "symbol-tree": "^3.2.4", + "tough-cookie": "^4.1.2", + "w3c-xmlserializer": "^4.0.0", + "webidl-conversions": "^7.0.0", + "whatwg-encoding": "^2.0.0", + "whatwg-mimetype": "^3.0.0", + "whatwg-url": "^11.0.0", + "ws": "^8.11.0", + "xml-name-validator": "^4.0.0" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "canvas": "^2.5.0" + }, + "peerDependenciesMeta": { + "canvas": { + "optional": true + } + } + }, + "node_modules/jest-environment-jsdom/node_modules/parse5": { + "version": "7.1.2", + "devOptional": true, + "license": "MIT", + "dependencies": { + "entities": "^4.4.0" + }, + "funding": { + "url": "https://github.com/inikulin/parse5?sponsor=1" + } + }, + "node_modules/jest-environment-jsdom/node_modules/saxes": { + "version": "6.0.0", + "devOptional": true, + "license": "ISC", + "dependencies": { + "xmlchars": "^2.2.0" + }, + "engines": { + "node": ">=v12.22.7" + } + }, + "node_modules/jest-environment-jsdom/node_modules/tr46": { + "version": "3.0.0", + "devOptional": true, + "license": "MIT", + "dependencies": { + "punycode": "^2.1.1" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/jest-environment-jsdom/node_modules/w3c-xmlserializer": { + "version": "4.0.0", + "devOptional": true, + "license": "MIT", + "dependencies": { + "xml-name-validator": "^4.0.0" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/jest-environment-jsdom/node_modules/webidl-conversions": { + "version": "7.0.0", + "devOptional": true, + "license": "BSD-2-Clause", + "engines": { + "node": ">=12" + } + }, + "node_modules/jest-environment-jsdom/node_modules/whatwg-encoding": { + "version": "2.0.0", + "devOptional": true, + "license": "MIT", + "dependencies": { + "iconv-lite": "0.6.3" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/jest-environment-jsdom/node_modules/whatwg-mimetype": { + "version": "3.0.0", + "devOptional": true, + "license": "MIT", + "engines": { + "node": ">=12" + } + }, + "node_modules/jest-environment-jsdom/node_modules/whatwg-url": { + "version": "11.0.0", + "devOptional": true, + "license": "MIT", + "dependencies": { + "tr46": "^3.0.0", + "webidl-conversions": "^7.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/jest-environment-jsdom/node_modules/xml-name-validator": { + "version": "4.0.0", + "devOptional": true, + "license": "Apache-2.0", + "engines": { + "node": ">=12" + } + }, + "node_modules/jest-environment-node": { + "version": "29.6.4", + "license": "MIT", + "dependencies": { + "@jest/environment": "^29.6.4", + "@jest/fake-timers": "^29.6.4", + "@jest/types": "^29.6.3", + "@types/node": "*", + "jest-mock": "^29.6.3", + "jest-util": "^29.6.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-get-type": { + "version": "29.6.3", + "license": "MIT", + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-haste-map": { + "version": "29.6.4", + "license": "MIT", + "dependencies": { + "@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.6.3", + "jest-util": "^29.6.3", + "jest-worker": "^29.6.4", + "micromatch": "^4.0.4", + "walker": "^1.0.8" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "optionalDependencies": { + "fsevents": "^2.3.2" + } + }, + "node_modules/jest-leak-detector": { + "version": "29.6.3", + "license": "MIT", + "dependencies": { + "jest-get-type": "^29.6.3", + "pretty-format": "^29.6.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-matcher-utils": { + "version": "29.6.4", + "license": "MIT", + "dependencies": { + "chalk": "^4.0.0", + "jest-diff": "^29.6.4", + "jest-get-type": "^29.6.3", + "pretty-format": "^29.6.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-message-util": { + "version": "29.6.3", + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.12.13", + "@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.3", + "slash": "^3.0.0", + "stack-utils": "^2.0.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-mock": { + "version": "29.6.3", + "license": "MIT", + "dependencies": { + "@jest/types": "^29.6.3", + "@types/node": "*", + "jest-util": "^29.6.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-pnp-resolver": { + "version": "1.2.3", + "license": "MIT", + "engines": { + "node": ">=6" + }, + "peerDependencies": { + "jest-resolve": "*" + }, + "peerDependenciesMeta": { + "jest-resolve": { + "optional": true + } + } + }, + "node_modules/jest-preset-angular": { + "version": "13.1.1", + "dev": true, + "license": "MIT", + "dependencies": { + "bs-logger": "^0.2.6", + "esbuild-wasm": ">=0.13.8", + "jest-environment-jsdom": "^29.0.0", + "jest-util": "^29.0.0", + "pretty-format": "^29.0.0", + "ts-jest": "^29.0.0" + }, + "engines": { + "node": "^14.15.0 || >=16.10.0" + }, + "optionalDependencies": { + "esbuild": ">=0.13.8" + }, + "peerDependencies": { + "@angular-devkit/build-angular": ">=13.0.0 <17.0.0", + "@angular/compiler-cli": ">=13.0.0 <17.0.0", + "@angular/core": ">=13.0.0 <17.0.0", + "@angular/platform-browser-dynamic": ">=13.0.0 <17.0.0", + "jest": "^29.0.0", + "typescript": ">=4.4" + } + }, + "node_modules/jest-regex-util": { + "version": "29.6.3", + "license": "MIT", + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-resolve": { + "version": "29.6.4", + "license": "MIT", + "dependencies": { + "chalk": "^4.0.0", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^29.6.4", + "jest-pnp-resolver": "^1.2.2", + "jest-util": "^29.6.3", + "jest-validate": "^29.6.3", + "resolve": "^1.20.0", + "resolve.exports": "^2.0.0", + "slash": "^3.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-resolve-dependencies": { + "version": "29.6.4", + "devOptional": true, + "license": "MIT", + "dependencies": { + "jest-regex-util": "^29.6.3", + "jest-snapshot": "^29.6.4" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-resolve/node_modules/resolve.exports": { + "version": "2.0.2", + "license": "MIT", + "engines": { + "node": ">=10" + } + }, + "node_modules/jest-runner": { + "version": "29.6.4", + "license": "MIT", + "dependencies": { + "@jest/console": "^29.6.4", + "@jest/environment": "^29.6.4", + "@jest/test-result": "^29.6.4", + "@jest/transform": "^29.6.4", + "@jest/types": "^29.6.3", + "@types/node": "*", + "chalk": "^4.0.0", + "emittery": "^0.13.1", + "graceful-fs": "^4.2.9", + "jest-docblock": "^29.6.3", + "jest-environment-node": "^29.6.4", + "jest-haste-map": "^29.6.4", + "jest-leak-detector": "^29.6.3", + "jest-message-util": "^29.6.3", + "jest-resolve": "^29.6.4", + "jest-runtime": "^29.6.4", + "jest-util": "^29.6.3", + "jest-watcher": "^29.6.4", + "jest-worker": "^29.6.4", + "p-limit": "^3.1.0", + "source-map-support": "0.5.13" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-runner/node_modules/source-map": { + "version": "0.6.1", + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/jest-runner/node_modules/source-map-support": { + "version": "0.5.13", + "license": "MIT", + "dependencies": { + "buffer-from": "^1.0.0", + "source-map": "^0.6.0" + } + }, + "node_modules/jest-runtime": { + "version": "29.6.4", + "license": "MIT", + "dependencies": { + "@jest/environment": "^29.6.4", + "@jest/fake-timers": "^29.6.4", + "@jest/globals": "^29.6.4", + "@jest/source-map": "^29.6.3", + "@jest/test-result": "^29.6.4", + "@jest/transform": "^29.6.4", + "@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.4", + "jest-message-util": "^29.6.3", + "jest-mock": "^29.6.3", + "jest-regex-util": "^29.6.3", + "jest-resolve": "^29.6.4", + "jest-snapshot": "^29.6.4", + "jest-util": "^29.6.3", + "slash": "^3.0.0", + "strip-bom": "^4.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-snapshot": { + "version": "29.6.4", + "license": "MIT", + "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.4", + "@jest/transform": "^29.6.4", + "@jest/types": "^29.6.3", + "babel-preset-current-node-syntax": "^1.0.0", + "chalk": "^4.0.0", + "expect": "^29.6.4", + "graceful-fs": "^4.2.9", + "jest-diff": "^29.6.4", + "jest-get-type": "^29.6.3", + "jest-matcher-utils": "^29.6.4", + "jest-message-util": "^29.6.3", + "jest-util": "^29.6.3", + "natural-compare": "^1.4.0", + "pretty-format": "^29.6.3", + "semver": "^7.5.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-util": { + "version": "29.6.3", + "license": "MIT", + "dependencies": { + "@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" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-validate": { + "version": "29.6.3", + "license": "MIT", + "dependencies": { + "@jest/types": "^29.6.3", + "camelcase": "^6.2.0", + "chalk": "^4.0.0", + "jest-get-type": "^29.6.3", + "leven": "^3.1.0", + "pretty-format": "^29.6.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-validate/node_modules/camelcase": { + "version": "6.3.0", + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/jest-watcher": { + "version": "29.6.4", + "license": "MIT", + "dependencies": { + "@jest/test-result": "^29.6.4", + "@jest/types": "^29.6.3", + "@types/node": "*", + "ansi-escapes": "^4.2.1", + "chalk": "^4.0.0", + "emittery": "^0.13.1", + "jest-util": "^29.6.3", + "string-length": "^4.0.1" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-worker": { + "version": "29.6.4", + "license": "MIT", + "dependencies": { + "@types/node": "*", + "jest-util": "^29.6.3", + "merge-stream": "^2.0.0", + "supports-color": "^8.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-worker/node_modules/supports-color": { + "version": "8.1.1", + "license": "MIT", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/supports-color?sponsor=1" + } + }, + "node_modules/jiti": { + "version": "1.19.3", + "license": "MIT", + "bin": { + "jiti": "bin/jiti.js" + } + }, + "node_modules/js-tokens": { + "version": "4.0.0", + "license": "MIT" + }, + "node_modules/js-yaml": { + "version": "3.14.1", + "license": "MIT", + "dependencies": { + "argparse": "^1.0.7", + "esprima": "^4.0.0" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "node_modules/jsdom": { + "version": "16.7.0", + "license": "MIT", + "dependencies": { + "abab": "^2.0.5", + "acorn": "^8.2.4", + "acorn-globals": "^6.0.0", + "cssom": "^0.4.4", + "cssstyle": "^2.3.0", + "data-urls": "^2.0.0", + "decimal.js": "^10.2.1", + "domexception": "^2.0.1", + "escodegen": "^2.0.0", + "form-data": "^3.0.0", + "html-encoding-sniffer": "^2.0.1", + "http-proxy-agent": "^4.0.1", + "https-proxy-agent": "^5.0.0", + "is-potential-custom-element-name": "^1.0.1", + "nwsapi": "^2.2.0", + "parse5": "6.0.1", + "saxes": "^5.0.1", + "symbol-tree": "^3.2.4", + "tough-cookie": "^4.0.0", + "w3c-hr-time": "^1.0.2", + "w3c-xmlserializer": "^2.0.0", + "webidl-conversions": "^6.1.0", + "whatwg-encoding": "^1.0.5", + "whatwg-mimetype": "^2.3.0", + "whatwg-url": "^8.5.0", + "ws": "^7.4.6", + "xml-name-validator": "^3.0.0" + }, + "engines": { + "node": ">=10" + }, + "peerDependencies": { + "canvas": "^2.5.0" + }, + "peerDependenciesMeta": { + "canvas": { + "optional": true + } + } + }, + "node_modules/jsdom/node_modules/form-data": { + "version": "3.0.1", + "license": "MIT", + "dependencies": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.8", + "mime-types": "^2.1.12" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/jsdom/node_modules/parse5": { + "version": "6.0.1", + "license": "MIT" + }, + "node_modules/jsdom/node_modules/ws": { + "version": "7.5.9", + "license": "MIT", + "engines": { + "node": ">=8.3.0" + }, + "peerDependencies": { + "bufferutil": "^4.0.1", + "utf-8-validate": "^5.0.2" + }, + "peerDependenciesMeta": { + "bufferutil": { + "optional": true + }, + "utf-8-validate": { + "optional": true + } + } + }, + "node_modules/jsesc": { + "version": "2.5.2", + "license": "MIT", + "bin": { + "jsesc": "bin/jsesc" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/json-parse-even-better-errors": { + "version": "2.3.1", + "license": "MIT" + }, + "node_modules/json-schema-traverse": { + "version": "1.0.0", + "license": "MIT" + }, + "node_modules/json-stable-stringify-without-jsonify": { + "version": "1.0.1", + "license": "MIT" + }, + "node_modules/json5": { + "version": "2.2.3", + "license": "MIT", + "bin": { + "json5": "lib/cli.js" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/jsonc-eslint-parser": { + "version": "2.3.0", + "dev": true, + "license": "MIT", + "dependencies": { + "acorn": "^8.5.0", + "eslint-visitor-keys": "^3.0.0", + "espree": "^9.0.0", + "semver": "^7.3.5" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/ota-meshi" + } + }, + "node_modules/jsonc-parser": { + "version": "3.2.0", + "license": "MIT" + }, + "node_modules/jsonfile": { + "version": "6.1.0", + "license": "MIT", + "dependencies": { + "universalify": "^2.0.0" + }, + "optionalDependencies": { + "graceful-fs": "^4.1.6" + } + }, + "node_modules/jsonparse": { + "version": "1.3.1", + "dev": true, + "engines": [ + "node >= 0.2.0" + ], + "license": "MIT" + }, + "node_modules/karma-source-map-support": { + "version": "1.4.0", + "license": "MIT", + "dependencies": { + "source-map-support": "^0.5.5" + } + }, + "node_modules/kind-of": { + "version": "6.0.3", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/kleur": { + "version": "3.0.3", + "devOptional": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/klona": { + "version": "2.0.6", + "license": "MIT", + "engines": { + "node": ">= 8" + } + }, + "node_modules/launch-editor": { + "version": "2.6.0", + "license": "MIT", + "dependencies": { + "picocolors": "^1.0.0", + "shell-quote": "^1.7.3" + } + }, + "node_modules/less": { + "version": "4.1.3", + "license": "Apache-2.0", + "dependencies": { + "copy-anything": "^2.0.1", + "parse-node-version": "^1.0.1", + "tslib": "^2.3.0" + }, + "bin": { + "lessc": "bin/lessc" + }, + "engines": { + "node": ">=6" + }, + "optionalDependencies": { + "errno": "^0.1.1", + "graceful-fs": "^4.1.2", + "image-size": "~0.5.0", + "make-dir": "^2.1.0", + "mime": "^1.4.1", + "needle": "^3.1.0", + "source-map": "~0.6.0" + } + }, + "node_modules/less-loader": { + "version": "11.1.0", + "license": "MIT", + "dependencies": { + "klona": "^2.0.4" + }, + "engines": { + "node": ">= 14.15.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "less": "^3.5.0 || ^4.0.0", + "webpack": "^5.0.0" + } + }, + "node_modules/less/node_modules/make-dir": { + "version": "2.1.0", + "license": "MIT", + "optional": true, + "dependencies": { + "pify": "^4.0.1", + "semver": "^5.6.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/less/node_modules/pify": { + "version": "4.0.1", + "license": "MIT", + "optional": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/less/node_modules/semver": { + "version": "5.7.2", + "license": "ISC", + "optional": true, + "bin": { + "semver": "bin/semver" + } + }, + "node_modules/less/node_modules/source-map": { + "version": "0.6.1", + "license": "BSD-3-Clause", + "optional": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/leven": { + "version": "3.1.0", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/levn": { + "version": "0.4.1", + "license": "MIT", + "dependencies": { + "prelude-ls": "^1.2.1", + "type-check": "~0.4.0" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/license-webpack-plugin": { + "version": "4.0.2", + "license": "ISC", + "dependencies": { + "webpack-sources": "^3.0.0" + }, + "peerDependenciesMeta": { + "webpack": { + "optional": true + }, + "webpack-sources": { + "optional": true + } + } + }, + "node_modules/lilconfig": { + "version": "2.1.0", + "license": "MIT", + "engines": { + "node": ">=10" + } + }, + "node_modules/lines-and-columns": { + "version": "2.0.3", + "license": "MIT", + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + } + }, + "node_modules/loader-runner": { + "version": "4.3.0", + "license": "MIT", + "engines": { + "node": ">=6.11.5" + } + }, + "node_modules/loader-utils": { + "version": "2.0.4", + "license": "MIT", + "dependencies": { + "big.js": "^5.2.2", + "emojis-list": "^3.0.0", + "json5": "^2.1.2" + }, + "engines": { + "node": ">=8.9.0" + } + }, + "node_modules/locate-path": { + "version": "5.0.0", + "license": "MIT", + "dependencies": { + "p-locate": "^4.1.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/lodash": { + "version": "4.17.21", + "license": "MIT" + }, + "node_modules/lodash.debounce": { + "version": "4.0.8", + "license": "MIT" + }, + "node_modules/lodash.memoize": { + "version": "4.1.2", + "license": "MIT" + }, + "node_modules/lodash.merge": { + "version": "4.6.2", + "license": "MIT" + }, + "node_modules/lodash.uniq": { + "version": "4.5.0", + "license": "MIT" + }, + "node_modules/log-symbols": { + "version": "4.1.0", + "license": "MIT", + "dependencies": { + "chalk": "^4.1.0", + "is-unicode-supported": "^0.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/lru-cache": { + "version": "5.1.1", + "license": "ISC", + "dependencies": { + "yallist": "^3.0.2" + } + }, + "node_modules/magic-string": { + "version": "0.30.3", + "license": "MIT", + "dependencies": { + "@jridgewell/sourcemap-codec": "^1.4.15" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/make-dir": { + "version": "3.1.0", + "license": "MIT", + "dependencies": { + "semver": "^6.0.0" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/make-dir/node_modules/semver": { + "version": "6.3.1", + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/make-error": { + "version": "1.3.6", + "license": "ISC" + }, + "node_modules/make-fetch-happen": { + "version": "11.1.1", + "dev": true, + "license": "ISC", + "dependencies": { + "agentkeepalive": "^4.2.1", + "cacache": "^17.0.0", + "http-cache-semantics": "^4.1.1", + "http-proxy-agent": "^5.0.0", + "https-proxy-agent": "^5.0.0", + "is-lambda": "^1.0.1", + "lru-cache": "^7.7.1", + "minipass": "^5.0.0", + "minipass-fetch": "^3.0.0", + "minipass-flush": "^1.0.5", + "minipass-pipeline": "^1.2.4", + "negotiator": "^0.6.3", + "promise-retry": "^2.0.1", + "socks-proxy-agent": "^7.0.0", + "ssri": "^10.0.0" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/make-fetch-happen/node_modules/@tootallnate/once": { + "version": "2.0.0", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 10" + } + }, + "node_modules/make-fetch-happen/node_modules/http-proxy-agent": { + "version": "5.0.0", + "dev": true, + "license": "MIT", + "dependencies": { + "@tootallnate/once": "2", + "agent-base": "6", + "debug": "4" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/make-fetch-happen/node_modules/lru-cache": { + "version": "7.18.3", + "dev": true, + "license": "ISC", + "engines": { + "node": ">=12" + } + }, + "node_modules/make-fetch-happen/node_modules/minipass": { + "version": "5.0.0", + "dev": true, + "license": "ISC", + "engines": { + "node": ">=8" + } + }, + "node_modules/makeerror": { + "version": "1.0.12", + "license": "BSD-3-Clause", + "dependencies": { + "tmpl": "1.0.5" + } + }, + "node_modules/mdn-data": { + "version": "2.0.30", + "license": "CC0-1.0" + }, + "node_modules/media-typer": { + "version": "0.3.0", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/memfs": { + "version": "3.5.3", + "license": "Unlicense", + "dependencies": { + "fs-monkey": "^1.0.4" + }, + "engines": { + "node": ">= 4.0.0" + } + }, + "node_modules/merge-descriptors": { + "version": "1.0.1", + "license": "MIT" + }, + "node_modules/merge-stream": { + "version": "2.0.0", + "license": "MIT" + }, + "node_modules/merge2": { + "version": "1.4.1", + "license": "MIT", + "engines": { + "node": ">= 8" + } + }, + "node_modules/methods": { + "version": "1.1.2", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/micromatch": { + "version": "4.0.5", + "license": "MIT", + "dependencies": { + "braces": "^3.0.2", + "picomatch": "^2.3.1" + }, + "engines": { + "node": ">=8.6" + } + }, + "node_modules/mime": { + "version": "1.6.0", + "license": "MIT", + "bin": { + "mime": "cli.js" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/mime-db": { + "version": "1.52.0", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mime-types": { + "version": "2.1.35", + "license": "MIT", + "dependencies": { + "mime-db": "1.52.0" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mimic-fn": { + "version": "2.1.0", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/mini-css-extract-plugin": { + "version": "2.4.7", + "license": "MIT", + "dependencies": { + "schema-utils": "^4.0.0" + }, + "engines": { + "node": ">= 12.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "webpack": "^5.0.0" + } + }, + "node_modules/minimalistic-assert": { + "version": "1.0.1", + "license": "ISC" + }, + "node_modules/minimatch": { + "version": "3.0.5", + "license": "ISC", + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/minimist": { + "version": "1.2.8", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/minipass": { + "version": "3.3.6", + "dev": true, + "license": "ISC", + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/minipass-collect": { + "version": "1.0.2", + "dev": true, + "license": "ISC", + "dependencies": { + "minipass": "^3.0.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/minipass-fetch": { + "version": "3.0.4", + "dev": true, + "license": "MIT", + "dependencies": { + "minipass": "^7.0.3", + "minipass-sized": "^1.0.3", + "minizlib": "^2.1.2" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + }, + "optionalDependencies": { + "encoding": "^0.1.13" + } + }, + "node_modules/minipass-fetch/node_modules/minipass": { + "version": "7.0.3", + "dev": true, + "license": "ISC", + "engines": { + "node": ">=16 || 14 >=14.17" + } + }, + "node_modules/minipass-flush": { + "version": "1.0.5", + "dev": true, + "license": "ISC", + "dependencies": { + "minipass": "^3.0.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/minipass-json-stream": { + "version": "1.0.1", + "dev": true, + "license": "MIT", + "dependencies": { + "jsonparse": "^1.3.1", + "minipass": "^3.0.0" + } + }, + "node_modules/minipass-pipeline": { + "version": "1.2.4", + "dev": true, + "license": "ISC", + "dependencies": { + "minipass": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/minipass-sized": { + "version": "1.0.3", + "dev": true, + "license": "ISC", + "dependencies": { + "minipass": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/minipass/node_modules/yallist": { + "version": "4.0.0", + "dev": true, + "license": "ISC" + }, + "node_modules/minizlib": { + "version": "2.1.2", + "dev": true, + "license": "MIT", + "dependencies": { + "minipass": "^3.0.0", + "yallist": "^4.0.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/minizlib/node_modules/yallist": { + "version": "4.0.0", + "dev": true, + "license": "ISC" + }, + "node_modules/mkdirp": { + "version": "1.0.4", + "dev": true, + "license": "MIT", + "bin": { + "mkdirp": "bin/cmd.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/mrmime": { + "version": "1.0.1", + "license": "MIT", + "engines": { + "node": ">=10" + } + }, + "node_modules/ms": { + "version": "2.1.2", + "license": "MIT" + }, + "node_modules/multicast-dns": { + "version": "7.2.5", + "license": "MIT", + "dependencies": { + "dns-packet": "^5.2.2", + "thunky": "^1.0.2" + }, + "bin": { + "multicast-dns": "cli.js" + } + }, + "node_modules/mute-stream": { + "version": "0.0.8", + "license": "ISC" + }, + "node_modules/nanoid": { + "version": "3.3.6", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "bin": { + "nanoid": "bin/nanoid.cjs" + }, + "engines": { + "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" + } + }, + "node_modules/natural-compare": { + "version": "1.4.0", + "license": "MIT" + }, + "node_modules/natural-compare-lite": { + "version": "1.4.0", + "dev": true, + "license": "MIT" + }, + "node_modules/needle": { + "version": "3.2.0", + "license": "MIT", + "optional": true, + "dependencies": { + "debug": "^3.2.6", + "iconv-lite": "^0.6.3", + "sax": "^1.2.4" + }, + "bin": { + "needle": "bin/needle" + }, + "engines": { + "node": ">= 4.4.x" + } + }, + "node_modules/needle/node_modules/debug": { + "version": "3.2.7", + "license": "MIT", + "optional": true, + "dependencies": { + "ms": "^2.1.1" + } + }, + "node_modules/negotiator": { + "version": "0.6.3", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/neo-async": { + "version": "2.6.2", + "license": "MIT" + }, + "node_modules/nice-napi": { + "version": "1.0.2", + "hasInstallScript": true, + "license": "MIT", + "optional": true, + "os": [ + "!win32" + ], + "dependencies": { + "node-addon-api": "^3.0.0", + "node-gyp-build": "^4.2.2" + } + }, + "node_modules/node-abort-controller": { + "version": "3.1.1", + "license": "MIT" + }, + "node_modules/node-addon-api": { + "version": "3.2.1", + "license": "MIT" + }, + "node_modules/node-forge": { + "version": "1.3.1", + "license": "(BSD-3-Clause OR GPL-2.0)", + "engines": { + "node": ">= 6.13.0" + } + }, + "node_modules/node-gyp": { + "version": "9.4.0", + "dev": true, + "license": "MIT", + "dependencies": { + "env-paths": "^2.2.0", + "exponential-backoff": "^3.1.1", + "glob": "^7.1.4", + "graceful-fs": "^4.2.6", + "make-fetch-happen": "^11.0.3", + "nopt": "^6.0.0", + "npmlog": "^6.0.0", + "rimraf": "^3.0.2", + "semver": "^7.3.5", + "tar": "^6.1.2", + "which": "^2.0.2" + }, + "bin": { + "node-gyp": "bin/node-gyp.js" + }, + "engines": { + "node": "^12.13 || ^14.13 || >=16" + } + }, + "node_modules/node-gyp-build": { + "version": "4.6.0", + "license": "MIT", + "bin": { + "node-gyp-build": "bin.js", + "node-gyp-build-optional": "optional.js", + "node-gyp-build-test": "build-test.js" + } + }, + "node_modules/node-int64": { + "version": "0.4.0", + "license": "MIT" + }, + "node_modules/node-machine-id": { + "version": "1.1.12", + "license": "MIT" + }, + "node_modules/node-releases": { + "version": "2.0.13", + "license": "MIT" + }, + "node_modules/nopt": { + "version": "6.0.0", + "dev": true, + "license": "ISC", + "dependencies": { + "abbrev": "^1.0.0" + }, + "bin": { + "nopt": "bin/nopt.js" + }, + "engines": { + "node": "^12.13.0 || ^14.15.0 || >=16.0.0" + } + }, + "node_modules/normalize-package-data": { + "version": "5.0.0", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "hosted-git-info": "^6.0.0", + "is-core-module": "^2.8.1", + "semver": "^7.3.5", + "validate-npm-package-license": "^3.0.4" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/normalize-path": { + "version": "3.0.0", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/normalize-range": { + "version": "0.1.2", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/npm-bundled": { + "version": "3.0.0", + "dev": true, + "license": "ISC", + "dependencies": { + "npm-normalize-package-bin": "^3.0.0" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm-install-checks": { + "version": "6.2.0", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "semver": "^7.1.1" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm-normalize-package-bin": { + "version": "3.0.1", + "dev": true, + "license": "ISC", + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm-package-arg": { + "version": "10.1.0", + "dev": true, + "license": "ISC", + "dependencies": { + "hosted-git-info": "^6.0.0", + "proc-log": "^3.0.0", + "semver": "^7.3.5", + "validate-npm-package-name": "^5.0.0" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm-packlist": { + "version": "7.0.4", + "dev": true, + "license": "ISC", + "dependencies": { + "ignore-walk": "^6.0.0" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm-pick-manifest": { + "version": "8.0.1", + "dev": true, + "license": "ISC", + "dependencies": { + "npm-install-checks": "^6.0.0", + "npm-normalize-package-bin": "^3.0.0", + "npm-package-arg": "^10.0.0", + "semver": "^7.3.5" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm-registry-fetch": { + "version": "14.0.5", + "dev": true, + "license": "ISC", + "dependencies": { + "make-fetch-happen": "^11.0.0", + "minipass": "^5.0.0", + "minipass-fetch": "^3.0.0", + "minipass-json-stream": "^1.0.1", + "minizlib": "^2.1.2", + "npm-package-arg": "^10.0.0", + "proc-log": "^3.0.0" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm-registry-fetch/node_modules/minipass": { + "version": "5.0.0", + "dev": true, + "license": "ISC", + "engines": { + "node": ">=8" + } + }, + "node_modules/npm-run-path": { + "version": "4.0.1", + "license": "MIT", + "dependencies": { + "path-key": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/npmlog": { + "version": "6.0.2", + "dev": true, + "license": "ISC", + "dependencies": { + "are-we-there-yet": "^3.0.0", + "console-control-strings": "^1.1.0", + "gauge": "^4.0.3", + "set-blocking": "^2.0.0" + }, + "engines": { + "node": "^12.13.0 || ^14.15.0 || >=16.0.0" + } + }, + "node_modules/nth-check": { + "version": "2.1.1", + "license": "BSD-2-Clause", + "dependencies": { + "boolbase": "^1.0.0" + }, + "funding": { + "url": "https://github.com/fb55/nth-check?sponsor=1" + } + }, + "node_modules/nwsapi": { + "version": "2.2.7", + "license": "MIT" + }, + "node_modules/nx": { + "version": "16.7.4", + "hasInstallScript": true, + "license": "MIT", + "dependencies": { + "@nrwl/tao": "16.7.4", + "@parcel/watcher": "2.0.4", + "@yarnpkg/lockfile": "^1.1.0", + "@yarnpkg/parsers": "3.0.0-rc.46", + "@zkochan/js-yaml": "0.0.6", + "axios": "^1.0.0", + "chalk": "^4.1.0", + "cli-cursor": "3.1.0", + "cli-spinners": "2.6.1", + "cliui": "^7.0.2", + "dotenv": "~16.3.1", + "enquirer": "~2.3.6", + "fast-glob": "3.2.7", + "figures": "3.2.0", + "flat": "^5.0.2", + "fs-extra": "^11.1.0", + "glob": "7.1.4", + "ignore": "^5.0.4", + "js-yaml": "4.1.0", + "jsonc-parser": "3.2.0", + "lines-and-columns": "~2.0.3", + "minimatch": "3.0.5", + "node-machine-id": "1.1.12", + "npm-run-path": "^4.0.1", + "open": "^8.4.0", + "semver": "7.5.3", + "string-width": "^4.2.3", + "strong-log-transformer": "^2.1.0", + "tar-stream": "~2.2.0", + "tmp": "~0.2.1", + "tsconfig-paths": "^4.1.2", + "tslib": "^2.3.0", + "v8-compile-cache": "2.3.0", + "yargs": "^17.6.2", + "yargs-parser": "21.1.1" + }, + "bin": { + "nx": "bin/nx.js" + }, + "optionalDependencies": { + "@nx/nx-darwin-arm64": "16.7.4", + "@nx/nx-darwin-x64": "16.7.4", + "@nx/nx-freebsd-x64": "16.7.4", + "@nx/nx-linux-arm-gnueabihf": "16.7.4", + "@nx/nx-linux-arm64-gnu": "16.7.4", + "@nx/nx-linux-arm64-musl": "16.7.4", + "@nx/nx-linux-x64-gnu": "16.7.4", + "@nx/nx-linux-x64-musl": "16.7.4", + "@nx/nx-win32-arm64-msvc": "16.7.4", + "@nx/nx-win32-x64-msvc": "16.7.4" + }, + "peerDependencies": { + "@swc-node/register": "^1.4.2", + "@swc/core": "^1.2.173" + }, + "peerDependenciesMeta": { + "@swc-node/register": { + "optional": true + }, + "@swc/core": { + "optional": true + } + } + }, + "node_modules/nx-cloud": { + "version": "16.4.0", + "resolved": "https://registry.npmjs.org/nx-cloud/-/nx-cloud-16.4.0.tgz", + "integrity": "sha512-jbq4hWvDwRlJVpxgMgbmNSkue+6XZSn53R6Vo6qmCAWODJ9KY1BZdZ/9VRL8IX/BRKebVFiXp3SapFB1qPhH8A==", + "dev": true, + "dependencies": { + "@nrwl/nx-cloud": "16.4.0", + "axios": "1.1.3", + "chalk": "^4.1.0", + "dotenv": "~10.0.0", + "fs-extra": "^11.1.0", + "node-machine-id": "^1.1.12", + "open": "~8.4.0", + "strip-json-comments": "^3.1.1", + "tar": "6.1.11", + "yargs-parser": ">=21.1.1" + }, + "bin": { + "nx-cloud": "bin/nx-cloud.js" + } + }, + "node_modules/nx-cloud/node_modules/axios": { + "version": "1.1.3", + "dev": true, + "license": "MIT", + "dependencies": { + "follow-redirects": "^1.15.0", + "form-data": "^4.0.0", + "proxy-from-env": "^1.1.0" + } + }, + "node_modules/nx-cloud/node_modules/dotenv": { + "version": "10.0.0", + "dev": true, + "license": "BSD-2-Clause", + "engines": { + "node": ">=10" + } + }, + "node_modules/nx/node_modules/argparse": { + "version": "2.0.1", + "license": "Python-2.0" + }, + "node_modules/nx/node_modules/enquirer": { + "version": "2.3.6", + "license": "MIT", + "dependencies": { + "ansi-colors": "^4.1.1" + }, + "engines": { + "node": ">=8.6" + } + }, + "node_modules/nx/node_modules/glob": { + "version": "7.1.4", + "license": "ISC", + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.0.4", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + } + }, + "node_modules/nx/node_modules/js-yaml": { + "version": "4.1.0", + "license": "MIT", + "dependencies": { + "argparse": "^2.0.1" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "node_modules/object-inspect": { + "version": "1.12.3", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/object-is": { + "version": "1.1.5", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/object-keys": { + "version": "1.1.1", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/object-path": { + "version": "0.11.8", + "license": "MIT", + "engines": { + "node": ">= 10.12.0" + } + }, + "node_modules/object.assign": { + "version": "4.1.4", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "has-symbols": "^1.0.3", + "object-keys": "^1.1.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/obuf": { + "version": "1.1.2", + "license": "MIT" + }, + "node_modules/on-finished": { + "version": "2.4.1", + "license": "MIT", + "dependencies": { + "ee-first": "1.1.1" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/on-headers": { + "version": "1.0.2", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/once": { + "version": "1.4.0", + "license": "ISC", + "dependencies": { + "wrappy": "1" + } + }, + "node_modules/onetime": { + "version": "5.1.2", + "license": "MIT", + "dependencies": { + "mimic-fn": "^2.1.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/open": { + "version": "8.4.2", + "license": "MIT", + "dependencies": { + "define-lazy-prop": "^2.0.0", + "is-docker": "^2.1.1", + "is-wsl": "^2.2.0" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/optionator": { + "version": "0.9.3", + "license": "MIT", + "dependencies": { + "@aashutoshrathi/word-wrap": "^1.2.3", + "deep-is": "^0.1.3", + "fast-levenshtein": "^2.0.6", + "levn": "^0.4.1", + "prelude-ls": "^1.2.1", + "type-check": "^0.4.0" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/ora": { + "version": "5.4.1", + "license": "MIT", + "dependencies": { + "bl": "^4.1.0", + "chalk": "^4.1.0", + "cli-cursor": "^3.1.0", + "cli-spinners": "^2.5.0", + "is-interactive": "^1.0.0", + "is-unicode-supported": "^0.1.0", + "log-symbols": "^4.1.0", + "strip-ansi": "^6.0.0", + "wcwidth": "^1.0.1" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/os-tmpdir": { + "version": "1.0.2", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/p-limit": { + "version": "3.1.0", + "license": "MIT", + "dependencies": { + "yocto-queue": "^0.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-locate": { + "version": "4.1.0", + "license": "MIT", + "dependencies": { + "p-limit": "^2.2.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/p-locate/node_modules/p-limit": { + "version": "2.3.0", + "license": "MIT", + "dependencies": { + "p-try": "^2.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-map": { + "version": "4.0.0", + "dev": true, + "license": "MIT", + "dependencies": { + "aggregate-error": "^3.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-retry": { + "version": "4.6.2", + "license": "MIT", + "dependencies": { + "@types/retry": "0.12.0", + "retry": "^0.13.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/p-try": { + "version": "2.2.0", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/pacote": { + "version": "15.2.0", + "dev": true, + "license": "ISC", + "dependencies": { + "@npmcli/git": "^4.0.0", + "@npmcli/installed-package-contents": "^2.0.1", + "@npmcli/promise-spawn": "^6.0.1", + "@npmcli/run-script": "^6.0.0", + "cacache": "^17.0.0", + "fs-minipass": "^3.0.0", + "minipass": "^5.0.0", + "npm-package-arg": "^10.0.0", + "npm-packlist": "^7.0.0", + "npm-pick-manifest": "^8.0.0", + "npm-registry-fetch": "^14.0.0", + "proc-log": "^3.0.0", + "promise-retry": "^2.0.1", + "read-package-json": "^6.0.0", + "read-package-json-fast": "^3.0.0", + "sigstore": "^1.3.0", + "ssri": "^10.0.0", + "tar": "^6.1.11" + }, + "bin": { + "pacote": "lib/bin.js" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/pacote/node_modules/fs-minipass": { + "version": "3.0.3", + "dev": true, + "license": "ISC", + "dependencies": { + "minipass": "^7.0.3" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/pacote/node_modules/fs-minipass/node_modules/minipass": { + "version": "7.0.3", + "dev": true, + "license": "ISC", + "engines": { + "node": ">=16 || 14 >=14.17" + } + }, + "node_modules/pacote/node_modules/minipass": { + "version": "5.0.0", + "dev": true, + "license": "ISC", + "engines": { + "node": ">=8" + } + }, + "node_modules/pako": { + "version": "1.0.11", + "license": "(MIT AND Zlib)" + }, + "node_modules/parent-module": { + "version": "1.0.1", + "license": "MIT", + "dependencies": { + "callsites": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/parse-json": { + "version": "5.2.0", + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.0.0", + "error-ex": "^1.3.1", + "json-parse-even-better-errors": "^2.3.0", + "lines-and-columns": "^1.1.6" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/parse-json/node_modules/lines-and-columns": { + "version": "1.2.4", + "license": "MIT" + }, + "node_modules/parse-node-version": { + "version": "1.0.1", + "license": "MIT", + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/parse5": { + "version": "4.0.0", + "license": "MIT" + }, + "node_modules/parse5-html-rewriting-stream": { + "version": "7.0.0", + "license": "MIT", + "dependencies": { + "entities": "^4.3.0", + "parse5": "^7.0.0", + "parse5-sax-parser": "^7.0.0" + }, + "funding": { + "url": "https://github.com/inikulin/parse5?sponsor=1" + } + }, + "node_modules/parse5-html-rewriting-stream/node_modules/parse5": { + "version": "7.1.2", + "license": "MIT", + "dependencies": { + "entities": "^4.4.0" + }, + "funding": { + "url": "https://github.com/inikulin/parse5?sponsor=1" + } + }, + "node_modules/parse5-sax-parser": { + "version": "7.0.0", + "license": "MIT", + "dependencies": { + "parse5": "^7.0.0" + }, + "funding": { + "url": "https://github.com/inikulin/parse5?sponsor=1" + } + }, + "node_modules/parse5-sax-parser/node_modules/parse5": { + "version": "7.1.2", + "license": "MIT", + "dependencies": { + "entities": "^4.4.0" + }, + "funding": { + "url": "https://github.com/inikulin/parse5?sponsor=1" + } + }, + "node_modules/parseurl": { + "version": "1.3.3", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/path-exists": { + "version": "4.0.0", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/path-is-absolute": { + "version": "1.0.1", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/path-key": { + "version": "3.1.1", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/path-parse": { + "version": "1.0.7", + "license": "MIT" + }, + "node_modules/path-scurry": { + "version": "1.10.1", + "dev": true, + "license": "BlueOak-1.0.0", + "dependencies": { + "lru-cache": "^9.1.1 || ^10.0.0", + "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/path-scurry/node_modules/lru-cache": { + "version": "10.0.1", + "dev": true, + "license": "ISC", + "engines": { + "node": "14 || >=16.14" + } + }, + "node_modules/path-scurry/node_modules/minipass": { + "version": "7.0.3", + "dev": true, + "license": "ISC", + "engines": { + "node": ">=16 || 14 >=14.17" + } + }, + "node_modules/path-to-regexp": { + "version": "0.1.7", + "license": "MIT" + }, + "node_modules/path-type": { + "version": "4.0.0", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/picocolors": { + "version": "1.0.0", + "license": "ISC" + }, + "node_modules/picomatch": { + "version": "2.3.1", + "license": "MIT", + "engines": { + "node": ">=8.6" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/pify": { + "version": "2.3.0", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/pirates": { + "version": "4.0.6", + "license": "MIT", + "engines": { + "node": ">= 6" + } + }, + "node_modules/piscina": { + "version": "4.0.0", + "license": "MIT", + "dependencies": { + "eventemitter-asyncresource": "^1.0.0", + "hdr-histogram-js": "^2.0.1", + "hdr-histogram-percentiles-obj": "^3.0.0" + }, + "optionalDependencies": { + "nice-napi": "^1.0.2" + } + }, + "node_modules/pkg-dir": { + "version": "4.2.0", + "license": "MIT", + "dependencies": { + "find-up": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/postcss": { + "version": "8.4.28", + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/postcss" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "nanoid": "^3.3.6", + "picocolors": "^1.0.0", + "source-map-js": "^1.0.2" + }, + "engines": { + "node": "^10 || ^12 || >=14" + } + }, + "node_modules/postcss-calc": { + "version": "9.0.1", + "license": "MIT", + "dependencies": { + "postcss-selector-parser": "^6.0.11", + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^14 || ^16 || >=18.0" + }, + "peerDependencies": { + "postcss": "^8.2.2" + } + }, + "node_modules/postcss-colormin": { + "version": "6.0.0", + "license": "MIT", + "dependencies": { + "browserslist": "^4.21.4", + "caniuse-api": "^3.0.0", + "colord": "^2.9.1", + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^14 || ^16 || >=18.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-convert-values": { + "version": "6.0.0", + "license": "MIT", + "dependencies": { + "browserslist": "^4.21.4", + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^14 || ^16 || >=18.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-discard-comments": { + "version": "6.0.0", + "license": "MIT", + "engines": { + "node": "^14 || ^16 || >=18.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-discard-duplicates": { + "version": "6.0.0", + "license": "MIT", + "engines": { + "node": "^14 || ^16 || >=18.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-discard-empty": { + "version": "6.0.0", + "license": "MIT", + "engines": { + "node": "^14 || ^16 || >=18.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-discard-overridden": { + "version": "6.0.0", + "license": "MIT", + "engines": { + "node": "^14 || ^16 || >=18.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-import": { + "version": "14.1.0", + "license": "MIT", + "dependencies": { + "postcss-value-parser": "^4.0.0", + "read-cache": "^1.0.0", + "resolve": "^1.1.7" + }, + "engines": { + "node": ">=10.0.0" + }, + "peerDependencies": { + "postcss": "^8.0.0" + } + }, + "node_modules/postcss-loader": { + "version": "6.2.1", + "license": "MIT", + "dependencies": { + "cosmiconfig": "^7.0.0", + "klona": "^2.0.5", + "semver": "^7.3.5" + }, + "engines": { + "node": ">= 12.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "postcss": "^7.0.0 || ^8.0.1", + "webpack": "^5.0.0" + } + }, + "node_modules/postcss-merge-longhand": { + "version": "6.0.0", + "license": "MIT", + "dependencies": { + "postcss-value-parser": "^4.2.0", + "stylehacks": "^6.0.0" + }, + "engines": { + "node": "^14 || ^16 || >=18.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-merge-rules": { + "version": "6.0.1", + "license": "MIT", + "dependencies": { + "browserslist": "^4.21.4", + "caniuse-api": "^3.0.0", + "cssnano-utils": "^4.0.0", + "postcss-selector-parser": "^6.0.5" + }, + "engines": { + "node": "^14 || ^16 || >=18.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-minify-font-values": { + "version": "6.0.0", + "license": "MIT", + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^14 || ^16 || >=18.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-minify-gradients": { + "version": "6.0.0", + "license": "MIT", + "dependencies": { + "colord": "^2.9.1", + "cssnano-utils": "^4.0.0", + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^14 || ^16 || >=18.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-minify-params": { + "version": "6.0.0", + "license": "MIT", + "dependencies": { + "browserslist": "^4.21.4", + "cssnano-utils": "^4.0.0", + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^14 || ^16 || >=18.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-minify-selectors": { + "version": "6.0.0", + "license": "MIT", + "dependencies": { + "postcss-selector-parser": "^6.0.5" + }, + "engines": { + "node": "^14 || ^16 || >=18.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-modules-extract-imports": { + "version": "3.0.0", + "license": "ISC", + "engines": { + "node": "^10 || ^12 || >= 14" + }, + "peerDependencies": { + "postcss": "^8.1.0" + } + }, + "node_modules/postcss-modules-local-by-default": { + "version": "4.0.3", + "license": "MIT", + "dependencies": { + "icss-utils": "^5.0.0", + "postcss-selector-parser": "^6.0.2", + "postcss-value-parser": "^4.1.0" + }, + "engines": { + "node": "^10 || ^12 || >= 14" + }, + "peerDependencies": { + "postcss": "^8.1.0" + } + }, + "node_modules/postcss-modules-scope": { + "version": "3.0.0", + "license": "ISC", + "dependencies": { + "postcss-selector-parser": "^6.0.4" + }, + "engines": { + "node": "^10 || ^12 || >= 14" + }, + "peerDependencies": { + "postcss": "^8.1.0" + } + }, + "node_modules/postcss-modules-values": { + "version": "4.0.0", + "license": "ISC", + "dependencies": { + "icss-utils": "^5.0.0" + }, + "engines": { + "node": "^10 || ^12 || >= 14" + }, + "peerDependencies": { + "postcss": "^8.1.0" + } + }, + "node_modules/postcss-normalize-charset": { + "version": "6.0.0", + "license": "MIT", + "engines": { + "node": "^14 || ^16 || >=18.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-normalize-display-values": { + "version": "6.0.0", + "license": "MIT", + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^14 || ^16 || >=18.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-normalize-positions": { + "version": "6.0.0", + "license": "MIT", + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^14 || ^16 || >=18.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-normalize-repeat-style": { + "version": "6.0.0", + "license": "MIT", + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^14 || ^16 || >=18.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-normalize-string": { + "version": "6.0.0", + "license": "MIT", + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^14 || ^16 || >=18.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-normalize-timing-functions": { + "version": "6.0.0", + "license": "MIT", + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^14 || ^16 || >=18.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-normalize-unicode": { + "version": "6.0.0", + "license": "MIT", + "dependencies": { + "browserslist": "^4.21.4", + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^14 || ^16 || >=18.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-normalize-url": { + "version": "6.0.0", + "license": "MIT", + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^14 || ^16 || >=18.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-normalize-whitespace": { + "version": "6.0.0", + "license": "MIT", + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^14 || ^16 || >=18.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-ordered-values": { + "version": "6.0.0", + "license": "MIT", + "dependencies": { + "cssnano-utils": "^4.0.0", + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^14 || ^16 || >=18.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-reduce-initial": { + "version": "6.0.0", + "license": "MIT", + "dependencies": { + "browserslist": "^4.21.4", + "caniuse-api": "^3.0.0" + }, + "engines": { + "node": "^14 || ^16 || >=18.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-reduce-transforms": { + "version": "6.0.0", + "license": "MIT", + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^14 || ^16 || >=18.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-selector-parser": { + "version": "6.0.13", + "license": "MIT", + "dependencies": { + "cssesc": "^3.0.0", + "util-deprecate": "^1.0.2" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/postcss-svgo": { + "version": "6.0.0", + "license": "MIT", + "dependencies": { + "postcss-value-parser": "^4.2.0", + "svgo": "^3.0.2" + }, + "engines": { + "node": "^14 || ^16 || >= 18" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-unique-selectors": { + "version": "6.0.0", + "license": "MIT", + "dependencies": { + "postcss-selector-parser": "^6.0.5" + }, + "engines": { + "node": "^14 || ^16 || >=18.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-value-parser": { + "version": "4.2.0", + "license": "MIT" + }, + "node_modules/prelude-ls": { + "version": "1.2.1", + "license": "MIT", + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/prettier": { + "version": "2.8.8", + "dev": true, + "license": "MIT", + "bin": { + "prettier": "bin-prettier.js" + }, + "engines": { + "node": ">=10.13.0" + }, + "funding": { + "url": "https://github.com/prettier/prettier?sponsor=1" + } + }, + "node_modules/pretty-bytes": { + "version": "5.6.0", + "license": "MIT", + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/pretty-format": { + "version": "29.6.3", + "license": "MIT", + "dependencies": { + "@jest/schemas": "^29.6.3", + "ansi-styles": "^5.0.0", + "react-is": "^18.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/pretty-format/node_modules/ansi-styles": { + "version": "5.2.0", + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/proc-log": { + "version": "3.0.0", + "dev": true, + "license": "ISC", + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/process-nextick-args": { + "version": "2.0.1", + "license": "MIT" + }, + "node_modules/promise-inflight": { + "version": "1.0.1", + "dev": true, + "license": "ISC" + }, + "node_modules/promise-retry": { + "version": "2.0.1", + "dev": true, + "license": "MIT", + "dependencies": { + "err-code": "^2.0.2", + "retry": "^0.12.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/promise-retry/node_modules/retry": { + "version": "0.12.0", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 4" + } + }, + "node_modules/promise-worker": { + "version": "2.0.1", + "license": "Apache-2.0" + }, + "node_modules/prompts": { + "version": "2.4.2", + "devOptional": true, + "license": "MIT", + "dependencies": { + "kleur": "^3.0.3", + "sisteransi": "^1.0.5" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/proxy-addr": { + "version": "2.0.7", + "license": "MIT", + "dependencies": { + "forwarded": "0.2.0", + "ipaddr.js": "1.9.1" + }, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/proxy-addr/node_modules/ipaddr.js": { + "version": "1.9.1", + "license": "MIT", + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/proxy-from-env": { + "version": "1.1.0", + "license": "MIT" + }, + "node_modules/prr": { + "version": "1.0.1", + "license": "MIT", + "optional": true + }, + "node_modules/psl": { + "version": "1.9.0", + "license": "MIT" + }, + "node_modules/punycode": { + "version": "2.3.0", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/pure-rand": { + "version": "6.0.2", + "funding": [ + { + "type": "individual", + "url": "https://github.com/sponsors/dubzzz" + }, + { + "type": "opencollective", + "url": "https://opencollective.com/fast-check" + } + ], + "license": "MIT" + }, + "node_modules/qs": { + "version": "6.11.0", + "license": "BSD-3-Clause", + "dependencies": { + "side-channel": "^1.0.4" + }, + "engines": { + "node": ">=0.6" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/querystringify": { + "version": "2.2.0", + "license": "MIT" + }, + "node_modules/queue-microtask": { + "version": "1.2.3", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT" + }, + "node_modules/randombytes": { + "version": "2.1.0", + "license": "MIT", + "dependencies": { + "safe-buffer": "^5.1.0" + } + }, + "node_modules/range-parser": { + "version": "1.2.1", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/raw-body": { + "version": "2.5.1", + "license": "MIT", + "dependencies": { + "bytes": "3.1.2", + "http-errors": "2.0.0", + "iconv-lite": "0.4.24", + "unpipe": "1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/raw-body/node_modules/bytes": { + "version": "3.1.2", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/raw-body/node_modules/iconv-lite": { + "version": "0.4.24", + "license": "MIT", + "dependencies": { + "safer-buffer": ">= 2.1.2 < 3" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/react-is": { + "version": "18.2.0", + "license": "MIT" + }, + "node_modules/read-cache": { + "version": "1.0.0", + "license": "MIT", + "dependencies": { + "pify": "^2.3.0" + } + }, + "node_modules/read-package-json": { + "version": "6.0.4", + "dev": true, + "license": "ISC", + "dependencies": { + "glob": "^10.2.2", + "json-parse-even-better-errors": "^3.0.0", + "normalize-package-data": "^5.0.0", + "npm-normalize-package-bin": "^3.0.0" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/read-package-json-fast": { + "version": "3.0.2", + "dev": true, + "license": "ISC", + "dependencies": { + "json-parse-even-better-errors": "^3.0.0", + "npm-normalize-package-bin": "^3.0.0" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/read-package-json-fast/node_modules/json-parse-even-better-errors": { + "version": "3.0.0", + "dev": true, + "license": "MIT", + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/read-package-json/node_modules/brace-expansion": { + "version": "2.0.1", + "dev": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/read-package-json/node_modules/glob": { + "version": "10.3.3", + "dev": true, + "license": "ISC", + "dependencies": { + "foreground-child": "^3.1.0", + "jackspeak": "^2.0.3", + "minimatch": "^9.0.1", + "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0", + "path-scurry": "^1.10.1" + }, + "bin": { + "glob": "dist/cjs/src/bin.js" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/read-package-json/node_modules/json-parse-even-better-errors": { + "version": "3.0.0", + "dev": true, + "license": "MIT", + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/read-package-json/node_modules/minimatch": { + "version": "9.0.3", + "dev": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/read-package-json/node_modules/minipass": { + "version": "7.0.3", + "dev": true, + "license": "ISC", + "engines": { + "node": ">=16 || 14 >=14.17" + } + }, + "node_modules/readable-stream": { + "version": "3.6.2", + "license": "MIT", + "dependencies": { + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/readdirp": { + "version": "3.6.0", + "license": "MIT", + "dependencies": { + "picomatch": "^2.2.1" + }, + "engines": { + "node": ">=8.10.0" + } + }, + "node_modules/reflect-metadata": { + "version": "0.1.13", + "license": "Apache-2.0" + }, + "node_modules/regenerate": { + "version": "1.4.2", + "license": "MIT" + }, + "node_modules/regenerate-unicode-properties": { + "version": "10.1.0", + "license": "MIT", + "dependencies": { + "regenerate": "^1.4.2" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/regenerator-runtime": { + "version": "0.14.0", + "license": "MIT" + }, + "node_modules/regenerator-transform": { + "version": "0.15.2", + "license": "MIT", + "dependencies": { + "@babel/runtime": "^7.8.4" + } + }, + "node_modules/regex-parser": { + "version": "2.2.11", + "license": "MIT" + }, + "node_modules/regexp.prototype.flags": { + "version": "1.5.0", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "functions-have-names": "^1.2.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/regexpu-core": { + "version": "5.3.2", + "license": "MIT", + "dependencies": { + "@babel/regjsgen": "^0.8.0", + "regenerate": "^1.4.2", + "regenerate-unicode-properties": "^10.1.0", + "regjsparser": "^0.9.1", + "unicode-match-property-ecmascript": "^2.0.0", + "unicode-match-property-value-ecmascript": "^2.1.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/regjsparser": { + "version": "0.9.1", + "license": "BSD-2-Clause", + "dependencies": { + "jsesc": "~0.5.0" + }, + "bin": { + "regjsparser": "bin/parser" + } + }, + "node_modules/regjsparser/node_modules/jsesc": { + "version": "0.5.0", + "bin": { + "jsesc": "bin/jsesc" + } + }, + "node_modules/require-directory": { + "version": "2.1.1", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/require-from-string": { + "version": "2.0.2", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/requires-port": { + "version": "1.0.0", + "license": "MIT" + }, + "node_modules/resolve": { + "version": "1.22.4", + "license": "MIT", + "dependencies": { + "is-core-module": "^2.13.0", + "path-parse": "^1.0.7", + "supports-preserve-symlinks-flag": "^1.0.0" + }, + "bin": { + "resolve": "bin/resolve" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/resolve-cwd": { + "version": "3.0.0", + "devOptional": true, + "license": "MIT", + "dependencies": { + "resolve-from": "^5.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/resolve-from": { + "version": "5.0.0", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/resolve-url-loader": { + "version": "5.0.0", + "license": "MIT", + "dependencies": { + "adjust-sourcemap-loader": "^4.0.0", + "convert-source-map": "^1.7.0", + "loader-utils": "^2.0.0", + "postcss": "^8.2.14", + "source-map": "0.6.1" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/resolve-url-loader/node_modules/convert-source-map": { + "version": "1.9.0", + "license": "MIT" + }, + "node_modules/resolve-url-loader/node_modules/source-map": { + "version": "0.6.1", + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/resolve.exports": { + "version": "1.1.0", + "license": "MIT", + "engines": { + "node": ">=10" + } + }, + "node_modules/restore-cursor": { + "version": "3.1.0", + "license": "MIT", + "dependencies": { + "onetime": "^5.1.0", + "signal-exit": "^3.0.2" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/retry": { + "version": "0.13.1", + "license": "MIT", + "engines": { + "node": ">= 4" + } + }, + "node_modules/reusify": { + "version": "1.0.4", + "license": "MIT", + "engines": { + "iojs": ">=1.0.0", + "node": ">=0.10.0" + } + }, + "node_modules/rimraf": { + "version": "3.0.2", + "license": "ISC", + "dependencies": { + "glob": "^7.1.3" + }, + "bin": { + "rimraf": "bin.js" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/rollup": { + "version": "3.28.1", + "license": "MIT", + "bin": { + "rollup": "dist/bin/rollup" + }, + "engines": { + "node": ">=14.18.0", + "npm": ">=8.0.0" + }, + "optionalDependencies": { + "fsevents": "~2.3.2" + } + }, + "node_modules/run-async": { + "version": "2.4.1", + "license": "MIT", + "engines": { + "node": ">=0.12.0" + } + }, + "node_modules/run-parallel": { + "version": "1.2.0", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT", + "dependencies": { + "queue-microtask": "^1.2.2" + } + }, + "node_modules/rxjs": { + "version": "7.8.1", + "license": "Apache-2.0", + "dependencies": { + "tslib": "^2.1.0" + } + }, + "node_modules/safe-buffer": { + "version": "5.2.1", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT" + }, + "node_modules/safer-buffer": { + "version": "2.1.2", + "license": "MIT" + }, + "node_modules/sass": { + "version": "1.66.1", + "license": "MIT", + "dependencies": { + "chokidar": ">=3.0.0 <4.0.0", + "immutable": "^4.0.0", + "source-map-js": ">=0.6.2 <2.0.0" + }, + "bin": { + "sass": "sass.js" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/sass-loader": { + "version": "12.6.0", + "license": "MIT", + "dependencies": { + "klona": "^2.0.4", + "neo-async": "^2.6.2" + }, + "engines": { + "node": ">= 12.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "fibers": ">= 3.1.0", + "node-sass": "^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0", + "sass": "^1.3.0", + "sass-embedded": "*", + "webpack": "^5.0.0" + }, + "peerDependenciesMeta": { + "fibers": { + "optional": true + }, + "node-sass": { + "optional": true + }, + "sass": { + "optional": true + }, + "sass-embedded": { + "optional": true + } + } + }, + "node_modules/sax": { + "version": "1.2.4", + "license": "ISC" + }, + "node_modules/saxes": { + "version": "5.0.1", + "license": "ISC", + "dependencies": { + "xmlchars": "^2.2.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/schema-utils": { + "version": "4.2.0", + "license": "MIT", + "dependencies": { + "@types/json-schema": "^7.0.9", + "ajv": "^8.9.0", + "ajv-formats": "^2.1.1", + "ajv-keywords": "^5.1.0" + }, + "engines": { + "node": ">= 12.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + } + }, + "node_modules/select-hose": { + "version": "2.0.0", + "license": "MIT" + }, + "node_modules/selfsigned": { + "version": "2.1.1", + "license": "MIT", + "dependencies": { + "node-forge": "^1" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/semver": { + "version": "7.5.3", + "license": "ISC", + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/semver/node_modules/lru-cache": { + "version": "6.0.0", + "license": "ISC", + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/semver/node_modules/yallist": { + "version": "4.0.0", + "license": "ISC" + }, + "node_modules/send": { + "version": "0.18.0", + "license": "MIT", + "dependencies": { + "debug": "2.6.9", + "depd": "2.0.0", + "destroy": "1.2.0", + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "etag": "~1.8.1", + "fresh": "0.5.2", + "http-errors": "2.0.0", + "mime": "1.6.0", + "ms": "2.1.3", + "on-finished": "2.4.1", + "range-parser": "~1.2.1", + "statuses": "2.0.1" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/send/node_modules/debug": { + "version": "2.6.9", + "license": "MIT", + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/send/node_modules/debug/node_modules/ms": { + "version": "2.0.0", + "license": "MIT" + }, + "node_modules/send/node_modules/ms": { + "version": "2.1.3", + "license": "MIT" + }, + "node_modules/serialize-javascript": { + "version": "6.0.1", + "license": "BSD-3-Clause", + "dependencies": { + "randombytes": "^2.1.0" + } + }, + "node_modules/serve-index": { + "version": "1.9.1", + "license": "MIT", + "dependencies": { + "accepts": "~1.3.4", + "batch": "0.6.1", + "debug": "2.6.9", + "escape-html": "~1.0.3", + "http-errors": "~1.6.2", + "mime-types": "~2.1.17", + "parseurl": "~1.3.2" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/serve-index/node_modules/debug": { + "version": "2.6.9", + "license": "MIT", + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/serve-index/node_modules/depd": { + "version": "1.1.2", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/serve-index/node_modules/http-errors": { + "version": "1.6.3", + "license": "MIT", + "dependencies": { + "depd": "~1.1.2", + "inherits": "2.0.3", + "setprototypeof": "1.1.0", + "statuses": ">= 1.4.0 < 2" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/serve-index/node_modules/inherits": { + "version": "2.0.3", + "license": "ISC" + }, + "node_modules/serve-index/node_modules/ms": { + "version": "2.0.0", + "license": "MIT" + }, + "node_modules/serve-index/node_modules/setprototypeof": { + "version": "1.1.0", + "license": "ISC" + }, + "node_modules/serve-index/node_modules/statuses": { + "version": "1.5.0", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/serve-static": { + "version": "1.15.0", + "license": "MIT", + "dependencies": { + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "parseurl": "~1.3.3", + "send": "0.18.0" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/set-blocking": { + "version": "2.0.0", + "dev": true, + "license": "ISC" + }, + "node_modules/setprototypeof": { + "version": "1.2.0", + "license": "ISC" + }, + "node_modules/shallow-clone": { + "version": "3.0.1", + "license": "MIT", + "dependencies": { + "kind-of": "^6.0.2" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/shebang-command": { + "version": "2.0.0", + "license": "MIT", + "dependencies": { + "shebang-regex": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/shebang-regex": { + "version": "3.0.0", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/shell-quote": { + "version": "1.8.1", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/side-channel": { + "version": "1.0.4", + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.0", + "get-intrinsic": "^1.0.2", + "object-inspect": "^1.9.0" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/signal-exit": { + "version": "3.0.7", + "license": "ISC" + }, + "node_modules/sigstore": { + "version": "1.9.0", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@sigstore/bundle": "^1.1.0", + "@sigstore/protobuf-specs": "^0.2.0", + "@sigstore/sign": "^1.0.0", + "@sigstore/tuf": "^1.0.3", + "make-fetch-happen": "^11.0.1" + }, + "bin": { + "sigstore": "bin/sigstore.js" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/sisteransi": { + "version": "1.0.5", + "devOptional": true, + "license": "MIT" + }, + "node_modules/slash": { + "version": "3.0.0", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/smart-buffer": { + "version": "4.2.0", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 6.0.0", + "npm": ">= 3.0.0" + } + }, + "node_modules/sockjs": { + "version": "0.3.24", + "license": "MIT", + "dependencies": { + "faye-websocket": "^0.11.3", + "uuid": "^8.3.2", + "websocket-driver": "^0.7.4" + } + }, + "node_modules/socks": { + "version": "2.7.1", + "dev": true, + "license": "MIT", + "dependencies": { + "ip": "^2.0.0", + "smart-buffer": "^4.2.0" + }, + "engines": { + "node": ">= 10.13.0", + "npm": ">= 3.0.0" + } + }, + "node_modules/socks-proxy-agent": { + "version": "7.0.0", + "dev": true, + "license": "MIT", + "dependencies": { + "agent-base": "^6.0.2", + "debug": "^4.3.3", + "socks": "^2.6.2" + }, + "engines": { + "node": ">= 10" + } + }, + "node_modules/source-map": { + "version": "0.7.4", + "license": "BSD-3-Clause", + "engines": { + "node": ">= 8" + } + }, + "node_modules/source-map-js": { + "version": "1.0.2", + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/source-map-loader": { + "version": "3.0.2", + "license": "MIT", + "dependencies": { + "abab": "^2.0.5", + "iconv-lite": "^0.6.3", + "source-map-js": "^1.0.1" + }, + "engines": { + "node": ">= 12.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "webpack": "^5.0.0" + } + }, + "node_modules/source-map-support": { + "version": "0.5.19", + "license": "MIT", + "dependencies": { + "buffer-from": "^1.0.0", + "source-map": "^0.6.0" + } + }, + "node_modules/source-map-support/node_modules/source-map": { + "version": "0.6.1", + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/spdx-correct": { + "version": "3.2.0", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "spdx-expression-parse": "^3.0.0", + "spdx-license-ids": "^3.0.0" + } + }, + "node_modules/spdx-exceptions": { + "version": "2.3.0", + "dev": true, + "license": "CC-BY-3.0" + }, + "node_modules/spdx-expression-parse": { + "version": "3.0.1", + "dev": true, + "license": "MIT", + "dependencies": { + "spdx-exceptions": "^2.1.0", + "spdx-license-ids": "^3.0.0" + } + }, + "node_modules/spdx-license-ids": { + "version": "3.0.13", + "dev": true, + "license": "CC0-1.0" + }, + "node_modules/spdy": { + "version": "4.0.2", + "license": "MIT", + "dependencies": { + "debug": "^4.1.0", + "handle-thing": "^2.0.0", + "http-deceiver": "^1.2.7", + "select-hose": "^2.0.0", + "spdy-transport": "^3.0.0" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/spdy-transport": { + "version": "3.0.0", + "license": "MIT", + "dependencies": { + "debug": "^4.1.0", + "detect-node": "^2.0.4", + "hpack.js": "^2.1.6", + "obuf": "^1.1.2", + "readable-stream": "^3.0.6", + "wbuf": "^1.7.3" + } + }, + "node_modules/sprintf-js": { + "version": "1.0.3", + "license": "BSD-3-Clause" + }, + "node_modules/ssri": { + "version": "10.0.5", + "dev": true, + "license": "ISC", + "dependencies": { + "minipass": "^7.0.3" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/ssri/node_modules/minipass": { + "version": "7.0.3", + "dev": true, + "license": "ISC", + "engines": { + "node": ">=16 || 14 >=14.17" + } + }, + "node_modules/stack-utils": { + "version": "2.0.6", + "license": "MIT", + "dependencies": { + "escape-string-regexp": "^2.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/stack-utils/node_modules/escape-string-regexp": { + "version": "2.0.0", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/statuses": { + "version": "2.0.1", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/stop-iteration-iterator": { + "version": "1.0.0", + "dev": true, + "license": "MIT", + "dependencies": { + "internal-slot": "^1.0.4" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/string_decoder": { + "version": "1.3.0", + "license": "MIT", + "dependencies": { + "safe-buffer": "~5.2.0" + } + }, + "node_modules/string-length": { + "version": "4.0.2", + "license": "MIT", + "dependencies": { + "char-regex": "^1.0.2", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/string-width": { + "version": "4.2.3", + "license": "MIT", + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/string-width-cjs": { + "name": "string-width", + "version": "4.2.3", + "dev": true, + "license": "MIT", + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-ansi": { + "version": "6.0.1", + "license": "MIT", + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-ansi-cjs": { + "name": "strip-ansi", + "version": "6.0.1", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-bom": { + "version": "4.0.0", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-final-newline": { + "version": "2.0.0", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/strip-json-comments": { + "version": "3.1.1", + "license": "MIT", + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/strong-log-transformer": { + "version": "2.1.0", + "license": "Apache-2.0", + "dependencies": { + "duplexer": "^0.1.1", + "minimist": "^1.2.0", + "through": "^2.3.4" + }, + "bin": { + "sl-log-transformer": "bin/sl-log-transformer.js" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/style-loader": { + "version": "3.3.3", + "license": "MIT", + "engines": { + "node": ">= 12.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "webpack": "^5.0.0" + } + }, + "node_modules/stylehacks": { + "version": "6.0.0", + "license": "MIT", + "dependencies": { + "browserslist": "^4.21.4", + "postcss-selector-parser": "^6.0.4" + }, + "engines": { + "node": "^14 || ^16 || >=18.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/stylus": { + "version": "0.59.0", + "license": "MIT", + "dependencies": { + "@adobe/css-tools": "^4.0.1", + "debug": "^4.3.2", + "glob": "^7.1.6", + "sax": "~1.2.4", + "source-map": "^0.7.3" + }, + "bin": { + "stylus": "bin/stylus" + }, + "engines": { + "node": "*" + }, + "funding": { + "url": "https://opencollective.com/stylus" + } + }, + "node_modules/stylus-loader": { + "version": "7.1.3", + "license": "MIT", + "dependencies": { + "fast-glob": "^3.2.12", + "normalize-path": "^3.0.0" + }, + "engines": { + "node": ">= 14.15.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "stylus": ">=0.52.4", + "webpack": "^5.0.0" + } + }, + "node_modules/stylus-loader/node_modules/fast-glob": { + "version": "3.3.1", + "license": "MIT", + "dependencies": { + "@nodelib/fs.stat": "^2.0.2", + "@nodelib/fs.walk": "^1.2.3", + "glob-parent": "^5.1.2", + "merge2": "^1.3.0", + "micromatch": "^4.0.4" + }, + "engines": { + "node": ">=8.6.0" + } + }, + "node_modules/supports-color": { + "version": "7.2.0", + "license": "MIT", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/supports-preserve-symlinks-flag": { + "version": "1.0.0", + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/svgo": { + "version": "3.0.2", + "license": "MIT", + "dependencies": { + "@trysound/sax": "0.2.0", + "commander": "^7.2.0", + "css-select": "^5.1.0", + "css-tree": "^2.2.1", + "csso": "^5.0.5", + "picocolors": "^1.0.0" + }, + "bin": { + "svgo": "bin/svgo" + }, + "engines": { + "node": ">=14.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/svgo" + } + }, + "node_modules/symbol-observable": { + "version": "4.0.0", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10" + } + }, + "node_modules/symbol-tree": { + "version": "3.2.4", + "license": "MIT" + }, + "node_modules/tapable": { + "version": "2.2.1", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/tar": { + "version": "6.1.11", + "dev": true, + "license": "ISC", + "dependencies": { + "chownr": "^2.0.0", + "fs-minipass": "^2.0.0", + "minipass": "^3.0.0", + "minizlib": "^2.1.1", + "mkdirp": "^1.0.3", + "yallist": "^4.0.0" + }, + "engines": { + "node": ">= 10" + } + }, + "node_modules/tar-stream": { + "version": "2.2.0", + "license": "MIT", + "dependencies": { + "bl": "^4.0.3", + "end-of-stream": "^1.4.1", + "fs-constants": "^1.0.0", + "inherits": "^2.0.3", + "readable-stream": "^3.1.1" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/tar/node_modules/yallist": { + "version": "4.0.0", + "dev": true, + "license": "ISC" + }, + "node_modules/terser": { + "version": "5.19.2", + "license": "BSD-2-Clause", + "dependencies": { + "@jridgewell/source-map": "^0.3.3", + "acorn": "^8.8.2", + "commander": "^2.20.0", + "source-map-support": "~0.5.20" + }, + "bin": { + "terser": "bin/terser" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/terser-webpack-plugin": { + "version": "5.3.9", + "license": "MIT", + "dependencies": { + "@jridgewell/trace-mapping": "^0.3.17", + "jest-worker": "^27.4.5", + "schema-utils": "^3.1.1", + "serialize-javascript": "^6.0.1", + "terser": "^5.16.8" + }, + "engines": { + "node": ">= 10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "webpack": "^5.1.0" + }, + "peerDependenciesMeta": { + "@swc/core": { + "optional": true + }, + "esbuild": { + "optional": true + }, + "uglify-js": { + "optional": true + } + } + }, + "node_modules/terser-webpack-plugin/node_modules/ajv": { + "version": "6.12.6", + "license": "MIT", + "dependencies": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/terser-webpack-plugin/node_modules/ajv-keywords": { + "version": "3.5.2", + "license": "MIT", + "peerDependencies": { + "ajv": "^6.9.1" + } + }, + "node_modules/terser-webpack-plugin/node_modules/jest-worker": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@types/node": "*", + "merge-stream": "^2.0.0", + "supports-color": "^8.0.0" + }, + "engines": { + "node": ">= 10.13.0" + } + }, + "node_modules/terser-webpack-plugin/node_modules/json-schema-traverse": { + "version": "0.4.1", + "license": "MIT" + }, + "node_modules/terser-webpack-plugin/node_modules/schema-utils": { + "version": "3.3.0", + "license": "MIT", + "dependencies": { + "@types/json-schema": "^7.0.8", + "ajv": "^6.12.5", + "ajv-keywords": "^3.5.2" + }, + "engines": { + "node": ">= 10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + } + }, + "node_modules/terser-webpack-plugin/node_modules/supports-color": { + "version": "8.1.1", + "license": "MIT", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/supports-color?sponsor=1" + } + }, + "node_modules/terser/node_modules/commander": { + "version": "2.20.3", + "license": "MIT" + }, + "node_modules/terser/node_modules/source-map": { + "version": "0.6.1", + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/terser/node_modules/source-map-support": { + "version": "0.5.21", + "license": "MIT", + "dependencies": { + "buffer-from": "^1.0.0", + "source-map": "^0.6.0" + } + }, + "node_modules/test-exclude": { + "version": "6.0.0", + "license": "ISC", + "dependencies": { + "@istanbuljs/schema": "^0.1.2", + "glob": "^7.1.4", + "minimatch": "^3.0.4" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/text-table": { + "version": "0.2.0", + "license": "MIT" + }, + "node_modules/through": { + "version": "2.3.8", + "license": "MIT" + }, + "node_modules/thunky": { + "version": "1.1.0", + "license": "MIT" + }, + "node_modules/tmp": { + "version": "0.2.1", + "license": "MIT", + "dependencies": { + "rimraf": "^3.0.0" + }, + "engines": { + "node": ">=8.17.0" + } + }, + "node_modules/tmpl": { + "version": "1.0.5", + "license": "BSD-3-Clause" + }, + "node_modules/to-fast-properties": { + "version": "2.0.0", + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/to-regex-range": { + "version": "5.0.1", + "license": "MIT", + "dependencies": { + "is-number": "^7.0.0" + }, + "engines": { + "node": ">=8.0" + } + }, + "node_modules/toidentifier": { + "version": "1.0.1", + "license": "MIT", + "engines": { + "node": ">=0.6" + } + }, + "node_modules/tough-cookie": { + "version": "4.1.3", + "license": "BSD-3-Clause", + "dependencies": { + "psl": "^1.1.33", + "punycode": "^2.1.1", + "universalify": "^0.2.0", + "url-parse": "^1.5.3" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/tough-cookie/node_modules/universalify": { + "version": "0.2.0", + "license": "MIT", + "engines": { + "node": ">= 4.0.0" + } + }, + "node_modules/tr46": { + "version": "2.1.0", + "license": "MIT", + "dependencies": { + "punycode": "^2.1.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/tree-kill": { + "version": "1.2.2", + "license": "MIT", + "bin": { + "tree-kill": "cli.js" + } + }, + "node_modules/ts-jest": { + "version": "29.1.1", + "dev": true, + "license": "MIT", + "dependencies": { + "bs-logger": "0.x", + "fast-json-stable-stringify": "2.x", + "jest-util": "^29.0.0", + "json5": "^2.2.3", + "lodash.memoize": "4.x", + "make-error": "1.x", + "semver": "^7.5.3", + "yargs-parser": "^21.0.1" + }, + "bin": { + "ts-jest": "cli.js" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "@babel/core": ">=7.0.0-beta.0 <8", + "@jest/types": "^29.0.0", + "babel-jest": "^29.0.0", + "jest": "^29.0.0", + "typescript": ">=4.3 <6" + }, + "peerDependenciesMeta": { + "@babel/core": { + "optional": true + }, + "@jest/types": { + "optional": true + }, + "babel-jest": { + "optional": true + }, + "esbuild": { + "optional": true + } + } + }, + "node_modules/ts-loader": { + "version": "9.4.4", + "license": "MIT", + "dependencies": { + "chalk": "^4.1.0", + "enhanced-resolve": "^5.0.0", + "micromatch": "^4.0.0", + "semver": "^7.3.4" + }, + "engines": { + "node": ">=12.0.0" + }, + "peerDependencies": { + "typescript": "*", + "webpack": "^5.0.0" + } + }, + "node_modules/ts-node": { + "version": "10.9.1", + "license": "MIT", + "dependencies": { + "@cspotcode/source-map-support": "^0.8.0", + "@tsconfig/node10": "^1.0.7", + "@tsconfig/node12": "^1.0.7", + "@tsconfig/node14": "^1.0.0", + "@tsconfig/node16": "^1.0.2", + "acorn": "^8.4.1", + "acorn-walk": "^8.1.1", + "arg": "^4.1.0", + "create-require": "^1.1.0", + "diff": "^4.0.1", + "make-error": "^1.1.1", + "v8-compile-cache-lib": "^3.0.1", + "yn": "3.1.1" + }, + "bin": { + "ts-node": "dist/bin.js", + "ts-node-cwd": "dist/bin-cwd.js", + "ts-node-esm": "dist/bin-esm.js", + "ts-node-script": "dist/bin-script.js", + "ts-node-transpile-only": "dist/bin-transpile.js", + "ts-script": "dist/bin-script-deprecated.js" + }, + "peerDependencies": { + "@swc/core": ">=1.2.50", + "@swc/wasm": ">=1.2.50", + "@types/node": "*", + "typescript": ">=2.7" + }, + "peerDependenciesMeta": { + "@swc/core": { + "optional": true + }, + "@swc/wasm": { + "optional": true + } + } + }, + "node_modules/tsconfig-paths": { + "version": "4.2.0", + "license": "MIT", + "dependencies": { + "json5": "^2.2.2", + "minimist": "^1.2.6", + "strip-bom": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/tsconfig-paths-webpack-plugin": { + "version": "4.0.0", + "license": "MIT", + "dependencies": { + "chalk": "^4.1.0", + "enhanced-resolve": "^5.7.0", + "tsconfig-paths": "^4.0.0" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/tsconfig-paths/node_modules/strip-bom": { + "version": "3.0.0", + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/tslib": { + "version": "2.6.2", + "license": "0BSD" + }, + "node_modules/tsutils": { + "version": "3.21.0", + "license": "MIT", + "dependencies": { + "tslib": "^1.8.1" + }, + "engines": { + "node": ">= 6" + }, + "peerDependencies": { + "typescript": ">=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta" + } + }, + "node_modules/tsutils/node_modules/tslib": { + "version": "1.14.1", + "license": "0BSD" + }, + "node_modules/tuf-js": { + "version": "1.1.7", + "dev": true, + "license": "MIT", + "dependencies": { + "@tufjs/models": "1.0.4", + "debug": "^4.3.4", + "make-fetch-happen": "^11.1.1" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/type-check": { + "version": "0.4.0", + "license": "MIT", + "dependencies": { + "prelude-ls": "^1.2.1" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/type-detect": { + "version": "4.0.8", + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/type-fest": { + "version": "0.21.3", + "license": "(MIT OR CC0-1.0)", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/type-is": { + "version": "1.6.18", + "license": "MIT", + "dependencies": { + "media-typer": "0.3.0", + "mime-types": "~2.1.24" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/typed-assert": { + "version": "1.0.9", + "license": "MIT" + }, + "node_modules/typescript": { + "version": "5.1.6", + "license": "Apache-2.0", + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=14.17" + } + }, + "node_modules/unicode-canonical-property-names-ecmascript": { + "version": "2.0.0", + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/unicode-match-property-ecmascript": { + "version": "2.0.0", + "license": "MIT", + "dependencies": { + "unicode-canonical-property-names-ecmascript": "^2.0.0", + "unicode-property-aliases-ecmascript": "^2.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/unicode-match-property-value-ecmascript": { + "version": "2.1.0", + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/unicode-property-aliases-ecmascript": { + "version": "2.1.0", + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/unique-filename": { + "version": "3.0.0", + "dev": true, + "license": "ISC", + "dependencies": { + "unique-slug": "^4.0.0" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/unique-slug": { + "version": "4.0.0", + "dev": true, + "license": "ISC", + "dependencies": { + "imurmurhash": "^0.1.4" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/universalify": { + "version": "2.0.0", + "license": "MIT", + "engines": { + "node": ">= 10.0.0" + } + }, + "node_modules/unpipe": { + "version": "1.0.0", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/update-browserslist-db": { + "version": "1.0.11", + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "escalade": "^3.1.1", + "picocolors": "^1.0.0" + }, + "bin": { + "update-browserslist-db": "cli.js" + }, + "peerDependencies": { + "browserslist": ">= 4.21.0" + } + }, + "node_modules/uri-js": { + "version": "4.4.1", + "license": "BSD-2-Clause", + "dependencies": { + "punycode": "^2.1.0" + } + }, + "node_modules/url-parse": { + "version": "1.5.10", + "license": "MIT", + "dependencies": { + "querystringify": "^2.1.1", + "requires-port": "^1.0.0" + } + }, + "node_modules/util-deprecate": { + "version": "1.0.2", + "license": "MIT" + }, + "node_modules/utils-merge": { + "version": "1.0.1", + "license": "MIT", + "engines": { + "node": ">= 0.4.0" + } + }, + "node_modules/uuid": { + "version": "8.3.2", + "license": "MIT", + "bin": { + "uuid": "dist/bin/uuid" + } + }, + "node_modules/v8-compile-cache": { + "version": "2.3.0", + "license": "MIT" + }, + "node_modules/v8-compile-cache-lib": { + "version": "3.0.1", + "license": "MIT" + }, + "node_modules/v8-to-istanbul": { + "version": "9.1.0", + "license": "ISC", + "dependencies": { + "@jridgewell/trace-mapping": "^0.3.12", + "@types/istanbul-lib-coverage": "^2.0.1", + "convert-source-map": "^1.6.0" + }, + "engines": { + "node": ">=10.12.0" + } + }, + "node_modules/v8-to-istanbul/node_modules/convert-source-map": { + "version": "1.9.0", + "license": "MIT" + }, + "node_modules/validate-npm-package-license": { + "version": "3.0.4", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "spdx-correct": "^3.0.0", + "spdx-expression-parse": "^3.0.0" + } + }, + "node_modules/validate-npm-package-name": { + "version": "5.0.0", + "dev": true, + "license": "ISC", + "dependencies": { + "builtins": "^5.0.0" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/vary": { + "version": "1.1.2", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/vite": { + "version": "4.4.7", + "license": "MIT", + "dependencies": { + "esbuild": "^0.18.10", + "postcss": "^8.4.26", + "rollup": "^3.25.2" + }, + "bin": { + "vite": "bin/vite.js" + }, + "engines": { + "node": "^14.18.0 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/vitejs/vite?sponsor=1" + }, + "optionalDependencies": { + "fsevents": "~2.3.2" + }, + "peerDependencies": { + "@types/node": ">= 14", + "less": "*", + "lightningcss": "^1.21.0", + "sass": "*", + "stylus": "*", + "sugarss": "*", + "terser": "^5.4.0" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + }, + "less": { + "optional": true + }, + "lightningcss": { + "optional": true + }, + "sass": { + "optional": true + }, + "stylus": { + "optional": true + }, + "sugarss": { + "optional": true + }, + "terser": { + "optional": true + } + } + }, + "node_modules/vite/node_modules/@esbuild/linux-x64": { + "version": "0.18.20", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/vite/node_modules/esbuild": { + "version": "0.18.20", + "hasInstallScript": true, + "license": "MIT", + "bin": { + "esbuild": "bin/esbuild" + }, + "engines": { + "node": ">=12" + }, + "optionalDependencies": { + "@esbuild/android-arm": "0.18.20", + "@esbuild/android-arm64": "0.18.20", + "@esbuild/android-x64": "0.18.20", + "@esbuild/darwin-arm64": "0.18.20", + "@esbuild/darwin-x64": "0.18.20", + "@esbuild/freebsd-arm64": "0.18.20", + "@esbuild/freebsd-x64": "0.18.20", + "@esbuild/linux-arm": "0.18.20", + "@esbuild/linux-arm64": "0.18.20", + "@esbuild/linux-ia32": "0.18.20", + "@esbuild/linux-loong64": "0.18.20", + "@esbuild/linux-mips64el": "0.18.20", + "@esbuild/linux-ppc64": "0.18.20", + "@esbuild/linux-riscv64": "0.18.20", + "@esbuild/linux-s390x": "0.18.20", + "@esbuild/linux-x64": "0.18.20", + "@esbuild/netbsd-x64": "0.18.20", + "@esbuild/openbsd-x64": "0.18.20", + "@esbuild/sunos-x64": "0.18.20", + "@esbuild/win32-arm64": "0.18.20", + "@esbuild/win32-ia32": "0.18.20", + "@esbuild/win32-x64": "0.18.20" + } + }, + "node_modules/w3c-hr-time": { + "version": "1.0.2", + "license": "MIT", + "dependencies": { + "browser-process-hrtime": "^1.0.0" + } + }, + "node_modules/w3c-xmlserializer": { + "version": "2.0.0", + "license": "MIT", + "dependencies": { + "xml-name-validator": "^3.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/walker": { + "version": "1.0.8", + "license": "Apache-2.0", + "dependencies": { + "makeerror": "1.0.12" + } + }, + "node_modules/watchpack": { + "version": "2.4.0", + "license": "MIT", + "dependencies": { + "glob-to-regexp": "^0.4.1", + "graceful-fs": "^4.1.2" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/wbuf": { + "version": "1.7.3", + "license": "MIT", + "dependencies": { + "minimalistic-assert": "^1.0.0" + } + }, + "node_modules/wcwidth": { + "version": "1.0.1", + "license": "MIT", + "dependencies": { + "defaults": "^1.0.3" + } + }, + "node_modules/webidl-conversions": { + "version": "6.1.0", + "license": "BSD-2-Clause", + "engines": { + "node": ">=10.4" + } + }, + "node_modules/webpack": { + "version": "5.88.2", + "license": "MIT", + "dependencies": { + "@types/eslint-scope": "^3.7.3", + "@types/estree": "^1.0.0", + "@webassemblyjs/ast": "^1.11.5", + "@webassemblyjs/wasm-edit": "^1.11.5", + "@webassemblyjs/wasm-parser": "^1.11.5", + "acorn": "^8.7.1", + "acorn-import-assertions": "^1.9.0", + "browserslist": "^4.14.5", + "chrome-trace-event": "^1.0.2", + "enhanced-resolve": "^5.15.0", + "es-module-lexer": "^1.2.1", + "eslint-scope": "5.1.1", + "events": "^3.2.0", + "glob-to-regexp": "^0.4.1", + "graceful-fs": "^4.2.9", + "json-parse-even-better-errors": "^2.3.1", + "loader-runner": "^4.2.0", + "mime-types": "^2.1.27", + "neo-async": "^2.6.2", + "schema-utils": "^3.2.0", + "tapable": "^2.1.1", + "terser-webpack-plugin": "^5.3.7", + "watchpack": "^2.4.0", + "webpack-sources": "^3.2.3" + }, + "bin": { + "webpack": "bin/webpack.js" + }, + "engines": { + "node": ">=10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependenciesMeta": { + "webpack-cli": { + "optional": true + } + } + }, + "node_modules/webpack-dev-middleware": { + "version": "5.3.3", + "license": "MIT", + "dependencies": { + "colorette": "^2.0.10", + "memfs": "^3.4.3", + "mime-types": "^2.1.31", + "range-parser": "^1.2.1", + "schema-utils": "^4.0.0" + }, + "engines": { + "node": ">= 12.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "webpack": "^4.0.0 || ^5.0.0" + } + }, + "node_modules/webpack-dev-server": { + "version": "4.15.1", + "license": "MIT", + "dependencies": { + "@types/bonjour": "^3.5.9", + "@types/connect-history-api-fallback": "^1.3.5", + "@types/express": "^4.17.13", + "@types/serve-index": "^1.9.1", + "@types/serve-static": "^1.13.10", + "@types/sockjs": "^0.3.33", + "@types/ws": "^8.5.5", + "ansi-html-community": "^0.0.8", + "bonjour-service": "^1.0.11", + "chokidar": "^3.5.3", + "colorette": "^2.0.10", + "compression": "^1.7.4", + "connect-history-api-fallback": "^2.0.0", + "default-gateway": "^6.0.3", + "express": "^4.17.3", + "graceful-fs": "^4.2.6", + "html-entities": "^2.3.2", + "http-proxy-middleware": "^2.0.3", + "ipaddr.js": "^2.0.1", + "launch-editor": "^2.6.0", + "open": "^8.0.9", + "p-retry": "^4.5.0", + "rimraf": "^3.0.2", + "schema-utils": "^4.0.0", + "selfsigned": "^2.1.1", + "serve-index": "^1.9.1", + "sockjs": "^0.3.24", + "spdy": "^4.0.2", + "webpack-dev-middleware": "^5.3.1", + "ws": "^8.13.0" + }, + "bin": { + "webpack-dev-server": "bin/webpack-dev-server.js" + }, + "engines": { + "node": ">= 12.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "webpack": "^4.37.0 || ^5.0.0" + }, + "peerDependenciesMeta": { + "webpack": { + "optional": true + }, + "webpack-cli": { + "optional": true + } + } + }, + "node_modules/webpack-merge": { + "version": "5.9.0", + "license": "MIT", + "dependencies": { + "clone-deep": "^4.0.1", + "wildcard": "^2.0.0" + }, + "engines": { + "node": ">=10.0.0" + } + }, + "node_modules/webpack-node-externals": { + "version": "3.0.0", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/webpack-sources": { + "version": "3.2.3", + "license": "MIT", + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/webpack-subresource-integrity": { + "version": "5.1.0", + "license": "MIT", + "dependencies": { + "typed-assert": "^1.0.8" + }, + "engines": { + "node": ">= 12" + }, + "peerDependencies": { + "html-webpack-plugin": ">= 5.0.0-beta.1 < 6", + "webpack": "^5.12.0" + }, + "peerDependenciesMeta": { + "html-webpack-plugin": { + "optional": true + } + } + }, + "node_modules/webpack/node_modules/ajv": { + "version": "6.12.6", + "license": "MIT", + "dependencies": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/webpack/node_modules/ajv-keywords": { + "version": "3.5.2", + "license": "MIT", + "peerDependencies": { + "ajv": "^6.9.1" + } + }, + "node_modules/webpack/node_modules/json-schema-traverse": { + "version": "0.4.1", + "license": "MIT" + }, + "node_modules/webpack/node_modules/schema-utils": { + "version": "3.3.0", + "license": "MIT", + "dependencies": { + "@types/json-schema": "^7.0.8", + "ajv": "^6.12.5", + "ajv-keywords": "^3.5.2" + }, + "engines": { + "node": ">= 10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + } + }, + "node_modules/websocket-driver": { + "version": "0.7.4", + "license": "Apache-2.0", + "dependencies": { + "http-parser-js": ">=0.5.1", + "safe-buffer": ">=5.1.0", + "websocket-extensions": ">=0.1.1" + }, + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/websocket-extensions": { + "version": "0.1.4", + "license": "Apache-2.0", + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/whatwg-encoding": { + "version": "1.0.5", + "license": "MIT", + "dependencies": { + "iconv-lite": "0.4.24" + } + }, + "node_modules/whatwg-encoding/node_modules/iconv-lite": { + "version": "0.4.24", + "license": "MIT", + "dependencies": { + "safer-buffer": ">= 2.1.2 < 3" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/whatwg-mimetype": { + "version": "2.3.0", + "license": "MIT" + }, + "node_modules/whatwg-url": { + "version": "8.7.0", + "license": "MIT", + "dependencies": { + "lodash": "^4.7.0", + "tr46": "^2.1.0", + "webidl-conversions": "^6.1.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/which": { + "version": "2.0.2", + "license": "ISC", + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/which-boxed-primitive": { + "version": "1.0.2", + "dev": true, + "license": "MIT", + "dependencies": { + "is-bigint": "^1.0.1", + "is-boolean-object": "^1.1.0", + "is-number-object": "^1.0.4", + "is-string": "^1.0.5", + "is-symbol": "^1.0.3" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/which-collection": { + "version": "1.0.1", + "dev": true, + "license": "MIT", + "dependencies": { + "is-map": "^2.0.1", + "is-set": "^2.0.1", + "is-weakmap": "^2.0.1", + "is-weakset": "^2.0.1" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/which-typed-array": { + "version": "1.1.11", + "dev": true, + "license": "MIT", + "dependencies": { + "available-typed-arrays": "^1.0.5", + "call-bind": "^1.0.2", + "for-each": "^0.3.3", + "gopd": "^1.0.1", + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/wide-align": { + "version": "1.1.5", + "dev": true, + "license": "ISC", + "dependencies": { + "string-width": "^1.0.2 || 2 || 3 || 4" + } + }, + "node_modules/wildcard": { + "version": "2.0.1", + "license": "MIT" + }, + "node_modules/wrap-ansi": { + "version": "7.0.0", + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } + }, + "node_modules/wrap-ansi-cjs": { + "name": "wrap-ansi", + "version": "7.0.0", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } + }, + "node_modules/wrappy": { + "version": "1.0.2", + "license": "ISC" + }, + "node_modules/write-file-atomic": { + "version": "4.0.2", + "license": "ISC", + "dependencies": { + "imurmurhash": "^0.1.4", + "signal-exit": "^3.0.7" + }, + "engines": { + "node": "^12.13.0 || ^14.15.0 || >=16.0.0" + } + }, + "node_modules/ws": { + "version": "8.13.0", + "license": "MIT", + "engines": { + "node": ">=10.0.0" + }, + "peerDependencies": { + "bufferutil": "^4.0.1", + "utf-8-validate": ">=5.0.2" + }, + "peerDependenciesMeta": { + "bufferutil": { + "optional": true + }, + "utf-8-validate": { + "optional": true + } + } + }, + "node_modules/xml-name-validator": { + "version": "3.0.0", + "license": "Apache-2.0" + }, + "node_modules/xmlchars": { + "version": "2.2.0", + "license": "MIT" + }, + "node_modules/y18n": { + "version": "5.0.8", + "license": "ISC", + "engines": { + "node": ">=10" + } + }, + "node_modules/yallist": { + "version": "3.1.1", + "license": "ISC" + }, + "node_modules/yaml": { + "version": "1.10.2", + "license": "ISC", + "engines": { + "node": ">= 6" + } + }, + "node_modules/yargs": { + "version": "17.7.2", + "license": "MIT", + "dependencies": { + "cliui": "^8.0.1", + "escalade": "^3.1.1", + "get-caller-file": "^2.0.5", + "require-directory": "^2.1.1", + "string-width": "^4.2.3", + "y18n": "^5.0.5", + "yargs-parser": "^21.1.1" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/yargs-parser": { + "version": "21.1.1", + "license": "ISC", + "engines": { + "node": ">=12" + } + }, + "node_modules/yargs/node_modules/cliui": { + "version": "8.0.1", + "license": "ISC", + "dependencies": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.1", + "wrap-ansi": "^7.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/yn": { + "version": "3.1.1", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/yocto-queue": { + "version": "0.1.0", + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/zone.js": { + "version": "0.13.1", + "license": "MIT", + "dependencies": { + "tslib": "^2.3.0" + } + } + } +} diff --git a/examples/frontend/angular/package.json b/examples/frontend/angular/package.json new file mode 100644 index 000000000..0b269e162 --- /dev/null +++ b/examples/frontend/angular/package.json @@ -0,0 +1,61 @@ +{ + "name": "casper", + "version": "0.0.0", + "license": "MIT", + "scripts": { + "start": "nx serve", + "build": "nx build", + "test": "nx test", + "serve": "nx serve --prod=true" + }, + "private": true, + "dependencies": { + "@angular/animations": "~16.2.0", + "@angular/common": "~16.2.0", + "@angular/compiler": "~16.2.0", + "@angular/core": "~16.2.0", + "@angular/forms": "~16.2.0", + "@angular/platform-browser": "~16.2.0", + "@angular/platform-browser-dynamic": "~16.2.0", + "@angular/router": "~16.2.0", + "@nx/angular": "16.7.4", + "rxjs": "~7.8.0", + "tslib": "^2.3.0", + "zone.js": "~0.13.0", + "casper-sdk": "file:../../../pkg", + "promise-worker": "^2.0.1", + "highlight.js": "^11.8.0" + }, + "devDependencies": { + "@angular-devkit/build-angular": "~16.2.0", + "@angular-devkit/core": "~16.2.0", + "@angular-devkit/schematics": "~16.2.0", + "@angular-eslint/eslint-plugin": "~16.0.0", + "@angular-eslint/eslint-plugin-template": "~16.0.0", + "@angular-eslint/template-parser": "~16.0.0", + "@angular/cli": "~16.2.0", + "@angular/compiler-cli": "~16.2.0", + "@angular/language-service": "~16.2.0", + "@nx/eslint-plugin": "16.7.4", + "@nx/jest": "16.7.4", + "@nx/js": "16.7.4", + "@nx/linter": "16.7.4", + "@nx/workspace": "16.7.4", + "@schematics/angular": "~16.2.0", + "@types/jest": "^29.4.0", + "@types/node": "16.11.7", + "@typescript-eslint/eslint-plugin": "^5.60.1", + "@typescript-eslint/parser": "^5.60.1", + "eslint": "~8.46.0", + "eslint-config-prettier": "8.1.0", + "jest": "^29.4.1", + "jest-environment-jsdom": "^29.4.1", + "jest-preset-angular": "~13.1.0", + "nx": "16.7.4", + "nx-cloud": "latest", + "prettier": "^2.6.2", + "ts-jest": "^29.1.0", + "ts-node": "10.9.1", + "typescript": "~5.1.3" + } +} \ No newline at end of file diff --git a/examples/frontend/angular/project.json b/examples/frontend/angular/project.json new file mode 100644 index 000000000..7295965da --- /dev/null +++ b/examples/frontend/angular/project.json @@ -0,0 +1,122 @@ +{ + "name": "casper", + "$schema": "node_modules/nx/schemas/project-schema.json", + "projectType": "application", + "prefix": "app", + "sourceRoot": "./src", + "tags": [], + "targets": { + "build": { + "executor": "@angular-devkit/build-angular:browser", + "outputs": [ + "{options.outputPath}" + ], + "options": { + "outputPath": "dist/casper", + "index": "./src/index.html", + "main": "./src/main.ts", + "polyfills": [ + "zone.js" + ], + "tsConfig": "./tsconfig.app.json", + "webWorkerTsConfig": "libs/util/hihlight-webworker/tsconfig.webworker.json", + "assets": [ + "./src/favicon.png", + "./src/assets", + { + "input": "../../../pkg", + "glob": "casper_rust_wasm_sdk_bg.wasm", + "output": "assets" + } + ], + "styles": [ + "./src/styles.scss", + "./node_modules/highlight.js/styles/default.css" + ], + "scripts": [] + }, + "configurations": { + "production": { + "budgets": [ + { + "type": "initial", + "maximumWarning": "500kb", + "maximumError": "1mb" + }, + { + "type": "anyComponentStyle", + "maximumWarning": "2kb", + "maximumError": "4kb" + } + ], + "fileReplacements": [ + { + "replace": "/src/environments/environment.ts", + "with": "/src/environments/environment.prod.ts" + } + ], + "outputHashing": "all" + }, + "development": { + "buildOptimizer": false, + "optimization": false, + "vendorChunk": true, + "extractLicenses": false, + "sourceMap": true, + "namedChunks": true + } + }, + "defaultConfiguration": "production" + }, + "serve": { + "executor": "@angular-devkit/build-angular:dev-server", + "configurations": { + "production": { + "browserTarget": "casper:build:production" + }, + "development": { + "browserTarget": "casper:build:development" + } + }, + "defaultConfiguration": "development", + "options": { + "proxyConfig": "proxy.conf.json", + "browserTarget": "AngularCustomWebpackConfig:build" + } + }, + "extract-i18n": { + "executor": "@angular-devkit/build-angular:extract-i18n", + "options": { + "browserTarget": "casper:build" + } + }, + "lint": { + "executor": "@nx/linter:eslint", + "outputs": [ + "{options.outputFile}" + ], + "options": { + "lintFilePatterns": [ + "./src/**/*.ts", + "./src/**/*.html" + ] + } + }, + "test": { + "executor": "@nx/jest:jest", + "outputs": [ + "{workspaceRoot}/coverage/{projectName}" + ], + "options": { + "jestConfig": "jest.config.app.ts", + "passWithNoTests": true + }, + "configurations": { + "ci": { + "ci": true, + "codeCoverage": true + } + } + } + } +} \ No newline at end of file diff --git a/examples/frontend/angular/proxy.conf.json b/examples/frontend/angular/proxy.conf.json new file mode 100644 index 000000000..ffcdbc29d --- /dev/null +++ b/examples/frontend/angular/proxy.conf.json @@ -0,0 +1,7 @@ +{ + "/rpc": { + "target": "http://localhost:11101", + "secure": false, + "changeOrigin": false + } +} \ No newline at end of file diff --git a/examples/frontend/angular/src/app/app.component.html b/examples/frontend/angular/src/app/app.component.html new file mode 100644 index 000000000..ea4d0020d --- /dev/null +++ b/examples/frontend/angular/src/app/app.component.html @@ -0,0 +1,1015 @@ +
+ +
+
+
+ state root hash is {{ state_root_hash }} + +
+
+ account hash is {{ account_hash }} +
+
+ main purse is {{ main_purse }} +
+
+
+
+
+
+ + +
+ +
+
+
+ + +
+
+ + + +
+
+
+
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+
+ +
+ + +
+
+
+
+
+
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+
+
+
+
+
+
+
+ + +
+
+
+
+ +
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ +
+ + +
+
+
+ +
+ + +
+
+
+
+
+
+
+
+ +
+ + +
+
+
+ +
+ +
+
+
+
+
+
+
+ + +
+
+
+ + +
+
+
+
+
+
+
+ +
+ + +
+
+
+ +
+ +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+
+ + + + {{ file_name }} + + + + +
+
+
+ +
+ +
+ + +
+
+
+ +
+ +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+
+
+
+
+ +
+
+
+
{{ error }}
+
+
+ +
+
diff --git a/examples/frontend/angular/src/app/app.component.scss b/examples/frontend/angular/src/app/app.component.scss new file mode 100644 index 000000000..4a96fab25 --- /dev/null +++ b/examples/frontend/angular/src/app/app.component.scss @@ -0,0 +1,9 @@ +.form-floating > label { + color: lightgrey; +} +.error { + display: block; + font-family: monospace; + white-space: pre-wrap; + word-break: break-word; +} diff --git a/examples/frontend/angular/src/app/app.component.spec.ts b/examples/frontend/angular/src/app/app.component.spec.ts new file mode 100644 index 000000000..a0cbe7849 --- /dev/null +++ b/examples/frontend/angular/src/app/app.component.spec.ts @@ -0,0 +1,23 @@ +import { TestBed } from '@angular/core/testing'; +import { AppComponent } from './app.component'; + + +describe('AppComponent', () => { + beforeEach(async () => { + await TestBed.configureTestingModule({ + imports: [AppComponent], + }).compileComponents(); + }); + + xit('should render title', () => { + const fixture = TestBed.createComponent(AppComponent); + fixture.detectChanges(); + const compiled = fixture.nativeElement as HTMLElement; + }); + + xit(`should have as title 'casper'`, () => { + const fixture = TestBed.createComponent(AppComponent); + const app = fixture.componentInstance; + expect(app.title).toEqual('casper'); + }); +}); diff --git a/examples/frontend/angular/src/app/app.component.ts b/examples/frontend/angular/src/app/app.component.ts new file mode 100644 index 000000000..80a50b196 --- /dev/null +++ b/examples/frontend/angular/src/app/app.component.ts @@ -0,0 +1,1045 @@ +import { CommonModule } from '@angular/common'; +import { AfterViewInit, ChangeDetectionStrategy, ChangeDetectorRef, Component, ElementRef, Inject, OnInit, ViewChild } from '@angular/core'; +import { CONFIG, ENV, EnvironmentConfig } from '@util/config'; +import { SDK_TOKEN, WasmModule } from '@util/wasm'; +import { BlockIdentifier, SDK, Verbosity, getBlockOptions, getStateRootHashOptions, DeployHash, GlobalStateIdentifier, Digest, DictionaryItemIdentifier, privateToPublicKey, getTimestamp, DeployStrParams, PaymentStrParams, jsonPrettyPrint, Deploy, SessionStrParams, BlockHash, DictionaryItemStrParams, hexToString, motesToCSPR, Bytes, PeerEntry } from "casper-sdk"; +import { ResultComponent, ResultService } from '@components'; + +const imports = [ + CommonModule, + ResultComponent, + WasmModule +]; + +type network = { + name: string; + node_address: string; + chain_name: string; +}; + +@Component({ + standalone: true, + imports, + providers: [ResultService], + changeDetection: ChangeDetectionStrategy.OnPush, + selector: 'app-root', + templateUrl: './app.component.html', + styleUrls: ['./app.component.scss'], +}) +export class AppComponent implements OnInit, AfterViewInit { + title = 'Casper client'; + state_root_hash!: string; + peers!: PeerEntry[]; + networks!: network[]; + sdk_methods!: string[]; + sdk_rpc_methods!: string[]; + sdk_contract_methods!: string[]; + sdk_deploy_methods!: string[]; + sdk_deploy_utils_methods!: string[]; + error!: string; + verbosity = Verbosity.High; + node_address = this.env['node_address'].toString(); + action!: string; + block_identifier_height!: string; + block_identifier_height_default = this.config['block_identifier_height_default'].toString(); + block_identifier_hash!: string; + block_identifier_hash_default = this.config['block_identifier_hash'].toString(); + transfer_amount!: string; + ttl!: string; + target_account!: string; + account_hash!: string; + main_purse!: string; + purse_uref!: string; + finalized_approvals = true; + deploy_hash!: string; + purse_identifier!: string; + item_key!: string; + select_dict_identifier = 'newFromContractInfo'; + seed_uref!: string; + seed_contract_hash!: string; + seed_account_hash!: string; + seed_name!: string; + seed_key!: string; + query_key!: string; + query_path!: string; + account_identifier!: string; + public_key!: string; + private_key!: string | undefined; + has_private_key!: boolean; + session_hash!: string; + session_name!: string; + payment_amount!: string; + entry_point!: string; + args_json!: string; + args_simple!: string; + version!: string; + call_package = false; + file_name!: string; + deploy_json!: string; + chain_name = this.env['chain_name'].toString(); + network: network = { + name: 'default', + node_address: this.env['node_address'].toString(), + chain_name: this.env['chain_name'].toString() + }; + private _wasm!: Uint8Array | undefined; + + @ViewChild('selectKeyElt') selectKeyElt!: ElementRef; + @ViewChild('blockIdentifierHeightElt') blockIdentifierHeightElt!: ElementRef; + @ViewChild('blockIdentifierHashElt') blockIdentifierHashElt!: ElementRef; + @ViewChild('purseUrefElt') purseUrefElt!: ElementRef; + @ViewChild('stateRootHashElt') stateRootHashElt!: ElementRef; + @ViewChild('finalizedApprovalsElt') finalizedApprovalsElt!: ElementRef; + @ViewChild('deployHashElt') deployHashElt!: ElementRef; + @ViewChild('purseIdentifierElt') purseIdentifierElt!: ElementRef; + @ViewChild('itemKeyElt') itemKeyElt!: ElementRef; + @ViewChild('seedUrefElt') seedUrefElt!: ElementRef; + @ViewChild('seedAccounttHashElt') seedAccounttHashElt!: ElementRef; + @ViewChild('seedContractHashElt') seedContractHashElt!: ElementRef; + @ViewChild('seedNameElt') seedNameElt!: ElementRef; + @ViewChild('seedKeyElt') seedKeyElt!: ElementRef; + @ViewChild('queryKeyElt') queryKeyElt!: ElementRef; + @ViewChild('queryPathElt') queryPathElt!: ElementRef; + @ViewChild('accountIdentifierElt') accountIdentifierElt!: ElementRef; + @ViewChild('publicKeyElt') publicKeyElt!: ElementRef; + @ViewChild('privateKeyElt') privateKeyElt!: ElementRef; + @ViewChild('TTLElt') TTLElt!: ElementRef; + @ViewChild('transferAmountElt') transferAmountElt!: ElementRef; + @ViewChild('targetAccountElt') targetAccountElt!: ElementRef; + @ViewChild('entryPointElt') entryPointElt!: ElementRef; + @ViewChild('argsSimpleElt') argsSimpleElt!: ElementRef; + @ViewChild('argsJsonElt') argsJsonElt!: ElementRef; + @ViewChild('sessionHashElt') sessionHashElt!: ElementRef; + @ViewChild('sessionNameElt') sessionNameElt!: ElementRef; + @ViewChild('versionElt') versionElt!: ElementRef; + @ViewChild('callPackageElt') callPackageElt!: ElementRef; + @ViewChild('deployJsonElt') deployJsonElt!: ElementRef; + @ViewChild('paymentAmountElt') paymentAmountElt!: ElementRef; + @ViewChild('selectDictIdentifierElt') selectDictIdentifierElt!: ElementRef; + @ViewChild('wasmElt') wasmElt!: ElementRef; + @ViewChild('deployFileElt') deployFileElt!: ElementRef; + @ViewChild('selectNetworkElt') selectNetworkElt!: ElementRef; + + constructor( + @Inject(SDK_TOKEN) private readonly sdk: SDK, + @Inject(CONFIG) public readonly config: EnvironmentConfig, + @Inject(ENV) public readonly env: EnvironmentConfig, + private readonly resultService: ResultService, + private readonly changeDetectorRef: ChangeDetectorRef + ) { + } + + async ngOnInit(): Promise { + console.info(this.sdk); + this.sdk_methods = Object.getOwnPropertyNames(Object.getPrototypeOf(this.sdk)) + .filter(name => typeof (this.sdk as any)[name] === 'function') + .filter(name => !['free', 'constructor', '__destroy_into_raw', 'getNodeAddress', 'setNodeAddress', 'getVerbosity', 'setVerbosity'].includes(name)) + .filter(name => !name.endsWith('_options')) + .filter(name => !name.startsWith('chain_')) + .filter(name => !name.startsWith('state_')) + .filter(name => !name.startsWith('info_')) + .filter(name => !name.startsWith('account')) + .sort(); + + this.sdk_deploy_methods = this.sdk_methods.filter(name => ['deploy', 'speculative_deploy', 'speculative_transfer', 'transfer'].includes(name)); + + this.sdk_deploy_utils_methods = this.sdk_methods.filter(name => ['make_deploy', 'make_transfer', 'sign_deploy', 'put_deploy'].includes(name)); + + this.sdk_contract_methods = this.sdk_methods.filter(name => ['call_entrypoint', 'install', 'query_contract_dict', 'query_contract_key'].includes(name)); + + this.sdk_rpc_methods = this.sdk_methods.filter(name => !this.sdk_deploy_methods.concat(this.sdk_deploy_utils_methods, this.sdk_contract_methods).includes(name)); + }; + + selectNetwork() { + let network = this.selectNetworkElt.nativeElement.value; + network = network && this.networks.find(x => x.name == network); + if (!network) { + const network = this.selectNetworkElt.nativeElement.value; + // To do fix chain-name + if (network) { + this.node_address = network; + } + } + this.network = network; + this.chain_name = network.chain_name; + this.node_address = network.node_address; + this.sdk.setNodeAddress(this.node_address); + } + + async get_peers() { + try { + const peers_result = await this.sdk.get_peers(); + peers_result && this.resultService.setResult(peers_result.toJson()); + peers_result && (this.peers = peers_result.peers); + } catch (err) { + err && (this.error = err.toString()); + } + } + + async get_node_status() { + const get_node_status = await this.sdk.get_node_status(); + get_node_status && this.resultService.setResult(get_node_status.toJson()); + return get_node_status; + } + + async get_state_root_hash(no_mark_for_check?: boolean) { + const options: getStateRootHashOptions = this.sdk.get_state_root_hash_options({}); + if (!options) { + return; + } + if (!no_mark_for_check) { + this.getIdentifieBlock(options); + const state_root_hash = await this.sdk.get_state_root_hash(options); + this.state_root_hash && this.resultService.setResult(state_root_hash.toJson()); + } else { + const state_root_hash = await this.sdk.get_state_root_hash(options); + this.state_root_hash = state_root_hash.state_root_hash_as_string; + this.changeDetectorRef.markForCheck(); + } + } + + async get_account(account_identifier_param: string) { + let account_identifier!: string; + if (!account_identifier_param) { + account_identifier = this.accountIdentifierElt && this.accountIdentifierElt.nativeElement.value.toString().trim(); + } else { + account_identifier = account_identifier_param; + } + if (!account_identifier) { + return; + } + const get_account_options = this.sdk.get_account_options({ + account_identifier_as_string: account_identifier + }); + if (!get_account_options) { + return; + } + this.getIdentifieBlock(get_account_options); + const get_account = await this.sdk.get_account(get_account_options); + if (!account_identifier_param) { + get_account && this.resultService.setResult(get_account.toJson()); + } + return get_account; + } + + async onPublicKeyChange() { + const public_key: string = this.publicKeyElt && this.publicKeyElt.nativeElement.value.toString().trim(); + this.account_hash = ''; + this.main_purse = ''; + const get_account = await this.get_account(public_key); + if (public_key !== this.public_key) { + this.public_key = public_key; + this.private_key = ''; + this.has_private_key = false; + this.privateKeyElt.nativeElement.value = ''; + } + this.account_hash = get_account?.account.account_hash; + this.main_purse = get_account?.account.main_purse; + this.changeDetectorRef.markForCheck(); + } + + async get_auction_info() { + try { + const get_auction_info_options = this.sdk.get_auction_info_options({}); + this.getIdentifieBlock(get_auction_info_options); + const get_auction_info = await this.sdk.get_auction_info(get_auction_info_options); + get_auction_info && this.resultService.setResult(get_auction_info.toJson()); + } catch (err) { + err && (this.error = err.toString()); + } + } + + async install() { + const payment_amount: string = this.paymentAmountElt && this.paymentAmountElt.nativeElement.value.toString().trim(); + if (!payment_amount) { + return; + } + if (!this.public_key || !this.private_key) { + return; + } + const wasmBuffer = this._wasm?.buffer; + if (!wasmBuffer) { + return; + } + const deploy_params = new DeployStrParams( + this.chain_name, + this.public_key, + this.private_key, + ); + const session_params = this.get_session_params(); + try { + const install = await this.sdk.install( + deploy_params, + session_params, + payment_amount, + ); + install && this.resultService.setResult(install.toJson()); + } catch (err) { + console.error(err); + err && (this.error = err.toString()); + } + } + + async get_balance() { + const purse_uref_as_string: string = this.purseUrefElt && this.purseUrefElt.nativeElement.value.toString().trim(); + const state_root_hash: string = this.stateRootHashElt && this.stateRootHashElt.nativeElement.value.toString().trim(); + if (!purse_uref_as_string) { + return; + } + try { + const get_balance_options = this.sdk.get_balance_options({ + state_root_hash_as_string: state_root_hash || '', + purse_uref_as_string, + }); + const get_balance = await this.sdk.get_balance(get_balance_options); + get_balance && this.resultService.setResult(get_balance.toJson()); + } catch (err) { + console.error(err); + err && (this.error = err.toString()); + } + } + + async get_block_transfers() { + try { + const get_block_transfers_options = this.sdk.get_block_transfers_options({}); + this.getIdentifieBlock(get_block_transfers_options); + const get_block_transfers = await this.sdk.get_block_transfers(get_block_transfers_options); + get_block_transfers && this.resultService.setResult(get_block_transfers.toJson()); + } catch (err) { + err && (this.error = err.toString()); + } + } + + async get_block() { + try { + const chain_get_block_options: getBlockOptions = this.sdk.get_block_options({}); + this.getIdentifieBlock(chain_get_block_options); + const chain_get_block = await this.sdk.get_block(chain_get_block_options); + chain_get_block && this.resultService.setResult(chain_get_block.toJson()); + } catch (err) { + err && (this.error = err.toString()); + } + } + + async submitAction(action: string) { + await this.cleanResult(); + const exec = true; + await this.handleAction(action, exec); + this.changeDetectorRef.markForCheck(); + } + + async get_chainspec() { + try { + const get_chainspec = await this.sdk.get_chainspec(); + const chain_spec = hexToString(get_chainspec?.chainspec_bytes.chainspec_bytes); + chain_spec && this.resultService.setResult(chain_spec); + } catch (err) { + err && (this.error = err.toString()); + } + } + + async get_deploy() { + const finalized_approvals: boolean = this.finalizedApprovalsElt && this.finalizedApprovalsElt.nativeElement.value as boolean; + const deploy_hash_as_string: string = this.deployHashElt && this.deployHashElt.nativeElement.value.toString().trim(); + if (!deploy_hash_as_string) { + return; + } + const get_deploy_options = this.sdk.get_deploy_options({ + deploy_hash_as_string + }); + get_deploy_options.finalized_approvals = finalized_approvals; + try { + const get_deploy = await this.sdk.get_deploy(get_deploy_options); + get_deploy && this.resultService.setResult(get_deploy.toJson()); + } catch (err) { + err && (this.error = err.toString()); + } + } + + async get_dictionary_item() { + const state_root_hash: string = this.stateRootHashElt && this.stateRootHashElt.nativeElement.value.toString().trim(); + const item_key: string = this.itemKeyElt && this.itemKeyElt.nativeElement.value.toString().trim(); + const seed_key: string = this.seedKeyElt && this.seedKeyElt.nativeElement.value.toString().trim(); + if (!item_key && !seed_key) { + return; + } + const seed_uref: string = this.seedUrefElt && this.seedUrefElt.nativeElement.value.toString().trim(); + let dictionary_item_identifier: DictionaryItemIdentifier | undefined; + if (seed_uref && this.select_dict_identifier === 'newFromSeedUref') { + dictionary_item_identifier = + DictionaryItemIdentifier.newFromSeedUref( + seed_uref, + item_key + ); + } else { + if (seed_key && this.select_dict_identifier === 'newFromDictionaryKey') { + dictionary_item_identifier = + DictionaryItemIdentifier.newFromDictionaryKey( + seed_key + ); + } else { + const seed_contract_hash: string = this.seedContractHashElt && this.seedContractHashElt.nativeElement.value.toString().trim(); + const seed_account_hash: string = this.seedAccounttHashElt && this.seedAccounttHashElt.nativeElement.value.toString().trim(); + const seed_name: string = this.seedNameElt && this.seedNameElt.nativeElement.value.toString().trim(); + if (!seed_name) { + return; + } + if (seed_contract_hash && this.select_dict_identifier === 'newFromContractInfo') { + dictionary_item_identifier = + DictionaryItemIdentifier.newFromContractInfo( + seed_contract_hash, + seed_name, + item_key + ); + } + else if (seed_account_hash && this.select_dict_identifier === 'newFromAccountInfo') { + dictionary_item_identifier = + DictionaryItemIdentifier.newFromAccountInfo( + seed_account_hash, + seed_name, + item_key + ); + } + } + } + if (!dictionary_item_identifier) { + return; + } + const get_dictionary_item_options = this.sdk.get_dictionary_item_options({ + state_root_hash_as_string: state_root_hash || '', + }); + get_dictionary_item_options.dictionary_item_identifier = dictionary_item_identifier; + try { + const state_get_dictionary_item = await this.sdk.state_get_dictionary_item(get_dictionary_item_options); + state_get_dictionary_item && this.resultService.setResult(state_get_dictionary_item.toJson()); + } catch (err) { + err && (this.error = err.toString()); + } + } + + async get_era_info() { + const get_era_info_options = this.sdk.get_era_info_options({}); + this.getIdentifieBlock(get_era_info_options); + try { + const get_era_info = await this.sdk.get_era_info(get_era_info_options); + get_era_info && this.resultService.setResult(get_era_info.toJson()); + } catch (err) { + err && (this.error = err.toString()); + } + } + + async get_era_summary() { + const get_era_summary_options = this.sdk.get_era_summary_options({}); + this.getIdentifieBlock(get_era_summary_options); + try { + const get_era_summary = await this.sdk.get_era_summary(get_era_summary_options); + get_era_summary && this.resultService.setResult(get_era_summary.toJson()); + } catch (err) { + err && (this.error = err.toString()); + } + } + + async get_validator_changes() { + try { + const get_validator_changes = await this.sdk.get_validator_changes(); + get_validator_changes && this.resultService.setResult(get_validator_changes.toJson()); + } catch (err) { + err && (this.error = err.toString()); + } + } + + async list_rpcs() { + try { + const list_rpcs = await this.sdk.list_rpcs(); + list_rpcs && this.resultService.setResult(list_rpcs.toJson()); + } catch (err) { + err && (this.error = err.toString()); + } + } + + async query_balance() { + const purse_identifier_as_string: string = this.purseIdentifierElt && this.purseIdentifierElt.nativeElement.value.toString().trim(); + if (!purse_identifier_as_string) { + return; + } + const query_balance_options = this.sdk.query_balance_options({ + purse_identifier_as_string + }); + this.getGlobalIdentifier(query_balance_options); + try { + const query_balance = await this.sdk.query_balance(query_balance_options); + query_balance && this.resultService.setResult(query_balance.balance); + } catch (err) { + err && (this.error = err.toString()); + } + } + + async query_global_state() { + const path_as_string: string = this.queryPathElt && this.queryPathElt.nativeElement.value.toString().trim().replace(/^\/+|\/+$/g, ''); + const key_as_string: string = this.queryKeyElt && this.queryKeyElt.nativeElement.value.toString().trim(); + if (!key_as_string) { + return; + } + const query_global_state_options = this.sdk.query_global_state_options({ + key_as_string, + path_as_string, + }); + this.getGlobalIdentifier(query_global_state_options); + try { + const query_global_state = await this.sdk.query_global_state(query_global_state_options); + query_global_state && this.resultService.setResult(query_global_state.toJson()); + } catch (err) { + err && (this.error = err.toString()); + } + } + + async deploy(deploy_result = true, speculative?: boolean) { + const timestamp = getTimestamp(); + const ttl: string = this.TTLElt && this.TTLElt.nativeElement.value.toString().trim(); + if (!this.public_key) { + return; + } + const deploy_params = new DeployStrParams( + this.chain_name, + this.public_key, + this.private_key, + timestamp, + ttl + ); + // TODO Fix better + // Fix invalid form + const payment_params = new PaymentStrParams(); + const payment_amount: string = this.paymentAmountElt && this.paymentAmountElt.nativeElement.value.toString().trim(); + if (!payment_amount) { + return; + } + payment_params.payment_amount = payment_amount; + const session_params = this.get_session_params(); + // let test_deploy = Deploy.withPaymentAndSession( + // deploy_params, + // session_params, + // payment_params, + // ); + // if (this.private_key) { + // test_deploy = test_deploy.sign(this.private_key); + // } + let result; + if (speculative) { + const maybe_block_options = { + maybe_block_id_as_string: undefined, + maybe_block_identifier: undefined, + }; + this.getIdentifieBlock(maybe_block_options); + const { maybe_block_id_as_string, maybe_block_identifier } = maybe_block_options; + result = await this.sdk.speculative_deploy( + deploy_params, + session_params, + payment_params, + maybe_block_id_as_string, + maybe_block_identifier + ); + } + else if (deploy_result) { + result = await this.sdk.deploy( + deploy_params, + session_params, + payment_params, + ); + } else { + result = this.sdk.make_deploy( + deploy_params, + session_params, + payment_params, + ); + } + if (result) { + const result_json = result.toJson(); + this.deploy_json = jsonPrettyPrint(result_json, this.verbosity); + this.deploy_json && this.resultService.setResult(result_json); + } + return result; + } + + async transfer(deploy_result = true, speculative?: boolean) { + const timestamp = getTimestamp(); // or Date.now().toString().trim(); // or undefined + const ttl: string = this.TTLElt && this.TTLElt.nativeElement.value.toString().trim(); + if (!this.public_key) { + return; + } + + const deploy_params = new DeployStrParams( + this.chain_name, + this.public_key, + this.private_key, + timestamp, + ttl + ); + const payment_params = new PaymentStrParams(); + payment_params.payment_amount = this.config['gas_fee_transfer'].toString(); + const transfer_amount: string = this.transferAmountElt && this.transferAmountElt.nativeElement.value.toString().trim(); + const target_account: string = this.targetAccountElt && this.targetAccountElt.nativeElement.value.toString().trim(); + if (!transfer_amount || !target_account) { + return; + } + + // let test_transfer = Deploy.withTransfer( + // '2500000000', + // '0187adb3e0f60a983ecc2ddb48d32b3deaa09388ad3bc41e14aeb19959ecc60b54', + // undefined, + // deploy_params, + // payment_params, + // ); + // console.log(test_transfer); + let result; + if (speculative) { + const maybe_block_options = { + maybe_block_id_as_string: undefined, + maybe_block_identifier: undefined, + }; + this.getIdentifieBlock(maybe_block_options); + const { maybe_block_id_as_string, maybe_block_identifier } = maybe_block_options; + result = await this.sdk.speculative_transfer( + transfer_amount, + target_account, + undefined, // transfer_id + deploy_params, + payment_params, + maybe_block_id_as_string, + maybe_block_identifier + ); + } + else if (deploy_result) { + result = await this.sdk.transfer( + transfer_amount, + target_account, + undefined, // transfer_id + deploy_params, + payment_params, + ); + } else { + result = await this.sdk.make_transfer( + transfer_amount, + target_account, + undefined, // transfer_id + deploy_params, + payment_params, + ); + } + if (result) { + const result_json = result.toJson(); + this.deploy_json = jsonPrettyPrint(result_json, this.verbosity); + this.deploy_json && this.resultService.setResult(result_json); + } + return result; + } + + async put_deploy() { + const signed_deploy_as_string: string = this.deployJsonElt && this.deployJsonElt.nativeElement.value.toString().trim(); + if (!signed_deploy_as_string) { + return; + } + const signed_deploy = new Deploy(JSON.parse(signed_deploy_as_string)); + // if (!signed_deploy.isValid()) { + // console.error('Deploy is not valid.'); + // return; + // } + // if (signed_deploy.isExpired()) { + // console.error('Deploy is expired.'); + // return; + // } + // the deploy hash is correct (should be the hash of the header), and + // the body hash is correct (should be the hash of the body), and + // approvals are non empty, and + // all approvals are valid signatures of the deploy hash + + const put_deploy = await this.sdk.put_deploy( + signed_deploy, + ); + put_deploy && this.resultService.setResult(put_deploy.toJson()); + return put_deploy; + } + + async speculative_exec() { + const signed_deploy_as_string: string = this.deployJsonElt && this.deployJsonElt.nativeElement.value.toString().trim(); + if (!signed_deploy_as_string) { + return; + } + const signed_deploy = new Deploy(JSON.parse(signed_deploy_as_string)); + // if (!signed_deploy.isValid()) { + // console.error('Deploy is not valid.'); + // return; + // } + // if (signed_deploy.isExpired()) { + // console.error('Deploy is expired.'); + // return; + // } + const speculative_exec_options = this.sdk.speculative_exec_options({ + deploy: signed_deploy.toJson() + }); + this.getIdentifieBlock(speculative_exec_options); + const speculative_exec = await this.sdk.speculative_exec(speculative_exec_options); + speculative_exec && this.resultService.setResult(speculative_exec.toJson()); + return speculative_exec; + } + + async sign_deploy() { + if (!this.private_key) { + return; + } + const signed_deploy_as_string: string = this.deployJsonElt && this.deployJsonElt.nativeElement.value.toString().trim(); + if (!signed_deploy_as_string) { + return; + } + + // TODO + // deploy_to_sign = deploy_to_sign.addArg("test:bool='false"); // Deploy was modified has no approvals anymore + // deploy_to_sign = deploy_to_sign.addArg({ "name": "name_of_my_key", "type": "U256", "value": 1 }); + + + let signed_deploy; + try { + signed_deploy = new Deploy(JSON.parse(signed_deploy_as_string)); + } + catch { + console.error("Error parsing deploy"); + } + if (!signed_deploy) { + return; + } + signed_deploy = signed_deploy.sign(this.private_key); + this.deploy_json = jsonPrettyPrint(signed_deploy.toJson(), this.verbosity); + this.deployJsonElt.nativeElement.value = this.deploy_json; + } + + async make_deploy() { + const deploy_result = false; + await this.deploy(deploy_result); + } + + async make_transfer() { + const deploy_result = false; + await this.transfer(deploy_result); + } + + async speculative_transfer() { + const speculative = true; + const deploy_result = !speculative; + await this.transfer(deploy_result, speculative); + } + + async speculative_deploy() { + const speculative = true; + const deploy_result = !speculative; + await this.deploy(deploy_result, speculative); + } + + async call_entrypoint() { + if (!this.public_key || !this.private_key) { + return; + } + const deploy_params = new DeployStrParams( + this.chain_name, + this.public_key, + this.private_key, + ); + const session_params = this.get_session_params(); + const payment_amount: string = this.paymentAmountElt && this.paymentAmountElt.nativeElement.value.toString().trim(); + if (!payment_amount) { + return; + } + try { + const call_entrypoint = await this.sdk.call_entrypoint( + deploy_params, + session_params, + payment_amount + ); + call_entrypoint && this.resultService.setResult(call_entrypoint.toJson()); + } catch (err) { + err && (this.error = err.toString()); + } + } + + async query_contract_dict() { + const state_root_hash: string = this.stateRootHashElt && this.stateRootHashElt.nativeElement.value.toString().trim(); + const dictionary_item_key: string = this.itemKeyElt && this.itemKeyElt.nativeElement.value.toString().trim(); + if (!dictionary_item_key) { + return; + } + const contract_named_key: string = this.seedContractHashElt && this.seedContractHashElt.nativeElement.value.toString().trim(); + const dictionary_name: string = this.seedNameElt && this.seedNameElt.nativeElement.value.toString().trim(); + if (!dictionary_name) { + return; + } + let dictionary_item_params: DictionaryItemStrParams | undefined; + if (contract_named_key) { + // We have two ways to identify a dictionary, either by identifier or by item params + // const dictionary_item_identifier = + // DictionaryItemIdentifier.newFromContractInfo( + // contract_named_key, + // dictionary_name, + // dictionary_item_key + // ); + dictionary_item_params = new DictionaryItemStrParams(); + dictionary_item_params.setContractNamedKey(contract_named_key, dictionary_name, dictionary_item_key); + } + if (!dictionary_item_params) { + return; + } + const query_contract_dict_options = this.sdk.query_contract_dict_options({ + state_root_hash_as_string: state_root_hash || '', + // dictionary_item_identifier: dictionary_item_identifier.toJson() // you need to send JSON of the object, not the object or you need to use setter + }); + // Here setter does take instance of DictionaryItemStrParams + query_contract_dict_options.dictionary_item_params = dictionary_item_params; + try { + const query_contract_dict = await this.sdk.query_contract_dict(query_contract_dict_options); + query_contract_dict && this.resultService.setResult(query_contract_dict.toJson()); + } catch (err) { + err && (this.error = err.toString()); + } + } + + async query_contract_key() { + const state_root_hash: string = this.stateRootHashElt && this.stateRootHashElt.nativeElement.value.toString().trim(); + const key_as_string: string = this.queryKeyElt && this.queryKeyElt.nativeElement.value.toString().trim(); + if (!key_as_string) { + return; + } + const path_as_string: string = this.queryPathElt && this.queryPathElt.nativeElement.value.toString().trim().replace(/^\/+|\/+$/g, ''); + const query_contract_key_options = this.sdk.query_contract_key_options({ + state_root_hash_as_string: state_root_hash || '', + key_as_string, + path_as_string, + }); + try { + const query_contract_key = await this.sdk.query_contract_key(query_contract_key_options); + query_contract_key && this.resultService.setResult(query_contract_key.toJson()); + } catch (err) { + err && (this.error = err.toString()); + } + } + + async ngAfterViewInit() { + this.networks = Object.entries(this.config['networks']).map(([name, network]) => ({ + name, + ...network, + })); + const no_mark_for_check = true; + try { + const get_node_status = await this.get_node_status(); + if (get_node_status) { + await this.get_state_root_hash(no_mark_for_check); + this.action = 'get_node_status'; + } + } catch (error) { + console.error(error); + } + this.changeDetectorRef.markForCheck(); + } + + async onDeployFileSelected(event: Event) { + const file = (event.target as HTMLInputElement).files?.item(0); + let text; + if (file) { + text = await file.text(); + if (!text.trim()) { + return; + } + text = text.trim(); + try { + const deploy_json = JSON.parse(text); + this.deploy_json = jsonPrettyPrint(new Deploy(deploy_json).toJson(), this.verbosity); + } catch { + console.error("Error parsing deploy"); + } + } else { + this.deploy_json = ''; + } + this.changeDetectorRef.markForCheck(); + } + + deployFileClick() { + (this.deployFileElt.nativeElement as HTMLInputElement).click(); + } + + onPrivateKeyClick() { + (this.privateKeyElt.nativeElement as HTMLInputElement).click(); + } + + onWasmClick() { + (this.wasmElt.nativeElement as HTMLInputElement).click(); + } + + resetWasmClick() { + this.wasmElt.nativeElement.value = ''; + this._wasm = undefined; + this.file_name = ''; + } + + async cleanResult() { + this.error = ''; + await this.resultService.setResult(''); + } + + async selectAction($event: Event) { + await this.cleanResult(); + const action = ($event.target as HTMLInputElement).value; + await this.handleAction(action); + this.changeDetectorRef.detectChanges(); + } + + async onWasmSelected(event: Event) { + this.file_name = this.wasmElt?.nativeElement.value.split('\\').pop(); + const file = (event.target as HTMLInputElement).files?.item(0), buffer = await file?.arrayBuffer(); + this._wasm = buffer && new Uint8Array(buffer); + const wasmBuffer = this._wasm?.buffer; + if (!wasmBuffer) { + this.resetWasmClick(); + } + } + + async onPemSelected(event: Event) { + const file = (event.target as HTMLInputElement).files?.item(0); + if (file) { + let text = await file.text(); + if (!text.trim()) { + return; + } + text = text.trim(); + this.public_key = ''; + const public_key = privateToPublicKey(text); + if (public_key) { + this.public_key = public_key; + this.private_key = text; + this.has_private_key = true; + } + + } else { + this.private_key = ''; + this.has_private_key = false; + this.privateKeyElt.nativeElement.value = ''; + } + this.changeDetectorRef.markForCheck(); + setTimeout(async () => { + await this.onPublicKeyChange(); + }, 0); + } + + private async handleAction(action: string, exec?: boolean) { + const fn = (this as any)[action]; + if (typeof fn === 'function') { + if (exec) { + await fn.bind(this).call(); + } + this.action = action; + } else { + console.error(`Method ${action} is not defined on the component.`); + } + } + + motesToCSPR(elt: HTMLInputElement) { + let amount: string = elt.value; + if (!amount) { + return; + } + amount = this.parse_commas(amount); + elt.value = amount.toString(); + return motesToCSPR(amount); + } + + private parse_commas(amount: string) { + return amount.replace(/[,.]/g, ''); + } + + private getGlobalIdentifier(options: { global_state_identifier?: GlobalStateIdentifier; }) { + const state_root_hash: string = this.stateRootHashElt && this.stateRootHashElt.nativeElement.value.toString().trim(); + let global_state_identifier!: GlobalStateIdentifier; + if (state_root_hash) { + global_state_identifier = GlobalStateIdentifier.fromStateRootHash( + new Digest(state_root_hash) + ); + } else { + const block_identifier_height: string = this.blockIdentifierHeightElt && this.blockIdentifierHeightElt.nativeElement.value.toString().trim(); + const block_identifier_hash: string = this.blockIdentifierHashElt && this.blockIdentifierHashElt.nativeElement.value.toString().trim(); + if (block_identifier_hash) { + global_state_identifier = GlobalStateIdentifier.fromBlockHash(new BlockHash(block_identifier_hash)); + } else if (block_identifier_height) { + global_state_identifier = GlobalStateIdentifier.fromBlockHeight(BigInt(block_identifier_height)); + } + } + if (global_state_identifier) { + options.global_state_identifier = global_state_identifier; + } + } + + private getIdentifieBlock(options: { maybe_block_id_as_string?: string; maybe_block_identifier?: BlockIdentifier; }) { + const block_identifier_height: string = this.blockIdentifierHeightElt && this.blockIdentifierHeightElt.nativeElement.value.toString().trim(); + const block_identifier_hash: string = this.blockIdentifierHashElt && this.blockIdentifierHashElt.nativeElement.value.toString().trim(); + if (block_identifier_hash) { + options.maybe_block_id_as_string = block_identifier_hash; + options.maybe_block_identifier = undefined; + } else if (block_identifier_height) { + const maybe_block_identifier = BlockIdentifier.fromHeight(BigInt(block_identifier_height)); + options.maybe_block_id_as_string = undefined; + options.maybe_block_identifier = maybe_block_identifier; + } else { + options.maybe_block_id_as_string = undefined; + options.maybe_block_identifier = undefined; + } + } + + private get_session_params(): SessionStrParams { + const session_params = new SessionStrParams(); + const entry_point: string = this.entryPointElt && this.entryPointElt.nativeElement.value.toString().trim(); + if (entry_point) { + session_params.session_entry_point = entry_point; + } + const args_simple: [string] = this.argsSimpleElt && this.argsSimpleElt.nativeElement.value.toString() + .trim() + .split(',') + .map((item: string) => item.trim()) + .filter((item: string) => item !== ''); + const args_json: string = this.argsJsonElt && this.argsJsonElt.nativeElement.value.toString().trim(); + if (args_simple?.length) { + session_params.session_args_simple = args_simple; + } + else if (args_json) { + session_params.session_args_json = args_json; + } + const call_package: boolean = this.callPackageElt && this.callPackageElt.nativeElement.value as boolean; + const session_hash: string = this.sessionHashElt && this.sessionHashElt.nativeElement.value.toString().trim(); + const session_name: string = this.sessionNameElt && this.sessionNameElt.nativeElement.value.toString().trim(); + if (!call_package) { + if (session_hash) { + session_params.session_hash = session_hash; + } else if (session_name) { + session_params.session_name = session_name; + } + } else { + if (session_hash) { + session_params.session_package_hash = session_hash; + } else if (session_name) { + session_params.session_package_name = session_name; + } + } + if (this._wasm) { + session_params.session_bytes = Bytes.fromUint8Array(this._wasm); + } + const version: string = this.versionElt && this.versionElt.nativeElement.value.toString().trim(); + if (version) { + session_params.session_version = version; + } + return session_params; + } + + changePort(peer: PeerEntry) { + const address = peer.address.split(':'); + const new_address = ['http://', address.shift(), ':', '7777'].join(''); + return (new_address); + } + + async copy(value: string) { + this.resultService.copyClipboard(value); + } + +} diff --git a/examples/frontend/angular/src/assets/.gitkeep b/examples/frontend/angular/src/assets/.gitkeep new file mode 100644 index 000000000..e69de29bb diff --git a/examples/frontend/angular/src/assets/logo.png b/examples/frontend/angular/src/assets/logo.png new file mode 100644 index 000000000..2f628bf4f Binary files /dev/null and b/examples/frontend/angular/src/assets/logo.png differ diff --git a/examples/frontend/angular/src/environments/environment.prod.ts b/examples/frontend/angular/src/environments/environment.prod.ts new file mode 100644 index 000000000..c352f6a97 --- /dev/null +++ b/examples/frontend/angular/src/environments/environment.prod.ts @@ -0,0 +1,5 @@ +export const environment = { + production: true, + node_address: 'https://rpc.integration.casperlabs.io', + chain_name: "integration-test", +}; diff --git a/examples/frontend/angular/src/environments/environment.ts b/examples/frontend/angular/src/environments/environment.ts new file mode 100644 index 000000000..4bd95c6cc --- /dev/null +++ b/examples/frontend/angular/src/environments/environment.ts @@ -0,0 +1,18 @@ +// This file can be replaced during build by using the `fileReplacements` array. +// `ng build` replaces `environment.ts` with `environment.prod.ts`. +// The list of file replacements can be found in `angular.json`. + +export const environment = { + production: false, + node_address: 'http://localhost:4200', + chain_name: "casper-net-1", +}; + +/* + * For easier debugging in development mode, you can import the following file + * to ignore zone related error stack frames such as `zone.run`, `zoneDelegate.invokeTask`. + * + * This import should be commented out in production mode because it will have a negative impact + * on performance if an error is thrown. + */ +// import 'zone.js/plugins/zone-error'; // Included with Angular CLI. diff --git a/examples/frontend/angular/src/favicon.png b/examples/frontend/angular/src/favicon.png new file mode 100644 index 000000000..3c1776bdf Binary files /dev/null and b/examples/frontend/angular/src/favicon.png differ diff --git a/examples/frontend/angular/src/index.html b/examples/frontend/angular/src/index.html new file mode 100644 index 000000000..1726006ae --- /dev/null +++ b/examples/frontend/angular/src/index.html @@ -0,0 +1,26 @@ + + + + + Casper Client + + + + + + + + + + diff --git a/examples/frontend/angular/src/main.ts b/examples/frontend/angular/src/main.ts new file mode 100644 index 000000000..9d361d665 --- /dev/null +++ b/examples/frontend/angular/src/main.ts @@ -0,0 +1,33 @@ + +import { HttpClientModule } from '@angular/common/http'; +import { enableProdMode, EnvironmentProviders, importProvidersFrom, Provider } from '@angular/core'; +import { bootstrapApplication } from '@angular/platform-browser'; +import { NODE_ADDRESS, VERBOSITY, WASM_ASSET_PATH, WasmModule } from '@util/wasm'; +import { config, CONFIG, ENV } from '@util/config'; +import { environment } from './environments/environment'; +import { AppComponent } from './app/app.component'; +import { Verbosity } from 'casper-sdk/casper_rust_wasm_sdk'; + +if (environment.production) { + enableProdMode(); +} + +const providers: Array = [ + { provide: ENV, useValue: environment }, + { provide: CONFIG, useValue: config }, + { provide: WASM_ASSET_PATH, useValue: config['wasm_asset_path'] }, + { provide: NODE_ADDRESS, useValue: environment.node_address }, + { provide: VERBOSITY, useValue: Verbosity[config['verbosity'] as any] }, + importProvidersFrom([ + HttpClientModule, + WasmModule, + ]), +]; + +bootstrapApplication(AppComponent, { providers }) + .then(() => { + // + }) + .catch(() => { + // + }); \ No newline at end of file diff --git a/examples/frontend/angular/src/styles.scss b/examples/frontend/angular/src/styles.scss new file mode 100644 index 000000000..4d5caccdb --- /dev/null +++ b/examples/frontend/angular/src/styles.scss @@ -0,0 +1,54 @@ +html, +body { + display: grid; + height: 100%; + margin: 0; + padding: 0; +} + +textarea { + width: 100%; +} + +button { + white-space: nowrap; +} + +input[type='reset'], +.cursor-pointer { + cursor: pointer; + z-index: 1; +} + +input[type='search'], +input[type='url'], +select { + // background-color: rgb(232, 240, 254); + background-color: white !important; + max-height: 2.5rem; +} + +form { + position: relative; +} + +input:-webkit-autofill, +input:-webkit-autofill:hover, +input:-webkit-autofill:focus, +textarea:-webkit-autofill, +textarea:-webkit-autofill:hover, +textarea:-webkit-autofill:focus, +select:-webkit-autofill, +select:-webkit-autofill:hover, +select:-webkit-autofill:focus { + -webkit-box-shadow: 0 0 0px 1000px #ffffff inset !important; +} + +svg { + height: 24px; + width: 24px; +} + +.hljs-attr { + font-weight: bold; +} diff --git a/examples/frontend/angular/src/test-setup.ts b/examples/frontend/angular/src/test-setup.ts new file mode 100644 index 000000000..ab1eeeb33 --- /dev/null +++ b/examples/frontend/angular/src/test-setup.ts @@ -0,0 +1,8 @@ +// @ts-expect-error https://thymikee.github.io/jest-preset-angular/docs/getting-started/test-environment +globalThis.ngJest = { + testEnvironmentOptions: { + errorOnUnknownElements: true, + errorOnUnknownProperties: true, + }, +}; +import 'jest-preset-angular/setup-jest'; diff --git a/examples/frontend/angular/tsconfig.app.json b/examples/frontend/angular/tsconfig.app.json new file mode 100644 index 000000000..3c5c0c564 --- /dev/null +++ b/examples/frontend/angular/tsconfig.app.json @@ -0,0 +1,10 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "outDir": "./dist/out-tsc", + "types": [] + }, + "files": ["src/main.ts"], + "include": ["src/**/*.d.ts"], + "exclude": ["jest.config.ts", "src/**/*.test.ts", "src/**/*.spec.ts"] +} diff --git a/examples/frontend/angular/tsconfig.base.json b/examples/frontend/angular/tsconfig.base.json new file mode 100644 index 000000000..b1d664d42 --- /dev/null +++ b/examples/frontend/angular/tsconfig.base.json @@ -0,0 +1,27 @@ +{ + "compileOnSave": false, + "compilerOptions": { + "rootDir": ".", + "sourceMap": true, + "declaration": false, + "moduleResolution": "node", + "emitDecoratorMetadata": true, + "experimentalDecorators": true, + "importHelpers": true, + "target": "es2022", + "module": "esnext", + "lib": ["es2020", "dom"], + "skipLibCheck": true, + "skipDefaultLibCheck": true, + "baseUrl": ".", + "paths": { + "@components": ["libs/components/src/index.ts"], + "@util/config": ["libs/util/config/src/index.ts"], + "@util/hightlight-webworker": [ + "libs/util/hihlight-webworker/src/index.ts" + ], + "@util/wasm": ["libs/util/services/wasm/src/index.ts"] + } + }, + "exclude": ["node_modules", "tmp"] +} diff --git a/examples/frontend/angular/tsconfig.editor.json b/examples/frontend/angular/tsconfig.editor.json new file mode 100644 index 000000000..8ae117d96 --- /dev/null +++ b/examples/frontend/angular/tsconfig.editor.json @@ -0,0 +1,7 @@ +{ + "extends": "./tsconfig.json", + "include": ["src/**/*.ts"], + "compilerOptions": { + "types": ["jest", "node"] + } +} diff --git a/examples/frontend/angular/tsconfig.json b/examples/frontend/angular/tsconfig.json new file mode 100644 index 000000000..b8788ae1c --- /dev/null +++ b/examples/frontend/angular/tsconfig.json @@ -0,0 +1,31 @@ +{ + "compilerOptions": { + "useDefineForClassFields": false, + "forceConsistentCasingInFileNames": true, + "strict": true, + "noImplicitOverride": true, + "noPropertyAccessFromIndexSignature": true, + "noImplicitReturns": true, + "noFallthroughCasesInSwitch": true + }, + "files": [], + "include": [], + "references": [ + { + "path": "./tsconfig.app.json" + }, + { + "path": "./tsconfig.spec.json" + }, + { + "path": "./tsconfig.editor.json" + } + ], + "angularCompilerOptions": { + "enableI18nLegacyMessageIdFormat": false, + "strictInjectionParameters": true, + "strictInputAccessModifiers": true, + "strictTemplates": true + }, + "extends": "./tsconfig.base.json" +} diff --git a/examples/frontend/angular/tsconfig.spec.json b/examples/frontend/angular/tsconfig.spec.json new file mode 100644 index 000000000..1dbe7f64f --- /dev/null +++ b/examples/frontend/angular/tsconfig.spec.json @@ -0,0 +1,16 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "outDir": "./dist/out-tsc", + "module": "commonjs", + "target": "es2016", + "types": ["jest", "node"] + }, + "files": ["src/test-setup.ts"], + "include": [ + "jest.config.ts", + "src/**/*.test.ts", + "src/**/*.spec.ts", + "src/**/*.d.ts" + ] +} diff --git a/examples/frontend/package-lock.json b/examples/frontend/package-lock.json new file mode 100644 index 000000000..aba25f735 --- /dev/null +++ b/examples/frontend/package-lock.json @@ -0,0 +1,6 @@ +{ + "name": "frontend", + "lockfileVersion": 3, + "requires": true, + "packages": {} +} diff --git a/examples/frontend/react/.env b/examples/frontend/react/.env new file mode 100644 index 000000000..1b9d8cc54 --- /dev/null +++ b/examples/frontend/react/.env @@ -0,0 +1,6 @@ +REACT_APP_NODE_ADDRESS=http://localhost:11101 +REACT_APP_APP_ADDRESS=http://localhost:3000 +REACT_APP_CHAIN_NAME=casper-net-1 +REACT_APP_PUBLIC_KEY=0171875f35fc884264a08d4b6ac719f3b585bde0c9b085ac1a42130025e5fe9a3d +REACT_APP_PRIVATE_KEY="-----BEGIN PRIVATE KEY-----\nMC4CAQAwBQYDK2VwBCIEIO4wiasX4zAGgdlMAMDeSsde6XWlB+FZHDHRhtToJREu\n-----END PRIVATE KEY-----" +REACT_APP_END=1 \ No newline at end of file diff --git a/examples/frontend/react/.gitignore b/examples/frontend/react/.gitignore new file mode 100644 index 000000000..5fa505c01 --- /dev/null +++ b/examples/frontend/react/.gitignore @@ -0,0 +1,24 @@ +# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. + +# dependencies +/node_modules +/.pnp +.pnp.js +.env + +# testing +/coverage + +# production +/build + +# misc +.DS_Store +.env.local +.env.development.local +.env.test.local +.env.production.local + +npm-debug.log* +yarn-debug.log* +yarn-error.log* diff --git a/examples/frontend/react/README.md b/examples/frontend/react/README.md new file mode 100644 index 000000000..58beeaccd --- /dev/null +++ b/examples/frontend/react/README.md @@ -0,0 +1,70 @@ +# Getting Started with Create React App + +This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app). + +## Available Scripts + +In the project directory, you can run: + +### `npm start` + +Runs the app in the development mode.\ +Open [http://localhost:3000](http://localhost:3000) to view it in your browser. + +The page will reload when you make changes.\ +You may also see any lint errors in the console. + +### `npm test` + +Launches the test runner in the interactive watch mode.\ +See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information. + +### `npm run build` + +Builds the app for production to the `build` folder.\ +It correctly bundles React in production mode and optimizes the build for the best performance. + +The build is minified and the filenames include the hashes.\ +Your app is ready to be deployed! + +See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information. + +### `npm run eject` + +**Note: this is a one-way operation. Once you `eject`, you can't go back!** + +If you aren't satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project. + +Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you're on your own. + +You don't have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn't feel obligated to use this feature. However we understand that this tool wouldn't be useful if you couldn't customize it when you are ready for it. + +## Learn More + +You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started). + +To learn React, check out the [React documentation](https://reactjs.org/). + +### Code Splitting + +This section has moved here: [https://facebook.github.io/create-react-app/docs/code-splitting](https://facebook.github.io/create-react-app/docs/code-splitting) + +### Analyzing the Bundle Size + +This section has moved here: [https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size](https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size) + +### Making a Progressive Web App + +This section has moved here: [https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app](https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app) + +### Advanced Configuration + +This section has moved here: [https://facebook.github.io/create-react-app/docs/advanced-configuration](https://facebook.github.io/create-react-app/docs/advanced-configuration) + +### Deployment + +This section has moved here: [https://facebook.github.io/create-react-app/docs/deployment](https://facebook.github.io/create-react-app/docs/deployment) + +### `npm run build` fails to minify + +This section has moved here: [https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify) diff --git a/examples/frontend/react/package-lock.json b/examples/frontend/react/package-lock.json new file mode 100644 index 000000000..c5893730e --- /dev/null +++ b/examples/frontend/react/package-lock.json @@ -0,0 +1,15709 @@ +{ + "name": "my-react-app", + "version": "0.1.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "my-react-app", + "version": "0.1.0", + "dependencies": { + "@testing-library/jest-dom": "^5.17.0", + "@testing-library/react": "^13.4.0", + "@testing-library/user-event": "^13.5.0", + "@types/jest": "^29.5.3", + "@types/node": "^20.4.9", + "@types/react": "^18.2.19", + "@types/react-dom": "^18.2.7", + "bootstrap": "^5.3.1", + "casper-sdk": "file:../../../pkg", + "http-proxy-middleware": "^2.0.6", + "react": "^18.2.0", + "react-bootstrap": "^2.8.0", + "react-dom": "^18.2.0", + "react-scripts": "5.0.1", + "typescript": "^5.1.6", + "web-vitals": "^2.1.4" + } + }, + "../../../pkg": { + "name": "casper-rust-wasm-sdk", + "version": "0.1.0", + "license": "Apache-2.0" + }, + "node_modules/@aashutoshrathi/word-wrap": { + "version": "1.2.6", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/@adobe/css-tools": { + "version": "4.2.0", + "license": "MIT" + }, + "node_modules/@alloc/quick-lru": { + "version": "5.2.0", + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@ampproject/remapping": { + "version": "2.2.1", + "license": "Apache-2.0", + "dependencies": { + "@jridgewell/gen-mapping": "^0.3.0", + "@jridgewell/trace-mapping": "^0.3.9" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@babel/code-frame": { + "version": "7.22.5", + "license": "MIT", + "dependencies": { + "@babel/highlight": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/compat-data": { + "version": "7.22.9", + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/core": { + "version": "7.22.9", + "license": "MIT", + "dependencies": { + "@ampproject/remapping": "^2.2.0", + "@babel/code-frame": "^7.22.5", + "@babel/generator": "^7.22.9", + "@babel/helper-compilation-targets": "^7.22.9", + "@babel/helper-module-transforms": "^7.22.9", + "@babel/helpers": "^7.22.6", + "@babel/parser": "^7.22.7", + "@babel/template": "^7.22.5", + "@babel/traverse": "^7.22.8", + "@babel/types": "^7.22.5", + "convert-source-map": "^1.7.0", + "debug": "^4.1.0", + "gensync": "^1.0.0-beta.2", + "json5": "^2.2.2", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/babel" + } + }, + "node_modules/@babel/core/node_modules/semver": { + "version": "6.3.1", + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/@babel/eslint-parser": { + "version": "7.22.9", + "license": "MIT", + "dependencies": { + "@nicolo-ribaudo/eslint-scope-5-internals": "5.1.1-v1", + "eslint-visitor-keys": "^2.1.0", + "semver": "^6.3.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || >=14.0.0" + }, + "peerDependencies": { + "@babel/core": ">=7.11.0", + "eslint": "^7.5.0 || ^8.0.0" + } + }, + "node_modules/@babel/eslint-parser/node_modules/eslint-visitor-keys": { + "version": "2.1.0", + "license": "Apache-2.0", + "engines": { + "node": ">=10" + } + }, + "node_modules/@babel/eslint-parser/node_modules/semver": { + "version": "6.3.1", + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/@babel/generator": { + "version": "7.22.9", + "license": "MIT", + "dependencies": { + "@babel/types": "^7.22.5", + "@jridgewell/gen-mapping": "^0.3.2", + "@jridgewell/trace-mapping": "^0.3.17", + "jsesc": "^2.5.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-annotate-as-pure": { + "version": "7.22.5", + "license": "MIT", + "dependencies": { + "@babel/types": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-builder-binary-assignment-operator-visitor": { + "version": "7.22.5", + "license": "MIT", + "dependencies": { + "@babel/types": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-compilation-targets": { + "version": "7.22.9", + "license": "MIT", + "dependencies": { + "@babel/compat-data": "^7.22.9", + "@babel/helper-validator-option": "^7.22.5", + "browserslist": "^4.21.9", + "lru-cache": "^5.1.1", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/helper-compilation-targets/node_modules/semver": { + "version": "6.3.1", + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/@babel/helper-create-class-features-plugin": { + "version": "7.22.9", + "license": "MIT", + "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.9", + "@babel/helper-skip-transparent-expression-wrappers": "^7.22.5", + "@babel/helper-split-export-declaration": "^7.22.6", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/helper-create-class-features-plugin/node_modules/semver": { + "version": "6.3.1", + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/@babel/helper-create-regexp-features-plugin": { + "version": "7.22.9", + "license": "MIT", + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.22.5", + "regexpu-core": "^5.3.1", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/helper-create-regexp-features-plugin/node_modules/semver": { + "version": "6.3.1", + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/@babel/helper-define-polyfill-provider": { + "version": "0.4.2", + "license": "MIT", + "dependencies": { + "@babel/helper-compilation-targets": "^7.22.6", + "@babel/helper-plugin-utils": "^7.22.5", + "debug": "^4.1.1", + "lodash.debounce": "^4.0.8", + "resolve": "^1.14.2" + }, + "peerDependencies": { + "@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0" + } + }, + "node_modules/@babel/helper-environment-visitor": { + "version": "7.22.5", + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-function-name": { + "version": "7.22.5", + "license": "MIT", + "dependencies": { + "@babel/template": "^7.22.5", + "@babel/types": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-hoist-variables": { + "version": "7.22.5", + "license": "MIT", + "dependencies": { + "@babel/types": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-member-expression-to-functions": { + "version": "7.22.5", + "license": "MIT", + "dependencies": { + "@babel/types": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-module-imports": { + "version": "7.22.5", + "license": "MIT", + "dependencies": { + "@babel/types": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-module-transforms": { + "version": "7.22.9", + "license": "MIT", + "dependencies": { + "@babel/helper-environment-visitor": "^7.22.5", + "@babel/helper-module-imports": "^7.22.5", + "@babel/helper-simple-access": "^7.22.5", + "@babel/helper-split-export-declaration": "^7.22.6", + "@babel/helper-validator-identifier": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/helper-optimise-call-expression": { + "version": "7.22.5", + "license": "MIT", + "dependencies": { + "@babel/types": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-plugin-utils": { + "version": "7.22.5", + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-remap-async-to-generator": { + "version": "7.22.9", + "license": "MIT", + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.22.5", + "@babel/helper-environment-visitor": "^7.22.5", + "@babel/helper-wrap-function": "^7.22.9" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/helper-replace-supers": { + "version": "7.22.9", + "license": "MIT", + "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" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/helper-simple-access": { + "version": "7.22.5", + "license": "MIT", + "dependencies": { + "@babel/types": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-skip-transparent-expression-wrappers": { + "version": "7.22.5", + "license": "MIT", + "dependencies": { + "@babel/types": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-split-export-declaration": { + "version": "7.22.6", + "license": "MIT", + "dependencies": { + "@babel/types": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-string-parser": { + "version": "7.22.5", + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-identifier": { + "version": "7.22.5", + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-option": { + "version": "7.22.5", + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-wrap-function": { + "version": "7.22.9", + "license": "MIT", + "dependencies": { + "@babel/helper-function-name": "^7.22.5", + "@babel/template": "^7.22.5", + "@babel/types": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helpers": { + "version": "7.22.6", + "license": "MIT", + "dependencies": { + "@babel/template": "^7.22.5", + "@babel/traverse": "^7.22.6", + "@babel/types": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/highlight": { + "version": "7.22.5", + "license": "MIT", + "dependencies": { + "@babel/helper-validator-identifier": "^7.22.5", + "chalk": "^2.0.0", + "js-tokens": "^4.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/highlight/node_modules/ansi-styles": { + "version": "3.2.1", + "license": "MIT", + "dependencies": { + "color-convert": "^1.9.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/@babel/highlight/node_modules/chalk": { + "version": "2.4.2", + "license": "MIT", + "dependencies": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/@babel/highlight/node_modules/color-convert": { + "version": "1.9.3", + "license": "MIT", + "dependencies": { + "color-name": "1.1.3" + } + }, + "node_modules/@babel/highlight/node_modules/color-name": { + "version": "1.1.3", + "license": "MIT" + }, + "node_modules/@babel/highlight/node_modules/escape-string-regexp": { + "version": "1.0.5", + "license": "MIT", + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/@babel/highlight/node_modules/has-flag": { + "version": "3.0.0", + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/@babel/highlight/node_modules/supports-color": { + "version": "5.5.0", + "license": "MIT", + "dependencies": { + "has-flag": "^3.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/@babel/parser": { + "version": "7.22.7", + "license": "MIT", + "bin": { + "parser": "bin/babel-parser.js" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": { + "version": "7.22.5", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": { + "version": "7.22.5", + "license": "MIT", + "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" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.13.0" + } + }, + "node_modules/@babel/plugin-proposal-class-properties": { + "version": "7.18.6", + "license": "MIT", + "dependencies": { + "@babel/helper-create-class-features-plugin": "^7.18.6", + "@babel/helper-plugin-utils": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-proposal-decorators": { + "version": "7.22.7", + "license": "MIT", + "dependencies": { + "@babel/helper-create-class-features-plugin": "^7.22.6", + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/helper-replace-supers": "^7.22.5", + "@babel/helper-split-export-declaration": "^7.22.6", + "@babel/plugin-syntax-decorators": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-proposal-nullish-coalescing-operator": { + "version": "7.18.6", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.18.6", + "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-proposal-numeric-separator": { + "version": "7.18.6", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.18.6", + "@babel/plugin-syntax-numeric-separator": "^7.10.4" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-proposal-optional-chaining": { + "version": "7.21.0", + "license": "MIT", + "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" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-proposal-private-methods": { + "version": "7.18.6", + "license": "MIT", + "dependencies": { + "@babel/helper-create-class-features-plugin": "^7.18.6", + "@babel/helper-plugin-utils": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-proposal-private-property-in-object": { + "version": "7.21.0-placeholder-for-preset-env.2", + "license": "MIT", + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-proposal-unicode-property-regex": { + "version": "7.18.6", + "license": "MIT", + "dependencies": { + "@babel/helper-create-regexp-features-plugin": "^7.18.6", + "@babel/helper-plugin-utils": "^7.18.6" + }, + "engines": { + "node": ">=4" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-async-generators": { + "version": "7.8.4", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-bigint": { + "version": "7.8.3", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-class-properties": { + "version": "7.12.13", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.12.13" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-class-static-block": { + "version": "7.14.5", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-decorators": { + "version": "7.22.5", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-dynamic-import": { + "version": "7.8.3", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-export-namespace-from": { + "version": "7.8.3", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.3" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-flow": { + "version": "7.22.5", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-import-assertions": { + "version": "7.22.5", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-import-attributes": { + "version": "7.22.5", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-import-meta": { + "version": "7.10.4", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.10.4" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-json-strings": { + "version": "7.8.3", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-jsx": { + "version": "7.22.5", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-logical-assignment-operators": { + "version": "7.10.4", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.10.4" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-nullish-coalescing-operator": { + "version": "7.8.3", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-numeric-separator": { + "version": "7.10.4", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.10.4" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-object-rest-spread": { + "version": "7.8.3", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-optional-catch-binding": { + "version": "7.8.3", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-optional-chaining": { + "version": "7.8.3", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-private-property-in-object": { + "version": "7.14.5", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-top-level-await": { + "version": "7.14.5", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-typescript": { + "version": "7.22.5", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-unicode-sets-regex": { + "version": "7.18.6", + "license": "MIT", + "dependencies": { + "@babel/helper-create-regexp-features-plugin": "^7.18.6", + "@babel/helper-plugin-utils": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/plugin-transform-arrow-functions": { + "version": "7.22.5", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-async-generator-functions": { + "version": "7.22.7", + "license": "MIT", + "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/plugin-syntax-async-generators": "^7.8.4" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-async-to-generator": { + "version": "7.22.5", + "license": "MIT", + "dependencies": { + "@babel/helper-module-imports": "^7.22.5", + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/helper-remap-async-to-generator": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-block-scoped-functions": { + "version": "7.22.5", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-block-scoping": { + "version": "7.22.5", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-class-properties": { + "version": "7.22.5", + "license": "MIT", + "dependencies": { + "@babel/helper-create-class-features-plugin": "^7.22.5", + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-class-static-block": { + "version": "7.22.5", + "license": "MIT", + "dependencies": { + "@babel/helper-create-class-features-plugin": "^7.22.5", + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/plugin-syntax-class-static-block": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.12.0" + } + }, + "node_modules/@babel/plugin-transform-classes": { + "version": "7.22.6", + "license": "MIT", + "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" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-computed-properties": { + "version": "7.22.5", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/template": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-destructuring": { + "version": "7.22.5", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-dotall-regex": { + "version": "7.22.5", + "license": "MIT", + "dependencies": { + "@babel/helper-create-regexp-features-plugin": "^7.22.5", + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-duplicate-keys": { + "version": "7.22.5", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-dynamic-import": { + "version": "7.22.5", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/plugin-syntax-dynamic-import": "^7.8.3" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-exponentiation-operator": { + "version": "7.22.5", + "license": "MIT", + "dependencies": { + "@babel/helper-builder-binary-assignment-operator-visitor": "^7.22.5", + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-export-namespace-from": { + "version": "7.22.5", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/plugin-syntax-export-namespace-from": "^7.8.3" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-flow-strip-types": { + "version": "7.22.5", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/plugin-syntax-flow": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-for-of": { + "version": "7.22.5", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-function-name": { + "version": "7.22.5", + "license": "MIT", + "dependencies": { + "@babel/helper-compilation-targets": "^7.22.5", + "@babel/helper-function-name": "^7.22.5", + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-json-strings": { + "version": "7.22.5", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/plugin-syntax-json-strings": "^7.8.3" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-literals": { + "version": "7.22.5", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-logical-assignment-operators": { + "version": "7.22.5", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/plugin-syntax-logical-assignment-operators": "^7.10.4" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-member-expression-literals": { + "version": "7.22.5", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-modules-amd": { + "version": "7.22.5", + "license": "MIT", + "dependencies": { + "@babel/helper-module-transforms": "^7.22.5", + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-modules-commonjs": { + "version": "7.22.5", + "license": "MIT", + "dependencies": { + "@babel/helper-module-transforms": "^7.22.5", + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/helper-simple-access": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-modules-systemjs": { + "version": "7.22.5", + "license": "MIT", + "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" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-modules-umd": { + "version": "7.22.5", + "license": "MIT", + "dependencies": { + "@babel/helper-module-transforms": "^7.22.5", + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-named-capturing-groups-regex": { + "version": "7.22.5", + "license": "MIT", + "dependencies": { + "@babel/helper-create-regexp-features-plugin": "^7.22.5", + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/plugin-transform-new-target": { + "version": "7.22.5", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-nullish-coalescing-operator": { + "version": "7.22.5", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-numeric-separator": { + "version": "7.22.5", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/plugin-syntax-numeric-separator": "^7.10.4" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-object-rest-spread": { + "version": "7.22.5", + "license": "MIT", + "dependencies": { + "@babel/compat-data": "^7.22.5", + "@babel/helper-compilation-targets": "^7.22.5", + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/plugin-syntax-object-rest-spread": "^7.8.3", + "@babel/plugin-transform-parameters": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-object-super": { + "version": "7.22.5", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/helper-replace-supers": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-optional-catch-binding": { + "version": "7.22.5", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/plugin-syntax-optional-catch-binding": "^7.8.3" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-optional-chaining": { + "version": "7.22.6", + "license": "MIT", + "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" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-parameters": { + "version": "7.22.5", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-private-methods": { + "version": "7.22.5", + "license": "MIT", + "dependencies": { + "@babel/helper-create-class-features-plugin": "^7.22.5", + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-private-property-in-object": { + "version": "7.22.5", + "license": "MIT", + "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-private-property-in-object": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-property-literals": { + "version": "7.22.5", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-react-constant-elements": { + "version": "7.22.5", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-react-display-name": { + "version": "7.22.5", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-react-jsx": { + "version": "7.22.5", + "license": "MIT", + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.22.5", + "@babel/helper-module-imports": "^7.22.5", + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/plugin-syntax-jsx": "^7.22.5", + "@babel/types": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-react-jsx-development": { + "version": "7.22.5", + "license": "MIT", + "dependencies": { + "@babel/plugin-transform-react-jsx": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-react-pure-annotations": { + "version": "7.22.5", + "license": "MIT", + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.22.5", + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-regenerator": { + "version": "7.22.5", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5", + "regenerator-transform": "^0.15.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-reserved-words": { + "version": "7.22.5", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-runtime": { + "version": "7.22.9", + "license": "MIT", + "dependencies": { + "@babel/helper-module-imports": "^7.22.5", + "@babel/helper-plugin-utils": "^7.22.5", + "babel-plugin-polyfill-corejs2": "^0.4.4", + "babel-plugin-polyfill-corejs3": "^0.8.2", + "babel-plugin-polyfill-regenerator": "^0.5.1", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-runtime/node_modules/semver": { + "version": "6.3.1", + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/@babel/plugin-transform-shorthand-properties": { + "version": "7.22.5", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-spread": { + "version": "7.22.5", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/helper-skip-transparent-expression-wrappers": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-sticky-regex": { + "version": "7.22.5", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-template-literals": { + "version": "7.22.5", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-typeof-symbol": { + "version": "7.22.5", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-typescript": { + "version": "7.22.9", + "license": "MIT", + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.22.5", + "@babel/helper-create-class-features-plugin": "^7.22.9", + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/plugin-syntax-typescript": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-unicode-escapes": { + "version": "7.22.5", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-unicode-property-regex": { + "version": "7.22.5", + "license": "MIT", + "dependencies": { + "@babel/helper-create-regexp-features-plugin": "^7.22.5", + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-unicode-regex": { + "version": "7.22.5", + "license": "MIT", + "dependencies": { + "@babel/helper-create-regexp-features-plugin": "^7.22.5", + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-unicode-sets-regex": { + "version": "7.22.5", + "license": "MIT", + "dependencies": { + "@babel/helper-create-regexp-features-plugin": "^7.22.5", + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/preset-env": { + "version": "7.22.9", + "license": "MIT", + "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/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-meta": "^7.10.4", + "@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-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", + "core-js-compat": "^3.31.0", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/preset-env/node_modules/semver": { + "version": "6.3.1", + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/@babel/preset-modules": { + "version": "0.1.6", + "license": "MIT", + "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" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0 || ^8.0.0-0 <8.0.0" + } + }, + "node_modules/@babel/preset-react": { + "version": "7.22.5", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/helper-validator-option": "^7.22.5", + "@babel/plugin-transform-react-display-name": "^7.22.5", + "@babel/plugin-transform-react-jsx": "^7.22.5", + "@babel/plugin-transform-react-jsx-development": "^7.22.5", + "@babel/plugin-transform-react-pure-annotations": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/preset-typescript": { + "version": "7.22.5", + "license": "MIT", + "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" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/regjsgen": { + "version": "0.8.0", + "license": "MIT" + }, + "node_modules/@babel/runtime": { + "version": "7.22.6", + "license": "MIT", + "dependencies": { + "regenerator-runtime": "^0.13.11" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/template": { + "version": "7.22.5", + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.22.5", + "@babel/parser": "^7.22.5", + "@babel/types": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/traverse": { + "version": "7.22.8", + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.22.5", + "@babel/generator": "^7.22.7", + "@babel/helper-environment-visitor": "^7.22.5", + "@babel/helper-function-name": "^7.22.5", + "@babel/helper-hoist-variables": "^7.22.5", + "@babel/helper-split-export-declaration": "^7.22.6", + "@babel/parser": "^7.22.7", + "@babel/types": "^7.22.5", + "debug": "^4.1.0", + "globals": "^11.1.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/types": { + "version": "7.22.5", + "license": "MIT", + "dependencies": { + "@babel/helper-string-parser": "^7.22.5", + "@babel/helper-validator-identifier": "^7.22.5", + "to-fast-properties": "^2.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@bcoe/v8-coverage": { + "version": "0.2.3", + "license": "MIT" + }, + "node_modules/@csstools/normalize.css": { + "version": "12.0.0", + "license": "CC0-1.0" + }, + "node_modules/@csstools/postcss-cascade-layers": { + "version": "1.1.1", + "license": "CC0-1.0", + "dependencies": { + "@csstools/selector-specificity": "^2.0.2", + "postcss-selector-parser": "^6.0.10" + }, + "engines": { + "node": "^12 || ^14 || >=16" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + }, + "peerDependencies": { + "postcss": "^8.2" + } + }, + "node_modules/@csstools/postcss-color-function": { + "version": "1.1.1", + "license": "CC0-1.0", + "dependencies": { + "@csstools/postcss-progressive-custom-properties": "^1.1.0", + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^12 || ^14 || >=16" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + }, + "peerDependencies": { + "postcss": "^8.2" + } + }, + "node_modules/@csstools/postcss-font-format-keywords": { + "version": "1.0.1", + "license": "CC0-1.0", + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^12 || ^14 || >=16" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + }, + "peerDependencies": { + "postcss": "^8.2" + } + }, + "node_modules/@csstools/postcss-hwb-function": { + "version": "1.0.2", + "license": "CC0-1.0", + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^12 || ^14 || >=16" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + }, + "peerDependencies": { + "postcss": "^8.2" + } + }, + "node_modules/@csstools/postcss-ic-unit": { + "version": "1.0.1", + "license": "CC0-1.0", + "dependencies": { + "@csstools/postcss-progressive-custom-properties": "^1.1.0", + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^12 || ^14 || >=16" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + }, + "peerDependencies": { + "postcss": "^8.2" + } + }, + "node_modules/@csstools/postcss-is-pseudo-class": { + "version": "2.0.7", + "license": "CC0-1.0", + "dependencies": { + "@csstools/selector-specificity": "^2.0.0", + "postcss-selector-parser": "^6.0.10" + }, + "engines": { + "node": "^12 || ^14 || >=16" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + }, + "peerDependencies": { + "postcss": "^8.2" + } + }, + "node_modules/@csstools/postcss-nested-calc": { + "version": "1.0.0", + "license": "CC0-1.0", + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^12 || ^14 || >=16" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + }, + "peerDependencies": { + "postcss": "^8.2" + } + }, + "node_modules/@csstools/postcss-normalize-display-values": { + "version": "1.0.1", + "license": "CC0-1.0", + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^12 || ^14 || >=16" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + }, + "peerDependencies": { + "postcss": "^8.2" + } + }, + "node_modules/@csstools/postcss-oklab-function": { + "version": "1.1.1", + "license": "CC0-1.0", + "dependencies": { + "@csstools/postcss-progressive-custom-properties": "^1.1.0", + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^12 || ^14 || >=16" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + }, + "peerDependencies": { + "postcss": "^8.2" + } + }, + "node_modules/@csstools/postcss-progressive-custom-properties": { + "version": "1.3.0", + "license": "CC0-1.0", + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^12 || ^14 || >=16" + }, + "peerDependencies": { + "postcss": "^8.3" + } + }, + "node_modules/@csstools/postcss-stepped-value-functions": { + "version": "1.0.1", + "license": "CC0-1.0", + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^12 || ^14 || >=16" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + }, + "peerDependencies": { + "postcss": "^8.2" + } + }, + "node_modules/@csstools/postcss-text-decoration-shorthand": { + "version": "1.0.0", + "license": "CC0-1.0", + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^12 || ^14 || >=16" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + }, + "peerDependencies": { + "postcss": "^8.2" + } + }, + "node_modules/@csstools/postcss-trigonometric-functions": { + "version": "1.0.2", + "license": "CC0-1.0", + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^14 || >=16" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + }, + "peerDependencies": { + "postcss": "^8.2" + } + }, + "node_modules/@csstools/postcss-unset-value": { + "version": "1.0.2", + "license": "CC0-1.0", + "engines": { + "node": "^12 || ^14 || >=16" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + }, + "peerDependencies": { + "postcss": "^8.2" + } + }, + "node_modules/@csstools/selector-specificity": { + "version": "2.2.0", + "license": "CC0-1.0", + "engines": { + "node": "^14 || ^16 || >=18" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + }, + "peerDependencies": { + "postcss-selector-parser": "^6.0.10" + } + }, + "node_modules/@eslint-community/eslint-utils": { + "version": "4.4.0", + "license": "MIT", + "dependencies": { + "eslint-visitor-keys": "^3.3.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "peerDependencies": { + "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" + } + }, + "node_modules/@eslint-community/regexpp": { + "version": "4.6.2", + "license": "MIT", + "engines": { + "node": "^12.0.0 || ^14.0.0 || >=16.0.0" + } + }, + "node_modules/@eslint/eslintrc": { + "version": "2.1.0", + "license": "MIT", + "dependencies": { + "ajv": "^6.12.4", + "debug": "^4.3.2", + "espree": "^9.6.0", + "globals": "^13.19.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" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/@eslint/eslintrc/node_modules/argparse": { + "version": "2.0.1", + "license": "Python-2.0" + }, + "node_modules/@eslint/eslintrc/node_modules/globals": { + "version": "13.20.0", + "license": "MIT", + "dependencies": { + "type-fest": "^0.20.2" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@eslint/eslintrc/node_modules/js-yaml": { + "version": "4.1.0", + "license": "MIT", + "dependencies": { + "argparse": "^2.0.1" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "node_modules/@eslint/eslintrc/node_modules/type-fest": { + "version": "0.20.2", + "license": "(MIT OR CC0-1.0)", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@eslint/js": { + "version": "8.44.0", + "license": "MIT", + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + } + }, + "node_modules/@humanwhocodes/config-array": { + "version": "0.11.10", + "license": "Apache-2.0", + "dependencies": { + "@humanwhocodes/object-schema": "^1.2.1", + "debug": "^4.1.1", + "minimatch": "^3.0.5" + }, + "engines": { + "node": ">=10.10.0" + } + }, + "node_modules/@humanwhocodes/module-importer": { + "version": "1.0.1", + "license": "Apache-2.0", + "engines": { + "node": ">=12.22" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/nzakas" + } + }, + "node_modules/@humanwhocodes/object-schema": { + "version": "1.2.1", + "license": "BSD-3-Clause" + }, + "node_modules/@istanbuljs/load-nyc-config": { + "version": "1.1.0", + "license": "ISC", + "dependencies": { + "camelcase": "^5.3.1", + "find-up": "^4.1.0", + "get-package-type": "^0.1.0", + "js-yaml": "^3.13.1", + "resolve-from": "^5.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@istanbuljs/load-nyc-config/node_modules/camelcase": { + "version": "5.3.1", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/@istanbuljs/load-nyc-config/node_modules/find-up": { + "version": "4.1.0", + "license": "MIT", + "dependencies": { + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@istanbuljs/load-nyc-config/node_modules/locate-path": { + "version": "5.0.0", + "license": "MIT", + "dependencies": { + "p-locate": "^4.1.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@istanbuljs/load-nyc-config/node_modules/p-limit": { + "version": "2.3.0", + "license": "MIT", + "dependencies": { + "p-try": "^2.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@istanbuljs/load-nyc-config/node_modules/p-locate": { + "version": "4.1.0", + "license": "MIT", + "dependencies": { + "p-limit": "^2.2.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@istanbuljs/schema": { + "version": "0.1.3", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/@jest/console": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@jest/types": "^27.5.1", + "@types/node": "*", + "chalk": "^4.0.0", + "jest-message-util": "^27.5.1", + "jest-util": "^27.5.1", + "slash": "^3.0.0" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/@jest/console/node_modules/@jest/types": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^16.0.0", + "chalk": "^4.0.0" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/@jest/console/node_modules/@types/yargs": { + "version": "16.0.5", + "license": "MIT", + "dependencies": { + "@types/yargs-parser": "*" + } + }, + "node_modules/@jest/console/node_modules/jest-message-util": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.12.13", + "@jest/types": "^27.5.1", + "@types/stack-utils": "^2.0.0", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.9", + "micromatch": "^4.0.4", + "pretty-format": "^27.5.1", + "slash": "^3.0.0", + "stack-utils": "^2.0.3" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/@jest/console/node_modules/jest-util": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@jest/types": "^27.5.1", + "@types/node": "*", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "graceful-fs": "^4.2.9", + "picomatch": "^2.2.3" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/@jest/core": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@jest/console": "^27.5.1", + "@jest/reporters": "^27.5.1", + "@jest/test-result": "^27.5.1", + "@jest/transform": "^27.5.1", + "@jest/types": "^27.5.1", + "@types/node": "*", + "ansi-escapes": "^4.2.1", + "chalk": "^4.0.0", + "emittery": "^0.8.1", + "exit": "^0.1.2", + "graceful-fs": "^4.2.9", + "jest-changed-files": "^27.5.1", + "jest-config": "^27.5.1", + "jest-haste-map": "^27.5.1", + "jest-message-util": "^27.5.1", + "jest-regex-util": "^27.5.1", + "jest-resolve": "^27.5.1", + "jest-resolve-dependencies": "^27.5.1", + "jest-runner": "^27.5.1", + "jest-runtime": "^27.5.1", + "jest-snapshot": "^27.5.1", + "jest-util": "^27.5.1", + "jest-validate": "^27.5.1", + "jest-watcher": "^27.5.1", + "micromatch": "^4.0.4", + "rimraf": "^3.0.0", + "slash": "^3.0.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + }, + "peerDependencies": { + "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" + }, + "peerDependenciesMeta": { + "node-notifier": { + "optional": true + } + } + }, + "node_modules/@jest/core/node_modules/@jest/types": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^16.0.0", + "chalk": "^4.0.0" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/@jest/core/node_modules/@types/yargs": { + "version": "16.0.5", + "license": "MIT", + "dependencies": { + "@types/yargs-parser": "*" + } + }, + "node_modules/@jest/core/node_modules/jest-message-util": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.12.13", + "@jest/types": "^27.5.1", + "@types/stack-utils": "^2.0.0", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.9", + "micromatch": "^4.0.4", + "pretty-format": "^27.5.1", + "slash": "^3.0.0", + "stack-utils": "^2.0.3" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/@jest/core/node_modules/jest-util": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@jest/types": "^27.5.1", + "@types/node": "*", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "graceful-fs": "^4.2.9", + "picomatch": "^2.2.3" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/@jest/environment": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@jest/fake-timers": "^27.5.1", + "@jest/types": "^27.5.1", + "@types/node": "*", + "jest-mock": "^27.5.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/@jest/environment/node_modules/@jest/types": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^16.0.0", + "chalk": "^4.0.0" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/@jest/environment/node_modules/@types/yargs": { + "version": "16.0.5", + "license": "MIT", + "dependencies": { + "@types/yargs-parser": "*" + } + }, + "node_modules/@jest/expect-utils": { + "version": "29.6.2", + "license": "MIT", + "dependencies": { + "jest-get-type": "^29.4.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/fake-timers": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@jest/types": "^27.5.1", + "@sinonjs/fake-timers": "^8.0.1", + "@types/node": "*", + "jest-message-util": "^27.5.1", + "jest-mock": "^27.5.1", + "jest-util": "^27.5.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/@jest/fake-timers/node_modules/@jest/types": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^16.0.0", + "chalk": "^4.0.0" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/@jest/fake-timers/node_modules/@types/yargs": { + "version": "16.0.5", + "license": "MIT", + "dependencies": { + "@types/yargs-parser": "*" + } + }, + "node_modules/@jest/fake-timers/node_modules/jest-message-util": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.12.13", + "@jest/types": "^27.5.1", + "@types/stack-utils": "^2.0.0", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.9", + "micromatch": "^4.0.4", + "pretty-format": "^27.5.1", + "slash": "^3.0.0", + "stack-utils": "^2.0.3" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/@jest/fake-timers/node_modules/jest-util": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@jest/types": "^27.5.1", + "@types/node": "*", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "graceful-fs": "^4.2.9", + "picomatch": "^2.2.3" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/@jest/globals": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@jest/environment": "^27.5.1", + "@jest/types": "^27.5.1", + "expect": "^27.5.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/@jest/globals/node_modules/@jest/types": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^16.0.0", + "chalk": "^4.0.0" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/@jest/globals/node_modules/@types/yargs": { + "version": "16.0.5", + "license": "MIT", + "dependencies": { + "@types/yargs-parser": "*" + } + }, + "node_modules/@jest/globals/node_modules/diff-sequences": { + "version": "27.5.1", + "license": "MIT", + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/@jest/globals/node_modules/expect": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@jest/types": "^27.5.1", + "jest-get-type": "^27.5.1", + "jest-matcher-utils": "^27.5.1", + "jest-message-util": "^27.5.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/@jest/globals/node_modules/jest-diff": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "chalk": "^4.0.0", + "diff-sequences": "^27.5.1", + "jest-get-type": "^27.5.1", + "pretty-format": "^27.5.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/@jest/globals/node_modules/jest-get-type": { + "version": "27.5.1", + "license": "MIT", + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/@jest/globals/node_modules/jest-matcher-utils": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "chalk": "^4.0.0", + "jest-diff": "^27.5.1", + "jest-get-type": "^27.5.1", + "pretty-format": "^27.5.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/@jest/globals/node_modules/jest-message-util": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.12.13", + "@jest/types": "^27.5.1", + "@types/stack-utils": "^2.0.0", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.9", + "micromatch": "^4.0.4", + "pretty-format": "^27.5.1", + "slash": "^3.0.0", + "stack-utils": "^2.0.3" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/@jest/reporters": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@bcoe/v8-coverage": "^0.2.3", + "@jest/console": "^27.5.1", + "@jest/test-result": "^27.5.1", + "@jest/transform": "^27.5.1", + "@jest/types": "^27.5.1", + "@types/node": "*", + "chalk": "^4.0.0", + "collect-v8-coverage": "^1.0.0", + "exit": "^0.1.2", + "glob": "^7.1.2", + "graceful-fs": "^4.2.9", + "istanbul-lib-coverage": "^3.0.0", + "istanbul-lib-instrument": "^5.1.0", + "istanbul-lib-report": "^3.0.0", + "istanbul-lib-source-maps": "^4.0.0", + "istanbul-reports": "^3.1.3", + "jest-haste-map": "^27.5.1", + "jest-resolve": "^27.5.1", + "jest-util": "^27.5.1", + "jest-worker": "^27.5.1", + "slash": "^3.0.0", + "source-map": "^0.6.0", + "string-length": "^4.0.1", + "terminal-link": "^2.0.0", + "v8-to-istanbul": "^8.1.0" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + }, + "peerDependencies": { + "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" + }, + "peerDependenciesMeta": { + "node-notifier": { + "optional": true + } + } + }, + "node_modules/@jest/reporters/node_modules/@jest/types": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^16.0.0", + "chalk": "^4.0.0" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/@jest/reporters/node_modules/@types/yargs": { + "version": "16.0.5", + "license": "MIT", + "dependencies": { + "@types/yargs-parser": "*" + } + }, + "node_modules/@jest/reporters/node_modules/jest-util": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@jest/types": "^27.5.1", + "@types/node": "*", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "graceful-fs": "^4.2.9", + "picomatch": "^2.2.3" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/@jest/reporters/node_modules/source-map": { + "version": "0.6.1", + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/@jest/schemas": { + "version": "29.6.0", + "license": "MIT", + "dependencies": { + "@sinclair/typebox": "^0.27.8" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/source-map": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "callsites": "^3.0.0", + "graceful-fs": "^4.2.9", + "source-map": "^0.6.0" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/@jest/source-map/node_modules/source-map": { + "version": "0.6.1", + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/@jest/test-result": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@jest/console": "^27.5.1", + "@jest/types": "^27.5.1", + "@types/istanbul-lib-coverage": "^2.0.0", + "collect-v8-coverage": "^1.0.0" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/@jest/test-result/node_modules/@jest/types": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^16.0.0", + "chalk": "^4.0.0" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/@jest/test-result/node_modules/@types/yargs": { + "version": "16.0.5", + "license": "MIT", + "dependencies": { + "@types/yargs-parser": "*" + } + }, + "node_modules/@jest/test-sequencer": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@jest/test-result": "^27.5.1", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^27.5.1", + "jest-runtime": "^27.5.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/@jest/transform": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@babel/core": "^7.1.0", + "@jest/types": "^27.5.1", + "babel-plugin-istanbul": "^6.1.1", + "chalk": "^4.0.0", + "convert-source-map": "^1.4.0", + "fast-json-stable-stringify": "^2.0.0", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^27.5.1", + "jest-regex-util": "^27.5.1", + "jest-util": "^27.5.1", + "micromatch": "^4.0.4", + "pirates": "^4.0.4", + "slash": "^3.0.0", + "source-map": "^0.6.1", + "write-file-atomic": "^3.0.0" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/@jest/transform/node_modules/@jest/types": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^16.0.0", + "chalk": "^4.0.0" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/@jest/transform/node_modules/@types/yargs": { + "version": "16.0.5", + "license": "MIT", + "dependencies": { + "@types/yargs-parser": "*" + } + }, + "node_modules/@jest/transform/node_modules/jest-util": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@jest/types": "^27.5.1", + "@types/node": "*", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "graceful-fs": "^4.2.9", + "picomatch": "^2.2.3" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/@jest/transform/node_modules/source-map": { + "version": "0.6.1", + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/@jest/types": { + "version": "29.6.1", + "license": "MIT", + "dependencies": { + "@jest/schemas": "^29.6.0", + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^17.0.8", + "chalk": "^4.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jridgewell/gen-mapping": { + "version": "0.3.3", + "license": "MIT", + "dependencies": { + "@jridgewell/set-array": "^1.0.1", + "@jridgewell/sourcemap-codec": "^1.4.10", + "@jridgewell/trace-mapping": "^0.3.9" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/resolve-uri": { + "version": "3.1.0", + "license": "MIT", + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/set-array": { + "version": "1.1.2", + "license": "MIT", + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/source-map": { + "version": "0.3.5", + "license": "MIT", + "dependencies": { + "@jridgewell/gen-mapping": "^0.3.0", + "@jridgewell/trace-mapping": "^0.3.9" + } + }, + "node_modules/@jridgewell/sourcemap-codec": { + "version": "1.4.15", + "license": "MIT" + }, + "node_modules/@jridgewell/trace-mapping": { + "version": "0.3.18", + "license": "MIT", + "dependencies": { + "@jridgewell/resolve-uri": "3.1.0", + "@jridgewell/sourcemap-codec": "1.4.14" + } + }, + "node_modules/@jridgewell/trace-mapping/node_modules/@jridgewell/sourcemap-codec": { + "version": "1.4.14", + "license": "MIT" + }, + "node_modules/@leichtgewicht/ip-codec": { + "version": "2.0.4", + "license": "MIT" + }, + "node_modules/@nicolo-ribaudo/eslint-scope-5-internals": { + "version": "5.1.1-v1", + "license": "MIT", + "dependencies": { + "eslint-scope": "5.1.1" + } + }, + "node_modules/@nicolo-ribaudo/eslint-scope-5-internals/node_modules/eslint-scope": { + "version": "5.1.1", + "license": "BSD-2-Clause", + "dependencies": { + "esrecurse": "^4.3.0", + "estraverse": "^4.1.1" + }, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/@nicolo-ribaudo/eslint-scope-5-internals/node_modules/estraverse": { + "version": "4.3.0", + "license": "BSD-2-Clause", + "engines": { + "node": ">=4.0" + } + }, + "node_modules/@nodelib/fs.scandir": { + "version": "2.1.5", + "license": "MIT", + "dependencies": { + "@nodelib/fs.stat": "2.0.5", + "run-parallel": "^1.1.9" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.stat": { + "version": "2.0.5", + "license": "MIT", + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.walk": { + "version": "1.2.8", + "license": "MIT", + "dependencies": { + "@nodelib/fs.scandir": "2.1.5", + "fastq": "^1.6.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@pmmmwh/react-refresh-webpack-plugin": { + "version": "0.5.10", + "license": "MIT", + "dependencies": { + "ansi-html-community": "^0.0.8", + "common-path-prefix": "^3.0.0", + "core-js-pure": "^3.23.3", + "error-stack-parser": "^2.0.6", + "find-up": "^5.0.0", + "html-entities": "^2.1.0", + "loader-utils": "^2.0.4", + "schema-utils": "^3.0.0", + "source-map": "^0.7.3" + }, + "engines": { + "node": ">= 10.13" + }, + "peerDependencies": { + "@types/webpack": "4.x || 5.x", + "react-refresh": ">=0.10.0 <1.0.0", + "sockjs-client": "^1.4.0", + "type-fest": ">=0.17.0 <4.0.0", + "webpack": ">=4.43.0 <6.0.0", + "webpack-dev-server": "3.x || 4.x", + "webpack-hot-middleware": "2.x", + "webpack-plugin-serve": "0.x || 1.x" + }, + "peerDependenciesMeta": { + "@types/webpack": { + "optional": true + }, + "sockjs-client": { + "optional": true + }, + "type-fest": { + "optional": true + }, + "webpack-dev-server": { + "optional": true + }, + "webpack-hot-middleware": { + "optional": true + }, + "webpack-plugin-serve": { + "optional": true + } + } + }, + "node_modules/@popperjs/core": { + "version": "2.11.8", + "license": "MIT", + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/popperjs" + } + }, + "node_modules/@react-aria/ssr": { + "version": "3.7.0", + "license": "Apache-2.0", + "dependencies": { + "@swc/helpers": "^0.5.0" + }, + "peerDependencies": { + "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0" + } + }, + "node_modules/@restart/hooks": { + "version": "0.4.11", + "license": "MIT", + "dependencies": { + "dequal": "^2.0.3" + }, + "peerDependencies": { + "react": ">=16.8.0" + } + }, + "node_modules/@restart/ui": { + "version": "1.6.6", + "license": "MIT", + "dependencies": { + "@babel/runtime": "^7.21.0", + "@popperjs/core": "^2.11.6", + "@react-aria/ssr": "^3.5.0", + "@restart/hooks": "^0.4.9", + "@types/warning": "^3.0.0", + "dequal": "^2.0.3", + "dom-helpers": "^5.2.0", + "uncontrollable": "^8.0.1", + "warning": "^4.0.3" + }, + "peerDependencies": { + "react": ">=16.14.0", + "react-dom": ">=16.14.0" + } + }, + "node_modules/@restart/ui/node_modules/uncontrollable": { + "version": "8.0.4", + "license": "MIT", + "peerDependencies": { + "react": ">=16.14.0" + } + }, + "node_modules/@rollup/plugin-babel": { + "version": "5.3.1", + "license": "MIT", + "dependencies": { + "@babel/helper-module-imports": "^7.10.4", + "@rollup/pluginutils": "^3.1.0" + }, + "engines": { + "node": ">= 10.0.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0", + "@types/babel__core": "^7.1.9", + "rollup": "^1.20.0||^2.0.0" + }, + "peerDependenciesMeta": { + "@types/babel__core": { + "optional": true + } + } + }, + "node_modules/@rollup/plugin-node-resolve": { + "version": "11.2.1", + "license": "MIT", + "dependencies": { + "@rollup/pluginutils": "^3.1.0", + "@types/resolve": "1.17.1", + "builtin-modules": "^3.1.0", + "deepmerge": "^4.2.2", + "is-module": "^1.0.0", + "resolve": "^1.19.0" + }, + "engines": { + "node": ">= 10.0.0" + }, + "peerDependencies": { + "rollup": "^1.20.0||^2.0.0" + } + }, + "node_modules/@rollup/plugin-replace": { + "version": "2.4.2", + "license": "MIT", + "dependencies": { + "@rollup/pluginutils": "^3.1.0", + "magic-string": "^0.25.7" + }, + "peerDependencies": { + "rollup": "^1.20.0 || ^2.0.0" + } + }, + "node_modules/@rollup/pluginutils": { + "version": "3.1.0", + "license": "MIT", + "dependencies": { + "@types/estree": "0.0.39", + "estree-walker": "^1.0.1", + "picomatch": "^2.2.2" + }, + "engines": { + "node": ">= 8.0.0" + }, + "peerDependencies": { + "rollup": "^1.20.0||^2.0.0" + } + }, + "node_modules/@rollup/pluginutils/node_modules/@types/estree": { + "version": "0.0.39", + "license": "MIT" + }, + "node_modules/@rushstack/eslint-patch": { + "version": "1.3.2", + "license": "MIT" + }, + "node_modules/@sinclair/typebox": { + "version": "0.27.8", + "license": "MIT" + }, + "node_modules/@sinonjs/commons": { + "version": "1.8.6", + "license": "BSD-3-Clause", + "dependencies": { + "type-detect": "4.0.8" + } + }, + "node_modules/@sinonjs/fake-timers": { + "version": "8.1.0", + "license": "BSD-3-Clause", + "dependencies": { + "@sinonjs/commons": "^1.7.0" + } + }, + "node_modules/@surma/rollup-plugin-off-main-thread": { + "version": "2.2.3", + "license": "Apache-2.0", + "dependencies": { + "ejs": "^3.1.6", + "json5": "^2.2.0", + "magic-string": "^0.25.0", + "string.prototype.matchall": "^4.0.6" + } + }, + "node_modules/@svgr/babel-plugin-add-jsx-attribute": { + "version": "5.4.0", + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/gregberge" + } + }, + "node_modules/@svgr/babel-plugin-remove-jsx-attribute": { + "version": "5.4.0", + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/gregberge" + } + }, + "node_modules/@svgr/babel-plugin-remove-jsx-empty-expression": { + "version": "5.0.1", + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/gregberge" + } + }, + "node_modules/@svgr/babel-plugin-replace-jsx-attribute-value": { + "version": "5.0.1", + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/gregberge" + } + }, + "node_modules/@svgr/babel-plugin-svg-dynamic-title": { + "version": "5.4.0", + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/gregberge" + } + }, + "node_modules/@svgr/babel-plugin-svg-em-dimensions": { + "version": "5.4.0", + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/gregberge" + } + }, + "node_modules/@svgr/babel-plugin-transform-react-native-svg": { + "version": "5.4.0", + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/gregberge" + } + }, + "node_modules/@svgr/babel-plugin-transform-svg-component": { + "version": "5.5.0", + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/gregberge" + } + }, + "node_modules/@svgr/babel-preset": { + "version": "5.5.0", + "license": "MIT", + "dependencies": { + "@svgr/babel-plugin-add-jsx-attribute": "^5.4.0", + "@svgr/babel-plugin-remove-jsx-attribute": "^5.4.0", + "@svgr/babel-plugin-remove-jsx-empty-expression": "^5.0.1", + "@svgr/babel-plugin-replace-jsx-attribute-value": "^5.0.1", + "@svgr/babel-plugin-svg-dynamic-title": "^5.4.0", + "@svgr/babel-plugin-svg-em-dimensions": "^5.4.0", + "@svgr/babel-plugin-transform-react-native-svg": "^5.4.0", + "@svgr/babel-plugin-transform-svg-component": "^5.5.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/gregberge" + } + }, + "node_modules/@svgr/core": { + "version": "5.5.0", + "license": "MIT", + "dependencies": { + "@svgr/plugin-jsx": "^5.5.0", + "camelcase": "^6.2.0", + "cosmiconfig": "^7.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/gregberge" + } + }, + "node_modules/@svgr/hast-util-to-babel-ast": { + "version": "5.5.0", + "license": "MIT", + "dependencies": { + "@babel/types": "^7.12.6" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/gregberge" + } + }, + "node_modules/@svgr/plugin-jsx": { + "version": "5.5.0", + "license": "MIT", + "dependencies": { + "@babel/core": "^7.12.3", + "@svgr/babel-preset": "^5.5.0", + "@svgr/hast-util-to-babel-ast": "^5.5.0", + "svg-parser": "^2.0.2" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/gregberge" + } + }, + "node_modules/@svgr/plugin-svgo": { + "version": "5.5.0", + "license": "MIT", + "dependencies": { + "cosmiconfig": "^7.0.0", + "deepmerge": "^4.2.2", + "svgo": "^1.2.2" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/gregberge" + } + }, + "node_modules/@svgr/webpack": { + "version": "5.5.0", + "license": "MIT", + "dependencies": { + "@babel/core": "^7.12.3", + "@babel/plugin-transform-react-constant-elements": "^7.12.1", + "@babel/preset-env": "^7.12.1", + "@babel/preset-react": "^7.12.5", + "@svgr/core": "^5.5.0", + "@svgr/plugin-jsx": "^5.5.0", + "@svgr/plugin-svgo": "^5.5.0", + "loader-utils": "^2.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/gregberge" + } + }, + "node_modules/@swc/helpers": { + "version": "0.5.1", + "license": "Apache-2.0", + "dependencies": { + "tslib": "^2.4.0" + } + }, + "node_modules/@testing-library/dom": { + "version": "9.3.1", + "license": "MIT", + "peer": true, + "dependencies": { + "@babel/code-frame": "^7.10.4", + "@babel/runtime": "^7.12.5", + "@types/aria-query": "^5.0.1", + "aria-query": "5.1.3", + "chalk": "^4.1.0", + "dom-accessibility-api": "^0.5.9", + "lz-string": "^1.5.0", + "pretty-format": "^27.0.2" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/@testing-library/jest-dom": { + "version": "5.17.0", + "license": "MIT", + "dependencies": { + "@adobe/css-tools": "^4.0.1", + "@babel/runtime": "^7.9.2", + "@types/testing-library__jest-dom": "^5.9.1", + "aria-query": "^5.0.0", + "chalk": "^3.0.0", + "css.escape": "^1.5.1", + "dom-accessibility-api": "^0.5.6", + "lodash": "^4.17.15", + "redent": "^3.0.0" + }, + "engines": { + "node": ">=8", + "npm": ">=6", + "yarn": ">=1" + } + }, + "node_modules/@testing-library/jest-dom/node_modules/chalk": { + "version": "3.0.0", + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@testing-library/react": { + "version": "13.4.0", + "license": "MIT", + "dependencies": { + "@babel/runtime": "^7.12.5", + "@testing-library/dom": "^8.5.0", + "@types/react-dom": "^18.0.0" + }, + "engines": { + "node": ">=12" + }, + "peerDependencies": { + "react": "^18.0.0", + "react-dom": "^18.0.0" + } + }, + "node_modules/@testing-library/react/node_modules/@testing-library/dom": { + "version": "8.20.1", + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.10.4", + "@babel/runtime": "^7.12.5", + "@types/aria-query": "^5.0.1", + "aria-query": "5.1.3", + "chalk": "^4.1.0", + "dom-accessibility-api": "^0.5.9", + "lz-string": "^1.5.0", + "pretty-format": "^27.0.2" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/@testing-library/user-event": { + "version": "13.5.0", + "license": "MIT", + "dependencies": { + "@babel/runtime": "^7.12.5" + }, + "engines": { + "node": ">=10", + "npm": ">=6" + }, + "peerDependencies": { + "@testing-library/dom": ">=7.21.4" + } + }, + "node_modules/@tootallnate/once": { + "version": "1.1.2", + "license": "MIT", + "engines": { + "node": ">= 6" + } + }, + "node_modules/@trysound/sax": { + "version": "0.2.0", + "license": "ISC", + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/@types/aria-query": { + "version": "5.0.1", + "license": "MIT" + }, + "node_modules/@types/babel__core": { + "version": "7.20.1", + "license": "MIT", + "dependencies": { + "@babel/parser": "^7.20.7", + "@babel/types": "^7.20.7", + "@types/babel__generator": "*", + "@types/babel__template": "*", + "@types/babel__traverse": "*" + } + }, + "node_modules/@types/babel__generator": { + "version": "7.6.4", + "license": "MIT", + "dependencies": { + "@babel/types": "^7.0.0" + } + }, + "node_modules/@types/babel__template": { + "version": "7.4.1", + "license": "MIT", + "dependencies": { + "@babel/parser": "^7.1.0", + "@babel/types": "^7.0.0" + } + }, + "node_modules/@types/babel__traverse": { + "version": "7.20.1", + "license": "MIT", + "dependencies": { + "@babel/types": "^7.20.7" + } + }, + "node_modules/@types/body-parser": { + "version": "1.19.2", + "license": "MIT", + "dependencies": { + "@types/connect": "*", + "@types/node": "*" + } + }, + "node_modules/@types/bonjour": { + "version": "3.5.10", + "license": "MIT", + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/connect": { + "version": "3.4.35", + "license": "MIT", + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/connect-history-api-fallback": { + "version": "1.5.0", + "license": "MIT", + "dependencies": { + "@types/express-serve-static-core": "*", + "@types/node": "*" + } + }, + "node_modules/@types/eslint": { + "version": "8.44.1", + "license": "MIT", + "dependencies": { + "@types/estree": "*", + "@types/json-schema": "*" + } + }, + "node_modules/@types/eslint-scope": { + "version": "3.7.4", + "license": "MIT", + "dependencies": { + "@types/eslint": "*", + "@types/estree": "*" + } + }, + "node_modules/@types/estree": { + "version": "1.0.1", + "license": "MIT" + }, + "node_modules/@types/express": { + "version": "4.17.17", + "license": "MIT", + "dependencies": { + "@types/body-parser": "*", + "@types/express-serve-static-core": "^4.17.33", + "@types/qs": "*", + "@types/serve-static": "*" + } + }, + "node_modules/@types/express-serve-static-core": { + "version": "4.17.35", + "license": "MIT", + "dependencies": { + "@types/node": "*", + "@types/qs": "*", + "@types/range-parser": "*", + "@types/send": "*" + } + }, + "node_modules/@types/graceful-fs": { + "version": "4.1.6", + "license": "MIT", + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/html-minifier-terser": { + "version": "6.1.0", + "license": "MIT" + }, + "node_modules/@types/http-errors": { + "version": "2.0.1", + "license": "MIT" + }, + "node_modules/@types/http-proxy": { + "version": "1.17.11", + "license": "MIT", + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/istanbul-lib-coverage": { + "version": "2.0.4", + "license": "MIT" + }, + "node_modules/@types/istanbul-lib-report": { + "version": "3.0.0", + "license": "MIT", + "dependencies": { + "@types/istanbul-lib-coverage": "*" + } + }, + "node_modules/@types/istanbul-reports": { + "version": "3.0.1", + "license": "MIT", + "dependencies": { + "@types/istanbul-lib-report": "*" + } + }, + "node_modules/@types/jest": { + "version": "29.5.3", + "license": "MIT", + "dependencies": { + "expect": "^29.0.0", + "pretty-format": "^29.0.0" + } + }, + "node_modules/@types/jest/node_modules/ansi-styles": { + "version": "5.2.0", + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/@types/jest/node_modules/pretty-format": { + "version": "29.6.2", + "license": "MIT", + "dependencies": { + "@jest/schemas": "^29.6.0", + "ansi-styles": "^5.0.0", + "react-is": "^18.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@types/jest/node_modules/react-is": { + "version": "18.2.0", + "license": "MIT" + }, + "node_modules/@types/json-schema": { + "version": "7.0.12", + "license": "MIT" + }, + "node_modules/@types/json5": { + "version": "0.0.29", + "license": "MIT" + }, + "node_modules/@types/mime": { + "version": "1.3.2", + "license": "MIT" + }, + "node_modules/@types/node": { + "version": "20.4.9", + "license": "MIT" + }, + "node_modules/@types/parse-json": { + "version": "4.0.0", + "license": "MIT" + }, + "node_modules/@types/prettier": { + "version": "2.7.3", + "license": "MIT" + }, + "node_modules/@types/prop-types": { + "version": "15.7.5", + "license": "MIT" + }, + "node_modules/@types/q": { + "version": "1.5.5", + "license": "MIT" + }, + "node_modules/@types/qs": { + "version": "6.9.7", + "license": "MIT" + }, + "node_modules/@types/range-parser": { + "version": "1.2.4", + "license": "MIT" + }, + "node_modules/@types/react": { + "version": "18.2.19", + "license": "MIT", + "dependencies": { + "@types/prop-types": "*", + "@types/scheduler": "*", + "csstype": "^3.0.2" + } + }, + "node_modules/@types/react-dom": { + "version": "18.2.7", + "license": "MIT", + "dependencies": { + "@types/react": "*" + } + }, + "node_modules/@types/react-transition-group": { + "version": "4.4.6", + "license": "MIT", + "dependencies": { + "@types/react": "*" + } + }, + "node_modules/@types/resolve": { + "version": "1.17.1", + "license": "MIT", + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/retry": { + "version": "0.12.0", + "license": "MIT" + }, + "node_modules/@types/scheduler": { + "version": "0.16.3", + "license": "MIT" + }, + "node_modules/@types/semver": { + "version": "7.5.0", + "license": "MIT" + }, + "node_modules/@types/send": { + "version": "0.17.1", + "license": "MIT", + "dependencies": { + "@types/mime": "^1", + "@types/node": "*" + } + }, + "node_modules/@types/serve-index": { + "version": "1.9.1", + "license": "MIT", + "dependencies": { + "@types/express": "*" + } + }, + "node_modules/@types/serve-static": { + "version": "1.15.2", + "license": "MIT", + "dependencies": { + "@types/http-errors": "*", + "@types/mime": "*", + "@types/node": "*" + } + }, + "node_modules/@types/sockjs": { + "version": "0.3.33", + "license": "MIT", + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/stack-utils": { + "version": "2.0.1", + "license": "MIT" + }, + "node_modules/@types/testing-library__jest-dom": { + "version": "5.14.9", + "license": "MIT", + "dependencies": { + "@types/jest": "*" + } + }, + "node_modules/@types/trusted-types": { + "version": "2.0.3", + "license": "MIT" + }, + "node_modules/@types/warning": { + "version": "3.0.0", + "license": "MIT" + }, + "node_modules/@types/ws": { + "version": "8.5.5", + "license": "MIT", + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/yargs": { + "version": "17.0.24", + "license": "MIT", + "dependencies": { + "@types/yargs-parser": "*" + } + }, + "node_modules/@types/yargs-parser": { + "version": "21.0.0", + "license": "MIT" + }, + "node_modules/@typescript-eslint/eslint-plugin": { + "version": "5.62.0", + "license": "MIT", + "dependencies": { + "@eslint-community/regexpp": "^4.4.0", + "@typescript-eslint/scope-manager": "5.62.0", + "@typescript-eslint/type-utils": "5.62.0", + "@typescript-eslint/utils": "5.62.0", + "debug": "^4.3.4", + "graphemer": "^1.4.0", + "ignore": "^5.2.0", + "natural-compare-lite": "^1.4.0", + "semver": "^7.3.7", + "tsutils": "^3.21.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "@typescript-eslint/parser": "^5.0.0", + "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@typescript-eslint/experimental-utils": { + "version": "5.62.0", + "license": "MIT", + "dependencies": { + "@typescript-eslint/utils": "5.62.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" + } + }, + "node_modules/@typescript-eslint/parser": { + "version": "5.62.0", + "license": "BSD-2-Clause", + "dependencies": { + "@typescript-eslint/scope-manager": "5.62.0", + "@typescript-eslint/types": "5.62.0", + "@typescript-eslint/typescript-estree": "5.62.0", + "debug": "^4.3.4" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@typescript-eslint/scope-manager": { + "version": "5.62.0", + "license": "MIT", + "dependencies": { + "@typescript-eslint/types": "5.62.0", + "@typescript-eslint/visitor-keys": "5.62.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/type-utils": { + "version": "5.62.0", + "license": "MIT", + "dependencies": { + "@typescript-eslint/typescript-estree": "5.62.0", + "@typescript-eslint/utils": "5.62.0", + "debug": "^4.3.4", + "tsutils": "^3.21.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "*" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@typescript-eslint/types": { + "version": "5.62.0", + "license": "MIT", + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/typescript-estree": { + "version": "5.62.0", + "license": "BSD-2-Clause", + "dependencies": { + "@typescript-eslint/types": "5.62.0", + "@typescript-eslint/visitor-keys": "5.62.0", + "debug": "^4.3.4", + "globby": "^11.1.0", + "is-glob": "^4.0.3", + "semver": "^7.3.7", + "tsutils": "^3.21.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@typescript-eslint/utils": { + "version": "5.62.0", + "license": "MIT", + "dependencies": { + "@eslint-community/eslint-utils": "^4.2.0", + "@types/json-schema": "^7.0.9", + "@types/semver": "^7.3.12", + "@typescript-eslint/scope-manager": "5.62.0", + "@typescript-eslint/types": "5.62.0", + "@typescript-eslint/typescript-estree": "5.62.0", + "eslint-scope": "^5.1.1", + "semver": "^7.3.7" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" + } + }, + "node_modules/@typescript-eslint/utils/node_modules/eslint-scope": { + "version": "5.1.1", + "license": "BSD-2-Clause", + "dependencies": { + "esrecurse": "^4.3.0", + "estraverse": "^4.1.1" + }, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/@typescript-eslint/utils/node_modules/estraverse": { + "version": "4.3.0", + "license": "BSD-2-Clause", + "engines": { + "node": ">=4.0" + } + }, + "node_modules/@typescript-eslint/visitor-keys": { + "version": "5.62.0", + "license": "MIT", + "dependencies": { + "@typescript-eslint/types": "5.62.0", + "eslint-visitor-keys": "^3.3.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@webassemblyjs/ast": { + "version": "1.11.6", + "license": "MIT", + "dependencies": { + "@webassemblyjs/helper-numbers": "1.11.6", + "@webassemblyjs/helper-wasm-bytecode": "1.11.6" + } + }, + "node_modules/@webassemblyjs/floating-point-hex-parser": { + "version": "1.11.6", + "license": "MIT" + }, + "node_modules/@webassemblyjs/helper-api-error": { + "version": "1.11.6", + "license": "MIT" + }, + "node_modules/@webassemblyjs/helper-buffer": { + "version": "1.11.6", + "license": "MIT" + }, + "node_modules/@webassemblyjs/helper-numbers": { + "version": "1.11.6", + "license": "MIT", + "dependencies": { + "@webassemblyjs/floating-point-hex-parser": "1.11.6", + "@webassemblyjs/helper-api-error": "1.11.6", + "@xtuc/long": "4.2.2" + } + }, + "node_modules/@webassemblyjs/helper-wasm-bytecode": { + "version": "1.11.6", + "license": "MIT" + }, + "node_modules/@webassemblyjs/helper-wasm-section": { + "version": "1.11.6", + "license": "MIT", + "dependencies": { + "@webassemblyjs/ast": "1.11.6", + "@webassemblyjs/helper-buffer": "1.11.6", + "@webassemblyjs/helper-wasm-bytecode": "1.11.6", + "@webassemblyjs/wasm-gen": "1.11.6" + } + }, + "node_modules/@webassemblyjs/ieee754": { + "version": "1.11.6", + "license": "MIT", + "dependencies": { + "@xtuc/ieee754": "^1.2.0" + } + }, + "node_modules/@webassemblyjs/leb128": { + "version": "1.11.6", + "license": "Apache-2.0", + "dependencies": { + "@xtuc/long": "4.2.2" + } + }, + "node_modules/@webassemblyjs/utf8": { + "version": "1.11.6", + "license": "MIT" + }, + "node_modules/@webassemblyjs/wasm-edit": { + "version": "1.11.6", + "license": "MIT", + "dependencies": { + "@webassemblyjs/ast": "1.11.6", + "@webassemblyjs/helper-buffer": "1.11.6", + "@webassemblyjs/helper-wasm-bytecode": "1.11.6", + "@webassemblyjs/helper-wasm-section": "1.11.6", + "@webassemblyjs/wasm-gen": "1.11.6", + "@webassemblyjs/wasm-opt": "1.11.6", + "@webassemblyjs/wasm-parser": "1.11.6", + "@webassemblyjs/wast-printer": "1.11.6" + } + }, + "node_modules/@webassemblyjs/wasm-gen": { + "version": "1.11.6", + "license": "MIT", + "dependencies": { + "@webassemblyjs/ast": "1.11.6", + "@webassemblyjs/helper-wasm-bytecode": "1.11.6", + "@webassemblyjs/ieee754": "1.11.6", + "@webassemblyjs/leb128": "1.11.6", + "@webassemblyjs/utf8": "1.11.6" + } + }, + "node_modules/@webassemblyjs/wasm-opt": { + "version": "1.11.6", + "license": "MIT", + "dependencies": { + "@webassemblyjs/ast": "1.11.6", + "@webassemblyjs/helper-buffer": "1.11.6", + "@webassemblyjs/wasm-gen": "1.11.6", + "@webassemblyjs/wasm-parser": "1.11.6" + } + }, + "node_modules/@webassemblyjs/wasm-parser": { + "version": "1.11.6", + "license": "MIT", + "dependencies": { + "@webassemblyjs/ast": "1.11.6", + "@webassemblyjs/helper-api-error": "1.11.6", + "@webassemblyjs/helper-wasm-bytecode": "1.11.6", + "@webassemblyjs/ieee754": "1.11.6", + "@webassemblyjs/leb128": "1.11.6", + "@webassemblyjs/utf8": "1.11.6" + } + }, + "node_modules/@webassemblyjs/wast-printer": { + "version": "1.11.6", + "license": "MIT", + "dependencies": { + "@webassemblyjs/ast": "1.11.6", + "@xtuc/long": "4.2.2" + } + }, + "node_modules/@xtuc/ieee754": { + "version": "1.2.0", + "license": "BSD-3-Clause" + }, + "node_modules/@xtuc/long": { + "version": "4.2.2", + "license": "Apache-2.0" + }, + "node_modules/abab": { + "version": "2.0.6", + "license": "BSD-3-Clause" + }, + "node_modules/accepts": { + "version": "1.3.8", + "license": "MIT", + "dependencies": { + "mime-types": "~2.1.34", + "negotiator": "0.6.3" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/acorn": { + "version": "8.10.0", + "license": "MIT", + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/acorn-globals": { + "version": "6.0.0", + "license": "MIT", + "dependencies": { + "acorn": "^7.1.1", + "acorn-walk": "^7.1.1" + } + }, + "node_modules/acorn-globals/node_modules/acorn": { + "version": "7.4.1", + "license": "MIT", + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/acorn-import-assertions": { + "version": "1.9.0", + "license": "MIT", + "peerDependencies": { + "acorn": "^8" + } + }, + "node_modules/acorn-jsx": { + "version": "5.3.2", + "license": "MIT", + "peerDependencies": { + "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" + } + }, + "node_modules/acorn-walk": { + "version": "7.2.0", + "license": "MIT", + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/address": { + "version": "1.2.2", + "license": "MIT", + "engines": { + "node": ">= 10.0.0" + } + }, + "node_modules/adjust-sourcemap-loader": { + "version": "4.0.0", + "license": "MIT", + "dependencies": { + "loader-utils": "^2.0.0", + "regex-parser": "^2.2.11" + }, + "engines": { + "node": ">=8.9" + } + }, + "node_modules/agent-base": { + "version": "6.0.2", + "license": "MIT", + "dependencies": { + "debug": "4" + }, + "engines": { + "node": ">= 6.0.0" + } + }, + "node_modules/ajv": { + "version": "6.12.6", + "license": "MIT", + "dependencies": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/ajv-formats": { + "version": "2.1.1", + "license": "MIT", + "dependencies": { + "ajv": "^8.0.0" + }, + "peerDependencies": { + "ajv": "^8.0.0" + }, + "peerDependenciesMeta": { + "ajv": { + "optional": true + } + } + }, + "node_modules/ajv-formats/node_modules/ajv": { + "version": "8.12.0", + "license": "MIT", + "dependencies": { + "fast-deep-equal": "^3.1.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/ajv-formats/node_modules/json-schema-traverse": { + "version": "1.0.0", + "license": "MIT" + }, + "node_modules/ajv-keywords": { + "version": "3.5.2", + "license": "MIT", + "peerDependencies": { + "ajv": "^6.9.1" + } + }, + "node_modules/ansi-escapes": { + "version": "4.3.2", + "license": "MIT", + "dependencies": { + "type-fest": "^0.21.3" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/ansi-html-community": { + "version": "0.0.8", + "engines": [ + "node >= 0.8.0" + ], + "license": "Apache-2.0", + "bin": { + "ansi-html": "bin/ansi-html" + } + }, + "node_modules/ansi-regex": { + "version": "5.0.1", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/ansi-styles": { + "version": "4.3.0", + "license": "MIT", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/any-promise": { + "version": "1.3.0", + "license": "MIT" + }, + "node_modules/anymatch": { + "version": "3.1.3", + "license": "ISC", + "dependencies": { + "normalize-path": "^3.0.0", + "picomatch": "^2.0.4" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/arg": { + "version": "5.0.2", + "license": "MIT" + }, + "node_modules/argparse": { + "version": "1.0.10", + "license": "MIT", + "dependencies": { + "sprintf-js": "~1.0.2" + } + }, + "node_modules/aria-query": { + "version": "5.1.3", + "license": "Apache-2.0", + "dependencies": { + "deep-equal": "^2.0.5" + } + }, + "node_modules/array-buffer-byte-length": { + "version": "1.0.0", + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.2", + "is-array-buffer": "^3.0.1" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/array-flatten": { + "version": "2.1.2", + "license": "MIT" + }, + "node_modules/array-includes": { + "version": "3.1.6", + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4", + "get-intrinsic": "^1.1.3", + "is-string": "^1.0.7" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/array-union": { + "version": "2.1.0", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/array.prototype.flat": { + "version": "1.3.1", + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4", + "es-shim-unscopables": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/array.prototype.flatmap": { + "version": "1.3.1", + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4", + "es-shim-unscopables": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/array.prototype.reduce": { + "version": "1.0.5", + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4", + "es-array-method-boxes-properly": "^1.0.0", + "is-string": "^1.0.7" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/array.prototype.tosorted": { + "version": "1.1.1", + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4", + "es-shim-unscopables": "^1.0.0", + "get-intrinsic": "^1.1.3" + } + }, + "node_modules/arraybuffer.prototype.slice": { + "version": "1.0.1", + "license": "MIT", + "dependencies": { + "array-buffer-byte-length": "^1.0.0", + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "get-intrinsic": "^1.2.1", + "is-array-buffer": "^3.0.2", + "is-shared-array-buffer": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/asap": { + "version": "2.0.6", + "license": "MIT" + }, + "node_modules/ast-types-flow": { + "version": "0.0.7", + "license": "ISC" + }, + "node_modules/async": { + "version": "3.2.4", + "license": "MIT" + }, + "node_modules/asynckit": { + "version": "0.4.0", + "license": "MIT" + }, + "node_modules/at-least-node": { + "version": "1.0.0", + "license": "ISC", + "engines": { + "node": ">= 4.0.0" + } + }, + "node_modules/autoprefixer": { + "version": "10.4.14", + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/autoprefixer" + } + ], + "license": "MIT", + "dependencies": { + "browserslist": "^4.21.5", + "caniuse-lite": "^1.0.30001464", + "fraction.js": "^4.2.0", + "normalize-range": "^0.1.2", + "picocolors": "^1.0.0", + "postcss-value-parser": "^4.2.0" + }, + "bin": { + "autoprefixer": "bin/autoprefixer" + }, + "engines": { + "node": "^10 || ^12 || >=14" + }, + "peerDependencies": { + "postcss": "^8.1.0" + } + }, + "node_modules/available-typed-arrays": { + "version": "1.0.5", + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/axe-core": { + "version": "4.7.2", + "license": "MPL-2.0", + "engines": { + "node": ">=4" + } + }, + "node_modules/axobject-query": { + "version": "3.2.1", + "license": "Apache-2.0", + "dependencies": { + "dequal": "^2.0.3" + } + }, + "node_modules/babel-jest": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@jest/transform": "^27.5.1", + "@jest/types": "^27.5.1", + "@types/babel__core": "^7.1.14", + "babel-plugin-istanbul": "^6.1.1", + "babel-preset-jest": "^27.5.1", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.9", + "slash": "^3.0.0" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + }, + "peerDependencies": { + "@babel/core": "^7.8.0" + } + }, + "node_modules/babel-jest/node_modules/@jest/types": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^16.0.0", + "chalk": "^4.0.0" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/babel-jest/node_modules/@types/yargs": { + "version": "16.0.5", + "license": "MIT", + "dependencies": { + "@types/yargs-parser": "*" + } + }, + "node_modules/babel-loader": { + "version": "8.3.0", + "license": "MIT", + "dependencies": { + "find-cache-dir": "^3.3.1", + "loader-utils": "^2.0.0", + "make-dir": "^3.1.0", + "schema-utils": "^2.6.5" + }, + "engines": { + "node": ">= 8.9" + }, + "peerDependencies": { + "@babel/core": "^7.0.0", + "webpack": ">=2" + } + }, + "node_modules/babel-loader/node_modules/schema-utils": { + "version": "2.7.1", + "license": "MIT", + "dependencies": { + "@types/json-schema": "^7.0.5", + "ajv": "^6.12.4", + "ajv-keywords": "^3.5.2" + }, + "engines": { + "node": ">= 8.9.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + } + }, + "node_modules/babel-plugin-istanbul": { + "version": "6.1.1", + "license": "BSD-3-Clause", + "dependencies": { + "@babel/helper-plugin-utils": "^7.0.0", + "@istanbuljs/load-nyc-config": "^1.0.0", + "@istanbuljs/schema": "^0.1.2", + "istanbul-lib-instrument": "^5.0.4", + "test-exclude": "^6.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/babel-plugin-jest-hoist": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@babel/template": "^7.3.3", + "@babel/types": "^7.3.3", + "@types/babel__core": "^7.0.0", + "@types/babel__traverse": "^7.0.6" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/babel-plugin-macros": { + "version": "3.1.0", + "license": "MIT", + "dependencies": { + "@babel/runtime": "^7.12.5", + "cosmiconfig": "^7.0.0", + "resolve": "^1.19.0" + }, + "engines": { + "node": ">=10", + "npm": ">=6" + } + }, + "node_modules/babel-plugin-named-asset-import": { + "version": "0.3.8", + "license": "MIT", + "peerDependencies": { + "@babel/core": "^7.1.0" + } + }, + "node_modules/babel-plugin-polyfill-corejs2": { + "version": "0.4.5", + "license": "MIT", + "dependencies": { + "@babel/compat-data": "^7.22.6", + "@babel/helper-define-polyfill-provider": "^0.4.2", + "semver": "^6.3.1" + }, + "peerDependencies": { + "@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0" + } + }, + "node_modules/babel-plugin-polyfill-corejs2/node_modules/semver": { + "version": "6.3.1", + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/babel-plugin-polyfill-corejs3": { + "version": "0.8.3", + "license": "MIT", + "dependencies": { + "@babel/helper-define-polyfill-provider": "^0.4.2", + "core-js-compat": "^3.31.0" + }, + "peerDependencies": { + "@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0" + } + }, + "node_modules/babel-plugin-polyfill-regenerator": { + "version": "0.5.2", + "license": "MIT", + "dependencies": { + "@babel/helper-define-polyfill-provider": "^0.4.2" + }, + "peerDependencies": { + "@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0" + } + }, + "node_modules/babel-plugin-transform-react-remove-prop-types": { + "version": "0.4.24", + "license": "MIT" + }, + "node_modules/babel-preset-current-node-syntax": { + "version": "1.0.1", + "license": "MIT", + "dependencies": { + "@babel/plugin-syntax-async-generators": "^7.8.4", + "@babel/plugin-syntax-bigint": "^7.8.3", + "@babel/plugin-syntax-class-properties": "^7.8.3", + "@babel/plugin-syntax-import-meta": "^7.8.3", + "@babel/plugin-syntax-json-strings": "^7.8.3", + "@babel/plugin-syntax-logical-assignment-operators": "^7.8.3", + "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3", + "@babel/plugin-syntax-numeric-separator": "^7.8.3", + "@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-top-level-await": "^7.8.3" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/babel-preset-jest": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "babel-plugin-jest-hoist": "^27.5.1", + "babel-preset-current-node-syntax": "^1.0.0" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/babel-preset-react-app": { + "version": "10.0.1", + "license": "MIT", + "dependencies": { + "@babel/core": "^7.16.0", + "@babel/plugin-proposal-class-properties": "^7.16.0", + "@babel/plugin-proposal-decorators": "^7.16.4", + "@babel/plugin-proposal-nullish-coalescing-operator": "^7.16.0", + "@babel/plugin-proposal-numeric-separator": "^7.16.0", + "@babel/plugin-proposal-optional-chaining": "^7.16.0", + "@babel/plugin-proposal-private-methods": "^7.16.0", + "@babel/plugin-transform-flow-strip-types": "^7.16.0", + "@babel/plugin-transform-react-display-name": "^7.16.0", + "@babel/plugin-transform-runtime": "^7.16.4", + "@babel/preset-env": "^7.16.4", + "@babel/preset-react": "^7.16.0", + "@babel/preset-typescript": "^7.16.0", + "@babel/runtime": "^7.16.3", + "babel-plugin-macros": "^3.1.0", + "babel-plugin-transform-react-remove-prop-types": "^0.4.24" + } + }, + "node_modules/balanced-match": { + "version": "1.0.2", + "license": "MIT" + }, + "node_modules/batch": { + "version": "0.6.1", + "license": "MIT" + }, + "node_modules/bfj": { + "version": "7.0.2", + "license": "MIT", + "dependencies": { + "bluebird": "^3.5.5", + "check-types": "^11.1.1", + "hoopy": "^0.1.4", + "tryer": "^1.0.1" + }, + "engines": { + "node": ">= 8.0.0" + } + }, + "node_modules/big.js": { + "version": "5.2.2", + "license": "MIT", + "engines": { + "node": "*" + } + }, + "node_modules/binary-extensions": { + "version": "2.2.0", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/bluebird": { + "version": "3.7.2", + "license": "MIT" + }, + "node_modules/body-parser": { + "version": "1.20.1", + "license": "MIT", + "dependencies": { + "bytes": "3.1.2", + "content-type": "~1.0.4", + "debug": "2.6.9", + "depd": "2.0.0", + "destroy": "1.2.0", + "http-errors": "2.0.0", + "iconv-lite": "0.4.24", + "on-finished": "2.4.1", + "qs": "6.11.0", + "raw-body": "2.5.1", + "type-is": "~1.6.18", + "unpipe": "1.0.0" + }, + "engines": { + "node": ">= 0.8", + "npm": "1.2.8000 || >= 1.4.16" + } + }, + "node_modules/body-parser/node_modules/bytes": { + "version": "3.1.2", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/body-parser/node_modules/debug": { + "version": "2.6.9", + "license": "MIT", + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/body-parser/node_modules/iconv-lite": { + "version": "0.4.24", + "license": "MIT", + "dependencies": { + "safer-buffer": ">= 2.1.2 < 3" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/body-parser/node_modules/ms": { + "version": "2.0.0", + "license": "MIT" + }, + "node_modules/bonjour-service": { + "version": "1.1.1", + "license": "MIT", + "dependencies": { + "array-flatten": "^2.1.2", + "dns-equal": "^1.0.0", + "fast-deep-equal": "^3.1.3", + "multicast-dns": "^7.2.5" + } + }, + "node_modules/boolbase": { + "version": "1.0.0", + "license": "ISC" + }, + "node_modules/bootstrap": { + "version": "5.3.1", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/twbs" + }, + { + "type": "opencollective", + "url": "https://opencollective.com/bootstrap" + } + ], + "license": "MIT", + "peerDependencies": { + "@popperjs/core": "^2.11.8" + } + }, + "node_modules/brace-expansion": { + "version": "1.1.11", + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/braces": { + "version": "3.0.2", + "license": "MIT", + "dependencies": { + "fill-range": "^7.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/browser-process-hrtime": { + "version": "1.0.0", + "license": "BSD-2-Clause" + }, + "node_modules/browserslist": { + "version": "4.21.9", + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "caniuse-lite": "^1.0.30001503", + "electron-to-chromium": "^1.4.431", + "node-releases": "^2.0.12", + "update-browserslist-db": "^1.0.11" + }, + "bin": { + "browserslist": "cli.js" + }, + "engines": { + "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" + } + }, + "node_modules/bser": { + "version": "2.1.1", + "license": "Apache-2.0", + "dependencies": { + "node-int64": "^0.4.0" + } + }, + "node_modules/buffer-from": { + "version": "1.1.2", + "license": "MIT" + }, + "node_modules/builtin-modules": { + "version": "3.3.0", + "license": "MIT", + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/bytes": { + "version": "3.0.0", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/call-bind": { + "version": "1.0.2", + "license": "MIT", + "dependencies": { + "function-bind": "^1.1.1", + "get-intrinsic": "^1.0.2" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/callsites": { + "version": "3.1.0", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/camel-case": { + "version": "4.1.2", + "license": "MIT", + "dependencies": { + "pascal-case": "^3.1.2", + "tslib": "^2.0.3" + } + }, + "node_modules/camelcase": { + "version": "6.3.0", + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/camelcase-css": { + "version": "2.0.1", + "license": "MIT", + "engines": { + "node": ">= 6" + } + }, + "node_modules/caniuse-api": { + "version": "3.0.0", + "license": "MIT", + "dependencies": { + "browserslist": "^4.0.0", + "caniuse-lite": "^1.0.0", + "lodash.memoize": "^4.1.2", + "lodash.uniq": "^4.5.0" + } + }, + "node_modules/caniuse-lite": { + "version": "1.0.30001517", + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/caniuse-lite" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "CC-BY-4.0" + }, + "node_modules/case-sensitive-paths-webpack-plugin": { + "version": "2.4.0", + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/casper-sdk": { + "resolved": "../../../pkg", + "link": true + }, + "node_modules/chalk": { + "version": "4.1.2", + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/char-regex": { + "version": "1.0.2", + "license": "MIT", + "engines": { + "node": ">=10" + } + }, + "node_modules/check-types": { + "version": "11.2.2", + "license": "MIT" + }, + "node_modules/chokidar": { + "version": "3.5.3", + "funding": [ + { + "type": "individual", + "url": "https://paulmillr.com/funding/" + } + ], + "license": "MIT", + "dependencies": { + "anymatch": "~3.1.2", + "braces": "~3.0.2", + "glob-parent": "~5.1.2", + "is-binary-path": "~2.1.0", + "is-glob": "~4.0.1", + "normalize-path": "~3.0.0", + "readdirp": "~3.6.0" + }, + "engines": { + "node": ">= 8.10.0" + }, + "optionalDependencies": { + "fsevents": "~2.3.2" + } + }, + "node_modules/chokidar/node_modules/glob-parent": { + "version": "5.1.2", + "license": "ISC", + "dependencies": { + "is-glob": "^4.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/chrome-trace-event": { + "version": "1.0.3", + "license": "MIT", + "engines": { + "node": ">=6.0" + } + }, + "node_modules/ci-info": { + "version": "3.8.0", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/sibiraj-s" + } + ], + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/cjs-module-lexer": { + "version": "1.2.3", + "license": "MIT" + }, + "node_modules/classnames": { + "version": "2.3.2", + "license": "MIT" + }, + "node_modules/clean-css": { + "version": "5.3.2", + "license": "MIT", + "dependencies": { + "source-map": "~0.6.0" + }, + "engines": { + "node": ">= 10.0" + } + }, + "node_modules/clean-css/node_modules/source-map": { + "version": "0.6.1", + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/cliui": { + "version": "7.0.4", + "license": "ISC", + "dependencies": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.0", + "wrap-ansi": "^7.0.0" + } + }, + "node_modules/co": { + "version": "4.6.0", + "license": "MIT", + "engines": { + "iojs": ">= 1.0.0", + "node": ">= 0.12.0" + } + }, + "node_modules/coa": { + "version": "2.0.2", + "license": "MIT", + "dependencies": { + "@types/q": "^1.5.1", + "chalk": "^2.4.1", + "q": "^1.1.2" + }, + "engines": { + "node": ">= 4.0" + } + }, + "node_modules/coa/node_modules/ansi-styles": { + "version": "3.2.1", + "license": "MIT", + "dependencies": { + "color-convert": "^1.9.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/coa/node_modules/chalk": { + "version": "2.4.2", + "license": "MIT", + "dependencies": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/coa/node_modules/color-convert": { + "version": "1.9.3", + "license": "MIT", + "dependencies": { + "color-name": "1.1.3" + } + }, + "node_modules/coa/node_modules/color-name": { + "version": "1.1.3", + "license": "MIT" + }, + "node_modules/coa/node_modules/escape-string-regexp": { + "version": "1.0.5", + "license": "MIT", + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/coa/node_modules/has-flag": { + "version": "3.0.0", + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/coa/node_modules/supports-color": { + "version": "5.5.0", + "license": "MIT", + "dependencies": { + "has-flag": "^3.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/collect-v8-coverage": { + "version": "1.0.2", + "license": "MIT" + }, + "node_modules/color-convert": { + "version": "2.0.1", + "license": "MIT", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/color-name": { + "version": "1.1.4", + "license": "MIT" + }, + "node_modules/colord": { + "version": "2.9.3", + "license": "MIT" + }, + "node_modules/colorette": { + "version": "2.0.20", + "license": "MIT" + }, + "node_modules/combined-stream": { + "version": "1.0.8", + "license": "MIT", + "dependencies": { + "delayed-stream": "~1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/commander": { + "version": "8.3.0", + "license": "MIT", + "engines": { + "node": ">= 12" + } + }, + "node_modules/common-path-prefix": { + "version": "3.0.0", + "license": "ISC" + }, + "node_modules/common-tags": { + "version": "1.8.2", + "license": "MIT", + "engines": { + "node": ">=4.0.0" + } + }, + "node_modules/commondir": { + "version": "1.0.1", + "license": "MIT" + }, + "node_modules/compressible": { + "version": "2.0.18", + "license": "MIT", + "dependencies": { + "mime-db": ">= 1.43.0 < 2" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/compression": { + "version": "1.7.4", + "license": "MIT", + "dependencies": { + "accepts": "~1.3.5", + "bytes": "3.0.0", + "compressible": "~2.0.16", + "debug": "2.6.9", + "on-headers": "~1.0.2", + "safe-buffer": "5.1.2", + "vary": "~1.1.2" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/compression/node_modules/debug": { + "version": "2.6.9", + "license": "MIT", + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/compression/node_modules/ms": { + "version": "2.0.0", + "license": "MIT" + }, + "node_modules/compression/node_modules/safe-buffer": { + "version": "5.1.2", + "license": "MIT" + }, + "node_modules/concat-map": { + "version": "0.0.1", + "license": "MIT" + }, + "node_modules/confusing-browser-globals": { + "version": "1.0.11", + "license": "MIT" + }, + "node_modules/connect-history-api-fallback": { + "version": "2.0.0", + "license": "MIT", + "engines": { + "node": ">=0.8" + } + }, + "node_modules/content-disposition": { + "version": "0.5.4", + "license": "MIT", + "dependencies": { + "safe-buffer": "5.2.1" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/content-type": { + "version": "1.0.5", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/convert-source-map": { + "version": "1.9.0", + "license": "MIT" + }, + "node_modules/cookie": { + "version": "0.5.0", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/cookie-signature": { + "version": "1.0.6", + "license": "MIT" + }, + "node_modules/core-js": { + "version": "3.31.1", + "hasInstallScript": true, + "license": "MIT", + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/core-js" + } + }, + "node_modules/core-js-compat": { + "version": "3.31.1", + "license": "MIT", + "dependencies": { + "browserslist": "^4.21.9" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/core-js" + } + }, + "node_modules/core-js-pure": { + "version": "3.31.1", + "hasInstallScript": true, + "license": "MIT", + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/core-js" + } + }, + "node_modules/core-util-is": { + "version": "1.0.3", + "license": "MIT" + }, + "node_modules/cosmiconfig": { + "version": "7.1.0", + "license": "MIT", + "dependencies": { + "@types/parse-json": "^4.0.0", + "import-fresh": "^3.2.1", + "parse-json": "^5.0.0", + "path-type": "^4.0.0", + "yaml": "^1.10.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/cross-spawn": { + "version": "7.0.3", + "license": "MIT", + "dependencies": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/crypto-random-string": { + "version": "2.0.0", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/css-blank-pseudo": { + "version": "3.0.3", + "license": "CC0-1.0", + "dependencies": { + "postcss-selector-parser": "^6.0.9" + }, + "bin": { + "css-blank-pseudo": "dist/cli.cjs" + }, + "engines": { + "node": "^12 || ^14 || >=16" + }, + "peerDependencies": { + "postcss": "^8.4" + } + }, + "node_modules/css-declaration-sorter": { + "version": "6.4.1", + "license": "ISC", + "engines": { + "node": "^10 || ^12 || >=14" + }, + "peerDependencies": { + "postcss": "^8.0.9" + } + }, + "node_modules/css-has-pseudo": { + "version": "3.0.4", + "license": "CC0-1.0", + "dependencies": { + "postcss-selector-parser": "^6.0.9" + }, + "bin": { + "css-has-pseudo": "dist/cli.cjs" + }, + "engines": { + "node": "^12 || ^14 || >=16" + }, + "peerDependencies": { + "postcss": "^8.4" + } + }, + "node_modules/css-loader": { + "version": "6.8.1", + "license": "MIT", + "dependencies": { + "icss-utils": "^5.1.0", + "postcss": "^8.4.21", + "postcss-modules-extract-imports": "^3.0.0", + "postcss-modules-local-by-default": "^4.0.3", + "postcss-modules-scope": "^3.0.0", + "postcss-modules-values": "^4.0.0", + "postcss-value-parser": "^4.2.0", + "semver": "^7.3.8" + }, + "engines": { + "node": ">= 12.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "webpack": "^5.0.0" + } + }, + "node_modules/css-minimizer-webpack-plugin": { + "version": "3.4.1", + "license": "MIT", + "dependencies": { + "cssnano": "^5.0.6", + "jest-worker": "^27.0.2", + "postcss": "^8.3.5", + "schema-utils": "^4.0.0", + "serialize-javascript": "^6.0.0", + "source-map": "^0.6.1" + }, + "engines": { + "node": ">= 12.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "webpack": "^5.0.0" + }, + "peerDependenciesMeta": { + "@parcel/css": { + "optional": true + }, + "clean-css": { + "optional": true + }, + "csso": { + "optional": true + }, + "esbuild": { + "optional": true + } + } + }, + "node_modules/css-minimizer-webpack-plugin/node_modules/ajv": { + "version": "8.12.0", + "license": "MIT", + "dependencies": { + "fast-deep-equal": "^3.1.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords": { + "version": "5.1.0", + "license": "MIT", + "dependencies": { + "fast-deep-equal": "^3.1.3" + }, + "peerDependencies": { + "ajv": "^8.8.2" + } + }, + "node_modules/css-minimizer-webpack-plugin/node_modules/json-schema-traverse": { + "version": "1.0.0", + "license": "MIT" + }, + "node_modules/css-minimizer-webpack-plugin/node_modules/schema-utils": { + "version": "4.2.0", + "license": "MIT", + "dependencies": { + "@types/json-schema": "^7.0.9", + "ajv": "^8.9.0", + "ajv-formats": "^2.1.1", + "ajv-keywords": "^5.1.0" + }, + "engines": { + "node": ">= 12.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + } + }, + "node_modules/css-minimizer-webpack-plugin/node_modules/source-map": { + "version": "0.6.1", + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/css-prefers-color-scheme": { + "version": "6.0.3", + "license": "CC0-1.0", + "bin": { + "css-prefers-color-scheme": "dist/cli.cjs" + }, + "engines": { + "node": "^12 || ^14 || >=16" + }, + "peerDependencies": { + "postcss": "^8.4" + } + }, + "node_modules/css-select": { + "version": "4.3.0", + "license": "BSD-2-Clause", + "dependencies": { + "boolbase": "^1.0.0", + "css-what": "^6.0.1", + "domhandler": "^4.3.1", + "domutils": "^2.8.0", + "nth-check": "^2.0.1" + }, + "funding": { + "url": "https://github.com/sponsors/fb55" + } + }, + "node_modules/css-select-base-adapter": { + "version": "0.1.1", + "license": "MIT" + }, + "node_modules/css-tree": { + "version": "1.0.0-alpha.37", + "license": "MIT", + "dependencies": { + "mdn-data": "2.0.4", + "source-map": "^0.6.1" + }, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/css-tree/node_modules/source-map": { + "version": "0.6.1", + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/css-what": { + "version": "6.1.0", + "license": "BSD-2-Clause", + "engines": { + "node": ">= 6" + }, + "funding": { + "url": "https://github.com/sponsors/fb55" + } + }, + "node_modules/css.escape": { + "version": "1.5.1", + "license": "MIT" + }, + "node_modules/cssdb": { + "version": "7.7.0", + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + }, + { + "type": "github", + "url": "https://github.com/sponsors/csstools" + } + ], + "license": "CC0-1.0" + }, + "node_modules/cssesc": { + "version": "3.0.0", + "license": "MIT", + "bin": { + "cssesc": "bin/cssesc" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/cssnano": { + "version": "5.1.15", + "license": "MIT", + "dependencies": { + "cssnano-preset-default": "^5.2.14", + "lilconfig": "^2.0.3", + "yaml": "^1.10.2" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/cssnano" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/cssnano-preset-default": { + "version": "5.2.14", + "license": "MIT", + "dependencies": { + "css-declaration-sorter": "^6.3.1", + "cssnano-utils": "^3.1.0", + "postcss-calc": "^8.2.3", + "postcss-colormin": "^5.3.1", + "postcss-convert-values": "^5.1.3", + "postcss-discard-comments": "^5.1.2", + "postcss-discard-duplicates": "^5.1.0", + "postcss-discard-empty": "^5.1.1", + "postcss-discard-overridden": "^5.1.0", + "postcss-merge-longhand": "^5.1.7", + "postcss-merge-rules": "^5.1.4", + "postcss-minify-font-values": "^5.1.0", + "postcss-minify-gradients": "^5.1.1", + "postcss-minify-params": "^5.1.4", + "postcss-minify-selectors": "^5.2.1", + "postcss-normalize-charset": "^5.1.0", + "postcss-normalize-display-values": "^5.1.0", + "postcss-normalize-positions": "^5.1.1", + "postcss-normalize-repeat-style": "^5.1.1", + "postcss-normalize-string": "^5.1.0", + "postcss-normalize-timing-functions": "^5.1.0", + "postcss-normalize-unicode": "^5.1.1", + "postcss-normalize-url": "^5.1.0", + "postcss-normalize-whitespace": "^5.1.1", + "postcss-ordered-values": "^5.1.3", + "postcss-reduce-initial": "^5.1.2", + "postcss-reduce-transforms": "^5.1.0", + "postcss-svgo": "^5.1.0", + "postcss-unique-selectors": "^5.1.1" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/cssnano-utils": { + "version": "3.1.0", + "license": "MIT", + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/csso": { + "version": "4.2.0", + "license": "MIT", + "dependencies": { + "css-tree": "^1.1.2" + }, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/csso/node_modules/css-tree": { + "version": "1.1.3", + "license": "MIT", + "dependencies": { + "mdn-data": "2.0.14", + "source-map": "^0.6.1" + }, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/csso/node_modules/mdn-data": { + "version": "2.0.14", + "license": "CC0-1.0" + }, + "node_modules/csso/node_modules/source-map": { + "version": "0.6.1", + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/cssom": { + "version": "0.4.4", + "license": "MIT" + }, + "node_modules/cssstyle": { + "version": "2.3.0", + "license": "MIT", + "dependencies": { + "cssom": "~0.3.6" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/cssstyle/node_modules/cssom": { + "version": "0.3.8", + "license": "MIT" + }, + "node_modules/csstype": { + "version": "3.1.2", + "license": "MIT" + }, + "node_modules/damerau-levenshtein": { + "version": "1.0.8", + "license": "BSD-2-Clause" + }, + "node_modules/data-urls": { + "version": "2.0.0", + "license": "MIT", + "dependencies": { + "abab": "^2.0.3", + "whatwg-mimetype": "^2.3.0", + "whatwg-url": "^8.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/debug": { + "version": "4.3.4", + "license": "MIT", + "dependencies": { + "ms": "2.1.2" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/decimal.js": { + "version": "10.4.3", + "license": "MIT" + }, + "node_modules/dedent": { + "version": "0.7.0", + "license": "MIT" + }, + "node_modules/deep-equal": { + "version": "2.2.2", + "license": "MIT", + "dependencies": { + "array-buffer-byte-length": "^1.0.0", + "call-bind": "^1.0.2", + "es-get-iterator": "^1.1.3", + "get-intrinsic": "^1.2.1", + "is-arguments": "^1.1.1", + "is-array-buffer": "^3.0.2", + "is-date-object": "^1.0.5", + "is-regex": "^1.1.4", + "is-shared-array-buffer": "^1.0.2", + "isarray": "^2.0.5", + "object-is": "^1.1.5", + "object-keys": "^1.1.1", + "object.assign": "^4.1.4", + "regexp.prototype.flags": "^1.5.0", + "side-channel": "^1.0.4", + "which-boxed-primitive": "^1.0.2", + "which-collection": "^1.0.1", + "which-typed-array": "^1.1.9" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/deep-is": { + "version": "0.1.4", + "license": "MIT" + }, + "node_modules/deepmerge": { + "version": "4.3.1", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/default-gateway": { + "version": "6.0.3", + "license": "BSD-2-Clause", + "dependencies": { + "execa": "^5.0.0" + }, + "engines": { + "node": ">= 10" + } + }, + "node_modules/define-lazy-prop": { + "version": "2.0.0", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/define-properties": { + "version": "1.2.0", + "license": "MIT", + "dependencies": { + "has-property-descriptors": "^1.0.0", + "object-keys": "^1.1.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/delayed-stream": { + "version": "1.0.0", + "license": "MIT", + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/depd": { + "version": "2.0.0", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/dequal": { + "version": "2.0.3", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/destroy": { + "version": "1.2.0", + "license": "MIT", + "engines": { + "node": ">= 0.8", + "npm": "1.2.8000 || >= 1.4.16" + } + }, + "node_modules/detect-newline": { + "version": "3.1.0", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/detect-node": { + "version": "2.1.0", + "license": "MIT" + }, + "node_modules/detect-port-alt": { + "version": "1.1.6", + "license": "MIT", + "dependencies": { + "address": "^1.0.1", + "debug": "^2.6.0" + }, + "bin": { + "detect": "bin/detect-port", + "detect-port": "bin/detect-port" + }, + "engines": { + "node": ">= 4.2.1" + } + }, + "node_modules/detect-port-alt/node_modules/debug": { + "version": "2.6.9", + "license": "MIT", + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/detect-port-alt/node_modules/ms": { + "version": "2.0.0", + "license": "MIT" + }, + "node_modules/didyoumean": { + "version": "1.2.2", + "license": "Apache-2.0" + }, + "node_modules/diff-sequences": { + "version": "29.4.3", + "license": "MIT", + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/dir-glob": { + "version": "3.0.1", + "license": "MIT", + "dependencies": { + "path-type": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/dlv": { + "version": "1.1.3", + "license": "MIT" + }, + "node_modules/dns-equal": { + "version": "1.0.0", + "license": "MIT" + }, + "node_modules/dns-packet": { + "version": "5.6.0", + "license": "MIT", + "dependencies": { + "@leichtgewicht/ip-codec": "^2.0.1" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/doctrine": { + "version": "3.0.0", + "license": "Apache-2.0", + "dependencies": { + "esutils": "^2.0.2" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/dom-accessibility-api": { + "version": "0.5.16", + "license": "MIT" + }, + "node_modules/dom-converter": { + "version": "0.2.0", + "license": "MIT", + "dependencies": { + "utila": "~0.4" + } + }, + "node_modules/dom-helpers": { + "version": "5.2.1", + "license": "MIT", + "dependencies": { + "@babel/runtime": "^7.8.7", + "csstype": "^3.0.2" + } + }, + "node_modules/dom-serializer": { + "version": "1.4.1", + "license": "MIT", + "dependencies": { + "domelementtype": "^2.0.1", + "domhandler": "^4.2.0", + "entities": "^2.0.0" + }, + "funding": { + "url": "https://github.com/cheeriojs/dom-serializer?sponsor=1" + } + }, + "node_modules/domelementtype": { + "version": "2.3.0", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/fb55" + } + ], + "license": "BSD-2-Clause" + }, + "node_modules/domexception": { + "version": "2.0.1", + "license": "MIT", + "dependencies": { + "webidl-conversions": "^5.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/domexception/node_modules/webidl-conversions": { + "version": "5.0.0", + "license": "BSD-2-Clause", + "engines": { + "node": ">=8" + } + }, + "node_modules/domhandler": { + "version": "4.3.1", + "license": "BSD-2-Clause", + "dependencies": { + "domelementtype": "^2.2.0" + }, + "engines": { + "node": ">= 4" + }, + "funding": { + "url": "https://github.com/fb55/domhandler?sponsor=1" + } + }, + "node_modules/domutils": { + "version": "2.8.0", + "license": "BSD-2-Clause", + "dependencies": { + "dom-serializer": "^1.0.1", + "domelementtype": "^2.2.0", + "domhandler": "^4.2.0" + }, + "funding": { + "url": "https://github.com/fb55/domutils?sponsor=1" + } + }, + "node_modules/dot-case": { + "version": "3.0.4", + "license": "MIT", + "dependencies": { + "no-case": "^3.0.4", + "tslib": "^2.0.3" + } + }, + "node_modules/dotenv": { + "version": "10.0.0", + "license": "BSD-2-Clause", + "engines": { + "node": ">=10" + } + }, + "node_modules/dotenv-expand": { + "version": "5.1.0", + "license": "BSD-2-Clause" + }, + "node_modules/duplexer": { + "version": "0.1.2", + "license": "MIT" + }, + "node_modules/ee-first": { + "version": "1.1.1", + "license": "MIT" + }, + "node_modules/ejs": { + "version": "3.1.9", + "license": "Apache-2.0", + "dependencies": { + "jake": "^10.8.5" + }, + "bin": { + "ejs": "bin/cli.js" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/electron-to-chromium": { + "version": "1.4.473", + "license": "ISC" + }, + "node_modules/emittery": { + "version": "0.8.1", + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sindresorhus/emittery?sponsor=1" + } + }, + "node_modules/emoji-regex": { + "version": "9.2.2", + "license": "MIT" + }, + "node_modules/emojis-list": { + "version": "3.0.0", + "license": "MIT", + "engines": { + "node": ">= 4" + } + }, + "node_modules/encodeurl": { + "version": "1.0.2", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/enhanced-resolve": { + "version": "5.15.0", + "license": "MIT", + "dependencies": { + "graceful-fs": "^4.2.4", + "tapable": "^2.2.0" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/entities": { + "version": "2.2.0", + "license": "BSD-2-Clause", + "funding": { + "url": "https://github.com/fb55/entities?sponsor=1" + } + }, + "node_modules/error-ex": { + "version": "1.3.2", + "license": "MIT", + "dependencies": { + "is-arrayish": "^0.2.1" + } + }, + "node_modules/error-stack-parser": { + "version": "2.1.4", + "license": "MIT", + "dependencies": { + "stackframe": "^1.3.4" + } + }, + "node_modules/es-abstract": { + "version": "1.22.1", + "license": "MIT", + "dependencies": { + "array-buffer-byte-length": "^1.0.0", + "arraybuffer.prototype.slice": "^1.0.1", + "available-typed-arrays": "^1.0.5", + "call-bind": "^1.0.2", + "es-set-tostringtag": "^2.0.1", + "es-to-primitive": "^1.2.1", + "function.prototype.name": "^1.1.5", + "get-intrinsic": "^1.2.1", + "get-symbol-description": "^1.0.0", + "globalthis": "^1.0.3", + "gopd": "^1.0.1", + "has": "^1.0.3", + "has-property-descriptors": "^1.0.0", + "has-proto": "^1.0.1", + "has-symbols": "^1.0.3", + "internal-slot": "^1.0.5", + "is-array-buffer": "^3.0.2", + "is-callable": "^1.2.7", + "is-negative-zero": "^2.0.2", + "is-regex": "^1.1.4", + "is-shared-array-buffer": "^1.0.2", + "is-string": "^1.0.7", + "is-typed-array": "^1.1.10", + "is-weakref": "^1.0.2", + "object-inspect": "^1.12.3", + "object-keys": "^1.1.1", + "object.assign": "^4.1.4", + "regexp.prototype.flags": "^1.5.0", + "safe-array-concat": "^1.0.0", + "safe-regex-test": "^1.0.0", + "string.prototype.trim": "^1.2.7", + "string.prototype.trimend": "^1.0.6", + "string.prototype.trimstart": "^1.0.6", + "typed-array-buffer": "^1.0.0", + "typed-array-byte-length": "^1.0.0", + "typed-array-byte-offset": "^1.0.0", + "typed-array-length": "^1.0.4", + "unbox-primitive": "^1.0.2", + "which-typed-array": "^1.1.10" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/es-array-method-boxes-properly": { + "version": "1.0.0", + "license": "MIT" + }, + "node_modules/es-get-iterator": { + "version": "1.1.3", + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.2", + "get-intrinsic": "^1.1.3", + "has-symbols": "^1.0.3", + "is-arguments": "^1.1.1", + "is-map": "^2.0.2", + "is-set": "^2.0.2", + "is-string": "^1.0.7", + "isarray": "^2.0.5", + "stop-iteration-iterator": "^1.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/es-module-lexer": { + "version": "1.3.0", + "license": "MIT" + }, + "node_modules/es-set-tostringtag": { + "version": "2.0.1", + "license": "MIT", + "dependencies": { + "get-intrinsic": "^1.1.3", + "has": "^1.0.3", + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-shim-unscopables": { + "version": "1.0.0", + "license": "MIT", + "dependencies": { + "has": "^1.0.3" + } + }, + "node_modules/es-to-primitive": { + "version": "1.2.1", + "license": "MIT", + "dependencies": { + "is-callable": "^1.1.4", + "is-date-object": "^1.0.1", + "is-symbol": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/escalade": { + "version": "3.1.1", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/escape-html": { + "version": "1.0.3", + "license": "MIT" + }, + "node_modules/escape-string-regexp": { + "version": "4.0.0", + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/escodegen": { + "version": "2.1.0", + "license": "BSD-2-Clause", + "dependencies": { + "esprima": "^4.0.1", + "estraverse": "^5.2.0", + "esutils": "^2.0.2" + }, + "bin": { + "escodegen": "bin/escodegen.js", + "esgenerate": "bin/esgenerate.js" + }, + "engines": { + "node": ">=6.0" + }, + "optionalDependencies": { + "source-map": "~0.6.1" + } + }, + "node_modules/escodegen/node_modules/source-map": { + "version": "0.6.1", + "license": "BSD-3-Clause", + "optional": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/eslint": { + "version": "8.45.0", + "license": "MIT", + "dependencies": { + "@eslint-community/eslint-utils": "^4.2.0", + "@eslint-community/regexpp": "^4.4.0", + "@eslint/eslintrc": "^2.1.0", + "@eslint/js": "8.44.0", + "@humanwhocodes/config-array": "^0.11.10", + "@humanwhocodes/module-importer": "^1.0.1", + "@nodelib/fs.walk": "^1.2.8", + "ajv": "^6.10.0", + "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.0", + "eslint-visitor-keys": "^3.4.1", + "espree": "^9.6.0", + "esquery": "^1.4.2", + "esutils": "^2.0.2", + "fast-deep-equal": "^3.1.3", + "file-entry-cache": "^6.0.1", + "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", + "minimatch": "^3.1.2", + "natural-compare": "^1.4.0", + "optionator": "^0.9.3", + "strip-ansi": "^6.0.1", + "text-table": "^0.2.0" + }, + "bin": { + "eslint": "bin/eslint.js" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint-config-react-app": { + "version": "7.0.1", + "license": "MIT", + "dependencies": { + "@babel/core": "^7.16.0", + "@babel/eslint-parser": "^7.16.3", + "@rushstack/eslint-patch": "^1.1.0", + "@typescript-eslint/eslint-plugin": "^5.5.0", + "@typescript-eslint/parser": "^5.5.0", + "babel-preset-react-app": "^10.0.1", + "confusing-browser-globals": "^1.0.11", + "eslint-plugin-flowtype": "^8.0.3", + "eslint-plugin-import": "^2.25.3", + "eslint-plugin-jest": "^25.3.0", + "eslint-plugin-jsx-a11y": "^6.5.1", + "eslint-plugin-react": "^7.27.1", + "eslint-plugin-react-hooks": "^4.3.0", + "eslint-plugin-testing-library": "^5.0.1" + }, + "engines": { + "node": ">=14.0.0" + }, + "peerDependencies": { + "eslint": "^8.0.0" + } + }, + "node_modules/eslint-import-resolver-node": { + "version": "0.3.7", + "license": "MIT", + "dependencies": { + "debug": "^3.2.7", + "is-core-module": "^2.11.0", + "resolve": "^1.22.1" + } + }, + "node_modules/eslint-import-resolver-node/node_modules/debug": { + "version": "3.2.7", + "license": "MIT", + "dependencies": { + "ms": "^2.1.1" + } + }, + "node_modules/eslint-module-utils": { + "version": "2.8.0", + "license": "MIT", + "dependencies": { + "debug": "^3.2.7" + }, + "engines": { + "node": ">=4" + }, + "peerDependenciesMeta": { + "eslint": { + "optional": true + } + } + }, + "node_modules/eslint-module-utils/node_modules/debug": { + "version": "3.2.7", + "license": "MIT", + "dependencies": { + "ms": "^2.1.1" + } + }, + "node_modules/eslint-plugin-flowtype": { + "version": "8.0.3", + "license": "BSD-3-Clause", + "dependencies": { + "lodash": "^4.17.21", + "string-natural-compare": "^3.0.1" + }, + "engines": { + "node": ">=12.0.0" + }, + "peerDependencies": { + "@babel/plugin-syntax-flow": "^7.14.5", + "@babel/plugin-transform-react-jsx": "^7.14.9", + "eslint": "^8.1.0" + } + }, + "node_modules/eslint-plugin-import": { + "version": "2.27.5", + "license": "MIT", + "dependencies": { + "array-includes": "^3.1.6", + "array.prototype.flat": "^1.3.1", + "array.prototype.flatmap": "^1.3.1", + "debug": "^3.2.7", + "doctrine": "^2.1.0", + "eslint-import-resolver-node": "^0.3.7", + "eslint-module-utils": "^2.7.4", + "has": "^1.0.3", + "is-core-module": "^2.11.0", + "is-glob": "^4.0.3", + "minimatch": "^3.1.2", + "object.values": "^1.1.6", + "resolve": "^1.22.1", + "semver": "^6.3.0", + "tsconfig-paths": "^3.14.1" + }, + "engines": { + "node": ">=4" + }, + "peerDependencies": { + "eslint": "^2 || ^3 || ^4 || ^5 || ^6 || ^7.2.0 || ^8" + } + }, + "node_modules/eslint-plugin-import/node_modules/debug": { + "version": "3.2.7", + "license": "MIT", + "dependencies": { + "ms": "^2.1.1" + } + }, + "node_modules/eslint-plugin-import/node_modules/doctrine": { + "version": "2.1.0", + "license": "Apache-2.0", + "dependencies": { + "esutils": "^2.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/eslint-plugin-import/node_modules/semver": { + "version": "6.3.1", + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/eslint-plugin-jest": { + "version": "25.7.0", + "license": "MIT", + "dependencies": { + "@typescript-eslint/experimental-utils": "^5.0.0" + }, + "engines": { + "node": "^12.13.0 || ^14.15.0 || >=16.0.0" + }, + "peerDependencies": { + "@typescript-eslint/eslint-plugin": "^4.0.0 || ^5.0.0", + "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" + }, + "peerDependenciesMeta": { + "@typescript-eslint/eslint-plugin": { + "optional": true + }, + "jest": { + "optional": true + } + } + }, + "node_modules/eslint-plugin-jsx-a11y": { + "version": "6.7.1", + "license": "MIT", + "dependencies": { + "@babel/runtime": "^7.20.7", + "aria-query": "^5.1.3", + "array-includes": "^3.1.6", + "array.prototype.flatmap": "^1.3.1", + "ast-types-flow": "^0.0.7", + "axe-core": "^4.6.2", + "axobject-query": "^3.1.1", + "damerau-levenshtein": "^1.0.8", + "emoji-regex": "^9.2.2", + "has": "^1.0.3", + "jsx-ast-utils": "^3.3.3", + "language-tags": "=1.0.5", + "minimatch": "^3.1.2", + "object.entries": "^1.1.6", + "object.fromentries": "^2.0.6", + "semver": "^6.3.0" + }, + "engines": { + "node": ">=4.0" + }, + "peerDependencies": { + "eslint": "^3 || ^4 || ^5 || ^6 || ^7 || ^8" + } + }, + "node_modules/eslint-plugin-jsx-a11y/node_modules/semver": { + "version": "6.3.1", + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/eslint-plugin-react": { + "version": "7.33.0", + "license": "MIT", + "dependencies": { + "array-includes": "^3.1.6", + "array.prototype.flatmap": "^1.3.1", + "array.prototype.tosorted": "^1.1.1", + "doctrine": "^2.1.0", + "estraverse": "^5.3.0", + "jsx-ast-utils": "^2.4.1 || ^3.0.0", + "minimatch": "^3.1.2", + "object.entries": "^1.1.6", + "object.fromentries": "^2.0.6", + "object.hasown": "^1.1.2", + "object.values": "^1.1.6", + "prop-types": "^15.8.1", + "resolve": "^2.0.0-next.4", + "semver": "^6.3.1", + "string.prototype.matchall": "^4.0.8" + }, + "engines": { + "node": ">=4" + }, + "peerDependencies": { + "eslint": "^3 || ^4 || ^5 || ^6 || ^7 || ^8" + } + }, + "node_modules/eslint-plugin-react-hooks": { + "version": "4.6.0", + "license": "MIT", + "engines": { + "node": ">=10" + }, + "peerDependencies": { + "eslint": "^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0" + } + }, + "node_modules/eslint-plugin-react/node_modules/doctrine": { + "version": "2.1.0", + "license": "Apache-2.0", + "dependencies": { + "esutils": "^2.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/eslint-plugin-react/node_modules/resolve": { + "version": "2.0.0-next.4", + "license": "MIT", + "dependencies": { + "is-core-module": "^2.9.0", + "path-parse": "^1.0.7", + "supports-preserve-symlinks-flag": "^1.0.0" + }, + "bin": { + "resolve": "bin/resolve" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/eslint-plugin-react/node_modules/semver": { + "version": "6.3.1", + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/eslint-plugin-testing-library": { + "version": "5.11.0", + "license": "MIT", + "dependencies": { + "@typescript-eslint/utils": "^5.58.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0", + "npm": ">=6" + }, + "peerDependencies": { + "eslint": "^7.5.0 || ^8.0.0" + } + }, + "node_modules/eslint-scope": { + "version": "7.2.1", + "license": "BSD-2-Clause", + "dependencies": { + "esrecurse": "^4.3.0", + "estraverse": "^5.2.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint-visitor-keys": { + "version": "3.4.1", + "license": "Apache-2.0", + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint-webpack-plugin": { + "version": "3.2.0", + "license": "MIT", + "dependencies": { + "@types/eslint": "^7.29.0 || ^8.4.1", + "jest-worker": "^28.0.2", + "micromatch": "^4.0.5", + "normalize-path": "^3.0.0", + "schema-utils": "^4.0.0" + }, + "engines": { + "node": ">= 12.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "eslint": "^7.0.0 || ^8.0.0", + "webpack": "^5.0.0" + } + }, + "node_modules/eslint-webpack-plugin/node_modules/ajv": { + "version": "8.12.0", + "license": "MIT", + "dependencies": { + "fast-deep-equal": "^3.1.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/eslint-webpack-plugin/node_modules/ajv-keywords": { + "version": "5.1.0", + "license": "MIT", + "dependencies": { + "fast-deep-equal": "^3.1.3" + }, + "peerDependencies": { + "ajv": "^8.8.2" + } + }, + "node_modules/eslint-webpack-plugin/node_modules/jest-worker": { + "version": "28.1.3", + "license": "MIT", + "dependencies": { + "@types/node": "*", + "merge-stream": "^2.0.0", + "supports-color": "^8.0.0" + }, + "engines": { + "node": "^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0" + } + }, + "node_modules/eslint-webpack-plugin/node_modules/json-schema-traverse": { + "version": "1.0.0", + "license": "MIT" + }, + "node_modules/eslint-webpack-plugin/node_modules/schema-utils": { + "version": "4.2.0", + "license": "MIT", + "dependencies": { + "@types/json-schema": "^7.0.9", + "ajv": "^8.9.0", + "ajv-formats": "^2.1.1", + "ajv-keywords": "^5.1.0" + }, + "engines": { + "node": ">= 12.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + } + }, + "node_modules/eslint-webpack-plugin/node_modules/supports-color": { + "version": "8.1.1", + "license": "MIT", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/supports-color?sponsor=1" + } + }, + "node_modules/eslint/node_modules/argparse": { + "version": "2.0.1", + "license": "Python-2.0" + }, + "node_modules/eslint/node_modules/globals": { + "version": "13.20.0", + "license": "MIT", + "dependencies": { + "type-fest": "^0.20.2" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/eslint/node_modules/js-yaml": { + "version": "4.1.0", + "license": "MIT", + "dependencies": { + "argparse": "^2.0.1" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "node_modules/eslint/node_modules/type-fest": { + "version": "0.20.2", + "license": "(MIT OR CC0-1.0)", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/espree": { + "version": "9.6.1", + "license": "BSD-2-Clause", + "dependencies": { + "acorn": "^8.9.0", + "acorn-jsx": "^5.3.2", + "eslint-visitor-keys": "^3.4.1" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/esprima": { + "version": "4.0.1", + "license": "BSD-2-Clause", + "bin": { + "esparse": "bin/esparse.js", + "esvalidate": "bin/esvalidate.js" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/esquery": { + "version": "1.5.0", + "license": "BSD-3-Clause", + "dependencies": { + "estraverse": "^5.1.0" + }, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/esrecurse": { + "version": "4.3.0", + "license": "BSD-2-Clause", + "dependencies": { + "estraverse": "^5.2.0" + }, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/estraverse": { + "version": "5.3.0", + "license": "BSD-2-Clause", + "engines": { + "node": ">=4.0" + } + }, + "node_modules/estree-walker": { + "version": "1.0.1", + "license": "MIT" + }, + "node_modules/esutils": { + "version": "2.0.3", + "license": "BSD-2-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/etag": { + "version": "1.8.1", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/eventemitter3": { + "version": "4.0.7", + "license": "MIT" + }, + "node_modules/events": { + "version": "3.3.0", + "license": "MIT", + "engines": { + "node": ">=0.8.x" + } + }, + "node_modules/execa": { + "version": "5.1.1", + "license": "MIT", + "dependencies": { + "cross-spawn": "^7.0.3", + "get-stream": "^6.0.0", + "human-signals": "^2.1.0", + "is-stream": "^2.0.0", + "merge-stream": "^2.0.0", + "npm-run-path": "^4.0.1", + "onetime": "^5.1.2", + "signal-exit": "^3.0.3", + "strip-final-newline": "^2.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sindresorhus/execa?sponsor=1" + } + }, + "node_modules/exit": { + "version": "0.1.2", + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/expect": { + "version": "29.6.2", + "license": "MIT", + "dependencies": { + "@jest/expect-utils": "^29.6.2", + "@types/node": "*", + "jest-get-type": "^29.4.3", + "jest-matcher-utils": "^29.6.2", + "jest-message-util": "^29.6.2", + "jest-util": "^29.6.2" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/express": { + "version": "4.18.2", + "license": "MIT", + "dependencies": { + "accepts": "~1.3.8", + "array-flatten": "1.1.1", + "body-parser": "1.20.1", + "content-disposition": "0.5.4", + "content-type": "~1.0.4", + "cookie": "0.5.0", + "cookie-signature": "1.0.6", + "debug": "2.6.9", + "depd": "2.0.0", + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "etag": "~1.8.1", + "finalhandler": "1.2.0", + "fresh": "0.5.2", + "http-errors": "2.0.0", + "merge-descriptors": "1.0.1", + "methods": "~1.1.2", + "on-finished": "2.4.1", + "parseurl": "~1.3.3", + "path-to-regexp": "0.1.7", + "proxy-addr": "~2.0.7", + "qs": "6.11.0", + "range-parser": "~1.2.1", + "safe-buffer": "5.2.1", + "send": "0.18.0", + "serve-static": "1.15.0", + "setprototypeof": "1.2.0", + "statuses": "2.0.1", + "type-is": "~1.6.18", + "utils-merge": "1.0.1", + "vary": "~1.1.2" + }, + "engines": { + "node": ">= 0.10.0" + } + }, + "node_modules/express/node_modules/array-flatten": { + "version": "1.1.1", + "license": "MIT" + }, + "node_modules/express/node_modules/debug": { + "version": "2.6.9", + "license": "MIT", + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/express/node_modules/ms": { + "version": "2.0.0", + "license": "MIT" + }, + "node_modules/fast-deep-equal": { + "version": "3.1.3", + "license": "MIT" + }, + "node_modules/fast-glob": { + "version": "3.3.1", + "license": "MIT", + "dependencies": { + "@nodelib/fs.stat": "^2.0.2", + "@nodelib/fs.walk": "^1.2.3", + "glob-parent": "^5.1.2", + "merge2": "^1.3.0", + "micromatch": "^4.0.4" + }, + "engines": { + "node": ">=8.6.0" + } + }, + "node_modules/fast-glob/node_modules/glob-parent": { + "version": "5.1.2", + "license": "ISC", + "dependencies": { + "is-glob": "^4.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/fast-json-stable-stringify": { + "version": "2.1.0", + "license": "MIT" + }, + "node_modules/fast-levenshtein": { + "version": "2.0.6", + "license": "MIT" + }, + "node_modules/fastq": { + "version": "1.15.0", + "license": "ISC", + "dependencies": { + "reusify": "^1.0.4" + } + }, + "node_modules/faye-websocket": { + "version": "0.11.4", + "license": "Apache-2.0", + "dependencies": { + "websocket-driver": ">=0.5.1" + }, + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/fb-watchman": { + "version": "2.0.2", + "license": "Apache-2.0", + "dependencies": { + "bser": "2.1.1" + } + }, + "node_modules/file-entry-cache": { + "version": "6.0.1", + "license": "MIT", + "dependencies": { + "flat-cache": "^3.0.4" + }, + "engines": { + "node": "^10.12.0 || >=12.0.0" + } + }, + "node_modules/file-loader": { + "version": "6.2.0", + "license": "MIT", + "dependencies": { + "loader-utils": "^2.0.0", + "schema-utils": "^3.0.0" + }, + "engines": { + "node": ">= 10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "webpack": "^4.0.0 || ^5.0.0" + } + }, + "node_modules/filelist": { + "version": "1.0.4", + "license": "Apache-2.0", + "dependencies": { + "minimatch": "^5.0.1" + } + }, + "node_modules/filelist/node_modules/brace-expansion": { + "version": "2.0.1", + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/filelist/node_modules/minimatch": { + "version": "5.1.6", + "license": "ISC", + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/filesize": { + "version": "8.0.7", + "license": "BSD-3-Clause", + "engines": { + "node": ">= 0.4.0" + } + }, + "node_modules/fill-range": { + "version": "7.0.1", + "license": "MIT", + "dependencies": { + "to-regex-range": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/finalhandler": { + "version": "1.2.0", + "license": "MIT", + "dependencies": { + "debug": "2.6.9", + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "on-finished": "2.4.1", + "parseurl": "~1.3.3", + "statuses": "2.0.1", + "unpipe": "~1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/finalhandler/node_modules/debug": { + "version": "2.6.9", + "license": "MIT", + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/finalhandler/node_modules/ms": { + "version": "2.0.0", + "license": "MIT" + }, + "node_modules/find-cache-dir": { + "version": "3.3.2", + "license": "MIT", + "dependencies": { + "commondir": "^1.0.1", + "make-dir": "^3.0.2", + "pkg-dir": "^4.1.0" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/avajs/find-cache-dir?sponsor=1" + } + }, + "node_modules/find-up": { + "version": "5.0.0", + "license": "MIT", + "dependencies": { + "locate-path": "^6.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/flat-cache": { + "version": "3.0.4", + "license": "MIT", + "dependencies": { + "flatted": "^3.1.0", + "rimraf": "^3.0.2" + }, + "engines": { + "node": "^10.12.0 || >=12.0.0" + } + }, + "node_modules/flatted": { + "version": "3.2.7", + "license": "ISC" + }, + "node_modules/follow-redirects": { + "version": "1.15.2", + "funding": [ + { + "type": "individual", + "url": "https://github.com/sponsors/RubenVerborgh" + } + ], + "license": "MIT", + "engines": { + "node": ">=4.0" + }, + "peerDependenciesMeta": { + "debug": { + "optional": true + } + } + }, + "node_modules/for-each": { + "version": "0.3.3", + "license": "MIT", + "dependencies": { + "is-callable": "^1.1.3" + } + }, + "node_modules/fork-ts-checker-webpack-plugin": { + "version": "6.5.3", + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.8.3", + "@types/json-schema": "^7.0.5", + "chalk": "^4.1.0", + "chokidar": "^3.4.2", + "cosmiconfig": "^6.0.0", + "deepmerge": "^4.2.2", + "fs-extra": "^9.0.0", + "glob": "^7.1.6", + "memfs": "^3.1.2", + "minimatch": "^3.0.4", + "schema-utils": "2.7.0", + "semver": "^7.3.2", + "tapable": "^1.0.0" + }, + "engines": { + "node": ">=10", + "yarn": ">=1.0.0" + }, + "peerDependencies": { + "eslint": ">= 6", + "typescript": ">= 2.7", + "vue-template-compiler": "*", + "webpack": ">= 4" + }, + "peerDependenciesMeta": { + "eslint": { + "optional": true + }, + "vue-template-compiler": { + "optional": true + } + } + }, + "node_modules/fork-ts-checker-webpack-plugin/node_modules/cosmiconfig": { + "version": "6.0.0", + "license": "MIT", + "dependencies": { + "@types/parse-json": "^4.0.0", + "import-fresh": "^3.1.0", + "parse-json": "^5.0.0", + "path-type": "^4.0.0", + "yaml": "^1.7.2" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/fork-ts-checker-webpack-plugin/node_modules/fs-extra": { + "version": "9.1.0", + "license": "MIT", + "dependencies": { + "at-least-node": "^1.0.0", + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/fork-ts-checker-webpack-plugin/node_modules/schema-utils": { + "version": "2.7.0", + "license": "MIT", + "dependencies": { + "@types/json-schema": "^7.0.4", + "ajv": "^6.12.2", + "ajv-keywords": "^3.4.1" + }, + "engines": { + "node": ">= 8.9.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + } + }, + "node_modules/fork-ts-checker-webpack-plugin/node_modules/tapable": { + "version": "1.1.3", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/form-data": { + "version": "3.0.1", + "license": "MIT", + "dependencies": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.8", + "mime-types": "^2.1.12" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/forwarded": { + "version": "0.2.0", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/fraction.js": { + "version": "4.2.0", + "license": "MIT", + "engines": { + "node": "*" + }, + "funding": { + "type": "patreon", + "url": "https://www.patreon.com/infusion" + } + }, + "node_modules/fresh": { + "version": "0.5.2", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/fs-extra": { + "version": "10.1.0", + "license": "MIT", + "dependencies": { + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/fs-monkey": { + "version": "1.0.4", + "license": "Unlicense" + }, + "node_modules/fs.realpath": { + "version": "1.0.0", + "license": "ISC" + }, + "node_modules/function-bind": { + "version": "1.1.1", + "license": "MIT" + }, + "node_modules/function.prototype.name": { + "version": "1.1.5", + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.3", + "es-abstract": "^1.19.0", + "functions-have-names": "^1.2.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/functions-have-names": { + "version": "1.2.3", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/gensync": { + "version": "1.0.0-beta.2", + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/get-caller-file": { + "version": "2.0.5", + "license": "ISC", + "engines": { + "node": "6.* || 8.* || >= 10.*" + } + }, + "node_modules/get-intrinsic": { + "version": "1.2.1", + "license": "MIT", + "dependencies": { + "function-bind": "^1.1.1", + "has": "^1.0.3", + "has-proto": "^1.0.1", + "has-symbols": "^1.0.3" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/get-own-enumerable-property-symbols": { + "version": "3.0.2", + "license": "ISC" + }, + "node_modules/get-package-type": { + "version": "0.1.0", + "license": "MIT", + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/get-stream": { + "version": "6.0.1", + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/get-symbol-description": { + "version": "1.0.0", + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.2", + "get-intrinsic": "^1.1.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/glob": { + "version": "7.2.3", + "license": "ISC", + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/glob-parent": { + "version": "6.0.2", + "license": "ISC", + "dependencies": { + "is-glob": "^4.0.3" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/glob-to-regexp": { + "version": "0.4.1", + "license": "BSD-2-Clause" + }, + "node_modules/global-modules": { + "version": "2.0.0", + "license": "MIT", + "dependencies": { + "global-prefix": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/global-prefix": { + "version": "3.0.0", + "license": "MIT", + "dependencies": { + "ini": "^1.3.5", + "kind-of": "^6.0.2", + "which": "^1.3.1" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/global-prefix/node_modules/which": { + "version": "1.3.1", + "license": "ISC", + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "which": "bin/which" + } + }, + "node_modules/globals": { + "version": "11.12.0", + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/globalthis": { + "version": "1.0.3", + "license": "MIT", + "dependencies": { + "define-properties": "^1.1.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/globby": { + "version": "11.1.0", + "license": "MIT", + "dependencies": { + "array-union": "^2.1.0", + "dir-glob": "^3.0.1", + "fast-glob": "^3.2.9", + "ignore": "^5.2.0", + "merge2": "^1.4.1", + "slash": "^3.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/gopd": { + "version": "1.0.1", + "license": "MIT", + "dependencies": { + "get-intrinsic": "^1.1.3" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/graceful-fs": { + "version": "4.2.11", + "license": "ISC" + }, + "node_modules/graphemer": { + "version": "1.4.0", + "license": "MIT" + }, + "node_modules/gzip-size": { + "version": "6.0.0", + "license": "MIT", + "dependencies": { + "duplexer": "^0.1.2" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/handle-thing": { + "version": "2.0.1", + "license": "MIT" + }, + "node_modules/harmony-reflect": { + "version": "1.6.2", + "license": "(Apache-2.0 OR MPL-1.1)" + }, + "node_modules/has": { + "version": "1.0.3", + "license": "MIT", + "dependencies": { + "function-bind": "^1.1.1" + }, + "engines": { + "node": ">= 0.4.0" + } + }, + "node_modules/has-bigints": { + "version": "1.0.2", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-flag": { + "version": "4.0.0", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/has-property-descriptors": { + "version": "1.0.0", + "license": "MIT", + "dependencies": { + "get-intrinsic": "^1.1.1" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-proto": { + "version": "1.0.1", + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-symbols": { + "version": "1.0.3", + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-tostringtag": { + "version": "1.0.0", + "license": "MIT", + "dependencies": { + "has-symbols": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/he": { + "version": "1.2.0", + "license": "MIT", + "bin": { + "he": "bin/he" + } + }, + "node_modules/hoopy": { + "version": "0.1.4", + "license": "MIT", + "engines": { + "node": ">= 6.0.0" + } + }, + "node_modules/hpack.js": { + "version": "2.1.6", + "license": "MIT", + "dependencies": { + "inherits": "^2.0.1", + "obuf": "^1.0.0", + "readable-stream": "^2.0.1", + "wbuf": "^1.1.0" + } + }, + "node_modules/hpack.js/node_modules/isarray": { + "version": "1.0.0", + "license": "MIT" + }, + "node_modules/hpack.js/node_modules/readable-stream": { + "version": "2.3.8", + "license": "MIT", + "dependencies": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + }, + "node_modules/hpack.js/node_modules/safe-buffer": { + "version": "5.1.2", + "license": "MIT" + }, + "node_modules/hpack.js/node_modules/string_decoder": { + "version": "1.1.1", + "license": "MIT", + "dependencies": { + "safe-buffer": "~5.1.0" + } + }, + "node_modules/html-encoding-sniffer": { + "version": "2.0.1", + "license": "MIT", + "dependencies": { + "whatwg-encoding": "^1.0.5" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/html-entities": { + "version": "2.4.0", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/mdevils" + }, + { + "type": "patreon", + "url": "https://patreon.com/mdevils" + } + ], + "license": "MIT" + }, + "node_modules/html-escaper": { + "version": "2.0.2", + "license": "MIT" + }, + "node_modules/html-minifier-terser": { + "version": "6.1.0", + "license": "MIT", + "dependencies": { + "camel-case": "^4.1.2", + "clean-css": "^5.2.2", + "commander": "^8.3.0", + "he": "^1.2.0", + "param-case": "^3.0.4", + "relateurl": "^0.2.7", + "terser": "^5.10.0" + }, + "bin": { + "html-minifier-terser": "cli.js" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/html-webpack-plugin": { + "version": "5.5.3", + "license": "MIT", + "dependencies": { + "@types/html-minifier-terser": "^6.0.0", + "html-minifier-terser": "^6.0.2", + "lodash": "^4.17.21", + "pretty-error": "^4.0.0", + "tapable": "^2.0.0" + }, + "engines": { + "node": ">=10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/html-webpack-plugin" + }, + "peerDependencies": { + "webpack": "^5.20.0" + } + }, + "node_modules/htmlparser2": { + "version": "6.1.0", + "funding": [ + "https://github.com/fb55/htmlparser2?sponsor=1", + { + "type": "github", + "url": "https://github.com/sponsors/fb55" + } + ], + "license": "MIT", + "dependencies": { + "domelementtype": "^2.0.1", + "domhandler": "^4.0.0", + "domutils": "^2.5.2", + "entities": "^2.0.0" + } + }, + "node_modules/http-deceiver": { + "version": "1.2.7", + "license": "MIT" + }, + "node_modules/http-errors": { + "version": "2.0.0", + "license": "MIT", + "dependencies": { + "depd": "2.0.0", + "inherits": "2.0.4", + "setprototypeof": "1.2.0", + "statuses": "2.0.1", + "toidentifier": "1.0.1" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/http-parser-js": { + "version": "0.5.8", + "license": "MIT" + }, + "node_modules/http-proxy": { + "version": "1.18.1", + "license": "MIT", + "dependencies": { + "eventemitter3": "^4.0.0", + "follow-redirects": "^1.0.0", + "requires-port": "^1.0.0" + }, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/http-proxy-agent": { + "version": "4.0.1", + "license": "MIT", + "dependencies": { + "@tootallnate/once": "1", + "agent-base": "6", + "debug": "4" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/http-proxy-middleware": { + "version": "2.0.6", + "license": "MIT", + "dependencies": { + "@types/http-proxy": "^1.17.8", + "http-proxy": "^1.18.1", + "is-glob": "^4.0.1", + "is-plain-obj": "^3.0.0", + "micromatch": "^4.0.2" + }, + "engines": { + "node": ">=12.0.0" + }, + "peerDependencies": { + "@types/express": "^4.17.13" + }, + "peerDependenciesMeta": { + "@types/express": { + "optional": true + } + } + }, + "node_modules/https-proxy-agent": { + "version": "5.0.1", + "license": "MIT", + "dependencies": { + "agent-base": "6", + "debug": "4" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/human-signals": { + "version": "2.1.0", + "license": "Apache-2.0", + "engines": { + "node": ">=10.17.0" + } + }, + "node_modules/iconv-lite": { + "version": "0.6.3", + "license": "MIT", + "dependencies": { + "safer-buffer": ">= 2.1.2 < 3.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/icss-utils": { + "version": "5.1.0", + "license": "ISC", + "engines": { + "node": "^10 || ^12 || >= 14" + }, + "peerDependencies": { + "postcss": "^8.1.0" + } + }, + "node_modules/idb": { + "version": "7.1.1", + "license": "ISC" + }, + "node_modules/identity-obj-proxy": { + "version": "3.0.0", + "license": "MIT", + "dependencies": { + "harmony-reflect": "^1.4.6" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/ignore": { + "version": "5.2.4", + "license": "MIT", + "engines": { + "node": ">= 4" + } + }, + "node_modules/immer": { + "version": "9.0.21", + "license": "MIT", + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/immer" + } + }, + "node_modules/import-fresh": { + "version": "3.3.0", + "license": "MIT", + "dependencies": { + "parent-module": "^1.0.0", + "resolve-from": "^4.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/import-fresh/node_modules/resolve-from": { + "version": "4.0.0", + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/import-local": { + "version": "3.1.0", + "license": "MIT", + "dependencies": { + "pkg-dir": "^4.2.0", + "resolve-cwd": "^3.0.0" + }, + "bin": { + "import-local-fixture": "fixtures/cli.js" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/imurmurhash": { + "version": "0.1.4", + "license": "MIT", + "engines": { + "node": ">=0.8.19" + } + }, + "node_modules/indent-string": { + "version": "4.0.0", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/inflight": { + "version": "1.0.6", + "license": "ISC", + "dependencies": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "node_modules/inherits": { + "version": "2.0.4", + "license": "ISC" + }, + "node_modules/ini": { + "version": "1.3.8", + "license": "ISC" + }, + "node_modules/internal-slot": { + "version": "1.0.5", + "license": "MIT", + "dependencies": { + "get-intrinsic": "^1.2.0", + "has": "^1.0.3", + "side-channel": "^1.0.4" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/invariant": { + "version": "2.2.4", + "license": "MIT", + "dependencies": { + "loose-envify": "^1.0.0" + } + }, + "node_modules/ipaddr.js": { + "version": "2.1.0", + "license": "MIT", + "engines": { + "node": ">= 10" + } + }, + "node_modules/is-arguments": { + "version": "1.1.1", + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.2", + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-array-buffer": { + "version": "3.0.2", + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.2", + "get-intrinsic": "^1.2.0", + "is-typed-array": "^1.1.10" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-arrayish": { + "version": "0.2.1", + "license": "MIT" + }, + "node_modules/is-bigint": { + "version": "1.0.4", + "license": "MIT", + "dependencies": { + "has-bigints": "^1.0.1" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-binary-path": { + "version": "2.1.0", + "license": "MIT", + "dependencies": { + "binary-extensions": "^2.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/is-boolean-object": { + "version": "1.1.2", + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.2", + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-callable": { + "version": "1.2.7", + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-core-module": { + "version": "2.12.1", + "license": "MIT", + "dependencies": { + "has": "^1.0.3" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-date-object": { + "version": "1.0.5", + "license": "MIT", + "dependencies": { + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-docker": { + "version": "2.2.1", + "license": "MIT", + "bin": { + "is-docker": "cli.js" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/is-extglob": { + "version": "2.1.1", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/is-generator-fn": { + "version": "2.1.0", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/is-glob": { + "version": "4.0.3", + "license": "MIT", + "dependencies": { + "is-extglob": "^2.1.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-map": { + "version": "2.0.2", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-module": { + "version": "1.0.0", + "license": "MIT" + }, + "node_modules/is-negative-zero": { + "version": "2.0.2", + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-number": { + "version": "7.0.0", + "license": "MIT", + "engines": { + "node": ">=0.12.0" + } + }, + "node_modules/is-number-object": { + "version": "1.0.7", + "license": "MIT", + "dependencies": { + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-obj": { + "version": "1.0.1", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-path-inside": { + "version": "3.0.3", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/is-plain-obj": { + "version": "3.0.0", + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/is-potential-custom-element-name": { + "version": "1.0.1", + "license": "MIT" + }, + "node_modules/is-regex": { + "version": "1.1.4", + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.2", + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-regexp": { + "version": "1.0.0", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-root": { + "version": "2.1.0", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/is-set": { + "version": "2.0.2", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-shared-array-buffer": { + "version": "1.0.2", + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.2" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-stream": { + "version": "2.0.1", + "license": "MIT", + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/is-string": { + "version": "1.0.7", + "license": "MIT", + "dependencies": { + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-symbol": { + "version": "1.0.4", + "license": "MIT", + "dependencies": { + "has-symbols": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-typed-array": { + "version": "1.1.12", + "license": "MIT", + "dependencies": { + "which-typed-array": "^1.1.11" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-typedarray": { + "version": "1.0.0", + "license": "MIT" + }, + "node_modules/is-weakmap": { + "version": "2.0.1", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-weakref": { + "version": "1.0.2", + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.2" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-weakset": { + "version": "2.0.2", + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.2", + "get-intrinsic": "^1.1.1" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-wsl": { + "version": "2.2.0", + "license": "MIT", + "dependencies": { + "is-docker": "^2.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/isarray": { + "version": "2.0.5", + "license": "MIT" + }, + "node_modules/isexe": { + "version": "2.0.0", + "license": "ISC" + }, + "node_modules/istanbul-lib-coverage": { + "version": "3.2.0", + "license": "BSD-3-Clause", + "engines": { + "node": ">=8" + } + }, + "node_modules/istanbul-lib-instrument": { + "version": "5.2.1", + "license": "BSD-3-Clause", + "dependencies": { + "@babel/core": "^7.12.3", + "@babel/parser": "^7.14.7", + "@istanbuljs/schema": "^0.1.2", + "istanbul-lib-coverage": "^3.2.0", + "semver": "^6.3.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/istanbul-lib-instrument/node_modules/semver": { + "version": "6.3.1", + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/istanbul-lib-report": { + "version": "3.0.1", + "license": "BSD-3-Clause", + "dependencies": { + "istanbul-lib-coverage": "^3.0.0", + "make-dir": "^4.0.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/istanbul-lib-report/node_modules/make-dir": { + "version": "4.0.0", + "license": "MIT", + "dependencies": { + "semver": "^7.5.3" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/istanbul-lib-source-maps": { + "version": "4.0.1", + "license": "BSD-3-Clause", + "dependencies": { + "debug": "^4.1.1", + "istanbul-lib-coverage": "^3.0.0", + "source-map": "^0.6.1" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/istanbul-lib-source-maps/node_modules/source-map": { + "version": "0.6.1", + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/istanbul-reports": { + "version": "3.1.6", + "license": "BSD-3-Clause", + "dependencies": { + "html-escaper": "^2.0.0", + "istanbul-lib-report": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jake": { + "version": "10.8.7", + "license": "Apache-2.0", + "dependencies": { + "async": "^3.2.3", + "chalk": "^4.0.2", + "filelist": "^1.0.4", + "minimatch": "^3.1.2" + }, + "bin": { + "jake": "bin/cli.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/jest": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@jest/core": "^27.5.1", + "import-local": "^3.0.2", + "jest-cli": "^27.5.1" + }, + "bin": { + "jest": "bin/jest.js" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + }, + "peerDependencies": { + "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" + }, + "peerDependenciesMeta": { + "node-notifier": { + "optional": true + } + } + }, + "node_modules/jest-changed-files": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@jest/types": "^27.5.1", + "execa": "^5.0.0", + "throat": "^6.0.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-changed-files/node_modules/@jest/types": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^16.0.0", + "chalk": "^4.0.0" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-changed-files/node_modules/@types/yargs": { + "version": "16.0.5", + "license": "MIT", + "dependencies": { + "@types/yargs-parser": "*" + } + }, + "node_modules/jest-circus": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@jest/environment": "^27.5.1", + "@jest/test-result": "^27.5.1", + "@jest/types": "^27.5.1", + "@types/node": "*", + "chalk": "^4.0.0", + "co": "^4.6.0", + "dedent": "^0.7.0", + "expect": "^27.5.1", + "is-generator-fn": "^2.0.0", + "jest-each": "^27.5.1", + "jest-matcher-utils": "^27.5.1", + "jest-message-util": "^27.5.1", + "jest-runtime": "^27.5.1", + "jest-snapshot": "^27.5.1", + "jest-util": "^27.5.1", + "pretty-format": "^27.5.1", + "slash": "^3.0.0", + "stack-utils": "^2.0.3", + "throat": "^6.0.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-circus/node_modules/@jest/types": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^16.0.0", + "chalk": "^4.0.0" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-circus/node_modules/@types/yargs": { + "version": "16.0.5", + "license": "MIT", + "dependencies": { + "@types/yargs-parser": "*" + } + }, + "node_modules/jest-circus/node_modules/diff-sequences": { + "version": "27.5.1", + "license": "MIT", + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-circus/node_modules/expect": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@jest/types": "^27.5.1", + "jest-get-type": "^27.5.1", + "jest-matcher-utils": "^27.5.1", + "jest-message-util": "^27.5.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-circus/node_modules/jest-diff": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "chalk": "^4.0.0", + "diff-sequences": "^27.5.1", + "jest-get-type": "^27.5.1", + "pretty-format": "^27.5.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-circus/node_modules/jest-get-type": { + "version": "27.5.1", + "license": "MIT", + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-circus/node_modules/jest-matcher-utils": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "chalk": "^4.0.0", + "jest-diff": "^27.5.1", + "jest-get-type": "^27.5.1", + "pretty-format": "^27.5.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-circus/node_modules/jest-message-util": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.12.13", + "@jest/types": "^27.5.1", + "@types/stack-utils": "^2.0.0", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.9", + "micromatch": "^4.0.4", + "pretty-format": "^27.5.1", + "slash": "^3.0.0", + "stack-utils": "^2.0.3" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-circus/node_modules/jest-util": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@jest/types": "^27.5.1", + "@types/node": "*", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "graceful-fs": "^4.2.9", + "picomatch": "^2.2.3" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-cli": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@jest/core": "^27.5.1", + "@jest/test-result": "^27.5.1", + "@jest/types": "^27.5.1", + "chalk": "^4.0.0", + "exit": "^0.1.2", + "graceful-fs": "^4.2.9", + "import-local": "^3.0.2", + "jest-config": "^27.5.1", + "jest-util": "^27.5.1", + "jest-validate": "^27.5.1", + "prompts": "^2.0.1", + "yargs": "^16.2.0" + }, + "bin": { + "jest": "bin/jest.js" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + }, + "peerDependencies": { + "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" + }, + "peerDependenciesMeta": { + "node-notifier": { + "optional": true + } + } + }, + "node_modules/jest-cli/node_modules/@jest/types": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^16.0.0", + "chalk": "^4.0.0" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-cli/node_modules/@types/yargs": { + "version": "16.0.5", + "license": "MIT", + "dependencies": { + "@types/yargs-parser": "*" + } + }, + "node_modules/jest-cli/node_modules/jest-util": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@jest/types": "^27.5.1", + "@types/node": "*", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "graceful-fs": "^4.2.9", + "picomatch": "^2.2.3" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-config": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@babel/core": "^7.8.0", + "@jest/test-sequencer": "^27.5.1", + "@jest/types": "^27.5.1", + "babel-jest": "^27.5.1", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "deepmerge": "^4.2.2", + "glob": "^7.1.1", + "graceful-fs": "^4.2.9", + "jest-circus": "^27.5.1", + "jest-environment-jsdom": "^27.5.1", + "jest-environment-node": "^27.5.1", + "jest-get-type": "^27.5.1", + "jest-jasmine2": "^27.5.1", + "jest-regex-util": "^27.5.1", + "jest-resolve": "^27.5.1", + "jest-runner": "^27.5.1", + "jest-util": "^27.5.1", + "jest-validate": "^27.5.1", + "micromatch": "^4.0.4", + "parse-json": "^5.2.0", + "pretty-format": "^27.5.1", + "slash": "^3.0.0", + "strip-json-comments": "^3.1.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + }, + "peerDependencies": { + "ts-node": ">=9.0.0" + }, + "peerDependenciesMeta": { + "ts-node": { + "optional": true + } + } + }, + "node_modules/jest-config/node_modules/@jest/types": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^16.0.0", + "chalk": "^4.0.0" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-config/node_modules/@types/yargs": { + "version": "16.0.5", + "license": "MIT", + "dependencies": { + "@types/yargs-parser": "*" + } + }, + "node_modules/jest-config/node_modules/jest-get-type": { + "version": "27.5.1", + "license": "MIT", + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-config/node_modules/jest-util": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@jest/types": "^27.5.1", + "@types/node": "*", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "graceful-fs": "^4.2.9", + "picomatch": "^2.2.3" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-diff": { + "version": "29.6.2", + "license": "MIT", + "dependencies": { + "chalk": "^4.0.0", + "diff-sequences": "^29.4.3", + "jest-get-type": "^29.4.3", + "pretty-format": "^29.6.2" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-diff/node_modules/ansi-styles": { + "version": "5.2.0", + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-diff/node_modules/pretty-format": { + "version": "29.6.2", + "license": "MIT", + "dependencies": { + "@jest/schemas": "^29.6.0", + "ansi-styles": "^5.0.0", + "react-is": "^18.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-diff/node_modules/react-is": { + "version": "18.2.0", + "license": "MIT" + }, + "node_modules/jest-docblock": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "detect-newline": "^3.0.0" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-each": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@jest/types": "^27.5.1", + "chalk": "^4.0.0", + "jest-get-type": "^27.5.1", + "jest-util": "^27.5.1", + "pretty-format": "^27.5.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-each/node_modules/@jest/types": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^16.0.0", + "chalk": "^4.0.0" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-each/node_modules/@types/yargs": { + "version": "16.0.5", + "license": "MIT", + "dependencies": { + "@types/yargs-parser": "*" + } + }, + "node_modules/jest-each/node_modules/jest-get-type": { + "version": "27.5.1", + "license": "MIT", + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-each/node_modules/jest-util": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@jest/types": "^27.5.1", + "@types/node": "*", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "graceful-fs": "^4.2.9", + "picomatch": "^2.2.3" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-environment-jsdom": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@jest/environment": "^27.5.1", + "@jest/fake-timers": "^27.5.1", + "@jest/types": "^27.5.1", + "@types/node": "*", + "jest-mock": "^27.5.1", + "jest-util": "^27.5.1", + "jsdom": "^16.6.0" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-environment-jsdom/node_modules/@jest/types": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^16.0.0", + "chalk": "^4.0.0" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-environment-jsdom/node_modules/@types/yargs": { + "version": "16.0.5", + "license": "MIT", + "dependencies": { + "@types/yargs-parser": "*" + } + }, + "node_modules/jest-environment-jsdom/node_modules/jest-util": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@jest/types": "^27.5.1", + "@types/node": "*", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "graceful-fs": "^4.2.9", + "picomatch": "^2.2.3" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-environment-node": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@jest/environment": "^27.5.1", + "@jest/fake-timers": "^27.5.1", + "@jest/types": "^27.5.1", + "@types/node": "*", + "jest-mock": "^27.5.1", + "jest-util": "^27.5.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-environment-node/node_modules/@jest/types": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^16.0.0", + "chalk": "^4.0.0" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-environment-node/node_modules/@types/yargs": { + "version": "16.0.5", + "license": "MIT", + "dependencies": { + "@types/yargs-parser": "*" + } + }, + "node_modules/jest-environment-node/node_modules/jest-util": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@jest/types": "^27.5.1", + "@types/node": "*", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "graceful-fs": "^4.2.9", + "picomatch": "^2.2.3" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-get-type": { + "version": "29.4.3", + "license": "MIT", + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-haste-map": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@jest/types": "^27.5.1", + "@types/graceful-fs": "^4.1.2", + "@types/node": "*", + "anymatch": "^3.0.3", + "fb-watchman": "^2.0.0", + "graceful-fs": "^4.2.9", + "jest-regex-util": "^27.5.1", + "jest-serializer": "^27.5.1", + "jest-util": "^27.5.1", + "jest-worker": "^27.5.1", + "micromatch": "^4.0.4", + "walker": "^1.0.7" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + }, + "optionalDependencies": { + "fsevents": "^2.3.2" + } + }, + "node_modules/jest-haste-map/node_modules/@jest/types": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^16.0.0", + "chalk": "^4.0.0" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-haste-map/node_modules/@types/yargs": { + "version": "16.0.5", + "license": "MIT", + "dependencies": { + "@types/yargs-parser": "*" + } + }, + "node_modules/jest-haste-map/node_modules/jest-util": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@jest/types": "^27.5.1", + "@types/node": "*", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "graceful-fs": "^4.2.9", + "picomatch": "^2.2.3" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-jasmine2": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@jest/environment": "^27.5.1", + "@jest/source-map": "^27.5.1", + "@jest/test-result": "^27.5.1", + "@jest/types": "^27.5.1", + "@types/node": "*", + "chalk": "^4.0.0", + "co": "^4.6.0", + "expect": "^27.5.1", + "is-generator-fn": "^2.0.0", + "jest-each": "^27.5.1", + "jest-matcher-utils": "^27.5.1", + "jest-message-util": "^27.5.1", + "jest-runtime": "^27.5.1", + "jest-snapshot": "^27.5.1", + "jest-util": "^27.5.1", + "pretty-format": "^27.5.1", + "throat": "^6.0.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-jasmine2/node_modules/@jest/types": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^16.0.0", + "chalk": "^4.0.0" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-jasmine2/node_modules/@types/yargs": { + "version": "16.0.5", + "license": "MIT", + "dependencies": { + "@types/yargs-parser": "*" + } + }, + "node_modules/jest-jasmine2/node_modules/diff-sequences": { + "version": "27.5.1", + "license": "MIT", + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-jasmine2/node_modules/expect": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@jest/types": "^27.5.1", + "jest-get-type": "^27.5.1", + "jest-matcher-utils": "^27.5.1", + "jest-message-util": "^27.5.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-jasmine2/node_modules/jest-diff": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "chalk": "^4.0.0", + "diff-sequences": "^27.5.1", + "jest-get-type": "^27.5.1", + "pretty-format": "^27.5.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-jasmine2/node_modules/jest-get-type": { + "version": "27.5.1", + "license": "MIT", + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-jasmine2/node_modules/jest-matcher-utils": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "chalk": "^4.0.0", + "jest-diff": "^27.5.1", + "jest-get-type": "^27.5.1", + "pretty-format": "^27.5.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-jasmine2/node_modules/jest-message-util": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.12.13", + "@jest/types": "^27.5.1", + "@types/stack-utils": "^2.0.0", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.9", + "micromatch": "^4.0.4", + "pretty-format": "^27.5.1", + "slash": "^3.0.0", + "stack-utils": "^2.0.3" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-jasmine2/node_modules/jest-util": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@jest/types": "^27.5.1", + "@types/node": "*", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "graceful-fs": "^4.2.9", + "picomatch": "^2.2.3" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-leak-detector": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "jest-get-type": "^27.5.1", + "pretty-format": "^27.5.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-leak-detector/node_modules/jest-get-type": { + "version": "27.5.1", + "license": "MIT", + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-matcher-utils": { + "version": "29.6.2", + "license": "MIT", + "dependencies": { + "chalk": "^4.0.0", + "jest-diff": "^29.6.2", + "jest-get-type": "^29.4.3", + "pretty-format": "^29.6.2" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-matcher-utils/node_modules/ansi-styles": { + "version": "5.2.0", + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-matcher-utils/node_modules/pretty-format": { + "version": "29.6.2", + "license": "MIT", + "dependencies": { + "@jest/schemas": "^29.6.0", + "ansi-styles": "^5.0.0", + "react-is": "^18.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-matcher-utils/node_modules/react-is": { + "version": "18.2.0", + "license": "MIT" + }, + "node_modules/jest-message-util": { + "version": "29.6.2", + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.12.13", + "@jest/types": "^29.6.1", + "@types/stack-utils": "^2.0.0", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.9", + "micromatch": "^4.0.4", + "pretty-format": "^29.6.2", + "slash": "^3.0.0", + "stack-utils": "^2.0.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-message-util/node_modules/ansi-styles": { + "version": "5.2.0", + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-message-util/node_modules/pretty-format": { + "version": "29.6.2", + "license": "MIT", + "dependencies": { + "@jest/schemas": "^29.6.0", + "ansi-styles": "^5.0.0", + "react-is": "^18.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-message-util/node_modules/react-is": { + "version": "18.2.0", + "license": "MIT" + }, + "node_modules/jest-mock": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@jest/types": "^27.5.1", + "@types/node": "*" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-mock/node_modules/@jest/types": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^16.0.0", + "chalk": "^4.0.0" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-mock/node_modules/@types/yargs": { + "version": "16.0.5", + "license": "MIT", + "dependencies": { + "@types/yargs-parser": "*" + } + }, + "node_modules/jest-pnp-resolver": { + "version": "1.2.3", + "license": "MIT", + "engines": { + "node": ">=6" + }, + "peerDependencies": { + "jest-resolve": "*" + }, + "peerDependenciesMeta": { + "jest-resolve": { + "optional": true + } + } + }, + "node_modules/jest-regex-util": { + "version": "27.5.1", + "license": "MIT", + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-resolve": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@jest/types": "^27.5.1", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^27.5.1", + "jest-pnp-resolver": "^1.2.2", + "jest-util": "^27.5.1", + "jest-validate": "^27.5.1", + "resolve": "^1.20.0", + "resolve.exports": "^1.1.0", + "slash": "^3.0.0" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-resolve-dependencies": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@jest/types": "^27.5.1", + "jest-regex-util": "^27.5.1", + "jest-snapshot": "^27.5.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-resolve-dependencies/node_modules/@jest/types": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^16.0.0", + "chalk": "^4.0.0" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-resolve-dependencies/node_modules/@types/yargs": { + "version": "16.0.5", + "license": "MIT", + "dependencies": { + "@types/yargs-parser": "*" + } + }, + "node_modules/jest-resolve/node_modules/@jest/types": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^16.0.0", + "chalk": "^4.0.0" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-resolve/node_modules/@types/yargs": { + "version": "16.0.5", + "license": "MIT", + "dependencies": { + "@types/yargs-parser": "*" + } + }, + "node_modules/jest-resolve/node_modules/jest-util": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@jest/types": "^27.5.1", + "@types/node": "*", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "graceful-fs": "^4.2.9", + "picomatch": "^2.2.3" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-runner": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@jest/console": "^27.5.1", + "@jest/environment": "^27.5.1", + "@jest/test-result": "^27.5.1", + "@jest/transform": "^27.5.1", + "@jest/types": "^27.5.1", + "@types/node": "*", + "chalk": "^4.0.0", + "emittery": "^0.8.1", + "graceful-fs": "^4.2.9", + "jest-docblock": "^27.5.1", + "jest-environment-jsdom": "^27.5.1", + "jest-environment-node": "^27.5.1", + "jest-haste-map": "^27.5.1", + "jest-leak-detector": "^27.5.1", + "jest-message-util": "^27.5.1", + "jest-resolve": "^27.5.1", + "jest-runtime": "^27.5.1", + "jest-util": "^27.5.1", + "jest-worker": "^27.5.1", + "source-map-support": "^0.5.6", + "throat": "^6.0.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-runner/node_modules/@jest/types": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^16.0.0", + "chalk": "^4.0.0" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-runner/node_modules/@types/yargs": { + "version": "16.0.5", + "license": "MIT", + "dependencies": { + "@types/yargs-parser": "*" + } + }, + "node_modules/jest-runner/node_modules/jest-message-util": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.12.13", + "@jest/types": "^27.5.1", + "@types/stack-utils": "^2.0.0", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.9", + "micromatch": "^4.0.4", + "pretty-format": "^27.5.1", + "slash": "^3.0.0", + "stack-utils": "^2.0.3" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-runner/node_modules/jest-util": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@jest/types": "^27.5.1", + "@types/node": "*", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "graceful-fs": "^4.2.9", + "picomatch": "^2.2.3" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-runtime": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@jest/environment": "^27.5.1", + "@jest/fake-timers": "^27.5.1", + "@jest/globals": "^27.5.1", + "@jest/source-map": "^27.5.1", + "@jest/test-result": "^27.5.1", + "@jest/transform": "^27.5.1", + "@jest/types": "^27.5.1", + "chalk": "^4.0.0", + "cjs-module-lexer": "^1.0.0", + "collect-v8-coverage": "^1.0.0", + "execa": "^5.0.0", + "glob": "^7.1.3", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^27.5.1", + "jest-message-util": "^27.5.1", + "jest-mock": "^27.5.1", + "jest-regex-util": "^27.5.1", + "jest-resolve": "^27.5.1", + "jest-snapshot": "^27.5.1", + "jest-util": "^27.5.1", + "slash": "^3.0.0", + "strip-bom": "^4.0.0" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-runtime/node_modules/@jest/types": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^16.0.0", + "chalk": "^4.0.0" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-runtime/node_modules/@types/yargs": { + "version": "16.0.5", + "license": "MIT", + "dependencies": { + "@types/yargs-parser": "*" + } + }, + "node_modules/jest-runtime/node_modules/jest-message-util": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.12.13", + "@jest/types": "^27.5.1", + "@types/stack-utils": "^2.0.0", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.9", + "micromatch": "^4.0.4", + "pretty-format": "^27.5.1", + "slash": "^3.0.0", + "stack-utils": "^2.0.3" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-runtime/node_modules/jest-util": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@jest/types": "^27.5.1", + "@types/node": "*", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "graceful-fs": "^4.2.9", + "picomatch": "^2.2.3" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-serializer": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@types/node": "*", + "graceful-fs": "^4.2.9" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-snapshot": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@babel/core": "^7.7.2", + "@babel/generator": "^7.7.2", + "@babel/plugin-syntax-typescript": "^7.7.2", + "@babel/traverse": "^7.7.2", + "@babel/types": "^7.0.0", + "@jest/transform": "^27.5.1", + "@jest/types": "^27.5.1", + "@types/babel__traverse": "^7.0.4", + "@types/prettier": "^2.1.5", + "babel-preset-current-node-syntax": "^1.0.0", + "chalk": "^4.0.0", + "expect": "^27.5.1", + "graceful-fs": "^4.2.9", + "jest-diff": "^27.5.1", + "jest-get-type": "^27.5.1", + "jest-haste-map": "^27.5.1", + "jest-matcher-utils": "^27.5.1", + "jest-message-util": "^27.5.1", + "jest-util": "^27.5.1", + "natural-compare": "^1.4.0", + "pretty-format": "^27.5.1", + "semver": "^7.3.2" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-snapshot/node_modules/@jest/types": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^16.0.0", + "chalk": "^4.0.0" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-snapshot/node_modules/@types/yargs": { + "version": "16.0.5", + "license": "MIT", + "dependencies": { + "@types/yargs-parser": "*" + } + }, + "node_modules/jest-snapshot/node_modules/diff-sequences": { + "version": "27.5.1", + "license": "MIT", + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-snapshot/node_modules/expect": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@jest/types": "^27.5.1", + "jest-get-type": "^27.5.1", + "jest-matcher-utils": "^27.5.1", + "jest-message-util": "^27.5.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-snapshot/node_modules/jest-diff": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "chalk": "^4.0.0", + "diff-sequences": "^27.5.1", + "jest-get-type": "^27.5.1", + "pretty-format": "^27.5.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-snapshot/node_modules/jest-get-type": { + "version": "27.5.1", + "license": "MIT", + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-snapshot/node_modules/jest-matcher-utils": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "chalk": "^4.0.0", + "jest-diff": "^27.5.1", + "jest-get-type": "^27.5.1", + "pretty-format": "^27.5.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-snapshot/node_modules/jest-message-util": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.12.13", + "@jest/types": "^27.5.1", + "@types/stack-utils": "^2.0.0", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.9", + "micromatch": "^4.0.4", + "pretty-format": "^27.5.1", + "slash": "^3.0.0", + "stack-utils": "^2.0.3" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-snapshot/node_modules/jest-util": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@jest/types": "^27.5.1", + "@types/node": "*", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "graceful-fs": "^4.2.9", + "picomatch": "^2.2.3" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-util": { + "version": "29.6.2", + "license": "MIT", + "dependencies": { + "@jest/types": "^29.6.1", + "@types/node": "*", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "graceful-fs": "^4.2.9", + "picomatch": "^2.2.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-validate": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@jest/types": "^27.5.1", + "camelcase": "^6.2.0", + "chalk": "^4.0.0", + "jest-get-type": "^27.5.1", + "leven": "^3.1.0", + "pretty-format": "^27.5.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-validate/node_modules/@jest/types": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^16.0.0", + "chalk": "^4.0.0" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-validate/node_modules/@types/yargs": { + "version": "16.0.5", + "license": "MIT", + "dependencies": { + "@types/yargs-parser": "*" + } + }, + "node_modules/jest-validate/node_modules/jest-get-type": { + "version": "27.5.1", + "license": "MIT", + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-watch-typeahead": { + "version": "1.1.0", + "license": "MIT", + "dependencies": { + "ansi-escapes": "^4.3.1", + "chalk": "^4.0.0", + "jest-regex-util": "^28.0.0", + "jest-watcher": "^28.0.0", + "slash": "^4.0.0", + "string-length": "^5.0.1", + "strip-ansi": "^7.0.1" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "peerDependencies": { + "jest": "^27.0.0 || ^28.0.0" + } + }, + "node_modules/jest-watch-typeahead/node_modules/@jest/console": { + "version": "28.1.3", + "license": "MIT", + "dependencies": { + "@jest/types": "^28.1.3", + "@types/node": "*", + "chalk": "^4.0.0", + "jest-message-util": "^28.1.3", + "jest-util": "^28.1.3", + "slash": "^3.0.0" + }, + "engines": { + "node": "^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0" + } + }, + "node_modules/jest-watch-typeahead/node_modules/@jest/console/node_modules/slash": { + "version": "3.0.0", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-watch-typeahead/node_modules/@jest/schemas": { + "version": "28.1.3", + "license": "MIT", + "dependencies": { + "@sinclair/typebox": "^0.24.1" + }, + "engines": { + "node": "^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0" + } + }, + "node_modules/jest-watch-typeahead/node_modules/@jest/test-result": { + "version": "28.1.3", + "license": "MIT", + "dependencies": { + "@jest/console": "^28.1.3", + "@jest/types": "^28.1.3", + "@types/istanbul-lib-coverage": "^2.0.0", + "collect-v8-coverage": "^1.0.0" + }, + "engines": { + "node": "^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0" + } + }, + "node_modules/jest-watch-typeahead/node_modules/@jest/types": { + "version": "28.1.3", + "license": "MIT", + "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" + }, + "engines": { + "node": "^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0" + } + }, + "node_modules/jest-watch-typeahead/node_modules/@sinclair/typebox": { + "version": "0.24.51", + "license": "MIT" + }, + "node_modules/jest-watch-typeahead/node_modules/ansi-styles": { + "version": "5.2.0", + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-watch-typeahead/node_modules/emittery": { + "version": "0.10.2", + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sindresorhus/emittery?sponsor=1" + } + }, + "node_modules/jest-watch-typeahead/node_modules/jest-message-util": { + "version": "28.1.3", + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.12.13", + "@jest/types": "^28.1.3", + "@types/stack-utils": "^2.0.0", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.9", + "micromatch": "^4.0.4", + "pretty-format": "^28.1.3", + "slash": "^3.0.0", + "stack-utils": "^2.0.3" + }, + "engines": { + "node": "^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0" + } + }, + "node_modules/jest-watch-typeahead/node_modules/jest-message-util/node_modules/slash": { + "version": "3.0.0", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-watch-typeahead/node_modules/jest-regex-util": { + "version": "28.0.2", + "license": "MIT", + "engines": { + "node": "^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0" + } + }, + "node_modules/jest-watch-typeahead/node_modules/jest-util": { + "version": "28.1.3", + "license": "MIT", + "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" + }, + "engines": { + "node": "^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0" + } + }, + "node_modules/jest-watch-typeahead/node_modules/jest-watcher": { + "version": "28.1.3", + "license": "MIT", + "dependencies": { + "@jest/test-result": "^28.1.3", + "@jest/types": "^28.1.3", + "@types/node": "*", + "ansi-escapes": "^4.2.1", + "chalk": "^4.0.0", + "emittery": "^0.10.2", + "jest-util": "^28.1.3", + "string-length": "^4.0.1" + }, + "engines": { + "node": "^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0" + } + }, + "node_modules/jest-watch-typeahead/node_modules/jest-watcher/node_modules/string-length": { + "version": "4.0.2", + "license": "MIT", + "dependencies": { + "char-regex": "^1.0.2", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/jest-watch-typeahead/node_modules/jest-watcher/node_modules/strip-ansi": { + "version": "6.0.1", + "license": "MIT", + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-watch-typeahead/node_modules/pretty-format": { + "version": "28.1.3", + "license": "MIT", + "dependencies": { + "@jest/schemas": "^28.1.3", + "ansi-regex": "^5.0.1", + "ansi-styles": "^5.0.0", + "react-is": "^18.0.0" + }, + "engines": { + "node": "^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0" + } + }, + "node_modules/jest-watch-typeahead/node_modules/react-is": { + "version": "18.2.0", + "license": "MIT" + }, + "node_modules/jest-watch-typeahead/node_modules/slash": { + "version": "4.0.0", + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/jest-watch-typeahead/node_modules/string-length": { + "version": "5.0.1", + "license": "MIT", + "dependencies": { + "char-regex": "^2.0.0", + "strip-ansi": "^7.0.1" + }, + "engines": { + "node": ">=12.20" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/jest-watch-typeahead/node_modules/string-length/node_modules/char-regex": { + "version": "2.0.1", + "license": "MIT", + "engines": { + "node": ">=12.20" + } + }, + "node_modules/jest-watch-typeahead/node_modules/strip-ansi": { + "version": "7.1.0", + "license": "MIT", + "dependencies": { + "ansi-regex": "^6.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/strip-ansi?sponsor=1" + } + }, + "node_modules/jest-watch-typeahead/node_modules/strip-ansi/node_modules/ansi-regex": { + "version": "6.0.1", + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-regex?sponsor=1" + } + }, + "node_modules/jest-watcher": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@jest/test-result": "^27.5.1", + "@jest/types": "^27.5.1", + "@types/node": "*", + "ansi-escapes": "^4.2.1", + "chalk": "^4.0.0", + "jest-util": "^27.5.1", + "string-length": "^4.0.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-watcher/node_modules/@jest/types": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^16.0.0", + "chalk": "^4.0.0" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-watcher/node_modules/@types/yargs": { + "version": "16.0.5", + "license": "MIT", + "dependencies": { + "@types/yargs-parser": "*" + } + }, + "node_modules/jest-watcher/node_modules/jest-util": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@jest/types": "^27.5.1", + "@types/node": "*", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "graceful-fs": "^4.2.9", + "picomatch": "^2.2.3" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-worker": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@types/node": "*", + "merge-stream": "^2.0.0", + "supports-color": "^8.0.0" + }, + "engines": { + "node": ">= 10.13.0" + } + }, + "node_modules/jest-worker/node_modules/supports-color": { + "version": "8.1.1", + "license": "MIT", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/supports-color?sponsor=1" + } + }, + "node_modules/jiti": { + "version": "1.19.1", + "license": "MIT", + "bin": { + "jiti": "bin/jiti.js" + } + }, + "node_modules/js-tokens": { + "version": "4.0.0", + "license": "MIT" + }, + "node_modules/js-yaml": { + "version": "3.14.1", + "license": "MIT", + "dependencies": { + "argparse": "^1.0.7", + "esprima": "^4.0.0" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "node_modules/jsdom": { + "version": "16.7.0", + "license": "MIT", + "dependencies": { + "abab": "^2.0.5", + "acorn": "^8.2.4", + "acorn-globals": "^6.0.0", + "cssom": "^0.4.4", + "cssstyle": "^2.3.0", + "data-urls": "^2.0.0", + "decimal.js": "^10.2.1", + "domexception": "^2.0.1", + "escodegen": "^2.0.0", + "form-data": "^3.0.0", + "html-encoding-sniffer": "^2.0.1", + "http-proxy-agent": "^4.0.1", + "https-proxy-agent": "^5.0.0", + "is-potential-custom-element-name": "^1.0.1", + "nwsapi": "^2.2.0", + "parse5": "6.0.1", + "saxes": "^5.0.1", + "symbol-tree": "^3.2.4", + "tough-cookie": "^4.0.0", + "w3c-hr-time": "^1.0.2", + "w3c-xmlserializer": "^2.0.0", + "webidl-conversions": "^6.1.0", + "whatwg-encoding": "^1.0.5", + "whatwg-mimetype": "^2.3.0", + "whatwg-url": "^8.5.0", + "ws": "^7.4.6", + "xml-name-validator": "^3.0.0" + }, + "engines": { + "node": ">=10" + }, + "peerDependencies": { + "canvas": "^2.5.0" + }, + "peerDependenciesMeta": { + "canvas": { + "optional": true + } + } + }, + "node_modules/jsesc": { + "version": "2.5.2", + "license": "MIT", + "bin": { + "jsesc": "bin/jsesc" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/json-parse-even-better-errors": { + "version": "2.3.1", + "license": "MIT" + }, + "node_modules/json-schema": { + "version": "0.4.0", + "license": "(AFL-2.1 OR BSD-3-Clause)" + }, + "node_modules/json-schema-traverse": { + "version": "0.4.1", + "license": "MIT" + }, + "node_modules/json-stable-stringify-without-jsonify": { + "version": "1.0.1", + "license": "MIT" + }, + "node_modules/json5": { + "version": "2.2.3", + "license": "MIT", + "bin": { + "json5": "lib/cli.js" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/jsonfile": { + "version": "6.1.0", + "license": "MIT", + "dependencies": { + "universalify": "^2.0.0" + }, + "optionalDependencies": { + "graceful-fs": "^4.1.6" + } + }, + "node_modules/jsonpointer": { + "version": "5.0.1", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/jsx-ast-utils": { + "version": "3.3.4", + "license": "MIT", + "dependencies": { + "array-includes": "^3.1.6", + "array.prototype.flat": "^1.3.1", + "object.assign": "^4.1.4", + "object.values": "^1.1.6" + }, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/kind-of": { + "version": "6.0.3", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/kleur": { + "version": "3.0.3", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/klona": { + "version": "2.0.6", + "license": "MIT", + "engines": { + "node": ">= 8" + } + }, + "node_modules/language-subtag-registry": { + "version": "0.3.22", + "license": "CC0-1.0" + }, + "node_modules/language-tags": { + "version": "1.0.5", + "license": "MIT", + "dependencies": { + "language-subtag-registry": "~0.3.2" + } + }, + "node_modules/launch-editor": { + "version": "2.6.0", + "license": "MIT", + "dependencies": { + "picocolors": "^1.0.0", + "shell-quote": "^1.7.3" + } + }, + "node_modules/leven": { + "version": "3.1.0", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/levn": { + "version": "0.4.1", + "license": "MIT", + "dependencies": { + "prelude-ls": "^1.2.1", + "type-check": "~0.4.0" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/lilconfig": { + "version": "2.1.0", + "license": "MIT", + "engines": { + "node": ">=10" + } + }, + "node_modules/lines-and-columns": { + "version": "1.2.4", + "license": "MIT" + }, + "node_modules/loader-runner": { + "version": "4.3.0", + "license": "MIT", + "engines": { + "node": ">=6.11.5" + } + }, + "node_modules/loader-utils": { + "version": "2.0.4", + "license": "MIT", + "dependencies": { + "big.js": "^5.2.2", + "emojis-list": "^3.0.0", + "json5": "^2.1.2" + }, + "engines": { + "node": ">=8.9.0" + } + }, + "node_modules/locate-path": { + "version": "6.0.0", + "license": "MIT", + "dependencies": { + "p-locate": "^5.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/lodash": { + "version": "4.17.21", + "license": "MIT" + }, + "node_modules/lodash.debounce": { + "version": "4.0.8", + "license": "MIT" + }, + "node_modules/lodash.memoize": { + "version": "4.1.2", + "license": "MIT" + }, + "node_modules/lodash.merge": { + "version": "4.6.2", + "license": "MIT" + }, + "node_modules/lodash.sortby": { + "version": "4.7.0", + "license": "MIT" + }, + "node_modules/lodash.uniq": { + "version": "4.5.0", + "license": "MIT" + }, + "node_modules/loose-envify": { + "version": "1.4.0", + "license": "MIT", + "dependencies": { + "js-tokens": "^3.0.0 || ^4.0.0" + }, + "bin": { + "loose-envify": "cli.js" + } + }, + "node_modules/lower-case": { + "version": "2.0.2", + "license": "MIT", + "dependencies": { + "tslib": "^2.0.3" + } + }, + "node_modules/lru-cache": { + "version": "5.1.1", + "license": "ISC", + "dependencies": { + "yallist": "^3.0.2" + } + }, + "node_modules/lz-string": { + "version": "1.5.0", + "license": "MIT", + "bin": { + "lz-string": "bin/bin.js" + } + }, + "node_modules/magic-string": { + "version": "0.25.9", + "license": "MIT", + "dependencies": { + "sourcemap-codec": "^1.4.8" + } + }, + "node_modules/make-dir": { + "version": "3.1.0", + "license": "MIT", + "dependencies": { + "semver": "^6.0.0" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/make-dir/node_modules/semver": { + "version": "6.3.1", + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/makeerror": { + "version": "1.0.12", + "license": "BSD-3-Clause", + "dependencies": { + "tmpl": "1.0.5" + } + }, + "node_modules/mdn-data": { + "version": "2.0.4", + "license": "CC0-1.0" + }, + "node_modules/media-typer": { + "version": "0.3.0", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/memfs": { + "version": "3.5.3", + "license": "Unlicense", + "dependencies": { + "fs-monkey": "^1.0.4" + }, + "engines": { + "node": ">= 4.0.0" + } + }, + "node_modules/merge-descriptors": { + "version": "1.0.1", + "license": "MIT" + }, + "node_modules/merge-stream": { + "version": "2.0.0", + "license": "MIT" + }, + "node_modules/merge2": { + "version": "1.4.1", + "license": "MIT", + "engines": { + "node": ">= 8" + } + }, + "node_modules/methods": { + "version": "1.1.2", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/micromatch": { + "version": "4.0.5", + "license": "MIT", + "dependencies": { + "braces": "^3.0.2", + "picomatch": "^2.3.1" + }, + "engines": { + "node": ">=8.6" + } + }, + "node_modules/mime": { + "version": "1.6.0", + "license": "MIT", + "bin": { + "mime": "cli.js" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/mime-db": { + "version": "1.52.0", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mime-types": { + "version": "2.1.35", + "license": "MIT", + "dependencies": { + "mime-db": "1.52.0" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mimic-fn": { + "version": "2.1.0", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/min-indent": { + "version": "1.0.1", + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/mini-css-extract-plugin": { + "version": "2.7.6", + "license": "MIT", + "dependencies": { + "schema-utils": "^4.0.0" + }, + "engines": { + "node": ">= 12.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "webpack": "^5.0.0" + } + }, + "node_modules/mini-css-extract-plugin/node_modules/ajv": { + "version": "8.12.0", + "license": "MIT", + "dependencies": { + "fast-deep-equal": "^3.1.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/mini-css-extract-plugin/node_modules/ajv-keywords": { + "version": "5.1.0", + "license": "MIT", + "dependencies": { + "fast-deep-equal": "^3.1.3" + }, + "peerDependencies": { + "ajv": "^8.8.2" + } + }, + "node_modules/mini-css-extract-plugin/node_modules/json-schema-traverse": { + "version": "1.0.0", + "license": "MIT" + }, + "node_modules/mini-css-extract-plugin/node_modules/schema-utils": { + "version": "4.2.0", + "license": "MIT", + "dependencies": { + "@types/json-schema": "^7.0.9", + "ajv": "^8.9.0", + "ajv-formats": "^2.1.1", + "ajv-keywords": "^5.1.0" + }, + "engines": { + "node": ">= 12.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + } + }, + "node_modules/minimalistic-assert": { + "version": "1.0.1", + "license": "ISC" + }, + "node_modules/minimatch": { + "version": "3.1.2", + "license": "ISC", + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/minimist": { + "version": "1.2.8", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/mkdirp": { + "version": "0.5.6", + "license": "MIT", + "dependencies": { + "minimist": "^1.2.6" + }, + "bin": { + "mkdirp": "bin/cmd.js" + } + }, + "node_modules/ms": { + "version": "2.1.2", + "license": "MIT" + }, + "node_modules/multicast-dns": { + "version": "7.2.5", + "license": "MIT", + "dependencies": { + "dns-packet": "^5.2.2", + "thunky": "^1.0.2" + }, + "bin": { + "multicast-dns": "cli.js" + } + }, + "node_modules/mz": { + "version": "2.7.0", + "license": "MIT", + "dependencies": { + "any-promise": "^1.0.0", + "object-assign": "^4.0.1", + "thenify-all": "^1.0.0" + } + }, + "node_modules/nanoid": { + "version": "3.3.6", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "bin": { + "nanoid": "bin/nanoid.cjs" + }, + "engines": { + "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" + } + }, + "node_modules/natural-compare": { + "version": "1.4.0", + "license": "MIT" + }, + "node_modules/natural-compare-lite": { + "version": "1.4.0", + "license": "MIT" + }, + "node_modules/negotiator": { + "version": "0.6.3", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/neo-async": { + "version": "2.6.2", + "license": "MIT" + }, + "node_modules/no-case": { + "version": "3.0.4", + "license": "MIT", + "dependencies": { + "lower-case": "^2.0.2", + "tslib": "^2.0.3" + } + }, + "node_modules/node-forge": { + "version": "1.3.1", + "license": "(BSD-3-Clause OR GPL-2.0)", + "engines": { + "node": ">= 6.13.0" + } + }, + "node_modules/node-int64": { + "version": "0.4.0", + "license": "MIT" + }, + "node_modules/node-releases": { + "version": "2.0.13", + "license": "MIT" + }, + "node_modules/normalize-path": { + "version": "3.0.0", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/normalize-range": { + "version": "0.1.2", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/normalize-url": { + "version": "6.1.0", + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/npm-run-path": { + "version": "4.0.1", + "license": "MIT", + "dependencies": { + "path-key": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/nth-check": { + "version": "2.1.1", + "license": "BSD-2-Clause", + "dependencies": { + "boolbase": "^1.0.0" + }, + "funding": { + "url": "https://github.com/fb55/nth-check?sponsor=1" + } + }, + "node_modules/nwsapi": { + "version": "2.2.7", + "license": "MIT" + }, + "node_modules/object-assign": { + "version": "4.1.1", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/object-hash": { + "version": "3.0.0", + "license": "MIT", + "engines": { + "node": ">= 6" + } + }, + "node_modules/object-inspect": { + "version": "1.12.3", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/object-is": { + "version": "1.1.5", + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/object-keys": { + "version": "1.1.1", + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/object.assign": { + "version": "4.1.4", + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "has-symbols": "^1.0.3", + "object-keys": "^1.1.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/object.entries": { + "version": "1.1.6", + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/object.fromentries": { + "version": "2.0.6", + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/object.getownpropertydescriptors": { + "version": "2.1.6", + "license": "MIT", + "dependencies": { + "array.prototype.reduce": "^1.0.5", + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "es-abstract": "^1.21.2", + "safe-array-concat": "^1.0.0" + }, + "engines": { + "node": ">= 0.8" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/object.hasown": { + "version": "1.1.2", + "license": "MIT", + "dependencies": { + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/object.values": { + "version": "1.1.6", + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/obuf": { + "version": "1.1.2", + "license": "MIT" + }, + "node_modules/on-finished": { + "version": "2.4.1", + "license": "MIT", + "dependencies": { + "ee-first": "1.1.1" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/on-headers": { + "version": "1.0.2", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/once": { + "version": "1.4.0", + "license": "ISC", + "dependencies": { + "wrappy": "1" + } + }, + "node_modules/onetime": { + "version": "5.1.2", + "license": "MIT", + "dependencies": { + "mimic-fn": "^2.1.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/open": { + "version": "8.4.2", + "license": "MIT", + "dependencies": { + "define-lazy-prop": "^2.0.0", + "is-docker": "^2.1.1", + "is-wsl": "^2.2.0" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/optionator": { + "version": "0.9.3", + "license": "MIT", + "dependencies": { + "@aashutoshrathi/word-wrap": "^1.2.3", + "deep-is": "^0.1.3", + "fast-levenshtein": "^2.0.6", + "levn": "^0.4.1", + "prelude-ls": "^1.2.1", + "type-check": "^0.4.0" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/p-limit": { + "version": "3.1.0", + "license": "MIT", + "dependencies": { + "yocto-queue": "^0.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-locate": { + "version": "5.0.0", + "license": "MIT", + "dependencies": { + "p-limit": "^3.0.2" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-retry": { + "version": "4.6.2", + "license": "MIT", + "dependencies": { + "@types/retry": "0.12.0", + "retry": "^0.13.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/p-try": { + "version": "2.2.0", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/param-case": { + "version": "3.0.4", + "license": "MIT", + "dependencies": { + "dot-case": "^3.0.4", + "tslib": "^2.0.3" + } + }, + "node_modules/parent-module": { + "version": "1.0.1", + "license": "MIT", + "dependencies": { + "callsites": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/parse-json": { + "version": "5.2.0", + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.0.0", + "error-ex": "^1.3.1", + "json-parse-even-better-errors": "^2.3.0", + "lines-and-columns": "^1.1.6" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/parse5": { + "version": "6.0.1", + "license": "MIT" + }, + "node_modules/parseurl": { + "version": "1.3.3", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/pascal-case": { + "version": "3.1.2", + "license": "MIT", + "dependencies": { + "no-case": "^3.0.4", + "tslib": "^2.0.3" + } + }, + "node_modules/path-exists": { + "version": "4.0.0", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/path-is-absolute": { + "version": "1.0.1", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/path-key": { + "version": "3.1.1", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/path-parse": { + "version": "1.0.7", + "license": "MIT" + }, + "node_modules/path-to-regexp": { + "version": "0.1.7", + "license": "MIT" + }, + "node_modules/path-type": { + "version": "4.0.0", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/performance-now": { + "version": "2.1.0", + "license": "MIT" + }, + "node_modules/picocolors": { + "version": "1.0.0", + "license": "ISC" + }, + "node_modules/picomatch": { + "version": "2.3.1", + "license": "MIT", + "engines": { + "node": ">=8.6" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/pify": { + "version": "2.3.0", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/pirates": { + "version": "4.0.6", + "license": "MIT", + "engines": { + "node": ">= 6" + } + }, + "node_modules/pkg-dir": { + "version": "4.2.0", + "license": "MIT", + "dependencies": { + "find-up": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/pkg-dir/node_modules/find-up": { + "version": "4.1.0", + "license": "MIT", + "dependencies": { + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/pkg-dir/node_modules/locate-path": { + "version": "5.0.0", + "license": "MIT", + "dependencies": { + "p-locate": "^4.1.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/pkg-dir/node_modules/p-limit": { + "version": "2.3.0", + "license": "MIT", + "dependencies": { + "p-try": "^2.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/pkg-dir/node_modules/p-locate": { + "version": "4.1.0", + "license": "MIT", + "dependencies": { + "p-limit": "^2.2.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/pkg-up": { + "version": "3.1.0", + "license": "MIT", + "dependencies": { + "find-up": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/pkg-up/node_modules/find-up": { + "version": "3.0.0", + "license": "MIT", + "dependencies": { + "locate-path": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/pkg-up/node_modules/locate-path": { + "version": "3.0.0", + "license": "MIT", + "dependencies": { + "p-locate": "^3.0.0", + "path-exists": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/pkg-up/node_modules/p-limit": { + "version": "2.3.0", + "license": "MIT", + "dependencies": { + "p-try": "^2.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/pkg-up/node_modules/p-locate": { + "version": "3.0.0", + "license": "MIT", + "dependencies": { + "p-limit": "^2.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/pkg-up/node_modules/path-exists": { + "version": "3.0.0", + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/postcss": { + "version": "8.4.27", + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/postcss" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "nanoid": "^3.3.6", + "picocolors": "^1.0.0", + "source-map-js": "^1.0.2" + }, + "engines": { + "node": "^10 || ^12 || >=14" + } + }, + "node_modules/postcss-attribute-case-insensitive": { + "version": "5.0.2", + "license": "MIT", + "dependencies": { + "postcss-selector-parser": "^6.0.10" + }, + "engines": { + "node": "^12 || ^14 || >=16" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + }, + "peerDependencies": { + "postcss": "^8.2" + } + }, + "node_modules/postcss-browser-comments": { + "version": "4.0.0", + "license": "CC0-1.0", + "engines": { + "node": ">=8" + }, + "peerDependencies": { + "browserslist": ">=4", + "postcss": ">=8" + } + }, + "node_modules/postcss-calc": { + "version": "8.2.4", + "license": "MIT", + "dependencies": { + "postcss-selector-parser": "^6.0.9", + "postcss-value-parser": "^4.2.0" + }, + "peerDependencies": { + "postcss": "^8.2.2" + } + }, + "node_modules/postcss-clamp": { + "version": "4.1.0", + "license": "MIT", + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": ">=7.6.0" + }, + "peerDependencies": { + "postcss": "^8.4.6" + } + }, + "node_modules/postcss-color-functional-notation": { + "version": "4.2.4", + "license": "CC0-1.0", + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^12 || ^14 || >=16" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + }, + "peerDependencies": { + "postcss": "^8.2" + } + }, + "node_modules/postcss-color-hex-alpha": { + "version": "8.0.4", + "license": "MIT", + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^12 || ^14 || >=16" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + }, + "peerDependencies": { + "postcss": "^8.4" + } + }, + "node_modules/postcss-color-rebeccapurple": { + "version": "7.1.1", + "license": "CC0-1.0", + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^12 || ^14 || >=16" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + }, + "peerDependencies": { + "postcss": "^8.2" + } + }, + "node_modules/postcss-colormin": { + "version": "5.3.1", + "license": "MIT", + "dependencies": { + "browserslist": "^4.21.4", + "caniuse-api": "^3.0.0", + "colord": "^2.9.1", + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-convert-values": { + "version": "5.1.3", + "license": "MIT", + "dependencies": { + "browserslist": "^4.21.4", + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-custom-media": { + "version": "8.0.2", + "license": "MIT", + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^12 || ^14 || >=16" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + }, + "peerDependencies": { + "postcss": "^8.3" + } + }, + "node_modules/postcss-custom-properties": { + "version": "12.1.11", + "license": "MIT", + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^12 || ^14 || >=16" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + }, + "peerDependencies": { + "postcss": "^8.2" + } + }, + "node_modules/postcss-custom-selectors": { + "version": "6.0.3", + "license": "MIT", + "dependencies": { + "postcss-selector-parser": "^6.0.4" + }, + "engines": { + "node": "^12 || ^14 || >=16" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + }, + "peerDependencies": { + "postcss": "^8.3" + } + }, + "node_modules/postcss-dir-pseudo-class": { + "version": "6.0.5", + "license": "CC0-1.0", + "dependencies": { + "postcss-selector-parser": "^6.0.10" + }, + "engines": { + "node": "^12 || ^14 || >=16" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + }, + "peerDependencies": { + "postcss": "^8.2" + } + }, + "node_modules/postcss-discard-comments": { + "version": "5.1.2", + "license": "MIT", + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-discard-duplicates": { + "version": "5.1.0", + "license": "MIT", + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-discard-empty": { + "version": "5.1.1", + "license": "MIT", + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-discard-overridden": { + "version": "5.1.0", + "license": "MIT", + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-double-position-gradients": { + "version": "3.1.2", + "license": "CC0-1.0", + "dependencies": { + "@csstools/postcss-progressive-custom-properties": "^1.1.0", + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^12 || ^14 || >=16" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + }, + "peerDependencies": { + "postcss": "^8.2" + } + }, + "node_modules/postcss-env-function": { + "version": "4.0.6", + "license": "CC0-1.0", + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^12 || ^14 || >=16" + }, + "peerDependencies": { + "postcss": "^8.4" + } + }, + "node_modules/postcss-flexbugs-fixes": { + "version": "5.0.2", + "license": "MIT", + "peerDependencies": { + "postcss": "^8.1.4" + } + }, + "node_modules/postcss-focus-visible": { + "version": "6.0.4", + "license": "CC0-1.0", + "dependencies": { + "postcss-selector-parser": "^6.0.9" + }, + "engines": { + "node": "^12 || ^14 || >=16" + }, + "peerDependencies": { + "postcss": "^8.4" + } + }, + "node_modules/postcss-focus-within": { + "version": "5.0.4", + "license": "CC0-1.0", + "dependencies": { + "postcss-selector-parser": "^6.0.9" + }, + "engines": { + "node": "^12 || ^14 || >=16" + }, + "peerDependencies": { + "postcss": "^8.4" + } + }, + "node_modules/postcss-font-variant": { + "version": "5.0.0", + "license": "MIT", + "peerDependencies": { + "postcss": "^8.1.0" + } + }, + "node_modules/postcss-gap-properties": { + "version": "3.0.5", + "license": "CC0-1.0", + "engines": { + "node": "^12 || ^14 || >=16" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + }, + "peerDependencies": { + "postcss": "^8.2" + } + }, + "node_modules/postcss-image-set-function": { + "version": "4.0.7", + "license": "CC0-1.0", + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^12 || ^14 || >=16" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + }, + "peerDependencies": { + "postcss": "^8.2" + } + }, + "node_modules/postcss-import": { + "version": "15.1.0", + "license": "MIT", + "dependencies": { + "postcss-value-parser": "^4.0.0", + "read-cache": "^1.0.0", + "resolve": "^1.1.7" + }, + "engines": { + "node": ">=14.0.0" + }, + "peerDependencies": { + "postcss": "^8.0.0" + } + }, + "node_modules/postcss-initial": { + "version": "4.0.1", + "license": "MIT", + "peerDependencies": { + "postcss": "^8.0.0" + } + }, + "node_modules/postcss-js": { + "version": "4.0.1", + "license": "MIT", + "dependencies": { + "camelcase-css": "^2.0.1" + }, + "engines": { + "node": "^12 || ^14 || >= 16" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + "peerDependencies": { + "postcss": "^8.4.21" + } + }, + "node_modules/postcss-lab-function": { + "version": "4.2.1", + "license": "CC0-1.0", + "dependencies": { + "@csstools/postcss-progressive-custom-properties": "^1.1.0", + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^12 || ^14 || >=16" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + }, + "peerDependencies": { + "postcss": "^8.2" + } + }, + "node_modules/postcss-load-config": { + "version": "4.0.1", + "license": "MIT", + "dependencies": { + "lilconfig": "^2.0.5", + "yaml": "^2.1.1" + }, + "engines": { + "node": ">= 14" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + "peerDependencies": { + "postcss": ">=8.0.9", + "ts-node": ">=9.0.0" + }, + "peerDependenciesMeta": { + "postcss": { + "optional": true + }, + "ts-node": { + "optional": true + } + } + }, + "node_modules/postcss-load-config/node_modules/yaml": { + "version": "2.3.1", + "license": "ISC", + "engines": { + "node": ">= 14" + } + }, + "node_modules/postcss-loader": { + "version": "6.2.1", + "license": "MIT", + "dependencies": { + "cosmiconfig": "^7.0.0", + "klona": "^2.0.5", + "semver": "^7.3.5" + }, + "engines": { + "node": ">= 12.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "postcss": "^7.0.0 || ^8.0.1", + "webpack": "^5.0.0" + } + }, + "node_modules/postcss-logical": { + "version": "5.0.4", + "license": "CC0-1.0", + "engines": { + "node": "^12 || ^14 || >=16" + }, + "peerDependencies": { + "postcss": "^8.4" + } + }, + "node_modules/postcss-media-minmax": { + "version": "5.0.0", + "license": "MIT", + "engines": { + "node": ">=10.0.0" + }, + "peerDependencies": { + "postcss": "^8.1.0" + } + }, + "node_modules/postcss-merge-longhand": { + "version": "5.1.7", + "license": "MIT", + "dependencies": { + "postcss-value-parser": "^4.2.0", + "stylehacks": "^5.1.1" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-merge-rules": { + "version": "5.1.4", + "license": "MIT", + "dependencies": { + "browserslist": "^4.21.4", + "caniuse-api": "^3.0.0", + "cssnano-utils": "^3.1.0", + "postcss-selector-parser": "^6.0.5" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-minify-font-values": { + "version": "5.1.0", + "license": "MIT", + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-minify-gradients": { + "version": "5.1.1", + "license": "MIT", + "dependencies": { + "colord": "^2.9.1", + "cssnano-utils": "^3.1.0", + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-minify-params": { + "version": "5.1.4", + "license": "MIT", + "dependencies": { + "browserslist": "^4.21.4", + "cssnano-utils": "^3.1.0", + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-minify-selectors": { + "version": "5.2.1", + "license": "MIT", + "dependencies": { + "postcss-selector-parser": "^6.0.5" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-modules-extract-imports": { + "version": "3.0.0", + "license": "ISC", + "engines": { + "node": "^10 || ^12 || >= 14" + }, + "peerDependencies": { + "postcss": "^8.1.0" + } + }, + "node_modules/postcss-modules-local-by-default": { + "version": "4.0.3", + "license": "MIT", + "dependencies": { + "icss-utils": "^5.0.0", + "postcss-selector-parser": "^6.0.2", + "postcss-value-parser": "^4.1.0" + }, + "engines": { + "node": "^10 || ^12 || >= 14" + }, + "peerDependencies": { + "postcss": "^8.1.0" + } + }, + "node_modules/postcss-modules-scope": { + "version": "3.0.0", + "license": "ISC", + "dependencies": { + "postcss-selector-parser": "^6.0.4" + }, + "engines": { + "node": "^10 || ^12 || >= 14" + }, + "peerDependencies": { + "postcss": "^8.1.0" + } + }, + "node_modules/postcss-modules-values": { + "version": "4.0.0", + "license": "ISC", + "dependencies": { + "icss-utils": "^5.0.0" + }, + "engines": { + "node": "^10 || ^12 || >= 14" + }, + "peerDependencies": { + "postcss": "^8.1.0" + } + }, + "node_modules/postcss-nested": { + "version": "6.0.1", + "license": "MIT", + "dependencies": { + "postcss-selector-parser": "^6.0.11" + }, + "engines": { + "node": ">=12.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + "peerDependencies": { + "postcss": "^8.2.14" + } + }, + "node_modules/postcss-nesting": { + "version": "10.2.0", + "license": "CC0-1.0", + "dependencies": { + "@csstools/selector-specificity": "^2.0.0", + "postcss-selector-parser": "^6.0.10" + }, + "engines": { + "node": "^12 || ^14 || >=16" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + }, + "peerDependencies": { + "postcss": "^8.2" + } + }, + "node_modules/postcss-normalize": { + "version": "10.0.1", + "license": "CC0-1.0", + "dependencies": { + "@csstools/normalize.css": "*", + "postcss-browser-comments": "^4", + "sanitize.css": "*" + }, + "engines": { + "node": ">= 12" + }, + "peerDependencies": { + "browserslist": ">= 4", + "postcss": ">= 8" + } + }, + "node_modules/postcss-normalize-charset": { + "version": "5.1.0", + "license": "MIT", + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-normalize-display-values": { + "version": "5.1.0", + "license": "MIT", + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-normalize-positions": { + "version": "5.1.1", + "license": "MIT", + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-normalize-repeat-style": { + "version": "5.1.1", + "license": "MIT", + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-normalize-string": { + "version": "5.1.0", + "license": "MIT", + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-normalize-timing-functions": { + "version": "5.1.0", + "license": "MIT", + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-normalize-unicode": { + "version": "5.1.1", + "license": "MIT", + "dependencies": { + "browserslist": "^4.21.4", + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-normalize-url": { + "version": "5.1.0", + "license": "MIT", + "dependencies": { + "normalize-url": "^6.0.1", + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-normalize-whitespace": { + "version": "5.1.1", + "license": "MIT", + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-opacity-percentage": { + "version": "1.1.3", + "funding": [ + { + "type": "kofi", + "url": "https://ko-fi.com/mrcgrtz" + }, + { + "type": "liberapay", + "url": "https://liberapay.com/mrcgrtz" + } + ], + "license": "MIT", + "engines": { + "node": "^12 || ^14 || >=16" + }, + "peerDependencies": { + "postcss": "^8.2" + } + }, + "node_modules/postcss-ordered-values": { + "version": "5.1.3", + "license": "MIT", + "dependencies": { + "cssnano-utils": "^3.1.0", + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-overflow-shorthand": { + "version": "3.0.4", + "license": "CC0-1.0", + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^12 || ^14 || >=16" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + }, + "peerDependencies": { + "postcss": "^8.2" + } + }, + "node_modules/postcss-page-break": { + "version": "3.0.4", + "license": "MIT", + "peerDependencies": { + "postcss": "^8" + } + }, + "node_modules/postcss-place": { + "version": "7.0.5", + "license": "CC0-1.0", + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^12 || ^14 || >=16" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + }, + "peerDependencies": { + "postcss": "^8.2" + } + }, + "node_modules/postcss-preset-env": { + "version": "7.8.3", + "license": "CC0-1.0", + "dependencies": { + "@csstools/postcss-cascade-layers": "^1.1.1", + "@csstools/postcss-color-function": "^1.1.1", + "@csstools/postcss-font-format-keywords": "^1.0.1", + "@csstools/postcss-hwb-function": "^1.0.2", + "@csstools/postcss-ic-unit": "^1.0.1", + "@csstools/postcss-is-pseudo-class": "^2.0.7", + "@csstools/postcss-nested-calc": "^1.0.0", + "@csstools/postcss-normalize-display-values": "^1.0.1", + "@csstools/postcss-oklab-function": "^1.1.1", + "@csstools/postcss-progressive-custom-properties": "^1.3.0", + "@csstools/postcss-stepped-value-functions": "^1.0.1", + "@csstools/postcss-text-decoration-shorthand": "^1.0.0", + "@csstools/postcss-trigonometric-functions": "^1.0.2", + "@csstools/postcss-unset-value": "^1.0.2", + "autoprefixer": "^10.4.13", + "browserslist": "^4.21.4", + "css-blank-pseudo": "^3.0.3", + "css-has-pseudo": "^3.0.4", + "css-prefers-color-scheme": "^6.0.3", + "cssdb": "^7.1.0", + "postcss-attribute-case-insensitive": "^5.0.2", + "postcss-clamp": "^4.1.0", + "postcss-color-functional-notation": "^4.2.4", + "postcss-color-hex-alpha": "^8.0.4", + "postcss-color-rebeccapurple": "^7.1.1", + "postcss-custom-media": "^8.0.2", + "postcss-custom-properties": "^12.1.10", + "postcss-custom-selectors": "^6.0.3", + "postcss-dir-pseudo-class": "^6.0.5", + "postcss-double-position-gradients": "^3.1.2", + "postcss-env-function": "^4.0.6", + "postcss-focus-visible": "^6.0.4", + "postcss-focus-within": "^5.0.4", + "postcss-font-variant": "^5.0.0", + "postcss-gap-properties": "^3.0.5", + "postcss-image-set-function": "^4.0.7", + "postcss-initial": "^4.0.1", + "postcss-lab-function": "^4.2.1", + "postcss-logical": "^5.0.4", + "postcss-media-minmax": "^5.0.0", + "postcss-nesting": "^10.2.0", + "postcss-opacity-percentage": "^1.1.2", + "postcss-overflow-shorthand": "^3.0.4", + "postcss-page-break": "^3.0.4", + "postcss-place": "^7.0.5", + "postcss-pseudo-class-any-link": "^7.1.6", + "postcss-replace-overflow-wrap": "^4.0.0", + "postcss-selector-not": "^6.0.1", + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^12 || ^14 || >=16" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + }, + "peerDependencies": { + "postcss": "^8.2" + } + }, + "node_modules/postcss-pseudo-class-any-link": { + "version": "7.1.6", + "license": "CC0-1.0", + "dependencies": { + "postcss-selector-parser": "^6.0.10" + }, + "engines": { + "node": "^12 || ^14 || >=16" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + }, + "peerDependencies": { + "postcss": "^8.2" + } + }, + "node_modules/postcss-reduce-initial": { + "version": "5.1.2", + "license": "MIT", + "dependencies": { + "browserslist": "^4.21.4", + "caniuse-api": "^3.0.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-reduce-transforms": { + "version": "5.1.0", + "license": "MIT", + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-replace-overflow-wrap": { + "version": "4.0.0", + "license": "MIT", + "peerDependencies": { + "postcss": "^8.0.3" + } + }, + "node_modules/postcss-selector-not": { + "version": "6.0.1", + "license": "MIT", + "dependencies": { + "postcss-selector-parser": "^6.0.10" + }, + "engines": { + "node": "^12 || ^14 || >=16" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + }, + "peerDependencies": { + "postcss": "^8.2" + } + }, + "node_modules/postcss-selector-parser": { + "version": "6.0.13", + "license": "MIT", + "dependencies": { + "cssesc": "^3.0.0", + "util-deprecate": "^1.0.2" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/postcss-svgo": { + "version": "5.1.0", + "license": "MIT", + "dependencies": { + "postcss-value-parser": "^4.2.0", + "svgo": "^2.7.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-svgo/node_modules/commander": { + "version": "7.2.0", + "license": "MIT", + "engines": { + "node": ">= 10" + } + }, + "node_modules/postcss-svgo/node_modules/css-tree": { + "version": "1.1.3", + "license": "MIT", + "dependencies": { + "mdn-data": "2.0.14", + "source-map": "^0.6.1" + }, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/postcss-svgo/node_modules/mdn-data": { + "version": "2.0.14", + "license": "CC0-1.0" + }, + "node_modules/postcss-svgo/node_modules/source-map": { + "version": "0.6.1", + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/postcss-svgo/node_modules/svgo": { + "version": "2.8.0", + "license": "MIT", + "dependencies": { + "@trysound/sax": "0.2.0", + "commander": "^7.2.0", + "css-select": "^4.1.3", + "css-tree": "^1.1.3", + "csso": "^4.2.0", + "picocolors": "^1.0.0", + "stable": "^0.1.8" + }, + "bin": { + "svgo": "bin/svgo" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/postcss-unique-selectors": { + "version": "5.1.1", + "license": "MIT", + "dependencies": { + "postcss-selector-parser": "^6.0.5" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-value-parser": { + "version": "4.2.0", + "license": "MIT" + }, + "node_modules/prelude-ls": { + "version": "1.2.1", + "license": "MIT", + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/pretty-bytes": { + "version": "5.6.0", + "license": "MIT", + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/pretty-error": { + "version": "4.0.0", + "license": "MIT", + "dependencies": { + "lodash": "^4.17.20", + "renderkid": "^3.0.0" + } + }, + "node_modules/pretty-format": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "ansi-regex": "^5.0.1", + "ansi-styles": "^5.0.0", + "react-is": "^17.0.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/pretty-format/node_modules/ansi-styles": { + "version": "5.2.0", + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/process-nextick-args": { + "version": "2.0.1", + "license": "MIT" + }, + "node_modules/promise": { + "version": "8.3.0", + "license": "MIT", + "dependencies": { + "asap": "~2.0.6" + } + }, + "node_modules/prompts": { + "version": "2.4.2", + "license": "MIT", + "dependencies": { + "kleur": "^3.0.3", + "sisteransi": "^1.0.5" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/prop-types": { + "version": "15.8.1", + "license": "MIT", + "dependencies": { + "loose-envify": "^1.4.0", + "object-assign": "^4.1.1", + "react-is": "^16.13.1" + } + }, + "node_modules/prop-types-extra": { + "version": "1.1.1", + "license": "MIT", + "dependencies": { + "react-is": "^16.3.2", + "warning": "^4.0.0" + }, + "peerDependencies": { + "react": ">=0.14.0" + } + }, + "node_modules/prop-types-extra/node_modules/react-is": { + "version": "16.13.1", + "license": "MIT" + }, + "node_modules/prop-types/node_modules/react-is": { + "version": "16.13.1", + "license": "MIT" + }, + "node_modules/proxy-addr": { + "version": "2.0.7", + "license": "MIT", + "dependencies": { + "forwarded": "0.2.0", + "ipaddr.js": "1.9.1" + }, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/proxy-addr/node_modules/ipaddr.js": { + "version": "1.9.1", + "license": "MIT", + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/psl": { + "version": "1.9.0", + "license": "MIT" + }, + "node_modules/punycode": { + "version": "2.3.0", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/q": { + "version": "1.5.1", + "license": "MIT", + "engines": { + "node": ">=0.6.0", + "teleport": ">=0.2.0" + } + }, + "node_modules/qs": { + "version": "6.11.0", + "license": "BSD-3-Clause", + "dependencies": { + "side-channel": "^1.0.4" + }, + "engines": { + "node": ">=0.6" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/querystringify": { + "version": "2.2.0", + "license": "MIT" + }, + "node_modules/queue-microtask": { + "version": "1.2.3", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT" + }, + "node_modules/raf": { + "version": "3.4.1", + "license": "MIT", + "dependencies": { + "performance-now": "^2.1.0" + } + }, + "node_modules/randombytes": { + "version": "2.1.0", + "license": "MIT", + "dependencies": { + "safe-buffer": "^5.1.0" + } + }, + "node_modules/range-parser": { + "version": "1.2.1", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/raw-body": { + "version": "2.5.1", + "license": "MIT", + "dependencies": { + "bytes": "3.1.2", + "http-errors": "2.0.0", + "iconv-lite": "0.4.24", + "unpipe": "1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/raw-body/node_modules/bytes": { + "version": "3.1.2", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/raw-body/node_modules/iconv-lite": { + "version": "0.4.24", + "license": "MIT", + "dependencies": { + "safer-buffer": ">= 2.1.2 < 3" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/react": { + "version": "18.2.0", + "license": "MIT", + "dependencies": { + "loose-envify": "^1.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/react-app-polyfill": { + "version": "3.0.0", + "license": "MIT", + "dependencies": { + "core-js": "^3.19.2", + "object-assign": "^4.1.1", + "promise": "^8.1.0", + "raf": "^3.4.1", + "regenerator-runtime": "^0.13.9", + "whatwg-fetch": "^3.6.2" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/react-bootstrap": { + "version": "2.8.0", + "license": "MIT", + "dependencies": { + "@babel/runtime": "^7.21.0", + "@restart/hooks": "^0.4.9", + "@restart/ui": "^1.6.3", + "@types/react-transition-group": "^4.4.5", + "classnames": "^2.3.2", + "dom-helpers": "^5.2.1", + "invariant": "^2.2.4", + "prop-types": "^15.8.1", + "prop-types-extra": "^1.1.0", + "react-transition-group": "^4.4.5", + "uncontrollable": "^7.2.1", + "warning": "^4.0.3" + }, + "peerDependencies": { + "@types/react": ">=16.14.8", + "react": ">=16.14.0", + "react-dom": ">=16.14.0" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/react-dev-utils": { + "version": "12.0.1", + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.16.0", + "address": "^1.1.2", + "browserslist": "^4.18.1", + "chalk": "^4.1.2", + "cross-spawn": "^7.0.3", + "detect-port-alt": "^1.1.6", + "escape-string-regexp": "^4.0.0", + "filesize": "^8.0.6", + "find-up": "^5.0.0", + "fork-ts-checker-webpack-plugin": "^6.5.0", + "global-modules": "^2.0.0", + "globby": "^11.0.4", + "gzip-size": "^6.0.0", + "immer": "^9.0.7", + "is-root": "^2.1.0", + "loader-utils": "^3.2.0", + "open": "^8.4.0", + "pkg-up": "^3.1.0", + "prompts": "^2.4.2", + "react-error-overlay": "^6.0.11", + "recursive-readdir": "^2.2.2", + "shell-quote": "^1.7.3", + "strip-ansi": "^6.0.1", + "text-table": "^0.2.0" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/react-dev-utils/node_modules/loader-utils": { + "version": "3.2.1", + "license": "MIT", + "engines": { + "node": ">= 12.13.0" + } + }, + "node_modules/react-dom": { + "version": "18.2.0", + "license": "MIT", + "dependencies": { + "loose-envify": "^1.1.0", + "scheduler": "^0.23.0" + }, + "peerDependencies": { + "react": "^18.2.0" + } + }, + "node_modules/react-error-overlay": { + "version": "6.0.11", + "license": "MIT" + }, + "node_modules/react-is": { + "version": "17.0.2", + "license": "MIT" + }, + "node_modules/react-lifecycles-compat": { + "version": "3.0.4", + "license": "MIT" + }, + "node_modules/react-refresh": { + "version": "0.11.0", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/react-scripts": { + "version": "5.0.1", + "license": "MIT", + "dependencies": { + "@babel/core": "^7.16.0", + "@pmmmwh/react-refresh-webpack-plugin": "^0.5.3", + "@svgr/webpack": "^5.5.0", + "babel-jest": "^27.4.2", + "babel-loader": "^8.2.3", + "babel-plugin-named-asset-import": "^0.3.8", + "babel-preset-react-app": "^10.0.1", + "bfj": "^7.0.2", + "browserslist": "^4.18.1", + "camelcase": "^6.2.1", + "case-sensitive-paths-webpack-plugin": "^2.4.0", + "css-loader": "^6.5.1", + "css-minimizer-webpack-plugin": "^3.2.0", + "dotenv": "^10.0.0", + "dotenv-expand": "^5.1.0", + "eslint": "^8.3.0", + "eslint-config-react-app": "^7.0.1", + "eslint-webpack-plugin": "^3.1.1", + "file-loader": "^6.2.0", + "fs-extra": "^10.0.0", + "html-webpack-plugin": "^5.5.0", + "identity-obj-proxy": "^3.0.0", + "jest": "^27.4.3", + "jest-resolve": "^27.4.2", + "jest-watch-typeahead": "^1.0.0", + "mini-css-extract-plugin": "^2.4.5", + "postcss": "^8.4.4", + "postcss-flexbugs-fixes": "^5.0.2", + "postcss-loader": "^6.2.1", + "postcss-normalize": "^10.0.1", + "postcss-preset-env": "^7.0.1", + "prompts": "^2.4.2", + "react-app-polyfill": "^3.0.0", + "react-dev-utils": "^12.0.1", + "react-refresh": "^0.11.0", + "resolve": "^1.20.0", + "resolve-url-loader": "^4.0.0", + "sass-loader": "^12.3.0", + "semver": "^7.3.5", + "source-map-loader": "^3.0.0", + "style-loader": "^3.3.1", + "tailwindcss": "^3.0.2", + "terser-webpack-plugin": "^5.2.5", + "webpack": "^5.64.4", + "webpack-dev-server": "^4.6.0", + "webpack-manifest-plugin": "^4.0.2", + "workbox-webpack-plugin": "^6.4.1" + }, + "bin": { + "react-scripts": "bin/react-scripts.js" + }, + "engines": { + "node": ">=14.0.0" + }, + "optionalDependencies": { + "fsevents": "^2.3.2" + }, + "peerDependencies": { + "react": ">= 16", + "typescript": "^3.2.1 || ^4" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/react-transition-group": { + "version": "4.4.5", + "license": "BSD-3-Clause", + "dependencies": { + "@babel/runtime": "^7.5.5", + "dom-helpers": "^5.0.1", + "loose-envify": "^1.4.0", + "prop-types": "^15.6.2" + }, + "peerDependencies": { + "react": ">=16.6.0", + "react-dom": ">=16.6.0" + } + }, + "node_modules/read-cache": { + "version": "1.0.0", + "license": "MIT", + "dependencies": { + "pify": "^2.3.0" + } + }, + "node_modules/readable-stream": { + "version": "3.6.2", + "license": "MIT", + "dependencies": { + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/readdirp": { + "version": "3.6.0", + "license": "MIT", + "dependencies": { + "picomatch": "^2.2.1" + }, + "engines": { + "node": ">=8.10.0" + } + }, + "node_modules/recursive-readdir": { + "version": "2.2.3", + "license": "MIT", + "dependencies": { + "minimatch": "^3.0.5" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/redent": { + "version": "3.0.0", + "license": "MIT", + "dependencies": { + "indent-string": "^4.0.0", + "strip-indent": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/regenerate": { + "version": "1.4.2", + "license": "MIT" + }, + "node_modules/regenerate-unicode-properties": { + "version": "10.1.0", + "license": "MIT", + "dependencies": { + "regenerate": "^1.4.2" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/regenerator-runtime": { + "version": "0.13.11", + "license": "MIT" + }, + "node_modules/regenerator-transform": { + "version": "0.15.1", + "license": "MIT", + "dependencies": { + "@babel/runtime": "^7.8.4" + } + }, + "node_modules/regex-parser": { + "version": "2.2.11", + "license": "MIT" + }, + "node_modules/regexp.prototype.flags": { + "version": "1.5.0", + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "functions-have-names": "^1.2.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/regexpu-core": { + "version": "5.3.2", + "license": "MIT", + "dependencies": { + "@babel/regjsgen": "^0.8.0", + "regenerate": "^1.4.2", + "regenerate-unicode-properties": "^10.1.0", + "regjsparser": "^0.9.1", + "unicode-match-property-ecmascript": "^2.0.0", + "unicode-match-property-value-ecmascript": "^2.1.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/regjsparser": { + "version": "0.9.1", + "license": "BSD-2-Clause", + "dependencies": { + "jsesc": "~0.5.0" + }, + "bin": { + "regjsparser": "bin/parser" + } + }, + "node_modules/regjsparser/node_modules/jsesc": { + "version": "0.5.0", + "bin": { + "jsesc": "bin/jsesc" + } + }, + "node_modules/relateurl": { + "version": "0.2.7", + "license": "MIT", + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/renderkid": { + "version": "3.0.0", + "license": "MIT", + "dependencies": { + "css-select": "^4.1.3", + "dom-converter": "^0.2.0", + "htmlparser2": "^6.1.0", + "lodash": "^4.17.21", + "strip-ansi": "^6.0.1" + } + }, + "node_modules/require-directory": { + "version": "2.1.1", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/require-from-string": { + "version": "2.0.2", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/requires-port": { + "version": "1.0.0", + "license": "MIT" + }, + "node_modules/resolve": { + "version": "1.22.2", + "license": "MIT", + "dependencies": { + "is-core-module": "^2.11.0", + "path-parse": "^1.0.7", + "supports-preserve-symlinks-flag": "^1.0.0" + }, + "bin": { + "resolve": "bin/resolve" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/resolve-cwd": { + "version": "3.0.0", + "license": "MIT", + "dependencies": { + "resolve-from": "^5.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/resolve-from": { + "version": "5.0.0", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/resolve-url-loader": { + "version": "4.0.0", + "license": "MIT", + "dependencies": { + "adjust-sourcemap-loader": "^4.0.0", + "convert-source-map": "^1.7.0", + "loader-utils": "^2.0.0", + "postcss": "^7.0.35", + "source-map": "0.6.1" + }, + "engines": { + "node": ">=8.9" + }, + "peerDependencies": { + "rework": "1.0.1", + "rework-visit": "1.0.0" + }, + "peerDependenciesMeta": { + "rework": { + "optional": true + }, + "rework-visit": { + "optional": true + } + } + }, + "node_modules/resolve-url-loader/node_modules/picocolors": { + "version": "0.2.1", + "license": "ISC" + }, + "node_modules/resolve-url-loader/node_modules/postcss": { + "version": "7.0.39", + "license": "MIT", + "dependencies": { + "picocolors": "^0.2.1", + "source-map": "^0.6.1" + }, + "engines": { + "node": ">=6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + } + }, + "node_modules/resolve-url-loader/node_modules/source-map": { + "version": "0.6.1", + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/resolve.exports": { + "version": "1.1.1", + "license": "MIT", + "engines": { + "node": ">=10" + } + }, + "node_modules/retry": { + "version": "0.13.1", + "license": "MIT", + "engines": { + "node": ">= 4" + } + }, + "node_modules/reusify": { + "version": "1.0.4", + "license": "MIT", + "engines": { + "iojs": ">=1.0.0", + "node": ">=0.10.0" + } + }, + "node_modules/rimraf": { + "version": "3.0.2", + "license": "ISC", + "dependencies": { + "glob": "^7.1.3" + }, + "bin": { + "rimraf": "bin.js" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/rollup": { + "version": "2.79.1", + "license": "MIT", + "bin": { + "rollup": "dist/bin/rollup" + }, + "engines": { + "node": ">=10.0.0" + }, + "optionalDependencies": { + "fsevents": "~2.3.2" + } + }, + "node_modules/rollup-plugin-terser": { + "version": "7.0.2", + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.10.4", + "jest-worker": "^26.2.1", + "serialize-javascript": "^4.0.0", + "terser": "^5.0.0" + }, + "peerDependencies": { + "rollup": "^2.0.0" + } + }, + "node_modules/rollup-plugin-terser/node_modules/jest-worker": { + "version": "26.6.2", + "license": "MIT", + "dependencies": { + "@types/node": "*", + "merge-stream": "^2.0.0", + "supports-color": "^7.0.0" + }, + "engines": { + "node": ">= 10.13.0" + } + }, + "node_modules/rollup-plugin-terser/node_modules/serialize-javascript": { + "version": "4.0.0", + "license": "BSD-3-Clause", + "dependencies": { + "randombytes": "^2.1.0" + } + }, + "node_modules/run-parallel": { + "version": "1.2.0", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT", + "dependencies": { + "queue-microtask": "^1.2.2" + } + }, + "node_modules/safe-array-concat": { + "version": "1.0.0", + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.2", + "get-intrinsic": "^1.2.0", + "has-symbols": "^1.0.3", + "isarray": "^2.0.5" + }, + "engines": { + "node": ">=0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/safe-buffer": { + "version": "5.2.1", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT" + }, + "node_modules/safe-regex-test": { + "version": "1.0.0", + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.2", + "get-intrinsic": "^1.1.3", + "is-regex": "^1.1.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/safer-buffer": { + "version": "2.1.2", + "license": "MIT" + }, + "node_modules/sanitize.css": { + "version": "13.0.0", + "license": "CC0-1.0" + }, + "node_modules/sass-loader": { + "version": "12.6.0", + "license": "MIT", + "dependencies": { + "klona": "^2.0.4", + "neo-async": "^2.6.2" + }, + "engines": { + "node": ">= 12.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "fibers": ">= 3.1.0", + "node-sass": "^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0", + "sass": "^1.3.0", + "sass-embedded": "*", + "webpack": "^5.0.0" + }, + "peerDependenciesMeta": { + "fibers": { + "optional": true + }, + "node-sass": { + "optional": true + }, + "sass": { + "optional": true + }, + "sass-embedded": { + "optional": true + } + } + }, + "node_modules/sax": { + "version": "1.2.4", + "license": "ISC" + }, + "node_modules/saxes": { + "version": "5.0.1", + "license": "ISC", + "dependencies": { + "xmlchars": "^2.2.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/scheduler": { + "version": "0.23.0", + "license": "MIT", + "dependencies": { + "loose-envify": "^1.1.0" + } + }, + "node_modules/schema-utils": { + "version": "3.3.0", + "license": "MIT", + "dependencies": { + "@types/json-schema": "^7.0.8", + "ajv": "^6.12.5", + "ajv-keywords": "^3.5.2" + }, + "engines": { + "node": ">= 10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + } + }, + "node_modules/select-hose": { + "version": "2.0.0", + "license": "MIT" + }, + "node_modules/selfsigned": { + "version": "2.1.1", + "license": "MIT", + "dependencies": { + "node-forge": "^1" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/semver": { + "version": "7.5.4", + "license": "ISC", + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/semver/node_modules/lru-cache": { + "version": "6.0.0", + "license": "ISC", + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/semver/node_modules/yallist": { + "version": "4.0.0", + "license": "ISC" + }, + "node_modules/send": { + "version": "0.18.0", + "license": "MIT", + "dependencies": { + "debug": "2.6.9", + "depd": "2.0.0", + "destroy": "1.2.0", + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "etag": "~1.8.1", + "fresh": "0.5.2", + "http-errors": "2.0.0", + "mime": "1.6.0", + "ms": "2.1.3", + "on-finished": "2.4.1", + "range-parser": "~1.2.1", + "statuses": "2.0.1" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/send/node_modules/debug": { + "version": "2.6.9", + "license": "MIT", + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/send/node_modules/debug/node_modules/ms": { + "version": "2.0.0", + "license": "MIT" + }, + "node_modules/send/node_modules/ms": { + "version": "2.1.3", + "license": "MIT" + }, + "node_modules/serialize-javascript": { + "version": "6.0.1", + "license": "BSD-3-Clause", + "dependencies": { + "randombytes": "^2.1.0" + } + }, + "node_modules/serve-index": { + "version": "1.9.1", + "license": "MIT", + "dependencies": { + "accepts": "~1.3.4", + "batch": "0.6.1", + "debug": "2.6.9", + "escape-html": "~1.0.3", + "http-errors": "~1.6.2", + "mime-types": "~2.1.17", + "parseurl": "~1.3.2" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/serve-index/node_modules/debug": { + "version": "2.6.9", + "license": "MIT", + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/serve-index/node_modules/depd": { + "version": "1.1.2", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/serve-index/node_modules/http-errors": { + "version": "1.6.3", + "license": "MIT", + "dependencies": { + "depd": "~1.1.2", + "inherits": "2.0.3", + "setprototypeof": "1.1.0", + "statuses": ">= 1.4.0 < 2" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/serve-index/node_modules/inherits": { + "version": "2.0.3", + "license": "ISC" + }, + "node_modules/serve-index/node_modules/ms": { + "version": "2.0.0", + "license": "MIT" + }, + "node_modules/serve-index/node_modules/setprototypeof": { + "version": "1.1.0", + "license": "ISC" + }, + "node_modules/serve-index/node_modules/statuses": { + "version": "1.5.0", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/serve-static": { + "version": "1.15.0", + "license": "MIT", + "dependencies": { + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "parseurl": "~1.3.3", + "send": "0.18.0" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/setprototypeof": { + "version": "1.2.0", + "license": "ISC" + }, + "node_modules/shebang-command": { + "version": "2.0.0", + "license": "MIT", + "dependencies": { + "shebang-regex": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/shebang-regex": { + "version": "3.0.0", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/shell-quote": { + "version": "1.8.1", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/side-channel": { + "version": "1.0.4", + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.0", + "get-intrinsic": "^1.0.2", + "object-inspect": "^1.9.0" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/signal-exit": { + "version": "3.0.7", + "license": "ISC" + }, + "node_modules/sisteransi": { + "version": "1.0.5", + "license": "MIT" + }, + "node_modules/slash": { + "version": "3.0.0", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/sockjs": { + "version": "0.3.24", + "license": "MIT", + "dependencies": { + "faye-websocket": "^0.11.3", + "uuid": "^8.3.2", + "websocket-driver": "^0.7.4" + } + }, + "node_modules/source-list-map": { + "version": "2.0.1", + "license": "MIT" + }, + "node_modules/source-map": { + "version": "0.7.4", + "license": "BSD-3-Clause", + "engines": { + "node": ">= 8" + } + }, + "node_modules/source-map-js": { + "version": "1.0.2", + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/source-map-loader": { + "version": "3.0.2", + "license": "MIT", + "dependencies": { + "abab": "^2.0.5", + "iconv-lite": "^0.6.3", + "source-map-js": "^1.0.1" + }, + "engines": { + "node": ">= 12.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "webpack": "^5.0.0" + } + }, + "node_modules/source-map-support": { + "version": "0.5.21", + "license": "MIT", + "dependencies": { + "buffer-from": "^1.0.0", + "source-map": "^0.6.0" + } + }, + "node_modules/source-map-support/node_modules/source-map": { + "version": "0.6.1", + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/sourcemap-codec": { + "version": "1.4.8", + "license": "MIT" + }, + "node_modules/spdy": { + "version": "4.0.2", + "license": "MIT", + "dependencies": { + "debug": "^4.1.0", + "handle-thing": "^2.0.0", + "http-deceiver": "^1.2.7", + "select-hose": "^2.0.0", + "spdy-transport": "^3.0.0" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/spdy-transport": { + "version": "3.0.0", + "license": "MIT", + "dependencies": { + "debug": "^4.1.0", + "detect-node": "^2.0.4", + "hpack.js": "^2.1.6", + "obuf": "^1.1.2", + "readable-stream": "^3.0.6", + "wbuf": "^1.7.3" + } + }, + "node_modules/sprintf-js": { + "version": "1.0.3", + "license": "BSD-3-Clause" + }, + "node_modules/stable": { + "version": "0.1.8", + "license": "MIT" + }, + "node_modules/stack-utils": { + "version": "2.0.6", + "license": "MIT", + "dependencies": { + "escape-string-regexp": "^2.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/stack-utils/node_modules/escape-string-regexp": { + "version": "2.0.0", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/stackframe": { + "version": "1.3.4", + "license": "MIT" + }, + "node_modules/statuses": { + "version": "2.0.1", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/stop-iteration-iterator": { + "version": "1.0.0", + "license": "MIT", + "dependencies": { + "internal-slot": "^1.0.4" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/string_decoder": { + "version": "1.3.0", + "license": "MIT", + "dependencies": { + "safe-buffer": "~5.2.0" + } + }, + "node_modules/string-length": { + "version": "4.0.2", + "license": "MIT", + "dependencies": { + "char-regex": "^1.0.2", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/string-natural-compare": { + "version": "3.0.1", + "license": "MIT" + }, + "node_modules/string-width": { + "version": "4.2.3", + "license": "MIT", + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/string-width/node_modules/emoji-regex": { + "version": "8.0.0", + "license": "MIT" + }, + "node_modules/string.prototype.matchall": { + "version": "4.0.8", + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4", + "get-intrinsic": "^1.1.3", + "has-symbols": "^1.0.3", + "internal-slot": "^1.0.3", + "regexp.prototype.flags": "^1.4.3", + "side-channel": "^1.0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/string.prototype.trim": { + "version": "1.2.7", + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/string.prototype.trimend": { + "version": "1.0.6", + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/string.prototype.trimstart": { + "version": "1.0.6", + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/stringify-object": { + "version": "3.3.0", + "license": "BSD-2-Clause", + "dependencies": { + "get-own-enumerable-property-symbols": "^3.0.0", + "is-obj": "^1.0.1", + "is-regexp": "^1.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/strip-ansi": { + "version": "6.0.1", + "license": "MIT", + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-bom": { + "version": "4.0.0", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-comments": { + "version": "2.0.1", + "license": "MIT", + "engines": { + "node": ">=10" + } + }, + "node_modules/strip-final-newline": { + "version": "2.0.0", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/strip-indent": { + "version": "3.0.0", + "license": "MIT", + "dependencies": { + "min-indent": "^1.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-json-comments": { + "version": "3.1.1", + "license": "MIT", + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/style-loader": { + "version": "3.3.3", + "license": "MIT", + "engines": { + "node": ">= 12.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "webpack": "^5.0.0" + } + }, + "node_modules/stylehacks": { + "version": "5.1.1", + "license": "MIT", + "dependencies": { + "browserslist": "^4.21.4", + "postcss-selector-parser": "^6.0.4" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/sucrase": { + "version": "3.34.0", + "license": "MIT", + "dependencies": { + "@jridgewell/gen-mapping": "^0.3.2", + "commander": "^4.0.0", + "glob": "7.1.6", + "lines-and-columns": "^1.1.6", + "mz": "^2.7.0", + "pirates": "^4.0.1", + "ts-interface-checker": "^0.1.9" + }, + "bin": { + "sucrase": "bin/sucrase", + "sucrase-node": "bin/sucrase-node" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/sucrase/node_modules/commander": { + "version": "4.1.1", + "license": "MIT", + "engines": { + "node": ">= 6" + } + }, + "node_modules/sucrase/node_modules/glob": { + "version": "7.1.6", + "license": "ISC", + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.0.4", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/supports-color": { + "version": "7.2.0", + "license": "MIT", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/supports-hyperlinks": { + "version": "2.3.0", + "license": "MIT", + "dependencies": { + "has-flag": "^4.0.0", + "supports-color": "^7.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/supports-preserve-symlinks-flag": { + "version": "1.0.0", + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/svg-parser": { + "version": "2.0.4", + "license": "MIT" + }, + "node_modules/svgo": { + "version": "1.3.2", + "license": "MIT", + "dependencies": { + "chalk": "^2.4.1", + "coa": "^2.0.2", + "css-select": "^2.0.0", + "css-select-base-adapter": "^0.1.1", + "css-tree": "1.0.0-alpha.37", + "csso": "^4.0.2", + "js-yaml": "^3.13.1", + "mkdirp": "~0.5.1", + "object.values": "^1.1.0", + "sax": "~1.2.4", + "stable": "^0.1.8", + "unquote": "~1.1.1", + "util.promisify": "~1.0.0" + }, + "bin": { + "svgo": "bin/svgo" + }, + "engines": { + "node": ">=4.0.0" + } + }, + "node_modules/svgo/node_modules/ansi-styles": { + "version": "3.2.1", + "license": "MIT", + "dependencies": { + "color-convert": "^1.9.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/svgo/node_modules/chalk": { + "version": "2.4.2", + "license": "MIT", + "dependencies": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/svgo/node_modules/color-convert": { + "version": "1.9.3", + "license": "MIT", + "dependencies": { + "color-name": "1.1.3" + } + }, + "node_modules/svgo/node_modules/color-name": { + "version": "1.1.3", + "license": "MIT" + }, + "node_modules/svgo/node_modules/css-select": { + "version": "2.1.0", + "license": "BSD-2-Clause", + "dependencies": { + "boolbase": "^1.0.0", + "css-what": "^3.2.1", + "domutils": "^1.7.0", + "nth-check": "^1.0.2" + } + }, + "node_modules/svgo/node_modules/css-what": { + "version": "3.4.2", + "license": "BSD-2-Clause", + "engines": { + "node": ">= 6" + }, + "funding": { + "url": "https://github.com/sponsors/fb55" + } + }, + "node_modules/svgo/node_modules/dom-serializer": { + "version": "0.2.2", + "license": "MIT", + "dependencies": { + "domelementtype": "^2.0.1", + "entities": "^2.0.0" + } + }, + "node_modules/svgo/node_modules/domutils": { + "version": "1.7.0", + "license": "BSD-2-Clause", + "dependencies": { + "dom-serializer": "0", + "domelementtype": "1" + } + }, + "node_modules/svgo/node_modules/domutils/node_modules/domelementtype": { + "version": "1.3.1", + "license": "BSD-2-Clause" + }, + "node_modules/svgo/node_modules/escape-string-regexp": { + "version": "1.0.5", + "license": "MIT", + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/svgo/node_modules/has-flag": { + "version": "3.0.0", + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/svgo/node_modules/nth-check": { + "version": "1.0.2", + "license": "BSD-2-Clause", + "dependencies": { + "boolbase": "~1.0.0" + } + }, + "node_modules/svgo/node_modules/supports-color": { + "version": "5.5.0", + "license": "MIT", + "dependencies": { + "has-flag": "^3.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/symbol-tree": { + "version": "3.2.4", + "license": "MIT" + }, + "node_modules/tailwindcss": { + "version": "3.3.3", + "license": "MIT", + "dependencies": { + "@alloc/quick-lru": "^5.2.0", + "arg": "^5.0.2", + "chokidar": "^3.5.3", + "didyoumean": "^1.2.2", + "dlv": "^1.1.3", + "fast-glob": "^3.2.12", + "glob-parent": "^6.0.2", + "is-glob": "^4.0.3", + "jiti": "^1.18.2", + "lilconfig": "^2.1.0", + "micromatch": "^4.0.5", + "normalize-path": "^3.0.0", + "object-hash": "^3.0.0", + "picocolors": "^1.0.0", + "postcss": "^8.4.23", + "postcss-import": "^15.1.0", + "postcss-js": "^4.0.1", + "postcss-load-config": "^4.0.1", + "postcss-nested": "^6.0.1", + "postcss-selector-parser": "^6.0.11", + "resolve": "^1.22.2", + "sucrase": "^3.32.0" + }, + "bin": { + "tailwind": "lib/cli.js", + "tailwindcss": "lib/cli.js" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/tapable": { + "version": "2.2.1", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/temp-dir": { + "version": "2.0.0", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/tempy": { + "version": "0.6.0", + "license": "MIT", + "dependencies": { + "is-stream": "^2.0.0", + "temp-dir": "^2.0.0", + "type-fest": "^0.16.0", + "unique-string": "^2.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/tempy/node_modules/type-fest": { + "version": "0.16.0", + "license": "(MIT OR CC0-1.0)", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/terminal-link": { + "version": "2.1.1", + "license": "MIT", + "dependencies": { + "ansi-escapes": "^4.2.1", + "supports-hyperlinks": "^2.0.0" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/terser": { + "version": "5.19.2", + "license": "BSD-2-Clause", + "dependencies": { + "@jridgewell/source-map": "^0.3.3", + "acorn": "^8.8.2", + "commander": "^2.20.0", + "source-map-support": "~0.5.20" + }, + "bin": { + "terser": "bin/terser" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/terser-webpack-plugin": { + "version": "5.3.9", + "license": "MIT", + "dependencies": { + "@jridgewell/trace-mapping": "^0.3.17", + "jest-worker": "^27.4.5", + "schema-utils": "^3.1.1", + "serialize-javascript": "^6.0.1", + "terser": "^5.16.8" + }, + "engines": { + "node": ">= 10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "webpack": "^5.1.0" + }, + "peerDependenciesMeta": { + "@swc/core": { + "optional": true + }, + "esbuild": { + "optional": true + }, + "uglify-js": { + "optional": true + } + } + }, + "node_modules/terser/node_modules/commander": { + "version": "2.20.3", + "license": "MIT" + }, + "node_modules/test-exclude": { + "version": "6.0.0", + "license": "ISC", + "dependencies": { + "@istanbuljs/schema": "^0.1.2", + "glob": "^7.1.4", + "minimatch": "^3.0.4" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/text-table": { + "version": "0.2.0", + "license": "MIT" + }, + "node_modules/thenify": { + "version": "3.3.1", + "license": "MIT", + "dependencies": { + "any-promise": "^1.0.0" + } + }, + "node_modules/thenify-all": { + "version": "1.6.0", + "license": "MIT", + "dependencies": { + "thenify": ">= 3.1.0 < 4" + }, + "engines": { + "node": ">=0.8" + } + }, + "node_modules/throat": { + "version": "6.0.2", + "license": "MIT" + }, + "node_modules/thunky": { + "version": "1.1.0", + "license": "MIT" + }, + "node_modules/tmpl": { + "version": "1.0.5", + "license": "BSD-3-Clause" + }, + "node_modules/to-fast-properties": { + "version": "2.0.0", + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/to-regex-range": { + "version": "5.0.1", + "license": "MIT", + "dependencies": { + "is-number": "^7.0.0" + }, + "engines": { + "node": ">=8.0" + } + }, + "node_modules/toidentifier": { + "version": "1.0.1", + "license": "MIT", + "engines": { + "node": ">=0.6" + } + }, + "node_modules/tough-cookie": { + "version": "4.1.3", + "license": "BSD-3-Clause", + "dependencies": { + "psl": "^1.1.33", + "punycode": "^2.1.1", + "universalify": "^0.2.0", + "url-parse": "^1.5.3" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/tough-cookie/node_modules/universalify": { + "version": "0.2.0", + "license": "MIT", + "engines": { + "node": ">= 4.0.0" + } + }, + "node_modules/tr46": { + "version": "2.1.0", + "license": "MIT", + "dependencies": { + "punycode": "^2.1.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/tryer": { + "version": "1.0.1", + "license": "MIT" + }, + "node_modules/ts-interface-checker": { + "version": "0.1.13", + "license": "Apache-2.0" + }, + "node_modules/tsconfig-paths": { + "version": "3.14.2", + "license": "MIT", + "dependencies": { + "@types/json5": "^0.0.29", + "json5": "^1.0.2", + "minimist": "^1.2.6", + "strip-bom": "^3.0.0" + } + }, + "node_modules/tsconfig-paths/node_modules/json5": { + "version": "1.0.2", + "license": "MIT", + "dependencies": { + "minimist": "^1.2.0" + }, + "bin": { + "json5": "lib/cli.js" + } + }, + "node_modules/tsconfig-paths/node_modules/strip-bom": { + "version": "3.0.0", + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/tslib": { + "version": "2.6.1", + "license": "0BSD" + }, + "node_modules/tsutils": { + "version": "3.21.0", + "license": "MIT", + "dependencies": { + "tslib": "^1.8.1" + }, + "engines": { + "node": ">= 6" + }, + "peerDependencies": { + "typescript": ">=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta" + } + }, + "node_modules/tsutils/node_modules/tslib": { + "version": "1.14.1", + "license": "0BSD" + }, + "node_modules/type-check": { + "version": "0.4.0", + "license": "MIT", + "dependencies": { + "prelude-ls": "^1.2.1" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/type-detect": { + "version": "4.0.8", + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/type-fest": { + "version": "0.21.3", + "license": "(MIT OR CC0-1.0)", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/type-is": { + "version": "1.6.18", + "license": "MIT", + "dependencies": { + "media-typer": "0.3.0", + "mime-types": "~2.1.24" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/typed-array-buffer": { + "version": "1.0.0", + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.2", + "get-intrinsic": "^1.2.1", + "is-typed-array": "^1.1.10" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/typed-array-byte-length": { + "version": "1.0.0", + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.2", + "for-each": "^0.3.3", + "has-proto": "^1.0.1", + "is-typed-array": "^1.1.10" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/typed-array-byte-offset": { + "version": "1.0.0", + "license": "MIT", + "dependencies": { + "available-typed-arrays": "^1.0.5", + "call-bind": "^1.0.2", + "for-each": "^0.3.3", + "has-proto": "^1.0.1", + "is-typed-array": "^1.1.10" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/typed-array-length": { + "version": "1.0.4", + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.2", + "for-each": "^0.3.3", + "is-typed-array": "^1.1.9" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/typedarray-to-buffer": { + "version": "3.1.5", + "license": "MIT", + "dependencies": { + "is-typedarray": "^1.0.0" + } + }, + "node_modules/typescript": { + "version": "5.1.6", + "license": "Apache-2.0", + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=14.17" + } + }, + "node_modules/unbox-primitive": { + "version": "1.0.2", + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.2", + "has-bigints": "^1.0.2", + "has-symbols": "^1.0.3", + "which-boxed-primitive": "^1.0.2" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/uncontrollable": { + "version": "7.2.1", + "license": "MIT", + "dependencies": { + "@babel/runtime": "^7.6.3", + "@types/react": ">=16.9.11", + "invariant": "^2.2.4", + "react-lifecycles-compat": "^3.0.4" + }, + "peerDependencies": { + "react": ">=15.0.0" + } + }, + "node_modules/unicode-canonical-property-names-ecmascript": { + "version": "2.0.0", + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/unicode-match-property-ecmascript": { + "version": "2.0.0", + "license": "MIT", + "dependencies": { + "unicode-canonical-property-names-ecmascript": "^2.0.0", + "unicode-property-aliases-ecmascript": "^2.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/unicode-match-property-value-ecmascript": { + "version": "2.1.0", + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/unicode-property-aliases-ecmascript": { + "version": "2.1.0", + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/unique-string": { + "version": "2.0.0", + "license": "MIT", + "dependencies": { + "crypto-random-string": "^2.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/universalify": { + "version": "2.0.0", + "license": "MIT", + "engines": { + "node": ">= 10.0.0" + } + }, + "node_modules/unpipe": { + "version": "1.0.0", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/unquote": { + "version": "1.1.1", + "license": "MIT" + }, + "node_modules/upath": { + "version": "1.2.0", + "license": "MIT", + "engines": { + "node": ">=4", + "yarn": "*" + } + }, + "node_modules/update-browserslist-db": { + "version": "1.0.11", + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "escalade": "^3.1.1", + "picocolors": "^1.0.0" + }, + "bin": { + "update-browserslist-db": "cli.js" + }, + "peerDependencies": { + "browserslist": ">= 4.21.0" + } + }, + "node_modules/uri-js": { + "version": "4.4.1", + "license": "BSD-2-Clause", + "dependencies": { + "punycode": "^2.1.0" + } + }, + "node_modules/url-parse": { + "version": "1.5.10", + "license": "MIT", + "dependencies": { + "querystringify": "^2.1.1", + "requires-port": "^1.0.0" + } + }, + "node_modules/util-deprecate": { + "version": "1.0.2", + "license": "MIT" + }, + "node_modules/util.promisify": { + "version": "1.0.1", + "license": "MIT", + "dependencies": { + "define-properties": "^1.1.3", + "es-abstract": "^1.17.2", + "has-symbols": "^1.0.1", + "object.getownpropertydescriptors": "^2.1.0" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/utila": { + "version": "0.4.0", + "license": "MIT" + }, + "node_modules/utils-merge": { + "version": "1.0.1", + "license": "MIT", + "engines": { + "node": ">= 0.4.0" + } + }, + "node_modules/uuid": { + "version": "8.3.2", + "license": "MIT", + "bin": { + "uuid": "dist/bin/uuid" + } + }, + "node_modules/v8-to-istanbul": { + "version": "8.1.1", + "license": "ISC", + "dependencies": { + "@types/istanbul-lib-coverage": "^2.0.1", + "convert-source-map": "^1.6.0", + "source-map": "^0.7.3" + }, + "engines": { + "node": ">=10.12.0" + } + }, + "node_modules/vary": { + "version": "1.1.2", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/w3c-hr-time": { + "version": "1.0.2", + "license": "MIT", + "dependencies": { + "browser-process-hrtime": "^1.0.0" + } + }, + "node_modules/w3c-xmlserializer": { + "version": "2.0.0", + "license": "MIT", + "dependencies": { + "xml-name-validator": "^3.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/walker": { + "version": "1.0.8", + "license": "Apache-2.0", + "dependencies": { + "makeerror": "1.0.12" + } + }, + "node_modules/warning": { + "version": "4.0.3", + "license": "MIT", + "dependencies": { + "loose-envify": "^1.0.0" + } + }, + "node_modules/watchpack": { + "version": "2.4.0", + "license": "MIT", + "dependencies": { + "glob-to-regexp": "^0.4.1", + "graceful-fs": "^4.1.2" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/wbuf": { + "version": "1.7.3", + "license": "MIT", + "dependencies": { + "minimalistic-assert": "^1.0.0" + } + }, + "node_modules/web-vitals": { + "version": "2.1.4", + "license": "Apache-2.0" + }, + "node_modules/webidl-conversions": { + "version": "6.1.0", + "license": "BSD-2-Clause", + "engines": { + "node": ">=10.4" + } + }, + "node_modules/webpack": { + "version": "5.88.2", + "license": "MIT", + "dependencies": { + "@types/eslint-scope": "^3.7.3", + "@types/estree": "^1.0.0", + "@webassemblyjs/ast": "^1.11.5", + "@webassemblyjs/wasm-edit": "^1.11.5", + "@webassemblyjs/wasm-parser": "^1.11.5", + "acorn": "^8.7.1", + "acorn-import-assertions": "^1.9.0", + "browserslist": "^4.14.5", + "chrome-trace-event": "^1.0.2", + "enhanced-resolve": "^5.15.0", + "es-module-lexer": "^1.2.1", + "eslint-scope": "5.1.1", + "events": "^3.2.0", + "glob-to-regexp": "^0.4.1", + "graceful-fs": "^4.2.9", + "json-parse-even-better-errors": "^2.3.1", + "loader-runner": "^4.2.0", + "mime-types": "^2.1.27", + "neo-async": "^2.6.2", + "schema-utils": "^3.2.0", + "tapable": "^2.1.1", + "terser-webpack-plugin": "^5.3.7", + "watchpack": "^2.4.0", + "webpack-sources": "^3.2.3" + }, + "bin": { + "webpack": "bin/webpack.js" + }, + "engines": { + "node": ">=10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependenciesMeta": { + "webpack-cli": { + "optional": true + } + } + }, + "node_modules/webpack-dev-middleware": { + "version": "5.3.3", + "license": "MIT", + "dependencies": { + "colorette": "^2.0.10", + "memfs": "^3.4.3", + "mime-types": "^2.1.31", + "range-parser": "^1.2.1", + "schema-utils": "^4.0.0" + }, + "engines": { + "node": ">= 12.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "webpack": "^4.0.0 || ^5.0.0" + } + }, + "node_modules/webpack-dev-middleware/node_modules/ajv": { + "version": "8.12.0", + "license": "MIT", + "dependencies": { + "fast-deep-equal": "^3.1.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/webpack-dev-middleware/node_modules/ajv-keywords": { + "version": "5.1.0", + "license": "MIT", + "dependencies": { + "fast-deep-equal": "^3.1.3" + }, + "peerDependencies": { + "ajv": "^8.8.2" + } + }, + "node_modules/webpack-dev-middleware/node_modules/json-schema-traverse": { + "version": "1.0.0", + "license": "MIT" + }, + "node_modules/webpack-dev-middleware/node_modules/schema-utils": { + "version": "4.2.0", + "license": "MIT", + "dependencies": { + "@types/json-schema": "^7.0.9", + "ajv": "^8.9.0", + "ajv-formats": "^2.1.1", + "ajv-keywords": "^5.1.0" + }, + "engines": { + "node": ">= 12.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + } + }, + "node_modules/webpack-dev-server": { + "version": "4.15.1", + "license": "MIT", + "dependencies": { + "@types/bonjour": "^3.5.9", + "@types/connect-history-api-fallback": "^1.3.5", + "@types/express": "^4.17.13", + "@types/serve-index": "^1.9.1", + "@types/serve-static": "^1.13.10", + "@types/sockjs": "^0.3.33", + "@types/ws": "^8.5.5", + "ansi-html-community": "^0.0.8", + "bonjour-service": "^1.0.11", + "chokidar": "^3.5.3", + "colorette": "^2.0.10", + "compression": "^1.7.4", + "connect-history-api-fallback": "^2.0.0", + "default-gateway": "^6.0.3", + "express": "^4.17.3", + "graceful-fs": "^4.2.6", + "html-entities": "^2.3.2", + "http-proxy-middleware": "^2.0.3", + "ipaddr.js": "^2.0.1", + "launch-editor": "^2.6.0", + "open": "^8.0.9", + "p-retry": "^4.5.0", + "rimraf": "^3.0.2", + "schema-utils": "^4.0.0", + "selfsigned": "^2.1.1", + "serve-index": "^1.9.1", + "sockjs": "^0.3.24", + "spdy": "^4.0.2", + "webpack-dev-middleware": "^5.3.1", + "ws": "^8.13.0" + }, + "bin": { + "webpack-dev-server": "bin/webpack-dev-server.js" + }, + "engines": { + "node": ">= 12.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "webpack": "^4.37.0 || ^5.0.0" + }, + "peerDependenciesMeta": { + "webpack": { + "optional": true + }, + "webpack-cli": { + "optional": true + } + } + }, + "node_modules/webpack-dev-server/node_modules/ajv": { + "version": "8.12.0", + "license": "MIT", + "dependencies": { + "fast-deep-equal": "^3.1.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/webpack-dev-server/node_modules/ajv-keywords": { + "version": "5.1.0", + "license": "MIT", + "dependencies": { + "fast-deep-equal": "^3.1.3" + }, + "peerDependencies": { + "ajv": "^8.8.2" + } + }, + "node_modules/webpack-dev-server/node_modules/json-schema-traverse": { + "version": "1.0.0", + "license": "MIT" + }, + "node_modules/webpack-dev-server/node_modules/schema-utils": { + "version": "4.2.0", + "license": "MIT", + "dependencies": { + "@types/json-schema": "^7.0.9", + "ajv": "^8.9.0", + "ajv-formats": "^2.1.1", + "ajv-keywords": "^5.1.0" + }, + "engines": { + "node": ">= 12.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + } + }, + "node_modules/webpack-dev-server/node_modules/ws": { + "version": "8.13.0", + "license": "MIT", + "engines": { + "node": ">=10.0.0" + }, + "peerDependencies": { + "bufferutil": "^4.0.1", + "utf-8-validate": ">=5.0.2" + }, + "peerDependenciesMeta": { + "bufferutil": { + "optional": true + }, + "utf-8-validate": { + "optional": true + } + } + }, + "node_modules/webpack-manifest-plugin": { + "version": "4.1.1", + "license": "MIT", + "dependencies": { + "tapable": "^2.0.0", + "webpack-sources": "^2.2.0" + }, + "engines": { + "node": ">=12.22.0" + }, + "peerDependencies": { + "webpack": "^4.44.2 || ^5.47.0" + } + }, + "node_modules/webpack-manifest-plugin/node_modules/source-map": { + "version": "0.6.1", + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/webpack-manifest-plugin/node_modules/webpack-sources": { + "version": "2.3.1", + "license": "MIT", + "dependencies": { + "source-list-map": "^2.0.1", + "source-map": "^0.6.1" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/webpack-sources": { + "version": "3.2.3", + "license": "MIT", + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/webpack/node_modules/eslint-scope": { + "version": "5.1.1", + "license": "BSD-2-Clause", + "dependencies": { + "esrecurse": "^4.3.0", + "estraverse": "^4.1.1" + }, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/webpack/node_modules/estraverse": { + "version": "4.3.0", + "license": "BSD-2-Clause", + "engines": { + "node": ">=4.0" + } + }, + "node_modules/websocket-driver": { + "version": "0.7.4", + "license": "Apache-2.0", + "dependencies": { + "http-parser-js": ">=0.5.1", + "safe-buffer": ">=5.1.0", + "websocket-extensions": ">=0.1.1" + }, + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/websocket-extensions": { + "version": "0.1.4", + "license": "Apache-2.0", + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/whatwg-encoding": { + "version": "1.0.5", + "license": "MIT", + "dependencies": { + "iconv-lite": "0.4.24" + } + }, + "node_modules/whatwg-encoding/node_modules/iconv-lite": { + "version": "0.4.24", + "license": "MIT", + "dependencies": { + "safer-buffer": ">= 2.1.2 < 3" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/whatwg-fetch": { + "version": "3.6.17", + "license": "MIT" + }, + "node_modules/whatwg-mimetype": { + "version": "2.3.0", + "license": "MIT" + }, + "node_modules/whatwg-url": { + "version": "8.7.0", + "license": "MIT", + "dependencies": { + "lodash": "^4.7.0", + "tr46": "^2.1.0", + "webidl-conversions": "^6.1.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/which": { + "version": "2.0.2", + "license": "ISC", + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/which-boxed-primitive": { + "version": "1.0.2", + "license": "MIT", + "dependencies": { + "is-bigint": "^1.0.1", + "is-boolean-object": "^1.1.0", + "is-number-object": "^1.0.4", + "is-string": "^1.0.5", + "is-symbol": "^1.0.3" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/which-collection": { + "version": "1.0.1", + "license": "MIT", + "dependencies": { + "is-map": "^2.0.1", + "is-set": "^2.0.1", + "is-weakmap": "^2.0.1", + "is-weakset": "^2.0.1" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/which-typed-array": { + "version": "1.1.11", + "license": "MIT", + "dependencies": { + "available-typed-arrays": "^1.0.5", + "call-bind": "^1.0.2", + "for-each": "^0.3.3", + "gopd": "^1.0.1", + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/workbox-background-sync": { + "version": "6.6.0", + "license": "MIT", + "dependencies": { + "idb": "^7.0.1", + "workbox-core": "6.6.0" + } + }, + "node_modules/workbox-broadcast-update": { + "version": "6.6.0", + "license": "MIT", + "dependencies": { + "workbox-core": "6.6.0" + } + }, + "node_modules/workbox-build": { + "version": "6.6.0", + "license": "MIT", + "dependencies": { + "@apideck/better-ajv-errors": "^0.3.1", + "@babel/core": "^7.11.1", + "@babel/preset-env": "^7.11.0", + "@babel/runtime": "^7.11.2", + "@rollup/plugin-babel": "^5.2.0", + "@rollup/plugin-node-resolve": "^11.2.1", + "@rollup/plugin-replace": "^2.4.1", + "@surma/rollup-plugin-off-main-thread": "^2.2.3", + "ajv": "^8.6.0", + "common-tags": "^1.8.0", + "fast-json-stable-stringify": "^2.1.0", + "fs-extra": "^9.0.1", + "glob": "^7.1.6", + "lodash": "^4.17.20", + "pretty-bytes": "^5.3.0", + "rollup": "^2.43.1", + "rollup-plugin-terser": "^7.0.0", + "source-map": "^0.8.0-beta.0", + "stringify-object": "^3.3.0", + "strip-comments": "^2.0.1", + "tempy": "^0.6.0", + "upath": "^1.2.0", + "workbox-background-sync": "6.6.0", + "workbox-broadcast-update": "6.6.0", + "workbox-cacheable-response": "6.6.0", + "workbox-core": "6.6.0", + "workbox-expiration": "6.6.0", + "workbox-google-analytics": "6.6.0", + "workbox-navigation-preload": "6.6.0", + "workbox-precaching": "6.6.0", + "workbox-range-requests": "6.6.0", + "workbox-recipes": "6.6.0", + "workbox-routing": "6.6.0", + "workbox-strategies": "6.6.0", + "workbox-streams": "6.6.0", + "workbox-sw": "6.6.0", + "workbox-window": "6.6.0" + }, + "engines": { + "node": ">=10.0.0" + } + }, + "node_modules/workbox-build/node_modules/@apideck/better-ajv-errors": { + "version": "0.3.6", + "license": "MIT", + "dependencies": { + "json-schema": "^0.4.0", + "jsonpointer": "^5.0.0", + "leven": "^3.1.0" + }, + "engines": { + "node": ">=10" + }, + "peerDependencies": { + "ajv": ">=8" + } + }, + "node_modules/workbox-build/node_modules/ajv": { + "version": "8.12.0", + "license": "MIT", + "dependencies": { + "fast-deep-equal": "^3.1.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/workbox-build/node_modules/fs-extra": { + "version": "9.1.0", + "license": "MIT", + "dependencies": { + "at-least-node": "^1.0.0", + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/workbox-build/node_modules/json-schema-traverse": { + "version": "1.0.0", + "license": "MIT" + }, + "node_modules/workbox-build/node_modules/source-map": { + "version": "0.8.0-beta.0", + "license": "BSD-3-Clause", + "dependencies": { + "whatwg-url": "^7.0.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/workbox-build/node_modules/tr46": { + "version": "1.0.1", + "license": "MIT", + "dependencies": { + "punycode": "^2.1.0" + } + }, + "node_modules/workbox-build/node_modules/webidl-conversions": { + "version": "4.0.2", + "license": "BSD-2-Clause" + }, + "node_modules/workbox-build/node_modules/whatwg-url": { + "version": "7.1.0", + "license": "MIT", + "dependencies": { + "lodash.sortby": "^4.7.0", + "tr46": "^1.0.1", + "webidl-conversions": "^4.0.2" + } + }, + "node_modules/workbox-cacheable-response": { + "version": "6.6.0", + "license": "MIT", + "dependencies": { + "workbox-core": "6.6.0" + } + }, + "node_modules/workbox-core": { + "version": "6.6.0", + "license": "MIT" + }, + "node_modules/workbox-expiration": { + "version": "6.6.0", + "license": "MIT", + "dependencies": { + "idb": "^7.0.1", + "workbox-core": "6.6.0" + } + }, + "node_modules/workbox-google-analytics": { + "version": "6.6.0", + "license": "MIT", + "dependencies": { + "workbox-background-sync": "6.6.0", + "workbox-core": "6.6.0", + "workbox-routing": "6.6.0", + "workbox-strategies": "6.6.0" + } + }, + "node_modules/workbox-navigation-preload": { + "version": "6.6.0", + "license": "MIT", + "dependencies": { + "workbox-core": "6.6.0" + } + }, + "node_modules/workbox-precaching": { + "version": "6.6.0", + "license": "MIT", + "dependencies": { + "workbox-core": "6.6.0", + "workbox-routing": "6.6.0", + "workbox-strategies": "6.6.0" + } + }, + "node_modules/workbox-range-requests": { + "version": "6.6.0", + "license": "MIT", + "dependencies": { + "workbox-core": "6.6.0" + } + }, + "node_modules/workbox-recipes": { + "version": "6.6.0", + "license": "MIT", + "dependencies": { + "workbox-cacheable-response": "6.6.0", + "workbox-core": "6.6.0", + "workbox-expiration": "6.6.0", + "workbox-precaching": "6.6.0", + "workbox-routing": "6.6.0", + "workbox-strategies": "6.6.0" + } + }, + "node_modules/workbox-routing": { + "version": "6.6.0", + "license": "MIT", + "dependencies": { + "workbox-core": "6.6.0" + } + }, + "node_modules/workbox-strategies": { + "version": "6.6.0", + "license": "MIT", + "dependencies": { + "workbox-core": "6.6.0" + } + }, + "node_modules/workbox-streams": { + "version": "6.6.0", + "license": "MIT", + "dependencies": { + "workbox-core": "6.6.0", + "workbox-routing": "6.6.0" + } + }, + "node_modules/workbox-sw": { + "version": "6.6.0", + "license": "MIT" + }, + "node_modules/workbox-webpack-plugin": { + "version": "6.6.0", + "license": "MIT", + "dependencies": { + "fast-json-stable-stringify": "^2.1.0", + "pretty-bytes": "^5.4.1", + "upath": "^1.2.0", + "webpack-sources": "^1.4.3", + "workbox-build": "6.6.0" + }, + "engines": { + "node": ">=10.0.0" + }, + "peerDependencies": { + "webpack": "^4.4.0 || ^5.9.0" + } + }, + "node_modules/workbox-webpack-plugin/node_modules/source-map": { + "version": "0.6.1", + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/workbox-webpack-plugin/node_modules/webpack-sources": { + "version": "1.4.3", + "license": "MIT", + "dependencies": { + "source-list-map": "^2.0.0", + "source-map": "~0.6.1" + } + }, + "node_modules/workbox-window": { + "version": "6.6.0", + "license": "MIT", + "dependencies": { + "@types/trusted-types": "^2.0.2", + "workbox-core": "6.6.0" + } + }, + "node_modules/wrap-ansi": { + "version": "7.0.0", + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } + }, + "node_modules/wrappy": { + "version": "1.0.2", + "license": "ISC" + }, + "node_modules/write-file-atomic": { + "version": "3.0.3", + "license": "ISC", + "dependencies": { + "imurmurhash": "^0.1.4", + "is-typedarray": "^1.0.0", + "signal-exit": "^3.0.2", + "typedarray-to-buffer": "^3.1.5" + } + }, + "node_modules/ws": { + "version": "7.5.9", + "license": "MIT", + "engines": { + "node": ">=8.3.0" + }, + "peerDependencies": { + "bufferutil": "^4.0.1", + "utf-8-validate": "^5.0.2" + }, + "peerDependenciesMeta": { + "bufferutil": { + "optional": true + }, + "utf-8-validate": { + "optional": true + } + } + }, + "node_modules/xml-name-validator": { + "version": "3.0.0", + "license": "Apache-2.0" + }, + "node_modules/xmlchars": { + "version": "2.2.0", + "license": "MIT" + }, + "node_modules/y18n": { + "version": "5.0.8", + "license": "ISC", + "engines": { + "node": ">=10" + } + }, + "node_modules/yallist": { + "version": "3.1.1", + "license": "ISC" + }, + "node_modules/yaml": { + "version": "1.10.2", + "license": "ISC", + "engines": { + "node": ">= 6" + } + }, + "node_modules/yargs": { + "version": "16.2.0", + "license": "MIT", + "dependencies": { + "cliui": "^7.0.2", + "escalade": "^3.1.1", + "get-caller-file": "^2.0.5", + "require-directory": "^2.1.1", + "string-width": "^4.2.0", + "y18n": "^5.0.5", + "yargs-parser": "^20.2.2" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/yargs-parser": { + "version": "20.2.9", + "license": "ISC", + "engines": { + "node": ">=10" + } + }, + "node_modules/yocto-queue": { + "version": "0.1.0", + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + } + } +} diff --git a/examples/frontend/react/package.json b/examples/frontend/react/package.json new file mode 100644 index 000000000..3b5e98749 --- /dev/null +++ b/examples/frontend/react/package.json @@ -0,0 +1,52 @@ +{ + "name": "my-react-app", + "version": "0.1.0", + "private": true, + "dependencies": { + "@testing-library/jest-dom": "^5.17.0", + "@testing-library/react": "^13.4.0", + "@testing-library/user-event": "^13.5.0", + "@types/jest": "^29.5.3", + "@types/node": "^20.4.9", + "@types/react": "^18.2.19", + "@types/react-dom": "^18.2.7", + "bootstrap": "^5.3.1", + "casper-sdk": "file:../../../pkg", + "http-proxy-middleware": "^2.0.6", + "react": "^18.2.0", + "react-bootstrap": "^2.8.0", + "react-dom": "^18.2.0", + "react-scripts": "5.0.1", + "typescript": "^5.1.6", + "web-vitals": "^2.1.4" + }, + "scripts": { + "start": "react-scripts start", + "build": "react-scripts build", + "test": "react-scripts test", + "eject": "react-scripts eject" + }, + "overrides": { + "react-scripts": { + "typescript": "^5" + } + }, + "eslintConfig": { + "extends": [ + "react-app", + "react-app/jest" + ] + }, + "browserslist": { + "production": [ + ">0.2%", + "not dead", + "not op_mini all" + ], + "development": [ + "last 1 chrome version", + "last 1 firefox version", + "last 1 safari version" + ] + } +} \ No newline at end of file diff --git a/examples/frontend/react/public/favicon.png b/examples/frontend/react/public/favicon.png new file mode 100644 index 000000000..3c1776bdf Binary files /dev/null and b/examples/frontend/react/public/favicon.png differ diff --git a/examples/frontend/react/public/index.html b/examples/frontend/react/public/index.html new file mode 100644 index 000000000..4a4d449a1 --- /dev/null +++ b/examples/frontend/react/public/index.html @@ -0,0 +1,42 @@ + + + + + + + + + + + + React App + + + +
+ + + diff --git a/examples/frontend/react/public/logo.png b/examples/frontend/react/public/logo.png new file mode 100644 index 000000000..2f628bf4f Binary files /dev/null and b/examples/frontend/react/public/logo.png differ diff --git a/examples/frontend/react/public/manifest.json b/examples/frontend/react/public/manifest.json new file mode 100644 index 000000000..4ba141b52 --- /dev/null +++ b/examples/frontend/react/public/manifest.json @@ -0,0 +1,15 @@ +{ + "short_name": "React App", + "name": "Create React App Sample", + "icons": [ + { + "src": "favicon.png", + "sizes": "64x64 32x32 24x24 16x16", + "type": "image/x-icon" + } + ], + "start_url": ".", + "display": "standalone", + "theme_color": "#000000", + "background_color": "#ffffff" +} \ No newline at end of file diff --git a/examples/frontend/react/public/robots.txt b/examples/frontend/react/public/robots.txt new file mode 100644 index 000000000..e9e57dc4d --- /dev/null +++ b/examples/frontend/react/public/robots.txt @@ -0,0 +1,3 @@ +# https://www.robotstxt.org/robotstxt.html +User-agent: * +Disallow: diff --git a/examples/frontend/react/server/index.js b/examples/frontend/react/server/index.js new file mode 100644 index 000000000..d126c6011 --- /dev/null +++ b/examples/frontend/react/server/index.js @@ -0,0 +1,14 @@ +const express = require('express'); +const path = require('path'); +const app = express(); +const port = 3000; + +var proxySetting = require('../src/setupProxy'); + +proxySetting(app); + +app.use('/', express.static(path.join(__dirname, '../build/'))); + +app.listen(port, () => { + console.log(`Casper app listening on port ${port}`); +}); diff --git a/examples/frontend/react/src/App.css b/examples/frontend/react/src/App.css new file mode 100644 index 000000000..74b5e0534 --- /dev/null +++ b/examples/frontend/react/src/App.css @@ -0,0 +1,38 @@ +.App { + text-align: center; +} + +.App-logo { + height: 40vmin; + pointer-events: none; +} + +@media (prefers-reduced-motion: no-preference) { + .App-logo { + animation: App-logo-spin infinite 20s linear; + } +} + +.App-header { + background-color: #282c34; + min-height: 100vh; + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; + font-size: calc(10px + 2vmin); + color: white; +} + +.App-link { + color: #61dafb; +} + +@keyframes App-logo-spin { + from { + transform: rotate(0deg); + } + to { + transform: rotate(360deg); + } +} diff --git a/examples/frontend/react/src/App.test.js b/examples/frontend/react/src/App.test.js new file mode 100644 index 000000000..1f03afeec --- /dev/null +++ b/examples/frontend/react/src/App.test.js @@ -0,0 +1,8 @@ +import { render, screen } from '@testing-library/react'; +import App from './App'; + +test('renders learn react link', () => { + render(); + const linkElement = screen.getByText(/learn react/i); + expect(linkElement).toBeInTheDocument(); +}); diff --git a/examples/frontend/react/src/App.tsx b/examples/frontend/react/src/App.tsx new file mode 100644 index 000000000..cad88d4f6 --- /dev/null +++ b/examples/frontend/react/src/App.tsx @@ -0,0 +1,551 @@ +import 'bootstrap/dist/css/bootstrap.min.css'; +import React, { ChangeEvent } from 'react'; +import { useEffect, useState } from 'react'; +import './App.css'; +import init, { + SDK, + Verbosity, + DeployHash, + URef, + Key, + Digest, + DictionaryItemIdentifier, + BlockIdentifier, + GlobalStateIdentifier, + Path, + Deploy, + AccessRights, + PublicKey, + DeployStrParams, + SessionStrParams, + PaymentStrParams, + hexToUint8Array, + jsonPrettyPrint, + privateToPublicKey, + getTimestamp, + Bytes, + AccountIdentifier +} from 'casper-sdk'; + +const public_key_default = '0171875f35fc884264a08d4b6ac719f3b585bde0c9b085ac1a42130025e5fe9a3d'; +const private_key_default = '-----BEGIN PRIVATE KEY-----\nMC4CAQAwBQYDK2VwBCIEIO4wiasX4zAGgdlMAMDeSsde6XWlB+FZHDHRhtToJREu\n-----END PRIVATE KEY-----'; +const app_address_default = 'http://localhost:3000'; +const chain_name_default = 'casper-net-1'; +const block_identifier_height_default = BigInt(1); + +const public_key = process.env.REACT_APP_PUBLIC_KEY || public_key_default; +const private_key = process.env.REACT_APP_PRIVATE_KEY?.replace(/\\n/g, '\n') || private_key_default; +const app_address = process.env.REACT_APP_APP_ADDRESS || app_address_default; +const chain_name = process.env.REACT_APP_CHAIN_NAME || chain_name_default; + +function App() { + const [wasm, setWasm] = useState(false); + const [block_identifier_height, setBlock_identifier_height] = useState( + block_identifier_height_default + ); + const [hash, setHash] = useState(''); + const [pubKey, setPubKey] = useState(''); + const [privateKey, setPrivateKey] = useState(''); + const [block, setBlock] = useState(''); + const [info_get_account_info_hash, setInfo_get_account_info_hash] = + useState(''); + const [info_get_account_info_purse, setInfo_get_account_info_purse] = + useState(''); + const [info_get_deploy, setInfo_get_deploy] = useState(''); + const [sessionPath, setSessionPath] = useState(''); + const [state_get_balance, setState_get_balance] = useState(''); + const [state_get_dictionary_item, setState_get_dictionary_item] = useState( + [] + ); + const [query_global_state, setQuery_global_state] = useState(''); + + const [account_put_deploy, setAccount_put_deploy] = useState(''); + const [make_deploy, setMake_deploy] = useState(''); + const [make_transfer, setMake_transfer] = useState(''); + const [sdk, setSdk] = useState({}); + + let test = false; + useEffect(() => { + if (!test) { + // FIX ME please + test = true; + initApp(); + } + }, []); + + const fetchWasm = async () => { + // console.log('fetchWasm'); + await init(); + //console.log(wasm); + setWasm(true); + }; + + const initApp = async () => { + if (!wasm) { + await fetchWasm(); + }; + // console.log(wasm); + const sdk = new SDK(app_address); + setSdk(sdk); + + console.log(sdk); + console.log(public_key); + + setPrivateKey(private_key); + setPubKey(public_key); + + try { + // get_state_root_hash + const chain_get_state_root_hash = await sdk.chain_get_state_root_hash(); + console.log(chain_get_state_root_hash); + setHash(chain_get_state_root_hash?.state_root_hash_as_string); + console.log( + 'js chain_get_state_root_hash', + chain_get_state_root_hash?.state_root_hash_as_string + ); + console.log(chain_get_state_root_hash); + + // get_block + let chain_get_block_options = sdk.get_block_options({ + blockIdentifier: BlockIdentifier.fromHeight(block_identifier_height) + }); + const chain_get_block = await sdk.chain_get_block(chain_get_block_options); + setBlock(chain_get_block?.block.hash); + console.log('js chain_get_block', chain_get_block); + + // get_account_info + const account_identifier = new AccountIdentifier(public_key); + console.log(account_identifier.toJson()); + let state_get_account_info_options = sdk.get_account_options({ + blockIdentifier: BlockIdentifier.fromHeight(block_identifier_height), + account_identifier: account_identifier.toJson() + }); + const state_get_account_info = (await sdk.state_get_account_info(state_get_account_info_options)).toJson(); + console.log('js state_get_account_info', state_get_account_info); + + setInfo_get_account_info_hash( + state_get_account_info?.account.account_hash + ); + setInfo_get_account_info_purse( + state_get_account_info?.account.main_purse + ); + + // get_balance + let stateRootHashDigest = new Digest(chain_get_state_root_hash?.state_root_hash_as_string); + let state_get_balance_options = sdk.get_balance_options({ + state_root_hash: stateRootHashDigest.toJson(), + // purse_uref: new URef( + // 'b1d24c7a1502d70d8cf1ad632c5f703e5f3be0622583a00e47cad08a59025d2e', + // AccessRights.READ_ADD_WRITE() + // ).toJson(), + purse_uref_as_string: state_get_account_info?.account.main_purse, + }); + const state_get_balance = (await sdk.state_get_balance(state_get_balance_options)).toJson(); + console.log('js state_get_balance', state_get_balance); + setState_get_balance(state_get_balance?.balance_value); + + // make_transfer + const timestamp = getTimestamp(); // or Date.now().toString(); // or undefined + const ttl = '1h'; + + let deploy_params = new DeployStrParams( + chain_name, + public_key, + private_key, + timestamp, + ttl + ); + console.log(deploy_params); + + let payment_params = new PaymentStrParams(); + payment_params.payment_amount = '500000000'; + console.log(payment_params); + + // Transfer minimum amount of tokens to recipient; + const make_transfer = sdk.make_transfer( + '2500000000', + '0187adb3e0f60a983ecc2ddb48d32b3deaa09388ad3bc41e14aeb19959ecc60b54', + undefined, // transfer_id + deploy_params, + payment_params, + ).toJson(); + setMake_transfer(jsonPrettyPrint(make_transfer)); + console.log(jsonPrettyPrint(make_transfer, Verbosity.Medium)); + + // test deploy type and static builders + deploy_params = new DeployStrParams( + chain_name, + public_key + ); + console.log(deploy_params); + + let session_params = new SessionStrParams(); + // Call an erc 20 token in the wild + session_params.session_hash = + '9d0235fe7f4ac6ba71cf251c68fdd945ecf449d0b8aecb66ab0cbc18e80b3477'; + session_params.session_entry_point = 'decimals'; + session_params.session_args_simple = ["foo:Bool='true'", "bar:String='value'"]; // session_args_simple or session_args_json but not both + //session_params.session_args_json = JSON.stringify([{ "name": "foo", "type": "U256", "value": 1 }]); // Arrary of objects as multiple args + console.log(session_params); + + payment_params = new PaymentStrParams(); + payment_params.payment_amount = '5500000000'; + console.log(payment_params); + + let test_deploy = Deploy.withPaymentAndSession( + deploy_params, + session_params, + payment_params, + ); + + deploy_params = new DeployStrParams( + chain_name, + public_key + ); + payment_params = new PaymentStrParams(); + payment_params.payment_amount = '5500000000'; + test_deploy = test_deploy.sign(private_key); + test_deploy = test_deploy.withTTL('60m', private_key); + test_deploy = test_deploy.withSession(JSON.parse('{ "StoredContractByHash": { "hash": "9d0235fe7f4ac6ba71cf251c68fdd945ecf449d0b8aecb66ab0cbc18e80b3477", "entry_point": "decimals", "args": []}}')); + console.log(test_deploy.toJson()); + + let test_transfer = Deploy.withTransfer( + '2500000000', + '0187adb3e0f60a983ecc2ddb48d32b3deaa09388ad3bc41e14aeb19959ecc60b54', + undefined, + deploy_params, + payment_params, + ); + console.log(test_transfer); + + // make_deploy + payment_params = new PaymentStrParams(); + payment_params.payment_amount = '5500000000'; + deploy_params = new DeployStrParams( + chain_name, + public_key + ); + session_params = new SessionStrParams(); + session_params.session_hash = + '9d0235fe7f4ac6ba71cf251c68fdd945ecf449d0b8aecb66ab0cbc18e80b3477'; + session_params.session_entry_point = 'decimals'; + session_params.session_args_json = JSON.stringify([{ "name": "foo", "type": "U256", "value": 1 }]); // Arrary of objects as multiple args + const make_deploy = sdk.make_deploy( + deploy_params, + session_params, + payment_params, + ).toJson(); + setMake_deploy(jsonPrettyPrint(make_deploy)); + console.log(jsonPrettyPrint(make_deploy, Verbosity.Medium)); + + // Update hash && timestamp if you need to deploy this already signed deploy + const deployAsString = + '{"hash":"20f0ead3d5e93706598716ec4c1cd8afe987d80a7dffb444dd7f9c6bb9d40937","header":{"account":"01d589b1ff893657417d180148829e2e0c509182f0f4678c2af7d1ddd58012ccd9","timestamp":"2023-08-07T23:30:30.785Z","ttl":"30m","gas_price":1,"body_hash":"0f7bbc79a5f02f2621347005c62fb440d8d07d5c97e2cd11da090da24989f61f","dependencies":[],"chain_name":"integration-test"},"payment":{"ModuleBytes":{"module_bytes":"","args":[["amount",{"bytes":"058e31a6553a","cl_type":"U512"}]]}},"session":{"StoredContractByHash":{"hash":"9d0235fe7f4ac6ba71cf251c68fdd945ecf449d0b8aecb66ab0cbc18e80b3477","entry_point":"decimals","args":[]}},"approvals":[{"signer":"01d589b1ff893657417d180148829e2e0c509182f0f4678c2af7d1ddd58012ccd9","signature":"018e64c442f6a4ccae0758bcf43a3f76a36e3d3744332d65ee1cafd0b2f30ffa362ad14c500742ed58c3736a863de34e1266c354f76e5915ac991c834aee3aeb08"}]}'; + + let deploy_to_sign = new Deploy(JSON.parse(deployAsString)); + console.log(deploy_to_sign.toJson()); + + let deploy_signed = (await sdk.sign_deploy( + deploy_to_sign, + private_key + )).toJson(); + console.log('js deploy_signed two parties', deploy_signed.approvals); + console.log(deploy_signed); + console.assert(deploy_signed.approvals.length === 2); // Deploy has two approvals + + // sign_deploy + deploy_to_sign = new Deploy(JSON.parse(deployAsString)); + deploy_to_sign = deploy_to_sign.addArg("test:bool='false"); // Deploy was modified has no approvals anymore + deploy_to_sign = deploy_to_sign.addArg({ "name": "name_of_my_key", "type": "U256", "value": 1 }); // No arrary as one arg + console.log('deploy_to_sign ', deploy_to_sign.toJson()); + console.assert(deploy_to_sign.toJson().approvals.length === 0); + deploy_signed = (await sdk.sign_deploy( + deploy_to_sign, + private_key + )).toJson(); + console.log('js deploy + addArg > sign_deploy', deploy_signed.approvals); + console.assert(deploy_signed.approvals.length === 1); // Deploy should have one approval + + deploy_to_sign = new Deploy(make_deploy); + // console.log('make_deploy footprint', deploy_to_sign.footprint()); + console.assert(deploy_to_sign.toJson().approvals.length === 0); // Deploy has no approval + // console.log('make_deploy ApprovalsHash before', deploy_to_sign.approvalsHash()); + deploy_signed = deploy_to_sign.addArg("test:bool='true'", private_key); // Deploy was modified has one approval + console.log('make_deploy signed', deploy_signed.toJson()); + console.log('js deploy + addArg + private_key ', deploy_signed.toJson().approvals); + console.assert(deploy_signed.toJson().approvals.length === 1); // Deploy should have one approval + // console.log('make_deploy ApprovalsHash after', deploy_signed.approvalsHash()); + + + // put_deploy + let signed_deploy = new Deploy(make_transfer); // or make_deploy + console.log(signed_deploy); + const account_put_deploy = (await sdk.account_put_deploy( + signed_deploy, + undefined, + )).toJson(); + console.log('js account_put_deploy', account_put_deploy); + setAccount_put_deploy(account_put_deploy?.deploy_hash); + + if (!account_put_deploy?.deploy_hash) { + return; + } + + // get_deploy + let finalized_approvals = true; + let get_deploy_options = sdk.get_deploy_options({ + deploy_hash: new DeployHash( + //'397acea5a765565c7d11839f2d30bf07a8e7740350467d3a358f596835645445' // random deploy + account_put_deploy?.deploy_hash + ).toJson(), + finalized_approvals: finalized_approvals, + }); + const info_get_deploy = await sdk.get_deploy(get_deploy_options); + console.log('js info_get_deploy', info_get_deploy); + setInfo_get_deploy(info_get_deploy?.api_version); + + // call entry point + deploy_params = new DeployStrParams( + chain_name, + public_key, + private_key + ); + console.log(deploy_params); + session_params = new SessionStrParams(); + // Call an erc 20 token in the wild + session_params.session_hash = + '9d0235fe7f4ac6ba71cf251c68fdd945ecf449d0b8aecb66ab0cbc18e80b3477'; + session_params.session_entry_point = 'decimals'; + + let test_call_entrypoint = (await sdk.call_entrypoint( + deploy_params, + session_params, + '5500000000' + )).toJson(); + console.log(test_call_entrypoint.deploy_hash); + + // state_get_dictionary_item + stateRootHashDigest = new Digest(chain_get_state_root_hash?.state_root_hash_as_string); + console.log(stateRootHashDigest); + console.log(stateRootHashDigest.toJson()); + const dictionary_item_identifier = + DictionaryItemIdentifier.newFromSeedUref( + 'uref-386f3d77417ac76f7c0b8d5ea8764cb42de8e529a091da8e96e5f3c88f17e530-007', '0' + ); + + let get_dictionary_item_options = sdk.get_dictionary_item_options({ + state_root_hash_as_string: chain_get_state_root_hash?.state_root_hash_as_string, + //state_root_hash: stateRootHashDigest.toJson(), + dictionary_item_identifier: dictionary_item_identifier.toJson(), + }); + console.log(get_dictionary_item_options); + const state_get_dictionary_item = (await sdk.state_get_dictionary_item(get_dictionary_item_options)).toJson(); + setState_get_dictionary_item( + state_get_dictionary_item?.stored_value.CLValue.parsed + ); + console.log('js state_get_dictionary_item', state_get_dictionary_item); + + // query_global_state + let path = new Path(''); + let key = Key.fromURef( + new URef( + 'b57dfc006ca3cff3f3f17852447d3de86ca69c1086405097ceda3b2a492290e8', + AccessRights.READ_ADD_WRITE() + ) + ); + console.log(key); + let query_global_state_options = sdk.query_global_state_options({ + global_state_identifier: GlobalStateIdentifier.fromStateRootHash( + new Digest(chain_get_state_root_hash?.state_root_hash_as_string) + ).toJson(), + key: key.toJson(), + //path_as_string: path.toString(), + path: path.toJson(), + }); + console.log(query_global_state_options); + const query_global_state = (await sdk.query_global_state(query_global_state_options)).toJson(); + console.log('js query_global_state', query_global_state); + setQuery_global_state( + query_global_state?.stored_value.CLValue.parsed + ); + + } catch (error) { + console.error(error); + } + }; + + // install + const onFileSelected = async (event: ChangeEvent) => { + const selectedFile = event.target.files?.[0]; + if (!selectedFile || !(sdk instanceof SDK) || !privateKey) { + return; + } + const sdkInstance = sdk as SDK; + selectedFile && setSessionPath(selectedFile.name); + const session_account = privateToPublicKey(privateKey); + let deploy_params = new DeployStrParams( + chain_name, + session_account, + privateKey + ); + console.log(deploy_params); + let session_params = new SessionStrParams(); + session_params.session_args_simple = ["message:string='hello casper"]; + console.log(session_params); + const file = event.target.files?.[0]; + const buffer = await file?.arrayBuffer(); + const wasm = buffer && new Uint8Array(buffer); + const wasmBuffer = wasm?.buffer; + if (!wasmBuffer) { + return; + } + if (wasm) { + session_params.session_bytes = Bytes.fromUint8Array(wasm); + let test_install = await sdkInstance.install( + deploy_params, + session_params, + '500000000' + ); + console.log(test_install); + } else { + console.error("Failed to read wasm file."); + } + }; + + return ( +
+ <> + CasperLabs +
+
+ +
{hash}
+
+ +
+
+ +
+
+ +
{block}
+
+
+ +
+
+ +
+
+ +
+ +
+ {info_get_account_info_hash} +
+
+
+ +
+ {info_get_account_info_purse} +
+
+ +
+
+ +
+
+ +
{state_get_balance}
+
+
+ +
+ +
+ +
+
+ +
+ + {state_get_dictionary_item.map((item, index) => ( +
+ Key: {item['key']} + {item['value']} +
+ ))} +
+
+ +
{query_global_state}
+
+
+ +
{make_deploy}
+
+
+ +
{make_transfer}
+
+
+ +
{account_put_deploy}
+
+
+ +
{info_get_deploy}
+
+
+ +
+ ); +} + +// function readPEMFile(key_path?: string): string { +// let pemFilePath = key_path ? path.resolve(__dirname, key_path) : null; +// if (!pemFilePath || !fs.existsSync(pemFilePath)) { +// pemFilePath = path.resolve(__dirname, key_name_default); +// } +// try { +// const data = fs.readFileSync(pemFilePath, 'utf8'); +// return data; +// } catch (error) { +// console.error('Error:', error); +// return ""; +// } +// } +export default App; diff --git a/examples/frontend/react/src/index.css b/examples/frontend/react/src/index.css new file mode 100644 index 000000000..ec2585e8c --- /dev/null +++ b/examples/frontend/react/src/index.css @@ -0,0 +1,13 @@ +body { + margin: 0; + font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', + 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', + sans-serif; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} + +code { + font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New', + monospace; +} diff --git a/examples/frontend/react/src/index.js b/examples/frontend/react/src/index.js new file mode 100644 index 000000000..d563c0fb1 --- /dev/null +++ b/examples/frontend/react/src/index.js @@ -0,0 +1,17 @@ +import React from 'react'; +import ReactDOM from 'react-dom/client'; +import './index.css'; +import App from './App'; +import reportWebVitals from './reportWebVitals'; + +const root = ReactDOM.createRoot(document.getElementById('root')); +root.render( + + + +); + +// If you want to start measuring performance in your app, pass a function +// to log results (for example: reportWebVitals(console.log)) +// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals +reportWebVitals(); diff --git a/examples/frontend/react/src/logo.svg b/examples/frontend/react/src/logo.svg new file mode 100644 index 000000000..9dfc1c058 --- /dev/null +++ b/examples/frontend/react/src/logo.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/examples/frontend/react/src/reportWebVitals.js b/examples/frontend/react/src/reportWebVitals.js new file mode 100644 index 000000000..5253d3ad9 --- /dev/null +++ b/examples/frontend/react/src/reportWebVitals.js @@ -0,0 +1,13 @@ +const reportWebVitals = onPerfEntry => { + if (onPerfEntry && onPerfEntry instanceof Function) { + import('web-vitals').then(({ getCLS, getFID, getFCP, getLCP, getTTFB }) => { + getCLS(onPerfEntry); + getFID(onPerfEntry); + getFCP(onPerfEntry); + getLCP(onPerfEntry); + getTTFB(onPerfEntry); + }); + } +}; + +export default reportWebVitals; diff --git a/examples/frontend/react/src/setupProxy.js b/examples/frontend/react/src/setupProxy.js new file mode 100644 index 000000000..8ee53107b --- /dev/null +++ b/examples/frontend/react/src/setupProxy.js @@ -0,0 +1,11 @@ +const { createProxyMiddleware } = require('http-proxy-middleware'); + +module.exports = function (app) { + app.use( + '/rpc', + createProxyMiddleware({ + target: process.env.REACT_APP_NODE_ADDRESS || 'http://127.0.0.1:11101', + changeOrigin: true, + }) + ); +}; diff --git a/examples/frontend/react/src/setupTests.js b/examples/frontend/react/src/setupTests.js new file mode 100644 index 000000000..8f2609b7b --- /dev/null +++ b/examples/frontend/react/src/setupTests.js @@ -0,0 +1,5 @@ +// jest-dom adds custom jest matchers for asserting on DOM nodes. +// allows you to do things like: +// expect(element).toHaveTextContent(/react/i) +// learn more: https://github.com/testing-library/jest-dom +import '@testing-library/jest-dom'; diff --git a/examples/frontend/react/src/tsconfig.json b/examples/frontend/react/src/tsconfig.json new file mode 100644 index 000000000..16ad5fc27 --- /dev/null +++ b/examples/frontend/react/src/tsconfig.json @@ -0,0 +1,115 @@ +{ + "compilerOptions": { + "jsx": "react", + /* Visit https://aka.ms/tsconfig to read more about this file */ + + /* Projects */ + // "incremental": true, /* Save .tsbuildinfo files to allow for incremental compilation of projects. */ + // "composite": true, /* Enable constraints that allow a TypeScript project to be used with project references. */ + // "tsBuildInfoFile": "./.tsbuildinfo", /* Specify the path to .tsbuildinfo incremental compilation file. */ + // "disableSourceOfProjectReferenceRedirect": true, /* Disable preferring source files instead of declaration files when referencing composite projects. */ + // "disableSolutionSearching": true, /* Opt a project out of multi-project reference checking when editing. */ + // "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */ + + /* Language and Environment */ + "target": "es2016" /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */, + // "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */ + // "jsx": "preserve", /* Specify what JSX code is generated. */ + // "experimentalDecorators": true, /* Enable experimental support for legacy experimental decorators. */ + // "emitDecoratorMetadata": true, /* Emit design-type metadata for decorated declarations in source files. */ + // "jsxFactory": "", /* Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'. */ + // "jsxFragmentFactory": "", /* Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'. */ + // "jsxImportSource": "", /* Specify module specifier used to import the JSX factory functions when using 'jsx: react-jsx*'. */ + // "reactNamespace": "", /* Specify the object invoked for 'createElement'. This only applies when targeting 'react' JSX emit. */ + // "noLib": true, /* Disable including any library files, including the default lib.d.ts. */ + // "useDefineForClassFields": true, /* Emit ECMAScript-standard-compliant class fields. */ + // "moduleDetection": "auto", /* Control what method is used to detect module-format JS files. */ + + /* Modules */ + "module": "commonjs" /* Specify what module code is generated. */, + // "rootDir": "./", /* Specify the root folder within your source files. */ + // "moduleResolution": "node10", /* Specify how TypeScript looks up a file from a given module specifier. */ + // "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */ + // "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */ + // "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */ + // "typeRoots": [], /* Specify multiple folders that act like './node_modules/@types'. */ + // "types": [], /* Specify type package names to be included without being referenced in a source file. */ + // "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */ + // "moduleSuffixes": [], /* List of file name suffixes to search when resolving a module. */ + // "allowImportingTsExtensions": true, /* Allow imports to include TypeScript file extensions. Requires '--moduleResolution bundler' and either '--noEmit' or '--emitDeclarationOnly' to be set. */ + // "resolvePackageJsonExports": true, /* Use the package.json 'exports' field when resolving package imports. */ + // "resolvePackageJsonImports": true, /* Use the package.json 'imports' field when resolving imports. */ + // "customConditions": [], /* Conditions to set in addition to the resolver-specific defaults when resolving imports. */ + // "resolveJsonModule": true, /* Enable importing .json files. */ + // "allowArbitraryExtensions": true, /* Enable importing files with any extension, provided a declaration file is present. */ + // "noResolve": true, /* Disallow 'import's, 'require's or ''s from expanding the number of files TypeScript should add to a project. */ + + /* JavaScript Support */ + // "allowJs": true, /* Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files. */ + // "checkJs": true, /* Enable error reporting in type-checked JavaScript files. */ + // "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'. */ + + /* Emit */ + // "declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */ + // "declarationMap": true, /* Create sourcemaps for d.ts files. */ + // "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */ + // "sourceMap": true, /* Create source map files for emitted JavaScript files. */ + // "inlineSourceMap": true, /* Include sourcemap files inside the emitted JavaScript. */ + // "outFile": "./", /* Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output. */ + // "outDir": "./", /* Specify an output folder for all emitted files. */ + // "removeComments": true, /* Disable emitting comments. */ + // "noEmit": true, /* Disable emitting files from a compilation. */ + // "importHelpers": true, /* Allow importing helper functions from tslib once per project, instead of including them per-file. */ + // "importsNotUsedAsValues": "remove", /* Specify emit/checking behavior for imports that are only used for types. */ + // "downlevelIteration": true, /* Emit more compliant, but verbose and less performant JavaScript for iteration. */ + // "sourceRoot": "", /* Specify the root path for debuggers to find the reference source code. */ + // "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */ + // "inlineSources": true, /* Include source code in the sourcemaps inside the emitted JavaScript. */ + // "emitBOM": true, /* Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files. */ + // "newLine": "crlf", /* Set the newline character for emitting files. */ + // "stripInternal": true, /* Disable emitting declarations that have '@internal' in their JSDoc comments. */ + // "noEmitHelpers": true, /* Disable generating custom helper functions like '__extends' in compiled output. */ + // "noEmitOnError": true, /* Disable emitting files if any type checking errors are reported. */ + // "preserveConstEnums": true, /* Disable erasing 'const enum' declarations in generated code. */ + // "declarationDir": "./", /* Specify the output directory for generated declaration files. */ + // "preserveValueImports": true, /* Preserve unused imported values in the JavaScript output that would otherwise be removed. */ + + /* Interop Constraints */ + // "isolatedModules": true, /* Ensure that each file can be safely transpiled without relying on other imports. */ + // "verbatimModuleSyntax": true, /* Do not transform or elide any imports or exports not marked as type-only, ensuring they are written in the output file's format based on the 'module' setting. */ + // "allowSyntheticDefaultImports": true, /* Allow 'import x from y' when a module doesn't have a default export. */ + "esModuleInterop": true /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */, + // "preserveSymlinks": true, /* Disable resolving symlinks to their realpath. This correlates to the same flag in node. */ + "forceConsistentCasingInFileNames": true /* Ensure that casing is correct in imports. */, + + /* Type Checking */ + "strict": true /* Enable all strict type-checking options. */, + // "noImplicitAny": true, /* Enable error reporting for expressions and declarations with an implied 'any' type. */ + // "strictNullChecks": true, /* When type checking, take into account 'null' and 'undefined'. */ + // "strictFunctionTypes": true, /* When assigning functions, check to ensure parameters and the return values are subtype-compatible. */ + // "strictBindCallApply": true, /* Check that the arguments for 'bind', 'call', and 'apply' methods match the original function. */ + // "strictPropertyInitialization": true, /* Check for class properties that are declared but not set in the constructor. */ + // "noImplicitThis": true, /* Enable error reporting when 'this' is given the type 'any'. */ + // "useUnknownInCatchVariables": true, /* Default catch clause variables as 'unknown' instead of 'any'. */ + // "alwaysStrict": true, /* Ensure 'use strict' is always emitted. */ + // "noUnusedLocals": true, /* Enable error reporting when local variables aren't read. */ + // "noUnusedParameters": true, /* Raise an error when a function parameter isn't read. */ + // "exactOptionalPropertyTypes": true, /* Interpret optional property types as written, rather than adding 'undefined'. */ + // "noImplicitReturns": true, /* Enable error reporting for codepaths that do not explicitly return in a function. */ + // "noFallthroughCasesInSwitch": true, /* Enable error reporting for fallthrough cases in switch statements. */ + // "noUncheckedIndexedAccess": true, /* Add 'undefined' to a type when accessed using an index. */ + // "noImplicitOverride": true, /* Ensure overriding members in derived classes are marked with an override modifier. */ + // "noPropertyAccessFromIndexSignature": true, /* Enforces using indexed accessors for keys declared using an indexed type. */ + // "allowUnusedLabels": true, /* Disable error reporting for unused labels. */ + // "allowUnreachableCode": true, /* Disable error reporting for unreachable code. */ + + /* Completeness */ + // "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */ + "skipLibCheck": true /* Skip type checking all .d.ts files. */ + }, + "experiments": { + "asyncWebAssembly": true, + "syncWebAssembly": true, + "topLevelAwait": true + } +} diff --git a/examples/frontend/react/tsconfig.json b/examples/frontend/react/tsconfig.json new file mode 100644 index 000000000..975d36454 --- /dev/null +++ b/examples/frontend/react/tsconfig.json @@ -0,0 +1,110 @@ +{ + "compilerOptions": { + /* Visit https://aka.ms/tsconfig to read more about this file */ + + /* Projects */ + // "incremental": true, /* Save .tsbuildinfo files to allow for incremental compilation of projects. */ + // "composite": true, /* Enable constraints that allow a TypeScript project to be used with project references. */ + // "tsBuildInfoFile": "./.tsbuildinfo", /* Specify the path to .tsbuildinfo incremental compilation file. */ + // "disableSourceOfProjectReferenceRedirect": true, /* Disable preferring source files instead of declaration files when referencing composite projects. */ + // "disableSolutionSearching": true, /* Opt a project out of multi-project reference checking when editing. */ + // "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */ + + /* Language and Environment */ + "target": "es2016" /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */, + // "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */ + // "jsx": "preserve", /* Specify what JSX code is generated. */ + // "experimentalDecorators": true, /* Enable experimental support for legacy experimental decorators. */ + // "emitDecoratorMetadata": true, /* Emit design-type metadata for decorated declarations in source files. */ + // "jsxFactory": "", /* Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'. */ + // "jsxFragmentFactory": "", /* Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'. */ + // "jsxImportSource": "", /* Specify module specifier used to import the JSX factory functions when using 'jsx: react-jsx*'. */ + // "reactNamespace": "", /* Specify the object invoked for 'createElement'. This only applies when targeting 'react' JSX emit. */ + // "noLib": true, /* Disable including any library files, including the default lib.d.ts. */ + // "useDefineForClassFields": true, /* Emit ECMAScript-standard-compliant class fields. */ + // "moduleDetection": "auto", /* Control what method is used to detect module-format JS files. */ + + /* Modules */ + "module": "commonjs" /* Specify what module code is generated. */, + // "rootDir": "./", /* Specify the root folder within your source files. */ + // "moduleResolution": "node10", /* Specify how TypeScript looks up a file from a given module specifier. */ + // "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */ + // "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */ + // "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */ + // "typeRoots": [], /* Specify multiple folders that act like './node_modules/@types'. */ + // "types": [], /* Specify type package names to be included without being referenced in a source file. */ + // "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */ + // "moduleSuffixes": [], /* List of file name suffixes to search when resolving a module. */ + // "allowImportingTsExtensions": true, /* Allow imports to include TypeScript file extensions. Requires '--moduleResolution bundler' and either '--noEmit' or '--emitDeclarationOnly' to be set. */ + // "resolvePackageJsonExports": true, /* Use the package.json 'exports' field when resolving package imports. */ + // "resolvePackageJsonImports": true, /* Use the package.json 'imports' field when resolving imports. */ + // "customConditions": [], /* Conditions to set in addition to the resolver-specific defaults when resolving imports. */ + // "resolveJsonModule": true, /* Enable importing .json files. */ + // "allowArbitraryExtensions": true, /* Enable importing files with any extension, provided a declaration file is present. */ + // "noResolve": true, /* Disallow 'import's, 'require's or ''s from expanding the number of files TypeScript should add to a project. */ + + /* JavaScript Support */ + // "allowJs": true, /* Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files. */ + // "checkJs": true, /* Enable error reporting in type-checked JavaScript files. */ + // "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'. */ + + /* Emit */ + // "declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */ + // "declarationMap": true, /* Create sourcemaps for d.ts files. */ + // "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */ + // "sourceMap": true, /* Create source map files for emitted JavaScript files. */ + // "inlineSourceMap": true, /* Include sourcemap files inside the emitted JavaScript. */ + // "outFile": "./", /* Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output. */ + // "outDir": "./", /* Specify an output folder for all emitted files. */ + // "removeComments": true, /* Disable emitting comments. */ + // "noEmit": true, /* Disable emitting files from a compilation. */ + // "importHelpers": true, /* Allow importing helper functions from tslib once per project, instead of including them per-file. */ + // "importsNotUsedAsValues": "remove", /* Specify emit/checking behavior for imports that are only used for types. */ + // "downlevelIteration": true, /* Emit more compliant, but verbose and less performant JavaScript for iteration. */ + // "sourceRoot": "", /* Specify the root path for debuggers to find the reference source code. */ + // "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */ + // "inlineSources": true, /* Include source code in the sourcemaps inside the emitted JavaScript. */ + // "emitBOM": true, /* Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files. */ + // "newLine": "crlf", /* Set the newline character for emitting files. */ + // "stripInternal": true, /* Disable emitting declarations that have '@internal' in their JSDoc comments. */ + // "noEmitHelpers": true, /* Disable generating custom helper functions like '__extends' in compiled output. */ + // "noEmitOnError": true, /* Disable emitting files if any type checking errors are reported. */ + // "preserveConstEnums": true, /* Disable erasing 'const enum' declarations in generated code. */ + // "declarationDir": "./", /* Specify the output directory for generated declaration files. */ + // "preserveValueImports": true, /* Preserve unused imported values in the JavaScript output that would otherwise be removed. */ + + /* Interop Constraints */ + // "isolatedModules": true, /* Ensure that each file can be safely transpiled without relying on other imports. */ + // "verbatimModuleSyntax": true, /* Do not transform or elide any imports or exports not marked as type-only, ensuring they are written in the output file's format based on the 'module' setting. */ + // "allowSyntheticDefaultImports": true, /* Allow 'import x from y' when a module doesn't have a default export. */ + "esModuleInterop": true /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */, + // "preserveSymlinks": true, /* Disable resolving symlinks to their realpath. This correlates to the same flag in node. */ + "forceConsistentCasingInFileNames": true /* Ensure that casing is correct in imports. */, + + /* Type Checking */ + "strict": true /* Enable all strict type-checking options. */, + // "noImplicitAny": true, /* Enable error reporting for expressions and declarations with an implied 'any' type. */ + // "strictNullChecks": true, /* When type checking, take into account 'null' and 'undefined'. */ + // "strictFunctionTypes": true, /* When assigning functions, check to ensure parameters and the return values are subtype-compatible. */ + // "strictBindCallApply": true, /* Check that the arguments for 'bind', 'call', and 'apply' methods match the original function. */ + // "strictPropertyInitialization": true, /* Check for class properties that are declared but not set in the constructor. */ + // "noImplicitThis": true, /* Enable error reporting when 'this' is given the type 'any'. */ + // "useUnknownInCatchVariables": true, /* Default catch clause variables as 'unknown' instead of 'any'. */ + // "alwaysStrict": true, /* Ensure 'use strict' is always emitted. */ + // "noUnusedLocals": true, /* Enable error reporting when local variables aren't read. */ + // "noUnusedParameters": true, /* Raise an error when a function parameter isn't read. */ + // "exactOptionalPropertyTypes": true, /* Interpret optional property types as written, rather than adding 'undefined'. */ + // "noImplicitReturns": true, /* Enable error reporting for codepaths that do not explicitly return in a function. */ + // "noFallthroughCasesInSwitch": true, /* Enable error reporting for fallthrough cases in switch statements. */ + // "noUncheckedIndexedAccess": true, /* Add 'undefined' to a type when accessed using an index. */ + // "noImplicitOverride": true, /* Ensure overriding members in derived classes are marked with an override modifier. */ + // "noPropertyAccessFromIndexSignature": true, /* Enforces using indexed accessors for keys declared using an indexed type. */ + // "allowUnusedLabels": true, /* Disable error reporting for unused labels. */ + // "allowUnreachableCode": true, /* Disable error reporting for unreachable code. */ + + /* Completeness */ + // "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */ + "skipLibCheck": true /* Skip type checking all .d.ts files. */, + "jsx": "react" + } +} diff --git a/pkg-nodejs/LICENSE b/pkg-nodejs/LICENSE new file mode 100644 index 000000000..a93d96287 --- /dev/null +++ b/pkg-nodejs/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright 2022 CasperLabs Holdings AG + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/pkg-nodejs/casper_rust_wasm_sdk.d.ts b/pkg-nodejs/casper_rust_wasm_sdk.d.ts new file mode 100644 index 000000000..251c5e47b --- /dev/null +++ b/pkg-nodejs/casper_rust_wasm_sdk.d.ts @@ -0,0 +1,2638 @@ +/* tslint:disable */ +/* eslint-disable */ +/** +* Converts a hexadecimal string to a regular string. +* +* # Arguments +* +* * `hex_string` - The hexadecimal string to convert. +* +* # Returns +* +* A regular string containing the converted value. +* @param {string} hex_string +* @returns {string} +*/ +export function hexToString(hex_string: string): string; +/** +* Converts a hexadecimal string to a Uint8Array. +* +* # Arguments +* +* * `hex_string` - The hexadecimal string to convert. +* +* # Returns +* +* A Uint8Array containing the converted value. +* @param {string} hex_string +* @returns {Uint8Array} +*/ +export function hexToUint8Array(hex_string: string): Uint8Array; +/** +* Converts a Uint8Array to a `Bytes` object. +* +* # Arguments +* +* * `uint8_array` - The Uint8Array to convert. +* +* # Returns +* +* A `Bytes` object containing the converted value. +* @param {Uint8Array} uint8_array +* @returns {Bytes} +*/ +export function uint8ArrayToBytes(uint8_array: Uint8Array): Bytes; +/** +* Converts motes to CSPR (Casper tokens). +* +* # Arguments +* +* * `motes` - The motes value to convert. +* +* # Returns +* +* A string representing the CSPR amount. +* @param {string} motes +* @returns {string} +*/ +export function motesToCSPR(motes: string): string; +/** +* Pretty prints a JSON value. +* +* # Arguments +* +* * `value` - The JSON value to pretty print. +* * `verbosity` - An optional verbosity level for pretty printing. +* +* # Returns +* +* A pretty printed JSON value as a JsValue. +* @param {any} value +* @param {number | undefined} verbosity +* @returns {any} +*/ +export function jsonPrettyPrint(value: any, verbosity?: number): any; +/** +* Converts a secret key to a corresponding public key. +* +* # Arguments +* +* * `secret_key` - The secret key in PEM format. +* +* # Returns +* +* A JsValue containing the corresponding public key. +* If an error occurs during the conversion, JsValue::null() is returned. +* @param {string} secret_key +* @returns {any} +*/ +export function privateToPublicKey(secret_key: string): any; +/** +* Gets the current timestamp. +* +* # Returns +* +* A JsValue containing the current timestamp. +* @returns {any} +*/ +export function getTimestamp(): any; +/** +* @param {Uint8Array} key +* @returns {TransferAddr} +*/ +export function fromTransfer(key: Uint8Array): TransferAddr; +/** +*/ +export enum Verbosity { + Low = 0, + Medium = 1, + High = 2, +} +/** +*/ +export class AccessRights { + free(): void; +/** +* @returns {number} +*/ + static NONE(): number; +/** +* @returns {number} +*/ + static READ(): number; +/** +* @returns {number} +*/ + static WRITE(): number; +/** +* @returns {number} +*/ + static ADD(): number; +/** +* @returns {number} +*/ + static READ_ADD(): number; +/** +* @returns {number} +*/ + static READ_WRITE(): number; +/** +* @returns {number} +*/ + static ADD_WRITE(): number; +/** +* @returns {number} +*/ + static READ_ADD_WRITE(): number; +/** +* @param {number} access_rights +*/ + constructor(access_rights: number); +/** +* @param {boolean} read +* @param {boolean} write +* @param {boolean} add +* @returns {AccessRights} +*/ + static from_bits(read: boolean, write: boolean, add: boolean): AccessRights; +/** +* @returns {boolean} +*/ + is_readable(): boolean; +/** +* @returns {boolean} +*/ + is_writeable(): boolean; +/** +* @returns {boolean} +*/ + is_addable(): boolean; +/** +* @returns {boolean} +*/ + is_none(): boolean; +} +/** +*/ +export class AccountHash { + free(): void; +/** +* @param {string} account_hash_hex_str +*/ + constructor(account_hash_hex_str: string); +/** +* @param {string} formatted_str +* @returns {AccountHash} +*/ + static fromFormattedStr(formatted_str: string): AccountHash; +/** +* @param {PublicKey} public_key +* @returns {AccountHash} +*/ + static fromPublicKey(public_key: PublicKey): AccountHash; +/** +* @returns {string} +*/ + toFormattedString(): string; +/** +* @param {Uint8Array} bytes +* @returns {AccountHash} +*/ + static fromUint8Array(bytes: Uint8Array): AccountHash; +/** +* @returns {any} +*/ + toJson(): any; +} +/** +*/ +export class AccountIdentifier { + free(): void; +/** +* @param {string} formatted_str +*/ + constructor(formatted_str: string); +/** +* @param {string} formatted_str +* @returns {AccountIdentifier} +*/ + static fromFormattedStr(formatted_str: string): AccountIdentifier; +/** +* @param {PublicKey} key +* @returns {AccountIdentifier} +*/ + static fromPublicKey(key: PublicKey): AccountIdentifier; +/** +* @param {AccountHash} account_hash +* @returns {AccountIdentifier} +*/ + static fromAccountHash(account_hash: AccountHash): AccountIdentifier; +/** +* @returns {any} +*/ + toJson(): any; +} +/** +*/ +export class ArgsSimple { + free(): void; +} +/** +*/ +export class BlockHash { + free(): void; +/** +* @param {string} block_hash_hex_str +*/ + constructor(block_hash_hex_str: string); +/** +* @param {Digest} digest +* @returns {BlockHash} +*/ + static fromDigest(digest: Digest): BlockHash; +/** +* @returns {any} +*/ + toJson(): any; +/** +* @returns {string} +*/ + toString(): string; +} +/** +*/ +export class BlockIdentifier { + free(): void; +/** +* @param {BlockIdentifier} block_identifier +*/ + constructor(block_identifier: BlockIdentifier); +/** +* @param {BlockHash} hash +* @returns {BlockIdentifier} +*/ + static from_hash(hash: BlockHash): BlockIdentifier; +/** +* @param {bigint} height +* @returns {BlockIdentifier} +*/ + static fromHeight(height: bigint): BlockIdentifier; +/** +* @returns {any} +*/ + toJson(): any; +} +/** +*/ +export class Bytes { + free(): void; +/** +*/ + constructor(); +/** +* @param {Uint8Array} uint8_array +* @returns {Bytes} +*/ + static fromUint8Array(uint8_array: Uint8Array): Bytes; +} +/** +*/ +export class ContractHash { + free(): void; +/** +* @param {string} input +*/ + constructor(input: string); +/** +* @param {string} input +* @returns {ContractHash} +*/ + static fromFormattedStr(input: string): ContractHash; +/** +* @returns {string} +*/ + toFormattedString(): string; +/** +* @param {Uint8Array} bytes +* @returns {ContractHash} +*/ + static fromUint8Array(bytes: Uint8Array): ContractHash; +} +/** +*/ +export class ContractPackageHash { + free(): void; +/** +* @param {string} input +*/ + constructor(input: string); +/** +* @param {string} input +* @returns {ContractPackageHash} +*/ + static fromFormattedStr(input: string): ContractPackageHash; +/** +* @returns {string} +*/ + toFormattedString(): string; +/** +* @param {Uint8Array} bytes +* @returns {ContractPackageHash} +*/ + static fromUint8Array(bytes: Uint8Array): ContractPackageHash; +} +/** +*/ +export class Deploy { + free(): void; +/** +* @param {any} deploy +*/ + constructor(deploy: any); +/** +* @returns {any} +*/ + toJson(): any; +/** +* @param {DeployStrParams} deploy_params +* @param {SessionStrParams} session_params +* @param {PaymentStrParams} payment_params +* @returns {Deploy} +*/ + static withPaymentAndSession(deploy_params: DeployStrParams, session_params: SessionStrParams, payment_params: PaymentStrParams): Deploy; +/** +* @param {string} amount +* @param {string} target_account +* @param {string | undefined} transfer_id +* @param {DeployStrParams} deploy_params +* @param {PaymentStrParams} payment_params +* @returns {Deploy} +*/ + static withTransfer(amount: string, target_account: string, transfer_id: string | undefined, deploy_params: DeployStrParams, payment_params: PaymentStrParams): Deploy; +/** +* @param {string} ttl +* @param {string | undefined} secret_key +* @returns {Deploy} +*/ + withTTL(ttl: string, secret_key?: string): Deploy; +/** +* @param {string} timestamp +* @param {string | undefined} secret_key +* @returns {Deploy} +*/ + withTimestamp(timestamp: string, secret_key?: string): Deploy; +/** +* @param {string} chain_name +* @param {string | undefined} secret_key +* @returns {Deploy} +*/ + withChainName(chain_name: string, secret_key?: string): Deploy; +/** +* @param {PublicKey} account +* @param {string | undefined} secret_key +* @returns {Deploy} +*/ + withAccount(account: PublicKey, secret_key?: string): Deploy; +/** +* @param {string} entry_point_name +* @param {string | undefined} secret_key +* @returns {Deploy} +*/ + withEntryPointName(entry_point_name: string, secret_key?: string): Deploy; +/** +* @param {ContractHash} hash +* @param {string | undefined} secret_key +* @returns {Deploy} +*/ + withHash(hash: ContractHash, secret_key?: string): Deploy; +/** +* @param {ContractPackageHash} package_hash +* @param {string | undefined} secret_key +* @returns {Deploy} +*/ + withPackageHash(package_hash: ContractPackageHash, secret_key?: string): Deploy; +/** +* @param {Bytes} module_bytes +* @param {string | undefined} secret_key +* @returns {Deploy} +*/ + withModuleBytes(module_bytes: Bytes, secret_key?: string): Deploy; +/** +* @param {string | undefined} secret_key +* @returns {Deploy} +*/ + withSecretKey(secret_key?: string): Deploy; +/** +* @param {string} amount +* @param {string | undefined} secret_key +* @returns {Deploy} +*/ + withStandardPayment(amount: string, secret_key?: string): Deploy; +/** +* @param {any} payment +* @param {string | undefined} secret_key +* @returns {Deploy} +*/ + withPayment(payment: any, secret_key?: string): Deploy; +/** +* @param {any} session +* @param {string | undefined} secret_key +* @returns {Deploy} +*/ + withSession(session: any, secret_key?: string): Deploy; +/** +* @returns {boolean} +*/ + validateDeploySize(): boolean; +/** +* @param {string} secret_key +* @returns {Deploy} +*/ + sign(secret_key: string): Deploy; +/** +* @returns {string} +*/ + TTL(): string; +/** +* @returns {string} +*/ + timestamp(): string; +/** +* @returns {string} +*/ + chainName(): string; +/** +* @returns {string} +*/ + account(): string; +/** +* @returns {any} +*/ + args(): any; +/** +* @param {any} js_value_arg +* @param {string | undefined} secret_key +* @returns {Deploy} +*/ + addArg(js_value_arg: any, secret_key?: string): Deploy; +} +/** +*/ +export class DeployHash { + free(): void; +/** +* @param {string} deploy_hash_hex_str +*/ + constructor(deploy_hash_hex_str: string); +/** +* @param {Digest} digest +* @returns {DeployHash} +*/ + static fromDigest(digest: Digest): DeployHash; +/** +* @returns {any} +*/ + toJson(): any; +/** +* @returns {string} +*/ + toString(): string; +} +/** +*/ +export class DeployStrParams { + free(): void; +/** +* @param {string} chain_name +* @param {string} session_account +* @param {string | undefined} secret_key +* @param {string | undefined} timestamp +* @param {string | undefined} ttl +*/ + constructor(chain_name: string, session_account: string, secret_key?: string, timestamp?: string, ttl?: string); +/** +*/ + setDefaultTimestamp(): void; +/** +*/ + setDefaultTTL(): void; +/** +*/ + chain_name: string; +/** +*/ + secret_key: string; +/** +*/ + session_account: string; +/** +*/ + timestamp?: string; +/** +*/ + ttl?: string; +} +/** +*/ +export class DictionaryAddr { + free(): void; +/** +* @param {Uint8Array} bytes +*/ + constructor(bytes: Uint8Array); +} +/** +*/ +export class DictionaryItemIdentifier { + free(): void; +/** +* @param {string} account_hash +* @param {string} dictionary_name +* @param {string} dictionary_item_key +* @returns {DictionaryItemIdentifier} +*/ + static newFromAccountInfo(account_hash: string, dictionary_name: string, dictionary_item_key: string): DictionaryItemIdentifier; +/** +* @param {string} contract_addr +* @param {string} dictionary_name +* @param {string} dictionary_item_key +* @returns {DictionaryItemIdentifier} +*/ + static newFromContractInfo(contract_addr: string, dictionary_name: string, dictionary_item_key: string): DictionaryItemIdentifier; +/** +* @param {string} seed_uref +* @param {string} dictionary_item_key +* @returns {DictionaryItemIdentifier} +*/ + static newFromSeedUref(seed_uref: string, dictionary_item_key: string): DictionaryItemIdentifier; +/** +* @param {string} dictionary_key +* @returns {DictionaryItemIdentifier} +*/ + static newFromDictionaryKey(dictionary_key: string): DictionaryItemIdentifier; +/** +* @returns {any} +*/ + toJson(): any; +} +/** +*/ +export class DictionaryItemStrParams { + free(): void; +/** +*/ + constructor(); +/** +* @param {string} key +* @param {string} dictionary_name +* @param {string} dictionary_item_key +*/ + setAccountNamedKey(key: string, dictionary_name: string, dictionary_item_key: string): void; +/** +* @param {string} key +* @param {string} dictionary_name +* @param {string} dictionary_item_key +*/ + setContractNamedKey(key: string, dictionary_name: string, dictionary_item_key: string): void; +/** +* @param {string} seed_uref +* @param {string} dictionary_item_key +*/ + setUref(seed_uref: string, dictionary_item_key: string): void; +/** +* @param {string} value +*/ + setDictionary(value: string): void; +/** +* @returns {any} +*/ + toJson(): any; +} +/** +*/ +export class Digest { + free(): void; +/** +* @param {string} digest_hex_str +*/ + constructor(digest_hex_str: string); +/** +* @param {string} digest_hex_str +* @returns {Digest} +*/ + static fromString(digest_hex_str: string): Digest; +/** +* @param {Uint8Array} bytes +* @returns {Digest} +*/ + static fromDigest(bytes: Uint8Array): Digest; +/** +* @returns {any} +*/ + toJson(): any; +/** +* @returns {string} +*/ + toString(): string; +} +/** +*/ +export class EraId { + free(): void; +/** +* @param {bigint} value +*/ + constructor(value: bigint); +/** +* @returns {bigint} +*/ + value(): bigint; +} +/** +*/ +export class GetAccountResult { + free(): void; +/** +* @returns {any} +*/ + toJson(): any; +/** +*/ + readonly account: any; +/** +*/ + readonly api_version: any; +/** +*/ + readonly merkle_proof: string; +} +/** +*/ +export class GetAuctionInfoResult { + free(): void; +/** +* Converts the GetAuctionInfoResult to a JsValue. +* @returns {any} +*/ + toJson(): any; +/** +* Gets the API version as a JsValue. +*/ + readonly api_version: any; +/** +* Gets the auction state as a JsValue. +*/ + readonly auction_state: any; +} +/** +*/ +export class GetBalanceResult { + free(): void; +/** +* Converts the GetBalanceResult to a JsValue. +* @returns {any} +*/ + toJson(): any; +/** +* Gets the API version as a JsValue. +*/ + readonly api_version: any; +/** +* Gets the balance value as a JsValue. +*/ + readonly balance_value: any; +/** +* Gets the Merkle proof as a string. +*/ + readonly merkle_proof: string; +} +/** +*/ +export class GetBlockResult { + free(): void; +/** +* Converts the GetBlockResult to a JsValue. +* @returns {any} +*/ + toJson(): any; +/** +* Gets the API version as a JsValue. +*/ + readonly api_version: any; +/** +* Gets the block information as a JsValue. +*/ + readonly block: any; +} +/** +*/ +export class GetBlockTransfersResult { + free(): void; +/** +* Converts the GetBlockTransfersResult to a JsValue. +* @returns {any} +*/ + toJson(): any; +/** +* Gets the API version as a JsValue. +*/ + readonly api_version: any; +/** +* Gets the block hash as an Option. +*/ + readonly block_hash: BlockHash | undefined; +/** +* Gets the transfers as a JsValue. +*/ + readonly transfers: any; +} +/** +* A struct representing the result of the `get_chainspec` function. +*/ +export class GetChainspecResult { + free(): void; +/** +* Converts the `GetChainspecResult` to a JsValue. +* @returns {any} +*/ + toJson(): any; +/** +* Gets the API version as a JsValue. +*/ + readonly api_version: any; +/** +* Gets the chainspec bytes as a JsValue. +*/ + readonly chainspec_bytes: any; +} +/** +*/ +export class GetDeployResult { + free(): void; +/** +* Converts the result to a JSON JavaScript value. +* @returns {any} +*/ + toJson(): any; +/** +* Gets the API version as a JavaScript value. +*/ + readonly api_version: any; +/** +* Gets the deploy information. +*/ + readonly deploy: Deploy; +} +/** +*/ +export class GetDictionaryItemResult { + free(): void; +/** +* Converts the GetDictionaryItemResult to a JsValue. +* @returns {any} +*/ + toJson(): any; +/** +* Gets the API version as a JsValue. +*/ + readonly api_version: any; +/** +* Gets the dictionary key as a String. +*/ + readonly dictionary_key: string; +/** +* Gets the merkle proof as a String. +*/ + readonly merkle_proof: string; +/** +* Gets the stored value as a JsValue. +*/ + readonly stored_value: any; +} +/** +*/ +export class GetEraInfoResult { + free(): void; +/** +* @returns {any} +*/ + toJson(): any; +/** +*/ + readonly api_version: any; +/** +*/ + readonly era_summary: any; +} +/** +* Wrapper struct for the `GetEraSummaryResult` from casper_client. +*/ +export class GetEraSummaryResult { + free(): void; +/** +* Converts the GetEraSummaryResult to a JsValue. +* @returns {any} +*/ + toJson(): any; +/** +* Gets the API version as a JsValue. +*/ + readonly api_version: any; +/** +* Gets the era summary as a JsValue. +*/ + readonly era_summary: any; +} +/** +* Wrapper struct for the `GetNodeStatusResult` from casper_client. +*/ +export class GetNodeStatusResult { + free(): void; +/** +* Converts the GetNodeStatusResult to a JsValue. +* @returns {any} +*/ + toJson(): any; +/** +* Gets the API version as a JsValue. +*/ + readonly api_version: any; +/** +* Gets the available block range as a JsValue. +*/ + readonly available_block_range: any; +/** +* Gets the block sync information as a JsValue. +*/ + readonly block_sync: any; +/** +* Gets the build version as a String. +*/ + readonly build_version: string; +/** +* Gets the chainspec name as a String. +*/ + readonly chainspec_name: string; +/** +* Gets information about the last added block as a JsValue. +*/ + readonly last_added_block_info: any; +/** +* Gets the last progress information as a JsValue. +*/ + readonly last_progress: any; +/** +* Gets information about the next upgrade as a JsValue. +*/ + readonly next_upgrade: any; +/** +* Gets the public signing key as an Option. +*/ + readonly our_public_signing_key: PublicKey | undefined; +/** +* Gets the list of peers as a JsValue. +*/ + readonly peers: any; +/** +* Gets the reactor state information as a JsValue. +*/ + readonly reactor_state: any; +/** +* Gets the round length as a JsValue. +*/ + readonly round_length: any; +/** +* Gets the starting state root hash as a Digest. +*/ + readonly starting_state_root_hash: Digest; +/** +* Gets the uptime information as a JsValue. +*/ + readonly uptime: any; +} +/** +* A wrapper for the `GetPeersResult` type from the Casper client. +*/ +export class GetPeersResult { + free(): void; +/** +* Converts the result to JSON format as a JavaScript value. +* @returns {any} +*/ + toJson(): any; +/** +* Gets the API version as a JSON value. +*/ + readonly api_version: any; +/** +* Gets the peers as a JSON value. +*/ + readonly peers: any; +} +/** +* Wrapper struct for the `GetStateRootHashResult` from casper_client. +*/ +export class GetStateRootHashResult { + free(): void; +/** +* Converts the GetStateRootHashResult to a JsValue. +* @returns {any} +*/ + toJson(): any; +/** +* Gets the API version as a JsValue. +*/ + readonly api_version: any; +/** +* Gets the state root hash as an Option. +*/ + readonly state_root_hash: Digest | undefined; +/** +* Gets the state root hash as a String. +*/ + readonly state_root_hash_as_string: string; +} +/** +* Wrapper struct for the `GetValidatorChangesResult` from casper_client. +*/ +export class GetValidatorChangesResult { + free(): void; +/** +* Converts the GetValidatorChangesResult to a JsValue. +* @returns {any} +*/ + toJson(): any; +/** +* Gets the API version as a JsValue. +*/ + readonly api_version: any; +/** +* Gets the validator changes as a JsValue. +*/ + readonly changes: any; +} +/** +*/ +export class GlobalStateIdentifier { + free(): void; +/** +* @param {GlobalStateIdentifier} global_state_identifier +*/ + constructor(global_state_identifier: GlobalStateIdentifier); +/** +* @param {BlockHash} block_hash +* @returns {GlobalStateIdentifier} +*/ + static fromBlockHash(block_hash: BlockHash): GlobalStateIdentifier; +/** +* @param {bigint} block_height +* @returns {GlobalStateIdentifier} +*/ + static fromBlockHeight(block_height: bigint): GlobalStateIdentifier; +/** +* @param {Digest} state_root_hash +* @returns {GlobalStateIdentifier} +*/ + static fromStateRootHash(state_root_hash: Digest): GlobalStateIdentifier; +/** +* @returns {any} +*/ + toJson(): any; +} +/** +*/ +export class HashAddr { + free(): void; +/** +* @param {Uint8Array} bytes +*/ + constructor(bytes: Uint8Array); +} +/** +*/ +export class Key { + free(): void; +/** +* @param {Key} key +*/ + constructor(key: Key); +/** +* @returns {any} +*/ + toJson(): any; +/** +* @param {URef} key +* @returns {Key} +*/ + static fromURef(key: URef): Key; +/** +* @param {DeployHash} key +* @returns {Key} +*/ + static fromDeployInfo(key: DeployHash): Key; +/** +* @param {AccountHash} key +* @returns {Key} +*/ + static fromAccount(key: AccountHash): Key; +/** +* @param {HashAddr} key +* @returns {Key} +*/ + static fromHash(key: HashAddr): Key; +/** +* @param {Uint8Array} key +* @returns {TransferAddr} +*/ + static fromTransfer(key: Uint8Array): TransferAddr; +/** +* @param {EraId} key +* @returns {Key} +*/ + static fromEraInfo(key: EraId): Key; +/** +* @param {URefAddr} key +* @returns {Key} +*/ + static fromBalance(key: URefAddr): Key; +/** +* @param {AccountHash} key +* @returns {Key} +*/ + static fromBid(key: AccountHash): Key; +/** +* @param {AccountHash} key +* @returns {Key} +*/ + static fromWithdraw(key: AccountHash): Key; +/** +* @param {DictionaryAddr} key +* @returns {Key} +*/ + static fromDictionaryAddr(key: DictionaryAddr): Key; +/** +* @returns {DictionaryAddr | undefined} +*/ + asDictionaryAddr(): DictionaryAddr | undefined; +/** +* @returns {Key} +*/ + static fromSystemContractRegistry(): Key; +/** +* @returns {Key} +*/ + static fromEraSummary(): Key; +/** +* @param {AccountHash} key +* @returns {Key} +*/ + static fromUnbond(key: AccountHash): Key; +/** +* @returns {Key} +*/ + static fromChainspecRegistry(): Key; +/** +* @returns {Key} +*/ + static fromChecksumRegistry(): Key; +/** +* @returns {string} +*/ + toFormattedString(): string; +/** +* @param {any} input +* @returns {Key} +*/ + static fromFormattedString(input: any): Key; +/** +* @param {URef} seed_uref +* @param {Uint8Array} dictionary_item_key +* @returns {Key} +*/ + static fromDictionaryKey(seed_uref: URef, dictionary_item_key: Uint8Array): Key; +/** +* @returns {boolean} +*/ + isDictionaryKey(): boolean; +/** +* @returns {AccountHash | undefined} +*/ + intoAccount(): AccountHash | undefined; +/** +* @returns {HashAddr | undefined} +*/ + intoHash(): HashAddr | undefined; +/** +* @returns {URefAddr | undefined} +*/ + asBalance(): URefAddr | undefined; +/** +* @returns {URef | undefined} +*/ + intoURef(): URef | undefined; +/** +* @returns {Key | undefined} +*/ + urefToHash(): Key | undefined; +/** +* @returns {Key | undefined} +*/ + withdrawToUnbond(): Key | undefined; +} +/** +* Wrapper struct for the `ListRpcsResult` from casper_client. +*/ +export class ListRpcsResult { + free(): void; +/** +* Converts the ListRpcsResult to a JsValue. +* @returns {any} +*/ + toJson(): any; +/** +* Gets the API version as a JsValue. +*/ + readonly api_version: any; +/** +* Gets the name of the RPC. +*/ + readonly name: string; +/** +* Gets the schema of the RPC as a JsValue. +*/ + readonly schema: any; +} +/** +*/ +export class Path { + free(): void; +/** +* @param {any} path +*/ + constructor(path: any); +/** +* @param {any} path +* @returns {Path} +*/ + static fromArray(path: any): Path; +/** +* @returns {any} +*/ + toJson(): any; +/** +* @returns {string} +*/ + toString(): string; +/** +* @returns {boolean} +*/ + is_empty(): boolean; +} +/** +*/ +export class PaymentStrParams { + free(): void; +/** +* @param {string | undefined} payment_amount +* @param {string | undefined} payment_hash +* @param {string | undefined} payment_name +* @param {string | undefined} payment_package_hash +* @param {string | undefined} payment_package_name +* @param {string | undefined} payment_path +* @param {Array | undefined} payment_args_simple +* @param {string | undefined} payment_args_json +* @param {string | undefined} payment_args_complex +* @param {string | undefined} payment_version +* @param {string | undefined} payment_entry_point +*/ + constructor(payment_amount?: string, payment_hash?: string, payment_name?: string, payment_package_hash?: string, payment_package_name?: string, payment_path?: string, payment_args_simple?: Array, payment_args_json?: string, payment_args_complex?: string, payment_version?: string, payment_entry_point?: string); +/** +*/ + payment_amount: string; +/** +*/ + payment_args_complex: string; +/** +*/ + payment_args_json: string; +/** +*/ + payment_args_simple: Array; +/** +*/ + payment_entry_point: string; +/** +*/ + payment_hash: string; +/** +*/ + payment_name: string; +/** +*/ + payment_package_hash: string; +/** +*/ + payment_package_name: string; +/** +*/ + payment_path: string; +/** +*/ + payment_version: string; +} +/** +*/ +export class PeerEntry { + free(): void; +/** +*/ + readonly address: string; +/** +*/ + readonly node_id: string; +} +/** +*/ +export class PublicKey { + free(): void; +/** +* @param {string} public_key_hex_str +*/ + constructor(public_key_hex_str: string); +/** +* @param {Uint8Array} bytes +* @returns {PublicKey} +*/ + static fromUint8Array(bytes: Uint8Array): PublicKey; +/** +* @returns {AccountHash} +*/ + toAccountHash(): AccountHash; +/** +* @returns {URef} +*/ + toPurseUref(): URef; +/** +* @returns {any} +*/ + toJson(): any; +} +/** +*/ +export class PurseIdentifier { + free(): void; +/** +* @param {PublicKey} key +*/ + constructor(key: PublicKey); +/** +* @param {AccountHash} account_hash +* @returns {PurseIdentifier} +*/ + static fromAccountHash(account_hash: AccountHash): PurseIdentifier; +/** +* @param {URef} uref +* @returns {PurseIdentifier} +*/ + static fromURef(uref: URef): PurseIdentifier; +} +/** +*/ +export class PutDeployResult { + free(): void; +/** +* Converts PutDeployResult to a JavaScript object. +* @returns {any} +*/ + toJson(): any; +/** +* Gets the API version as a JavaScript value. +*/ + readonly api_version: any; +/** +* Gets the deploy hash associated with this result. +*/ + readonly deploy_hash: DeployHash; +} +/** +*/ +export class QueryBalanceResult { + free(): void; +/** +* Converts the QueryBalanceResult to a JsValue. +* @returns {any} +*/ + toJson(): any; +/** +* Gets the API version as a JsValue. +*/ + readonly api_version: any; +/** +* Gets the balance as a JsValue. +*/ + readonly balance: any; +} +/** +*/ +export class QueryGlobalStateResult { + free(): void; +/** +* Converts the QueryGlobalStateResult to a JsValue. +* @returns {any} +*/ + toJson(): any; +/** +* Gets the API version as a JsValue. +*/ + readonly api_version: any; +/** +* Gets the block header as a JsValue. +*/ + readonly block_header: any; +/** +* Gets the Merkle proof as a string. +*/ + readonly merkle_proof: string; +/** +* Gets the stored value as a JsValue. +*/ + readonly stored_value: any; +} +/** +*/ +export class SDK { + free(): void; +/** +* Parses deploy options from a JsValue. +* +* # Arguments +* +* * `options` - A JsValue containing deploy options to be parsed. +* +* # Returns +* +* Parsed deploy options as a `GetDeployOptions` struct. +* @param {any} options +* @returns {getDeployOptions} +*/ + get_deploy_options(options: any): getDeployOptions; +/** +* Retrieves deploy information using the provided options. +* +* # Arguments +* +* * `options` - An optional `GetDeployOptions` struct containing retrieval options. +* +* # Returns +* +* A `Result` containing either a `GetDeployResult` or an error. +* @param {getDeployOptions | undefined} options +* @returns {Promise} +*/ + get_deploy(options?: getDeployOptions): Promise; +/** +* Retrieves deploy information using the provided options, alias for `get_deploy_js_alias`. +* @param {getDeployOptions | undefined} options +* @returns {Promise} +*/ + info_get_deploy(options?: getDeployOptions): Promise; +/** +* @param {any} options +* @returns {getEraInfoOptions} +*/ + get_era_info_options(options: any): getEraInfoOptions; +/** +* @param {getEraInfoOptions | undefined} options +* @returns {Promise} +*/ + get_era_info(options?: getEraInfoOptions): Promise; +/** +* Parses state root hash options from a JsValue. +* +* # Arguments +* +* * `options` - A JsValue containing state root hash options to be parsed. +* +* # Returns +* +* Parsed state root hash options as a `GetStateRootHashOptions` struct. +* @param {any} options +* @returns {getStateRootHashOptions} +*/ + get_state_root_hash_options(options: any): getStateRootHashOptions; +/** +* Retrieves state root hash information using the provided options. +* +* # Arguments +* +* * `options` - An optional `GetStateRootHashOptions` struct containing retrieval options. +* +* # Returns +* +* A `Result` containing either a `GetStateRootHashResult` or a `JsError` in case of an error. +* +* # Errors +* +* Returns a `JsError` if there is an error during the retrieval process. +* @param {getStateRootHashOptions | undefined} options +* @returns {Promise} +*/ + get_state_root_hash(options?: getStateRootHashOptions): Promise; +/** +* Retrieves state root hash information using the provided options (alias for `get_state_root_hash_js_alias`). +* +* # Arguments +* +* * `options` - An optional `GetStateRootHashOptions` struct containing retrieval options. +* +* # Returns +* +* A `Result` containing either a `GetStateRootHashResult` or a `JsError` in case of an error. +* +* # Errors +* +* Returns a `JsError` if there is an error during the retrieval process. +* @param {getStateRootHashOptions | undefined} options +* @returns {Promise} +*/ + chain_get_state_root_hash(options?: getStateRootHashOptions): Promise; +/** +* Get options for speculative execution from a JavaScript value. +* @param {any} options +* @returns {getSpeculativeExecOptions} +*/ + speculative_exec_options(options: any): getSpeculativeExecOptions; +/** +* JS Alias for speculative execution. +* +* # Arguments +* +* * `options` - The options for speculative execution. +* +* # Returns +* +* A `Result` containing the result of the speculative execution or a `JsError` in case of an error. +* @param {getSpeculativeExecOptions | undefined} options +* @returns {Promise} +*/ + speculative_exec(options?: getSpeculativeExecOptions): Promise; +/** +* @param {string | undefined} node_address +* @param {number | undefined} verbosity +*/ + constructor(node_address?: string, verbosity?: number); +/** +* @param {string | undefined} node_address +* @returns {string} +*/ + getNodeAddress(node_address?: string): string; +/** +* @param {string | undefined} node_address +*/ + setNodeAddress(node_address?: string): void; +/** +* @param {number | undefined} verbosity +* @returns {number} +*/ + getVerbosity(verbosity?: number): number; +/** +* @param {number | undefined} verbosity +*/ + setVerbosity(verbosity?: number): void; +/** +* Puts a deploy using the provided options. +* +* # Arguments +* +* * `deploy` - The `Deploy` object to be sent. +* * `verbosity` - An optional `Verbosity` level for controlling the output verbosity. +* * `node_address` - An optional string specifying the node address to use for the request. +* +* # Returns +* +* A `Result` containing either a `PutDeployResult` or a `JsError` in case of an error. +* +* # Errors +* +* Returns a `JsError` if there is an error during the deploy process. +* @param {Deploy} deploy +* @param {number | undefined} verbosity +* @param {string | undefined} node_address +* @returns {Promise} +*/ + put_deploy(deploy: Deploy, verbosity?: number, node_address?: string): Promise; +/** +* JS Alias for `put_deploy_js_alias`. +* +* This function provides an alternative name for `put_deploy_js_alias`. +* @param {Deploy} deploy +* @param {number | undefined} verbosity +* @param {string | undefined} node_address +* @returns {Promise} +*/ + account_put_deploy(deploy: Deploy, verbosity?: number, node_address?: string): Promise; +/** +* JS Alias for `make_deploy`. +* +* # Arguments +* +* * `deploy_params` - The deploy parameters. +* * `session_params` - The session parameters. +* * `payment_params` - The payment parameters. +* +* # Returns +* +* A `Result` containing the created `Deploy` or a `JsError` in case of an error. +* @param {DeployStrParams} deploy_params +* @param {SessionStrParams} session_params +* @param {PaymentStrParams} payment_params +* @returns {Deploy} +*/ + make_deploy(deploy_params: DeployStrParams, session_params: SessionStrParams, payment_params: PaymentStrParams): Deploy; +/** +* JS Alias for speculative transfer. +* +* # Arguments +* +* * `amount` - The amount to transfer. +* * `target_account` - The target account. +* * `transfer_id` - An optional transfer ID (defaults to a random number). +* * `deploy_params` - The deployment parameters. +* * `payment_params` - The payment parameters. +* * `maybe_block_id_as_string` - An optional block ID as a string. +* * `maybe_block_identifier` - An optional block identifier. +* * `verbosity` - The verbosity level for logging (optional). +* * `node_address` - The address of the node to connect to (optional). +* +* # Returns +* +* A `Result` containing the result of the speculative transfer or a `JsError` in case of an error. +* @param {string} amount +* @param {string} target_account +* @param {string | undefined} transfer_id +* @param {DeployStrParams} deploy_params +* @param {PaymentStrParams} payment_params +* @param {string | undefined} maybe_block_id_as_string +* @param {BlockIdentifier | undefined} maybe_block_identifier +* @param {number | undefined} verbosity +* @param {string | undefined} node_address +* @returns {Promise} +*/ + speculative_transfer(amount: string, target_account: string, transfer_id: string | undefined, deploy_params: DeployStrParams, payment_params: PaymentStrParams, maybe_block_id_as_string?: string, maybe_block_identifier?: BlockIdentifier, verbosity?: number, node_address?: string): Promise; +/** +* JS Alias for `sign_deploy`. +* +* # Arguments +* +* * `deploy` - The deploy to sign. +* * `secret_key` - The secret key for signing. +* +* # Returns +* +* The signed `Deploy`. +* @param {Deploy} deploy +* @param {string} secret_key +* @returns {Deploy} +*/ + sign_deploy(deploy: Deploy, secret_key: string): Deploy; +/** +* Parses block transfers options from a JsValue. +* +* # Arguments +* +* * `options` - A JsValue containing block transfers options to be parsed. +* +* # Returns +* +* Parsed block transfers options as a `GetBlockTransfersOptions` struct. +* @param {any} options +* @returns {getBlockTransfersOptions} +*/ + get_block_transfers_options(options: any): getBlockTransfersOptions; +/** +* Retrieves block transfers information using the provided options. +* +* # Arguments +* +* * `options` - An optional `GetBlockTransfersOptions` struct containing retrieval options. +* +* # Returns +* +* A `Result` containing either a `GetBlockTransfersResult` or a `JsError` in case of an error. +* +* # Errors +* +* Returns a `JsError` if there is an error during the retrieval process. +* @param {getBlockTransfersOptions | undefined} options +* @returns {Promise} +*/ + get_block_transfers(options?: getBlockTransfersOptions): Promise; +/** +* Parses query balance options from a JsValue. +* +* # Arguments +* +* * `options` - A JsValue containing query balance options to be parsed. +* +* # Returns +* +* Parsed query balance options as a `QueryBalanceOptions` struct. +* @param {any} options +* @returns {queryBalanceOptions} +*/ + query_balance_options(options: any): queryBalanceOptions; +/** +* Retrieves balance information using the provided options. +* +* # Arguments +* +* * `options` - An optional `QueryBalanceOptions` struct containing retrieval options. +* +* # Returns +* +* A `Result` containing either a `QueryBalanceResult` or a `JsError` in case of an error. +* +* # Errors +* +* Returns a `JsError` if there is an error during the retrieval process. +* @param {queryBalanceOptions | undefined} options +* @returns {Promise} +*/ + query_balance(options?: queryBalanceOptions): Promise; +/** +* JavaScript alias for deploying with deserialized parameters. +* +* # Arguments +* +* * `deploy_params` - Deploy parameters. +* * `session_params` - Session parameters. +* * `payment_params` - Payment parameters. +* * `verbosity` - An optional verbosity level. +* * `node_address` - An optional node address. +* +* # Returns +* +* A result containing PutDeployResult or a JsError. +* @param {DeployStrParams} deploy_params +* @param {SessionStrParams} session_params +* @param {PaymentStrParams} payment_params +* @param {number | undefined} verbosity +* @param {string | undefined} node_address +* @returns {Promise} +*/ + deploy(deploy_params: DeployStrParams, session_params: SessionStrParams, payment_params: PaymentStrParams, verbosity?: number, node_address?: string): Promise; +/** +* JS Alias for transferring funds. +* +* # Arguments +* +* * `amount` - The amount to transfer. +* * `target_account` - The target account. +* * `transfer_id` - An optional transfer ID (defaults to a random number). +* * `deploy_params` - The deployment parameters. +* * `payment_params` - The payment parameters. +* * `verbosity` - The verbosity level for logging (optional). +* * `node_address` - The address of the node to connect to (optional). +* +* # Returns +* +* A `Result` containing the result of the transfer or a `JsError` in case of an error. +* @param {string} amount +* @param {string} target_account +* @param {string | undefined} transfer_id +* @param {DeployStrParams} deploy_params +* @param {PaymentStrParams} payment_params +* @param {number | undefined} verbosity +* @param {string | undefined} node_address +* @returns {Promise} +*/ + transfer(amount: string, target_account: string, transfer_id: string | undefined, deploy_params: DeployStrParams, payment_params: PaymentStrParams, verbosity?: number, node_address?: string): Promise; +/** +* @param {any} options +* @returns {getAccountOptions} +*/ + get_account_options(options: any): getAccountOptions; +/** +* @param {getAccountOptions | undefined} options +* @returns {Promise} +*/ + get_account(options?: getAccountOptions): Promise; +/** +* @param {getAccountOptions | undefined} options +* @returns {Promise} +*/ + state_get_account_info(options?: getAccountOptions): Promise; +/** +* Parses era summary options from a JsValue. +* +* # Arguments +* +* * `options` - A JsValue containing era summary options to be parsed. +* +* # Returns +* +* Parsed era summary options as a `GetEraSummaryOptions` struct. +* @param {any} options +* @returns {getEraSummaryOptions} +*/ + get_era_summary_options(options: any): getEraSummaryOptions; +/** +* Retrieves era summary information using the provided options. +* +* # Arguments +* +* * `options` - An optional `GetEraSummaryOptions` struct containing retrieval options. +* +* # Returns +* +* A `Result` containing either a `GetEraSummaryResult` or a `JsError` in case of an error. +* +* # Errors +* +* Returns a `JsError` if there is an error during the retrieval process. +* @param {getEraSummaryOptions | undefined} options +* @returns {Promise} +*/ + get_era_summary(options?: getEraSummaryOptions): Promise; +/** +* Retrieves node status information using the provided options. +* +* # Arguments +* +* * `verbosity` - An optional `Verbosity` level for controlling the output verbosity. +* * `node_address` - An optional string specifying the node address to use for the request. +* +* # Returns +* +* A `Result` containing either a `GetNodeStatusResult` or a `JsError` in case of an error. +* +* # Errors +* +* Returns a `JsError` if there is an error during the retrieval process. +* @param {number | undefined} verbosity +* @param {string | undefined} node_address +* @returns {Promise} +*/ + get_node_status(verbosity?: number, node_address?: string): Promise; +/** +* Retrieves validator changes using the provided options. +* +* # Arguments +* +* * `verbosity` - An optional `Verbosity` level for controlling the output verbosity. +* * `node_address` - An optional string specifying the node address to use for the request. +* +* # Returns +* +* A `Result` containing either a `GetValidatorChangesResult` or a `JsError` in case of an error. +* +* # Errors +* +* Returns a `JsError` if there is an error during the retrieval process. +* @param {number | undefined} verbosity +* @param {string | undefined} node_address +* @returns {Promise} +*/ + get_validator_changes(verbosity?: number, node_address?: string): Promise; +/** +* Lists available RPCs using the provided options. +* +* # Arguments +* +* * `verbosity` - An optional `Verbosity` level for controlling the output verbosity. +* * `node_address` - An optional string specifying the node address to use for the request. +* +* # Returns +* +* A `Result` containing either a `ListRpcsResult` or a `JsError` in case of an error. +* +* # Errors +* +* Returns a `JsError` if there is an error during the listing process. +* @param {number | undefined} verbosity +* @param {string | undefined} node_address +* @returns {Promise} +*/ + list_rpcs(verbosity?: number, node_address?: string): Promise; +/** +* Parses query global state options from a JsValue. +* +* # Arguments +* +* * `options` - A JsValue containing query global state options to be parsed. +* +* # Returns +* +* Parsed query global state options as a `QueryGlobalStateOptions` struct. +* @param {any} options +* @returns {queryGlobalStateOptions} +*/ + query_global_state_options(options: any): queryGlobalStateOptions; +/** +* Retrieves global state information using the provided options. +* +* # Arguments +* +* * `options` - An optional `QueryGlobalStateOptions` struct containing retrieval options. +* +* # Returns +* +* A `Result` containing either a `QueryGlobalStateResult` or a `JsError` in case of an error. +* +* # Errors +* +* Returns a `JsError` if there is an error during the retrieval process. +* @param {queryGlobalStateOptions | undefined} options +* @returns {Promise} +*/ + query_global_state(options?: queryGlobalStateOptions): Promise; +/** +* Parses auction info options from a JsValue. +* +* # Arguments +* +* * `options` - A JsValue containing auction info options to be parsed. +* +* # Returns +* +* Parsed auction info options as a `GetAuctionInfoOptions` struct. +* @param {any} options +* @returns {getAuctionInfoOptions} +*/ + get_auction_info_options(options: any): getAuctionInfoOptions; +/** +* Retrieves auction information using the provided options. +* +* # Arguments +* +* * `options` - An optional `GetAuctionInfoOptions` struct containing retrieval options. +* +* # Returns +* +* A `Result` containing either a `GetAuctionInfoResult` or a `JsError` in case of an error. +* +* # Errors +* +* Returns a `JsError` if there is an error during the retrieval process. +* @param {getAuctionInfoOptions | undefined} options +* @returns {Promise} +*/ + get_auction_info(options?: getAuctionInfoOptions): Promise; +/** +* Parses block options from a JsValue. +* +* # Arguments +* +* * `options` - A JsValue containing block options to be parsed. +* +* # Returns +* +* Parsed block options as a `GetBlockOptions` struct. +* @param {any} options +* @returns {getBlockOptions} +*/ + get_block_options(options: any): getBlockOptions; +/** +* Retrieves block information using the provided options. +* +* # Arguments +* +* * `options` - An optional `GetBlockOptions` struct containing retrieval options. +* +* # Returns +* +* A `Result` containing either a `GetBlockResult` or a `JsError` in case of an error. +* +* # Errors +* +* Returns a `JsError` if there is an error during the retrieval process. +* @param {getBlockOptions | undefined} options +* @returns {Promise} +*/ + get_block(options?: getBlockOptions): Promise; +/** +* JS Alias for the `get_block` method to maintain compatibility. +* +* # Arguments +* +* * `options` - An optional `GetBlockOptions` struct containing retrieval options. +* +* # Returns +* +* A `Result` containing either a `GetBlockResult` or a `JsError` in case of an error. +* +* # Errors +* +* Returns a `JsError` if there is an error during the retrieval process. +* @param {getBlockOptions | undefined} options +* @returns {Promise} +*/ + chain_get_block(options?: getBlockOptions): Promise; +/** +* Retrieves peers asynchronously. +* +* # Arguments +* +* * `verbosity` - Optional verbosity level. +* * `node_address` - Optional node address. +* +* # Returns +* +* A `Result` containing `GetPeersResult` or a `JsError` if an error occurs. +* @param {number | undefined} verbosity +* @param {string | undefined} node_address +* @returns {Promise} +*/ + get_peers(verbosity?: number, node_address?: string): Promise; +/** +* JS Alias for `make_transfer`. +* +* # Arguments +* +* * `amount` - The transfer amount. +* * `target_account` - The target account. +* * `transfer_id` - Optional transfer identifier. +* * `deploy_params` - The deploy parameters. +* * `payment_params` - The payment parameters. +* +* # Returns +* +* A `Result` containing the created `Deploy` or a `JsError` in case of an error. +* @param {string} amount +* @param {string} target_account +* @param {string | undefined} transfer_id +* @param {DeployStrParams} deploy_params +* @param {PaymentStrParams} payment_params +* @returns {Deploy} +*/ + make_transfer(amount: string, target_account: string, transfer_id: string | undefined, deploy_params: DeployStrParams, payment_params: PaymentStrParams): Deploy; +/** +* This function allows executing a deploy speculatively. +* +* # Arguments +* +* * `deploy_params` - Deployment parameters for the deploy. +* * `session_params` - Session parameters for the deploy. +* * `payment_params` - Payment parameters for the deploy. +* * `maybe_block_identifier` - Optional block identifier. +* * `verbosity` - Optional verbosity level. +* * `node_address` - Optional node address. +* +* # Returns +* +* A `Result` containing either a `SpeculativeExecResult` or a `JsError` in case of an error. +* @param {DeployStrParams} deploy_params +* @param {SessionStrParams} session_params +* @param {PaymentStrParams} payment_params +* @param {BlockIdentifier | undefined} maybe_block_identifier +* @param {number | undefined} verbosity +* @param {string | undefined} node_address +* @returns {Promise} +*/ + speculative_deploy(deploy_params: DeployStrParams, session_params: SessionStrParams, payment_params: PaymentStrParams, maybe_block_identifier?: BlockIdentifier, verbosity?: number, node_address?: string): Promise; +/** +* Parses balance options from a JsValue. +* +* # Arguments +* +* * `options` - A JsValue containing balance options to be parsed. +* +* # Returns +* +* Parsed balance options as a `GetBalanceOptions` struct. +* @param {any} options +* @returns {getBalanceOptions} +*/ + get_balance_options(options: any): getBalanceOptions; +/** +* Retrieves balance information using the provided options. +* +* # Arguments +* +* * `options` - An optional `GetBalanceOptions` struct containing retrieval options. +* +* # Returns +* +* A `Result` containing either a `GetBalanceResult` or a `JsError` in case of an error. +* +* # Errors +* +* Returns a `JsError` if there is an error during the retrieval process. +* @param {getBalanceOptions | undefined} options +* @returns {Promise} +*/ + get_balance(options?: getBalanceOptions): Promise; +/** +* JS Alias for `get_balance_js_alias`. +* +* # Arguments +* +* * `options` - An optional `GetBalanceOptions` struct containing retrieval options. +* +* # Returns +* +* A `Result` containing either a `GetBalanceResult` or a `JsError` in case of an error. +* @param {getBalanceOptions | undefined} options +* @returns {Promise} +*/ + state_get_balance(options?: getBalanceOptions): Promise; +/** +* Asynchronously retrieves the chainspec. +* +* # Arguments +* +* * `verbosity` - An optional `Verbosity` parameter. +* * `node_address` - An optional node address as a string. +* +* # Returns +* +* A `Result` containing either a `GetChainspecResult` or a `JsError` in case of an error. +* @param {number | undefined} verbosity +* @param {string | undefined} node_address +* @returns {Promise} +*/ + get_chainspec(verbosity?: number, node_address?: string): Promise; +/** +* Parses dictionary item options from a JsValue. +* +* # Arguments +* +* * `options` - A JsValue containing dictionary item options to be parsed. +* +* # Returns +* +* Parsed dictionary item options as a `GetDictionaryItemOptions` struct. +* @param {any} options +* @returns {getDictionaryItemOptions} +*/ + get_dictionary_item_options(options: any): getDictionaryItemOptions; +/** +* Retrieves dictionary item information using the provided options. +* +* # Arguments +* +* * `options` - An optional `GetDictionaryItemOptions` struct containing retrieval options. +* +* # Returns +* +* A `Result` containing either a `GetDictionaryItemResult` or a `JsError` in case of an error. +* +* # Errors +* +* Returns a `JsError` if there is an error during the retrieval process. +* @param {getDictionaryItemOptions | undefined} options +* @returns {Promise} +*/ + get_dictionary_item(options?: getDictionaryItemOptions): Promise; +/** +* JS Alias for `get_dictionary_item_js_alias` +* @param {getDictionaryItemOptions | undefined} options +* @returns {Promise} +*/ + state_get_dictionary_item(options?: getDictionaryItemOptions): Promise; +/** +* Deserialize query_contract_dict_options from a JavaScript object. +* @param {any} options +* @returns {queryContractDictOptions} +*/ + query_contract_dict_options(options: any): queryContractDictOptions; +/** +* JavaScript alias for query_contract_dict with deserialized options. +* @param {queryContractDictOptions | undefined} options +* @returns {Promise} +*/ + query_contract_dict(options?: queryContractDictOptions): Promise; +/** +* Deserialize query_contract_key_options from a JavaScript object. +* @param {any} options +* @returns {queryContractKeyOptions} +*/ + query_contract_key_options(options: any): queryContractKeyOptions; +/** +* JavaScript alias for query_contract_key with deserialized options. +* @param {queryContractKeyOptions | undefined} options +* @returns {Promise} +*/ + query_contract_key(options?: queryContractKeyOptions): Promise; +/** +* Installs a smart contract with the specified parameters and returns the result. +* +* # Arguments +* +* * `deploy_params` - The deploy parameters. +* * `session_params` - The session parameters. +* * `payment_amount` - The payment amount as a string. +* * `node_address` - An optional node address to send the request to. +* +* # Returns +* +* A `Result` containing either a `PutDeployResult` or a `JsError` in case of an error. +* +* # Errors +* +* Returns a `JsError` if there is an error during the installation. +* @param {DeployStrParams} deploy_params +* @param {SessionStrParams} session_params +* @param {string} payment_amount +* @param {string | undefined} node_address +* @returns {Promise} +*/ + install(deploy_params: DeployStrParams, session_params: SessionStrParams, payment_amount: string, node_address?: string): Promise; +/** +* Calls a smart contract entry point with the specified parameters and returns the result. +* +* # Arguments +* +* * `deploy_params` - The deploy parameters. +* * `session_params` - The session parameters. +* * `payment_amount` - The payment amount as a string. +* * `node_address` - An optional node address to send the request to. +* +* # Returns +* +* A `Result` containing either a `PutDeployResult` or a `JsError` in case of an error. +* +* # Errors +* +* Returns a `JsError` if there is an error during the call. +* @param {DeployStrParams} deploy_params +* @param {SessionStrParams} session_params +* @param {string} payment_amount +* @param {string | undefined} node_address +* @returns {Promise} +*/ + call_entrypoint(deploy_params: DeployStrParams, session_params: SessionStrParams, payment_amount: string, node_address?: string): Promise; +} +/** +*/ +export class SessionStrParams { + free(): void; +/** +* @param {string | undefined} session_hash +* @param {string | undefined} session_name +* @param {string | undefined} session_package_hash +* @param {string | undefined} session_package_name +* @param {string | undefined} session_path +* @param {Bytes | undefined} session_bytes +* @param {Array | undefined} session_args_simple +* @param {string | undefined} session_args_json +* @param {string | undefined} session_args_complex +* @param {string | undefined} session_version +* @param {string | undefined} session_entry_point +* @param {boolean | undefined} is_session_transfer +*/ + constructor(session_hash?: string, session_name?: string, session_package_hash?: string, session_package_name?: string, session_path?: string, session_bytes?: Bytes, session_args_simple?: Array, session_args_json?: string, session_args_complex?: string, session_version?: string, session_entry_point?: string, is_session_transfer?: boolean); +/** +*/ + is_session_transfer: boolean; +/** +*/ + session_args_complex: string; +/** +*/ + session_args_json: string; +/** +*/ + session_args_simple: Array; +/** +*/ + session_bytes: Bytes; +/** +*/ + session_entry_point: string; +/** +*/ + session_hash: string; +/** +*/ + session_name: string; +/** +*/ + session_package_hash: string; +/** +*/ + session_package_name: string; +/** +*/ + session_path: string; +/** +*/ + session_version: string; +} +/** +*/ +export class SpeculativeExecResult { + free(): void; +/** +* Convert the result to JSON format. +* @returns {any} +*/ + toJson(): any; +/** +* Get the API version of the result. +*/ + readonly api_version: any; +/** +* Get the block hash. +*/ + readonly block_hash: BlockHash; +/** +* Get the execution result. +*/ + readonly execution_result: any; +} +/** +*/ +export class TransferAddr { + free(): void; +/** +* @param {Uint8Array} bytes +*/ + constructor(bytes: Uint8Array); +} +/** +*/ +export class URef { + free(): void; +/** +* @param {string} uref_hex_str +* @param {number} access_rights +*/ + constructor(uref_hex_str: string, access_rights: number); +/** +* @param {Uint8Array} bytes +* @param {number} access_rights +* @returns {URef} +*/ + static fromUint8Array(bytes: Uint8Array, access_rights: number): URef; +/** +* @returns {string} +*/ + toFormattedString(): string; +/** +* @returns {any} +*/ + toJson(): any; +} +/** +*/ +export class URefAddr { + free(): void; +/** +* @param {Uint8Array} bytes +*/ + constructor(bytes: Uint8Array); +} +/** +*/ +export class getAccountOptions { + free(): void; +/** +*/ + account_identifier?: AccountIdentifier; +/** +*/ + account_identifier_as_string?: string; +/** +*/ + maybe_block_id_as_string?: string; +/** +*/ + maybe_block_identifier?: BlockIdentifier; +/** +*/ + node_address?: string; +/** +*/ + verbosity?: number; +} +/** +* Options for the `get_auction_info` method. +*/ +export class getAuctionInfoOptions { + free(): void; +/** +*/ + maybe_block_id_as_string?: string; +/** +*/ + maybe_block_identifier?: BlockIdentifier; +/** +*/ + node_address?: string; +/** +*/ + verbosity?: number; +} +/** +* Options for the `get_balance` method. +*/ +export class getBalanceOptions { + free(): void; +/** +*/ + node_address?: string; +/** +*/ + purse_uref?: URef; +/** +*/ + purse_uref_as_string?: string; +/** +*/ + state_root_hash?: Digest; +/** +*/ + state_root_hash_as_string?: string; +/** +*/ + verbosity?: number; +} +/** +* Options for the `get_block` method. +*/ +export class getBlockOptions { + free(): void; +/** +*/ + maybe_block_id_as_string?: string; +/** +*/ + maybe_block_identifier?: BlockIdentifier; +/** +*/ + node_address?: string; +/** +*/ + verbosity?: number; +} +/** +* Options for the `get_block_transfers` method. +*/ +export class getBlockTransfersOptions { + free(): void; +/** +*/ + maybe_block_id_as_string?: string; +/** +*/ + maybe_block_identifier?: BlockIdentifier; +/** +*/ + node_address?: string; +/** +*/ + verbosity?: number; +} +/** +* Options for the `get_deploy` method. +*/ +export class getDeployOptions { + free(): void; +/** +*/ + deploy_hash?: DeployHash; +/** +*/ + deploy_hash_as_string?: string; +/** +*/ + finalized_approvals?: boolean; +/** +*/ + node_address?: string; +/** +*/ + verbosity?: number; +} +/** +* Options for the `get_dictionary_item` method. +*/ +export class getDictionaryItemOptions { + free(): void; +/** +*/ + dictionary_item_identifier?: DictionaryItemIdentifier; +/** +*/ + dictionary_item_params?: DictionaryItemStrParams; +/** +*/ + node_address?: string; +/** +*/ + state_root_hash?: Digest; +/** +*/ + state_root_hash_as_string?: string; +/** +*/ + verbosity?: number; +} +/** +*/ +export class getEraInfoOptions { + free(): void; +/** +*/ + maybe_block_id_as_string?: string; +/** +*/ + maybe_block_identifier?: BlockIdentifier; +/** +*/ + node_address?: string; +/** +*/ + verbosity?: number; +} +/** +* Options for the `get_era_summary` method. +*/ +export class getEraSummaryOptions { + free(): void; +/** +*/ + maybe_block_id_as_string?: string; +/** +*/ + maybe_block_identifier?: BlockIdentifier; +/** +*/ + node_address?: string; +/** +*/ + verbosity?: number; +} +/** +* Options for speculative execution. +*/ +export class getSpeculativeExecOptions { + free(): void; +/** +* The deploy to execute. +*/ + deploy?: Deploy; +/** +* The deploy as a JSON string. +*/ + deploy_as_string?: string; +/** +* The block identifier as a string. +*/ + maybe_block_id_as_string?: string; +/** +* The block identifier. +*/ + maybe_block_identifier?: BlockIdentifier; +/** +* The node address. +*/ + node_address?: string; +/** +* The verbosity level for logging. +*/ + verbosity?: number; +} +/** +* Options for the `get_state_root_hash` method. +*/ +export class getStateRootHashOptions { + free(): void; +/** +*/ + maybe_block_id_as_string?: string; +/** +*/ + maybe_block_identifier?: BlockIdentifier; +/** +*/ + node_address?: string; +/** +*/ + verbosity?: number; +} +/** +* Options for the `query_balance` method. +*/ +export class queryBalanceOptions { + free(): void; +/** +*/ + global_state_identifier?: GlobalStateIdentifier; +/** +*/ + maybe_block_id_as_string?: string; +/** +*/ + node_address?: string; +/** +*/ + purse_identifier?: PurseIdentifier; +/** +*/ + purse_identifier_as_string?: string; +/** +*/ + state_root_hash?: Digest; +/** +*/ + state_root_hash_as_string?: string; +/** +*/ + verbosity?: number; +} +/** +*/ +export class queryContractDictOptions { + free(): void; +/** +*/ + dictionary_item_identifier?: DictionaryItemIdentifier; +/** +*/ + dictionary_item_params?: DictionaryItemStrParams; +/** +*/ + node_address?: string; +/** +*/ + state_root_hash?: Digest; +/** +*/ + state_root_hash_as_string?: string; +/** +*/ + verbosity?: number; +} +/** +*/ +export class queryContractKeyOptions { + free(): void; +/** +*/ + contract_key?: Key; +/** +*/ + contract_key_as_string?: string; +/** +*/ + global_state_identifier?: GlobalStateIdentifier; +/** +*/ + maybe_block_id_as_string?: string; +/** +*/ + node_address?: string; +/** +*/ + path?: Path; +/** +*/ + path_as_string?: string; +/** +*/ + state_root_hash?: Digest; +/** +*/ + state_root_hash_as_string?: string; +/** +*/ + verbosity?: number; +} +/** +* Options for the `query_global_state` method. +*/ +export class queryGlobalStateOptions { + free(): void; +/** +*/ + global_state_identifier?: GlobalStateIdentifier; +/** +*/ + key?: Key; +/** +*/ + key_as_string?: string; +/** +*/ + maybe_block_id_as_string?: string; +/** +*/ + node_address?: string; +/** +*/ + path?: Path; +/** +*/ + path_as_string?: string; +/** +*/ + state_root_hash?: Digest; +/** +*/ + state_root_hash_as_string?: string; +/** +*/ + verbosity?: number; +} diff --git a/pkg-nodejs/casper_rust_wasm_sdk.js b/pkg-nodejs/casper_rust_wasm_sdk.js new file mode 100644 index 000000000..b13dce599 --- /dev/null +++ b/pkg-nodejs/casper_rust_wasm_sdk.js @@ -0,0 +1,9007 @@ +let imports = {}; +imports['__wbindgen_placeholder__'] = module.exports; +let wasm; +const { TextDecoder, TextEncoder } = require(`util`); + +const heap = new Array(128).fill(undefined); + +heap.push(undefined, null, true, false); + +function getObject(idx) { return heap[idx]; } + +let heap_next = heap.length; + +function dropObject(idx) { + if (idx < 132) return; + heap[idx] = heap_next; + heap_next = idx; +} + +function takeObject(idx) { + const ret = getObject(idx); + dropObject(idx); + return ret; +} + +let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }); + +cachedTextDecoder.decode(); + +let cachedUint8Memory0 = null; + +function getUint8Memory0() { + if (cachedUint8Memory0 === null || cachedUint8Memory0.byteLength === 0) { + cachedUint8Memory0 = new Uint8Array(wasm.memory.buffer); + } + return cachedUint8Memory0; +} + +function getStringFromWasm0(ptr, len) { + ptr = ptr >>> 0; + return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len)); +} + +function addHeapObject(obj) { + if (heap_next === heap.length) heap.push(heap.length + 1); + const idx = heap_next; + heap_next = heap[idx]; + + heap[idx] = obj; + return idx; +} + +let WASM_VECTOR_LEN = 0; + +let cachedTextEncoder = new TextEncoder('utf-8'); + +const encodeString = (typeof cachedTextEncoder.encodeInto === 'function' + ? function (arg, view) { + return cachedTextEncoder.encodeInto(arg, view); +} + : function (arg, view) { + const buf = cachedTextEncoder.encode(arg); + view.set(buf); + return { + read: arg.length, + written: buf.length + }; +}); + +function passStringToWasm0(arg, malloc, realloc) { + + if (realloc === undefined) { + const buf = cachedTextEncoder.encode(arg); + const ptr = malloc(buf.length, 1) >>> 0; + getUint8Memory0().subarray(ptr, ptr + buf.length).set(buf); + WASM_VECTOR_LEN = buf.length; + return ptr; + } + + let len = arg.length; + let ptr = malloc(len, 1) >>> 0; + + const mem = getUint8Memory0(); + + let offset = 0; + + for (; offset < len; offset++) { + const code = arg.charCodeAt(offset); + if (code > 0x7F) break; + mem[ptr + offset] = code; + } + + if (offset !== len) { + if (offset !== 0) { + arg = arg.slice(offset); + } + ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0; + const view = getUint8Memory0().subarray(ptr + offset, ptr + len); + const ret = encodeString(arg, view); + + offset += ret.written; + } + + WASM_VECTOR_LEN = offset; + return ptr; +} + +function isLikeNone(x) { + return x === undefined || x === null; +} + +let cachedInt32Memory0 = null; + +function getInt32Memory0() { + if (cachedInt32Memory0 === null || cachedInt32Memory0.byteLength === 0) { + cachedInt32Memory0 = new Int32Array(wasm.memory.buffer); + } + return cachedInt32Memory0; +} + +function debugString(val) { + // primitive types + const type = typeof val; + if (type == 'number' || type == 'boolean' || val == null) { + return `${val}`; + } + if (type == 'string') { + return `"${val}"`; + } + if (type == 'symbol') { + const description = val.description; + if (description == null) { + return 'Symbol'; + } else { + return `Symbol(${description})`; + } + } + if (type == 'function') { + const name = val.name; + if (typeof name == 'string' && name.length > 0) { + return `Function(${name})`; + } else { + return 'Function'; + } + } + // objects + if (Array.isArray(val)) { + const length = val.length; + let debug = '['; + if (length > 0) { + debug += debugString(val[0]); + } + for(let i = 1; i < length; i++) { + debug += ', ' + debugString(val[i]); + } + debug += ']'; + return debug; + } + // Test for built-in + const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val)); + let className; + if (builtInMatches.length > 1) { + className = builtInMatches[1]; + } else { + // Failed to match the standard '[object ClassName]' + return toString.call(val); + } + if (className == 'Object') { + // we're a user defined class or Object + // JSON.stringify avoids problems with cycles, and is generally much + // easier than looping through ownProperties of `val`. + try { + return 'Object(' + JSON.stringify(val) + ')'; + } catch (_) { + return 'Object'; + } + } + // errors + if (val instanceof Error) { + return `${val.name}: ${val.message}\n${val.stack}`; + } + // TODO we could test for more things here, like `Set`s and `Map`s. + return className; +} + +function makeMutClosure(arg0, arg1, dtor, f) { + const state = { a: arg0, b: arg1, cnt: 1, dtor }; + const real = (...args) => { + // First up with a closure we increment the internal reference + // count. This ensures that the Rust closure environment won't + // be deallocated while we're invoking it. + state.cnt++; + const a = state.a; + state.a = 0; + try { + return f(a, state.b, ...args); + } finally { + if (--state.cnt === 0) { + wasm.__wbindgen_export_2.get(state.dtor)(a, state.b); + + } else { + state.a = a; + } + } + }; + real.original = state; + + return real; +} +function __wbg_adapter_32(arg0, arg1, arg2) { + wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__he9a0163254a4b264(arg0, arg1, addHeapObject(arg2)); +} + +function _assertClass(instance, klass) { + if (!(instance instanceof klass)) { + throw new Error(`expected instance of ${klass.name}`); + } + return instance.ptr; +} +/** +* Converts a hexadecimal string to a regular string. +* +* # Arguments +* +* * `hex_string` - The hexadecimal string to convert. +* +* # Returns +* +* A regular string containing the converted value. +* @param {string} hex_string +* @returns {string} +*/ +module.exports.hexToString = function(hex_string) { + let deferred2_0; + let deferred2_1; + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + const ptr0 = passStringToWasm0(hex_string, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + wasm.hexToString(retptr, ptr0, len0); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + deferred2_0 = r0; + deferred2_1 = r1; + return getStringFromWasm0(r0, r1); + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + wasm.__wbindgen_free(deferred2_0, deferred2_1, 1); + } +}; + +function getArrayU8FromWasm0(ptr, len) { + ptr = ptr >>> 0; + return getUint8Memory0().subarray(ptr / 1, ptr / 1 + len); +} +/** +* Converts a hexadecimal string to a Uint8Array. +* +* # Arguments +* +* * `hex_string` - The hexadecimal string to convert. +* +* # Returns +* +* A Uint8Array containing the converted value. +* @param {string} hex_string +* @returns {Uint8Array} +*/ +module.exports.hexToUint8Array = function(hex_string) { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + const ptr0 = passStringToWasm0(hex_string, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + wasm.hexToUint8Array(retptr, ptr0, len0); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + var v2 = getArrayU8FromWasm0(r0, r1).slice(); + wasm.__wbindgen_free(r0, r1 * 1); + return v2; + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } +}; + +/** +* Converts a Uint8Array to a `Bytes` object. +* +* # Arguments +* +* * `uint8_array` - The Uint8Array to convert. +* +* # Returns +* +* A `Bytes` object containing the converted value. +* @param {Uint8Array} uint8_array +* @returns {Bytes} +*/ +module.exports.uint8ArrayToBytes = function(uint8_array) { + const ret = wasm.uint8ArrayToBytes(addHeapObject(uint8_array)); + return Bytes.__wrap(ret); +}; + +/** +* Converts motes to CSPR (Casper tokens). +* +* # Arguments +* +* * `motes` - The motes value to convert. +* +* # Returns +* +* A string representing the CSPR amount. +* @param {string} motes +* @returns {string} +*/ +module.exports.motesToCSPR = function(motes) { + let deferred2_0; + let deferred2_1; + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + const ptr0 = passStringToWasm0(motes, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + wasm.motesToCSPR(retptr, ptr0, len0); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + deferred2_0 = r0; + deferred2_1 = r1; + return getStringFromWasm0(r0, r1); + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + wasm.__wbindgen_free(deferred2_0, deferred2_1, 1); + } +}; + +/** +* Pretty prints a JSON value. +* +* # Arguments +* +* * `value` - The JSON value to pretty print. +* * `verbosity` - An optional verbosity level for pretty printing. +* +* # Returns +* +* A pretty printed JSON value as a JsValue. +* @param {any} value +* @param {number | undefined} verbosity +* @returns {any} +*/ +module.exports.jsonPrettyPrint = function(value, verbosity) { + const ret = wasm.jsonPrettyPrint(addHeapObject(value), isLikeNone(verbosity) ? 3 : verbosity); + return takeObject(ret); +}; + +/** +* Converts a secret key to a corresponding public key. +* +* # Arguments +* +* * `secret_key` - The secret key in PEM format. +* +* # Returns +* +* A JsValue containing the corresponding public key. +* If an error occurs during the conversion, JsValue::null() is returned. +* @param {string} secret_key +* @returns {any} +*/ +module.exports.privateToPublicKey = function(secret_key) { + const ptr0 = passStringToWasm0(secret_key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + const ret = wasm.privateToPublicKey(ptr0, len0); + return takeObject(ret); +}; + +/** +* Gets the current timestamp. +* +* # Returns +* +* A JsValue containing the current timestamp. +* @returns {any} +*/ +module.exports.getTimestamp = function() { + const ret = wasm.getTimestamp(); + return takeObject(ret); +}; + +function passArray8ToWasm0(arg, malloc) { + const ptr = malloc(arg.length * 1, 1) >>> 0; + getUint8Memory0().set(arg, ptr / 1); + WASM_VECTOR_LEN = arg.length; + return ptr; +} +/** +* @param {Uint8Array} key +* @returns {TransferAddr} +*/ +module.exports.fromTransfer = function(key) { + const ptr0 = passArray8ToWasm0(key, wasm.__wbindgen_malloc); + const len0 = WASM_VECTOR_LEN; + const ret = wasm.fromTransfer(ptr0, len0); + return TransferAddr.__wrap(ret); +}; + +function handleError(f, args) { + try { + return f.apply(this, args); + } catch (e) { + wasm.__wbindgen_exn_store(addHeapObject(e)); + } +} +function __wbg_adapter_671(arg0, arg1, arg2, arg3) { + wasm.wasm_bindgen__convert__closures__invoke2_mut__h02a7a5846fd066d3(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3)); +} + +/** +*/ +module.exports.Verbosity = Object.freeze({ Low:0,"0":"Low",Medium:1,"1":"Medium",High:2,"2":"High", }); +/** +*/ +class AccessRights { + + static __wrap(ptr) { + ptr = ptr >>> 0; + const obj = Object.create(AccessRights.prototype); + obj.__wbg_ptr = ptr; + + return obj; + } + + __destroy_into_raw() { + const ptr = this.__wbg_ptr; + this.__wbg_ptr = 0; + + return ptr; + } + + free() { + const ptr = this.__destroy_into_raw(); + wasm.__wbg_accessrights_free(ptr); + } + /** + * @returns {number} + */ + static NONE() { + const ret = wasm.accessrights_NONE(); + return ret; + } + /** + * @returns {number} + */ + static READ() { + const ret = wasm.accessrights_READ(); + return ret; + } + /** + * @returns {number} + */ + static WRITE() { + const ret = wasm.accessrights_WRITE(); + return ret; + } + /** + * @returns {number} + */ + static ADD() { + const ret = wasm.accessrights_ADD(); + return ret; + } + /** + * @returns {number} + */ + static READ_ADD() { + const ret = wasm.accessrights_READ_ADD(); + return ret; + } + /** + * @returns {number} + */ + static READ_WRITE() { + const ret = wasm.accessrights_READ_WRITE(); + return ret; + } + /** + * @returns {number} + */ + static ADD_WRITE() { + const ret = wasm.accessrights_ADD_WRITE(); + return ret; + } + /** + * @returns {number} + */ + static READ_ADD_WRITE() { + const ret = wasm.accessrights_READ_ADD_WRITE(); + return ret; + } + /** + * @param {number} access_rights + */ + constructor(access_rights) { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.accessrights_new(retptr, access_rights); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + var r2 = getInt32Memory0()[retptr / 4 + 2]; + if (r2) { + throw takeObject(r1); + } + return AccessRights.__wrap(r0); + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {boolean} read + * @param {boolean} write + * @param {boolean} add + * @returns {AccessRights} + */ + static from_bits(read, write, add) { + const ret = wasm.accessrights_from_bits(read, write, add); + return AccessRights.__wrap(ret); + } + /** + * @returns {boolean} + */ + is_readable() { + const ret = wasm.accessrights_is_readable(this.__wbg_ptr); + return ret !== 0; + } + /** + * @returns {boolean} + */ + is_writeable() { + const ret = wasm.accessrights_is_writeable(this.__wbg_ptr); + return ret !== 0; + } + /** + * @returns {boolean} + */ + is_addable() { + const ret = wasm.accessrights_is_addable(this.__wbg_ptr); + return ret !== 0; + } + /** + * @returns {boolean} + */ + is_none() { + const ret = wasm.accessrights_is_none(this.__wbg_ptr); + return ret !== 0; + } +} +module.exports.AccessRights = AccessRights; +/** +*/ +class AccountHash { + + static __wrap(ptr) { + ptr = ptr >>> 0; + const obj = Object.create(AccountHash.prototype); + obj.__wbg_ptr = ptr; + + return obj; + } + + __destroy_into_raw() { + const ptr = this.__wbg_ptr; + this.__wbg_ptr = 0; + + return ptr; + } + + free() { + const ptr = this.__destroy_into_raw(); + wasm.__wbg_accounthash_free(ptr); + } + /** + * @param {string} account_hash_hex_str + */ + constructor(account_hash_hex_str) { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + const ptr0 = passStringToWasm0(account_hash_hex_str, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + wasm.accounthash_new(retptr, ptr0, len0); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + var r2 = getInt32Memory0()[retptr / 4 + 2]; + if (r2) { + throw takeObject(r1); + } + return AccountHash.__wrap(r0); + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string} formatted_str + * @returns {AccountHash} + */ + static fromFormattedStr(formatted_str) { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + const ptr0 = passStringToWasm0(formatted_str, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + wasm.accounthash_fromFormattedStr(retptr, ptr0, len0); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + var r2 = getInt32Memory0()[retptr / 4 + 2]; + if (r2) { + throw takeObject(r1); + } + return AccountHash.__wrap(r0); + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {PublicKey} public_key + * @returns {AccountHash} + */ + static fromPublicKey(public_key) { + _assertClass(public_key, PublicKey); + var ptr0 = public_key.__destroy_into_raw(); + const ret = wasm.accounthash_fromPublicKey(ptr0); + return AccountHash.__wrap(ret); + } + /** + * @returns {string} + */ + toFormattedString() { + let deferred1_0; + let deferred1_1; + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.accounthash_toFormattedString(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + deferred1_0 = r0; + deferred1_1 = r1; + return getStringFromWasm0(r0, r1); + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + wasm.__wbindgen_free(deferred1_0, deferred1_1, 1); + } + } + /** + * @param {Uint8Array} bytes + * @returns {AccountHash} + */ + static fromUint8Array(bytes) { + const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc); + const len0 = WASM_VECTOR_LEN; + const ret = wasm.accounthash_fromUint8Array(ptr0, len0); + return AccountHash.__wrap(ret); + } + /** + * @returns {any} + */ + toJson() { + const ret = wasm.accounthash_toJson(this.__wbg_ptr); + return takeObject(ret); + } +} +module.exports.AccountHash = AccountHash; +/** +*/ +class AccountIdentifier { + + static __wrap(ptr) { + ptr = ptr >>> 0; + const obj = Object.create(AccountIdentifier.prototype); + obj.__wbg_ptr = ptr; + + return obj; + } + + __destroy_into_raw() { + const ptr = this.__wbg_ptr; + this.__wbg_ptr = 0; + + return ptr; + } + + free() { + const ptr = this.__destroy_into_raw(); + wasm.__wbg_accountidentifier_free(ptr); + } + /** + * @param {string} formatted_str + */ + constructor(formatted_str) { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + const ptr0 = passStringToWasm0(formatted_str, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + wasm.accountidentifier_fromFormattedStr(retptr, ptr0, len0); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + var r2 = getInt32Memory0()[retptr / 4 + 2]; + if (r2) { + throw takeObject(r1); + } + return AccountIdentifier.__wrap(r0); + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string} formatted_str + * @returns {AccountIdentifier} + */ + static fromFormattedStr(formatted_str) { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + const ptr0 = passStringToWasm0(formatted_str, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + wasm.accountidentifier_fromFormattedStr(retptr, ptr0, len0); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + var r2 = getInt32Memory0()[retptr / 4 + 2]; + if (r2) { + throw takeObject(r1); + } + return AccountIdentifier.__wrap(r0); + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {PublicKey} key + * @returns {AccountIdentifier} + */ + static fromPublicKey(key) { + _assertClass(key, PublicKey); + var ptr0 = key.__destroy_into_raw(); + const ret = wasm.accountidentifier_fromPublicKey(ptr0); + return AccountIdentifier.__wrap(ret); + } + /** + * @param {AccountHash} account_hash + * @returns {AccountIdentifier} + */ + static fromAccountHash(account_hash) { + _assertClass(account_hash, AccountHash); + var ptr0 = account_hash.__destroy_into_raw(); + const ret = wasm.accountidentifier_fromAccountHash(ptr0); + return AccountIdentifier.__wrap(ret); + } + /** + * @returns {any} + */ + toJson() { + const ret = wasm.accountidentifier_toJson(this.__wbg_ptr); + return takeObject(ret); + } +} +module.exports.AccountIdentifier = AccountIdentifier; +/** +*/ +class ArgsSimple { + + static __wrap(ptr) { + ptr = ptr >>> 0; + const obj = Object.create(ArgsSimple.prototype); + obj.__wbg_ptr = ptr; + + return obj; + } + + __destroy_into_raw() { + const ptr = this.__wbg_ptr; + this.__wbg_ptr = 0; + + return ptr; + } + + free() { + const ptr = this.__destroy_into_raw(); + wasm.__wbg_argssimple_free(ptr); + } +} +module.exports.ArgsSimple = ArgsSimple; +/** +*/ +class BlockHash { + + static __wrap(ptr) { + ptr = ptr >>> 0; + const obj = Object.create(BlockHash.prototype); + obj.__wbg_ptr = ptr; + + return obj; + } + + __destroy_into_raw() { + const ptr = this.__wbg_ptr; + this.__wbg_ptr = 0; + + return ptr; + } + + free() { + const ptr = this.__destroy_into_raw(); + wasm.__wbg_blockhash_free(ptr); + } + /** + * @param {string} block_hash_hex_str + */ + constructor(block_hash_hex_str) { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + const ptr0 = passStringToWasm0(block_hash_hex_str, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + wasm.blockhash_new(retptr, ptr0, len0); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + var r2 = getInt32Memory0()[retptr / 4 + 2]; + if (r2) { + throw takeObject(r1); + } + return BlockHash.__wrap(r0); + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {Digest} digest + * @returns {BlockHash} + */ + static fromDigest(digest) { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + _assertClass(digest, Digest); + var ptr0 = digest.__destroy_into_raw(); + wasm.blockhash_fromDigest(retptr, ptr0); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + var r2 = getInt32Memory0()[retptr / 4 + 2]; + if (r2) { + throw takeObject(r1); + } + return BlockHash.__wrap(r0); + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @returns {any} + */ + toJson() { + const ret = wasm.blockhash_toJson(this.__wbg_ptr); + return takeObject(ret); + } + /** + * @returns {string} + */ + toString() { + let deferred1_0; + let deferred1_1; + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.blockhash_toString(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + deferred1_0 = r0; + deferred1_1 = r1; + return getStringFromWasm0(r0, r1); + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + wasm.__wbindgen_free(deferred1_0, deferred1_1, 1); + } + } +} +module.exports.BlockHash = BlockHash; +/** +*/ +class BlockIdentifier { + + static __wrap(ptr) { + ptr = ptr >>> 0; + const obj = Object.create(BlockIdentifier.prototype); + obj.__wbg_ptr = ptr; + + return obj; + } + + __destroy_into_raw() { + const ptr = this.__wbg_ptr; + this.__wbg_ptr = 0; + + return ptr; + } + + free() { + const ptr = this.__destroy_into_raw(); + wasm.__wbg_blockidentifier_free(ptr); + } + /** + * @param {BlockIdentifier} block_identifier + */ + constructor(block_identifier) { + _assertClass(block_identifier, BlockIdentifier); + var ptr0 = block_identifier.__destroy_into_raw(); + const ret = wasm.blockidentifier_new(ptr0); + return BlockIdentifier.__wrap(ret); + } + /** + * @param {BlockHash} hash + * @returns {BlockIdentifier} + */ + static from_hash(hash) { + _assertClass(hash, BlockHash); + var ptr0 = hash.__destroy_into_raw(); + const ret = wasm.blockidentifier_from_hash(ptr0); + return BlockIdentifier.__wrap(ret); + } + /** + * @param {bigint} height + * @returns {BlockIdentifier} + */ + static fromHeight(height) { + const ret = wasm.blockidentifier_fromHeight(height); + return BlockIdentifier.__wrap(ret); + } + /** + * @returns {any} + */ + toJson() { + const ret = wasm.blockidentifier_toJson(this.__wbg_ptr); + return takeObject(ret); + } +} +module.exports.BlockIdentifier = BlockIdentifier; +/** +*/ +class Bytes { + + static __wrap(ptr) { + ptr = ptr >>> 0; + const obj = Object.create(Bytes.prototype); + obj.__wbg_ptr = ptr; + + return obj; + } + + __destroy_into_raw() { + const ptr = this.__wbg_ptr; + this.__wbg_ptr = 0; + + return ptr; + } + + free() { + const ptr = this.__destroy_into_raw(); + wasm.__wbg_bytes_free(ptr); + } + /** + */ + constructor() { + const ret = wasm.bytes_new(); + return Bytes.__wrap(ret); + } + /** + * @param {Uint8Array} uint8_array + * @returns {Bytes} + */ + static fromUint8Array(uint8_array) { + const ret = wasm.bytes_fromUint8Array(addHeapObject(uint8_array)); + return Bytes.__wrap(ret); + } +} +module.exports.Bytes = Bytes; +/** +*/ +class ContractHash { + + static __wrap(ptr) { + ptr = ptr >>> 0; + const obj = Object.create(ContractHash.prototype); + obj.__wbg_ptr = ptr; + + return obj; + } + + __destroy_into_raw() { + const ptr = this.__wbg_ptr; + this.__wbg_ptr = 0; + + return ptr; + } + + free() { + const ptr = this.__destroy_into_raw(); + wasm.__wbg_contracthash_free(ptr); + } + /** + * @param {string} input + */ + constructor(input) { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + const ptr0 = passStringToWasm0(input, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + wasm.contracthash_fromString(retptr, ptr0, len0); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + var r2 = getInt32Memory0()[retptr / 4 + 2]; + if (r2) { + throw takeObject(r1); + } + return ContractHash.__wrap(r0); + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string} input + * @returns {ContractHash} + */ + static fromFormattedStr(input) { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + const ptr0 = passStringToWasm0(input, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + wasm.contracthash_fromFormattedStr(retptr, ptr0, len0); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + var r2 = getInt32Memory0()[retptr / 4 + 2]; + if (r2) { + throw takeObject(r1); + } + return ContractHash.__wrap(r0); + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @returns {string} + */ + toFormattedString() { + let deferred1_0; + let deferred1_1; + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.contracthash_toFormattedString(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + deferred1_0 = r0; + deferred1_1 = r1; + return getStringFromWasm0(r0, r1); + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + wasm.__wbindgen_free(deferred1_0, deferred1_1, 1); + } + } + /** + * @param {Uint8Array} bytes + * @returns {ContractHash} + */ + static fromUint8Array(bytes) { + const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc); + const len0 = WASM_VECTOR_LEN; + const ret = wasm.contracthash_fromUint8Array(ptr0, len0); + return ContractHash.__wrap(ret); + } +} +module.exports.ContractHash = ContractHash; +/** +*/ +class ContractPackageHash { + + static __wrap(ptr) { + ptr = ptr >>> 0; + const obj = Object.create(ContractPackageHash.prototype); + obj.__wbg_ptr = ptr; + + return obj; + } + + __destroy_into_raw() { + const ptr = this.__wbg_ptr; + this.__wbg_ptr = 0; + + return ptr; + } + + free() { + const ptr = this.__destroy_into_raw(); + wasm.__wbg_contractpackagehash_free(ptr); + } + /** + * @param {string} input + */ + constructor(input) { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + const ptr0 = passStringToWasm0(input, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + wasm.contractpackagehash_fromString(retptr, ptr0, len0); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + var r2 = getInt32Memory0()[retptr / 4 + 2]; + if (r2) { + throw takeObject(r1); + } + return ContractPackageHash.__wrap(r0); + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string} input + * @returns {ContractPackageHash} + */ + static fromFormattedStr(input) { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + const ptr0 = passStringToWasm0(input, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + wasm.contractpackagehash_fromFormattedStr(retptr, ptr0, len0); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + var r2 = getInt32Memory0()[retptr / 4 + 2]; + if (r2) { + throw takeObject(r1); + } + return ContractPackageHash.__wrap(r0); + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @returns {string} + */ + toFormattedString() { + let deferred1_0; + let deferred1_1; + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.contractpackagehash_toFormattedString(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + deferred1_0 = r0; + deferred1_1 = r1; + return getStringFromWasm0(r0, r1); + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + wasm.__wbindgen_free(deferred1_0, deferred1_1, 1); + } + } + /** + * @param {Uint8Array} bytes + * @returns {ContractPackageHash} + */ + static fromUint8Array(bytes) { + const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc); + const len0 = WASM_VECTOR_LEN; + const ret = wasm.contractpackagehash_fromUint8Array(ptr0, len0); + return ContractPackageHash.__wrap(ret); + } +} +module.exports.ContractPackageHash = ContractPackageHash; +/** +*/ +class Deploy { + + static __wrap(ptr) { + ptr = ptr >>> 0; + const obj = Object.create(Deploy.prototype); + obj.__wbg_ptr = ptr; + + return obj; + } + + __destroy_into_raw() { + const ptr = this.__wbg_ptr; + this.__wbg_ptr = 0; + + return ptr; + } + + free() { + const ptr = this.__destroy_into_raw(); + wasm.__wbg_deploy_free(ptr); + } + /** + * @param {any} deploy + */ + constructor(deploy) { + const ret = wasm.deploy_new(addHeapObject(deploy)); + return Deploy.__wrap(ret); + } + /** + * @returns {any} + */ + toJson() { + const ret = wasm.deploy_toJson(this.__wbg_ptr); + return takeObject(ret); + } + /** + * @param {DeployStrParams} deploy_params + * @param {SessionStrParams} session_params + * @param {PaymentStrParams} payment_params + * @returns {Deploy} + */ + static withPaymentAndSession(deploy_params, session_params, payment_params) { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + _assertClass(deploy_params, DeployStrParams); + var ptr0 = deploy_params.__destroy_into_raw(); + _assertClass(session_params, SessionStrParams); + var ptr1 = session_params.__destroy_into_raw(); + _assertClass(payment_params, PaymentStrParams); + var ptr2 = payment_params.__destroy_into_raw(); + wasm.deploy_withPaymentAndSession(retptr, ptr0, ptr1, ptr2); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + var r2 = getInt32Memory0()[retptr / 4 + 2]; + if (r2) { + throw takeObject(r1); + } + return Deploy.__wrap(r0); + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string} amount + * @param {string} target_account + * @param {string | undefined} transfer_id + * @param {DeployStrParams} deploy_params + * @param {PaymentStrParams} payment_params + * @returns {Deploy} + */ + static withTransfer(amount, target_account, transfer_id, deploy_params, payment_params) { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + const ptr0 = passStringToWasm0(amount, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + const ptr1 = passStringToWasm0(target_account, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len1 = WASM_VECTOR_LEN; + var ptr2 = isLikeNone(transfer_id) ? 0 : passStringToWasm0(transfer_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len2 = WASM_VECTOR_LEN; + _assertClass(deploy_params, DeployStrParams); + var ptr3 = deploy_params.__destroy_into_raw(); + _assertClass(payment_params, PaymentStrParams); + var ptr4 = payment_params.__destroy_into_raw(); + wasm.deploy_withTransfer(retptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, ptr4); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + var r2 = getInt32Memory0()[retptr / 4 + 2]; + if (r2) { + throw takeObject(r1); + } + return Deploy.__wrap(r0); + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string} ttl + * @param {string | undefined} secret_key + * @returns {Deploy} + */ + withTTL(ttl, secret_key) { + const ptr0 = passStringToWasm0(ttl, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + var ptr1 = isLikeNone(secret_key) ? 0 : passStringToWasm0(secret_key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len1 = WASM_VECTOR_LEN; + const ret = wasm.deploy_withTTL(this.__wbg_ptr, ptr0, len0, ptr1, len1); + return Deploy.__wrap(ret); + } + /** + * @param {string} timestamp + * @param {string | undefined} secret_key + * @returns {Deploy} + */ + withTimestamp(timestamp, secret_key) { + const ptr0 = passStringToWasm0(timestamp, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + var ptr1 = isLikeNone(secret_key) ? 0 : passStringToWasm0(secret_key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len1 = WASM_VECTOR_LEN; + const ret = wasm.deploy_withTimestamp(this.__wbg_ptr, ptr0, len0, ptr1, len1); + return Deploy.__wrap(ret); + } + /** + * @param {string} chain_name + * @param {string | undefined} secret_key + * @returns {Deploy} + */ + withChainName(chain_name, secret_key) { + const ptr0 = passStringToWasm0(chain_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + var ptr1 = isLikeNone(secret_key) ? 0 : passStringToWasm0(secret_key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len1 = WASM_VECTOR_LEN; + const ret = wasm.deploy_withChainName(this.__wbg_ptr, ptr0, len0, ptr1, len1); + return Deploy.__wrap(ret); + } + /** + * @param {PublicKey} account + * @param {string | undefined} secret_key + * @returns {Deploy} + */ + withAccount(account, secret_key) { + _assertClass(account, PublicKey); + var ptr0 = account.__destroy_into_raw(); + var ptr1 = isLikeNone(secret_key) ? 0 : passStringToWasm0(secret_key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len1 = WASM_VECTOR_LEN; + const ret = wasm.deploy_withAccount(this.__wbg_ptr, ptr0, ptr1, len1); + return Deploy.__wrap(ret); + } + /** + * @param {string} entry_point_name + * @param {string | undefined} secret_key + * @returns {Deploy} + */ + withEntryPointName(entry_point_name, secret_key) { + const ptr0 = passStringToWasm0(entry_point_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + var ptr1 = isLikeNone(secret_key) ? 0 : passStringToWasm0(secret_key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len1 = WASM_VECTOR_LEN; + const ret = wasm.deploy_withEntryPointName(this.__wbg_ptr, ptr0, len0, ptr1, len1); + return Deploy.__wrap(ret); + } + /** + * @param {ContractHash} hash + * @param {string | undefined} secret_key + * @returns {Deploy} + */ + withHash(hash, secret_key) { + _assertClass(hash, ContractHash); + var ptr0 = hash.__destroy_into_raw(); + var ptr1 = isLikeNone(secret_key) ? 0 : passStringToWasm0(secret_key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len1 = WASM_VECTOR_LEN; + const ret = wasm.deploy_withHash(this.__wbg_ptr, ptr0, ptr1, len1); + return Deploy.__wrap(ret); + } + /** + * @param {ContractPackageHash} package_hash + * @param {string | undefined} secret_key + * @returns {Deploy} + */ + withPackageHash(package_hash, secret_key) { + _assertClass(package_hash, ContractPackageHash); + var ptr0 = package_hash.__destroy_into_raw(); + var ptr1 = isLikeNone(secret_key) ? 0 : passStringToWasm0(secret_key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len1 = WASM_VECTOR_LEN; + const ret = wasm.deploy_withPackageHash(this.__wbg_ptr, ptr0, ptr1, len1); + return Deploy.__wrap(ret); + } + /** + * @param {Bytes} module_bytes + * @param {string | undefined} secret_key + * @returns {Deploy} + */ + withModuleBytes(module_bytes, secret_key) { + _assertClass(module_bytes, Bytes); + var ptr0 = module_bytes.__destroy_into_raw(); + var ptr1 = isLikeNone(secret_key) ? 0 : passStringToWasm0(secret_key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len1 = WASM_VECTOR_LEN; + const ret = wasm.deploy_withModuleBytes(this.__wbg_ptr, ptr0, ptr1, len1); + return Deploy.__wrap(ret); + } + /** + * @param {string | undefined} secret_key + * @returns {Deploy} + */ + withSecretKey(secret_key) { + var ptr0 = isLikeNone(secret_key) ? 0 : passStringToWasm0(secret_key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + const ret = wasm.deploy_withSecretKey(this.__wbg_ptr, ptr0, len0); + return Deploy.__wrap(ret); + } + /** + * @param {string} amount + * @param {string | undefined} secret_key + * @returns {Deploy} + */ + withStandardPayment(amount, secret_key) { + const ptr0 = passStringToWasm0(amount, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + var ptr1 = isLikeNone(secret_key) ? 0 : passStringToWasm0(secret_key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len1 = WASM_VECTOR_LEN; + const ret = wasm.deploy_withStandardPayment(this.__wbg_ptr, ptr0, len0, ptr1, len1); + return Deploy.__wrap(ret); + } + /** + * @param {any} payment + * @param {string | undefined} secret_key + * @returns {Deploy} + */ + withPayment(payment, secret_key) { + var ptr0 = isLikeNone(secret_key) ? 0 : passStringToWasm0(secret_key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + const ret = wasm.deploy_withPayment(this.__wbg_ptr, addHeapObject(payment), ptr0, len0); + return Deploy.__wrap(ret); + } + /** + * @param {any} session + * @param {string | undefined} secret_key + * @returns {Deploy} + */ + withSession(session, secret_key) { + var ptr0 = isLikeNone(secret_key) ? 0 : passStringToWasm0(secret_key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + const ret = wasm.deploy_withSession(this.__wbg_ptr, addHeapObject(session), ptr0, len0); + return Deploy.__wrap(ret); + } + /** + * @returns {boolean} + */ + validateDeploySize() { + const ret = wasm.deploy_validateDeploySize(this.__wbg_ptr); + return ret !== 0; + } + /** + * @param {string} secret_key + * @returns {Deploy} + */ + sign(secret_key) { + const ptr0 = passStringToWasm0(secret_key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + const ret = wasm.deploy_sign(this.__wbg_ptr, ptr0, len0); + return Deploy.__wrap(ret); + } + /** + * @returns {string} + */ + TTL() { + let deferred1_0; + let deferred1_1; + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.deploy_TTL(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + deferred1_0 = r0; + deferred1_1 = r1; + return getStringFromWasm0(r0, r1); + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + wasm.__wbindgen_free(deferred1_0, deferred1_1, 1); + } + } + /** + * @returns {string} + */ + timestamp() { + let deferred1_0; + let deferred1_1; + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.deploy_timestamp(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + deferred1_0 = r0; + deferred1_1 = r1; + return getStringFromWasm0(r0, r1); + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + wasm.__wbindgen_free(deferred1_0, deferred1_1, 1); + } + } + /** + * @returns {string} + */ + chainName() { + let deferred1_0; + let deferred1_1; + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.deploy_chainName(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + deferred1_0 = r0; + deferred1_1 = r1; + return getStringFromWasm0(r0, r1); + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + wasm.__wbindgen_free(deferred1_0, deferred1_1, 1); + } + } + /** + * @returns {string} + */ + account() { + let deferred1_0; + let deferred1_1; + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.deploy_account(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + deferred1_0 = r0; + deferred1_1 = r1; + return getStringFromWasm0(r0, r1); + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + wasm.__wbindgen_free(deferred1_0, deferred1_1, 1); + } + } + /** + * @returns {any} + */ + args() { + const ret = wasm.deploy_args(this.__wbg_ptr); + return takeObject(ret); + } + /** + * @param {any} js_value_arg + * @param {string | undefined} secret_key + * @returns {Deploy} + */ + addArg(js_value_arg, secret_key) { + var ptr0 = isLikeNone(secret_key) ? 0 : passStringToWasm0(secret_key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + const ret = wasm.deploy_addArg(this.__wbg_ptr, addHeapObject(js_value_arg), ptr0, len0); + return Deploy.__wrap(ret); + } +} +module.exports.Deploy = Deploy; +/** +*/ +class DeployHash { + + static __wrap(ptr) { + ptr = ptr >>> 0; + const obj = Object.create(DeployHash.prototype); + obj.__wbg_ptr = ptr; + + return obj; + } + + __destroy_into_raw() { + const ptr = this.__wbg_ptr; + this.__wbg_ptr = 0; + + return ptr; + } + + free() { + const ptr = this.__destroy_into_raw(); + wasm.__wbg_deployhash_free(ptr); + } + /** + * @param {string} deploy_hash_hex_str + */ + constructor(deploy_hash_hex_str) { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + const ptr0 = passStringToWasm0(deploy_hash_hex_str, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + wasm.deployhash_new(retptr, ptr0, len0); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + var r2 = getInt32Memory0()[retptr / 4 + 2]; + if (r2) { + throw takeObject(r1); + } + return DeployHash.__wrap(r0); + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {Digest} digest + * @returns {DeployHash} + */ + static fromDigest(digest) { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + _assertClass(digest, Digest); + var ptr0 = digest.__destroy_into_raw(); + wasm.deployhash_fromDigest(retptr, ptr0); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + var r2 = getInt32Memory0()[retptr / 4 + 2]; + if (r2) { + throw takeObject(r1); + } + return DeployHash.__wrap(r0); + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @returns {any} + */ + toJson() { + const ret = wasm.deployhash_toJson(this.__wbg_ptr); + return takeObject(ret); + } + /** + * @returns {string} + */ + toString() { + let deferred1_0; + let deferred1_1; + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.deployhash_toString(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + deferred1_0 = r0; + deferred1_1 = r1; + return getStringFromWasm0(r0, r1); + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + wasm.__wbindgen_free(deferred1_0, deferred1_1, 1); + } + } +} +module.exports.DeployHash = DeployHash; +/** +*/ +class DeployStrParams { + + static __wrap(ptr) { + ptr = ptr >>> 0; + const obj = Object.create(DeployStrParams.prototype); + obj.__wbg_ptr = ptr; + + return obj; + } + + __destroy_into_raw() { + const ptr = this.__wbg_ptr; + this.__wbg_ptr = 0; + + return ptr; + } + + free() { + const ptr = this.__destroy_into_raw(); + wasm.__wbg_deploystrparams_free(ptr); + } + /** + * @param {string} chain_name + * @param {string} session_account + * @param {string | undefined} secret_key + * @param {string | undefined} timestamp + * @param {string | undefined} ttl + */ + constructor(chain_name, session_account, secret_key, timestamp, ttl) { + const ptr0 = passStringToWasm0(chain_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + const ptr1 = passStringToWasm0(session_account, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len1 = WASM_VECTOR_LEN; + var ptr2 = isLikeNone(secret_key) ? 0 : passStringToWasm0(secret_key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len2 = WASM_VECTOR_LEN; + var ptr3 = isLikeNone(timestamp) ? 0 : passStringToWasm0(timestamp, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len3 = WASM_VECTOR_LEN; + var ptr4 = isLikeNone(ttl) ? 0 : passStringToWasm0(ttl, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len4 = WASM_VECTOR_LEN; + const ret = wasm.deploystrparams_new(ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, ptr4, len4); + return DeployStrParams.__wrap(ret); + } + /** + * @returns {string | undefined} + */ + get secret_key() { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.deploystrparams_secret_key(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + let v1; + if (r0 !== 0) { + v1 = getStringFromWasm0(r0, r1).slice(); + wasm.__wbindgen_free(r0, r1 * 1); + } + return v1; + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string} secret_key + */ + set secret_key(secret_key) { + const ptr0 = passStringToWasm0(secret_key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + wasm.deploystrparams_set_secret_key(this.__wbg_ptr, ptr0, len0); + } + /** + * @returns {string | undefined} + */ + get timestamp() { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.deploystrparams_timestamp(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + let v1; + if (r0 !== 0) { + v1 = getStringFromWasm0(r0, r1).slice(); + wasm.__wbindgen_free(r0, r1 * 1); + } + return v1; + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string | undefined} timestamp + */ + set timestamp(timestamp) { + var ptr0 = isLikeNone(timestamp) ? 0 : passStringToWasm0(timestamp, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + wasm.deploystrparams_set_timestamp(this.__wbg_ptr, ptr0, len0); + } + /** + */ + setDefaultTimestamp() { + wasm.deploystrparams_setDefaultTimestamp(this.__wbg_ptr); + } + /** + * @returns {string | undefined} + */ + get ttl() { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.deploystrparams_ttl(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + let v1; + if (r0 !== 0) { + v1 = getStringFromWasm0(r0, r1).slice(); + wasm.__wbindgen_free(r0, r1 * 1); + } + return v1; + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string | undefined} ttl + */ + set ttl(ttl) { + var ptr0 = isLikeNone(ttl) ? 0 : passStringToWasm0(ttl, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + wasm.deploystrparams_set_ttl(this.__wbg_ptr, ptr0, len0); + } + /** + */ + setDefaultTTL() { + wasm.deploystrparams_setDefaultTTL(this.__wbg_ptr); + } + /** + * @returns {string | undefined} + */ + get chain_name() { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.deploystrparams_chain_name(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + let v1; + if (r0 !== 0) { + v1 = getStringFromWasm0(r0, r1).slice(); + wasm.__wbindgen_free(r0, r1 * 1); + } + return v1; + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string} chain_name + */ + set chain_name(chain_name) { + const ptr0 = passStringToWasm0(chain_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + wasm.deploystrparams_set_chain_name(this.__wbg_ptr, ptr0, len0); + } + /** + * @returns {string | undefined} + */ + get session_account() { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.deploystrparams_session_account(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + let v1; + if (r0 !== 0) { + v1 = getStringFromWasm0(r0, r1).slice(); + wasm.__wbindgen_free(r0, r1 * 1); + } + return v1; + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string} session_account + */ + set session_account(session_account) { + const ptr0 = passStringToWasm0(session_account, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + wasm.deploystrparams_set_session_account(this.__wbg_ptr, ptr0, len0); + } +} +module.exports.DeployStrParams = DeployStrParams; +/** +*/ +class DictionaryAddr { + + static __wrap(ptr) { + ptr = ptr >>> 0; + const obj = Object.create(DictionaryAddr.prototype); + obj.__wbg_ptr = ptr; + + return obj; + } + + __destroy_into_raw() { + const ptr = this.__wbg_ptr; + this.__wbg_ptr = 0; + + return ptr; + } + + free() { + const ptr = this.__destroy_into_raw(); + wasm.__wbg_dictionaryaddr_free(ptr); + } + /** + * @param {Uint8Array} bytes + */ + constructor(bytes) { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc); + const len0 = WASM_VECTOR_LEN; + wasm.dictionaryaddr_new(retptr, ptr0, len0); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + var r2 = getInt32Memory0()[retptr / 4 + 2]; + if (r2) { + throw takeObject(r1); + } + return DictionaryAddr.__wrap(r0); + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } +} +module.exports.DictionaryAddr = DictionaryAddr; +/** +*/ +class DictionaryItemIdentifier { + + static __wrap(ptr) { + ptr = ptr >>> 0; + const obj = Object.create(DictionaryItemIdentifier.prototype); + obj.__wbg_ptr = ptr; + + return obj; + } + + __destroy_into_raw() { + const ptr = this.__wbg_ptr; + this.__wbg_ptr = 0; + + return ptr; + } + + free() { + const ptr = this.__destroy_into_raw(); + wasm.__wbg_dictionaryitemidentifier_free(ptr); + } + /** + * @param {string} account_hash + * @param {string} dictionary_name + * @param {string} dictionary_item_key + * @returns {DictionaryItemIdentifier} + */ + static newFromAccountInfo(account_hash, dictionary_name, dictionary_item_key) { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + const ptr0 = passStringToWasm0(account_hash, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + const ptr1 = passStringToWasm0(dictionary_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len1 = WASM_VECTOR_LEN; + const ptr2 = passStringToWasm0(dictionary_item_key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len2 = WASM_VECTOR_LEN; + wasm.dictionaryitemidentifier_newFromAccountInfo(retptr, ptr0, len0, ptr1, len1, ptr2, len2); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + var r2 = getInt32Memory0()[retptr / 4 + 2]; + if (r2) { + throw takeObject(r1); + } + return DictionaryItemIdentifier.__wrap(r0); + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string} contract_addr + * @param {string} dictionary_name + * @param {string} dictionary_item_key + * @returns {DictionaryItemIdentifier} + */ + static newFromContractInfo(contract_addr, dictionary_name, dictionary_item_key) { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + const ptr0 = passStringToWasm0(contract_addr, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + const ptr1 = passStringToWasm0(dictionary_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len1 = WASM_VECTOR_LEN; + const ptr2 = passStringToWasm0(dictionary_item_key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len2 = WASM_VECTOR_LEN; + wasm.dictionaryitemidentifier_newFromContractInfo(retptr, ptr0, len0, ptr1, len1, ptr2, len2); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + var r2 = getInt32Memory0()[retptr / 4 + 2]; + if (r2) { + throw takeObject(r1); + } + return DictionaryItemIdentifier.__wrap(r0); + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string} seed_uref + * @param {string} dictionary_item_key + * @returns {DictionaryItemIdentifier} + */ + static newFromSeedUref(seed_uref, dictionary_item_key) { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + const ptr0 = passStringToWasm0(seed_uref, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + const ptr1 = passStringToWasm0(dictionary_item_key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len1 = WASM_VECTOR_LEN; + wasm.dictionaryitemidentifier_newFromSeedUref(retptr, ptr0, len0, ptr1, len1); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + var r2 = getInt32Memory0()[retptr / 4 + 2]; + if (r2) { + throw takeObject(r1); + } + return DictionaryItemIdentifier.__wrap(r0); + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string} dictionary_key + * @returns {DictionaryItemIdentifier} + */ + static newFromDictionaryKey(dictionary_key) { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + const ptr0 = passStringToWasm0(dictionary_key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + wasm.dictionaryitemidentifier_newFromDictionaryKey(retptr, ptr0, len0); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + var r2 = getInt32Memory0()[retptr / 4 + 2]; + if (r2) { + throw takeObject(r1); + } + return DictionaryItemIdentifier.__wrap(r0); + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @returns {any} + */ + toJson() { + const ret = wasm.dictionaryitemidentifier_toJson(this.__wbg_ptr); + return takeObject(ret); + } +} +module.exports.DictionaryItemIdentifier = DictionaryItemIdentifier; +/** +*/ +class DictionaryItemStrParams { + + static __wrap(ptr) { + ptr = ptr >>> 0; + const obj = Object.create(DictionaryItemStrParams.prototype); + obj.__wbg_ptr = ptr; + + return obj; + } + + __destroy_into_raw() { + const ptr = this.__wbg_ptr; + this.__wbg_ptr = 0; + + return ptr; + } + + free() { + const ptr = this.__destroy_into_raw(); + wasm.__wbg_dictionaryitemstrparams_free(ptr); + } + /** + */ + constructor() { + const ret = wasm.dictionaryitemstrparams_new(); + return DictionaryItemStrParams.__wrap(ret); + } + /** + * @param {string} key + * @param {string} dictionary_name + * @param {string} dictionary_item_key + */ + setAccountNamedKey(key, dictionary_name, dictionary_item_key) { + const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + const ptr1 = passStringToWasm0(dictionary_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len1 = WASM_VECTOR_LEN; + const ptr2 = passStringToWasm0(dictionary_item_key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len2 = WASM_VECTOR_LEN; + wasm.dictionaryitemstrparams_setAccountNamedKey(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2); + } + /** + * @param {string} key + * @param {string} dictionary_name + * @param {string} dictionary_item_key + */ + setContractNamedKey(key, dictionary_name, dictionary_item_key) { + const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + const ptr1 = passStringToWasm0(dictionary_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len1 = WASM_VECTOR_LEN; + const ptr2 = passStringToWasm0(dictionary_item_key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len2 = WASM_VECTOR_LEN; + wasm.dictionaryitemstrparams_setContractNamedKey(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2); + } + /** + * @param {string} seed_uref + * @param {string} dictionary_item_key + */ + setUref(seed_uref, dictionary_item_key) { + const ptr0 = passStringToWasm0(seed_uref, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + const ptr1 = passStringToWasm0(dictionary_item_key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len1 = WASM_VECTOR_LEN; + wasm.dictionaryitemstrparams_setUref(this.__wbg_ptr, ptr0, len0, ptr1, len1); + } + /** + * @param {string} value + */ + setDictionary(value) { + const ptr0 = passStringToWasm0(value, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + wasm.dictionaryitemstrparams_setDictionary(this.__wbg_ptr, ptr0, len0); + } + /** + * @returns {any} + */ + toJson() { + const ret = wasm.dictionaryitemstrparams_toJson(this.__wbg_ptr); + return takeObject(ret); + } +} +module.exports.DictionaryItemStrParams = DictionaryItemStrParams; +/** +*/ +class Digest { + + static __wrap(ptr) { + ptr = ptr >>> 0; + const obj = Object.create(Digest.prototype); + obj.__wbg_ptr = ptr; + + return obj; + } + + __destroy_into_raw() { + const ptr = this.__wbg_ptr; + this.__wbg_ptr = 0; + + return ptr; + } + + free() { + const ptr = this.__destroy_into_raw(); + wasm.__wbg_digest_free(ptr); + } + /** + * @param {string} digest_hex_str + */ + constructor(digest_hex_str) { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + const ptr0 = passStringToWasm0(digest_hex_str, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + wasm.digest__new(retptr, ptr0, len0); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + var r2 = getInt32Memory0()[retptr / 4 + 2]; + if (r2) { + throw takeObject(r1); + } + return Digest.__wrap(r0); + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string} digest_hex_str + * @returns {Digest} + */ + static fromString(digest_hex_str) { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + const ptr0 = passStringToWasm0(digest_hex_str, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + wasm.digest__new(retptr, ptr0, len0); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + var r2 = getInt32Memory0()[retptr / 4 + 2]; + if (r2) { + throw takeObject(r1); + } + return Digest.__wrap(r0); + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {Uint8Array} bytes + * @returns {Digest} + */ + static fromDigest(bytes) { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc); + const len0 = WASM_VECTOR_LEN; + wasm.digest_fromDigest(retptr, ptr0, len0); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + var r2 = getInt32Memory0()[retptr / 4 + 2]; + if (r2) { + throw takeObject(r1); + } + return Digest.__wrap(r0); + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @returns {any} + */ + toJson() { + const ret = wasm.digest_toJson(this.__wbg_ptr); + return takeObject(ret); + } + /** + * @returns {string} + */ + toString() { + let deferred1_0; + let deferred1_1; + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.digest_toString(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + deferred1_0 = r0; + deferred1_1 = r1; + return getStringFromWasm0(r0, r1); + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + wasm.__wbindgen_free(deferred1_0, deferred1_1, 1); + } + } +} +module.exports.Digest = Digest; +/** +*/ +class EraId { + + static __wrap(ptr) { + ptr = ptr >>> 0; + const obj = Object.create(EraId.prototype); + obj.__wbg_ptr = ptr; + + return obj; + } + + __destroy_into_raw() { + const ptr = this.__wbg_ptr; + this.__wbg_ptr = 0; + + return ptr; + } + + free() { + const ptr = this.__destroy_into_raw(); + wasm.__wbg_eraid_free(ptr); + } + /** + * @param {bigint} value + */ + constructor(value) { + const ret = wasm.eraid_new(value); + return EraId.__wrap(ret); + } + /** + * @returns {bigint} + */ + value() { + const ret = wasm.eraid_value(this.__wbg_ptr); + return BigInt.asUintN(64, ret); + } +} +module.exports.EraId = EraId; +/** +*/ +class GetAccountResult { + + static __wrap(ptr) { + ptr = ptr >>> 0; + const obj = Object.create(GetAccountResult.prototype); + obj.__wbg_ptr = ptr; + + return obj; + } + + __destroy_into_raw() { + const ptr = this.__wbg_ptr; + this.__wbg_ptr = 0; + + return ptr; + } + + free() { + const ptr = this.__destroy_into_raw(); + wasm.__wbg_getaccountresult_free(ptr); + } + /** + * @returns {any} + */ + get api_version() { + const ret = wasm.getaccountresult_api_version(this.__wbg_ptr); + return takeObject(ret); + } + /** + * @returns {any} + */ + get account() { + const ret = wasm.getaccountresult_account(this.__wbg_ptr); + return takeObject(ret); + } + /** + * @returns {string} + */ + get merkle_proof() { + let deferred1_0; + let deferred1_1; + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.getaccountresult_merkle_proof(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + deferred1_0 = r0; + deferred1_1 = r1; + return getStringFromWasm0(r0, r1); + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + wasm.__wbindgen_free(deferred1_0, deferred1_1, 1); + } + } + /** + * @returns {any} + */ + toJson() { + const ret = wasm.getaccountresult_toJson(this.__wbg_ptr); + return takeObject(ret); + } +} +module.exports.GetAccountResult = GetAccountResult; +/** +*/ +class GetAuctionInfoResult { + + static __wrap(ptr) { + ptr = ptr >>> 0; + const obj = Object.create(GetAuctionInfoResult.prototype); + obj.__wbg_ptr = ptr; + + return obj; + } + + __destroy_into_raw() { + const ptr = this.__wbg_ptr; + this.__wbg_ptr = 0; + + return ptr; + } + + free() { + const ptr = this.__destroy_into_raw(); + wasm.__wbg_getauctioninforesult_free(ptr); + } + /** + * Gets the API version as a JsValue. + * @returns {any} + */ + get api_version() { + const ret = wasm.getauctioninforesult_api_version(this.__wbg_ptr); + return takeObject(ret); + } + /** + * Gets the auction state as a JsValue. + * @returns {any} + */ + get auction_state() { + const ret = wasm.getauctioninforesult_auction_state(this.__wbg_ptr); + return takeObject(ret); + } + /** + * Converts the GetAuctionInfoResult to a JsValue. + * @returns {any} + */ + toJson() { + const ret = wasm.getauctioninforesult_toJson(this.__wbg_ptr); + return takeObject(ret); + } +} +module.exports.GetAuctionInfoResult = GetAuctionInfoResult; +/** +*/ +class GetBalanceResult { + + static __wrap(ptr) { + ptr = ptr >>> 0; + const obj = Object.create(GetBalanceResult.prototype); + obj.__wbg_ptr = ptr; + + return obj; + } + + __destroy_into_raw() { + const ptr = this.__wbg_ptr; + this.__wbg_ptr = 0; + + return ptr; + } + + free() { + const ptr = this.__destroy_into_raw(); + wasm.__wbg_getbalanceresult_free(ptr); + } + /** + * Gets the API version as a JsValue. + * @returns {any} + */ + get api_version() { + const ret = wasm.getbalanceresult_api_version(this.__wbg_ptr); + return takeObject(ret); + } + /** + * Gets the balance value as a JsValue. + * @returns {any} + */ + get balance_value() { + const ret = wasm.getbalanceresult_balance_value(this.__wbg_ptr); + return takeObject(ret); + } + /** + * Gets the Merkle proof as a string. + * @returns {string} + */ + get merkle_proof() { + let deferred1_0; + let deferred1_1; + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.getbalanceresult_merkle_proof(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + deferred1_0 = r0; + deferred1_1 = r1; + return getStringFromWasm0(r0, r1); + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + wasm.__wbindgen_free(deferred1_0, deferred1_1, 1); + } + } + /** + * Converts the GetBalanceResult to a JsValue. + * @returns {any} + */ + toJson() { + const ret = wasm.getbalanceresult_toJson(this.__wbg_ptr); + return takeObject(ret); + } +} +module.exports.GetBalanceResult = GetBalanceResult; +/** +*/ +class GetBlockResult { + + static __wrap(ptr) { + ptr = ptr >>> 0; + const obj = Object.create(GetBlockResult.prototype); + obj.__wbg_ptr = ptr; + + return obj; + } + + __destroy_into_raw() { + const ptr = this.__wbg_ptr; + this.__wbg_ptr = 0; + + return ptr; + } + + free() { + const ptr = this.__destroy_into_raw(); + wasm.__wbg_getblockresult_free(ptr); + } + /** + * Gets the API version as a JsValue. + * @returns {any} + */ + get api_version() { + const ret = wasm.getblockresult_api_version(this.__wbg_ptr); + return takeObject(ret); + } + /** + * Gets the block information as a JsValue. + * @returns {any} + */ + get block() { + const ret = wasm.getblockresult_block(this.__wbg_ptr); + return takeObject(ret); + } + /** + * Converts the GetBlockResult to a JsValue. + * @returns {any} + */ + toJson() { + const ret = wasm.getblockresult_toJson(this.__wbg_ptr); + return takeObject(ret); + } +} +module.exports.GetBlockResult = GetBlockResult; +/** +*/ +class GetBlockTransfersResult { + + static __wrap(ptr) { + ptr = ptr >>> 0; + const obj = Object.create(GetBlockTransfersResult.prototype); + obj.__wbg_ptr = ptr; + + return obj; + } + + __destroy_into_raw() { + const ptr = this.__wbg_ptr; + this.__wbg_ptr = 0; + + return ptr; + } + + free() { + const ptr = this.__destroy_into_raw(); + wasm.__wbg_getblocktransfersresult_free(ptr); + } + /** + * Gets the API version as a JsValue. + * @returns {any} + */ + get api_version() { + const ret = wasm.getblocktransfersresult_api_version(this.__wbg_ptr); + return takeObject(ret); + } + /** + * Gets the block hash as an Option. + * @returns {BlockHash | undefined} + */ + get block_hash() { + const ret = wasm.getblocktransfersresult_block_hash(this.__wbg_ptr); + return ret === 0 ? undefined : BlockHash.__wrap(ret); + } + /** + * Gets the transfers as a JsValue. + * @returns {any} + */ + get transfers() { + const ret = wasm.getblocktransfersresult_transfers(this.__wbg_ptr); + return takeObject(ret); + } + /** + * Converts the GetBlockTransfersResult to a JsValue. + * @returns {any} + */ + toJson() { + const ret = wasm.getblocktransfersresult_toJson(this.__wbg_ptr); + return takeObject(ret); + } +} +module.exports.GetBlockTransfersResult = GetBlockTransfersResult; +/** +* A struct representing the result of the `get_chainspec` function. +*/ +class GetChainspecResult { + + static __wrap(ptr) { + ptr = ptr >>> 0; + const obj = Object.create(GetChainspecResult.prototype); + obj.__wbg_ptr = ptr; + + return obj; + } + + __destroy_into_raw() { + const ptr = this.__wbg_ptr; + this.__wbg_ptr = 0; + + return ptr; + } + + free() { + const ptr = this.__destroy_into_raw(); + wasm.__wbg_getchainspecresult_free(ptr); + } + /** + * Gets the API version as a JsValue. + * @returns {any} + */ + get api_version() { + const ret = wasm.getchainspecresult_api_version(this.__wbg_ptr); + return takeObject(ret); + } + /** + * Gets the chainspec bytes as a JsValue. + * @returns {any} + */ + get chainspec_bytes() { + const ret = wasm.getchainspecresult_chainspec_bytes(this.__wbg_ptr); + return takeObject(ret); + } + /** + * Converts the `GetChainspecResult` to a JsValue. + * @returns {any} + */ + toJson() { + const ret = wasm.getchainspecresult_toJson(this.__wbg_ptr); + return takeObject(ret); + } +} +module.exports.GetChainspecResult = GetChainspecResult; +/** +*/ +class GetDeployResult { + + static __wrap(ptr) { + ptr = ptr >>> 0; + const obj = Object.create(GetDeployResult.prototype); + obj.__wbg_ptr = ptr; + + return obj; + } + + __destroy_into_raw() { + const ptr = this.__wbg_ptr; + this.__wbg_ptr = 0; + + return ptr; + } + + free() { + const ptr = this.__destroy_into_raw(); + wasm.__wbg_getdeployresult_free(ptr); + } + /** + * Gets the API version as a JavaScript value. + * @returns {any} + */ + get api_version() { + const ret = wasm.getdeployresult_api_version(this.__wbg_ptr); + return takeObject(ret); + } + /** + * Gets the deploy information. + * @returns {Deploy} + */ + get deploy() { + const ret = wasm.getdeployresult_deploy(this.__wbg_ptr); + return Deploy.__wrap(ret); + } + /** + * Converts the result to a JSON JavaScript value. + * @returns {any} + */ + toJson() { + const ret = wasm.getdeployresult_toJson(this.__wbg_ptr); + return takeObject(ret); + } +} +module.exports.GetDeployResult = GetDeployResult; +/** +*/ +class GetDictionaryItemResult { + + static __wrap(ptr) { + ptr = ptr >>> 0; + const obj = Object.create(GetDictionaryItemResult.prototype); + obj.__wbg_ptr = ptr; + + return obj; + } + + __destroy_into_raw() { + const ptr = this.__wbg_ptr; + this.__wbg_ptr = 0; + + return ptr; + } + + free() { + const ptr = this.__destroy_into_raw(); + wasm.__wbg_getdictionaryitemresult_free(ptr); + } + /** + * Gets the API version as a JsValue. + * @returns {any} + */ + get api_version() { + const ret = wasm.getdictionaryitemresult_api_version(this.__wbg_ptr); + return takeObject(ret); + } + /** + * Gets the dictionary key as a String. + * @returns {string} + */ + get dictionary_key() { + let deferred1_0; + let deferred1_1; + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.getdictionaryitemresult_dictionary_key(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + deferred1_0 = r0; + deferred1_1 = r1; + return getStringFromWasm0(r0, r1); + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + wasm.__wbindgen_free(deferred1_0, deferred1_1, 1); + } + } + /** + * Gets the stored value as a JsValue. + * @returns {any} + */ + get stored_value() { + const ret = wasm.getdictionaryitemresult_stored_value(this.__wbg_ptr); + return takeObject(ret); + } + /** + * Gets the merkle proof as a String. + * @returns {string} + */ + get merkle_proof() { + let deferred1_0; + let deferred1_1; + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.getdictionaryitemresult_merkle_proof(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + deferred1_0 = r0; + deferred1_1 = r1; + return getStringFromWasm0(r0, r1); + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + wasm.__wbindgen_free(deferred1_0, deferred1_1, 1); + } + } + /** + * Converts the GetDictionaryItemResult to a JsValue. + * @returns {any} + */ + toJson() { + const ret = wasm.getdictionaryitemresult_toJson(this.__wbg_ptr); + return takeObject(ret); + } +} +module.exports.GetDictionaryItemResult = GetDictionaryItemResult; +/** +*/ +class GetEraInfoResult { + + static __wrap(ptr) { + ptr = ptr >>> 0; + const obj = Object.create(GetEraInfoResult.prototype); + obj.__wbg_ptr = ptr; + + return obj; + } + + __destroy_into_raw() { + const ptr = this.__wbg_ptr; + this.__wbg_ptr = 0; + + return ptr; + } + + free() { + const ptr = this.__destroy_into_raw(); + wasm.__wbg_geterainforesult_free(ptr); + } + /** + * @returns {any} + */ + get api_version() { + const ret = wasm.geterainforesult_api_version(this.__wbg_ptr); + return takeObject(ret); + } + /** + * @returns {any} + */ + get era_summary() { + const ret = wasm.geterainforesult_era_summary(this.__wbg_ptr); + return takeObject(ret); + } + /** + * @returns {any} + */ + toJson() { + const ret = wasm.geterainforesult_toJson(this.__wbg_ptr); + return takeObject(ret); + } +} +module.exports.GetEraInfoResult = GetEraInfoResult; +/** +* Wrapper struct for the `GetEraSummaryResult` from casper_client. +*/ +class GetEraSummaryResult { + + static __wrap(ptr) { + ptr = ptr >>> 0; + const obj = Object.create(GetEraSummaryResult.prototype); + obj.__wbg_ptr = ptr; + + return obj; + } + + __destroy_into_raw() { + const ptr = this.__wbg_ptr; + this.__wbg_ptr = 0; + + return ptr; + } + + free() { + const ptr = this.__destroy_into_raw(); + wasm.__wbg_geterasummaryresult_free(ptr); + } + /** + * Gets the API version as a JsValue. + * @returns {any} + */ + get api_version() { + const ret = wasm.geterasummaryresult_api_version(this.__wbg_ptr); + return takeObject(ret); + } + /** + * Gets the era summary as a JsValue. + * @returns {any} + */ + get era_summary() { + const ret = wasm.geterasummaryresult_era_summary(this.__wbg_ptr); + return takeObject(ret); + } + /** + * Converts the GetEraSummaryResult to a JsValue. + * @returns {any} + */ + toJson() { + const ret = wasm.geterasummaryresult_toJson(this.__wbg_ptr); + return takeObject(ret); + } +} +module.exports.GetEraSummaryResult = GetEraSummaryResult; +/** +* Wrapper struct for the `GetNodeStatusResult` from casper_client. +*/ +class GetNodeStatusResult { + + static __wrap(ptr) { + ptr = ptr >>> 0; + const obj = Object.create(GetNodeStatusResult.prototype); + obj.__wbg_ptr = ptr; + + return obj; + } + + __destroy_into_raw() { + const ptr = this.__wbg_ptr; + this.__wbg_ptr = 0; + + return ptr; + } + + free() { + const ptr = this.__destroy_into_raw(); + wasm.__wbg_getnodestatusresult_free(ptr); + } + /** + * Gets the API version as a JsValue. + * @returns {any} + */ + get api_version() { + const ret = wasm.getnodestatusresult_api_version(this.__wbg_ptr); + return takeObject(ret); + } + /** + * Gets the chainspec name as a String. + * @returns {string} + */ + get chainspec_name() { + let deferred1_0; + let deferred1_1; + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.getnodestatusresult_chainspec_name(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + deferred1_0 = r0; + deferred1_1 = r1; + return getStringFromWasm0(r0, r1); + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + wasm.__wbindgen_free(deferred1_0, deferred1_1, 1); + } + } + /** + * Gets the starting state root hash as a Digest. + * @returns {Digest} + */ + get starting_state_root_hash() { + const ret = wasm.getnodestatusresult_starting_state_root_hash(this.__wbg_ptr); + return Digest.__wrap(ret); + } + /** + * Gets the list of peers as a JsValue. + * @returns {any} + */ + get peers() { + const ret = wasm.getnodestatusresult_peers(this.__wbg_ptr); + return takeObject(ret); + } + /** + * Gets information about the last added block as a JsValue. + * @returns {any} + */ + get last_added_block_info() { + const ret = wasm.getnodestatusresult_last_added_block_info(this.__wbg_ptr); + return takeObject(ret); + } + /** + * Gets the public signing key as an Option. + * @returns {PublicKey | undefined} + */ + get our_public_signing_key() { + const ret = wasm.getnodestatusresult_our_public_signing_key(this.__wbg_ptr); + return ret === 0 ? undefined : PublicKey.__wrap(ret); + } + /** + * Gets the round length as a JsValue. + * @returns {any} + */ + get round_length() { + const ret = wasm.getnodestatusresult_round_length(this.__wbg_ptr); + return takeObject(ret); + } + /** + * Gets information about the next upgrade as a JsValue. + * @returns {any} + */ + get next_upgrade() { + const ret = wasm.getnodestatusresult_next_upgrade(this.__wbg_ptr); + return takeObject(ret); + } + /** + * Gets the build version as a String. + * @returns {string} + */ + get build_version() { + let deferred1_0; + let deferred1_1; + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.getnodestatusresult_build_version(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + deferred1_0 = r0; + deferred1_1 = r1; + return getStringFromWasm0(r0, r1); + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + wasm.__wbindgen_free(deferred1_0, deferred1_1, 1); + } + } + /** + * Gets the uptime information as a JsValue. + * @returns {any} + */ + get uptime() { + const ret = wasm.getnodestatusresult_uptime(this.__wbg_ptr); + return takeObject(ret); + } + /** + * Gets the reactor state information as a JsValue. + * @returns {any} + */ + get reactor_state() { + const ret = wasm.getnodestatusresult_reactor_state(this.__wbg_ptr); + return takeObject(ret); + } + /** + * Gets the last progress information as a JsValue. + * @returns {any} + */ + get last_progress() { + const ret = wasm.getnodestatusresult_last_progress(this.__wbg_ptr); + return takeObject(ret); + } + /** + * Gets the available block range as a JsValue. + * @returns {any} + */ + get available_block_range() { + const ret = wasm.getnodestatusresult_available_block_range(this.__wbg_ptr); + return takeObject(ret); + } + /** + * Gets the block sync information as a JsValue. + * @returns {any} + */ + get block_sync() { + const ret = wasm.getnodestatusresult_block_sync(this.__wbg_ptr); + return takeObject(ret); + } + /** + * Converts the GetNodeStatusResult to a JsValue. + * @returns {any} + */ + toJson() { + const ret = wasm.getnodestatusresult_toJson(this.__wbg_ptr); + return takeObject(ret); + } +} +module.exports.GetNodeStatusResult = GetNodeStatusResult; +/** +* A wrapper for the `GetPeersResult` type from the Casper client. +*/ +class GetPeersResult { + + static __wrap(ptr) { + ptr = ptr >>> 0; + const obj = Object.create(GetPeersResult.prototype); + obj.__wbg_ptr = ptr; + + return obj; + } + + __destroy_into_raw() { + const ptr = this.__wbg_ptr; + this.__wbg_ptr = 0; + + return ptr; + } + + free() { + const ptr = this.__destroy_into_raw(); + wasm.__wbg_getpeersresult_free(ptr); + } + /** + * Gets the API version as a JSON value. + * @returns {any} + */ + get api_version() { + const ret = wasm.getpeersresult_api_version(this.__wbg_ptr); + return takeObject(ret); + } + /** + * Gets the peers as a JSON value. + * @returns {any} + */ + get peers() { + const ret = wasm.getpeersresult_peers(this.__wbg_ptr); + return takeObject(ret); + } + /** + * Converts the result to JSON format as a JavaScript value. + * @returns {any} + */ + toJson() { + const ret = wasm.getpeersresult_toJson(this.__wbg_ptr); + return takeObject(ret); + } +} +module.exports.GetPeersResult = GetPeersResult; +/** +* Wrapper struct for the `GetStateRootHashResult` from casper_client. +*/ +class GetStateRootHashResult { + + static __wrap(ptr) { + ptr = ptr >>> 0; + const obj = Object.create(GetStateRootHashResult.prototype); + obj.__wbg_ptr = ptr; + + return obj; + } + + __destroy_into_raw() { + const ptr = this.__wbg_ptr; + this.__wbg_ptr = 0; + + return ptr; + } + + free() { + const ptr = this.__destroy_into_raw(); + wasm.__wbg_getstateroothashresult_free(ptr); + } + /** + * Gets the API version as a JsValue. + * @returns {any} + */ + get api_version() { + const ret = wasm.getstateroothashresult_api_version(this.__wbg_ptr); + return takeObject(ret); + } + /** + * Gets the state root hash as an Option. + * @returns {Digest | undefined} + */ + get state_root_hash() { + const ret = wasm.getstateroothashresult_state_root_hash(this.__wbg_ptr); + return ret === 0 ? undefined : Digest.__wrap(ret); + } + /** + * Gets the state root hash as a String. + * @returns {string} + */ + get state_root_hash_as_string() { + let deferred1_0; + let deferred1_1; + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.getstateroothashresult_state_root_hash_as_string(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + deferred1_0 = r0; + deferred1_1 = r1; + return getStringFromWasm0(r0, r1); + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + wasm.__wbindgen_free(deferred1_0, deferred1_1, 1); + } + } + /** + * Converts the GetStateRootHashResult to a JsValue. + * @returns {any} + */ + toJson() { + const ret = wasm.getstateroothashresult_toJson(this.__wbg_ptr); + return takeObject(ret); + } +} +module.exports.GetStateRootHashResult = GetStateRootHashResult; +/** +* Wrapper struct for the `GetValidatorChangesResult` from casper_client. +*/ +class GetValidatorChangesResult { + + static __wrap(ptr) { + ptr = ptr >>> 0; + const obj = Object.create(GetValidatorChangesResult.prototype); + obj.__wbg_ptr = ptr; + + return obj; + } + + __destroy_into_raw() { + const ptr = this.__wbg_ptr; + this.__wbg_ptr = 0; + + return ptr; + } + + free() { + const ptr = this.__destroy_into_raw(); + wasm.__wbg_getvalidatorchangesresult_free(ptr); + } + /** + * Gets the API version as a JsValue. + * @returns {any} + */ + get api_version() { + const ret = wasm.getvalidatorchangesresult_api_version(this.__wbg_ptr); + return takeObject(ret); + } + /** + * Gets the validator changes as a JsValue. + * @returns {any} + */ + get changes() { + const ret = wasm.getvalidatorchangesresult_changes(this.__wbg_ptr); + return takeObject(ret); + } + /** + * Converts the GetValidatorChangesResult to a JsValue. + * @returns {any} + */ + toJson() { + const ret = wasm.getvalidatorchangesresult_toJson(this.__wbg_ptr); + return takeObject(ret); + } +} +module.exports.GetValidatorChangesResult = GetValidatorChangesResult; +/** +*/ +class GlobalStateIdentifier { + + static __wrap(ptr) { + ptr = ptr >>> 0; + const obj = Object.create(GlobalStateIdentifier.prototype); + obj.__wbg_ptr = ptr; + + return obj; + } + + __destroy_into_raw() { + const ptr = this.__wbg_ptr; + this.__wbg_ptr = 0; + + return ptr; + } + + free() { + const ptr = this.__destroy_into_raw(); + wasm.__wbg_globalstateidentifier_free(ptr); + } + /** + * @param {GlobalStateIdentifier} global_state_identifier + */ + constructor(global_state_identifier) { + _assertClass(global_state_identifier, GlobalStateIdentifier); + var ptr0 = global_state_identifier.__destroy_into_raw(); + const ret = wasm.blockidentifier_new(ptr0); + return GlobalStateIdentifier.__wrap(ret); + } + /** + * @param {BlockHash} block_hash + * @returns {GlobalStateIdentifier} + */ + static fromBlockHash(block_hash) { + _assertClass(block_hash, BlockHash); + var ptr0 = block_hash.__destroy_into_raw(); + const ret = wasm.blockidentifier_from_hash(ptr0); + return GlobalStateIdentifier.__wrap(ret); + } + /** + * @param {bigint} block_height + * @returns {GlobalStateIdentifier} + */ + static fromBlockHeight(block_height) { + const ret = wasm.blockidentifier_fromHeight(block_height); + return GlobalStateIdentifier.__wrap(ret); + } + /** + * @param {Digest} state_root_hash + * @returns {GlobalStateIdentifier} + */ + static fromStateRootHash(state_root_hash) { + _assertClass(state_root_hash, Digest); + var ptr0 = state_root_hash.__destroy_into_raw(); + const ret = wasm.globalstateidentifier_fromStateRootHash(ptr0); + return GlobalStateIdentifier.__wrap(ret); + } + /** + * @returns {any} + */ + toJson() { + const ret = wasm.globalstateidentifier_toJson(this.__wbg_ptr); + return takeObject(ret); + } +} +module.exports.GlobalStateIdentifier = GlobalStateIdentifier; +/** +*/ +class HashAddr { + + static __wrap(ptr) { + ptr = ptr >>> 0; + const obj = Object.create(HashAddr.prototype); + obj.__wbg_ptr = ptr; + + return obj; + } + + __destroy_into_raw() { + const ptr = this.__wbg_ptr; + this.__wbg_ptr = 0; + + return ptr; + } + + free() { + const ptr = this.__destroy_into_raw(); + wasm.__wbg_hashaddr_free(ptr); + } + /** + * @param {Uint8Array} bytes + */ + constructor(bytes) { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc); + const len0 = WASM_VECTOR_LEN; + wasm.hashaddr_new(retptr, ptr0, len0); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + var r2 = getInt32Memory0()[retptr / 4 + 2]; + if (r2) { + throw takeObject(r1); + } + return HashAddr.__wrap(r0); + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } +} +module.exports.HashAddr = HashAddr; +/** +*/ +class Key { + + static __wrap(ptr) { + ptr = ptr >>> 0; + const obj = Object.create(Key.prototype); + obj.__wbg_ptr = ptr; + + return obj; + } + + __destroy_into_raw() { + const ptr = this.__wbg_ptr; + this.__wbg_ptr = 0; + + return ptr; + } + + free() { + const ptr = this.__destroy_into_raw(); + wasm.__wbg_key_free(ptr); + } + /** + * @param {Key} key + */ + constructor(key) { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + _assertClass(key, Key); + var ptr0 = key.__destroy_into_raw(); + wasm.key_new(retptr, ptr0); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + var r2 = getInt32Memory0()[retptr / 4 + 2]; + if (r2) { + throw takeObject(r1); + } + return Key.__wrap(r0); + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @returns {any} + */ + toJson() { + const ret = wasm.key_toJson(this.__wbg_ptr); + return takeObject(ret); + } + /** + * @param {URef} key + * @returns {Key} + */ + static fromURef(key) { + _assertClass(key, URef); + var ptr0 = key.__destroy_into_raw(); + const ret = wasm.key_fromURef(ptr0); + return Key.__wrap(ret); + } + /** + * @param {DeployHash} key + * @returns {Key} + */ + static fromDeployInfo(key) { + _assertClass(key, DeployHash); + var ptr0 = key.__destroy_into_raw(); + const ret = wasm.key_fromDeployInfo(ptr0); + return Key.__wrap(ret); + } + /** + * @param {AccountHash} key + * @returns {Key} + */ + static fromAccount(key) { + _assertClass(key, AccountHash); + var ptr0 = key.__destroy_into_raw(); + const ret = wasm.key_fromAccount(ptr0); + return Key.__wrap(ret); + } + /** + * @param {HashAddr} key + * @returns {Key} + */ + static fromHash(key) { + _assertClass(key, HashAddr); + var ptr0 = key.__destroy_into_raw(); + const ret = wasm.key_fromHash(ptr0); + return Key.__wrap(ret); + } + /** + * @param {Uint8Array} key + * @returns {TransferAddr} + */ + static fromTransfer(key) { + const ptr0 = passArray8ToWasm0(key, wasm.__wbindgen_malloc); + const len0 = WASM_VECTOR_LEN; + const ret = wasm.key_fromTransfer(ptr0, len0); + return TransferAddr.__wrap(ret); + } + /** + * @param {EraId} key + * @returns {Key} + */ + static fromEraInfo(key) { + _assertClass(key, EraId); + var ptr0 = key.__destroy_into_raw(); + const ret = wasm.key_fromEraInfo(ptr0); + return Key.__wrap(ret); + } + /** + * @param {URefAddr} key + * @returns {Key} + */ + static fromBalance(key) { + _assertClass(key, URefAddr); + var ptr0 = key.__destroy_into_raw(); + const ret = wasm.key_fromBalance(ptr0); + return Key.__wrap(ret); + } + /** + * @param {AccountHash} key + * @returns {Key} + */ + static fromBid(key) { + _assertClass(key, AccountHash); + var ptr0 = key.__destroy_into_raw(); + const ret = wasm.key_fromBid(ptr0); + return Key.__wrap(ret); + } + /** + * @param {AccountHash} key + * @returns {Key} + */ + static fromWithdraw(key) { + _assertClass(key, AccountHash); + var ptr0 = key.__destroy_into_raw(); + const ret = wasm.key_fromWithdraw(ptr0); + return Key.__wrap(ret); + } + /** + * @param {DictionaryAddr} key + * @returns {Key} + */ + static fromDictionaryAddr(key) { + _assertClass(key, DictionaryAddr); + var ptr0 = key.__destroy_into_raw(); + const ret = wasm.key_fromDictionaryAddr(ptr0); + return Key.__wrap(ret); + } + /** + * @returns {DictionaryAddr | undefined} + */ + asDictionaryAddr() { + const ret = wasm.key_asDictionaryAddr(this.__wbg_ptr); + return ret === 0 ? undefined : DictionaryAddr.__wrap(ret); + } + /** + * @returns {Key} + */ + static fromSystemContractRegistry() { + const ret = wasm.key_fromSystemContractRegistry(); + return Key.__wrap(ret); + } + /** + * @returns {Key} + */ + static fromEraSummary() { + const ret = wasm.key_fromEraSummary(); + return Key.__wrap(ret); + } + /** + * @param {AccountHash} key + * @returns {Key} + */ + static fromUnbond(key) { + _assertClass(key, AccountHash); + var ptr0 = key.__destroy_into_raw(); + const ret = wasm.key_fromUnbond(ptr0); + return Key.__wrap(ret); + } + /** + * @returns {Key} + */ + static fromChainspecRegistry() { + const ret = wasm.key_fromChainspecRegistry(); + return Key.__wrap(ret); + } + /** + * @returns {Key} + */ + static fromChecksumRegistry() { + const ret = wasm.key_fromChecksumRegistry(); + return Key.__wrap(ret); + } + /** + * @returns {string} + */ + toFormattedString() { + let deferred1_0; + let deferred1_1; + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.key_toFormattedString(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + deferred1_0 = r0; + deferred1_1 = r1; + return getStringFromWasm0(r0, r1); + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + wasm.__wbindgen_free(deferred1_0, deferred1_1, 1); + } + } + /** + * @param {any} input + * @returns {Key} + */ + static fromFormattedString(input) { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.key_fromFormattedString(retptr, addHeapObject(input)); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + var r2 = getInt32Memory0()[retptr / 4 + 2]; + if (r2) { + throw takeObject(r1); + } + return Key.__wrap(r0); + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {URef} seed_uref + * @param {Uint8Array} dictionary_item_key + * @returns {Key} + */ + static fromDictionaryKey(seed_uref, dictionary_item_key) { + _assertClass(seed_uref, URef); + var ptr0 = seed_uref.__destroy_into_raw(); + const ptr1 = passArray8ToWasm0(dictionary_item_key, wasm.__wbindgen_malloc); + const len1 = WASM_VECTOR_LEN; + const ret = wasm.key_fromDictionaryKey(ptr0, ptr1, len1); + return Key.__wrap(ret); + } + /** + * @returns {boolean} + */ + isDictionaryKey() { + const ret = wasm.key_isDictionaryKey(this.__wbg_ptr); + return ret !== 0; + } + /** + * @returns {AccountHash | undefined} + */ + intoAccount() { + const ptr = this.__destroy_into_raw(); + const ret = wasm.key_intoAccount(ptr); + return ret === 0 ? undefined : AccountHash.__wrap(ret); + } + /** + * @returns {HashAddr | undefined} + */ + intoHash() { + const ptr = this.__destroy_into_raw(); + const ret = wasm.key_intoHash(ptr); + return ret === 0 ? undefined : HashAddr.__wrap(ret); + } + /** + * @returns {URefAddr | undefined} + */ + asBalance() { + const ret = wasm.key_asBalance(this.__wbg_ptr); + return ret === 0 ? undefined : URefAddr.__wrap(ret); + } + /** + * @returns {URef | undefined} + */ + intoURef() { + const ptr = this.__destroy_into_raw(); + const ret = wasm.key_intoURef(ptr); + return ret === 0 ? undefined : URef.__wrap(ret); + } + /** + * @returns {Key | undefined} + */ + urefToHash() { + const ret = wasm.key_urefToHash(this.__wbg_ptr); + return ret === 0 ? undefined : Key.__wrap(ret); + } + /** + * @returns {Key | undefined} + */ + withdrawToUnbond() { + const ret = wasm.key_withdrawToUnbond(this.__wbg_ptr); + return ret === 0 ? undefined : Key.__wrap(ret); + } +} +module.exports.Key = Key; +/** +* Wrapper struct for the `ListRpcsResult` from casper_client. +*/ +class ListRpcsResult { + + static __wrap(ptr) { + ptr = ptr >>> 0; + const obj = Object.create(ListRpcsResult.prototype); + obj.__wbg_ptr = ptr; + + return obj; + } + + __destroy_into_raw() { + const ptr = this.__wbg_ptr; + this.__wbg_ptr = 0; + + return ptr; + } + + free() { + const ptr = this.__destroy_into_raw(); + wasm.__wbg_listrpcsresult_free(ptr); + } + /** + * Gets the API version as a JsValue. + * @returns {any} + */ + get api_version() { + const ret = wasm.listrpcsresult_api_version(this.__wbg_ptr); + return takeObject(ret); + } + /** + * Gets the name of the RPC. + * @returns {string} + */ + get name() { + let deferred1_0; + let deferred1_1; + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.listrpcsresult_name(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + deferred1_0 = r0; + deferred1_1 = r1; + return getStringFromWasm0(r0, r1); + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + wasm.__wbindgen_free(deferred1_0, deferred1_1, 1); + } + } + /** + * Gets the schema of the RPC as a JsValue. + * @returns {any} + */ + get schema() { + const ret = wasm.listrpcsresult_schema(this.__wbg_ptr); + return takeObject(ret); + } + /** + * Converts the ListRpcsResult to a JsValue. + * @returns {any} + */ + toJson() { + const ret = wasm.listrpcsresult_toJson(this.__wbg_ptr); + return takeObject(ret); + } +} +module.exports.ListRpcsResult = ListRpcsResult; +/** +*/ +class Path { + + static __wrap(ptr) { + ptr = ptr >>> 0; + const obj = Object.create(Path.prototype); + obj.__wbg_ptr = ptr; + + return obj; + } + + __destroy_into_raw() { + const ptr = this.__wbg_ptr; + this.__wbg_ptr = 0; + + return ptr; + } + + free() { + const ptr = this.__destroy_into_raw(); + wasm.__wbg_path_free(ptr); + } + /** + * @param {any} path + */ + constructor(path) { + const ret = wasm.path_new(addHeapObject(path)); + return Path.__wrap(ret); + } + /** + * @param {any} path + * @returns {Path} + */ + static fromArray(path) { + const ret = wasm.path_fromArray(addHeapObject(path)); + return Path.__wrap(ret); + } + /** + * @returns {any} + */ + toJson() { + const ret = wasm.path_toJson(this.__wbg_ptr); + return takeObject(ret); + } + /** + * @returns {string} + */ + toString() { + let deferred1_0; + let deferred1_1; + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.path_toString(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + deferred1_0 = r0; + deferred1_1 = r1; + return getStringFromWasm0(r0, r1); + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + wasm.__wbindgen_free(deferred1_0, deferred1_1, 1); + } + } + /** + * @returns {boolean} + */ + is_empty() { + const ret = wasm.path_is_empty(this.__wbg_ptr); + return ret !== 0; + } +} +module.exports.Path = Path; +/** +*/ +class PaymentStrParams { + + static __wrap(ptr) { + ptr = ptr >>> 0; + const obj = Object.create(PaymentStrParams.prototype); + obj.__wbg_ptr = ptr; + + return obj; + } + + __destroy_into_raw() { + const ptr = this.__wbg_ptr; + this.__wbg_ptr = 0; + + return ptr; + } + + free() { + const ptr = this.__destroy_into_raw(); + wasm.__wbg_paymentstrparams_free(ptr); + } + /** + * @param {string | undefined} payment_amount + * @param {string | undefined} payment_hash + * @param {string | undefined} payment_name + * @param {string | undefined} payment_package_hash + * @param {string | undefined} payment_package_name + * @param {string | undefined} payment_path + * @param {Array | undefined} payment_args_simple + * @param {string | undefined} payment_args_json + * @param {string | undefined} payment_args_complex + * @param {string | undefined} payment_version + * @param {string | undefined} payment_entry_point + */ + constructor(payment_amount, payment_hash, payment_name, payment_package_hash, payment_package_name, payment_path, payment_args_simple, payment_args_json, payment_args_complex, payment_version, payment_entry_point) { + var ptr0 = isLikeNone(payment_amount) ? 0 : passStringToWasm0(payment_amount, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + var ptr1 = isLikeNone(payment_hash) ? 0 : passStringToWasm0(payment_hash, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len1 = WASM_VECTOR_LEN; + var ptr2 = isLikeNone(payment_name) ? 0 : passStringToWasm0(payment_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len2 = WASM_VECTOR_LEN; + var ptr3 = isLikeNone(payment_package_hash) ? 0 : passStringToWasm0(payment_package_hash, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len3 = WASM_VECTOR_LEN; + var ptr4 = isLikeNone(payment_package_name) ? 0 : passStringToWasm0(payment_package_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len4 = WASM_VECTOR_LEN; + var ptr5 = isLikeNone(payment_path) ? 0 : passStringToWasm0(payment_path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len5 = WASM_VECTOR_LEN; + var ptr6 = isLikeNone(payment_args_json) ? 0 : passStringToWasm0(payment_args_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len6 = WASM_VECTOR_LEN; + var ptr7 = isLikeNone(payment_args_complex) ? 0 : passStringToWasm0(payment_args_complex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len7 = WASM_VECTOR_LEN; + var ptr8 = isLikeNone(payment_version) ? 0 : passStringToWasm0(payment_version, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len8 = WASM_VECTOR_LEN; + var ptr9 = isLikeNone(payment_entry_point) ? 0 : passStringToWasm0(payment_entry_point, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len9 = WASM_VECTOR_LEN; + const ret = wasm.paymentstrparams_new(ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, ptr4, len4, ptr5, len5, isLikeNone(payment_args_simple) ? 0 : addHeapObject(payment_args_simple), ptr6, len6, ptr7, len7, ptr8, len8, ptr9, len9); + return PaymentStrParams.__wrap(ret); + } + /** + * @returns {string | undefined} + */ + get payment_amount() { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.paymentstrparams_payment_amount(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + let v1; + if (r0 !== 0) { + v1 = getStringFromWasm0(r0, r1).slice(); + wasm.__wbindgen_free(r0, r1 * 1); + } + return v1; + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string} payment_amount + */ + set payment_amount(payment_amount) { + const ptr0 = passStringToWasm0(payment_amount, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + wasm.paymentstrparams_set_payment_amount(this.__wbg_ptr, ptr0, len0); + } + /** + * @returns {string | undefined} + */ + get payment_hash() { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.paymentstrparams_payment_hash(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + let v1; + if (r0 !== 0) { + v1 = getStringFromWasm0(r0, r1).slice(); + wasm.__wbindgen_free(r0, r1 * 1); + } + return v1; + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string} payment_hash + */ + set payment_hash(payment_hash) { + const ptr0 = passStringToWasm0(payment_hash, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + wasm.paymentstrparams_set_payment_hash(this.__wbg_ptr, ptr0, len0); + } + /** + * @returns {string | undefined} + */ + get payment_name() { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.paymentstrparams_payment_name(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + let v1; + if (r0 !== 0) { + v1 = getStringFromWasm0(r0, r1).slice(); + wasm.__wbindgen_free(r0, r1 * 1); + } + return v1; + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string} payment_name + */ + set payment_name(payment_name) { + const ptr0 = passStringToWasm0(payment_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + wasm.paymentstrparams_set_payment_name(this.__wbg_ptr, ptr0, len0); + } + /** + * @returns {string | undefined} + */ + get payment_package_hash() { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.paymentstrparams_payment_package_hash(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + let v1; + if (r0 !== 0) { + v1 = getStringFromWasm0(r0, r1).slice(); + wasm.__wbindgen_free(r0, r1 * 1); + } + return v1; + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string} payment_package_hash + */ + set payment_package_hash(payment_package_hash) { + const ptr0 = passStringToWasm0(payment_package_hash, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + wasm.paymentstrparams_set_payment_package_hash(this.__wbg_ptr, ptr0, len0); + } + /** + * @returns {string | undefined} + */ + get payment_package_name() { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.paymentstrparams_payment_package_name(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + let v1; + if (r0 !== 0) { + v1 = getStringFromWasm0(r0, r1).slice(); + wasm.__wbindgen_free(r0, r1 * 1); + } + return v1; + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string} payment_package_name + */ + set payment_package_name(payment_package_name) { + const ptr0 = passStringToWasm0(payment_package_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + wasm.paymentstrparams_set_payment_package_name(this.__wbg_ptr, ptr0, len0); + } + /** + * @returns {string | undefined} + */ + get payment_path() { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.paymentstrparams_payment_path(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + let v1; + if (r0 !== 0) { + v1 = getStringFromWasm0(r0, r1).slice(); + wasm.__wbindgen_free(r0, r1 * 1); + } + return v1; + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string} payment_path + */ + set payment_path(payment_path) { + const ptr0 = passStringToWasm0(payment_path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + wasm.paymentstrparams_set_payment_path(this.__wbg_ptr, ptr0, len0); + } + /** + * @returns {Array | undefined} + */ + get payment_args_simple() { + const ret = wasm.paymentstrparams_payment_args_simple(this.__wbg_ptr); + return takeObject(ret); + } + /** + * @param {Array} payment_args_simple + */ + set payment_args_simple(payment_args_simple) { + wasm.paymentstrparams_set_payment_args_simple(this.__wbg_ptr, addHeapObject(payment_args_simple)); + } + /** + * @returns {string | undefined} + */ + get payment_args_json() { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.paymentstrparams_payment_args_json(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + let v1; + if (r0 !== 0) { + v1 = getStringFromWasm0(r0, r1).slice(); + wasm.__wbindgen_free(r0, r1 * 1); + } + return v1; + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string} payment_args_json + */ + set payment_args_json(payment_args_json) { + const ptr0 = passStringToWasm0(payment_args_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + wasm.paymentstrparams_set_payment_args_json(this.__wbg_ptr, ptr0, len0); + } + /** + * @returns {string | undefined} + */ + get payment_args_complex() { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.paymentstrparams_payment_args_complex(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + let v1; + if (r0 !== 0) { + v1 = getStringFromWasm0(r0, r1).slice(); + wasm.__wbindgen_free(r0, r1 * 1); + } + return v1; + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string} payment_args_complex + */ + set payment_args_complex(payment_args_complex) { + const ptr0 = passStringToWasm0(payment_args_complex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + wasm.paymentstrparams_set_payment_args_complex(this.__wbg_ptr, ptr0, len0); + } + /** + * @returns {string | undefined} + */ + get payment_version() { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.paymentstrparams_payment_version(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + let v1; + if (r0 !== 0) { + v1 = getStringFromWasm0(r0, r1).slice(); + wasm.__wbindgen_free(r0, r1 * 1); + } + return v1; + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string} payment_version + */ + set payment_version(payment_version) { + const ptr0 = passStringToWasm0(payment_version, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + wasm.paymentstrparams_set_payment_version(this.__wbg_ptr, ptr0, len0); + } + /** + * @returns {string | undefined} + */ + get payment_entry_point() { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.paymentstrparams_payment_entry_point(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + let v1; + if (r0 !== 0) { + v1 = getStringFromWasm0(r0, r1).slice(); + wasm.__wbindgen_free(r0, r1 * 1); + } + return v1; + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string} payment_entry_point + */ + set payment_entry_point(payment_entry_point) { + const ptr0 = passStringToWasm0(payment_entry_point, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + wasm.paymentstrparams_set_payment_entry_point(this.__wbg_ptr, ptr0, len0); + } +} +module.exports.PaymentStrParams = PaymentStrParams; +/** +*/ +class PeerEntry { + + __destroy_into_raw() { + const ptr = this.__wbg_ptr; + this.__wbg_ptr = 0; + + return ptr; + } + + free() { + const ptr = this.__destroy_into_raw(); + wasm.__wbg_peerentry_free(ptr); + } + /** + * @returns {string} + */ + get node_id() { + let deferred1_0; + let deferred1_1; + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.peerentry_node_id(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + deferred1_0 = r0; + deferred1_1 = r1; + return getStringFromWasm0(r0, r1); + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + wasm.__wbindgen_free(deferred1_0, deferred1_1, 1); + } + } + /** + * @returns {string} + */ + get address() { + let deferred1_0; + let deferred1_1; + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.peerentry_address(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + deferred1_0 = r0; + deferred1_1 = r1; + return getStringFromWasm0(r0, r1); + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + wasm.__wbindgen_free(deferred1_0, deferred1_1, 1); + } + } +} +module.exports.PeerEntry = PeerEntry; +/** +*/ +class PublicKey { + + static __wrap(ptr) { + ptr = ptr >>> 0; + const obj = Object.create(PublicKey.prototype); + obj.__wbg_ptr = ptr; + + return obj; + } + + __destroy_into_raw() { + const ptr = this.__wbg_ptr; + this.__wbg_ptr = 0; + + return ptr; + } + + free() { + const ptr = this.__destroy_into_raw(); + wasm.__wbg_publickey_free(ptr); + } + /** + * @param {string} public_key_hex_str + */ + constructor(public_key_hex_str) { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + const ptr0 = passStringToWasm0(public_key_hex_str, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + wasm.publickey_new(retptr, ptr0, len0); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + var r2 = getInt32Memory0()[retptr / 4 + 2]; + if (r2) { + throw takeObject(r1); + } + return PublicKey.__wrap(r0); + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {Uint8Array} bytes + * @returns {PublicKey} + */ + static fromUint8Array(bytes) { + const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc); + const len0 = WASM_VECTOR_LEN; + const ret = wasm.publickey_fromUint8Array(ptr0, len0); + return PublicKey.__wrap(ret); + } + /** + * @returns {AccountHash} + */ + toAccountHash() { + const ret = wasm.publickey_toAccountHash(this.__wbg_ptr); + return AccountHash.__wrap(ret); + } + /** + * @returns {URef} + */ + toPurseUref() { + const ret = wasm.publickey_toPurseUref(this.__wbg_ptr); + return URef.__wrap(ret); + } + /** + * @returns {any} + */ + toJson() { + const ret = wasm.publickey_toJson(this.__wbg_ptr); + return takeObject(ret); + } +} +module.exports.PublicKey = PublicKey; +/** +*/ +class PurseIdentifier { + + static __wrap(ptr) { + ptr = ptr >>> 0; + const obj = Object.create(PurseIdentifier.prototype); + obj.__wbg_ptr = ptr; + + return obj; + } + + __destroy_into_raw() { + const ptr = this.__wbg_ptr; + this.__wbg_ptr = 0; + + return ptr; + } + + free() { + const ptr = this.__destroy_into_raw(); + wasm.__wbg_purseidentifier_free(ptr); + } + /** + * @param {PublicKey} key + */ + constructor(key) { + _assertClass(key, PublicKey); + var ptr0 = key.__destroy_into_raw(); + const ret = wasm.purseidentifier_fromPublicKey(ptr0); + return PurseIdentifier.__wrap(ret); + } + /** + * @param {AccountHash} account_hash + * @returns {PurseIdentifier} + */ + static fromAccountHash(account_hash) { + _assertClass(account_hash, AccountHash); + var ptr0 = account_hash.__destroy_into_raw(); + const ret = wasm.purseidentifier_fromAccountHash(ptr0); + return PurseIdentifier.__wrap(ret); + } + /** + * @param {URef} uref + * @returns {PurseIdentifier} + */ + static fromURef(uref) { + _assertClass(uref, URef); + var ptr0 = uref.__destroy_into_raw(); + const ret = wasm.purseidentifier_fromURef(ptr0); + return PurseIdentifier.__wrap(ret); + } +} +module.exports.PurseIdentifier = PurseIdentifier; +/** +*/ +class PutDeployResult { + + static __wrap(ptr) { + ptr = ptr >>> 0; + const obj = Object.create(PutDeployResult.prototype); + obj.__wbg_ptr = ptr; + + return obj; + } + + __destroy_into_raw() { + const ptr = this.__wbg_ptr; + this.__wbg_ptr = 0; + + return ptr; + } + + free() { + const ptr = this.__destroy_into_raw(); + wasm.__wbg_putdeployresult_free(ptr); + } + /** + * Gets the API version as a JavaScript value. + * @returns {any} + */ + get api_version() { + const ret = wasm.putdeployresult_api_version(this.__wbg_ptr); + return takeObject(ret); + } + /** + * Gets the deploy hash associated with this result. + * @returns {DeployHash} + */ + get deploy_hash() { + const ret = wasm.putdeployresult_deploy_hash(this.__wbg_ptr); + return DeployHash.__wrap(ret); + } + /** + * Converts PutDeployResult to a JavaScript object. + * @returns {any} + */ + toJson() { + const ret = wasm.putdeployresult_toJson(this.__wbg_ptr); + return takeObject(ret); + } +} +module.exports.PutDeployResult = PutDeployResult; +/** +*/ +class QueryBalanceResult { + + static __wrap(ptr) { + ptr = ptr >>> 0; + const obj = Object.create(QueryBalanceResult.prototype); + obj.__wbg_ptr = ptr; + + return obj; + } + + __destroy_into_raw() { + const ptr = this.__wbg_ptr; + this.__wbg_ptr = 0; + + return ptr; + } + + free() { + const ptr = this.__destroy_into_raw(); + wasm.__wbg_querybalanceresult_free(ptr); + } + /** + * Gets the API version as a JsValue. + * @returns {any} + */ + get api_version() { + const ret = wasm.querybalanceresult_api_version(this.__wbg_ptr); + return takeObject(ret); + } + /** + * Gets the balance as a JsValue. + * @returns {any} + */ + get balance() { + const ret = wasm.querybalanceresult_balance(this.__wbg_ptr); + return takeObject(ret); + } + /** + * Converts the QueryBalanceResult to a JsValue. + * @returns {any} + */ + toJson() { + const ret = wasm.querybalanceresult_toJson(this.__wbg_ptr); + return takeObject(ret); + } +} +module.exports.QueryBalanceResult = QueryBalanceResult; +/** +*/ +class QueryGlobalStateResult { + + static __wrap(ptr) { + ptr = ptr >>> 0; + const obj = Object.create(QueryGlobalStateResult.prototype); + obj.__wbg_ptr = ptr; + + return obj; + } + + __destroy_into_raw() { + const ptr = this.__wbg_ptr; + this.__wbg_ptr = 0; + + return ptr; + } + + free() { + const ptr = this.__destroy_into_raw(); + wasm.__wbg_queryglobalstateresult_free(ptr); + } + /** + * Gets the API version as a JsValue. + * @returns {any} + */ + get api_version() { + const ret = wasm.queryglobalstateresult_api_version(this.__wbg_ptr); + return takeObject(ret); + } + /** + * Gets the block header as a JsValue. + * @returns {any} + */ + get block_header() { + const ret = wasm.queryglobalstateresult_block_header(this.__wbg_ptr); + return takeObject(ret); + } + /** + * Gets the stored value as a JsValue. + * @returns {any} + */ + get stored_value() { + const ret = wasm.queryglobalstateresult_stored_value(this.__wbg_ptr); + return takeObject(ret); + } + /** + * Gets the Merkle proof as a string. + * @returns {string} + */ + get merkle_proof() { + let deferred1_0; + let deferred1_1; + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.queryglobalstateresult_merkle_proof(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + deferred1_0 = r0; + deferred1_1 = r1; + return getStringFromWasm0(r0, r1); + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + wasm.__wbindgen_free(deferred1_0, deferred1_1, 1); + } + } + /** + * Converts the QueryGlobalStateResult to a JsValue. + * @returns {any} + */ + toJson() { + const ret = wasm.queryglobalstateresult_toJson(this.__wbg_ptr); + return takeObject(ret); + } +} +module.exports.QueryGlobalStateResult = QueryGlobalStateResult; +/** +*/ +class SDK { + + static __wrap(ptr) { + ptr = ptr >>> 0; + const obj = Object.create(SDK.prototype); + obj.__wbg_ptr = ptr; + + return obj; + } + + __destroy_into_raw() { + const ptr = this.__wbg_ptr; + this.__wbg_ptr = 0; + + return ptr; + } + + free() { + const ptr = this.__destroy_into_raw(); + wasm.__wbg_sdk_free(ptr); + } + /** + * Parses deploy options from a JsValue. + * + * # Arguments + * + * * `options` - A JsValue containing deploy options to be parsed. + * + * # Returns + * + * Parsed deploy options as a `GetDeployOptions` struct. + * @param {any} options + * @returns {getDeployOptions} + */ + get_deploy_options(options) { + const ret = wasm.sdk_get_deploy_options(this.__wbg_ptr, addHeapObject(options)); + return getDeployOptions.__wrap(ret); + } + /** + * Retrieves deploy information using the provided options. + * + * # Arguments + * + * * `options` - An optional `GetDeployOptions` struct containing retrieval options. + * + * # Returns + * + * A `Result` containing either a `GetDeployResult` or an error. + * @param {getDeployOptions | undefined} options + * @returns {Promise} + */ + get_deploy(options) { + let ptr0 = 0; + if (!isLikeNone(options)) { + _assertClass(options, getDeployOptions); + ptr0 = options.__destroy_into_raw(); + } + const ret = wasm.sdk_get_deploy(this.__wbg_ptr, ptr0); + return takeObject(ret); + } + /** + * Retrieves deploy information using the provided options, alias for `get_deploy_js_alias`. + * @param {getDeployOptions | undefined} options + * @returns {Promise} + */ + info_get_deploy(options) { + let ptr0 = 0; + if (!isLikeNone(options)) { + _assertClass(options, getDeployOptions); + ptr0 = options.__destroy_into_raw(); + } + const ret = wasm.sdk_info_get_deploy(this.__wbg_ptr, ptr0); + return takeObject(ret); + } + /** + * @param {any} options + * @returns {getEraInfoOptions} + */ + get_era_info_options(options) { + const ret = wasm.sdk_get_era_info_options(this.__wbg_ptr, addHeapObject(options)); + return getEraInfoOptions.__wrap(ret); + } + /** + * @param {getEraInfoOptions | undefined} options + * @returns {Promise} + */ + get_era_info(options) { + let ptr0 = 0; + if (!isLikeNone(options)) { + _assertClass(options, getEraInfoOptions); + ptr0 = options.__destroy_into_raw(); + } + const ret = wasm.sdk_get_era_info(this.__wbg_ptr, ptr0); + return takeObject(ret); + } + /** + * Parses state root hash options from a JsValue. + * + * # Arguments + * + * * `options` - A JsValue containing state root hash options to be parsed. + * + * # Returns + * + * Parsed state root hash options as a `GetStateRootHashOptions` struct. + * @param {any} options + * @returns {getStateRootHashOptions} + */ + get_state_root_hash_options(options) { + const ret = wasm.sdk_get_state_root_hash_options(this.__wbg_ptr, addHeapObject(options)); + return getStateRootHashOptions.__wrap(ret); + } + /** + * Retrieves state root hash information using the provided options. + * + * # Arguments + * + * * `options` - An optional `GetStateRootHashOptions` struct containing retrieval options. + * + * # Returns + * + * A `Result` containing either a `GetStateRootHashResult` or a `JsError` in case of an error. + * + * # Errors + * + * Returns a `JsError` if there is an error during the retrieval process. + * @param {getStateRootHashOptions | undefined} options + * @returns {Promise} + */ + get_state_root_hash(options) { + let ptr0 = 0; + if (!isLikeNone(options)) { + _assertClass(options, getStateRootHashOptions); + ptr0 = options.__destroy_into_raw(); + } + const ret = wasm.sdk_get_state_root_hash(this.__wbg_ptr, ptr0); + return takeObject(ret); + } + /** + * Retrieves state root hash information using the provided options (alias for `get_state_root_hash_js_alias`). + * + * # Arguments + * + * * `options` - An optional `GetStateRootHashOptions` struct containing retrieval options. + * + * # Returns + * + * A `Result` containing either a `GetStateRootHashResult` or a `JsError` in case of an error. + * + * # Errors + * + * Returns a `JsError` if there is an error during the retrieval process. + * @param {getStateRootHashOptions | undefined} options + * @returns {Promise} + */ + chain_get_state_root_hash(options) { + let ptr0 = 0; + if (!isLikeNone(options)) { + _assertClass(options, getStateRootHashOptions); + ptr0 = options.__destroy_into_raw(); + } + const ret = wasm.sdk_chain_get_state_root_hash(this.__wbg_ptr, ptr0); + return takeObject(ret); + } + /** + * Get options for speculative execution from a JavaScript value. + * @param {any} options + * @returns {getSpeculativeExecOptions} + */ + speculative_exec_options(options) { + const ret = wasm.sdk_speculative_exec_options(this.__wbg_ptr, addHeapObject(options)); + return getSpeculativeExecOptions.__wrap(ret); + } + /** + * JS Alias for speculative execution. + * + * # Arguments + * + * * `options` - The options for speculative execution. + * + * # Returns + * + * A `Result` containing the result of the speculative execution or a `JsError` in case of an error. + * @param {getSpeculativeExecOptions | undefined} options + * @returns {Promise} + */ + speculative_exec(options) { + let ptr0 = 0; + if (!isLikeNone(options)) { + _assertClass(options, getSpeculativeExecOptions); + ptr0 = options.__destroy_into_raw(); + } + const ret = wasm.sdk_speculative_exec(this.__wbg_ptr, ptr0); + return takeObject(ret); + } + /** + * @param {string | undefined} node_address + * @param {number | undefined} verbosity + */ + constructor(node_address, verbosity) { + var ptr0 = isLikeNone(node_address) ? 0 : passStringToWasm0(node_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + const ret = wasm.sdk_new(ptr0, len0, isLikeNone(verbosity) ? 3 : verbosity); + return SDK.__wrap(ret); + } + /** + * @param {string | undefined} node_address + * @returns {string} + */ + getNodeAddress(node_address) { + let deferred2_0; + let deferred2_1; + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + var ptr0 = isLikeNone(node_address) ? 0 : passStringToWasm0(node_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + wasm.sdk_getNodeAddress(retptr, this.__wbg_ptr, ptr0, len0); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + deferred2_0 = r0; + deferred2_1 = r1; + return getStringFromWasm0(r0, r1); + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + wasm.__wbindgen_free(deferred2_0, deferred2_1, 1); + } + } + /** + * @param {string | undefined} node_address + */ + setNodeAddress(node_address) { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + var ptr0 = isLikeNone(node_address) ? 0 : passStringToWasm0(node_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + wasm.sdk_setNodeAddress(retptr, this.__wbg_ptr, ptr0, len0); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + if (r1) { + throw takeObject(r0); + } + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {number | undefined} verbosity + * @returns {number} + */ + getVerbosity(verbosity) { + const ret = wasm.sdk_getVerbosity(this.__wbg_ptr, isLikeNone(verbosity) ? 3 : verbosity); + return ret >>> 0; + } + /** + * @param {number | undefined} verbosity + */ + setVerbosity(verbosity) { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.sdk_setVerbosity(retptr, this.__wbg_ptr, isLikeNone(verbosity) ? 3 : verbosity); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + if (r1) { + throw takeObject(r0); + } + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * Puts a deploy using the provided options. + * + * # Arguments + * + * * `deploy` - The `Deploy` object to be sent. + * * `verbosity` - An optional `Verbosity` level for controlling the output verbosity. + * * `node_address` - An optional string specifying the node address to use for the request. + * + * # Returns + * + * A `Result` containing either a `PutDeployResult` or a `JsError` in case of an error. + * + * # Errors + * + * Returns a `JsError` if there is an error during the deploy process. + * @param {Deploy} deploy + * @param {number | undefined} verbosity + * @param {string | undefined} node_address + * @returns {Promise} + */ + put_deploy(deploy, verbosity, node_address) { + _assertClass(deploy, Deploy); + var ptr0 = deploy.__destroy_into_raw(); + var ptr1 = isLikeNone(node_address) ? 0 : passStringToWasm0(node_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len1 = WASM_VECTOR_LEN; + const ret = wasm.sdk_put_deploy(this.__wbg_ptr, ptr0, isLikeNone(verbosity) ? 3 : verbosity, ptr1, len1); + return takeObject(ret); + } + /** + * JS Alias for `put_deploy_js_alias`. + * + * This function provides an alternative name for `put_deploy_js_alias`. + * @param {Deploy} deploy + * @param {number | undefined} verbosity + * @param {string | undefined} node_address + * @returns {Promise} + */ + account_put_deploy(deploy, verbosity, node_address) { + _assertClass(deploy, Deploy); + var ptr0 = deploy.__destroy_into_raw(); + var ptr1 = isLikeNone(node_address) ? 0 : passStringToWasm0(node_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len1 = WASM_VECTOR_LEN; + const ret = wasm.sdk_account_put_deploy(this.__wbg_ptr, ptr0, isLikeNone(verbosity) ? 3 : verbosity, ptr1, len1); + return takeObject(ret); + } + /** + * JS Alias for `make_deploy`. + * + * # Arguments + * + * * `deploy_params` - The deploy parameters. + * * `session_params` - The session parameters. + * * `payment_params` - The payment parameters. + * + * # Returns + * + * A `Result` containing the created `Deploy` or a `JsError` in case of an error. + * @param {DeployStrParams} deploy_params + * @param {SessionStrParams} session_params + * @param {PaymentStrParams} payment_params + * @returns {Deploy} + */ + make_deploy(deploy_params, session_params, payment_params) { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + _assertClass(deploy_params, DeployStrParams); + var ptr0 = deploy_params.__destroy_into_raw(); + _assertClass(session_params, SessionStrParams); + var ptr1 = session_params.__destroy_into_raw(); + _assertClass(payment_params, PaymentStrParams); + var ptr2 = payment_params.__destroy_into_raw(); + wasm.sdk_make_deploy(retptr, this.__wbg_ptr, ptr0, ptr1, ptr2); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + var r2 = getInt32Memory0()[retptr / 4 + 2]; + if (r2) { + throw takeObject(r1); + } + return Deploy.__wrap(r0); + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * JS Alias for speculative transfer. + * + * # Arguments + * + * * `amount` - The amount to transfer. + * * `target_account` - The target account. + * * `transfer_id` - An optional transfer ID (defaults to a random number). + * * `deploy_params` - The deployment parameters. + * * `payment_params` - The payment parameters. + * * `maybe_block_id_as_string` - An optional block ID as a string. + * * `maybe_block_identifier` - An optional block identifier. + * * `verbosity` - The verbosity level for logging (optional). + * * `node_address` - The address of the node to connect to (optional). + * + * # Returns + * + * A `Result` containing the result of the speculative transfer or a `JsError` in case of an error. + * @param {string} amount + * @param {string} target_account + * @param {string | undefined} transfer_id + * @param {DeployStrParams} deploy_params + * @param {PaymentStrParams} payment_params + * @param {string | undefined} maybe_block_id_as_string + * @param {BlockIdentifier | undefined} maybe_block_identifier + * @param {number | undefined} verbosity + * @param {string | undefined} node_address + * @returns {Promise} + */ + speculative_transfer(amount, target_account, transfer_id, deploy_params, payment_params, maybe_block_id_as_string, maybe_block_identifier, verbosity, node_address) { + const ptr0 = passStringToWasm0(amount, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + const ptr1 = passStringToWasm0(target_account, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len1 = WASM_VECTOR_LEN; + var ptr2 = isLikeNone(transfer_id) ? 0 : passStringToWasm0(transfer_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len2 = WASM_VECTOR_LEN; + _assertClass(deploy_params, DeployStrParams); + var ptr3 = deploy_params.__destroy_into_raw(); + _assertClass(payment_params, PaymentStrParams); + var ptr4 = payment_params.__destroy_into_raw(); + var ptr5 = isLikeNone(maybe_block_id_as_string) ? 0 : passStringToWasm0(maybe_block_id_as_string, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len5 = WASM_VECTOR_LEN; + let ptr6 = 0; + if (!isLikeNone(maybe_block_identifier)) { + _assertClass(maybe_block_identifier, BlockIdentifier); + ptr6 = maybe_block_identifier.__destroy_into_raw(); + } + var ptr7 = isLikeNone(node_address) ? 0 : passStringToWasm0(node_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len7 = WASM_VECTOR_LEN; + const ret = wasm.sdk_speculative_transfer(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, ptr4, ptr5, len5, ptr6, isLikeNone(verbosity) ? 3 : verbosity, ptr7, len7); + return takeObject(ret); + } + /** + * JS Alias for `sign_deploy`. + * + * # Arguments + * + * * `deploy` - The deploy to sign. + * * `secret_key` - The secret key for signing. + * + * # Returns + * + * The signed `Deploy`. + * @param {Deploy} deploy + * @param {string} secret_key + * @returns {Deploy} + */ + sign_deploy(deploy, secret_key) { + _assertClass(deploy, Deploy); + var ptr0 = deploy.__destroy_into_raw(); + const ptr1 = passStringToWasm0(secret_key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len1 = WASM_VECTOR_LEN; + const ret = wasm.sdk_sign_deploy(this.__wbg_ptr, ptr0, ptr1, len1); + return Deploy.__wrap(ret); + } + /** + * Parses block transfers options from a JsValue. + * + * # Arguments + * + * * `options` - A JsValue containing block transfers options to be parsed. + * + * # Returns + * + * Parsed block transfers options as a `GetBlockTransfersOptions` struct. + * @param {any} options + * @returns {getBlockTransfersOptions} + */ + get_block_transfers_options(options) { + const ret = wasm.sdk_get_block_transfers_options(this.__wbg_ptr, addHeapObject(options)); + return getBlockTransfersOptions.__wrap(ret); + } + /** + * Retrieves block transfers information using the provided options. + * + * # Arguments + * + * * `options` - An optional `GetBlockTransfersOptions` struct containing retrieval options. + * + * # Returns + * + * A `Result` containing either a `GetBlockTransfersResult` or a `JsError` in case of an error. + * + * # Errors + * + * Returns a `JsError` if there is an error during the retrieval process. + * @param {getBlockTransfersOptions | undefined} options + * @returns {Promise} + */ + get_block_transfers(options) { + let ptr0 = 0; + if (!isLikeNone(options)) { + _assertClass(options, getBlockTransfersOptions); + ptr0 = options.__destroy_into_raw(); + } + const ret = wasm.sdk_get_block_transfers(this.__wbg_ptr, ptr0); + return takeObject(ret); + } + /** + * Parses query balance options from a JsValue. + * + * # Arguments + * + * * `options` - A JsValue containing query balance options to be parsed. + * + * # Returns + * + * Parsed query balance options as a `QueryBalanceOptions` struct. + * @param {any} options + * @returns {queryBalanceOptions} + */ + query_balance_options(options) { + const ret = wasm.sdk_query_balance_options(this.__wbg_ptr, addHeapObject(options)); + return queryBalanceOptions.__wrap(ret); + } + /** + * Retrieves balance information using the provided options. + * + * # Arguments + * + * * `options` - An optional `QueryBalanceOptions` struct containing retrieval options. + * + * # Returns + * + * A `Result` containing either a `QueryBalanceResult` or a `JsError` in case of an error. + * + * # Errors + * + * Returns a `JsError` if there is an error during the retrieval process. + * @param {queryBalanceOptions | undefined} options + * @returns {Promise} + */ + query_balance(options) { + let ptr0 = 0; + if (!isLikeNone(options)) { + _assertClass(options, queryBalanceOptions); + ptr0 = options.__destroy_into_raw(); + } + const ret = wasm.sdk_query_balance(this.__wbg_ptr, ptr0); + return takeObject(ret); + } + /** + * JavaScript alias for deploying with deserialized parameters. + * + * # Arguments + * + * * `deploy_params` - Deploy parameters. + * * `session_params` - Session parameters. + * * `payment_params` - Payment parameters. + * * `verbosity` - An optional verbosity level. + * * `node_address` - An optional node address. + * + * # Returns + * + * A result containing PutDeployResult or a JsError. + * @param {DeployStrParams} deploy_params + * @param {SessionStrParams} session_params + * @param {PaymentStrParams} payment_params + * @param {number | undefined} verbosity + * @param {string | undefined} node_address + * @returns {Promise} + */ + deploy(deploy_params, session_params, payment_params, verbosity, node_address) { + _assertClass(deploy_params, DeployStrParams); + var ptr0 = deploy_params.__destroy_into_raw(); + _assertClass(session_params, SessionStrParams); + var ptr1 = session_params.__destroy_into_raw(); + _assertClass(payment_params, PaymentStrParams); + var ptr2 = payment_params.__destroy_into_raw(); + var ptr3 = isLikeNone(node_address) ? 0 : passStringToWasm0(node_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len3 = WASM_VECTOR_LEN; + const ret = wasm.sdk_deploy(this.__wbg_ptr, ptr0, ptr1, ptr2, isLikeNone(verbosity) ? 3 : verbosity, ptr3, len3); + return takeObject(ret); + } + /** + * JS Alias for transferring funds. + * + * # Arguments + * + * * `amount` - The amount to transfer. + * * `target_account` - The target account. + * * `transfer_id` - An optional transfer ID (defaults to a random number). + * * `deploy_params` - The deployment parameters. + * * `payment_params` - The payment parameters. + * * `verbosity` - The verbosity level for logging (optional). + * * `node_address` - The address of the node to connect to (optional). + * + * # Returns + * + * A `Result` containing the result of the transfer or a `JsError` in case of an error. + * @param {string} amount + * @param {string} target_account + * @param {string | undefined} transfer_id + * @param {DeployStrParams} deploy_params + * @param {PaymentStrParams} payment_params + * @param {number | undefined} verbosity + * @param {string | undefined} node_address + * @returns {Promise} + */ + transfer(amount, target_account, transfer_id, deploy_params, payment_params, verbosity, node_address) { + const ptr0 = passStringToWasm0(amount, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + const ptr1 = passStringToWasm0(target_account, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len1 = WASM_VECTOR_LEN; + var ptr2 = isLikeNone(transfer_id) ? 0 : passStringToWasm0(transfer_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len2 = WASM_VECTOR_LEN; + _assertClass(deploy_params, DeployStrParams); + var ptr3 = deploy_params.__destroy_into_raw(); + _assertClass(payment_params, PaymentStrParams); + var ptr4 = payment_params.__destroy_into_raw(); + var ptr5 = isLikeNone(node_address) ? 0 : passStringToWasm0(node_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len5 = WASM_VECTOR_LEN; + const ret = wasm.sdk_transfer(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, ptr4, isLikeNone(verbosity) ? 3 : verbosity, ptr5, len5); + return takeObject(ret); + } + /** + * @param {any} options + * @returns {getAccountOptions} + */ + get_account_options(options) { + const ret = wasm.sdk_get_account_options(this.__wbg_ptr, addHeapObject(options)); + return getAccountOptions.__wrap(ret); + } + /** + * @param {getAccountOptions | undefined} options + * @returns {Promise} + */ + get_account(options) { + let ptr0 = 0; + if (!isLikeNone(options)) { + _assertClass(options, getAccountOptions); + ptr0 = options.__destroy_into_raw(); + } + const ret = wasm.sdk_get_account(this.__wbg_ptr, ptr0); + return takeObject(ret); + } + /** + * @param {getAccountOptions | undefined} options + * @returns {Promise} + */ + state_get_account_info(options) { + let ptr0 = 0; + if (!isLikeNone(options)) { + _assertClass(options, getAccountOptions); + ptr0 = options.__destroy_into_raw(); + } + const ret = wasm.sdk_state_get_account_info(this.__wbg_ptr, ptr0); + return takeObject(ret); + } + /** + * Parses era summary options from a JsValue. + * + * # Arguments + * + * * `options` - A JsValue containing era summary options to be parsed. + * + * # Returns + * + * Parsed era summary options as a `GetEraSummaryOptions` struct. + * @param {any} options + * @returns {getEraSummaryOptions} + */ + get_era_summary_options(options) { + const ret = wasm.sdk_get_era_summary_options(this.__wbg_ptr, addHeapObject(options)); + return getEraSummaryOptions.__wrap(ret); + } + /** + * Retrieves era summary information using the provided options. + * + * # Arguments + * + * * `options` - An optional `GetEraSummaryOptions` struct containing retrieval options. + * + * # Returns + * + * A `Result` containing either a `GetEraSummaryResult` or a `JsError` in case of an error. + * + * # Errors + * + * Returns a `JsError` if there is an error during the retrieval process. + * @param {getEraSummaryOptions | undefined} options + * @returns {Promise} + */ + get_era_summary(options) { + let ptr0 = 0; + if (!isLikeNone(options)) { + _assertClass(options, getEraSummaryOptions); + ptr0 = options.__destroy_into_raw(); + } + const ret = wasm.sdk_get_era_summary(this.__wbg_ptr, ptr0); + return takeObject(ret); + } + /** + * Retrieves node status information using the provided options. + * + * # Arguments + * + * * `verbosity` - An optional `Verbosity` level for controlling the output verbosity. + * * `node_address` - An optional string specifying the node address to use for the request. + * + * # Returns + * + * A `Result` containing either a `GetNodeStatusResult` or a `JsError` in case of an error. + * + * # Errors + * + * Returns a `JsError` if there is an error during the retrieval process. + * @param {number | undefined} verbosity + * @param {string | undefined} node_address + * @returns {Promise} + */ + get_node_status(verbosity, node_address) { + var ptr0 = isLikeNone(node_address) ? 0 : passStringToWasm0(node_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + const ret = wasm.sdk_get_node_status(this.__wbg_ptr, isLikeNone(verbosity) ? 3 : verbosity, ptr0, len0); + return takeObject(ret); + } + /** + * Retrieves validator changes using the provided options. + * + * # Arguments + * + * * `verbosity` - An optional `Verbosity` level for controlling the output verbosity. + * * `node_address` - An optional string specifying the node address to use for the request. + * + * # Returns + * + * A `Result` containing either a `GetValidatorChangesResult` or a `JsError` in case of an error. + * + * # Errors + * + * Returns a `JsError` if there is an error during the retrieval process. + * @param {number | undefined} verbosity + * @param {string | undefined} node_address + * @returns {Promise} + */ + get_validator_changes(verbosity, node_address) { + var ptr0 = isLikeNone(node_address) ? 0 : passStringToWasm0(node_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + const ret = wasm.sdk_get_validator_changes(this.__wbg_ptr, isLikeNone(verbosity) ? 3 : verbosity, ptr0, len0); + return takeObject(ret); + } + /** + * Lists available RPCs using the provided options. + * + * # Arguments + * + * * `verbosity` - An optional `Verbosity` level for controlling the output verbosity. + * * `node_address` - An optional string specifying the node address to use for the request. + * + * # Returns + * + * A `Result` containing either a `ListRpcsResult` or a `JsError` in case of an error. + * + * # Errors + * + * Returns a `JsError` if there is an error during the listing process. + * @param {number | undefined} verbosity + * @param {string | undefined} node_address + * @returns {Promise} + */ + list_rpcs(verbosity, node_address) { + var ptr0 = isLikeNone(node_address) ? 0 : passStringToWasm0(node_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + const ret = wasm.sdk_list_rpcs(this.__wbg_ptr, isLikeNone(verbosity) ? 3 : verbosity, ptr0, len0); + return takeObject(ret); + } + /** + * Parses query global state options from a JsValue. + * + * # Arguments + * + * * `options` - A JsValue containing query global state options to be parsed. + * + * # Returns + * + * Parsed query global state options as a `QueryGlobalStateOptions` struct. + * @param {any} options + * @returns {queryGlobalStateOptions} + */ + query_global_state_options(options) { + const ret = wasm.sdk_query_global_state_options(this.__wbg_ptr, addHeapObject(options)); + return queryGlobalStateOptions.__wrap(ret); + } + /** + * Retrieves global state information using the provided options. + * + * # Arguments + * + * * `options` - An optional `QueryGlobalStateOptions` struct containing retrieval options. + * + * # Returns + * + * A `Result` containing either a `QueryGlobalStateResult` or a `JsError` in case of an error. + * + * # Errors + * + * Returns a `JsError` if there is an error during the retrieval process. + * @param {queryGlobalStateOptions | undefined} options + * @returns {Promise} + */ + query_global_state(options) { + let ptr0 = 0; + if (!isLikeNone(options)) { + _assertClass(options, queryGlobalStateOptions); + ptr0 = options.__destroy_into_raw(); + } + const ret = wasm.sdk_query_global_state(this.__wbg_ptr, ptr0); + return takeObject(ret); + } + /** + * Parses auction info options from a JsValue. + * + * # Arguments + * + * * `options` - A JsValue containing auction info options to be parsed. + * + * # Returns + * + * Parsed auction info options as a `GetAuctionInfoOptions` struct. + * @param {any} options + * @returns {getAuctionInfoOptions} + */ + get_auction_info_options(options) { + const ret = wasm.sdk_get_auction_info_options(this.__wbg_ptr, addHeapObject(options)); + return getAuctionInfoOptions.__wrap(ret); + } + /** + * Retrieves auction information using the provided options. + * + * # Arguments + * + * * `options` - An optional `GetAuctionInfoOptions` struct containing retrieval options. + * + * # Returns + * + * A `Result` containing either a `GetAuctionInfoResult` or a `JsError` in case of an error. + * + * # Errors + * + * Returns a `JsError` if there is an error during the retrieval process. + * @param {getAuctionInfoOptions | undefined} options + * @returns {Promise} + */ + get_auction_info(options) { + let ptr0 = 0; + if (!isLikeNone(options)) { + _assertClass(options, getAuctionInfoOptions); + ptr0 = options.__destroy_into_raw(); + } + const ret = wasm.sdk_get_auction_info(this.__wbg_ptr, ptr0); + return takeObject(ret); + } + /** + * Parses block options from a JsValue. + * + * # Arguments + * + * * `options` - A JsValue containing block options to be parsed. + * + * # Returns + * + * Parsed block options as a `GetBlockOptions` struct. + * @param {any} options + * @returns {getBlockOptions} + */ + get_block_options(options) { + const ret = wasm.sdk_get_block_options(this.__wbg_ptr, addHeapObject(options)); + return getBlockOptions.__wrap(ret); + } + /** + * Retrieves block information using the provided options. + * + * # Arguments + * + * * `options` - An optional `GetBlockOptions` struct containing retrieval options. + * + * # Returns + * + * A `Result` containing either a `GetBlockResult` or a `JsError` in case of an error. + * + * # Errors + * + * Returns a `JsError` if there is an error during the retrieval process. + * @param {getBlockOptions | undefined} options + * @returns {Promise} + */ + get_block(options) { + let ptr0 = 0; + if (!isLikeNone(options)) { + _assertClass(options, getBlockOptions); + ptr0 = options.__destroy_into_raw(); + } + const ret = wasm.sdk_get_block(this.__wbg_ptr, ptr0); + return takeObject(ret); + } + /** + * JS Alias for the `get_block` method to maintain compatibility. + * + * # Arguments + * + * * `options` - An optional `GetBlockOptions` struct containing retrieval options. + * + * # Returns + * + * A `Result` containing either a `GetBlockResult` or a `JsError` in case of an error. + * + * # Errors + * + * Returns a `JsError` if there is an error during the retrieval process. + * @param {getBlockOptions | undefined} options + * @returns {Promise} + */ + chain_get_block(options) { + let ptr0 = 0; + if (!isLikeNone(options)) { + _assertClass(options, getBlockOptions); + ptr0 = options.__destroy_into_raw(); + } + const ret = wasm.sdk_chain_get_block(this.__wbg_ptr, ptr0); + return takeObject(ret); + } + /** + * Retrieves peers asynchronously. + * + * # Arguments + * + * * `verbosity` - Optional verbosity level. + * * `node_address` - Optional node address. + * + * # Returns + * + * A `Result` containing `GetPeersResult` or a `JsError` if an error occurs. + * @param {number | undefined} verbosity + * @param {string | undefined} node_address + * @returns {Promise} + */ + get_peers(verbosity, node_address) { + var ptr0 = isLikeNone(node_address) ? 0 : passStringToWasm0(node_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + const ret = wasm.sdk_get_peers(this.__wbg_ptr, isLikeNone(verbosity) ? 3 : verbosity, ptr0, len0); + return takeObject(ret); + } + /** + * JS Alias for `make_transfer`. + * + * # Arguments + * + * * `amount` - The transfer amount. + * * `target_account` - The target account. + * * `transfer_id` - Optional transfer identifier. + * * `deploy_params` - The deploy parameters. + * * `payment_params` - The payment parameters. + * + * # Returns + * + * A `Result` containing the created `Deploy` or a `JsError` in case of an error. + * @param {string} amount + * @param {string} target_account + * @param {string | undefined} transfer_id + * @param {DeployStrParams} deploy_params + * @param {PaymentStrParams} payment_params + * @returns {Deploy} + */ + make_transfer(amount, target_account, transfer_id, deploy_params, payment_params) { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + const ptr0 = passStringToWasm0(amount, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + const ptr1 = passStringToWasm0(target_account, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len1 = WASM_VECTOR_LEN; + var ptr2 = isLikeNone(transfer_id) ? 0 : passStringToWasm0(transfer_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len2 = WASM_VECTOR_LEN; + _assertClass(deploy_params, DeployStrParams); + var ptr3 = deploy_params.__destroy_into_raw(); + _assertClass(payment_params, PaymentStrParams); + var ptr4 = payment_params.__destroy_into_raw(); + wasm.sdk_make_transfer(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, ptr4); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + var r2 = getInt32Memory0()[retptr / 4 + 2]; + if (r2) { + throw takeObject(r1); + } + return Deploy.__wrap(r0); + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * This function allows executing a deploy speculatively. + * + * # Arguments + * + * * `deploy_params` - Deployment parameters for the deploy. + * * `session_params` - Session parameters for the deploy. + * * `payment_params` - Payment parameters for the deploy. + * * `maybe_block_identifier` - Optional block identifier. + * * `verbosity` - Optional verbosity level. + * * `node_address` - Optional node address. + * + * # Returns + * + * A `Result` containing either a `SpeculativeExecResult` or a `JsError` in case of an error. + * @param {DeployStrParams} deploy_params + * @param {SessionStrParams} session_params + * @param {PaymentStrParams} payment_params + * @param {BlockIdentifier | undefined} maybe_block_identifier + * @param {number | undefined} verbosity + * @param {string | undefined} node_address + * @returns {Promise} + */ + speculative_deploy(deploy_params, session_params, payment_params, maybe_block_identifier, verbosity, node_address) { + _assertClass(deploy_params, DeployStrParams); + var ptr0 = deploy_params.__destroy_into_raw(); + _assertClass(session_params, SessionStrParams); + var ptr1 = session_params.__destroy_into_raw(); + _assertClass(payment_params, PaymentStrParams); + var ptr2 = payment_params.__destroy_into_raw(); + let ptr3 = 0; + if (!isLikeNone(maybe_block_identifier)) { + _assertClass(maybe_block_identifier, BlockIdentifier); + ptr3 = maybe_block_identifier.__destroy_into_raw(); + } + var ptr4 = isLikeNone(node_address) ? 0 : passStringToWasm0(node_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len4 = WASM_VECTOR_LEN; + const ret = wasm.sdk_speculative_deploy(this.__wbg_ptr, ptr0, ptr1, ptr2, ptr3, isLikeNone(verbosity) ? 3 : verbosity, ptr4, len4); + return takeObject(ret); + } + /** + * Parses balance options from a JsValue. + * + * # Arguments + * + * * `options` - A JsValue containing balance options to be parsed. + * + * # Returns + * + * Parsed balance options as a `GetBalanceOptions` struct. + * @param {any} options + * @returns {getBalanceOptions} + */ + get_balance_options(options) { + const ret = wasm.sdk_get_balance_options(this.__wbg_ptr, addHeapObject(options)); + return getBalanceOptions.__wrap(ret); + } + /** + * Retrieves balance information using the provided options. + * + * # Arguments + * + * * `options` - An optional `GetBalanceOptions` struct containing retrieval options. + * + * # Returns + * + * A `Result` containing either a `GetBalanceResult` or a `JsError` in case of an error. + * + * # Errors + * + * Returns a `JsError` if there is an error during the retrieval process. + * @param {getBalanceOptions | undefined} options + * @returns {Promise} + */ + get_balance(options) { + let ptr0 = 0; + if (!isLikeNone(options)) { + _assertClass(options, getBalanceOptions); + ptr0 = options.__destroy_into_raw(); + } + const ret = wasm.sdk_get_balance(this.__wbg_ptr, ptr0); + return takeObject(ret); + } + /** + * JS Alias for `get_balance_js_alias`. + * + * # Arguments + * + * * `options` - An optional `GetBalanceOptions` struct containing retrieval options. + * + * # Returns + * + * A `Result` containing either a `GetBalanceResult` or a `JsError` in case of an error. + * @param {getBalanceOptions | undefined} options + * @returns {Promise} + */ + state_get_balance(options) { + let ptr0 = 0; + if (!isLikeNone(options)) { + _assertClass(options, getBalanceOptions); + ptr0 = options.__destroy_into_raw(); + } + const ret = wasm.sdk_state_get_balance(this.__wbg_ptr, ptr0); + return takeObject(ret); + } + /** + * Asynchronously retrieves the chainspec. + * + * # Arguments + * + * * `verbosity` - An optional `Verbosity` parameter. + * * `node_address` - An optional node address as a string. + * + * # Returns + * + * A `Result` containing either a `GetChainspecResult` or a `JsError` in case of an error. + * @param {number | undefined} verbosity + * @param {string | undefined} node_address + * @returns {Promise} + */ + get_chainspec(verbosity, node_address) { + var ptr0 = isLikeNone(node_address) ? 0 : passStringToWasm0(node_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + const ret = wasm.sdk_get_chainspec(this.__wbg_ptr, isLikeNone(verbosity) ? 3 : verbosity, ptr0, len0); + return takeObject(ret); + } + /** + * Parses dictionary item options from a JsValue. + * + * # Arguments + * + * * `options` - A JsValue containing dictionary item options to be parsed. + * + * # Returns + * + * Parsed dictionary item options as a `GetDictionaryItemOptions` struct. + * @param {any} options + * @returns {getDictionaryItemOptions} + */ + get_dictionary_item_options(options) { + const ret = wasm.sdk_get_dictionary_item_options(this.__wbg_ptr, addHeapObject(options)); + return getDictionaryItemOptions.__wrap(ret); + } + /** + * Retrieves dictionary item information using the provided options. + * + * # Arguments + * + * * `options` - An optional `GetDictionaryItemOptions` struct containing retrieval options. + * + * # Returns + * + * A `Result` containing either a `GetDictionaryItemResult` or a `JsError` in case of an error. + * + * # Errors + * + * Returns a `JsError` if there is an error during the retrieval process. + * @param {getDictionaryItemOptions | undefined} options + * @returns {Promise} + */ + get_dictionary_item(options) { + let ptr0 = 0; + if (!isLikeNone(options)) { + _assertClass(options, getDictionaryItemOptions); + ptr0 = options.__destroy_into_raw(); + } + const ret = wasm.sdk_get_dictionary_item(this.__wbg_ptr, ptr0); + return takeObject(ret); + } + /** + * JS Alias for `get_dictionary_item_js_alias` + * @param {getDictionaryItemOptions | undefined} options + * @returns {Promise} + */ + state_get_dictionary_item(options) { + let ptr0 = 0; + if (!isLikeNone(options)) { + _assertClass(options, getDictionaryItemOptions); + ptr0 = options.__destroy_into_raw(); + } + const ret = wasm.sdk_state_get_dictionary_item(this.__wbg_ptr, ptr0); + return takeObject(ret); + } + /** + * Deserialize query_contract_dict_options from a JavaScript object. + * @param {any} options + * @returns {queryContractDictOptions} + */ + query_contract_dict_options(options) { + const ret = wasm.sdk_query_contract_dict_options(this.__wbg_ptr, addHeapObject(options)); + return queryContractDictOptions.__wrap(ret); + } + /** + * JavaScript alias for query_contract_dict with deserialized options. + * @param {queryContractDictOptions | undefined} options + * @returns {Promise} + */ + query_contract_dict(options) { + let ptr0 = 0; + if (!isLikeNone(options)) { + _assertClass(options, queryContractDictOptions); + ptr0 = options.__destroy_into_raw(); + } + const ret = wasm.sdk_query_contract_dict(this.__wbg_ptr, ptr0); + return takeObject(ret); + } + /** + * Deserialize query_contract_key_options from a JavaScript object. + * @param {any} options + * @returns {queryContractKeyOptions} + */ + query_contract_key_options(options) { + const ret = wasm.sdk_query_contract_key_options(this.__wbg_ptr, addHeapObject(options)); + return queryContractKeyOptions.__wrap(ret); + } + /** + * JavaScript alias for query_contract_key with deserialized options. + * @param {queryContractKeyOptions | undefined} options + * @returns {Promise} + */ + query_contract_key(options) { + let ptr0 = 0; + if (!isLikeNone(options)) { + _assertClass(options, queryContractKeyOptions); + ptr0 = options.__destroy_into_raw(); + } + const ret = wasm.sdk_query_contract_key(this.__wbg_ptr, ptr0); + return takeObject(ret); + } + /** + * Installs a smart contract with the specified parameters and returns the result. + * + * # Arguments + * + * * `deploy_params` - The deploy parameters. + * * `session_params` - The session parameters. + * * `payment_amount` - The payment amount as a string. + * * `node_address` - An optional node address to send the request to. + * + * # Returns + * + * A `Result` containing either a `PutDeployResult` or a `JsError` in case of an error. + * + * # Errors + * + * Returns a `JsError` if there is an error during the installation. + * @param {DeployStrParams} deploy_params + * @param {SessionStrParams} session_params + * @param {string} payment_amount + * @param {string | undefined} node_address + * @returns {Promise} + */ + install(deploy_params, session_params, payment_amount, node_address) { + _assertClass(deploy_params, DeployStrParams); + var ptr0 = deploy_params.__destroy_into_raw(); + _assertClass(session_params, SessionStrParams); + var ptr1 = session_params.__destroy_into_raw(); + const ptr2 = passStringToWasm0(payment_amount, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len2 = WASM_VECTOR_LEN; + var ptr3 = isLikeNone(node_address) ? 0 : passStringToWasm0(node_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len3 = WASM_VECTOR_LEN; + const ret = wasm.sdk_install(this.__wbg_ptr, ptr0, ptr1, ptr2, len2, ptr3, len3); + return takeObject(ret); + } + /** + * Calls a smart contract entry point with the specified parameters and returns the result. + * + * # Arguments + * + * * `deploy_params` - The deploy parameters. + * * `session_params` - The session parameters. + * * `payment_amount` - The payment amount as a string. + * * `node_address` - An optional node address to send the request to. + * + * # Returns + * + * A `Result` containing either a `PutDeployResult` or a `JsError` in case of an error. + * + * # Errors + * + * Returns a `JsError` if there is an error during the call. + * @param {DeployStrParams} deploy_params + * @param {SessionStrParams} session_params + * @param {string} payment_amount + * @param {string | undefined} node_address + * @returns {Promise} + */ + call_entrypoint(deploy_params, session_params, payment_amount, node_address) { + _assertClass(deploy_params, DeployStrParams); + var ptr0 = deploy_params.__destroy_into_raw(); + _assertClass(session_params, SessionStrParams); + var ptr1 = session_params.__destroy_into_raw(); + const ptr2 = passStringToWasm0(payment_amount, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len2 = WASM_VECTOR_LEN; + var ptr3 = isLikeNone(node_address) ? 0 : passStringToWasm0(node_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len3 = WASM_VECTOR_LEN; + const ret = wasm.sdk_call_entrypoint(this.__wbg_ptr, ptr0, ptr1, ptr2, len2, ptr3, len3); + return takeObject(ret); + } +} +module.exports.SDK = SDK; +/** +*/ +class SessionStrParams { + + static __wrap(ptr) { + ptr = ptr >>> 0; + const obj = Object.create(SessionStrParams.prototype); + obj.__wbg_ptr = ptr; + + return obj; + } + + __destroy_into_raw() { + const ptr = this.__wbg_ptr; + this.__wbg_ptr = 0; + + return ptr; + } + + free() { + const ptr = this.__destroy_into_raw(); + wasm.__wbg_sessionstrparams_free(ptr); + } + /** + * @param {string | undefined} session_hash + * @param {string | undefined} session_name + * @param {string | undefined} session_package_hash + * @param {string | undefined} session_package_name + * @param {string | undefined} session_path + * @param {Bytes | undefined} session_bytes + * @param {Array | undefined} session_args_simple + * @param {string | undefined} session_args_json + * @param {string | undefined} session_args_complex + * @param {string | undefined} session_version + * @param {string | undefined} session_entry_point + * @param {boolean | undefined} is_session_transfer + */ + constructor(session_hash, session_name, session_package_hash, session_package_name, session_path, session_bytes, session_args_simple, session_args_json, session_args_complex, session_version, session_entry_point, is_session_transfer) { + var ptr0 = isLikeNone(session_hash) ? 0 : passStringToWasm0(session_hash, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + var ptr1 = isLikeNone(session_name) ? 0 : passStringToWasm0(session_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len1 = WASM_VECTOR_LEN; + var ptr2 = isLikeNone(session_package_hash) ? 0 : passStringToWasm0(session_package_hash, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len2 = WASM_VECTOR_LEN; + var ptr3 = isLikeNone(session_package_name) ? 0 : passStringToWasm0(session_package_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len3 = WASM_VECTOR_LEN; + var ptr4 = isLikeNone(session_path) ? 0 : passStringToWasm0(session_path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len4 = WASM_VECTOR_LEN; + let ptr5 = 0; + if (!isLikeNone(session_bytes)) { + _assertClass(session_bytes, Bytes); + ptr5 = session_bytes.__destroy_into_raw(); + } + var ptr6 = isLikeNone(session_args_json) ? 0 : passStringToWasm0(session_args_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len6 = WASM_VECTOR_LEN; + var ptr7 = isLikeNone(session_args_complex) ? 0 : passStringToWasm0(session_args_complex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len7 = WASM_VECTOR_LEN; + var ptr8 = isLikeNone(session_version) ? 0 : passStringToWasm0(session_version, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len8 = WASM_VECTOR_LEN; + var ptr9 = isLikeNone(session_entry_point) ? 0 : passStringToWasm0(session_entry_point, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len9 = WASM_VECTOR_LEN; + const ret = wasm.sessionstrparams_new(ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, ptr4, len4, ptr5, isLikeNone(session_args_simple) ? 0 : addHeapObject(session_args_simple), ptr6, len6, ptr7, len7, ptr8, len8, ptr9, len9, isLikeNone(is_session_transfer) ? 0xFFFFFF : is_session_transfer ? 1 : 0); + return SessionStrParams.__wrap(ret); + } + /** + * @returns {string | undefined} + */ + get session_hash() { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.sessionstrparams_session_hash(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + let v1; + if (r0 !== 0) { + v1 = getStringFromWasm0(r0, r1).slice(); + wasm.__wbindgen_free(r0, r1 * 1); + } + return v1; + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string} session_hash + */ + set session_hash(session_hash) { + const ptr0 = passStringToWasm0(session_hash, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + wasm.sessionstrparams_set_session_hash(this.__wbg_ptr, ptr0, len0); + } + /** + * @returns {string | undefined} + */ + get session_name() { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.sessionstrparams_session_name(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + let v1; + if (r0 !== 0) { + v1 = getStringFromWasm0(r0, r1).slice(); + wasm.__wbindgen_free(r0, r1 * 1); + } + return v1; + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string} session_name + */ + set session_name(session_name) { + const ptr0 = passStringToWasm0(session_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + wasm.sessionstrparams_set_session_name(this.__wbg_ptr, ptr0, len0); + } + /** + * @returns {string | undefined} + */ + get session_package_hash() { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.sessionstrparams_session_package_hash(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + let v1; + if (r0 !== 0) { + v1 = getStringFromWasm0(r0, r1).slice(); + wasm.__wbindgen_free(r0, r1 * 1); + } + return v1; + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string} session_package_hash + */ + set session_package_hash(session_package_hash) { + const ptr0 = passStringToWasm0(session_package_hash, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + wasm.sessionstrparams_set_session_package_hash(this.__wbg_ptr, ptr0, len0); + } + /** + * @returns {string | undefined} + */ + get session_package_name() { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.sessionstrparams_session_package_name(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + let v1; + if (r0 !== 0) { + v1 = getStringFromWasm0(r0, r1).slice(); + wasm.__wbindgen_free(r0, r1 * 1); + } + return v1; + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string} session_package_name + */ + set session_package_name(session_package_name) { + const ptr0 = passStringToWasm0(session_package_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + wasm.sessionstrparams_set_session_package_name(this.__wbg_ptr, ptr0, len0); + } + /** + * @returns {string | undefined} + */ + get session_path() { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.sessionstrparams_session_path(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + let v1; + if (r0 !== 0) { + v1 = getStringFromWasm0(r0, r1).slice(); + wasm.__wbindgen_free(r0, r1 * 1); + } + return v1; + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string} session_path + */ + set session_path(session_path) { + const ptr0 = passStringToWasm0(session_path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + wasm.sessionstrparams_set_session_path(this.__wbg_ptr, ptr0, len0); + } + /** + * @returns {Bytes | undefined} + */ + get session_bytes() { + const ret = wasm.sessionstrparams_session_bytes(this.__wbg_ptr); + return ret === 0 ? undefined : Bytes.__wrap(ret); + } + /** + * @param {Bytes} session_bytes + */ + set session_bytes(session_bytes) { + _assertClass(session_bytes, Bytes); + var ptr0 = session_bytes.__destroy_into_raw(); + wasm.sessionstrparams_set_session_bytes(this.__wbg_ptr, ptr0); + } + /** + * @returns {ArgsSimple | undefined} + */ + get session_args_simple() { + const ret = wasm.sessionstrparams_session_args_simple(this.__wbg_ptr); + return ret === 0 ? undefined : ArgsSimple.__wrap(ret); + } + /** + * @param {Array} session_args_simple + */ + set session_args_simple(session_args_simple) { + wasm.sessionstrparams_set_session_args_simple(this.__wbg_ptr, addHeapObject(session_args_simple)); + } + /** + * @returns {string | undefined} + */ + get session_args_json() { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.sessionstrparams_session_args_json(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + let v1; + if (r0 !== 0) { + v1 = getStringFromWasm0(r0, r1).slice(); + wasm.__wbindgen_free(r0, r1 * 1); + } + return v1; + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string} session_args_json + */ + set session_args_json(session_args_json) { + const ptr0 = passStringToWasm0(session_args_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + wasm.sessionstrparams_set_session_args_json(this.__wbg_ptr, ptr0, len0); + } + /** + * @returns {string | undefined} + */ + get session_args_complex() { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.sessionstrparams_session_args_complex(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + let v1; + if (r0 !== 0) { + v1 = getStringFromWasm0(r0, r1).slice(); + wasm.__wbindgen_free(r0, r1 * 1); + } + return v1; + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string} session_args_complex + */ + set session_args_complex(session_args_complex) { + const ptr0 = passStringToWasm0(session_args_complex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + wasm.sessionstrparams_set_session_args_complex(this.__wbg_ptr, ptr0, len0); + } + /** + * @returns {string | undefined} + */ + get session_version() { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.sessionstrparams_session_version(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + let v1; + if (r0 !== 0) { + v1 = getStringFromWasm0(r0, r1).slice(); + wasm.__wbindgen_free(r0, r1 * 1); + } + return v1; + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string} session_version + */ + set session_version(session_version) { + const ptr0 = passStringToWasm0(session_version, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + wasm.sessionstrparams_set_session_version(this.__wbg_ptr, ptr0, len0); + } + /** + * @returns {string | undefined} + */ + get session_entry_point() { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.sessionstrparams_session_entry_point(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + let v1; + if (r0 !== 0) { + v1 = getStringFromWasm0(r0, r1).slice(); + wasm.__wbindgen_free(r0, r1 * 1); + } + return v1; + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string} session_entry_point + */ + set session_entry_point(session_entry_point) { + const ptr0 = passStringToWasm0(session_entry_point, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + wasm.sessionstrparams_set_session_entry_point(this.__wbg_ptr, ptr0, len0); + } + /** + * @returns {boolean | undefined} + */ + get is_session_transfer() { + const ret = wasm.sessionstrparams_is_session_transfer(this.__wbg_ptr); + return ret === 0xFFFFFF ? undefined : ret !== 0; + } + /** + * @param {boolean} is_session_transfer + */ + set is_session_transfer(is_session_transfer) { + wasm.sessionstrparams_set_is_session_transfer(this.__wbg_ptr, is_session_transfer); + } +} +module.exports.SessionStrParams = SessionStrParams; +/** +*/ +class SpeculativeExecResult { + + static __wrap(ptr) { + ptr = ptr >>> 0; + const obj = Object.create(SpeculativeExecResult.prototype); + obj.__wbg_ptr = ptr; + + return obj; + } + + __destroy_into_raw() { + const ptr = this.__wbg_ptr; + this.__wbg_ptr = 0; + + return ptr; + } + + free() { + const ptr = this.__destroy_into_raw(); + wasm.__wbg_speculativeexecresult_free(ptr); + } + /** + * Get the API version of the result. + * @returns {any} + */ + get api_version() { + const ret = wasm.speculativeexecresult_api_version(this.__wbg_ptr); + return takeObject(ret); + } + /** + * Get the block hash. + * @returns {BlockHash} + */ + get block_hash() { + const ret = wasm.speculativeexecresult_block_hash(this.__wbg_ptr); + return BlockHash.__wrap(ret); + } + /** + * Get the execution result. + * @returns {any} + */ + get execution_result() { + const ret = wasm.speculativeexecresult_execution_result(this.__wbg_ptr); + return takeObject(ret); + } + /** + * Convert the result to JSON format. + * @returns {any} + */ + toJson() { + const ret = wasm.speculativeexecresult_toJson(this.__wbg_ptr); + return takeObject(ret); + } +} +module.exports.SpeculativeExecResult = SpeculativeExecResult; +/** +*/ +class TransferAddr { + + static __wrap(ptr) { + ptr = ptr >>> 0; + const obj = Object.create(TransferAddr.prototype); + obj.__wbg_ptr = ptr; + + return obj; + } + + __destroy_into_raw() { + const ptr = this.__wbg_ptr; + this.__wbg_ptr = 0; + + return ptr; + } + + free() { + const ptr = this.__destroy_into_raw(); + wasm.__wbg_transferaddr_free(ptr); + } + /** + * @param {Uint8Array} bytes + */ + constructor(bytes) { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc); + const len0 = WASM_VECTOR_LEN; + wasm.transferaddr_new(retptr, ptr0, len0); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + var r2 = getInt32Memory0()[retptr / 4 + 2]; + if (r2) { + throw takeObject(r1); + } + return TransferAddr.__wrap(r0); + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } +} +module.exports.TransferAddr = TransferAddr; +/** +*/ +class URef { + + static __wrap(ptr) { + ptr = ptr >>> 0; + const obj = Object.create(URef.prototype); + obj.__wbg_ptr = ptr; + + return obj; + } + + __destroy_into_raw() { + const ptr = this.__wbg_ptr; + this.__wbg_ptr = 0; + + return ptr; + } + + free() { + const ptr = this.__destroy_into_raw(); + wasm.__wbg_uref_free(ptr); + } + /** + * @param {string} uref_hex_str + * @param {number} access_rights + */ + constructor(uref_hex_str, access_rights) { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + const ptr0 = passStringToWasm0(uref_hex_str, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + wasm.uref_new(retptr, ptr0, len0, access_rights); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + var r2 = getInt32Memory0()[retptr / 4 + 2]; + if (r2) { + throw takeObject(r1); + } + return URef.__wrap(r0); + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {Uint8Array} bytes + * @param {number} access_rights + * @returns {URef} + */ + static fromUint8Array(bytes, access_rights) { + const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc); + const len0 = WASM_VECTOR_LEN; + const ret = wasm.uref_fromUint8Array(ptr0, len0, access_rights); + return URef.__wrap(ret); + } + /** + * @returns {string} + */ + toFormattedString() { + let deferred1_0; + let deferred1_1; + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.uref_toFormattedString(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + deferred1_0 = r0; + deferred1_1 = r1; + return getStringFromWasm0(r0, r1); + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + wasm.__wbindgen_free(deferred1_0, deferred1_1, 1); + } + } + /** + * @returns {any} + */ + toJson() { + const ret = wasm.uref_toJson(this.__wbg_ptr); + return takeObject(ret); + } +} +module.exports.URef = URef; +/** +*/ +class URefAddr { + + static __wrap(ptr) { + ptr = ptr >>> 0; + const obj = Object.create(URefAddr.prototype); + obj.__wbg_ptr = ptr; + + return obj; + } + + __destroy_into_raw() { + const ptr = this.__wbg_ptr; + this.__wbg_ptr = 0; + + return ptr; + } + + free() { + const ptr = this.__destroy_into_raw(); + wasm.__wbg_urefaddr_free(ptr); + } + /** + * @param {Uint8Array} bytes + */ + constructor(bytes) { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc); + const len0 = WASM_VECTOR_LEN; + wasm.urefaddr_new(retptr, ptr0, len0); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + var r2 = getInt32Memory0()[retptr / 4 + 2]; + if (r2) { + throw takeObject(r1); + } + return URefAddr.__wrap(r0); + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } +} +module.exports.URefAddr = URefAddr; +/** +*/ +class getAccountOptions { + + static __wrap(ptr) { + ptr = ptr >>> 0; + const obj = Object.create(getAccountOptions.prototype); + obj.__wbg_ptr = ptr; + + return obj; + } + + __destroy_into_raw() { + const ptr = this.__wbg_ptr; + this.__wbg_ptr = 0; + + return ptr; + } + + free() { + const ptr = this.__destroy_into_raw(); + wasm.__wbg_getaccountoptions_free(ptr); + } + /** + * @returns {AccountIdentifier | undefined} + */ + get account_identifier() { + const ret = wasm.__wbg_get_getaccountoptions_account_identifier(this.__wbg_ptr); + return ret === 0 ? undefined : AccountIdentifier.__wrap(ret); + } + /** + * @param {AccountIdentifier | undefined} arg0 + */ + set account_identifier(arg0) { + let ptr0 = 0; + if (!isLikeNone(arg0)) { + _assertClass(arg0, AccountIdentifier); + ptr0 = arg0.__destroy_into_raw(); + } + wasm.__wbg_set_getaccountoptions_account_identifier(this.__wbg_ptr, ptr0); + } + /** + * @returns {string | undefined} + */ + get account_identifier_as_string() { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.__wbg_get_getaccountoptions_account_identifier_as_string(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + let v1; + if (r0 !== 0) { + v1 = getStringFromWasm0(r0, r1).slice(); + wasm.__wbindgen_free(r0, r1 * 1); + } + return v1; + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string | undefined} arg0 + */ + set account_identifier_as_string(arg0) { + var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + wasm.__wbg_set_getaccountoptions_account_identifier_as_string(this.__wbg_ptr, ptr0, len0); + } + /** + * @returns {string | undefined} + */ + get maybe_block_id_as_string() { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.__wbg_get_getaccountoptions_maybe_block_id_as_string(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + let v1; + if (r0 !== 0) { + v1 = getStringFromWasm0(r0, r1).slice(); + wasm.__wbindgen_free(r0, r1 * 1); + } + return v1; + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string | undefined} arg0 + */ + set maybe_block_id_as_string(arg0) { + var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + wasm.__wbg_set_getaccountoptions_maybe_block_id_as_string(this.__wbg_ptr, ptr0, len0); + } + /** + * @returns {BlockIdentifier | undefined} + */ + get maybe_block_identifier() { + const ret = wasm.__wbg_get_getaccountoptions_maybe_block_identifier(this.__wbg_ptr); + return ret === 0 ? undefined : BlockIdentifier.__wrap(ret); + } + /** + * @param {BlockIdentifier | undefined} arg0 + */ + set maybe_block_identifier(arg0) { + let ptr0 = 0; + if (!isLikeNone(arg0)) { + _assertClass(arg0, BlockIdentifier); + ptr0 = arg0.__destroy_into_raw(); + } + wasm.__wbg_set_getaccountoptions_maybe_block_identifier(this.__wbg_ptr, ptr0); + } + /** + * @returns {string | undefined} + */ + get node_address() { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.__wbg_get_getaccountoptions_node_address(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + let v1; + if (r0 !== 0) { + v1 = getStringFromWasm0(r0, r1).slice(); + wasm.__wbindgen_free(r0, r1 * 1); + } + return v1; + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string | undefined} arg0 + */ + set node_address(arg0) { + var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + wasm.__wbg_set_getaccountoptions_node_address(this.__wbg_ptr, ptr0, len0); + } + /** + * @returns {number | undefined} + */ + get verbosity() { + const ret = wasm.__wbg_get_getaccountoptions_verbosity(this.__wbg_ptr); + return ret === 3 ? undefined : ret; + } + /** + * @param {number | undefined} arg0 + */ + set verbosity(arg0) { + wasm.__wbg_set_getaccountoptions_verbosity(this.__wbg_ptr, isLikeNone(arg0) ? 3 : arg0); + } +} +module.exports.getAccountOptions = getAccountOptions; +/** +* Options for the `get_auction_info` method. +*/ +class getAuctionInfoOptions { + + static __wrap(ptr) { + ptr = ptr >>> 0; + const obj = Object.create(getAuctionInfoOptions.prototype); + obj.__wbg_ptr = ptr; + + return obj; + } + + __destroy_into_raw() { + const ptr = this.__wbg_ptr; + this.__wbg_ptr = 0; + + return ptr; + } + + free() { + const ptr = this.__destroy_into_raw(); + wasm.__wbg_getauctioninfooptions_free(ptr); + } + /** + * @returns {string | undefined} + */ + get maybe_block_id_as_string() { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.__wbg_get_getauctioninfooptions_maybe_block_id_as_string(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + let v1; + if (r0 !== 0) { + v1 = getStringFromWasm0(r0, r1).slice(); + wasm.__wbindgen_free(r0, r1 * 1); + } + return v1; + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string | undefined} arg0 + */ + set maybe_block_id_as_string(arg0) { + var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + wasm.__wbg_set_getauctioninfooptions_maybe_block_id_as_string(this.__wbg_ptr, ptr0, len0); + } + /** + * @returns {BlockIdentifier | undefined} + */ + get maybe_block_identifier() { + const ret = wasm.__wbg_get_getauctioninfooptions_maybe_block_identifier(this.__wbg_ptr); + return ret === 0 ? undefined : BlockIdentifier.__wrap(ret); + } + /** + * @param {BlockIdentifier | undefined} arg0 + */ + set maybe_block_identifier(arg0) { + let ptr0 = 0; + if (!isLikeNone(arg0)) { + _assertClass(arg0, BlockIdentifier); + ptr0 = arg0.__destroy_into_raw(); + } + wasm.__wbg_set_getauctioninfooptions_maybe_block_identifier(this.__wbg_ptr, ptr0); + } + /** + * @returns {string | undefined} + */ + get node_address() { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.__wbg_get_getauctioninfooptions_node_address(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + let v1; + if (r0 !== 0) { + v1 = getStringFromWasm0(r0, r1).slice(); + wasm.__wbindgen_free(r0, r1 * 1); + } + return v1; + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string | undefined} arg0 + */ + set node_address(arg0) { + var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + wasm.__wbg_set_getauctioninfooptions_node_address(this.__wbg_ptr, ptr0, len0); + } + /** + * @returns {number | undefined} + */ + get verbosity() { + const ret = wasm.__wbg_get_getauctioninfooptions_verbosity(this.__wbg_ptr); + return ret === 3 ? undefined : ret; + } + /** + * @param {number | undefined} arg0 + */ + set verbosity(arg0) { + wasm.__wbg_set_getauctioninfooptions_verbosity(this.__wbg_ptr, isLikeNone(arg0) ? 3 : arg0); + } +} +module.exports.getAuctionInfoOptions = getAuctionInfoOptions; +/** +* Options for the `get_balance` method. +*/ +class getBalanceOptions { + + static __wrap(ptr) { + ptr = ptr >>> 0; + const obj = Object.create(getBalanceOptions.prototype); + obj.__wbg_ptr = ptr; + + return obj; + } + + __destroy_into_raw() { + const ptr = this.__wbg_ptr; + this.__wbg_ptr = 0; + + return ptr; + } + + free() { + const ptr = this.__destroy_into_raw(); + wasm.__wbg_getbalanceoptions_free(ptr); + } + /** + * @returns {string | undefined} + */ + get state_root_hash_as_string() { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.__wbg_get_getbalanceoptions_state_root_hash_as_string(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + let v1; + if (r0 !== 0) { + v1 = getStringFromWasm0(r0, r1).slice(); + wasm.__wbindgen_free(r0, r1 * 1); + } + return v1; + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string | undefined} arg0 + */ + set state_root_hash_as_string(arg0) { + var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + wasm.__wbg_set_getbalanceoptions_state_root_hash_as_string(this.__wbg_ptr, ptr0, len0); + } + /** + * @returns {Digest | undefined} + */ + get state_root_hash() { + const ret = wasm.__wbg_get_getbalanceoptions_state_root_hash(this.__wbg_ptr); + return ret === 0 ? undefined : Digest.__wrap(ret); + } + /** + * @param {Digest | undefined} arg0 + */ + set state_root_hash(arg0) { + let ptr0 = 0; + if (!isLikeNone(arg0)) { + _assertClass(arg0, Digest); + ptr0 = arg0.__destroy_into_raw(); + } + wasm.__wbg_set_getbalanceoptions_state_root_hash(this.__wbg_ptr, ptr0); + } + /** + * @returns {string | undefined} + */ + get purse_uref_as_string() { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.__wbg_get_getbalanceoptions_purse_uref_as_string(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + let v1; + if (r0 !== 0) { + v1 = getStringFromWasm0(r0, r1).slice(); + wasm.__wbindgen_free(r0, r1 * 1); + } + return v1; + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string | undefined} arg0 + */ + set purse_uref_as_string(arg0) { + var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + wasm.__wbg_set_getbalanceoptions_purse_uref_as_string(this.__wbg_ptr, ptr0, len0); + } + /** + * @returns {URef | undefined} + */ + get purse_uref() { + const ret = wasm.__wbg_get_getbalanceoptions_purse_uref(this.__wbg_ptr); + return ret === 0 ? undefined : URef.__wrap(ret); + } + /** + * @param {URef | undefined} arg0 + */ + set purse_uref(arg0) { + let ptr0 = 0; + if (!isLikeNone(arg0)) { + _assertClass(arg0, URef); + ptr0 = arg0.__destroy_into_raw(); + } + wasm.__wbg_set_getbalanceoptions_purse_uref(this.__wbg_ptr, ptr0); + } + /** + * @returns {string | undefined} + */ + get node_address() { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.__wbg_get_getbalanceoptions_node_address(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + let v1; + if (r0 !== 0) { + v1 = getStringFromWasm0(r0, r1).slice(); + wasm.__wbindgen_free(r0, r1 * 1); + } + return v1; + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string | undefined} arg0 + */ + set node_address(arg0) { + var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + wasm.__wbg_set_getbalanceoptions_node_address(this.__wbg_ptr, ptr0, len0); + } + /** + * @returns {number | undefined} + */ + get verbosity() { + const ret = wasm.__wbg_get_getbalanceoptions_verbosity(this.__wbg_ptr); + return ret === 3 ? undefined : ret; + } + /** + * @param {number | undefined} arg0 + */ + set verbosity(arg0) { + wasm.__wbg_set_getbalanceoptions_verbosity(this.__wbg_ptr, isLikeNone(arg0) ? 3 : arg0); + } +} +module.exports.getBalanceOptions = getBalanceOptions; +/** +* Options for the `get_block` method. +*/ +class getBlockOptions { + + static __wrap(ptr) { + ptr = ptr >>> 0; + const obj = Object.create(getBlockOptions.prototype); + obj.__wbg_ptr = ptr; + + return obj; + } + + __destroy_into_raw() { + const ptr = this.__wbg_ptr; + this.__wbg_ptr = 0; + + return ptr; + } + + free() { + const ptr = this.__destroy_into_raw(); + wasm.__wbg_getblockoptions_free(ptr); + } + /** + * @returns {string | undefined} + */ + get maybe_block_id_as_string() { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.__wbg_get_getauctioninfooptions_maybe_block_id_as_string(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + let v1; + if (r0 !== 0) { + v1 = getStringFromWasm0(r0, r1).slice(); + wasm.__wbindgen_free(r0, r1 * 1); + } + return v1; + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string | undefined} arg0 + */ + set maybe_block_id_as_string(arg0) { + var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + wasm.__wbg_set_getauctioninfooptions_maybe_block_id_as_string(this.__wbg_ptr, ptr0, len0); + } + /** + * @returns {BlockIdentifier | undefined} + */ + get maybe_block_identifier() { + const ret = wasm.__wbg_get_getauctioninfooptions_maybe_block_identifier(this.__wbg_ptr); + return ret === 0 ? undefined : BlockIdentifier.__wrap(ret); + } + /** + * @param {BlockIdentifier | undefined} arg0 + */ + set maybe_block_identifier(arg0) { + let ptr0 = 0; + if (!isLikeNone(arg0)) { + _assertClass(arg0, BlockIdentifier); + ptr0 = arg0.__destroy_into_raw(); + } + wasm.__wbg_set_getauctioninfooptions_maybe_block_identifier(this.__wbg_ptr, ptr0); + } + /** + * @returns {string | undefined} + */ + get node_address() { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.__wbg_get_getauctioninfooptions_node_address(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + let v1; + if (r0 !== 0) { + v1 = getStringFromWasm0(r0, r1).slice(); + wasm.__wbindgen_free(r0, r1 * 1); + } + return v1; + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string | undefined} arg0 + */ + set node_address(arg0) { + var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + wasm.__wbg_set_getauctioninfooptions_node_address(this.__wbg_ptr, ptr0, len0); + } + /** + * @returns {number | undefined} + */ + get verbosity() { + const ret = wasm.__wbg_get_getauctioninfooptions_verbosity(this.__wbg_ptr); + return ret === 3 ? undefined : ret; + } + /** + * @param {number | undefined} arg0 + */ + set verbosity(arg0) { + wasm.__wbg_set_getauctioninfooptions_verbosity(this.__wbg_ptr, isLikeNone(arg0) ? 3 : arg0); + } +} +module.exports.getBlockOptions = getBlockOptions; +/** +* Options for the `get_block_transfers` method. +*/ +class getBlockTransfersOptions { + + static __wrap(ptr) { + ptr = ptr >>> 0; + const obj = Object.create(getBlockTransfersOptions.prototype); + obj.__wbg_ptr = ptr; + + return obj; + } + + __destroy_into_raw() { + const ptr = this.__wbg_ptr; + this.__wbg_ptr = 0; + + return ptr; + } + + free() { + const ptr = this.__destroy_into_raw(); + wasm.__wbg_getblocktransfersoptions_free(ptr); + } + /** + * @returns {string | undefined} + */ + get maybe_block_id_as_string() { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.__wbg_get_getblocktransfersoptions_maybe_block_id_as_string(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + let v1; + if (r0 !== 0) { + v1 = getStringFromWasm0(r0, r1).slice(); + wasm.__wbindgen_free(r0, r1 * 1); + } + return v1; + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string | undefined} arg0 + */ + set maybe_block_id_as_string(arg0) { + var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + wasm.__wbg_set_getblocktransfersoptions_maybe_block_id_as_string(this.__wbg_ptr, ptr0, len0); + } + /** + * @returns {BlockIdentifier | undefined} + */ + get maybe_block_identifier() { + const ret = wasm.__wbg_get_getblocktransfersoptions_maybe_block_identifier(this.__wbg_ptr); + return ret === 0 ? undefined : BlockIdentifier.__wrap(ret); + } + /** + * @param {BlockIdentifier | undefined} arg0 + */ + set maybe_block_identifier(arg0) { + let ptr0 = 0; + if (!isLikeNone(arg0)) { + _assertClass(arg0, BlockIdentifier); + ptr0 = arg0.__destroy_into_raw(); + } + wasm.__wbg_set_getblocktransfersoptions_maybe_block_identifier(this.__wbg_ptr, ptr0); + } + /** + * @returns {number | undefined} + */ + get verbosity() { + const ret = wasm.__wbg_get_getblocktransfersoptions_verbosity(this.__wbg_ptr); + return ret === 3 ? undefined : ret; + } + /** + * @param {number | undefined} arg0 + */ + set verbosity(arg0) { + wasm.__wbg_set_getblocktransfersoptions_verbosity(this.__wbg_ptr, isLikeNone(arg0) ? 3 : arg0); + } + /** + * @returns {string | undefined} + */ + get node_address() { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.__wbg_get_getblocktransfersoptions_node_address(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + let v1; + if (r0 !== 0) { + v1 = getStringFromWasm0(r0, r1).slice(); + wasm.__wbindgen_free(r0, r1 * 1); + } + return v1; + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string | undefined} arg0 + */ + set node_address(arg0) { + var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + wasm.__wbg_set_getblocktransfersoptions_node_address(this.__wbg_ptr, ptr0, len0); + } +} +module.exports.getBlockTransfersOptions = getBlockTransfersOptions; +/** +* Options for the `get_deploy` method. +*/ +class getDeployOptions { + + static __wrap(ptr) { + ptr = ptr >>> 0; + const obj = Object.create(getDeployOptions.prototype); + obj.__wbg_ptr = ptr; + + return obj; + } + + __destroy_into_raw() { + const ptr = this.__wbg_ptr; + this.__wbg_ptr = 0; + + return ptr; + } + + free() { + const ptr = this.__destroy_into_raw(); + wasm.__wbg_getdeployoptions_free(ptr); + } + /** + * @returns {string | undefined} + */ + get deploy_hash_as_string() { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.__wbg_get_getdeployoptions_deploy_hash_as_string(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + let v1; + if (r0 !== 0) { + v1 = getStringFromWasm0(r0, r1).slice(); + wasm.__wbindgen_free(r0, r1 * 1); + } + return v1; + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string | undefined} arg0 + */ + set deploy_hash_as_string(arg0) { + var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + wasm.__wbg_set_getdeployoptions_deploy_hash_as_string(this.__wbg_ptr, ptr0, len0); + } + /** + * @returns {DeployHash | undefined} + */ + get deploy_hash() { + const ret = wasm.__wbg_get_getdeployoptions_deploy_hash(this.__wbg_ptr); + return ret === 0 ? undefined : DeployHash.__wrap(ret); + } + /** + * @param {DeployHash | undefined} arg0 + */ + set deploy_hash(arg0) { + let ptr0 = 0; + if (!isLikeNone(arg0)) { + _assertClass(arg0, DeployHash); + ptr0 = arg0.__destroy_into_raw(); + } + wasm.__wbg_set_getdeployoptions_deploy_hash(this.__wbg_ptr, ptr0); + } + /** + * @returns {boolean | undefined} + */ + get finalized_approvals() { + const ret = wasm.__wbg_get_getdeployoptions_finalized_approvals(this.__wbg_ptr); + return ret === 0xFFFFFF ? undefined : ret !== 0; + } + /** + * @param {boolean | undefined} arg0 + */ + set finalized_approvals(arg0) { + wasm.__wbg_set_getdeployoptions_finalized_approvals(this.__wbg_ptr, isLikeNone(arg0) ? 0xFFFFFF : arg0 ? 1 : 0); + } + /** + * @returns {string | undefined} + */ + get node_address() { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.__wbg_get_getdeployoptions_node_address(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + let v1; + if (r0 !== 0) { + v1 = getStringFromWasm0(r0, r1).slice(); + wasm.__wbindgen_free(r0, r1 * 1); + } + return v1; + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string | undefined} arg0 + */ + set node_address(arg0) { + var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + wasm.__wbg_set_getdeployoptions_node_address(this.__wbg_ptr, ptr0, len0); + } + /** + * @returns {number | undefined} + */ + get verbosity() { + const ret = wasm.__wbg_get_getdeployoptions_verbosity(this.__wbg_ptr); + return ret === 3 ? undefined : ret; + } + /** + * @param {number | undefined} arg0 + */ + set verbosity(arg0) { + wasm.__wbg_set_getdeployoptions_verbosity(this.__wbg_ptr, isLikeNone(arg0) ? 3 : arg0); + } +} +module.exports.getDeployOptions = getDeployOptions; +/** +* Options for the `get_dictionary_item` method. +*/ +class getDictionaryItemOptions { + + static __wrap(ptr) { + ptr = ptr >>> 0; + const obj = Object.create(getDictionaryItemOptions.prototype); + obj.__wbg_ptr = ptr; + + return obj; + } + + __destroy_into_raw() { + const ptr = this.__wbg_ptr; + this.__wbg_ptr = 0; + + return ptr; + } + + free() { + const ptr = this.__destroy_into_raw(); + wasm.__wbg_getdictionaryitemoptions_free(ptr); + } + /** + * @returns {string | undefined} + */ + get state_root_hash_as_string() { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.__wbg_get_getdictionaryitemoptions_state_root_hash_as_string(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + let v1; + if (r0 !== 0) { + v1 = getStringFromWasm0(r0, r1).slice(); + wasm.__wbindgen_free(r0, r1 * 1); + } + return v1; + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string | undefined} arg0 + */ + set state_root_hash_as_string(arg0) { + var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + wasm.__wbg_set_getdictionaryitemoptions_state_root_hash_as_string(this.__wbg_ptr, ptr0, len0); + } + /** + * @returns {Digest | undefined} + */ + get state_root_hash() { + const ret = wasm.__wbg_get_getdictionaryitemoptions_state_root_hash(this.__wbg_ptr); + return ret === 0 ? undefined : Digest.__wrap(ret); + } + /** + * @param {Digest | undefined} arg0 + */ + set state_root_hash(arg0) { + let ptr0 = 0; + if (!isLikeNone(arg0)) { + _assertClass(arg0, Digest); + ptr0 = arg0.__destroy_into_raw(); + } + wasm.__wbg_set_getdictionaryitemoptions_state_root_hash(this.__wbg_ptr, ptr0); + } + /** + * @returns {DictionaryItemStrParams | undefined} + */ + get dictionary_item_params() { + const ret = wasm.__wbg_get_getdictionaryitemoptions_dictionary_item_params(this.__wbg_ptr); + return ret === 0 ? undefined : DictionaryItemStrParams.__wrap(ret); + } + /** + * @param {DictionaryItemStrParams | undefined} arg0 + */ + set dictionary_item_params(arg0) { + let ptr0 = 0; + if (!isLikeNone(arg0)) { + _assertClass(arg0, DictionaryItemStrParams); + ptr0 = arg0.__destroy_into_raw(); + } + wasm.__wbg_set_getdictionaryitemoptions_dictionary_item_params(this.__wbg_ptr, ptr0); + } + /** + * @returns {DictionaryItemIdentifier | undefined} + */ + get dictionary_item_identifier() { + const ret = wasm.__wbg_get_getdictionaryitemoptions_dictionary_item_identifier(this.__wbg_ptr); + return ret === 0 ? undefined : DictionaryItemIdentifier.__wrap(ret); + } + /** + * @param {DictionaryItemIdentifier | undefined} arg0 + */ + set dictionary_item_identifier(arg0) { + let ptr0 = 0; + if (!isLikeNone(arg0)) { + _assertClass(arg0, DictionaryItemIdentifier); + ptr0 = arg0.__destroy_into_raw(); + } + wasm.__wbg_set_getdictionaryitemoptions_dictionary_item_identifier(this.__wbg_ptr, ptr0); + } + /** + * @returns {string | undefined} + */ + get node_address() { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.__wbg_get_getdictionaryitemoptions_node_address(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + let v1; + if (r0 !== 0) { + v1 = getStringFromWasm0(r0, r1).slice(); + wasm.__wbindgen_free(r0, r1 * 1); + } + return v1; + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string | undefined} arg0 + */ + set node_address(arg0) { + var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + wasm.__wbg_set_getdictionaryitemoptions_node_address(this.__wbg_ptr, ptr0, len0); + } + /** + * @returns {number | undefined} + */ + get verbosity() { + const ret = wasm.__wbg_get_getdictionaryitemoptions_verbosity(this.__wbg_ptr); + return ret === 3 ? undefined : ret; + } + /** + * @param {number | undefined} arg0 + */ + set verbosity(arg0) { + wasm.__wbg_set_getdictionaryitemoptions_verbosity(this.__wbg_ptr, isLikeNone(arg0) ? 3 : arg0); + } +} +module.exports.getDictionaryItemOptions = getDictionaryItemOptions; +/** +*/ +class getEraInfoOptions { + + static __wrap(ptr) { + ptr = ptr >>> 0; + const obj = Object.create(getEraInfoOptions.prototype); + obj.__wbg_ptr = ptr; + + return obj; + } + + __destroy_into_raw() { + const ptr = this.__wbg_ptr; + this.__wbg_ptr = 0; + + return ptr; + } + + free() { + const ptr = this.__destroy_into_raw(); + wasm.__wbg_geterainfooptions_free(ptr); + } + /** + * @returns {string | undefined} + */ + get maybe_block_id_as_string() { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.__wbg_get_geterainfooptions_maybe_block_id_as_string(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + let v1; + if (r0 !== 0) { + v1 = getStringFromWasm0(r0, r1).slice(); + wasm.__wbindgen_free(r0, r1 * 1); + } + return v1; + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string | undefined} arg0 + */ + set maybe_block_id_as_string(arg0) { + var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + wasm.__wbg_set_geterainfooptions_maybe_block_id_as_string(this.__wbg_ptr, ptr0, len0); + } + /** + * @returns {BlockIdentifier | undefined} + */ + get maybe_block_identifier() { + const ret = wasm.__wbg_get_geterainfooptions_maybe_block_identifier(this.__wbg_ptr); + return ret === 0 ? undefined : BlockIdentifier.__wrap(ret); + } + /** + * @param {BlockIdentifier | undefined} arg0 + */ + set maybe_block_identifier(arg0) { + let ptr0 = 0; + if (!isLikeNone(arg0)) { + _assertClass(arg0, BlockIdentifier); + ptr0 = arg0.__destroy_into_raw(); + } + wasm.__wbg_set_geterainfooptions_maybe_block_identifier(this.__wbg_ptr, ptr0); + } + /** + * @returns {string | undefined} + */ + get node_address() { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.__wbg_get_geterainfooptions_node_address(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + let v1; + if (r0 !== 0) { + v1 = getStringFromWasm0(r0, r1).slice(); + wasm.__wbindgen_free(r0, r1 * 1); + } + return v1; + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string | undefined} arg0 + */ + set node_address(arg0) { + var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + wasm.__wbg_set_geterainfooptions_node_address(this.__wbg_ptr, ptr0, len0); + } + /** + * @returns {number | undefined} + */ + get verbosity() { + const ret = wasm.__wbg_get_geterainfooptions_verbosity(this.__wbg_ptr); + return ret === 3 ? undefined : ret; + } + /** + * @param {number | undefined} arg0 + */ + set verbosity(arg0) { + wasm.__wbg_set_geterainfooptions_verbosity(this.__wbg_ptr, isLikeNone(arg0) ? 3 : arg0); + } +} +module.exports.getEraInfoOptions = getEraInfoOptions; +/** +* Options for the `get_era_summary` method. +*/ +class getEraSummaryOptions { + + static __wrap(ptr) { + ptr = ptr >>> 0; + const obj = Object.create(getEraSummaryOptions.prototype); + obj.__wbg_ptr = ptr; + + return obj; + } + + __destroy_into_raw() { + const ptr = this.__wbg_ptr; + this.__wbg_ptr = 0; + + return ptr; + } + + free() { + const ptr = this.__destroy_into_raw(); + wasm.__wbg_geterasummaryoptions_free(ptr); + } + /** + * @returns {string | undefined} + */ + get maybe_block_id_as_string() { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.__wbg_get_geterasummaryoptions_maybe_block_id_as_string(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + let v1; + if (r0 !== 0) { + v1 = getStringFromWasm0(r0, r1).slice(); + wasm.__wbindgen_free(r0, r1 * 1); + } + return v1; + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string | undefined} arg0 + */ + set maybe_block_id_as_string(arg0) { + var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + wasm.__wbg_set_geterasummaryoptions_maybe_block_id_as_string(this.__wbg_ptr, ptr0, len0); + } + /** + * @returns {BlockIdentifier | undefined} + */ + get maybe_block_identifier() { + const ret = wasm.__wbg_get_getaccountoptions_maybe_block_identifier(this.__wbg_ptr); + return ret === 0 ? undefined : BlockIdentifier.__wrap(ret); + } + /** + * @param {BlockIdentifier | undefined} arg0 + */ + set maybe_block_identifier(arg0) { + let ptr0 = 0; + if (!isLikeNone(arg0)) { + _assertClass(arg0, BlockIdentifier); + ptr0 = arg0.__destroy_into_raw(); + } + wasm.__wbg_set_getaccountoptions_maybe_block_identifier(this.__wbg_ptr, ptr0); + } + /** + * @returns {string | undefined} + */ + get node_address() { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.__wbg_get_geterasummaryoptions_node_address(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + let v1; + if (r0 !== 0) { + v1 = getStringFromWasm0(r0, r1).slice(); + wasm.__wbindgen_free(r0, r1 * 1); + } + return v1; + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string | undefined} arg0 + */ + set node_address(arg0) { + var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + wasm.__wbg_set_geterasummaryoptions_node_address(this.__wbg_ptr, ptr0, len0); + } + /** + * @returns {number | undefined} + */ + get verbosity() { + const ret = wasm.__wbg_get_geterasummaryoptions_verbosity(this.__wbg_ptr); + return ret === 3 ? undefined : ret; + } + /** + * @param {number | undefined} arg0 + */ + set verbosity(arg0) { + wasm.__wbg_set_geterasummaryoptions_verbosity(this.__wbg_ptr, isLikeNone(arg0) ? 3 : arg0); + } +} +module.exports.getEraSummaryOptions = getEraSummaryOptions; +/** +* Options for speculative execution. +*/ +class getSpeculativeExecOptions { + + static __wrap(ptr) { + ptr = ptr >>> 0; + const obj = Object.create(getSpeculativeExecOptions.prototype); + obj.__wbg_ptr = ptr; + + return obj; + } + + __destroy_into_raw() { + const ptr = this.__wbg_ptr; + this.__wbg_ptr = 0; + + return ptr; + } + + free() { + const ptr = this.__destroy_into_raw(); + wasm.__wbg_getspeculativeexecoptions_free(ptr); + } + /** + * The deploy as a JSON string. + * @returns {string | undefined} + */ + get deploy_as_string() { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.__wbg_get_getspeculativeexecoptions_deploy_as_string(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + let v1; + if (r0 !== 0) { + v1 = getStringFromWasm0(r0, r1).slice(); + wasm.__wbindgen_free(r0, r1 * 1); + } + return v1; + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * The deploy as a JSON string. + * @param {string | undefined} arg0 + */ + set deploy_as_string(arg0) { + var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + wasm.__wbg_set_getspeculativeexecoptions_deploy_as_string(this.__wbg_ptr, ptr0, len0); + } + /** + * The deploy to execute. + * @returns {Deploy | undefined} + */ + get deploy() { + const ret = wasm.__wbg_get_getspeculativeexecoptions_deploy(this.__wbg_ptr); + return ret === 0 ? undefined : Deploy.__wrap(ret); + } + /** + * The deploy to execute. + * @param {Deploy | undefined} arg0 + */ + set deploy(arg0) { + let ptr0 = 0; + if (!isLikeNone(arg0)) { + _assertClass(arg0, Deploy); + ptr0 = arg0.__destroy_into_raw(); + } + wasm.__wbg_set_getspeculativeexecoptions_deploy(this.__wbg_ptr, ptr0); + } + /** + * The block identifier as a string. + * @returns {string | undefined} + */ + get maybe_block_id_as_string() { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.__wbg_get_getspeculativeexecoptions_maybe_block_id_as_string(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + let v1; + if (r0 !== 0) { + v1 = getStringFromWasm0(r0, r1).slice(); + wasm.__wbindgen_free(r0, r1 * 1); + } + return v1; + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * The block identifier as a string. + * @param {string | undefined} arg0 + */ + set maybe_block_id_as_string(arg0) { + var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + wasm.__wbg_set_getspeculativeexecoptions_maybe_block_id_as_string(this.__wbg_ptr, ptr0, len0); + } + /** + * The block identifier. + * @returns {BlockIdentifier | undefined} + */ + get maybe_block_identifier() { + const ret = wasm.__wbg_get_getspeculativeexecoptions_maybe_block_identifier(this.__wbg_ptr); + return ret === 0 ? undefined : BlockIdentifier.__wrap(ret); + } + /** + * The block identifier. + * @param {BlockIdentifier | undefined} arg0 + */ + set maybe_block_identifier(arg0) { + let ptr0 = 0; + if (!isLikeNone(arg0)) { + _assertClass(arg0, BlockIdentifier); + ptr0 = arg0.__destroy_into_raw(); + } + wasm.__wbg_set_getspeculativeexecoptions_maybe_block_identifier(this.__wbg_ptr, ptr0); + } + /** + * The node address. + * @returns {string | undefined} + */ + get node_address() { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.__wbg_get_getspeculativeexecoptions_node_address(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + let v1; + if (r0 !== 0) { + v1 = getStringFromWasm0(r0, r1).slice(); + wasm.__wbindgen_free(r0, r1 * 1); + } + return v1; + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * The node address. + * @param {string | undefined} arg0 + */ + set node_address(arg0) { + var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + wasm.__wbg_set_getspeculativeexecoptions_node_address(this.__wbg_ptr, ptr0, len0); + } + /** + * The verbosity level for logging. + * @returns {number | undefined} + */ + get verbosity() { + const ret = wasm.__wbg_get_getspeculativeexecoptions_verbosity(this.__wbg_ptr); + return ret === 3 ? undefined : ret; + } + /** + * The verbosity level for logging. + * @param {number | undefined} arg0 + */ + set verbosity(arg0) { + wasm.__wbg_set_getspeculativeexecoptions_verbosity(this.__wbg_ptr, isLikeNone(arg0) ? 3 : arg0); + } +} +module.exports.getSpeculativeExecOptions = getSpeculativeExecOptions; +/** +* Options for the `get_state_root_hash` method. +*/ +class getStateRootHashOptions { + + static __wrap(ptr) { + ptr = ptr >>> 0; + const obj = Object.create(getStateRootHashOptions.prototype); + obj.__wbg_ptr = ptr; + + return obj; + } + + __destroy_into_raw() { + const ptr = this.__wbg_ptr; + this.__wbg_ptr = 0; + + return ptr; + } + + free() { + const ptr = this.__destroy_into_raw(); + wasm.__wbg_getstateroothashoptions_free(ptr); + } + /** + * @returns {string | undefined} + */ + get maybe_block_id_as_string() { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.__wbg_get_geterainfooptions_maybe_block_id_as_string(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + let v1; + if (r0 !== 0) { + v1 = getStringFromWasm0(r0, r1).slice(); + wasm.__wbindgen_free(r0, r1 * 1); + } + return v1; + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string | undefined} arg0 + */ + set maybe_block_id_as_string(arg0) { + var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + wasm.__wbg_set_geterainfooptions_maybe_block_id_as_string(this.__wbg_ptr, ptr0, len0); + } + /** + * @returns {BlockIdentifier | undefined} + */ + get maybe_block_identifier() { + const ret = wasm.__wbg_get_geterainfooptions_maybe_block_identifier(this.__wbg_ptr); + return ret === 0 ? undefined : BlockIdentifier.__wrap(ret); + } + /** + * @param {BlockIdentifier | undefined} arg0 + */ + set maybe_block_identifier(arg0) { + let ptr0 = 0; + if (!isLikeNone(arg0)) { + _assertClass(arg0, BlockIdentifier); + ptr0 = arg0.__destroy_into_raw(); + } + wasm.__wbg_set_geterainfooptions_maybe_block_identifier(this.__wbg_ptr, ptr0); + } + /** + * @returns {string | undefined} + */ + get node_address() { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.__wbg_get_geterainfooptions_node_address(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + let v1; + if (r0 !== 0) { + v1 = getStringFromWasm0(r0, r1).slice(); + wasm.__wbindgen_free(r0, r1 * 1); + } + return v1; + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string | undefined} arg0 + */ + set node_address(arg0) { + var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + wasm.__wbg_set_geterainfooptions_node_address(this.__wbg_ptr, ptr0, len0); + } + /** + * @returns {number | undefined} + */ + get verbosity() { + const ret = wasm.__wbg_get_geterainfooptions_verbosity(this.__wbg_ptr); + return ret === 3 ? undefined : ret; + } + /** + * @param {number | undefined} arg0 + */ + set verbosity(arg0) { + wasm.__wbg_set_geterainfooptions_verbosity(this.__wbg_ptr, isLikeNone(arg0) ? 3 : arg0); + } +} +module.exports.getStateRootHashOptions = getStateRootHashOptions; +/** +* Options for the `query_balance` method. +*/ +class queryBalanceOptions { + + static __wrap(ptr) { + ptr = ptr >>> 0; + const obj = Object.create(queryBalanceOptions.prototype); + obj.__wbg_ptr = ptr; + + return obj; + } + + __destroy_into_raw() { + const ptr = this.__wbg_ptr; + this.__wbg_ptr = 0; + + return ptr; + } + + free() { + const ptr = this.__destroy_into_raw(); + wasm.__wbg_querybalanceoptions_free(ptr); + } + /** + * @returns {string | undefined} + */ + get purse_identifier_as_string() { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.__wbg_get_querybalanceoptions_purse_identifier_as_string(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + let v1; + if (r0 !== 0) { + v1 = getStringFromWasm0(r0, r1).slice(); + wasm.__wbindgen_free(r0, r1 * 1); + } + return v1; + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string | undefined} arg0 + */ + set purse_identifier_as_string(arg0) { + var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + wasm.__wbg_set_querybalanceoptions_purse_identifier_as_string(this.__wbg_ptr, ptr0, len0); + } + /** + * @returns {PurseIdentifier | undefined} + */ + get purse_identifier() { + const ret = wasm.__wbg_get_querybalanceoptions_purse_identifier(this.__wbg_ptr); + return ret === 0 ? undefined : PurseIdentifier.__wrap(ret); + } + /** + * @param {PurseIdentifier | undefined} arg0 + */ + set purse_identifier(arg0) { + let ptr0 = 0; + if (!isLikeNone(arg0)) { + _assertClass(arg0, PurseIdentifier); + ptr0 = arg0.__destroy_into_raw(); + } + wasm.__wbg_set_querybalanceoptions_purse_identifier(this.__wbg_ptr, ptr0); + } + /** + * @returns {GlobalStateIdentifier | undefined} + */ + get global_state_identifier() { + const ret = wasm.__wbg_get_querybalanceoptions_global_state_identifier(this.__wbg_ptr); + return ret === 0 ? undefined : GlobalStateIdentifier.__wrap(ret); + } + /** + * @param {GlobalStateIdentifier | undefined} arg0 + */ + set global_state_identifier(arg0) { + let ptr0 = 0; + if (!isLikeNone(arg0)) { + _assertClass(arg0, GlobalStateIdentifier); + ptr0 = arg0.__destroy_into_raw(); + } + wasm.__wbg_set_querybalanceoptions_global_state_identifier(this.__wbg_ptr, ptr0); + } + /** + * @returns {string | undefined} + */ + get state_root_hash_as_string() { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.__wbg_get_querybalanceoptions_state_root_hash_as_string(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + let v1; + if (r0 !== 0) { + v1 = getStringFromWasm0(r0, r1).slice(); + wasm.__wbindgen_free(r0, r1 * 1); + } + return v1; + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string | undefined} arg0 + */ + set state_root_hash_as_string(arg0) { + var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + wasm.__wbg_set_querybalanceoptions_state_root_hash_as_string(this.__wbg_ptr, ptr0, len0); + } + /** + * @returns {Digest | undefined} + */ + get state_root_hash() { + const ret = wasm.__wbg_get_querybalanceoptions_state_root_hash(this.__wbg_ptr); + return ret === 0 ? undefined : Digest.__wrap(ret); + } + /** + * @param {Digest | undefined} arg0 + */ + set state_root_hash(arg0) { + let ptr0 = 0; + if (!isLikeNone(arg0)) { + _assertClass(arg0, Digest); + ptr0 = arg0.__destroy_into_raw(); + } + wasm.__wbg_set_querybalanceoptions_state_root_hash(this.__wbg_ptr, ptr0); + } + /** + * @returns {string | undefined} + */ + get maybe_block_id_as_string() { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.__wbg_get_querybalanceoptions_maybe_block_id_as_string(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + let v1; + if (r0 !== 0) { + v1 = getStringFromWasm0(r0, r1).slice(); + wasm.__wbindgen_free(r0, r1 * 1); + } + return v1; + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string | undefined} arg0 + */ + set maybe_block_id_as_string(arg0) { + var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + wasm.__wbg_set_querybalanceoptions_maybe_block_id_as_string(this.__wbg_ptr, ptr0, len0); + } + /** + * @returns {string | undefined} + */ + get node_address() { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.__wbg_get_querybalanceoptions_node_address(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + let v1; + if (r0 !== 0) { + v1 = getStringFromWasm0(r0, r1).slice(); + wasm.__wbindgen_free(r0, r1 * 1); + } + return v1; + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string | undefined} arg0 + */ + set node_address(arg0) { + var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + wasm.__wbg_set_querybalanceoptions_node_address(this.__wbg_ptr, ptr0, len0); + } + /** + * @returns {number | undefined} + */ + get verbosity() { + const ret = wasm.__wbg_get_querybalanceoptions_verbosity(this.__wbg_ptr); + return ret === 3 ? undefined : ret; + } + /** + * @param {number | undefined} arg0 + */ + set verbosity(arg0) { + wasm.__wbg_set_querybalanceoptions_verbosity(this.__wbg_ptr, isLikeNone(arg0) ? 3 : arg0); + } +} +module.exports.queryBalanceOptions = queryBalanceOptions; +/** +*/ +class queryContractDictOptions { + + static __wrap(ptr) { + ptr = ptr >>> 0; + const obj = Object.create(queryContractDictOptions.prototype); + obj.__wbg_ptr = ptr; + + return obj; + } + + __destroy_into_raw() { + const ptr = this.__wbg_ptr; + this.__wbg_ptr = 0; + + return ptr; + } + + free() { + const ptr = this.__destroy_into_raw(); + wasm.__wbg_querycontractdictoptions_free(ptr); + } + /** + * @returns {string | undefined} + */ + get state_root_hash_as_string() { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.__wbg_get_getdictionaryitemoptions_state_root_hash_as_string(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + let v1; + if (r0 !== 0) { + v1 = getStringFromWasm0(r0, r1).slice(); + wasm.__wbindgen_free(r0, r1 * 1); + } + return v1; + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string | undefined} arg0 + */ + set state_root_hash_as_string(arg0) { + var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + wasm.__wbg_set_getdictionaryitemoptions_state_root_hash_as_string(this.__wbg_ptr, ptr0, len0); + } + /** + * @returns {Digest | undefined} + */ + get state_root_hash() { + const ret = wasm.__wbg_get_getdictionaryitemoptions_state_root_hash(this.__wbg_ptr); + return ret === 0 ? undefined : Digest.__wrap(ret); + } + /** + * @param {Digest | undefined} arg0 + */ + set state_root_hash(arg0) { + let ptr0 = 0; + if (!isLikeNone(arg0)) { + _assertClass(arg0, Digest); + ptr0 = arg0.__destroy_into_raw(); + } + wasm.__wbg_set_getdictionaryitemoptions_state_root_hash(this.__wbg_ptr, ptr0); + } + /** + * @returns {DictionaryItemStrParams | undefined} + */ + get dictionary_item_params() { + const ret = wasm.__wbg_get_getdictionaryitemoptions_dictionary_item_params(this.__wbg_ptr); + return ret === 0 ? undefined : DictionaryItemStrParams.__wrap(ret); + } + /** + * @param {DictionaryItemStrParams | undefined} arg0 + */ + set dictionary_item_params(arg0) { + let ptr0 = 0; + if (!isLikeNone(arg0)) { + _assertClass(arg0, DictionaryItemStrParams); + ptr0 = arg0.__destroy_into_raw(); + } + wasm.__wbg_set_getdictionaryitemoptions_dictionary_item_params(this.__wbg_ptr, ptr0); + } + /** + * @returns {DictionaryItemIdentifier | undefined} + */ + get dictionary_item_identifier() { + const ret = wasm.__wbg_get_getdictionaryitemoptions_dictionary_item_identifier(this.__wbg_ptr); + return ret === 0 ? undefined : DictionaryItemIdentifier.__wrap(ret); + } + /** + * @param {DictionaryItemIdentifier | undefined} arg0 + */ + set dictionary_item_identifier(arg0) { + let ptr0 = 0; + if (!isLikeNone(arg0)) { + _assertClass(arg0, DictionaryItemIdentifier); + ptr0 = arg0.__destroy_into_raw(); + } + wasm.__wbg_set_getdictionaryitemoptions_dictionary_item_identifier(this.__wbg_ptr, ptr0); + } + /** + * @returns {string | undefined} + */ + get node_address() { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.__wbg_get_getdictionaryitemoptions_node_address(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + let v1; + if (r0 !== 0) { + v1 = getStringFromWasm0(r0, r1).slice(); + wasm.__wbindgen_free(r0, r1 * 1); + } + return v1; + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string | undefined} arg0 + */ + set node_address(arg0) { + var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + wasm.__wbg_set_getdictionaryitemoptions_node_address(this.__wbg_ptr, ptr0, len0); + } + /** + * @returns {number | undefined} + */ + get verbosity() { + const ret = wasm.__wbg_get_getdictionaryitemoptions_verbosity(this.__wbg_ptr); + return ret === 3 ? undefined : ret; + } + /** + * @param {number | undefined} arg0 + */ + set verbosity(arg0) { + wasm.__wbg_set_getdictionaryitemoptions_verbosity(this.__wbg_ptr, isLikeNone(arg0) ? 3 : arg0); + } +} +module.exports.queryContractDictOptions = queryContractDictOptions; +/** +*/ +class queryContractKeyOptions { + + static __wrap(ptr) { + ptr = ptr >>> 0; + const obj = Object.create(queryContractKeyOptions.prototype); + obj.__wbg_ptr = ptr; + + return obj; + } + + __destroy_into_raw() { + const ptr = this.__wbg_ptr; + this.__wbg_ptr = 0; + + return ptr; + } + + free() { + const ptr = this.__destroy_into_raw(); + wasm.__wbg_querycontractkeyoptions_free(ptr); + } + /** + * @returns {GlobalStateIdentifier | undefined} + */ + get global_state_identifier() { + const ret = wasm.__wbg_get_querycontractkeyoptions_global_state_identifier(this.__wbg_ptr); + return ret === 0 ? undefined : GlobalStateIdentifier.__wrap(ret); + } + /** + * @param {GlobalStateIdentifier | undefined} arg0 + */ + set global_state_identifier(arg0) { + let ptr0 = 0; + if (!isLikeNone(arg0)) { + _assertClass(arg0, GlobalStateIdentifier); + ptr0 = arg0.__destroy_into_raw(); + } + wasm.__wbg_set_querycontractkeyoptions_global_state_identifier(this.__wbg_ptr, ptr0); + } + /** + * @returns {string | undefined} + */ + get state_root_hash_as_string() { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.__wbg_get_querycontractkeyoptions_state_root_hash_as_string(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + let v1; + if (r0 !== 0) { + v1 = getStringFromWasm0(r0, r1).slice(); + wasm.__wbindgen_free(r0, r1 * 1); + } + return v1; + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string | undefined} arg0 + */ + set state_root_hash_as_string(arg0) { + var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + wasm.__wbg_set_querycontractkeyoptions_state_root_hash_as_string(this.__wbg_ptr, ptr0, len0); + } + /** + * @returns {Digest | undefined} + */ + get state_root_hash() { + const ret = wasm.__wbg_get_querycontractkeyoptions_state_root_hash(this.__wbg_ptr); + return ret === 0 ? undefined : Digest.__wrap(ret); + } + /** + * @param {Digest | undefined} arg0 + */ + set state_root_hash(arg0) { + let ptr0 = 0; + if (!isLikeNone(arg0)) { + _assertClass(arg0, Digest); + ptr0 = arg0.__destroy_into_raw(); + } + wasm.__wbg_set_querycontractkeyoptions_state_root_hash(this.__wbg_ptr, ptr0); + } + /** + * @returns {string | undefined} + */ + get maybe_block_id_as_string() { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.__wbg_get_querycontractkeyoptions_maybe_block_id_as_string(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + let v1; + if (r0 !== 0) { + v1 = getStringFromWasm0(r0, r1).slice(); + wasm.__wbindgen_free(r0, r1 * 1); + } + return v1; + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string | undefined} arg0 + */ + set maybe_block_id_as_string(arg0) { + var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + wasm.__wbg_set_querycontractkeyoptions_maybe_block_id_as_string(this.__wbg_ptr, ptr0, len0); + } + /** + * @returns {string | undefined} + */ + get contract_key_as_string() { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.__wbg_get_querycontractkeyoptions_contract_key_as_string(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + let v1; + if (r0 !== 0) { + v1 = getStringFromWasm0(r0, r1).slice(); + wasm.__wbindgen_free(r0, r1 * 1); + } + return v1; + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string | undefined} arg0 + */ + set contract_key_as_string(arg0) { + var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + wasm.__wbg_set_querycontractkeyoptions_contract_key_as_string(this.__wbg_ptr, ptr0, len0); + } + /** + * @returns {Key | undefined} + */ + get contract_key() { + const ret = wasm.__wbg_get_querycontractkeyoptions_contract_key(this.__wbg_ptr); + return ret === 0 ? undefined : Key.__wrap(ret); + } + /** + * @param {Key | undefined} arg0 + */ + set contract_key(arg0) { + let ptr0 = 0; + if (!isLikeNone(arg0)) { + _assertClass(arg0, Key); + ptr0 = arg0.__destroy_into_raw(); + } + wasm.__wbg_set_querycontractkeyoptions_contract_key(this.__wbg_ptr, ptr0); + } + /** + * @returns {string | undefined} + */ + get path_as_string() { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.__wbg_get_querycontractkeyoptions_path_as_string(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + let v1; + if (r0 !== 0) { + v1 = getStringFromWasm0(r0, r1).slice(); + wasm.__wbindgen_free(r0, r1 * 1); + } + return v1; + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string | undefined} arg0 + */ + set path_as_string(arg0) { + var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + wasm.__wbg_set_querycontractkeyoptions_path_as_string(this.__wbg_ptr, ptr0, len0); + } + /** + * @returns {Path | undefined} + */ + get path() { + const ret = wasm.__wbg_get_querycontractkeyoptions_path(this.__wbg_ptr); + return ret === 0 ? undefined : Path.__wrap(ret); + } + /** + * @param {Path | undefined} arg0 + */ + set path(arg0) { + let ptr0 = 0; + if (!isLikeNone(arg0)) { + _assertClass(arg0, Path); + ptr0 = arg0.__destroy_into_raw(); + } + wasm.__wbg_set_querycontractkeyoptions_path(this.__wbg_ptr, ptr0); + } + /** + * @returns {string | undefined} + */ + get node_address() { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.__wbg_get_querycontractkeyoptions_node_address(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + let v1; + if (r0 !== 0) { + v1 = getStringFromWasm0(r0, r1).slice(); + wasm.__wbindgen_free(r0, r1 * 1); + } + return v1; + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string | undefined} arg0 + */ + set node_address(arg0) { + var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + wasm.__wbg_set_querycontractkeyoptions_node_address(this.__wbg_ptr, ptr0, len0); + } + /** + * @returns {number | undefined} + */ + get verbosity() { + const ret = wasm.__wbg_get_querycontractkeyoptions_verbosity(this.__wbg_ptr); + return ret === 3 ? undefined : ret; + } + /** + * @param {number | undefined} arg0 + */ + set verbosity(arg0) { + wasm.__wbg_set_querycontractkeyoptions_verbosity(this.__wbg_ptr, isLikeNone(arg0) ? 3 : arg0); + } +} +module.exports.queryContractKeyOptions = queryContractKeyOptions; +/** +* Options for the `query_global_state` method. +*/ +class queryGlobalStateOptions { + + static __wrap(ptr) { + ptr = ptr >>> 0; + const obj = Object.create(queryGlobalStateOptions.prototype); + obj.__wbg_ptr = ptr; + + return obj; + } + + __destroy_into_raw() { + const ptr = this.__wbg_ptr; + this.__wbg_ptr = 0; + + return ptr; + } + + free() { + const ptr = this.__destroy_into_raw(); + wasm.__wbg_queryglobalstateoptions_free(ptr); + } + /** + * @returns {GlobalStateIdentifier | undefined} + */ + get global_state_identifier() { + const ret = wasm.__wbg_get_queryglobalstateoptions_global_state_identifier(this.__wbg_ptr); + return ret === 0 ? undefined : GlobalStateIdentifier.__wrap(ret); + } + /** + * @param {GlobalStateIdentifier | undefined} arg0 + */ + set global_state_identifier(arg0) { + let ptr0 = 0; + if (!isLikeNone(arg0)) { + _assertClass(arg0, GlobalStateIdentifier); + ptr0 = arg0.__destroy_into_raw(); + } + wasm.__wbg_set_queryglobalstateoptions_global_state_identifier(this.__wbg_ptr, ptr0); + } + /** + * @returns {string | undefined} + */ + get state_root_hash_as_string() { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.__wbg_get_queryglobalstateoptions_state_root_hash_as_string(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + let v1; + if (r0 !== 0) { + v1 = getStringFromWasm0(r0, r1).slice(); + wasm.__wbindgen_free(r0, r1 * 1); + } + return v1; + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string | undefined} arg0 + */ + set state_root_hash_as_string(arg0) { + var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + wasm.__wbg_set_queryglobalstateoptions_state_root_hash_as_string(this.__wbg_ptr, ptr0, len0); + } + /** + * @returns {Digest | undefined} + */ + get state_root_hash() { + const ret = wasm.__wbg_get_queryglobalstateoptions_state_root_hash(this.__wbg_ptr); + return ret === 0 ? undefined : Digest.__wrap(ret); + } + /** + * @param {Digest | undefined} arg0 + */ + set state_root_hash(arg0) { + let ptr0 = 0; + if (!isLikeNone(arg0)) { + _assertClass(arg0, Digest); + ptr0 = arg0.__destroy_into_raw(); + } + wasm.__wbg_set_queryglobalstateoptions_state_root_hash(this.__wbg_ptr, ptr0); + } + /** + * @returns {string | undefined} + */ + get maybe_block_id_as_string() { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.__wbg_get_queryglobalstateoptions_maybe_block_id_as_string(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + let v1; + if (r0 !== 0) { + v1 = getStringFromWasm0(r0, r1).slice(); + wasm.__wbindgen_free(r0, r1 * 1); + } + return v1; + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string | undefined} arg0 + */ + set maybe_block_id_as_string(arg0) { + var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + wasm.__wbg_set_queryglobalstateoptions_maybe_block_id_as_string(this.__wbg_ptr, ptr0, len0); + } + /** + * @returns {string | undefined} + */ + get key_as_string() { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.__wbg_get_queryglobalstateoptions_key_as_string(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + let v1; + if (r0 !== 0) { + v1 = getStringFromWasm0(r0, r1).slice(); + wasm.__wbindgen_free(r0, r1 * 1); + } + return v1; + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string | undefined} arg0 + */ + set key_as_string(arg0) { + var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + wasm.__wbg_set_queryglobalstateoptions_key_as_string(this.__wbg_ptr, ptr0, len0); + } + /** + * @returns {Key | undefined} + */ + get key() { + const ret = wasm.__wbg_get_queryglobalstateoptions_key(this.__wbg_ptr); + return ret === 0 ? undefined : Key.__wrap(ret); + } + /** + * @param {Key | undefined} arg0 + */ + set key(arg0) { + let ptr0 = 0; + if (!isLikeNone(arg0)) { + _assertClass(arg0, Key); + ptr0 = arg0.__destroy_into_raw(); + } + wasm.__wbg_set_queryglobalstateoptions_key(this.__wbg_ptr, ptr0); + } + /** + * @returns {string | undefined} + */ + get path_as_string() { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.__wbg_get_queryglobalstateoptions_path_as_string(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + let v1; + if (r0 !== 0) { + v1 = getStringFromWasm0(r0, r1).slice(); + wasm.__wbindgen_free(r0, r1 * 1); + } + return v1; + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string | undefined} arg0 + */ + set path_as_string(arg0) { + var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + wasm.__wbg_set_queryglobalstateoptions_path_as_string(this.__wbg_ptr, ptr0, len0); + } + /** + * @returns {Path | undefined} + */ + get path() { + const ret = wasm.__wbg_get_queryglobalstateoptions_path(this.__wbg_ptr); + return ret === 0 ? undefined : Path.__wrap(ret); + } + /** + * @param {Path | undefined} arg0 + */ + set path(arg0) { + let ptr0 = 0; + if (!isLikeNone(arg0)) { + _assertClass(arg0, Path); + ptr0 = arg0.__destroy_into_raw(); + } + wasm.__wbg_set_queryglobalstateoptions_path(this.__wbg_ptr, ptr0); + } + /** + * @returns {string | undefined} + */ + get node_address() { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.__wbg_get_queryglobalstateoptions_node_address(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + let v1; + if (r0 !== 0) { + v1 = getStringFromWasm0(r0, r1).slice(); + wasm.__wbindgen_free(r0, r1 * 1); + } + return v1; + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string | undefined} arg0 + */ + set node_address(arg0) { + var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + wasm.__wbg_set_queryglobalstateoptions_node_address(this.__wbg_ptr, ptr0, len0); + } + /** + * @returns {number | undefined} + */ + get verbosity() { + const ret = wasm.__wbg_get_queryglobalstateoptions_verbosity(this.__wbg_ptr); + return ret === 3 ? undefined : ret; + } + /** + * @param {number | undefined} arg0 + */ + set verbosity(arg0) { + wasm.__wbg_set_queryglobalstateoptions_verbosity(this.__wbg_ptr, isLikeNone(arg0) ? 3 : arg0); + } +} +module.exports.queryGlobalStateOptions = queryGlobalStateOptions; + +module.exports.__wbindgen_object_drop_ref = function(arg0) { + takeObject(arg0); +}; + +module.exports.__wbg_getblockresult_new = function(arg0) { + const ret = GetBlockResult.__wrap(arg0); + return addHeapObject(ret); +}; + +module.exports.__wbg_error_82cd4adbafcf90ca = function(arg0, arg1) { + console.error(getStringFromWasm0(arg0, arg1)); +}; + +module.exports.__wbindgen_error_new = function(arg0, arg1) { + const ret = new Error(getStringFromWasm0(arg0, arg1)); + return addHeapObject(ret); +}; + +module.exports.__wbg_geterasummaryresult_new = function(arg0) { + const ret = GetEraSummaryResult.__wrap(arg0); + return addHeapObject(ret); +}; + +module.exports.__wbg_getdictionaryitemresult_new = function(arg0) { + const ret = GetDictionaryItemResult.__wrap(arg0); + return addHeapObject(ret); +}; + +module.exports.__wbg_listrpcsresult_new = function(arg0) { + const ret = ListRpcsResult.__wrap(arg0); + return addHeapObject(ret); +}; + +module.exports.__wbg_speculativeexecresult_new = function(arg0) { + const ret = SpeculativeExecResult.__wrap(arg0); + return addHeapObject(ret); +}; + +module.exports.__wbindgen_string_new = function(arg0, arg1) { + const ret = getStringFromWasm0(arg0, arg1); + return addHeapObject(ret); +}; + +module.exports.__wbg_putdeployresult_new = function(arg0) { + const ret = PutDeployResult.__wrap(arg0); + return addHeapObject(ret); +}; + +module.exports.__wbg_getchainspecresult_new = function(arg0) { + const ret = GetChainspecResult.__wrap(arg0); + return addHeapObject(ret); +}; + +module.exports.__wbg_getaccountresult_new = function(arg0) { + const ret = GetAccountResult.__wrap(arg0); + return addHeapObject(ret); +}; + +module.exports.__wbg_getstateroothashresult_new = function(arg0) { + const ret = GetStateRootHashResult.__wrap(arg0); + return addHeapObject(ret); +}; + +module.exports.__wbg_getauctioninforesult_new = function(arg0) { + const ret = GetAuctionInfoResult.__wrap(arg0); + return addHeapObject(ret); +}; + +module.exports.__wbg_getpeersresult_new = function(arg0) { + const ret = GetPeersResult.__wrap(arg0); + return addHeapObject(ret); +}; + +module.exports.__wbg_queryglobalstateresult_new = function(arg0) { + const ret = QueryGlobalStateResult.__wrap(arg0); + return addHeapObject(ret); +}; + +module.exports.__wbg_querybalanceresult_new = function(arg0) { + const ret = QueryBalanceResult.__wrap(arg0); + return addHeapObject(ret); +}; + +module.exports.__wbg_getbalanceresult_new = function(arg0) { + const ret = GetBalanceResult.__wrap(arg0); + return addHeapObject(ret); +}; + +module.exports.__wbg_geterainforesult_new = function(arg0) { + const ret = GetEraInfoResult.__wrap(arg0); + return addHeapObject(ret); +}; + +module.exports.__wbg_getdeployresult_new = function(arg0) { + const ret = GetDeployResult.__wrap(arg0); + return addHeapObject(ret); +}; + +module.exports.__wbg_getnodestatusresult_new = function(arg0) { + const ret = GetNodeStatusResult.__wrap(arg0); + return addHeapObject(ret); +}; + +module.exports.__wbg_getblocktransfersresult_new = function(arg0) { + const ret = GetBlockTransfersResult.__wrap(arg0); + return addHeapObject(ret); +}; + +module.exports.__wbg_getvalidatorchangesresult_new = function(arg0) { + const ret = GetValidatorChangesResult.__wrap(arg0); + return addHeapObject(ret); +}; + +module.exports.__wbindgen_jsval_eq = function(arg0, arg1) { + const ret = getObject(arg0) === getObject(arg1); + return ret; +}; + +module.exports.__wbindgen_is_undefined = function(arg0) { + const ret = getObject(arg0) === undefined; + return ret; +}; + +module.exports.__wbindgen_string_get = function(arg0, arg1) { + const obj = getObject(arg1); + const ret = typeof(obj) === 'string' ? obj : undefined; + var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len1 = WASM_VECTOR_LEN; + getInt32Memory0()[arg0 / 4 + 1] = len1; + getInt32Memory0()[arg0 / 4 + 0] = ptr1; +}; + +module.exports.__wbindgen_is_null = function(arg0) { + const ret = getObject(arg0) === null; + return ret; +}; + +module.exports.__wbindgen_cb_drop = function(arg0) { + const obj = takeObject(arg0).original; + if (obj.cnt-- == 1) { + obj.a = 0; + return true; + } + const ret = false; + return ret; +}; + +module.exports.__wbindgen_object_clone_ref = function(arg0) { + const ret = getObject(arg0); + return addHeapObject(ret); +}; + +module.exports.__wbg_fetch_57429b87be3dcc33 = function(arg0) { + const ret = fetch(getObject(arg0)); + return addHeapObject(ret); +}; + +module.exports.__wbg_fetch_8eaf01857a5bb21f = function(arg0, arg1) { + const ret = getObject(arg0).fetch(getObject(arg1)); + return addHeapObject(ret); +}; + +module.exports.__wbg_signal_4bd18fb489af2d4c = function(arg0) { + const ret = getObject(arg0).signal; + return addHeapObject(ret); +}; + +module.exports.__wbg_new_55c9955722952374 = function() { return handleError(function () { + const ret = new AbortController(); + return addHeapObject(ret); +}, arguments) }; + +module.exports.__wbg_abort_654b796176d117aa = function(arg0) { + getObject(arg0).abort(); +}; + +module.exports.__wbg_newwithstrandinit_cad5cd6038c7ff5d = function() { return handleError(function (arg0, arg1, arg2) { + const ret = new Request(getStringFromWasm0(arg0, arg1), getObject(arg2)); + return addHeapObject(ret); +}, arguments) }; + +module.exports.__wbg_instanceof_Response_fc4327dbfcdf5ced = function(arg0) { + let result; + try { + result = getObject(arg0) instanceof Response; + } catch { + result = false; + } + const ret = result; + return ret; +}; + +module.exports.__wbg_url_8503de97f69da463 = function(arg0, arg1) { + const ret = getObject(arg1).url; + const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len1 = WASM_VECTOR_LEN; + getInt32Memory0()[arg0 / 4 + 1] = len1; + getInt32Memory0()[arg0 / 4 + 0] = ptr1; +}; + +module.exports.__wbg_status_ac85a3142a84caa2 = function(arg0) { + const ret = getObject(arg0).status; + return ret; +}; + +module.exports.__wbg_headers_b70de86b8e989bc0 = function(arg0) { + const ret = getObject(arg0).headers; + return addHeapObject(ret); +}; + +module.exports.__wbg_arrayBuffer_288fb3538806e85c = function() { return handleError(function (arg0) { + const ret = getObject(arg0).arrayBuffer(); + return addHeapObject(ret); +}, arguments) }; + +module.exports.__wbg_new_1eead62f64ca15ce = function() { return handleError(function () { + const ret = new Headers(); + return addHeapObject(ret); +}, arguments) }; + +module.exports.__wbg_append_fda9e3432e3e88da = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) { + getObject(arg0).append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4)); +}, arguments) }; + +module.exports.__wbg_crypto_c48a774b022d20ac = function(arg0) { + const ret = getObject(arg0).crypto; + return addHeapObject(ret); +}; + +module.exports.__wbindgen_is_object = function(arg0) { + const val = getObject(arg0); + const ret = typeof(val) === 'object' && val !== null; + return ret; +}; + +module.exports.__wbg_process_298734cf255a885d = function(arg0) { + const ret = getObject(arg0).process; + return addHeapObject(ret); +}; + +module.exports.__wbg_versions_e2e78e134e3e5d01 = function(arg0) { + const ret = getObject(arg0).versions; + return addHeapObject(ret); +}; + +module.exports.__wbg_node_1cd7a5d853dbea79 = function(arg0) { + const ret = getObject(arg0).node; + return addHeapObject(ret); +}; + +module.exports.__wbindgen_is_string = function(arg0) { + const ret = typeof(getObject(arg0)) === 'string'; + return ret; +}; + +module.exports.__wbg_msCrypto_bcb970640f50a1e8 = function(arg0) { + const ret = getObject(arg0).msCrypto; + return addHeapObject(ret); +}; + +module.exports.__wbg_require_8f08ceecec0f4fee = function() { return handleError(function () { + const ret = module.require; + return addHeapObject(ret); +}, arguments) }; + +module.exports.__wbindgen_is_function = function(arg0) { + const ret = typeof(getObject(arg0)) === 'function'; + return ret; +}; + +module.exports.__wbg_randomFillSync_dc1e9a60c158336d = function() { return handleError(function (arg0, arg1) { + getObject(arg0).randomFillSync(takeObject(arg1)); +}, arguments) }; + +module.exports.__wbg_getRandomValues_37fa2ca9e4e07fab = function() { return handleError(function (arg0, arg1) { + getObject(arg0).getRandomValues(getObject(arg1)); +}, arguments) }; + +module.exports.__wbg_get_44be0491f933a435 = function(arg0, arg1) { + const ret = getObject(arg0)[arg1 >>> 0]; + return addHeapObject(ret); +}; + +module.exports.__wbg_length_fff51ee6522a1a18 = function(arg0) { + const ret = getObject(arg0).length; + return ret; +}; + +module.exports.__wbg_new_898a68150f225f2e = function() { + const ret = new Array(); + return addHeapObject(ret); +}; + +module.exports.__wbg_newnoargs_581967eacc0e2604 = function(arg0, arg1) { + const ret = new Function(getStringFromWasm0(arg0, arg1)); + return addHeapObject(ret); +}; + +module.exports.__wbg_next_526fc47e980da008 = function(arg0) { + const ret = getObject(arg0).next; + return addHeapObject(ret); +}; + +module.exports.__wbg_next_ddb3312ca1c4e32a = function() { return handleError(function (arg0) { + const ret = getObject(arg0).next(); + return addHeapObject(ret); +}, arguments) }; + +module.exports.__wbg_done_5c1f01fb660d73b5 = function(arg0) { + const ret = getObject(arg0).done; + return ret; +}; + +module.exports.__wbg_value_1695675138684bd5 = function(arg0) { + const ret = getObject(arg0).value; + return addHeapObject(ret); +}; + +module.exports.__wbg_iterator_97f0c81209c6c35a = function() { + const ret = Symbol.iterator; + return addHeapObject(ret); +}; + +module.exports.__wbg_get_97b561fb56f034b5 = function() { return handleError(function (arg0, arg1) { + const ret = Reflect.get(getObject(arg0), getObject(arg1)); + return addHeapObject(ret); +}, arguments) }; + +module.exports.__wbg_call_cb65541d95d71282 = function() { return handleError(function (arg0, arg1) { + const ret = getObject(arg0).call(getObject(arg1)); + return addHeapObject(ret); +}, arguments) }; + +module.exports.__wbg_new_b51585de1b234aff = function() { + const ret = new Object(); + return addHeapObject(ret); +}; + +module.exports.__wbg_self_1ff1d729e9aae938 = function() { return handleError(function () { + const ret = self.self; + return addHeapObject(ret); +}, arguments) }; + +module.exports.__wbg_window_5f4faef6c12b79ec = function() { return handleError(function () { + const ret = window.window; + return addHeapObject(ret); +}, arguments) }; + +module.exports.__wbg_globalThis_1d39714405582d3c = function() { return handleError(function () { + const ret = globalThis.globalThis; + return addHeapObject(ret); +}, arguments) }; + +module.exports.__wbg_global_651f05c6a0944d1c = function() { return handleError(function () { + const ret = global.global; + return addHeapObject(ret); +}, arguments) }; + +module.exports.__wbg_push_ca1c26067ef907ac = function(arg0, arg1) { + const ret = getObject(arg0).push(getObject(arg1)); + return ret; +}; + +module.exports.__wbg_call_01734de55d61e11d = function() { return handleError(function (arg0, arg1, arg2) { + const ret = getObject(arg0).call(getObject(arg1), getObject(arg2)); + return addHeapObject(ret); +}, arguments) }; + +module.exports.__wbg_getTime_5e2054f832d82ec9 = function(arg0) { + const ret = getObject(arg0).getTime(); + return ret; +}; + +module.exports.__wbg_new0_c0be7df4b6bd481f = function() { + const ret = new Date(); + return addHeapObject(ret); +}; + +module.exports.__wbg_instanceof_Object_3daa8298c86298be = function(arg0) { + let result; + try { + result = getObject(arg0) instanceof Object; + } catch { + result = false; + } + const ret = result; + return ret; +}; + +module.exports.__wbg_new_43f1b47c28813cbd = function(arg0, arg1) { + try { + var state0 = {a: arg0, b: arg1}; + var cb0 = (arg0, arg1) => { + const a = state0.a; + state0.a = 0; + try { + return __wbg_adapter_671(a, state0.b, arg0, arg1); + } finally { + state0.a = a; + } + }; + const ret = new Promise(cb0); + return addHeapObject(ret); + } finally { + state0.a = state0.b = 0; + } +}; + +module.exports.__wbg_resolve_53698b95aaf7fcf8 = function(arg0) { + const ret = Promise.resolve(getObject(arg0)); + return addHeapObject(ret); +}; + +module.exports.__wbg_then_f7e06ee3c11698eb = function(arg0, arg1) { + const ret = getObject(arg0).then(getObject(arg1)); + return addHeapObject(ret); +}; + +module.exports.__wbg_then_b2267541e2a73865 = function(arg0, arg1, arg2) { + const ret = getObject(arg0).then(getObject(arg1), getObject(arg2)); + return addHeapObject(ret); +}; + +module.exports.__wbg_buffer_085ec1f694018c4f = function(arg0) { + const ret = getObject(arg0).buffer; + return addHeapObject(ret); +}; + +module.exports.__wbg_newwithbyteoffsetandlength_6da8e527659b86aa = function(arg0, arg1, arg2) { + const ret = new Uint8Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0); + return addHeapObject(ret); +}; + +module.exports.__wbg_new_8125e318e6245eed = function(arg0) { + const ret = new Uint8Array(getObject(arg0)); + return addHeapObject(ret); +}; + +module.exports.__wbg_set_5cf90238115182c3 = function(arg0, arg1, arg2) { + getObject(arg0).set(getObject(arg1), arg2 >>> 0); +}; + +module.exports.__wbg_length_72e2208bbc0efc61 = function(arg0) { + const ret = getObject(arg0).length; + return ret; +}; + +module.exports.__wbg_newwithlength_e5d69174d6984cd7 = function(arg0) { + const ret = new Uint8Array(arg0 >>> 0); + return addHeapObject(ret); +}; + +module.exports.__wbg_subarray_13db269f57aa838d = function(arg0, arg1, arg2) { + const ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0); + return addHeapObject(ret); +}; + +module.exports.__wbg_getindex_961202524f8271d6 = function(arg0, arg1) { + const ret = getObject(arg0)[arg1 >>> 0]; + return ret; +}; + +module.exports.__wbg_parse_670c19d4e984792e = function() { return handleError(function (arg0, arg1) { + const ret = JSON.parse(getStringFromWasm0(arg0, arg1)); + return addHeapObject(ret); +}, arguments) }; + +module.exports.__wbg_stringify_e25465938f3f611f = function() { return handleError(function (arg0) { + const ret = JSON.stringify(getObject(arg0)); + return addHeapObject(ret); +}, arguments) }; + +module.exports.__wbg_has_c5fcd020291e56b8 = function() { return handleError(function (arg0, arg1) { + const ret = Reflect.has(getObject(arg0), getObject(arg1)); + return ret; +}, arguments) }; + +module.exports.__wbg_set_092e06b0f9d71865 = function() { return handleError(function (arg0, arg1, arg2) { + const ret = Reflect.set(getObject(arg0), getObject(arg1), getObject(arg2)); + return ret; +}, arguments) }; + +module.exports.__wbindgen_debug_string = function(arg0, arg1) { + const ret = debugString(getObject(arg1)); + const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len1 = WASM_VECTOR_LEN; + getInt32Memory0()[arg0 / 4 + 1] = len1; + getInt32Memory0()[arg0 / 4 + 0] = ptr1; +}; + +module.exports.__wbindgen_throw = function(arg0, arg1) { + throw new Error(getStringFromWasm0(arg0, arg1)); +}; + +module.exports.__wbindgen_memory = function() { + const ret = wasm.memory; + return addHeapObject(ret); +}; + +module.exports.__wbindgen_closure_wrapper3953 = function(arg0, arg1, arg2) { + const ret = makeMutClosure(arg0, arg1, 741, __wbg_adapter_32); + return addHeapObject(ret); +}; + +const path = require('path').join(__dirname, 'casper_rust_wasm_sdk_bg.wasm'); +const bytes = require('fs').readFileSync(path); + +const wasmModule = new WebAssembly.Module(bytes); +const wasmInstance = new WebAssembly.Instance(wasmModule, imports); +wasm = wasmInstance.exports; +module.exports.__wasm = wasm; + diff --git a/pkg-nodejs/casper_rust_wasm_sdk_bg.wasm b/pkg-nodejs/casper_rust_wasm_sdk_bg.wasm new file mode 100644 index 000000000..626abbb5f Binary files /dev/null and b/pkg-nodejs/casper_rust_wasm_sdk_bg.wasm differ diff --git a/pkg-nodejs/casper_rust_wasm_sdk_bg.wasm.d.ts b/pkg-nodejs/casper_rust_wasm_sdk_bg.wasm.d.ts new file mode 100644 index 000000000..9fa6b3e41 --- /dev/null +++ b/pkg-nodejs/casper_rust_wasm_sdk_bg.wasm.d.ts @@ -0,0 +1,599 @@ +/* tslint:disable */ +/* eslint-disable */ +export const memory: WebAssembly.Memory; +export function __wbg_accessrights_free(a: number): void; +export function accessrights_NONE(): number; +export function accessrights_READ(): number; +export function accessrights_WRITE(): number; +export function accessrights_ADD(): number; +export function accessrights_READ_ADD(): number; +export function accessrights_READ_WRITE(): number; +export function accessrights_ADD_WRITE(): number; +export function accessrights_READ_ADD_WRITE(): number; +export function accessrights_new(a: number, b: number): void; +export function accessrights_from_bits(a: number, b: number, c: number): number; +export function accessrights_is_readable(a: number): number; +export function accessrights_is_writeable(a: number): number; +export function accessrights_is_addable(a: number): number; +export function accessrights_is_none(a: number): number; +export function __wbg_deploy_free(a: number): void; +export function deploy_new(a: number): number; +export function deploy_toJson(a: number): number; +export function deploy_withPaymentAndSession(a: number, b: number, c: number, d: number): void; +export function deploy_withTransfer(a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number): void; +export function deploy_withTTL(a: number, b: number, c: number, d: number, e: number): number; +export function deploy_withTimestamp(a: number, b: number, c: number, d: number, e: number): number; +export function deploy_withChainName(a: number, b: number, c: number, d: number, e: number): number; +export function deploy_withAccount(a: number, b: number, c: number, d: number): number; +export function deploy_withEntryPointName(a: number, b: number, c: number, d: number, e: number): number; +export function deploy_withHash(a: number, b: number, c: number, d: number): number; +export function deploy_withPackageHash(a: number, b: number, c: number, d: number): number; +export function deploy_withModuleBytes(a: number, b: number, c: number, d: number): number; +export function deploy_withSecretKey(a: number, b: number, c: number): number; +export function deploy_withStandardPayment(a: number, b: number, c: number, d: number, e: number): number; +export function deploy_withPayment(a: number, b: number, c: number, d: number): number; +export function deploy_withSession(a: number, b: number, c: number, d: number): number; +export function deploy_validateDeploySize(a: number): number; +export function deploy_sign(a: number, b: number, c: number): number; +export function deploy_TTL(a: number, b: number): void; +export function deploy_timestamp(a: number, b: number): void; +export function deploy_chainName(a: number, b: number): void; +export function deploy_account(a: number, b: number): void; +export function deploy_args(a: number): number; +export function deploy_addArg(a: number, b: number, c: number, d: number): number; +export function __wbg_deploystrparams_free(a: number): void; +export function deploystrparams_new(a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number): number; +export function deploystrparams_secret_key(a: number, b: number): void; +export function deploystrparams_set_secret_key(a: number, b: number, c: number): void; +export function deploystrparams_timestamp(a: number, b: number): void; +export function deploystrparams_set_timestamp(a: number, b: number, c: number): void; +export function deploystrparams_setDefaultTimestamp(a: number): void; +export function deploystrparams_ttl(a: number, b: number): void; +export function deploystrparams_set_ttl(a: number, b: number, c: number): void; +export function deploystrparams_setDefaultTTL(a: number): void; +export function deploystrparams_chain_name(a: number, b: number): void; +export function deploystrparams_set_chain_name(a: number, b: number, c: number): void; +export function deploystrparams_session_account(a: number, b: number): void; +export function deploystrparams_set_session_account(a: number, b: number, c: number): void; +export function __wbg_purseidentifier_free(a: number): void; +export function purseidentifier_fromPublicKey(a: number): number; +export function purseidentifier_fromAccountHash(a: number): number; +export function purseidentifier_fromURef(a: number): number; +export function __wbg_getdeployresult_free(a: number): void; +export function getdeployresult_api_version(a: number): number; +export function getdeployresult_deploy(a: number): number; +export function getdeployresult_toJson(a: number): number; +export function __wbg_getdeployoptions_free(a: number): void; +export function __wbg_get_getdeployoptions_deploy_hash_as_string(a: number, b: number): void; +export function __wbg_set_getdeployoptions_deploy_hash_as_string(a: number, b: number, c: number): void; +export function __wbg_get_getdeployoptions_deploy_hash(a: number): number; +export function __wbg_set_getdeployoptions_deploy_hash(a: number, b: number): void; +export function __wbg_get_getdeployoptions_finalized_approvals(a: number): number; +export function __wbg_set_getdeployoptions_finalized_approvals(a: number, b: number): void; +export function __wbg_get_getdeployoptions_node_address(a: number, b: number): void; +export function __wbg_set_getdeployoptions_node_address(a: number, b: number, c: number): void; +export function __wbg_get_getdeployoptions_verbosity(a: number): number; +export function __wbg_set_getdeployoptions_verbosity(a: number, b: number): void; +export function sdk_get_deploy_options(a: number, b: number): number; +export function sdk_get_deploy(a: number, b: number): number; +export function sdk_info_get_deploy(a: number, b: number): number; +export function __wbg_geterainforesult_free(a: number): void; +export function geterainforesult_api_version(a: number): number; +export function geterainforesult_era_summary(a: number): number; +export function geterainforesult_toJson(a: number): number; +export function __wbg_geterainfooptions_free(a: number): void; +export function __wbg_get_geterainfooptions_maybe_block_id_as_string(a: number, b: number): void; +export function __wbg_set_geterainfooptions_maybe_block_id_as_string(a: number, b: number, c: number): void; +export function __wbg_get_geterainfooptions_maybe_block_identifier(a: number): number; +export function __wbg_set_geterainfooptions_maybe_block_identifier(a: number, b: number): void; +export function __wbg_get_geterainfooptions_node_address(a: number, b: number): void; +export function __wbg_set_geterainfooptions_node_address(a: number, b: number, c: number): void; +export function __wbg_get_geterainfooptions_verbosity(a: number): number; +export function __wbg_set_geterainfooptions_verbosity(a: number, b: number): void; +export function sdk_get_era_info_options(a: number, b: number): number; +export function sdk_get_era_info(a: number, b: number): number; +export function __wbg_getstateroothashresult_free(a: number): void; +export function getstateroothashresult_api_version(a: number): number; +export function getstateroothashresult_state_root_hash(a: number): number; +export function getstateroothashresult_state_root_hash_as_string(a: number, b: number): void; +export function getstateroothashresult_toJson(a: number): number; +export function sdk_get_state_root_hash_options(a: number, b: number): number; +export function sdk_get_state_root_hash(a: number, b: number): number; +export function sdk_chain_get_state_root_hash(a: number, b: number): number; +export function __wbg_speculativeexecresult_free(a: number): void; +export function speculativeexecresult_api_version(a: number): number; +export function speculativeexecresult_block_hash(a: number): number; +export function speculativeexecresult_execution_result(a: number): number; +export function speculativeexecresult_toJson(a: number): number; +export function __wbg_getspeculativeexecoptions_free(a: number): void; +export function __wbg_get_getspeculativeexecoptions_deploy_as_string(a: number, b: number): void; +export function __wbg_set_getspeculativeexecoptions_deploy_as_string(a: number, b: number, c: number): void; +export function __wbg_get_getspeculativeexecoptions_deploy(a: number): number; +export function __wbg_set_getspeculativeexecoptions_deploy(a: number, b: number): void; +export function __wbg_get_getspeculativeexecoptions_maybe_block_id_as_string(a: number, b: number): void; +export function __wbg_set_getspeculativeexecoptions_maybe_block_id_as_string(a: number, b: number, c: number): void; +export function __wbg_get_getspeculativeexecoptions_maybe_block_identifier(a: number): number; +export function __wbg_set_getspeculativeexecoptions_maybe_block_identifier(a: number, b: number): void; +export function __wbg_get_getspeculativeexecoptions_node_address(a: number, b: number): void; +export function __wbg_set_getspeculativeexecoptions_node_address(a: number, b: number, c: number): void; +export function __wbg_get_getspeculativeexecoptions_verbosity(a: number): number; +export function __wbg_set_getspeculativeexecoptions_verbosity(a: number, b: number): void; +export function sdk_speculative_exec_options(a: number, b: number): number; +export function sdk_speculative_exec(a: number, b: number): number; +export function __wbg_sdk_free(a: number): void; +export function sdk_new(a: number, b: number, c: number): number; +export function sdk_getNodeAddress(a: number, b: number, c: number, d: number): void; +export function sdk_setNodeAddress(a: number, b: number, c: number, d: number): void; +export function sdk_getVerbosity(a: number, b: number): number; +export function sdk_setVerbosity(a: number, b: number, c: number): void; +export function hexToString(a: number, b: number, c: number): void; +export function hexToUint8Array(a: number, b: number, c: number): void; +export function uint8ArrayToBytes(a: number): number; +export function motesToCSPR(a: number, b: number, c: number): void; +export function jsonPrettyPrint(a: number, b: number): number; +export function privateToPublicKey(a: number, b: number): number; +export function getTimestamp(): number; +export function __wbg_get_getstateroothashoptions_verbosity(a: number): number; +export function __wbg_getstateroothashoptions_free(a: number): void; +export function __wbg_set_getstateroothashoptions_maybe_block_id_as_string(a: number, b: number, c: number): void; +export function __wbg_set_getstateroothashoptions_node_address(a: number, b: number, c: number): void; +export function __wbg_set_getstateroothashoptions_maybe_block_identifier(a: number, b: number): void; +export function __wbg_get_getstateroothashoptions_maybe_block_identifier(a: number): number; +export function __wbg_set_getstateroothashoptions_verbosity(a: number, b: number): void; +export function __wbg_get_getstateroothashoptions_maybe_block_id_as_string(a: number, b: number): void; +export function __wbg_get_getstateroothashoptions_node_address(a: number, b: number): void; +export function sdk_put_deploy(a: number, b: number, c: number, d: number, e: number): number; +export function sdk_account_put_deploy(a: number, b: number, c: number, d: number, e: number): number; +export function sdk_make_deploy(a: number, b: number, c: number, d: number, e: number): void; +export function sdk_speculative_transfer(a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number, o: number): number; +export function sdk_sign_deploy(a: number, b: number, c: number, d: number): number; +export function __wbg_accounthash_free(a: number): void; +export function accounthash_new(a: number, b: number, c: number): void; +export function accounthash_fromFormattedStr(a: number, b: number, c: number): void; +export function accounthash_fromPublicKey(a: number): number; +export function accounthash_toFormattedString(a: number, b: number): void; +export function accounthash_fromUint8Array(a: number, b: number): number; +export function accounthash_toJson(a: number): number; +export function transferaddr_new(a: number, b: number, c: number): void; +export function fromTransfer(a: number, b: number): number; +export function urefaddr_new(a: number, b: number, c: number): void; +export function blockhash_new(a: number, b: number, c: number): void; +export function blockhash_fromDigest(a: number, b: number): void; +export function blockhash_toJson(a: number): number; +export function blockhash_toString(a: number, b: number): void; +export function __wbg_bytes_free(a: number): void; +export function bytes_new(): number; +export function bytes_fromUint8Array(a: number): number; +export function contracthash_fromString(a: number, b: number, c: number): void; +export function contracthash_fromFormattedStr(a: number, b: number, c: number): void; +export function contracthash_toFormattedString(a: number, b: number): void; +export function contracthash_fromUint8Array(a: number, b: number): number; +export function deployhash_new(a: number, b: number, c: number): void; +export function deployhash_fromDigest(a: number, b: number): void; +export function deployhash_toJson(a: number): number; +export function deployhash_toString(a: number, b: number): void; +export function __wbg_eraid_free(a: number): void; +export function eraid_new(a: number): number; +export function eraid_value(a: number): number; +export function __wbg_path_free(a: number): void; +export function path_new(a: number): number; +export function path_fromArray(a: number): number; +export function path_toJson(a: number): number; +export function path_toString(a: number, b: number): void; +export function path_is_empty(a: number): number; +export function __wbg_publickey_free(a: number): void; +export function publickey_new(a: number, b: number, c: number): void; +export function publickey_fromUint8Array(a: number, b: number): number; +export function publickey_toAccountHash(a: number): number; +export function publickey_toPurseUref(a: number): number; +export function publickey_toJson(a: number): number; +export function __wbg_uref_free(a: number): void; +export function uref_new(a: number, b: number, c: number, d: number): void; +export function uref_fromUint8Array(a: number, b: number, c: number): number; +export function uref_toFormattedString(a: number, b: number): void; +export function uref_toJson(a: number): number; +export function __wbg_getblocktransfersresult_free(a: number): void; +export function getblocktransfersresult_api_version(a: number): number; +export function getblocktransfersresult_block_hash(a: number): number; +export function getblocktransfersresult_transfers(a: number): number; +export function getblocktransfersresult_toJson(a: number): number; +export function __wbg_getblocktransfersoptions_free(a: number): void; +export function __wbg_get_getblocktransfersoptions_maybe_block_id_as_string(a: number, b: number): void; +export function __wbg_set_getblocktransfersoptions_maybe_block_id_as_string(a: number, b: number, c: number): void; +export function __wbg_get_getblocktransfersoptions_maybe_block_identifier(a: number): number; +export function __wbg_set_getblocktransfersoptions_maybe_block_identifier(a: number, b: number): void; +export function __wbg_get_getblocktransfersoptions_verbosity(a: number): number; +export function __wbg_set_getblocktransfersoptions_verbosity(a: number, b: number): void; +export function __wbg_get_getblocktransfersoptions_node_address(a: number, b: number): void; +export function __wbg_set_getblocktransfersoptions_node_address(a: number, b: number, c: number): void; +export function sdk_get_block_transfers_options(a: number, b: number): number; +export function sdk_get_block_transfers(a: number, b: number): number; +export function __wbg_querybalanceresult_free(a: number): void; +export function querybalanceresult_api_version(a: number): number; +export function querybalanceresult_balance(a: number): number; +export function querybalanceresult_toJson(a: number): number; +export function __wbg_querybalanceoptions_free(a: number): void; +export function __wbg_get_querybalanceoptions_purse_identifier_as_string(a: number, b: number): void; +export function __wbg_set_querybalanceoptions_purse_identifier_as_string(a: number, b: number, c: number): void; +export function __wbg_get_querybalanceoptions_purse_identifier(a: number): number; +export function __wbg_set_querybalanceoptions_purse_identifier(a: number, b: number): void; +export function __wbg_get_querybalanceoptions_global_state_identifier(a: number): number; +export function __wbg_set_querybalanceoptions_global_state_identifier(a: number, b: number): void; +export function __wbg_get_querybalanceoptions_state_root_hash_as_string(a: number, b: number): void; +export function __wbg_set_querybalanceoptions_state_root_hash_as_string(a: number, b: number, c: number): void; +export function __wbg_get_querybalanceoptions_state_root_hash(a: number): number; +export function __wbg_set_querybalanceoptions_state_root_hash(a: number, b: number): void; +export function __wbg_get_querybalanceoptions_maybe_block_id_as_string(a: number, b: number): void; +export function __wbg_set_querybalanceoptions_maybe_block_id_as_string(a: number, b: number, c: number): void; +export function __wbg_get_querybalanceoptions_node_address(a: number, b: number): void; +export function __wbg_set_querybalanceoptions_node_address(a: number, b: number, c: number): void; +export function __wbg_get_querybalanceoptions_verbosity(a: number): number; +export function __wbg_set_querybalanceoptions_verbosity(a: number, b: number): void; +export function sdk_query_balance_options(a: number, b: number): number; +export function sdk_query_balance(a: number, b: number): number; +export function __wbg_transferaddr_free(a: number): void; +export function __wbg_urefaddr_free(a: number): void; +export function __wbg_blockhash_free(a: number): void; +export function __wbg_contracthash_free(a: number): void; +export function __wbg_deployhash_free(a: number): void; +export function __wbg_sessionstrparams_free(a: number): void; +export function sessionstrparams_new(a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number, o: number, p: number, q: number, r: number, s: number, t: number, u: number): number; +export function sessionstrparams_session_hash(a: number, b: number): void; +export function sessionstrparams_set_session_hash(a: number, b: number, c: number): void; +export function sessionstrparams_session_name(a: number, b: number): void; +export function sessionstrparams_set_session_name(a: number, b: number, c: number): void; +export function sessionstrparams_session_package_hash(a: number, b: number): void; +export function sessionstrparams_set_session_package_hash(a: number, b: number, c: number): void; +export function sessionstrparams_session_package_name(a: number, b: number): void; +export function sessionstrparams_set_session_package_name(a: number, b: number, c: number): void; +export function sessionstrparams_session_path(a: number, b: number): void; +export function sessionstrparams_set_session_path(a: number, b: number, c: number): void; +export function sessionstrparams_session_bytes(a: number): number; +export function sessionstrparams_set_session_bytes(a: number, b: number): void; +export function sessionstrparams_session_args_simple(a: number): number; +export function sessionstrparams_set_session_args_simple(a: number, b: number): void; +export function sessionstrparams_session_args_json(a: number, b: number): void; +export function sessionstrparams_set_session_args_json(a: number, b: number, c: number): void; +export function sessionstrparams_session_args_complex(a: number, b: number): void; +export function sessionstrparams_set_session_args_complex(a: number, b: number, c: number): void; +export function sessionstrparams_session_version(a: number, b: number): void; +export function sessionstrparams_set_session_version(a: number, b: number, c: number): void; +export function sessionstrparams_session_entry_point(a: number, b: number): void; +export function sessionstrparams_set_session_entry_point(a: number, b: number, c: number): void; +export function sessionstrparams_is_session_transfer(a: number): number; +export function sessionstrparams_set_is_session_transfer(a: number, b: number): void; +export function __wbg_putdeployresult_free(a: number): void; +export function putdeployresult_api_version(a: number): number; +export function putdeployresult_deploy_hash(a: number): number; +export function putdeployresult_toJson(a: number): number; +export function sdk_deploy(a: number, b: number, c: number, d: number, e: number, f: number, g: number): number; +export function sdk_transfer(a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number): number; +export function __wbg_getaccountresult_free(a: number): void; +export function getaccountresult_api_version(a: number): number; +export function getaccountresult_account(a: number): number; +export function getaccountresult_merkle_proof(a: number, b: number): void; +export function getaccountresult_toJson(a: number): number; +export function __wbg_getaccountoptions_free(a: number): void; +export function __wbg_get_getaccountoptions_account_identifier(a: number): number; +export function __wbg_set_getaccountoptions_account_identifier(a: number, b: number): void; +export function __wbg_get_getaccountoptions_account_identifier_as_string(a: number, b: number): void; +export function __wbg_set_getaccountoptions_account_identifier_as_string(a: number, b: number, c: number): void; +export function __wbg_get_getaccountoptions_maybe_block_id_as_string(a: number, b: number): void; +export function __wbg_set_getaccountoptions_maybe_block_id_as_string(a: number, b: number, c: number): void; +export function __wbg_get_getaccountoptions_maybe_block_identifier(a: number): number; +export function __wbg_set_getaccountoptions_maybe_block_identifier(a: number, b: number): void; +export function __wbg_get_getaccountoptions_node_address(a: number, b: number): void; +export function __wbg_set_getaccountoptions_node_address(a: number, b: number, c: number): void; +export function __wbg_get_getaccountoptions_verbosity(a: number): number; +export function __wbg_set_getaccountoptions_verbosity(a: number, b: number): void; +export function sdk_get_account_options(a: number, b: number): number; +export function sdk_get_account(a: number, b: number): number; +export function sdk_state_get_account_info(a: number, b: number): number; +export function __wbg_geterasummaryresult_free(a: number): void; +export function geterasummaryresult_api_version(a: number): number; +export function geterasummaryresult_era_summary(a: number): number; +export function geterasummaryresult_toJson(a: number): number; +export function __wbg_geterasummaryoptions_free(a: number): void; +export function __wbg_get_geterasummaryoptions_maybe_block_id_as_string(a: number, b: number): void; +export function __wbg_set_geterasummaryoptions_maybe_block_id_as_string(a: number, b: number, c: number): void; +export function __wbg_get_geterasummaryoptions_node_address(a: number, b: number): void; +export function __wbg_set_geterasummaryoptions_node_address(a: number, b: number, c: number): void; +export function __wbg_get_geterasummaryoptions_verbosity(a: number): number; +export function __wbg_set_geterasummaryoptions_verbosity(a: number, b: number): void; +export function sdk_get_era_summary_options(a: number, b: number): number; +export function sdk_get_era_summary(a: number, b: number): number; +export function __wbg_getnodestatusresult_free(a: number): void; +export function getnodestatusresult_api_version(a: number): number; +export function getnodestatusresult_chainspec_name(a: number, b: number): void; +export function getnodestatusresult_starting_state_root_hash(a: number): number; +export function getnodestatusresult_peers(a: number): number; +export function getnodestatusresult_last_added_block_info(a: number): number; +export function getnodestatusresult_our_public_signing_key(a: number): number; +export function getnodestatusresult_round_length(a: number): number; +export function getnodestatusresult_next_upgrade(a: number): number; +export function getnodestatusresult_build_version(a: number, b: number): void; +export function getnodestatusresult_uptime(a: number): number; +export function getnodestatusresult_reactor_state(a: number): number; +export function getnodestatusresult_last_progress(a: number): number; +export function getnodestatusresult_available_block_range(a: number): number; +export function getnodestatusresult_block_sync(a: number): number; +export function getnodestatusresult_toJson(a: number): number; +export function sdk_get_node_status(a: number, b: number, c: number, d: number): number; +export function __wbg_getvalidatorchangesresult_free(a: number): void; +export function getvalidatorchangesresult_api_version(a: number): number; +export function getvalidatorchangesresult_changes(a: number): number; +export function getvalidatorchangesresult_toJson(a: number): number; +export function sdk_get_validator_changes(a: number, b: number, c: number, d: number): number; +export function __wbg_listrpcsresult_free(a: number): void; +export function listrpcsresult_api_version(a: number): number; +export function listrpcsresult_name(a: number, b: number): void; +export function listrpcsresult_schema(a: number): number; +export function listrpcsresult_toJson(a: number): number; +export function sdk_list_rpcs(a: number, b: number, c: number, d: number): number; +export function __wbg_queryglobalstateresult_free(a: number): void; +export function queryglobalstateresult_api_version(a: number): number; +export function queryglobalstateresult_block_header(a: number): number; +export function queryglobalstateresult_stored_value(a: number): number; +export function queryglobalstateresult_merkle_proof(a: number, b: number): void; +export function queryglobalstateresult_toJson(a: number): number; +export function __wbg_queryglobalstateoptions_free(a: number): void; +export function __wbg_get_queryglobalstateoptions_global_state_identifier(a: number): number; +export function __wbg_set_queryglobalstateoptions_global_state_identifier(a: number, b: number): void; +export function __wbg_get_queryglobalstateoptions_state_root_hash_as_string(a: number, b: number): void; +export function __wbg_set_queryglobalstateoptions_state_root_hash_as_string(a: number, b: number, c: number): void; +export function __wbg_get_queryglobalstateoptions_state_root_hash(a: number): number; +export function __wbg_set_queryglobalstateoptions_state_root_hash(a: number, b: number): void; +export function __wbg_get_queryglobalstateoptions_maybe_block_id_as_string(a: number, b: number): void; +export function __wbg_set_queryglobalstateoptions_maybe_block_id_as_string(a: number, b: number, c: number): void; +export function __wbg_get_queryglobalstateoptions_key_as_string(a: number, b: number): void; +export function __wbg_set_queryglobalstateoptions_key_as_string(a: number, b: number, c: number): void; +export function __wbg_get_queryglobalstateoptions_key(a: number): number; +export function __wbg_set_queryglobalstateoptions_key(a: number, b: number): void; +export function __wbg_get_queryglobalstateoptions_path_as_string(a: number, b: number): void; +export function __wbg_set_queryglobalstateoptions_path_as_string(a: number, b: number, c: number): void; +export function __wbg_get_queryglobalstateoptions_path(a: number): number; +export function __wbg_set_queryglobalstateoptions_path(a: number, b: number): void; +export function __wbg_get_queryglobalstateoptions_node_address(a: number, b: number): void; +export function __wbg_set_queryglobalstateoptions_node_address(a: number, b: number, c: number): void; +export function __wbg_get_queryglobalstateoptions_verbosity(a: number): number; +export function __wbg_set_queryglobalstateoptions_verbosity(a: number, b: number): void; +export function sdk_query_global_state_options(a: number, b: number): number; +export function sdk_query_global_state(a: number, b: number): number; +export function __wbg_set_geterasummaryoptions_maybe_block_identifier(a: number, b: number): void; +export function __wbg_get_geterasummaryoptions_maybe_block_identifier(a: number): number; +export function __wbg_accountidentifier_free(a: number): void; +export function accountidentifier_fromFormattedStr(a: number, b: number, c: number): void; +export function accountidentifier_fromPublicKey(a: number): number; +export function accountidentifier_fromAccountHash(a: number): number; +export function accountidentifier_toJson(a: number): number; +export function __wbg_contractpackagehash_free(a: number): void; +export function contractpackagehash_fromString(a: number, b: number, c: number): void; +export function contractpackagehash_fromFormattedStr(a: number, b: number, c: number): void; +export function contractpackagehash_toFormattedString(a: number, b: number): void; +export function contractpackagehash_fromUint8Array(a: number, b: number): number; +export function __wbg_dictionaryitemidentifier_free(a: number): void; +export function dictionaryitemidentifier_newFromAccountInfo(a: number, b: number, c: number, d: number, e: number, f: number, g: number): void; +export function dictionaryitemidentifier_newFromContractInfo(a: number, b: number, c: number, d: number, e: number, f: number, g: number): void; +export function dictionaryitemidentifier_newFromSeedUref(a: number, b: number, c: number, d: number, e: number): void; +export function dictionaryitemidentifier_newFromDictionaryKey(a: number, b: number, c: number): void; +export function dictionaryitemidentifier_toJson(a: number): number; +export function digest__new(a: number, b: number, c: number): void; +export function digest_fromDigest(a: number, b: number, c: number): void; +export function digest_toJson(a: number): number; +export function digest_toString(a: number, b: number): void; +export function __wbg_key_free(a: number): void; +export function key_new(a: number, b: number): void; +export function key_toJson(a: number): number; +export function key_fromURef(a: number): number; +export function key_fromDeployInfo(a: number): number; +export function key_fromAccount(a: number): number; +export function key_fromHash(a: number): number; +export function key_fromTransfer(a: number, b: number): number; +export function key_fromEraInfo(a: number): number; +export function key_fromBalance(a: number): number; +export function key_fromBid(a: number): number; +export function key_fromWithdraw(a: number): number; +export function key_fromDictionaryAddr(a: number): number; +export function key_asDictionaryAddr(a: number): number; +export function key_fromSystemContractRegistry(): number; +export function key_fromEraSummary(): number; +export function key_fromUnbond(a: number): number; +export function key_fromChainspecRegistry(): number; +export function key_fromChecksumRegistry(): number; +export function key_toFormattedString(a: number, b: number): void; +export function key_fromFormattedString(a: number, b: number): void; +export function key_fromDictionaryKey(a: number, b: number, c: number): number; +export function key_isDictionaryKey(a: number): number; +export function key_intoAccount(a: number): number; +export function key_intoHash(a: number): number; +export function key_asBalance(a: number): number; +export function key_intoURef(a: number): number; +export function key_urefToHash(a: number): number; +export function key_withdrawToUnbond(a: number): number; +export function __wbg_getauctioninforesult_free(a: number): void; +export function getauctioninforesult_api_version(a: number): number; +export function getauctioninforesult_auction_state(a: number): number; +export function getauctioninforesult_toJson(a: number): number; +export function __wbg_getauctioninfooptions_free(a: number): void; +export function __wbg_get_getauctioninfooptions_maybe_block_id_as_string(a: number, b: number): void; +export function __wbg_set_getauctioninfooptions_maybe_block_id_as_string(a: number, b: number, c: number): void; +export function __wbg_get_getauctioninfooptions_maybe_block_identifier(a: number): number; +export function __wbg_set_getauctioninfooptions_maybe_block_identifier(a: number, b: number): void; +export function __wbg_get_getauctioninfooptions_node_address(a: number, b: number): void; +export function __wbg_set_getauctioninfooptions_node_address(a: number, b: number, c: number): void; +export function __wbg_get_getauctioninfooptions_verbosity(a: number): number; +export function __wbg_set_getauctioninfooptions_verbosity(a: number, b: number): void; +export function sdk_get_auction_info_options(a: number, b: number): number; +export function sdk_get_auction_info(a: number, b: number): number; +export function __wbg_getblockresult_free(a: number): void; +export function getblockresult_api_version(a: number): number; +export function getblockresult_block(a: number): number; +export function getblockresult_toJson(a: number): number; +export function sdk_get_block_options(a: number, b: number): number; +export function sdk_get_block(a: number, b: number): number; +export function sdk_chain_get_block(a: number, b: number): number; +export function __wbg_getpeersresult_free(a: number): void; +export function getpeersresult_api_version(a: number): number; +export function getpeersresult_peers(a: number): number; +export function getpeersresult_toJson(a: number): number; +export function sdk_get_peers(a: number, b: number, c: number, d: number): number; +export function sdk_make_transfer(a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number): void; +export function __wbg_get_getblockoptions_verbosity(a: number): number; +export function __wbg_getblockoptions_free(a: number): void; +export function __wbg_set_getblockoptions_maybe_block_id_as_string(a: number, b: number, c: number): void; +export function __wbg_set_getblockoptions_node_address(a: number, b: number, c: number): void; +export function __wbg_set_getblockoptions_maybe_block_identifier(a: number, b: number): void; +export function __wbg_get_getblockoptions_maybe_block_identifier(a: number): number; +export function accountidentifier_new(a: number, b: number, c: number): void; +export function digest_fromString(a: number, b: number, c: number): void; +export function __wbg_set_getblockoptions_verbosity(a: number, b: number): void; +export function __wbg_digest_free(a: number): void; +export function __wbg_get_getblockoptions_maybe_block_id_as_string(a: number, b: number): void; +export function __wbg_get_getblockoptions_node_address(a: number, b: number): void; +export function __wbg_dictionaryaddr_free(a: number): void; +export function dictionaryaddr_new(a: number, b: number, c: number): void; +export function hashaddr_new(a: number, b: number, c: number): void; +export function __wbg_blockidentifier_free(a: number): void; +export function blockidentifier_new(a: number): number; +export function blockidentifier_from_hash(a: number): number; +export function blockidentifier_fromHeight(a: number): number; +export function blockidentifier_toJson(a: number): number; +export function __wbg_argssimple_free(a: number): void; +export function __wbg_dictionaryitemstrparams_free(a: number): void; +export function dictionaryitemstrparams_new(): number; +export function dictionaryitemstrparams_setAccountNamedKey(a: number, b: number, c: number, d: number, e: number, f: number, g: number): void; +export function dictionaryitemstrparams_setContractNamedKey(a: number, b: number, c: number, d: number, e: number, f: number, g: number): void; +export function dictionaryitemstrparams_setUref(a: number, b: number, c: number, d: number, e: number): void; +export function dictionaryitemstrparams_setDictionary(a: number, b: number, c: number): void; +export function dictionaryitemstrparams_toJson(a: number): number; +export function globalstateidentifier_fromStateRootHash(a: number): number; +export function globalstateidentifier_toJson(a: number): number; +export function __wbg_peerentry_free(a: number): void; +export function peerentry_node_id(a: number, b: number): void; +export function peerentry_address(a: number, b: number): void; +export function sdk_speculative_deploy(a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number): number; +export function __wbg_getbalanceresult_free(a: number): void; +export function getbalanceresult_api_version(a: number): number; +export function getbalanceresult_balance_value(a: number): number; +export function getbalanceresult_merkle_proof(a: number, b: number): void; +export function getbalanceresult_toJson(a: number): number; +export function __wbg_getbalanceoptions_free(a: number): void; +export function __wbg_get_getbalanceoptions_state_root_hash_as_string(a: number, b: number): void; +export function __wbg_set_getbalanceoptions_state_root_hash_as_string(a: number, b: number, c: number): void; +export function __wbg_get_getbalanceoptions_state_root_hash(a: number): number; +export function __wbg_set_getbalanceoptions_state_root_hash(a: number, b: number): void; +export function __wbg_get_getbalanceoptions_purse_uref_as_string(a: number, b: number): void; +export function __wbg_set_getbalanceoptions_purse_uref_as_string(a: number, b: number, c: number): void; +export function __wbg_get_getbalanceoptions_purse_uref(a: number): number; +export function __wbg_set_getbalanceoptions_purse_uref(a: number, b: number): void; +export function __wbg_get_getbalanceoptions_node_address(a: number, b: number): void; +export function __wbg_set_getbalanceoptions_node_address(a: number, b: number, c: number): void; +export function __wbg_get_getbalanceoptions_verbosity(a: number): number; +export function __wbg_set_getbalanceoptions_verbosity(a: number, b: number): void; +export function sdk_get_balance_options(a: number, b: number): number; +export function sdk_get_balance(a: number, b: number): number; +export function sdk_state_get_balance(a: number, b: number): number; +export function __wbg_getchainspecresult_free(a: number): void; +export function getchainspecresult_api_version(a: number): number; +export function getchainspecresult_chainspec_bytes(a: number): number; +export function getchainspecresult_toJson(a: number): number; +export function sdk_get_chainspec(a: number, b: number, c: number, d: number): number; +export function __wbg_getdictionaryitemresult_free(a: number): void; +export function getdictionaryitemresult_api_version(a: number): number; +export function getdictionaryitemresult_dictionary_key(a: number, b: number): void; +export function getdictionaryitemresult_stored_value(a: number): number; +export function getdictionaryitemresult_merkle_proof(a: number, b: number): void; +export function getdictionaryitemresult_toJson(a: number): number; +export function __wbg_getdictionaryitemoptions_free(a: number): void; +export function __wbg_get_getdictionaryitemoptions_state_root_hash_as_string(a: number, b: number): void; +export function __wbg_set_getdictionaryitemoptions_state_root_hash_as_string(a: number, b: number, c: number): void; +export function __wbg_get_getdictionaryitemoptions_state_root_hash(a: number): number; +export function __wbg_set_getdictionaryitemoptions_state_root_hash(a: number, b: number): void; +export function __wbg_get_getdictionaryitemoptions_dictionary_item_params(a: number): number; +export function __wbg_set_getdictionaryitemoptions_dictionary_item_params(a: number, b: number): void; +export function __wbg_get_getdictionaryitemoptions_dictionary_item_identifier(a: number): number; +export function __wbg_set_getdictionaryitemoptions_dictionary_item_identifier(a: number, b: number): void; +export function __wbg_get_getdictionaryitemoptions_node_address(a: number, b: number): void; +export function __wbg_set_getdictionaryitemoptions_node_address(a: number, b: number, c: number): void; +export function __wbg_get_getdictionaryitemoptions_verbosity(a: number): number; +export function __wbg_set_getdictionaryitemoptions_verbosity(a: number, b: number): void; +export function sdk_get_dictionary_item_options(a: number, b: number): number; +export function sdk_get_dictionary_item(a: number, b: number): number; +export function sdk_state_get_dictionary_item(a: number, b: number): number; +export function sdk_query_contract_dict_options(a: number, b: number): number; +export function sdk_query_contract_dict(a: number, b: number): number; +export function __wbg_querycontractkeyoptions_free(a: number): void; +export function __wbg_get_querycontractkeyoptions_global_state_identifier(a: number): number; +export function __wbg_set_querycontractkeyoptions_global_state_identifier(a: number, b: number): void; +export function __wbg_get_querycontractkeyoptions_state_root_hash_as_string(a: number, b: number): void; +export function __wbg_set_querycontractkeyoptions_state_root_hash_as_string(a: number, b: number, c: number): void; +export function __wbg_get_querycontractkeyoptions_state_root_hash(a: number): number; +export function __wbg_set_querycontractkeyoptions_state_root_hash(a: number, b: number): void; +export function __wbg_get_querycontractkeyoptions_maybe_block_id_as_string(a: number, b: number): void; +export function __wbg_set_querycontractkeyoptions_maybe_block_id_as_string(a: number, b: number, c: number): void; +export function __wbg_get_querycontractkeyoptions_contract_key_as_string(a: number, b: number): void; +export function __wbg_set_querycontractkeyoptions_contract_key_as_string(a: number, b: number, c: number): void; +export function __wbg_get_querycontractkeyoptions_contract_key(a: number): number; +export function __wbg_set_querycontractkeyoptions_contract_key(a: number, b: number): void; +export function __wbg_get_querycontractkeyoptions_path_as_string(a: number, b: number): void; +export function __wbg_set_querycontractkeyoptions_path_as_string(a: number, b: number, c: number): void; +export function __wbg_get_querycontractkeyoptions_path(a: number): number; +export function __wbg_set_querycontractkeyoptions_path(a: number, b: number): void; +export function __wbg_get_querycontractkeyoptions_node_address(a: number, b: number): void; +export function __wbg_set_querycontractkeyoptions_node_address(a: number, b: number, c: number): void; +export function __wbg_get_querycontractkeyoptions_verbosity(a: number): number; +export function __wbg_set_querycontractkeyoptions_verbosity(a: number, b: number): void; +export function sdk_query_contract_key_options(a: number, b: number): number; +export function sdk_query_contract_key(a: number, b: number): number; +export function globalstateidentifier_fromBlockHeight(a: number): number; +export function __wbg_get_querycontractdictoptions_verbosity(a: number): number; +export function __wbg_set_querycontractdictoptions_dictionary_item_params(a: number, b: number): void; +export function __wbg_set_querycontractdictoptions_state_root_hash_as_string(a: number, b: number, c: number): void; +export function __wbg_set_querycontractdictoptions_node_address(a: number, b: number, c: number): void; +export function __wbg_set_querycontractdictoptions_state_root_hash(a: number, b: number): void; +export function globalstateidentifier_fromBlockHash(a: number): number; +export function __wbg_querycontractdictoptions_free(a: number): void; +export function __wbg_set_querycontractdictoptions_dictionary_item_identifier(a: number, b: number): void; +export function __wbg_get_querycontractdictoptions_state_root_hash(a: number): number; +export function __wbg_set_querycontractdictoptions_verbosity(a: number, b: number): void; +export function __wbg_hashaddr_free(a: number): void; +export function __wbg_globalstateidentifier_free(a: number): void; +export function __wbg_get_querycontractdictoptions_state_root_hash_as_string(a: number, b: number): void; +export function __wbg_get_querycontractdictoptions_node_address(a: number, b: number): void; +export function __wbg_get_querycontractdictoptions_dictionary_item_params(a: number): number; +export function __wbg_get_querycontractdictoptions_dictionary_item_identifier(a: number): number; +export function globalstateidentifier_new(a: number): number; +export function __wbg_paymentstrparams_free(a: number): void; +export function paymentstrparams_new(a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number, o: number, p: number, q: number, r: number, s: number, t: number, u: number): number; +export function paymentstrparams_payment_amount(a: number, b: number): void; +export function paymentstrparams_set_payment_amount(a: number, b: number, c: number): void; +export function paymentstrparams_payment_hash(a: number, b: number): void; +export function paymentstrparams_set_payment_hash(a: number, b: number, c: number): void; +export function paymentstrparams_payment_name(a: number, b: number): void; +export function paymentstrparams_set_payment_name(a: number, b: number, c: number): void; +export function paymentstrparams_payment_package_hash(a: number, b: number): void; +export function paymentstrparams_set_payment_package_hash(a: number, b: number, c: number): void; +export function paymentstrparams_payment_package_name(a: number, b: number): void; +export function paymentstrparams_set_payment_package_name(a: number, b: number, c: number): void; +export function paymentstrparams_payment_path(a: number, b: number): void; +export function paymentstrparams_set_payment_path(a: number, b: number, c: number): void; +export function paymentstrparams_payment_args_simple(a: number): number; +export function paymentstrparams_set_payment_args_simple(a: number, b: number): void; +export function paymentstrparams_payment_args_json(a: number, b: number): void; +export function paymentstrparams_set_payment_args_json(a: number, b: number, c: number): void; +export function paymentstrparams_payment_args_complex(a: number, b: number): void; +export function paymentstrparams_set_payment_args_complex(a: number, b: number, c: number): void; +export function paymentstrparams_payment_version(a: number, b: number): void; +export function paymentstrparams_set_payment_version(a: number, b: number, c: number): void; +export function paymentstrparams_payment_entry_point(a: number, b: number): void; +export function paymentstrparams_set_payment_entry_point(a: number, b: number, c: number): void; +export function sdk_install(a: number, b: number, c: number, d: number, e: number, f: number, g: number): number; +export function sdk_call_entrypoint(a: number, b: number, c: number, d: number, e: number, f: number, g: number): number; +export function __wbindgen_malloc(a: number, b: number): number; +export function __wbindgen_realloc(a: number, b: number, c: number, d: number): number; +export const __wbindgen_export_2: WebAssembly.Table; +export function _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__he9a0163254a4b264(a: number, b: number, c: number): void; +export function __wbindgen_add_to_stack_pointer(a: number): number; +export function __wbindgen_free(a: number, b: number, c: number): void; +export function __wbindgen_exn_store(a: number): void; +export function wasm_bindgen__convert__closures__invoke2_mut__h02a7a5846fd066d3(a: number, b: number, c: number, d: number): void; diff --git a/pkg-nodejs/package.json b/pkg-nodejs/package.json new file mode 100644 index 000000000..0fc1cb31c --- /dev/null +++ b/pkg-nodejs/package.json @@ -0,0 +1,24 @@ +{ + "name": "casper-rust-wasm-sdk", + "description": "Casper Rust Wasm Web SDK", + "version": "0.1.0", + "license": "Apache-2.0", + "repository": { + "type": "git", + "url": "https://github.com/casper-ecosystem/rustSDK" + }, + "files": [ + "casper_rust_wasm_sdk_bg.wasm", + "casper_rust_wasm_sdk.js", + "casper_rust_wasm_sdk.d.ts" + ], + "main": "casper_rust_wasm_sdk.js", + "homepage": "https://casperlabs.io", + "types": "casper_rust_wasm_sdk.d.ts", + "keywords": [ + "casper", + "sdk", + "rust", + "wasm" + ] +} \ No newline at end of file diff --git a/pkg/LICENSE b/pkg/LICENSE new file mode 100644 index 000000000..a93d96287 --- /dev/null +++ b/pkg/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright 2022 CasperLabs Holdings AG + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/pkg/casper_rust_wasm_sdk.d.ts b/pkg/casper_rust_wasm_sdk.d.ts new file mode 100644 index 000000000..3d4b30051 --- /dev/null +++ b/pkg/casper_rust_wasm_sdk.d.ts @@ -0,0 +1,3261 @@ +/* tslint:disable */ +/* eslint-disable */ +/** +* Converts a hexadecimal string to a regular string. +* +* # Arguments +* +* * `hex_string` - The hexadecimal string to convert. +* +* # Returns +* +* A regular string containing the converted value. +* @param {string} hex_string +* @returns {string} +*/ +export function hexToString(hex_string: string): string; +/** +* Converts a hexadecimal string to a Uint8Array. +* +* # Arguments +* +* * `hex_string` - The hexadecimal string to convert. +* +* # Returns +* +* A Uint8Array containing the converted value. +* @param {string} hex_string +* @returns {Uint8Array} +*/ +export function hexToUint8Array(hex_string: string): Uint8Array; +/** +* Converts a Uint8Array to a `Bytes` object. +* +* # Arguments +* +* * `uint8_array` - The Uint8Array to convert. +* +* # Returns +* +* A `Bytes` object containing the converted value. +* @param {Uint8Array} uint8_array +* @returns {Bytes} +*/ +export function uint8ArrayToBytes(uint8_array: Uint8Array): Bytes; +/** +* Converts motes to CSPR (Casper tokens). +* +* # Arguments +* +* * `motes` - The motes value to convert. +* +* # Returns +* +* A string representing the CSPR amount. +* @param {string} motes +* @returns {string} +*/ +export function motesToCSPR(motes: string): string; +/** +* Pretty prints a JSON value. +* +* # Arguments +* +* * `value` - The JSON value to pretty print. +* * `verbosity` - An optional verbosity level for pretty printing. +* +* # Returns +* +* A pretty printed JSON value as a JsValue. +* @param {any} value +* @param {number | undefined} verbosity +* @returns {any} +*/ +export function jsonPrettyPrint(value: any, verbosity?: number): any; +/** +* Converts a secret key to a corresponding public key. +* +* # Arguments +* +* * `secret_key` - The secret key in PEM format. +* +* # Returns +* +* A JsValue containing the corresponding public key. +* If an error occurs during the conversion, JsValue::null() is returned. +* @param {string} secret_key +* @returns {any} +*/ +export function privateToPublicKey(secret_key: string): any; +/** +* Gets the current timestamp. +* +* # Returns +* +* A JsValue containing the current timestamp. +* @returns {any} +*/ +export function getTimestamp(): any; +/** +* @param {Uint8Array} key +* @returns {TransferAddr} +*/ +export function fromTransfer(key: Uint8Array): TransferAddr; +/** +*/ +export enum Verbosity { + Low = 0, + Medium = 1, + High = 2, +} +/** +*/ +export class AccessRights { + free(): void; +/** +* @returns {number} +*/ + static NONE(): number; +/** +* @returns {number} +*/ + static READ(): number; +/** +* @returns {number} +*/ + static WRITE(): number; +/** +* @returns {number} +*/ + static ADD(): number; +/** +* @returns {number} +*/ + static READ_ADD(): number; +/** +* @returns {number} +*/ + static READ_WRITE(): number; +/** +* @returns {number} +*/ + static ADD_WRITE(): number; +/** +* @returns {number} +*/ + static READ_ADD_WRITE(): number; +/** +* @param {number} access_rights +*/ + constructor(access_rights: number); +/** +* @param {boolean} read +* @param {boolean} write +* @param {boolean} add +* @returns {AccessRights} +*/ + static from_bits(read: boolean, write: boolean, add: boolean): AccessRights; +/** +* @returns {boolean} +*/ + is_readable(): boolean; +/** +* @returns {boolean} +*/ + is_writeable(): boolean; +/** +* @returns {boolean} +*/ + is_addable(): boolean; +/** +* @returns {boolean} +*/ + is_none(): boolean; +} +/** +*/ +export class AccountHash { + free(): void; +/** +* @param {string} account_hash_hex_str +*/ + constructor(account_hash_hex_str: string); +/** +* @param {string} formatted_str +* @returns {AccountHash} +*/ + static fromFormattedStr(formatted_str: string): AccountHash; +/** +* @param {PublicKey} public_key +* @returns {AccountHash} +*/ + static fromPublicKey(public_key: PublicKey): AccountHash; +/** +* @returns {string} +*/ + toFormattedString(): string; +/** +* @param {Uint8Array} bytes +* @returns {AccountHash} +*/ + static fromUint8Array(bytes: Uint8Array): AccountHash; +/** +* @returns {any} +*/ + toJson(): any; +} +/** +*/ +export class AccountIdentifier { + free(): void; +/** +* @param {string} formatted_str +*/ + constructor(formatted_str: string); +/** +* @param {string} formatted_str +* @returns {AccountIdentifier} +*/ + static fromFormattedStr(formatted_str: string): AccountIdentifier; +/** +* @param {PublicKey} key +* @returns {AccountIdentifier} +*/ + static fromPublicKey(key: PublicKey): AccountIdentifier; +/** +* @param {AccountHash} account_hash +* @returns {AccountIdentifier} +*/ + static fromAccountHash(account_hash: AccountHash): AccountIdentifier; +/** +* @returns {any} +*/ + toJson(): any; +} +/** +*/ +export class ArgsSimple { + free(): void; +} +/** +*/ +export class BlockHash { + free(): void; +/** +* @param {string} block_hash_hex_str +*/ + constructor(block_hash_hex_str: string); +/** +* @param {Digest} digest +* @returns {BlockHash} +*/ + static fromDigest(digest: Digest): BlockHash; +/** +* @returns {any} +*/ + toJson(): any; +/** +* @returns {string} +*/ + toString(): string; +} +/** +*/ +export class BlockIdentifier { + free(): void; +/** +* @param {BlockIdentifier} block_identifier +*/ + constructor(block_identifier: BlockIdentifier); +/** +* @param {BlockHash} hash +* @returns {BlockIdentifier} +*/ + static from_hash(hash: BlockHash): BlockIdentifier; +/** +* @param {bigint} height +* @returns {BlockIdentifier} +*/ + static fromHeight(height: bigint): BlockIdentifier; +/** +* @returns {any} +*/ + toJson(): any; +} +/** +*/ +export class Bytes { + free(): void; +/** +*/ + constructor(); +/** +* @param {Uint8Array} uint8_array +* @returns {Bytes} +*/ + static fromUint8Array(uint8_array: Uint8Array): Bytes; +} +/** +*/ +export class ContractHash { + free(): void; +/** +* @param {string} input +*/ + constructor(input: string); +/** +* @param {string} input +* @returns {ContractHash} +*/ + static fromFormattedStr(input: string): ContractHash; +/** +* @returns {string} +*/ + toFormattedString(): string; +/** +* @param {Uint8Array} bytes +* @returns {ContractHash} +*/ + static fromUint8Array(bytes: Uint8Array): ContractHash; +} +/** +*/ +export class ContractPackageHash { + free(): void; +/** +* @param {string} input +*/ + constructor(input: string); +/** +* @param {string} input +* @returns {ContractPackageHash} +*/ + static fromFormattedStr(input: string): ContractPackageHash; +/** +* @returns {string} +*/ + toFormattedString(): string; +/** +* @param {Uint8Array} bytes +* @returns {ContractPackageHash} +*/ + static fromUint8Array(bytes: Uint8Array): ContractPackageHash; +} +/** +*/ +export class Deploy { + free(): void; +/** +* @param {any} deploy +*/ + constructor(deploy: any); +/** +* @returns {any} +*/ + toJson(): any; +/** +* @param {DeployStrParams} deploy_params +* @param {SessionStrParams} session_params +* @param {PaymentStrParams} payment_params +* @returns {Deploy} +*/ + static withPaymentAndSession(deploy_params: DeployStrParams, session_params: SessionStrParams, payment_params: PaymentStrParams): Deploy; +/** +* @param {string} amount +* @param {string} target_account +* @param {string | undefined} transfer_id +* @param {DeployStrParams} deploy_params +* @param {PaymentStrParams} payment_params +* @returns {Deploy} +*/ + static withTransfer(amount: string, target_account: string, transfer_id: string | undefined, deploy_params: DeployStrParams, payment_params: PaymentStrParams): Deploy; +/** +* @param {string} ttl +* @param {string | undefined} secret_key +* @returns {Deploy} +*/ + withTTL(ttl: string, secret_key?: string): Deploy; +/** +* @param {string} timestamp +* @param {string | undefined} secret_key +* @returns {Deploy} +*/ + withTimestamp(timestamp: string, secret_key?: string): Deploy; +/** +* @param {string} chain_name +* @param {string | undefined} secret_key +* @returns {Deploy} +*/ + withChainName(chain_name: string, secret_key?: string): Deploy; +/** +* @param {PublicKey} account +* @param {string | undefined} secret_key +* @returns {Deploy} +*/ + withAccount(account: PublicKey, secret_key?: string): Deploy; +/** +* @param {string} entry_point_name +* @param {string | undefined} secret_key +* @returns {Deploy} +*/ + withEntryPointName(entry_point_name: string, secret_key?: string): Deploy; +/** +* @param {ContractHash} hash +* @param {string | undefined} secret_key +* @returns {Deploy} +*/ + withHash(hash: ContractHash, secret_key?: string): Deploy; +/** +* @param {ContractPackageHash} package_hash +* @param {string | undefined} secret_key +* @returns {Deploy} +*/ + withPackageHash(package_hash: ContractPackageHash, secret_key?: string): Deploy; +/** +* @param {Bytes} module_bytes +* @param {string | undefined} secret_key +* @returns {Deploy} +*/ + withModuleBytes(module_bytes: Bytes, secret_key?: string): Deploy; +/** +* @param {string | undefined} secret_key +* @returns {Deploy} +*/ + withSecretKey(secret_key?: string): Deploy; +/** +* @param {string} amount +* @param {string | undefined} secret_key +* @returns {Deploy} +*/ + withStandardPayment(amount: string, secret_key?: string): Deploy; +/** +* @param {any} payment +* @param {string | undefined} secret_key +* @returns {Deploy} +*/ + withPayment(payment: any, secret_key?: string): Deploy; +/** +* @param {any} session +* @param {string | undefined} secret_key +* @returns {Deploy} +*/ + withSession(session: any, secret_key?: string): Deploy; +/** +* @returns {boolean} +*/ + validateDeploySize(): boolean; +/** +* @param {string} secret_key +* @returns {Deploy} +*/ + sign(secret_key: string): Deploy; +/** +* @returns {string} +*/ + TTL(): string; +/** +* @returns {string} +*/ + timestamp(): string; +/** +* @returns {string} +*/ + chainName(): string; +/** +* @returns {string} +*/ + account(): string; +/** +* @returns {any} +*/ + args(): any; +/** +* @param {any} js_value_arg +* @param {string | undefined} secret_key +* @returns {Deploy} +*/ + addArg(js_value_arg: any, secret_key?: string): Deploy; +} +/** +*/ +export class DeployHash { + free(): void; +/** +* @param {string} deploy_hash_hex_str +*/ + constructor(deploy_hash_hex_str: string); +/** +* @param {Digest} digest +* @returns {DeployHash} +*/ + static fromDigest(digest: Digest): DeployHash; +/** +* @returns {any} +*/ + toJson(): any; +/** +* @returns {string} +*/ + toString(): string; +} +/** +*/ +export class DeployStrParams { + free(): void; +/** +* @param {string} chain_name +* @param {string} session_account +* @param {string | undefined} secret_key +* @param {string | undefined} timestamp +* @param {string | undefined} ttl +*/ + constructor(chain_name: string, session_account: string, secret_key?: string, timestamp?: string, ttl?: string); +/** +*/ + setDefaultTimestamp(): void; +/** +*/ + setDefaultTTL(): void; +/** +*/ + chain_name: string; +/** +*/ + secret_key: string; +/** +*/ + session_account: string; +/** +*/ + timestamp?: string; +/** +*/ + ttl?: string; +} +/** +*/ +export class DictionaryAddr { + free(): void; +/** +* @param {Uint8Array} bytes +*/ + constructor(bytes: Uint8Array); +} +/** +*/ +export class DictionaryItemIdentifier { + free(): void; +/** +* @param {string} account_hash +* @param {string} dictionary_name +* @param {string} dictionary_item_key +* @returns {DictionaryItemIdentifier} +*/ + static newFromAccountInfo(account_hash: string, dictionary_name: string, dictionary_item_key: string): DictionaryItemIdentifier; +/** +* @param {string} contract_addr +* @param {string} dictionary_name +* @param {string} dictionary_item_key +* @returns {DictionaryItemIdentifier} +*/ + static newFromContractInfo(contract_addr: string, dictionary_name: string, dictionary_item_key: string): DictionaryItemIdentifier; +/** +* @param {string} seed_uref +* @param {string} dictionary_item_key +* @returns {DictionaryItemIdentifier} +*/ + static newFromSeedUref(seed_uref: string, dictionary_item_key: string): DictionaryItemIdentifier; +/** +* @param {string} dictionary_key +* @returns {DictionaryItemIdentifier} +*/ + static newFromDictionaryKey(dictionary_key: string): DictionaryItemIdentifier; +/** +* @returns {any} +*/ + toJson(): any; +} +/** +*/ +export class DictionaryItemStrParams { + free(): void; +/** +*/ + constructor(); +/** +* @param {string} key +* @param {string} dictionary_name +* @param {string} dictionary_item_key +*/ + setAccountNamedKey(key: string, dictionary_name: string, dictionary_item_key: string): void; +/** +* @param {string} key +* @param {string} dictionary_name +* @param {string} dictionary_item_key +*/ + setContractNamedKey(key: string, dictionary_name: string, dictionary_item_key: string): void; +/** +* @param {string} seed_uref +* @param {string} dictionary_item_key +*/ + setUref(seed_uref: string, dictionary_item_key: string): void; +/** +* @param {string} value +*/ + setDictionary(value: string): void; +/** +* @returns {any} +*/ + toJson(): any; +} +/** +*/ +export class Digest { + free(): void; +/** +* @param {string} digest_hex_str +*/ + constructor(digest_hex_str: string); +/** +* @param {string} digest_hex_str +* @returns {Digest} +*/ + static fromString(digest_hex_str: string): Digest; +/** +* @param {Uint8Array} bytes +* @returns {Digest} +*/ + static fromDigest(bytes: Uint8Array): Digest; +/** +* @returns {any} +*/ + toJson(): any; +/** +* @returns {string} +*/ + toString(): string; +} +/** +*/ +export class EraId { + free(): void; +/** +* @param {bigint} value +*/ + constructor(value: bigint); +/** +* @returns {bigint} +*/ + value(): bigint; +} +/** +*/ +export class GetAccountResult { + free(): void; +/** +* @returns {any} +*/ + toJson(): any; +/** +*/ + readonly account: any; +/** +*/ + readonly api_version: any; +/** +*/ + readonly merkle_proof: string; +} +/** +*/ +export class GetAuctionInfoResult { + free(): void; +/** +* Converts the GetAuctionInfoResult to a JsValue. +* @returns {any} +*/ + toJson(): any; +/** +* Gets the API version as a JsValue. +*/ + readonly api_version: any; +/** +* Gets the auction state as a JsValue. +*/ + readonly auction_state: any; +} +/** +*/ +export class GetBalanceResult { + free(): void; +/** +* Converts the GetBalanceResult to a JsValue. +* @returns {any} +*/ + toJson(): any; +/** +* Gets the API version as a JsValue. +*/ + readonly api_version: any; +/** +* Gets the balance value as a JsValue. +*/ + readonly balance_value: any; +/** +* Gets the Merkle proof as a string. +*/ + readonly merkle_proof: string; +} +/** +*/ +export class GetBlockResult { + free(): void; +/** +* Converts the GetBlockResult to a JsValue. +* @returns {any} +*/ + toJson(): any; +/** +* Gets the API version as a JsValue. +*/ + readonly api_version: any; +/** +* Gets the block information as a JsValue. +*/ + readonly block: any; +} +/** +*/ +export class GetBlockTransfersResult { + free(): void; +/** +* Converts the GetBlockTransfersResult to a JsValue. +* @returns {any} +*/ + toJson(): any; +/** +* Gets the API version as a JsValue. +*/ + readonly api_version: any; +/** +* Gets the block hash as an Option. +*/ + readonly block_hash: BlockHash | undefined; +/** +* Gets the transfers as a JsValue. +*/ + readonly transfers: any; +} +/** +* A struct representing the result of the `get_chainspec` function. +*/ +export class GetChainspecResult { + free(): void; +/** +* Converts the `GetChainspecResult` to a JsValue. +* @returns {any} +*/ + toJson(): any; +/** +* Gets the API version as a JsValue. +*/ + readonly api_version: any; +/** +* Gets the chainspec bytes as a JsValue. +*/ + readonly chainspec_bytes: any; +} +/** +*/ +export class GetDeployResult { + free(): void; +/** +* Converts the result to a JSON JavaScript value. +* @returns {any} +*/ + toJson(): any; +/** +* Gets the API version as a JavaScript value. +*/ + readonly api_version: any; +/** +* Gets the deploy information. +*/ + readonly deploy: Deploy; +} +/** +*/ +export class GetDictionaryItemResult { + free(): void; +/** +* Converts the GetDictionaryItemResult to a JsValue. +* @returns {any} +*/ + toJson(): any; +/** +* Gets the API version as a JsValue. +*/ + readonly api_version: any; +/** +* Gets the dictionary key as a String. +*/ + readonly dictionary_key: string; +/** +* Gets the merkle proof as a String. +*/ + readonly merkle_proof: string; +/** +* Gets the stored value as a JsValue. +*/ + readonly stored_value: any; +} +/** +*/ +export class GetEraInfoResult { + free(): void; +/** +* @returns {any} +*/ + toJson(): any; +/** +*/ + readonly api_version: any; +/** +*/ + readonly era_summary: any; +} +/** +* Wrapper struct for the `GetEraSummaryResult` from casper_client. +*/ +export class GetEraSummaryResult { + free(): void; +/** +* Converts the GetEraSummaryResult to a JsValue. +* @returns {any} +*/ + toJson(): any; +/** +* Gets the API version as a JsValue. +*/ + readonly api_version: any; +/** +* Gets the era summary as a JsValue. +*/ + readonly era_summary: any; +} +/** +* Wrapper struct for the `GetNodeStatusResult` from casper_client. +*/ +export class GetNodeStatusResult { + free(): void; +/** +* Converts the GetNodeStatusResult to a JsValue. +* @returns {any} +*/ + toJson(): any; +/** +* Gets the API version as a JsValue. +*/ + readonly api_version: any; +/** +* Gets the available block range as a JsValue. +*/ + readonly available_block_range: any; +/** +* Gets the block sync information as a JsValue. +*/ + readonly block_sync: any; +/** +* Gets the build version as a String. +*/ + readonly build_version: string; +/** +* Gets the chainspec name as a String. +*/ + readonly chainspec_name: string; +/** +* Gets information about the last added block as a JsValue. +*/ + readonly last_added_block_info: any; +/** +* Gets the last progress information as a JsValue. +*/ + readonly last_progress: any; +/** +* Gets information about the next upgrade as a JsValue. +*/ + readonly next_upgrade: any; +/** +* Gets the public signing key as an Option. +*/ + readonly our_public_signing_key: PublicKey | undefined; +/** +* Gets the list of peers as a JsValue. +*/ + readonly peers: any; +/** +* Gets the reactor state information as a JsValue. +*/ + readonly reactor_state: any; +/** +* Gets the round length as a JsValue. +*/ + readonly round_length: any; +/** +* Gets the starting state root hash as a Digest. +*/ + readonly starting_state_root_hash: Digest; +/** +* Gets the uptime information as a JsValue. +*/ + readonly uptime: any; +} +/** +* A wrapper for the `GetPeersResult` type from the Casper client. +*/ +export class GetPeersResult { + free(): void; +/** +* Converts the result to JSON format as a JavaScript value. +* @returns {any} +*/ + toJson(): any; +/** +* Gets the API version as a JSON value. +*/ + readonly api_version: any; +/** +* Gets the peers as a JSON value. +*/ + readonly peers: any; +} +/** +* Wrapper struct for the `GetStateRootHashResult` from casper_client. +*/ +export class GetStateRootHashResult { + free(): void; +/** +* Converts the GetStateRootHashResult to a JsValue. +* @returns {any} +*/ + toJson(): any; +/** +* Gets the API version as a JsValue. +*/ + readonly api_version: any; +/** +* Gets the state root hash as an Option. +*/ + readonly state_root_hash: Digest | undefined; +/** +* Gets the state root hash as a String. +*/ + readonly state_root_hash_as_string: string; +} +/** +* Wrapper struct for the `GetValidatorChangesResult` from casper_client. +*/ +export class GetValidatorChangesResult { + free(): void; +/** +* Converts the GetValidatorChangesResult to a JsValue. +* @returns {any} +*/ + toJson(): any; +/** +* Gets the API version as a JsValue. +*/ + readonly api_version: any; +/** +* Gets the validator changes as a JsValue. +*/ + readonly changes: any; +} +/** +*/ +export class GlobalStateIdentifier { + free(): void; +/** +* @param {GlobalStateIdentifier} global_state_identifier +*/ + constructor(global_state_identifier: GlobalStateIdentifier); +/** +* @param {BlockHash} block_hash +* @returns {GlobalStateIdentifier} +*/ + static fromBlockHash(block_hash: BlockHash): GlobalStateIdentifier; +/** +* @param {bigint} block_height +* @returns {GlobalStateIdentifier} +*/ + static fromBlockHeight(block_height: bigint): GlobalStateIdentifier; +/** +* @param {Digest} state_root_hash +* @returns {GlobalStateIdentifier} +*/ + static fromStateRootHash(state_root_hash: Digest): GlobalStateIdentifier; +/** +* @returns {any} +*/ + toJson(): any; +} +/** +*/ +export class HashAddr { + free(): void; +/** +* @param {Uint8Array} bytes +*/ + constructor(bytes: Uint8Array); +} +/** +*/ +export class Key { + free(): void; +/** +* @param {Key} key +*/ + constructor(key: Key); +/** +* @returns {any} +*/ + toJson(): any; +/** +* @param {URef} key +* @returns {Key} +*/ + static fromURef(key: URef): Key; +/** +* @param {DeployHash} key +* @returns {Key} +*/ + static fromDeployInfo(key: DeployHash): Key; +/** +* @param {AccountHash} key +* @returns {Key} +*/ + static fromAccount(key: AccountHash): Key; +/** +* @param {HashAddr} key +* @returns {Key} +*/ + static fromHash(key: HashAddr): Key; +/** +* @param {Uint8Array} key +* @returns {TransferAddr} +*/ + static fromTransfer(key: Uint8Array): TransferAddr; +/** +* @param {EraId} key +* @returns {Key} +*/ + static fromEraInfo(key: EraId): Key; +/** +* @param {URefAddr} key +* @returns {Key} +*/ + static fromBalance(key: URefAddr): Key; +/** +* @param {AccountHash} key +* @returns {Key} +*/ + static fromBid(key: AccountHash): Key; +/** +* @param {AccountHash} key +* @returns {Key} +*/ + static fromWithdraw(key: AccountHash): Key; +/** +* @param {DictionaryAddr} key +* @returns {Key} +*/ + static fromDictionaryAddr(key: DictionaryAddr): Key; +/** +* @returns {DictionaryAddr | undefined} +*/ + asDictionaryAddr(): DictionaryAddr | undefined; +/** +* @returns {Key} +*/ + static fromSystemContractRegistry(): Key; +/** +* @returns {Key} +*/ + static fromEraSummary(): Key; +/** +* @param {AccountHash} key +* @returns {Key} +*/ + static fromUnbond(key: AccountHash): Key; +/** +* @returns {Key} +*/ + static fromChainspecRegistry(): Key; +/** +* @returns {Key} +*/ + static fromChecksumRegistry(): Key; +/** +* @returns {string} +*/ + toFormattedString(): string; +/** +* @param {any} input +* @returns {Key} +*/ + static fromFormattedString(input: any): Key; +/** +* @param {URef} seed_uref +* @param {Uint8Array} dictionary_item_key +* @returns {Key} +*/ + static fromDictionaryKey(seed_uref: URef, dictionary_item_key: Uint8Array): Key; +/** +* @returns {boolean} +*/ + isDictionaryKey(): boolean; +/** +* @returns {AccountHash | undefined} +*/ + intoAccount(): AccountHash | undefined; +/** +* @returns {HashAddr | undefined} +*/ + intoHash(): HashAddr | undefined; +/** +* @returns {URefAddr | undefined} +*/ + asBalance(): URefAddr | undefined; +/** +* @returns {URef | undefined} +*/ + intoURef(): URef | undefined; +/** +* @returns {Key | undefined} +*/ + urefToHash(): Key | undefined; +/** +* @returns {Key | undefined} +*/ + withdrawToUnbond(): Key | undefined; +} +/** +* Wrapper struct for the `ListRpcsResult` from casper_client. +*/ +export class ListRpcsResult { + free(): void; +/** +* Converts the ListRpcsResult to a JsValue. +* @returns {any} +*/ + toJson(): any; +/** +* Gets the API version as a JsValue. +*/ + readonly api_version: any; +/** +* Gets the name of the RPC. +*/ + readonly name: string; +/** +* Gets the schema of the RPC as a JsValue. +*/ + readonly schema: any; +} +/** +*/ +export class Path { + free(): void; +/** +* @param {any} path +*/ + constructor(path: any); +/** +* @param {any} path +* @returns {Path} +*/ + static fromArray(path: any): Path; +/** +* @returns {any} +*/ + toJson(): any; +/** +* @returns {string} +*/ + toString(): string; +/** +* @returns {boolean} +*/ + is_empty(): boolean; +} +/** +*/ +export class PaymentStrParams { + free(): void; +/** +* @param {string | undefined} payment_amount +* @param {string | undefined} payment_hash +* @param {string | undefined} payment_name +* @param {string | undefined} payment_package_hash +* @param {string | undefined} payment_package_name +* @param {string | undefined} payment_path +* @param {Array | undefined} payment_args_simple +* @param {string | undefined} payment_args_json +* @param {string | undefined} payment_args_complex +* @param {string | undefined} payment_version +* @param {string | undefined} payment_entry_point +*/ + constructor(payment_amount?: string, payment_hash?: string, payment_name?: string, payment_package_hash?: string, payment_package_name?: string, payment_path?: string, payment_args_simple?: Array, payment_args_json?: string, payment_args_complex?: string, payment_version?: string, payment_entry_point?: string); +/** +*/ + payment_amount: string; +/** +*/ + payment_args_complex: string; +/** +*/ + payment_args_json: string; +/** +*/ + payment_args_simple: Array; +/** +*/ + payment_entry_point: string; +/** +*/ + payment_hash: string; +/** +*/ + payment_name: string; +/** +*/ + payment_package_hash: string; +/** +*/ + payment_package_name: string; +/** +*/ + payment_path: string; +/** +*/ + payment_version: string; +} +/** +*/ +export class PeerEntry { + free(): void; +/** +*/ + readonly address: string; +/** +*/ + readonly node_id: string; +} +/** +*/ +export class PublicKey { + free(): void; +/** +* @param {string} public_key_hex_str +*/ + constructor(public_key_hex_str: string); +/** +* @param {Uint8Array} bytes +* @returns {PublicKey} +*/ + static fromUint8Array(bytes: Uint8Array): PublicKey; +/** +* @returns {AccountHash} +*/ + toAccountHash(): AccountHash; +/** +* @returns {URef} +*/ + toPurseUref(): URef; +/** +* @returns {any} +*/ + toJson(): any; +} +/** +*/ +export class PurseIdentifier { + free(): void; +/** +* @param {PublicKey} key +*/ + constructor(key: PublicKey); +/** +* @param {AccountHash} account_hash +* @returns {PurseIdentifier} +*/ + static fromAccountHash(account_hash: AccountHash): PurseIdentifier; +/** +* @param {URef} uref +* @returns {PurseIdentifier} +*/ + static fromURef(uref: URef): PurseIdentifier; +} +/** +*/ +export class PutDeployResult { + free(): void; +/** +* Converts PutDeployResult to a JavaScript object. +* @returns {any} +*/ + toJson(): any; +/** +* Gets the API version as a JavaScript value. +*/ + readonly api_version: any; +/** +* Gets the deploy hash associated with this result. +*/ + readonly deploy_hash: DeployHash; +} +/** +*/ +export class QueryBalanceResult { + free(): void; +/** +* Converts the QueryBalanceResult to a JsValue. +* @returns {any} +*/ + toJson(): any; +/** +* Gets the API version as a JsValue. +*/ + readonly api_version: any; +/** +* Gets the balance as a JsValue. +*/ + readonly balance: any; +} +/** +*/ +export class QueryGlobalStateResult { + free(): void; +/** +* Converts the QueryGlobalStateResult to a JsValue. +* @returns {any} +*/ + toJson(): any; +/** +* Gets the API version as a JsValue. +*/ + readonly api_version: any; +/** +* Gets the block header as a JsValue. +*/ + readonly block_header: any; +/** +* Gets the Merkle proof as a string. +*/ + readonly merkle_proof: string; +/** +* Gets the stored value as a JsValue. +*/ + readonly stored_value: any; +} +/** +*/ +export class SDK { + free(): void; +/** +* Parses deploy options from a JsValue. +* +* # Arguments +* +* * `options` - A JsValue containing deploy options to be parsed. +* +* # Returns +* +* Parsed deploy options as a `GetDeployOptions` struct. +* @param {any} options +* @returns {getDeployOptions} +*/ + get_deploy_options(options: any): getDeployOptions; +/** +* Retrieves deploy information using the provided options. +* +* # Arguments +* +* * `options` - An optional `GetDeployOptions` struct containing retrieval options. +* +* # Returns +* +* A `Result` containing either a `GetDeployResult` or an error. +* @param {getDeployOptions | undefined} options +* @returns {Promise} +*/ + get_deploy(options?: getDeployOptions): Promise; +/** +* Retrieves deploy information using the provided options, alias for `get_deploy_js_alias`. +* @param {getDeployOptions | undefined} options +* @returns {Promise} +*/ + info_get_deploy(options?: getDeployOptions): Promise; +/** +* @param {any} options +* @returns {getEraInfoOptions} +*/ + get_era_info_options(options: any): getEraInfoOptions; +/** +* @param {getEraInfoOptions | undefined} options +* @returns {Promise} +*/ + get_era_info(options?: getEraInfoOptions): Promise; +/** +* Parses state root hash options from a JsValue. +* +* # Arguments +* +* * `options` - A JsValue containing state root hash options to be parsed. +* +* # Returns +* +* Parsed state root hash options as a `GetStateRootHashOptions` struct. +* @param {any} options +* @returns {getStateRootHashOptions} +*/ + get_state_root_hash_options(options: any): getStateRootHashOptions; +/** +* Retrieves state root hash information using the provided options. +* +* # Arguments +* +* * `options` - An optional `GetStateRootHashOptions` struct containing retrieval options. +* +* # Returns +* +* A `Result` containing either a `GetStateRootHashResult` or a `JsError` in case of an error. +* +* # Errors +* +* Returns a `JsError` if there is an error during the retrieval process. +* @param {getStateRootHashOptions | undefined} options +* @returns {Promise} +*/ + get_state_root_hash(options?: getStateRootHashOptions): Promise; +/** +* Retrieves state root hash information using the provided options (alias for `get_state_root_hash_js_alias`). +* +* # Arguments +* +* * `options` - An optional `GetStateRootHashOptions` struct containing retrieval options. +* +* # Returns +* +* A `Result` containing either a `GetStateRootHashResult` or a `JsError` in case of an error. +* +* # Errors +* +* Returns a `JsError` if there is an error during the retrieval process. +* @param {getStateRootHashOptions | undefined} options +* @returns {Promise} +*/ + chain_get_state_root_hash(options?: getStateRootHashOptions): Promise; +/** +* Get options for speculative execution from a JavaScript value. +* @param {any} options +* @returns {getSpeculativeExecOptions} +*/ + speculative_exec_options(options: any): getSpeculativeExecOptions; +/** +* JS Alias for speculative execution. +* +* # Arguments +* +* * `options` - The options for speculative execution. +* +* # Returns +* +* A `Result` containing the result of the speculative execution or a `JsError` in case of an error. +* @param {getSpeculativeExecOptions | undefined} options +* @returns {Promise} +*/ + speculative_exec(options?: getSpeculativeExecOptions): Promise; +/** +* @param {string | undefined} node_address +* @param {number | undefined} verbosity +*/ + constructor(node_address?: string, verbosity?: number); +/** +* @param {string | undefined} node_address +* @returns {string} +*/ + getNodeAddress(node_address?: string): string; +/** +* @param {string | undefined} node_address +*/ + setNodeAddress(node_address?: string): void; +/** +* @param {number | undefined} verbosity +* @returns {number} +*/ + getVerbosity(verbosity?: number): number; +/** +* @param {number | undefined} verbosity +*/ + setVerbosity(verbosity?: number): void; +/** +* Puts a deploy using the provided options. +* +* # Arguments +* +* * `deploy` - The `Deploy` object to be sent. +* * `verbosity` - An optional `Verbosity` level for controlling the output verbosity. +* * `node_address` - An optional string specifying the node address to use for the request. +* +* # Returns +* +* A `Result` containing either a `PutDeployResult` or a `JsError` in case of an error. +* +* # Errors +* +* Returns a `JsError` if there is an error during the deploy process. +* @param {Deploy} deploy +* @param {number | undefined} verbosity +* @param {string | undefined} node_address +* @returns {Promise} +*/ + put_deploy(deploy: Deploy, verbosity?: number, node_address?: string): Promise; +/** +* JS Alias for `put_deploy_js_alias`. +* +* This function provides an alternative name for `put_deploy_js_alias`. +* @param {Deploy} deploy +* @param {number | undefined} verbosity +* @param {string | undefined} node_address +* @returns {Promise} +*/ + account_put_deploy(deploy: Deploy, verbosity?: number, node_address?: string): Promise; +/** +* JS Alias for `make_deploy`. +* +* # Arguments +* +* * `deploy_params` - The deploy parameters. +* * `session_params` - The session parameters. +* * `payment_params` - The payment parameters. +* +* # Returns +* +* A `Result` containing the created `Deploy` or a `JsError` in case of an error. +* @param {DeployStrParams} deploy_params +* @param {SessionStrParams} session_params +* @param {PaymentStrParams} payment_params +* @returns {Deploy} +*/ + make_deploy(deploy_params: DeployStrParams, session_params: SessionStrParams, payment_params: PaymentStrParams): Deploy; +/** +* JS Alias for speculative transfer. +* +* # Arguments +* +* * `amount` - The amount to transfer. +* * `target_account` - The target account. +* * `transfer_id` - An optional transfer ID (defaults to a random number). +* * `deploy_params` - The deployment parameters. +* * `payment_params` - The payment parameters. +* * `maybe_block_id_as_string` - An optional block ID as a string. +* * `maybe_block_identifier` - An optional block identifier. +* * `verbosity` - The verbosity level for logging (optional). +* * `node_address` - The address of the node to connect to (optional). +* +* # Returns +* +* A `Result` containing the result of the speculative transfer or a `JsError` in case of an error. +* @param {string} amount +* @param {string} target_account +* @param {string | undefined} transfer_id +* @param {DeployStrParams} deploy_params +* @param {PaymentStrParams} payment_params +* @param {string | undefined} maybe_block_id_as_string +* @param {BlockIdentifier | undefined} maybe_block_identifier +* @param {number | undefined} verbosity +* @param {string | undefined} node_address +* @returns {Promise} +*/ + speculative_transfer(amount: string, target_account: string, transfer_id: string | undefined, deploy_params: DeployStrParams, payment_params: PaymentStrParams, maybe_block_id_as_string?: string, maybe_block_identifier?: BlockIdentifier, verbosity?: number, node_address?: string): Promise; +/** +* JS Alias for `sign_deploy`. +* +* # Arguments +* +* * `deploy` - The deploy to sign. +* * `secret_key` - The secret key for signing. +* +* # Returns +* +* The signed `Deploy`. +* @param {Deploy} deploy +* @param {string} secret_key +* @returns {Deploy} +*/ + sign_deploy(deploy: Deploy, secret_key: string): Deploy; +/** +* Parses block transfers options from a JsValue. +* +* # Arguments +* +* * `options` - A JsValue containing block transfers options to be parsed. +* +* # Returns +* +* Parsed block transfers options as a `GetBlockTransfersOptions` struct. +* @param {any} options +* @returns {getBlockTransfersOptions} +*/ + get_block_transfers_options(options: any): getBlockTransfersOptions; +/** +* Retrieves block transfers information using the provided options. +* +* # Arguments +* +* * `options` - An optional `GetBlockTransfersOptions` struct containing retrieval options. +* +* # Returns +* +* A `Result` containing either a `GetBlockTransfersResult` or a `JsError` in case of an error. +* +* # Errors +* +* Returns a `JsError` if there is an error during the retrieval process. +* @param {getBlockTransfersOptions | undefined} options +* @returns {Promise} +*/ + get_block_transfers(options?: getBlockTransfersOptions): Promise; +/** +* Parses query balance options from a JsValue. +* +* # Arguments +* +* * `options` - A JsValue containing query balance options to be parsed. +* +* # Returns +* +* Parsed query balance options as a `QueryBalanceOptions` struct. +* @param {any} options +* @returns {queryBalanceOptions} +*/ + query_balance_options(options: any): queryBalanceOptions; +/** +* Retrieves balance information using the provided options. +* +* # Arguments +* +* * `options` - An optional `QueryBalanceOptions` struct containing retrieval options. +* +* # Returns +* +* A `Result` containing either a `QueryBalanceResult` or a `JsError` in case of an error. +* +* # Errors +* +* Returns a `JsError` if there is an error during the retrieval process. +* @param {queryBalanceOptions | undefined} options +* @returns {Promise} +*/ + query_balance(options?: queryBalanceOptions): Promise; +/** +* JavaScript alias for deploying with deserialized parameters. +* +* # Arguments +* +* * `deploy_params` - Deploy parameters. +* * `session_params` - Session parameters. +* * `payment_params` - Payment parameters. +* * `verbosity` - An optional verbosity level. +* * `node_address` - An optional node address. +* +* # Returns +* +* A result containing PutDeployResult or a JsError. +* @param {DeployStrParams} deploy_params +* @param {SessionStrParams} session_params +* @param {PaymentStrParams} payment_params +* @param {number | undefined} verbosity +* @param {string | undefined} node_address +* @returns {Promise} +*/ + deploy(deploy_params: DeployStrParams, session_params: SessionStrParams, payment_params: PaymentStrParams, verbosity?: number, node_address?: string): Promise; +/** +* JS Alias for transferring funds. +* +* # Arguments +* +* * `amount` - The amount to transfer. +* * `target_account` - The target account. +* * `transfer_id` - An optional transfer ID (defaults to a random number). +* * `deploy_params` - The deployment parameters. +* * `payment_params` - The payment parameters. +* * `verbosity` - The verbosity level for logging (optional). +* * `node_address` - The address of the node to connect to (optional). +* +* # Returns +* +* A `Result` containing the result of the transfer or a `JsError` in case of an error. +* @param {string} amount +* @param {string} target_account +* @param {string | undefined} transfer_id +* @param {DeployStrParams} deploy_params +* @param {PaymentStrParams} payment_params +* @param {number | undefined} verbosity +* @param {string | undefined} node_address +* @returns {Promise} +*/ + transfer(amount: string, target_account: string, transfer_id: string | undefined, deploy_params: DeployStrParams, payment_params: PaymentStrParams, verbosity?: number, node_address?: string): Promise; +/** +* @param {any} options +* @returns {getAccountOptions} +*/ + get_account_options(options: any): getAccountOptions; +/** +* @param {getAccountOptions | undefined} options +* @returns {Promise} +*/ + get_account(options?: getAccountOptions): Promise; +/** +* @param {getAccountOptions | undefined} options +* @returns {Promise} +*/ + state_get_account_info(options?: getAccountOptions): Promise; +/** +* Parses era summary options from a JsValue. +* +* # Arguments +* +* * `options` - A JsValue containing era summary options to be parsed. +* +* # Returns +* +* Parsed era summary options as a `GetEraSummaryOptions` struct. +* @param {any} options +* @returns {getEraSummaryOptions} +*/ + get_era_summary_options(options: any): getEraSummaryOptions; +/** +* Retrieves era summary information using the provided options. +* +* # Arguments +* +* * `options` - An optional `GetEraSummaryOptions` struct containing retrieval options. +* +* # Returns +* +* A `Result` containing either a `GetEraSummaryResult` or a `JsError` in case of an error. +* +* # Errors +* +* Returns a `JsError` if there is an error during the retrieval process. +* @param {getEraSummaryOptions | undefined} options +* @returns {Promise} +*/ + get_era_summary(options?: getEraSummaryOptions): Promise; +/** +* Retrieves node status information using the provided options. +* +* # Arguments +* +* * `verbosity` - An optional `Verbosity` level for controlling the output verbosity. +* * `node_address` - An optional string specifying the node address to use for the request. +* +* # Returns +* +* A `Result` containing either a `GetNodeStatusResult` or a `JsError` in case of an error. +* +* # Errors +* +* Returns a `JsError` if there is an error during the retrieval process. +* @param {number | undefined} verbosity +* @param {string | undefined} node_address +* @returns {Promise} +*/ + get_node_status(verbosity?: number, node_address?: string): Promise; +/** +* Retrieves validator changes using the provided options. +* +* # Arguments +* +* * `verbosity` - An optional `Verbosity` level for controlling the output verbosity. +* * `node_address` - An optional string specifying the node address to use for the request. +* +* # Returns +* +* A `Result` containing either a `GetValidatorChangesResult` or a `JsError` in case of an error. +* +* # Errors +* +* Returns a `JsError` if there is an error during the retrieval process. +* @param {number | undefined} verbosity +* @param {string | undefined} node_address +* @returns {Promise} +*/ + get_validator_changes(verbosity?: number, node_address?: string): Promise; +/** +* Lists available RPCs using the provided options. +* +* # Arguments +* +* * `verbosity` - An optional `Verbosity` level for controlling the output verbosity. +* * `node_address` - An optional string specifying the node address to use for the request. +* +* # Returns +* +* A `Result` containing either a `ListRpcsResult` or a `JsError` in case of an error. +* +* # Errors +* +* Returns a `JsError` if there is an error during the listing process. +* @param {number | undefined} verbosity +* @param {string | undefined} node_address +* @returns {Promise} +*/ + list_rpcs(verbosity?: number, node_address?: string): Promise; +/** +* Parses query global state options from a JsValue. +* +* # Arguments +* +* * `options` - A JsValue containing query global state options to be parsed. +* +* # Returns +* +* Parsed query global state options as a `QueryGlobalStateOptions` struct. +* @param {any} options +* @returns {queryGlobalStateOptions} +*/ + query_global_state_options(options: any): queryGlobalStateOptions; +/** +* Retrieves global state information using the provided options. +* +* # Arguments +* +* * `options` - An optional `QueryGlobalStateOptions` struct containing retrieval options. +* +* # Returns +* +* A `Result` containing either a `QueryGlobalStateResult` or a `JsError` in case of an error. +* +* # Errors +* +* Returns a `JsError` if there is an error during the retrieval process. +* @param {queryGlobalStateOptions | undefined} options +* @returns {Promise} +*/ + query_global_state(options?: queryGlobalStateOptions): Promise; +/** +* Parses auction info options from a JsValue. +* +* # Arguments +* +* * `options` - A JsValue containing auction info options to be parsed. +* +* # Returns +* +* Parsed auction info options as a `GetAuctionInfoOptions` struct. +* @param {any} options +* @returns {getAuctionInfoOptions} +*/ + get_auction_info_options(options: any): getAuctionInfoOptions; +/** +* Retrieves auction information using the provided options. +* +* # Arguments +* +* * `options` - An optional `GetAuctionInfoOptions` struct containing retrieval options. +* +* # Returns +* +* A `Result` containing either a `GetAuctionInfoResult` or a `JsError` in case of an error. +* +* # Errors +* +* Returns a `JsError` if there is an error during the retrieval process. +* @param {getAuctionInfoOptions | undefined} options +* @returns {Promise} +*/ + get_auction_info(options?: getAuctionInfoOptions): Promise; +/** +* Parses block options from a JsValue. +* +* # Arguments +* +* * `options` - A JsValue containing block options to be parsed. +* +* # Returns +* +* Parsed block options as a `GetBlockOptions` struct. +* @param {any} options +* @returns {getBlockOptions} +*/ + get_block_options(options: any): getBlockOptions; +/** +* Retrieves block information using the provided options. +* +* # Arguments +* +* * `options` - An optional `GetBlockOptions` struct containing retrieval options. +* +* # Returns +* +* A `Result` containing either a `GetBlockResult` or a `JsError` in case of an error. +* +* # Errors +* +* Returns a `JsError` if there is an error during the retrieval process. +* @param {getBlockOptions | undefined} options +* @returns {Promise} +*/ + get_block(options?: getBlockOptions): Promise; +/** +* JS Alias for the `get_block` method to maintain compatibility. +* +* # Arguments +* +* * `options` - An optional `GetBlockOptions` struct containing retrieval options. +* +* # Returns +* +* A `Result` containing either a `GetBlockResult` or a `JsError` in case of an error. +* +* # Errors +* +* Returns a `JsError` if there is an error during the retrieval process. +* @param {getBlockOptions | undefined} options +* @returns {Promise} +*/ + chain_get_block(options?: getBlockOptions): Promise; +/** +* Retrieves peers asynchronously. +* +* # Arguments +* +* * `verbosity` - Optional verbosity level. +* * `node_address` - Optional node address. +* +* # Returns +* +* A `Result` containing `GetPeersResult` or a `JsError` if an error occurs. +* @param {number | undefined} verbosity +* @param {string | undefined} node_address +* @returns {Promise} +*/ + get_peers(verbosity?: number, node_address?: string): Promise; +/** +* JS Alias for `make_transfer`. +* +* # Arguments +* +* * `amount` - The transfer amount. +* * `target_account` - The target account. +* * `transfer_id` - Optional transfer identifier. +* * `deploy_params` - The deploy parameters. +* * `payment_params` - The payment parameters. +* +* # Returns +* +* A `Result` containing the created `Deploy` or a `JsError` in case of an error. +* @param {string} amount +* @param {string} target_account +* @param {string | undefined} transfer_id +* @param {DeployStrParams} deploy_params +* @param {PaymentStrParams} payment_params +* @returns {Deploy} +*/ + make_transfer(amount: string, target_account: string, transfer_id: string | undefined, deploy_params: DeployStrParams, payment_params: PaymentStrParams): Deploy; +/** +* This function allows executing a deploy speculatively. +* +* # Arguments +* +* * `deploy_params` - Deployment parameters for the deploy. +* * `session_params` - Session parameters for the deploy. +* * `payment_params` - Payment parameters for the deploy. +* * `maybe_block_identifier` - Optional block identifier. +* * `verbosity` - Optional verbosity level. +* * `node_address` - Optional node address. +* +* # Returns +* +* A `Result` containing either a `SpeculativeExecResult` or a `JsError` in case of an error. +* @param {DeployStrParams} deploy_params +* @param {SessionStrParams} session_params +* @param {PaymentStrParams} payment_params +* @param {BlockIdentifier | undefined} maybe_block_identifier +* @param {number | undefined} verbosity +* @param {string | undefined} node_address +* @returns {Promise} +*/ + speculative_deploy(deploy_params: DeployStrParams, session_params: SessionStrParams, payment_params: PaymentStrParams, maybe_block_identifier?: BlockIdentifier, verbosity?: number, node_address?: string): Promise; +/** +* Parses balance options from a JsValue. +* +* # Arguments +* +* * `options` - A JsValue containing balance options to be parsed. +* +* # Returns +* +* Parsed balance options as a `GetBalanceOptions` struct. +* @param {any} options +* @returns {getBalanceOptions} +*/ + get_balance_options(options: any): getBalanceOptions; +/** +* Retrieves balance information using the provided options. +* +* # Arguments +* +* * `options` - An optional `GetBalanceOptions` struct containing retrieval options. +* +* # Returns +* +* A `Result` containing either a `GetBalanceResult` or a `JsError` in case of an error. +* +* # Errors +* +* Returns a `JsError` if there is an error during the retrieval process. +* @param {getBalanceOptions | undefined} options +* @returns {Promise} +*/ + get_balance(options?: getBalanceOptions): Promise; +/** +* JS Alias for `get_balance_js_alias`. +* +* # Arguments +* +* * `options` - An optional `GetBalanceOptions` struct containing retrieval options. +* +* # Returns +* +* A `Result` containing either a `GetBalanceResult` or a `JsError` in case of an error. +* @param {getBalanceOptions | undefined} options +* @returns {Promise} +*/ + state_get_balance(options?: getBalanceOptions): Promise; +/** +* Asynchronously retrieves the chainspec. +* +* # Arguments +* +* * `verbosity` - An optional `Verbosity` parameter. +* * `node_address` - An optional node address as a string. +* +* # Returns +* +* A `Result` containing either a `GetChainspecResult` or a `JsError` in case of an error. +* @param {number | undefined} verbosity +* @param {string | undefined} node_address +* @returns {Promise} +*/ + get_chainspec(verbosity?: number, node_address?: string): Promise; +/** +* Parses dictionary item options from a JsValue. +* +* # Arguments +* +* * `options` - A JsValue containing dictionary item options to be parsed. +* +* # Returns +* +* Parsed dictionary item options as a `GetDictionaryItemOptions` struct. +* @param {any} options +* @returns {getDictionaryItemOptions} +*/ + get_dictionary_item_options(options: any): getDictionaryItemOptions; +/** +* Retrieves dictionary item information using the provided options. +* +* # Arguments +* +* * `options` - An optional `GetDictionaryItemOptions` struct containing retrieval options. +* +* # Returns +* +* A `Result` containing either a `GetDictionaryItemResult` or a `JsError` in case of an error. +* +* # Errors +* +* Returns a `JsError` if there is an error during the retrieval process. +* @param {getDictionaryItemOptions | undefined} options +* @returns {Promise} +*/ + get_dictionary_item(options?: getDictionaryItemOptions): Promise; +/** +* JS Alias for `get_dictionary_item_js_alias` +* @param {getDictionaryItemOptions | undefined} options +* @returns {Promise} +*/ + state_get_dictionary_item(options?: getDictionaryItemOptions): Promise; +/** +* Deserialize query_contract_dict_options from a JavaScript object. +* @param {any} options +* @returns {queryContractDictOptions} +*/ + query_contract_dict_options(options: any): queryContractDictOptions; +/** +* JavaScript alias for query_contract_dict with deserialized options. +* @param {queryContractDictOptions | undefined} options +* @returns {Promise} +*/ + query_contract_dict(options?: queryContractDictOptions): Promise; +/** +* Deserialize query_contract_key_options from a JavaScript object. +* @param {any} options +* @returns {queryContractKeyOptions} +*/ + query_contract_key_options(options: any): queryContractKeyOptions; +/** +* JavaScript alias for query_contract_key with deserialized options. +* @param {queryContractKeyOptions | undefined} options +* @returns {Promise} +*/ + query_contract_key(options?: queryContractKeyOptions): Promise; +/** +* Installs a smart contract with the specified parameters and returns the result. +* +* # Arguments +* +* * `deploy_params` - The deploy parameters. +* * `session_params` - The session parameters. +* * `payment_amount` - The payment amount as a string. +* * `node_address` - An optional node address to send the request to. +* +* # Returns +* +* A `Result` containing either a `PutDeployResult` or a `JsError` in case of an error. +* +* # Errors +* +* Returns a `JsError` if there is an error during the installation. +* @param {DeployStrParams} deploy_params +* @param {SessionStrParams} session_params +* @param {string} payment_amount +* @param {string | undefined} node_address +* @returns {Promise} +*/ + install(deploy_params: DeployStrParams, session_params: SessionStrParams, payment_amount: string, node_address?: string): Promise; +/** +* Calls a smart contract entry point with the specified parameters and returns the result. +* +* # Arguments +* +* * `deploy_params` - The deploy parameters. +* * `session_params` - The session parameters. +* * `payment_amount` - The payment amount as a string. +* * `node_address` - An optional node address to send the request to. +* +* # Returns +* +* A `Result` containing either a `PutDeployResult` or a `JsError` in case of an error. +* +* # Errors +* +* Returns a `JsError` if there is an error during the call. +* @param {DeployStrParams} deploy_params +* @param {SessionStrParams} session_params +* @param {string} payment_amount +* @param {string | undefined} node_address +* @returns {Promise} +*/ + call_entrypoint(deploy_params: DeployStrParams, session_params: SessionStrParams, payment_amount: string, node_address?: string): Promise; +} +/** +*/ +export class SessionStrParams { + free(): void; +/** +* @param {string | undefined} session_hash +* @param {string | undefined} session_name +* @param {string | undefined} session_package_hash +* @param {string | undefined} session_package_name +* @param {string | undefined} session_path +* @param {Bytes | undefined} session_bytes +* @param {Array | undefined} session_args_simple +* @param {string | undefined} session_args_json +* @param {string | undefined} session_args_complex +* @param {string | undefined} session_version +* @param {string | undefined} session_entry_point +* @param {boolean | undefined} is_session_transfer +*/ + constructor(session_hash?: string, session_name?: string, session_package_hash?: string, session_package_name?: string, session_path?: string, session_bytes?: Bytes, session_args_simple?: Array, session_args_json?: string, session_args_complex?: string, session_version?: string, session_entry_point?: string, is_session_transfer?: boolean); +/** +*/ + is_session_transfer: boolean; +/** +*/ + session_args_complex: string; +/** +*/ + session_args_json: string; +/** +*/ + session_args_simple: Array; +/** +*/ + session_bytes: Bytes; +/** +*/ + session_entry_point: string; +/** +*/ + session_hash: string; +/** +*/ + session_name: string; +/** +*/ + session_package_hash: string; +/** +*/ + session_package_name: string; +/** +*/ + session_path: string; +/** +*/ + session_version: string; +} +/** +*/ +export class SpeculativeExecResult { + free(): void; +/** +* Convert the result to JSON format. +* @returns {any} +*/ + toJson(): any; +/** +* Get the API version of the result. +*/ + readonly api_version: any; +/** +* Get the block hash. +*/ + readonly block_hash: BlockHash; +/** +* Get the execution result. +*/ + readonly execution_result: any; +} +/** +*/ +export class TransferAddr { + free(): void; +/** +* @param {Uint8Array} bytes +*/ + constructor(bytes: Uint8Array); +} +/** +*/ +export class URef { + free(): void; +/** +* @param {string} uref_hex_str +* @param {number} access_rights +*/ + constructor(uref_hex_str: string, access_rights: number); +/** +* @param {Uint8Array} bytes +* @param {number} access_rights +* @returns {URef} +*/ + static fromUint8Array(bytes: Uint8Array, access_rights: number): URef; +/** +* @returns {string} +*/ + toFormattedString(): string; +/** +* @returns {any} +*/ + toJson(): any; +} +/** +*/ +export class URefAddr { + free(): void; +/** +* @param {Uint8Array} bytes +*/ + constructor(bytes: Uint8Array); +} +/** +*/ +export class getAccountOptions { + free(): void; +/** +*/ + account_identifier?: AccountIdentifier; +/** +*/ + account_identifier_as_string?: string; +/** +*/ + maybe_block_id_as_string?: string; +/** +*/ + maybe_block_identifier?: BlockIdentifier; +/** +*/ + node_address?: string; +/** +*/ + verbosity?: number; +} +/** +* Options for the `get_auction_info` method. +*/ +export class getAuctionInfoOptions { + free(): void; +/** +*/ + maybe_block_id_as_string?: string; +/** +*/ + maybe_block_identifier?: BlockIdentifier; +/** +*/ + node_address?: string; +/** +*/ + verbosity?: number; +} +/** +* Options for the `get_balance` method. +*/ +export class getBalanceOptions { + free(): void; +/** +*/ + node_address?: string; +/** +*/ + purse_uref?: URef; +/** +*/ + purse_uref_as_string?: string; +/** +*/ + state_root_hash?: Digest; +/** +*/ + state_root_hash_as_string?: string; +/** +*/ + verbosity?: number; +} +/** +* Options for the `get_block` method. +*/ +export class getBlockOptions { + free(): void; +/** +*/ + maybe_block_id_as_string?: string; +/** +*/ + maybe_block_identifier?: BlockIdentifier; +/** +*/ + node_address?: string; +/** +*/ + verbosity?: number; +} +/** +* Options for the `get_block_transfers` method. +*/ +export class getBlockTransfersOptions { + free(): void; +/** +*/ + maybe_block_id_as_string?: string; +/** +*/ + maybe_block_identifier?: BlockIdentifier; +/** +*/ + node_address?: string; +/** +*/ + verbosity?: number; +} +/** +* Options for the `get_deploy` method. +*/ +export class getDeployOptions { + free(): void; +/** +*/ + deploy_hash?: DeployHash; +/** +*/ + deploy_hash_as_string?: string; +/** +*/ + finalized_approvals?: boolean; +/** +*/ + node_address?: string; +/** +*/ + verbosity?: number; +} +/** +* Options for the `get_dictionary_item` method. +*/ +export class getDictionaryItemOptions { + free(): void; +/** +*/ + dictionary_item_identifier?: DictionaryItemIdentifier; +/** +*/ + dictionary_item_params?: DictionaryItemStrParams; +/** +*/ + node_address?: string; +/** +*/ + state_root_hash?: Digest; +/** +*/ + state_root_hash_as_string?: string; +/** +*/ + verbosity?: number; +} +/** +*/ +export class getEraInfoOptions { + free(): void; +/** +*/ + maybe_block_id_as_string?: string; +/** +*/ + maybe_block_identifier?: BlockIdentifier; +/** +*/ + node_address?: string; +/** +*/ + verbosity?: number; +} +/** +* Options for the `get_era_summary` method. +*/ +export class getEraSummaryOptions { + free(): void; +/** +*/ + maybe_block_id_as_string?: string; +/** +*/ + maybe_block_identifier?: BlockIdentifier; +/** +*/ + node_address?: string; +/** +*/ + verbosity?: number; +} +/** +* Options for speculative execution. +*/ +export class getSpeculativeExecOptions { + free(): void; +/** +* The deploy to execute. +*/ + deploy?: Deploy; +/** +* The deploy as a JSON string. +*/ + deploy_as_string?: string; +/** +* The block identifier as a string. +*/ + maybe_block_id_as_string?: string; +/** +* The block identifier. +*/ + maybe_block_identifier?: BlockIdentifier; +/** +* The node address. +*/ + node_address?: string; +/** +* The verbosity level for logging. +*/ + verbosity?: number; +} +/** +* Options for the `get_state_root_hash` method. +*/ +export class getStateRootHashOptions { + free(): void; +/** +*/ + maybe_block_id_as_string?: string; +/** +*/ + maybe_block_identifier?: BlockIdentifier; +/** +*/ + node_address?: string; +/** +*/ + verbosity?: number; +} +/** +* Options for the `query_balance` method. +*/ +export class queryBalanceOptions { + free(): void; +/** +*/ + global_state_identifier?: GlobalStateIdentifier; +/** +*/ + maybe_block_id_as_string?: string; +/** +*/ + node_address?: string; +/** +*/ + purse_identifier?: PurseIdentifier; +/** +*/ + purse_identifier_as_string?: string; +/** +*/ + state_root_hash?: Digest; +/** +*/ + state_root_hash_as_string?: string; +/** +*/ + verbosity?: number; +} +/** +*/ +export class queryContractDictOptions { + free(): void; +/** +*/ + dictionary_item_identifier?: DictionaryItemIdentifier; +/** +*/ + dictionary_item_params?: DictionaryItemStrParams; +/** +*/ + node_address?: string; +/** +*/ + state_root_hash?: Digest; +/** +*/ + state_root_hash_as_string?: string; +/** +*/ + verbosity?: number; +} +/** +*/ +export class queryContractKeyOptions { + free(): void; +/** +*/ + contract_key?: Key; +/** +*/ + contract_key_as_string?: string; +/** +*/ + global_state_identifier?: GlobalStateIdentifier; +/** +*/ + maybe_block_id_as_string?: string; +/** +*/ + node_address?: string; +/** +*/ + path?: Path; +/** +*/ + path_as_string?: string; +/** +*/ + state_root_hash?: Digest; +/** +*/ + state_root_hash_as_string?: string; +/** +*/ + verbosity?: number; +} +/** +* Options for the `query_global_state` method. +*/ +export class queryGlobalStateOptions { + free(): void; +/** +*/ + global_state_identifier?: GlobalStateIdentifier; +/** +*/ + key?: Key; +/** +*/ + key_as_string?: string; +/** +*/ + maybe_block_id_as_string?: string; +/** +*/ + node_address?: string; +/** +*/ + path?: Path; +/** +*/ + path_as_string?: string; +/** +*/ + state_root_hash?: Digest; +/** +*/ + state_root_hash_as_string?: string; +/** +*/ + verbosity?: number; +} + +export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module; + +export interface InitOutput { + readonly memory: WebAssembly.Memory; + readonly __wbg_accessrights_free: (a: number) => void; + readonly accessrights_NONE: () => number; + readonly accessrights_READ: () => number; + readonly accessrights_WRITE: () => number; + readonly accessrights_ADD: () => number; + readonly accessrights_READ_ADD: () => number; + readonly accessrights_READ_WRITE: () => number; + readonly accessrights_ADD_WRITE: () => number; + readonly accessrights_READ_ADD_WRITE: () => number; + readonly accessrights_new: (a: number, b: number) => void; + readonly accessrights_from_bits: (a: number, b: number, c: number) => number; + readonly accessrights_is_readable: (a: number) => number; + readonly accessrights_is_writeable: (a: number) => number; + readonly accessrights_is_addable: (a: number) => number; + readonly accessrights_is_none: (a: number) => number; + readonly __wbg_deploy_free: (a: number) => void; + readonly deploy_new: (a: number) => number; + readonly deploy_toJson: (a: number) => number; + readonly deploy_withPaymentAndSession: (a: number, b: number, c: number, d: number) => void; + readonly deploy_withTransfer: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => void; + readonly deploy_withTTL: (a: number, b: number, c: number, d: number, e: number) => number; + readonly deploy_withTimestamp: (a: number, b: number, c: number, d: number, e: number) => number; + readonly deploy_withChainName: (a: number, b: number, c: number, d: number, e: number) => number; + readonly deploy_withAccount: (a: number, b: number, c: number, d: number) => number; + readonly deploy_withEntryPointName: (a: number, b: number, c: number, d: number, e: number) => number; + readonly deploy_withHash: (a: number, b: number, c: number, d: number) => number; + readonly deploy_withPackageHash: (a: number, b: number, c: number, d: number) => number; + readonly deploy_withModuleBytes: (a: number, b: number, c: number, d: number) => number; + readonly deploy_withSecretKey: (a: number, b: number, c: number) => number; + readonly deploy_withStandardPayment: (a: number, b: number, c: number, d: number, e: number) => number; + readonly deploy_withPayment: (a: number, b: number, c: number, d: number) => number; + readonly deploy_withSession: (a: number, b: number, c: number, d: number) => number; + readonly deploy_validateDeploySize: (a: number) => number; + readonly deploy_sign: (a: number, b: number, c: number) => number; + readonly deploy_TTL: (a: number, b: number) => void; + readonly deploy_timestamp: (a: number, b: number) => void; + readonly deploy_chainName: (a: number, b: number) => void; + readonly deploy_account: (a: number, b: number) => void; + readonly deploy_args: (a: number) => number; + readonly deploy_addArg: (a: number, b: number, c: number, d: number) => number; + readonly __wbg_deploystrparams_free: (a: number) => void; + readonly deploystrparams_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => number; + readonly deploystrparams_secret_key: (a: number, b: number) => void; + readonly deploystrparams_set_secret_key: (a: number, b: number, c: number) => void; + readonly deploystrparams_timestamp: (a: number, b: number) => void; + readonly deploystrparams_set_timestamp: (a: number, b: number, c: number) => void; + readonly deploystrparams_setDefaultTimestamp: (a: number) => void; + readonly deploystrparams_ttl: (a: number, b: number) => void; + readonly deploystrparams_set_ttl: (a: number, b: number, c: number) => void; + readonly deploystrparams_setDefaultTTL: (a: number) => void; + readonly deploystrparams_chain_name: (a: number, b: number) => void; + readonly deploystrparams_set_chain_name: (a: number, b: number, c: number) => void; + readonly deploystrparams_session_account: (a: number, b: number) => void; + readonly deploystrparams_set_session_account: (a: number, b: number, c: number) => void; + readonly __wbg_purseidentifier_free: (a: number) => void; + readonly purseidentifier_fromPublicKey: (a: number) => number; + readonly purseidentifier_fromAccountHash: (a: number) => number; + readonly purseidentifier_fromURef: (a: number) => number; + readonly __wbg_getdeployresult_free: (a: number) => void; + readonly getdeployresult_api_version: (a: number) => number; + readonly getdeployresult_deploy: (a: number) => number; + readonly getdeployresult_toJson: (a: number) => number; + readonly __wbg_getdeployoptions_free: (a: number) => void; + readonly __wbg_get_getdeployoptions_deploy_hash_as_string: (a: number, b: number) => void; + readonly __wbg_set_getdeployoptions_deploy_hash_as_string: (a: number, b: number, c: number) => void; + readonly __wbg_get_getdeployoptions_deploy_hash: (a: number) => number; + readonly __wbg_set_getdeployoptions_deploy_hash: (a: number, b: number) => void; + readonly __wbg_get_getdeployoptions_finalized_approvals: (a: number) => number; + readonly __wbg_set_getdeployoptions_finalized_approvals: (a: number, b: number) => void; + readonly __wbg_get_getdeployoptions_node_address: (a: number, b: number) => void; + readonly __wbg_set_getdeployoptions_node_address: (a: number, b: number, c: number) => void; + readonly __wbg_get_getdeployoptions_verbosity: (a: number) => number; + readonly __wbg_set_getdeployoptions_verbosity: (a: number, b: number) => void; + readonly sdk_get_deploy_options: (a: number, b: number) => number; + readonly sdk_get_deploy: (a: number, b: number) => number; + readonly sdk_info_get_deploy: (a: number, b: number) => number; + readonly __wbg_geterainforesult_free: (a: number) => void; + readonly geterainforesult_api_version: (a: number) => number; + readonly geterainforesult_era_summary: (a: number) => number; + readonly geterainforesult_toJson: (a: number) => number; + readonly __wbg_geterainfooptions_free: (a: number) => void; + readonly __wbg_get_geterainfooptions_maybe_block_id_as_string: (a: number, b: number) => void; + readonly __wbg_set_geterainfooptions_maybe_block_id_as_string: (a: number, b: number, c: number) => void; + readonly __wbg_get_geterainfooptions_maybe_block_identifier: (a: number) => number; + readonly __wbg_set_geterainfooptions_maybe_block_identifier: (a: number, b: number) => void; + readonly __wbg_get_geterainfooptions_node_address: (a: number, b: number) => void; + readonly __wbg_set_geterainfooptions_node_address: (a: number, b: number, c: number) => void; + readonly __wbg_get_geterainfooptions_verbosity: (a: number) => number; + readonly __wbg_set_geterainfooptions_verbosity: (a: number, b: number) => void; + readonly sdk_get_era_info_options: (a: number, b: number) => number; + readonly sdk_get_era_info: (a: number, b: number) => number; + readonly __wbg_getstateroothashresult_free: (a: number) => void; + readonly getstateroothashresult_api_version: (a: number) => number; + readonly getstateroothashresult_state_root_hash: (a: number) => number; + readonly getstateroothashresult_state_root_hash_as_string: (a: number, b: number) => void; + readonly getstateroothashresult_toJson: (a: number) => number; + readonly sdk_get_state_root_hash_options: (a: number, b: number) => number; + readonly sdk_get_state_root_hash: (a: number, b: number) => number; + readonly sdk_chain_get_state_root_hash: (a: number, b: number) => number; + readonly __wbg_speculativeexecresult_free: (a: number) => void; + readonly speculativeexecresult_api_version: (a: number) => number; + readonly speculativeexecresult_block_hash: (a: number) => number; + readonly speculativeexecresult_execution_result: (a: number) => number; + readonly speculativeexecresult_toJson: (a: number) => number; + readonly __wbg_getspeculativeexecoptions_free: (a: number) => void; + readonly __wbg_get_getspeculativeexecoptions_deploy_as_string: (a: number, b: number) => void; + readonly __wbg_set_getspeculativeexecoptions_deploy_as_string: (a: number, b: number, c: number) => void; + readonly __wbg_get_getspeculativeexecoptions_deploy: (a: number) => number; + readonly __wbg_set_getspeculativeexecoptions_deploy: (a: number, b: number) => void; + readonly __wbg_get_getspeculativeexecoptions_maybe_block_id_as_string: (a: number, b: number) => void; + readonly __wbg_set_getspeculativeexecoptions_maybe_block_id_as_string: (a: number, b: number, c: number) => void; + readonly __wbg_get_getspeculativeexecoptions_maybe_block_identifier: (a: number) => number; + readonly __wbg_set_getspeculativeexecoptions_maybe_block_identifier: (a: number, b: number) => void; + readonly __wbg_get_getspeculativeexecoptions_node_address: (a: number, b: number) => void; + readonly __wbg_set_getspeculativeexecoptions_node_address: (a: number, b: number, c: number) => void; + readonly __wbg_get_getspeculativeexecoptions_verbosity: (a: number) => number; + readonly __wbg_set_getspeculativeexecoptions_verbosity: (a: number, b: number) => void; + readonly sdk_speculative_exec_options: (a: number, b: number) => number; + readonly sdk_speculative_exec: (a: number, b: number) => number; + readonly __wbg_sdk_free: (a: number) => void; + readonly sdk_new: (a: number, b: number, c: number) => number; + readonly sdk_getNodeAddress: (a: number, b: number, c: number, d: number) => void; + readonly sdk_setNodeAddress: (a: number, b: number, c: number, d: number) => void; + readonly sdk_getVerbosity: (a: number, b: number) => number; + readonly sdk_setVerbosity: (a: number, b: number, c: number) => void; + readonly hexToString: (a: number, b: number, c: number) => void; + readonly hexToUint8Array: (a: number, b: number, c: number) => void; + readonly uint8ArrayToBytes: (a: number) => number; + readonly motesToCSPR: (a: number, b: number, c: number) => void; + readonly jsonPrettyPrint: (a: number, b: number) => number; + readonly privateToPublicKey: (a: number, b: number) => number; + readonly getTimestamp: () => number; + readonly __wbg_get_getstateroothashoptions_verbosity: (a: number) => number; + readonly __wbg_getstateroothashoptions_free: (a: number) => void; + readonly __wbg_set_getstateroothashoptions_maybe_block_id_as_string: (a: number, b: number, c: number) => void; + readonly __wbg_set_getstateroothashoptions_node_address: (a: number, b: number, c: number) => void; + readonly __wbg_set_getstateroothashoptions_maybe_block_identifier: (a: number, b: number) => void; + readonly __wbg_get_getstateroothashoptions_maybe_block_identifier: (a: number) => number; + readonly __wbg_set_getstateroothashoptions_verbosity: (a: number, b: number) => void; + readonly __wbg_get_getstateroothashoptions_maybe_block_id_as_string: (a: number, b: number) => void; + readonly __wbg_get_getstateroothashoptions_node_address: (a: number, b: number) => void; + readonly sdk_put_deploy: (a: number, b: number, c: number, d: number, e: number) => number; + readonly sdk_account_put_deploy: (a: number, b: number, c: number, d: number, e: number) => number; + readonly sdk_make_deploy: (a: number, b: number, c: number, d: number, e: number) => void; + readonly sdk_speculative_transfer: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number, o: number) => number; + readonly sdk_sign_deploy: (a: number, b: number, c: number, d: number) => number; + readonly __wbg_accounthash_free: (a: number) => void; + readonly accounthash_new: (a: number, b: number, c: number) => void; + readonly accounthash_fromFormattedStr: (a: number, b: number, c: number) => void; + readonly accounthash_fromPublicKey: (a: number) => number; + readonly accounthash_toFormattedString: (a: number, b: number) => void; + readonly accounthash_fromUint8Array: (a: number, b: number) => number; + readonly accounthash_toJson: (a: number) => number; + readonly transferaddr_new: (a: number, b: number, c: number) => void; + readonly fromTransfer: (a: number, b: number) => number; + readonly urefaddr_new: (a: number, b: number, c: number) => void; + readonly blockhash_new: (a: number, b: number, c: number) => void; + readonly blockhash_fromDigest: (a: number, b: number) => void; + readonly blockhash_toJson: (a: number) => number; + readonly blockhash_toString: (a: number, b: number) => void; + readonly __wbg_bytes_free: (a: number) => void; + readonly bytes_new: () => number; + readonly bytes_fromUint8Array: (a: number) => number; + readonly contracthash_fromString: (a: number, b: number, c: number) => void; + readonly contracthash_fromFormattedStr: (a: number, b: number, c: number) => void; + readonly contracthash_toFormattedString: (a: number, b: number) => void; + readonly contracthash_fromUint8Array: (a: number, b: number) => number; + readonly deployhash_new: (a: number, b: number, c: number) => void; + readonly deployhash_fromDigest: (a: number, b: number) => void; + readonly deployhash_toJson: (a: number) => number; + readonly deployhash_toString: (a: number, b: number) => void; + readonly __wbg_eraid_free: (a: number) => void; + readonly eraid_new: (a: number) => number; + readonly eraid_value: (a: number) => number; + readonly __wbg_path_free: (a: number) => void; + readonly path_new: (a: number) => number; + readonly path_fromArray: (a: number) => number; + readonly path_toJson: (a: number) => number; + readonly path_toString: (a: number, b: number) => void; + readonly path_is_empty: (a: number) => number; + readonly __wbg_publickey_free: (a: number) => void; + readonly publickey_new: (a: number, b: number, c: number) => void; + readonly publickey_fromUint8Array: (a: number, b: number) => number; + readonly publickey_toAccountHash: (a: number) => number; + readonly publickey_toPurseUref: (a: number) => number; + readonly publickey_toJson: (a: number) => number; + readonly __wbg_uref_free: (a: number) => void; + readonly uref_new: (a: number, b: number, c: number, d: number) => void; + readonly uref_fromUint8Array: (a: number, b: number, c: number) => number; + readonly uref_toFormattedString: (a: number, b: number) => void; + readonly uref_toJson: (a: number) => number; + readonly __wbg_getblocktransfersresult_free: (a: number) => void; + readonly getblocktransfersresult_api_version: (a: number) => number; + readonly getblocktransfersresult_block_hash: (a: number) => number; + readonly getblocktransfersresult_transfers: (a: number) => number; + readonly getblocktransfersresult_toJson: (a: number) => number; + readonly __wbg_getblocktransfersoptions_free: (a: number) => void; + readonly __wbg_get_getblocktransfersoptions_maybe_block_id_as_string: (a: number, b: number) => void; + readonly __wbg_set_getblocktransfersoptions_maybe_block_id_as_string: (a: number, b: number, c: number) => void; + readonly __wbg_get_getblocktransfersoptions_maybe_block_identifier: (a: number) => number; + readonly __wbg_set_getblocktransfersoptions_maybe_block_identifier: (a: number, b: number) => void; + readonly __wbg_get_getblocktransfersoptions_verbosity: (a: number) => number; + readonly __wbg_set_getblocktransfersoptions_verbosity: (a: number, b: number) => void; + readonly __wbg_get_getblocktransfersoptions_node_address: (a: number, b: number) => void; + readonly __wbg_set_getblocktransfersoptions_node_address: (a: number, b: number, c: number) => void; + readonly sdk_get_block_transfers_options: (a: number, b: number) => number; + readonly sdk_get_block_transfers: (a: number, b: number) => number; + readonly __wbg_querybalanceresult_free: (a: number) => void; + readonly querybalanceresult_api_version: (a: number) => number; + readonly querybalanceresult_balance: (a: number) => number; + readonly querybalanceresult_toJson: (a: number) => number; + readonly __wbg_querybalanceoptions_free: (a: number) => void; + readonly __wbg_get_querybalanceoptions_purse_identifier_as_string: (a: number, b: number) => void; + readonly __wbg_set_querybalanceoptions_purse_identifier_as_string: (a: number, b: number, c: number) => void; + readonly __wbg_get_querybalanceoptions_purse_identifier: (a: number) => number; + readonly __wbg_set_querybalanceoptions_purse_identifier: (a: number, b: number) => void; + readonly __wbg_get_querybalanceoptions_global_state_identifier: (a: number) => number; + readonly __wbg_set_querybalanceoptions_global_state_identifier: (a: number, b: number) => void; + readonly __wbg_get_querybalanceoptions_state_root_hash_as_string: (a: number, b: number) => void; + readonly __wbg_set_querybalanceoptions_state_root_hash_as_string: (a: number, b: number, c: number) => void; + readonly __wbg_get_querybalanceoptions_state_root_hash: (a: number) => number; + readonly __wbg_set_querybalanceoptions_state_root_hash: (a: number, b: number) => void; + readonly __wbg_get_querybalanceoptions_maybe_block_id_as_string: (a: number, b: number) => void; + readonly __wbg_set_querybalanceoptions_maybe_block_id_as_string: (a: number, b: number, c: number) => void; + readonly __wbg_get_querybalanceoptions_node_address: (a: number, b: number) => void; + readonly __wbg_set_querybalanceoptions_node_address: (a: number, b: number, c: number) => void; + readonly __wbg_get_querybalanceoptions_verbosity: (a: number) => number; + readonly __wbg_set_querybalanceoptions_verbosity: (a: number, b: number) => void; + readonly sdk_query_balance_options: (a: number, b: number) => number; + readonly sdk_query_balance: (a: number, b: number) => number; + readonly __wbg_transferaddr_free: (a: number) => void; + readonly __wbg_urefaddr_free: (a: number) => void; + readonly __wbg_blockhash_free: (a: number) => void; + readonly __wbg_contracthash_free: (a: number) => void; + readonly __wbg_deployhash_free: (a: number) => void; + readonly __wbg_sessionstrparams_free: (a: number) => void; + readonly sessionstrparams_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number, o: number, p: number, q: number, r: number, s: number, t: number, u: number) => number; + readonly sessionstrparams_session_hash: (a: number, b: number) => void; + readonly sessionstrparams_set_session_hash: (a: number, b: number, c: number) => void; + readonly sessionstrparams_session_name: (a: number, b: number) => void; + readonly sessionstrparams_set_session_name: (a: number, b: number, c: number) => void; + readonly sessionstrparams_session_package_hash: (a: number, b: number) => void; + readonly sessionstrparams_set_session_package_hash: (a: number, b: number, c: number) => void; + readonly sessionstrparams_session_package_name: (a: number, b: number) => void; + readonly sessionstrparams_set_session_package_name: (a: number, b: number, c: number) => void; + readonly sessionstrparams_session_path: (a: number, b: number) => void; + readonly sessionstrparams_set_session_path: (a: number, b: number, c: number) => void; + readonly sessionstrparams_session_bytes: (a: number) => number; + readonly sessionstrparams_set_session_bytes: (a: number, b: number) => void; + readonly sessionstrparams_session_args_simple: (a: number) => number; + readonly sessionstrparams_set_session_args_simple: (a: number, b: number) => void; + readonly sessionstrparams_session_args_json: (a: number, b: number) => void; + readonly sessionstrparams_set_session_args_json: (a: number, b: number, c: number) => void; + readonly sessionstrparams_session_args_complex: (a: number, b: number) => void; + readonly sessionstrparams_set_session_args_complex: (a: number, b: number, c: number) => void; + readonly sessionstrparams_session_version: (a: number, b: number) => void; + readonly sessionstrparams_set_session_version: (a: number, b: number, c: number) => void; + readonly sessionstrparams_session_entry_point: (a: number, b: number) => void; + readonly sessionstrparams_set_session_entry_point: (a: number, b: number, c: number) => void; + readonly sessionstrparams_is_session_transfer: (a: number) => number; + readonly sessionstrparams_set_is_session_transfer: (a: number, b: number) => void; + readonly __wbg_putdeployresult_free: (a: number) => void; + readonly putdeployresult_api_version: (a: number) => number; + readonly putdeployresult_deploy_hash: (a: number) => number; + readonly putdeployresult_toJson: (a: number) => number; + readonly sdk_deploy: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => number; + readonly sdk_transfer: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number) => number; + readonly __wbg_getaccountresult_free: (a: number) => void; + readonly getaccountresult_api_version: (a: number) => number; + readonly getaccountresult_account: (a: number) => number; + readonly getaccountresult_merkle_proof: (a: number, b: number) => void; + readonly getaccountresult_toJson: (a: number) => number; + readonly __wbg_getaccountoptions_free: (a: number) => void; + readonly __wbg_get_getaccountoptions_account_identifier: (a: number) => number; + readonly __wbg_set_getaccountoptions_account_identifier: (a: number, b: number) => void; + readonly __wbg_get_getaccountoptions_account_identifier_as_string: (a: number, b: number) => void; + readonly __wbg_set_getaccountoptions_account_identifier_as_string: (a: number, b: number, c: number) => void; + readonly __wbg_get_getaccountoptions_maybe_block_id_as_string: (a: number, b: number) => void; + readonly __wbg_set_getaccountoptions_maybe_block_id_as_string: (a: number, b: number, c: number) => void; + readonly __wbg_get_getaccountoptions_maybe_block_identifier: (a: number) => number; + readonly __wbg_set_getaccountoptions_maybe_block_identifier: (a: number, b: number) => void; + readonly __wbg_get_getaccountoptions_node_address: (a: number, b: number) => void; + readonly __wbg_set_getaccountoptions_node_address: (a: number, b: number, c: number) => void; + readonly __wbg_get_getaccountoptions_verbosity: (a: number) => number; + readonly __wbg_set_getaccountoptions_verbosity: (a: number, b: number) => void; + readonly sdk_get_account_options: (a: number, b: number) => number; + readonly sdk_get_account: (a: number, b: number) => number; + readonly sdk_state_get_account_info: (a: number, b: number) => number; + readonly __wbg_geterasummaryresult_free: (a: number) => void; + readonly geterasummaryresult_api_version: (a: number) => number; + readonly geterasummaryresult_era_summary: (a: number) => number; + readonly geterasummaryresult_toJson: (a: number) => number; + readonly __wbg_geterasummaryoptions_free: (a: number) => void; + readonly __wbg_get_geterasummaryoptions_maybe_block_id_as_string: (a: number, b: number) => void; + readonly __wbg_set_geterasummaryoptions_maybe_block_id_as_string: (a: number, b: number, c: number) => void; + readonly __wbg_get_geterasummaryoptions_node_address: (a: number, b: number) => void; + readonly __wbg_set_geterasummaryoptions_node_address: (a: number, b: number, c: number) => void; + readonly __wbg_get_geterasummaryoptions_verbosity: (a: number) => number; + readonly __wbg_set_geterasummaryoptions_verbosity: (a: number, b: number) => void; + readonly sdk_get_era_summary_options: (a: number, b: number) => number; + readonly sdk_get_era_summary: (a: number, b: number) => number; + readonly __wbg_getnodestatusresult_free: (a: number) => void; + readonly getnodestatusresult_api_version: (a: number) => number; + readonly getnodestatusresult_chainspec_name: (a: number, b: number) => void; + readonly getnodestatusresult_starting_state_root_hash: (a: number) => number; + readonly getnodestatusresult_peers: (a: number) => number; + readonly getnodestatusresult_last_added_block_info: (a: number) => number; + readonly getnodestatusresult_our_public_signing_key: (a: number) => number; + readonly getnodestatusresult_round_length: (a: number) => number; + readonly getnodestatusresult_next_upgrade: (a: number) => number; + readonly getnodestatusresult_build_version: (a: number, b: number) => void; + readonly getnodestatusresult_uptime: (a: number) => number; + readonly getnodestatusresult_reactor_state: (a: number) => number; + readonly getnodestatusresult_last_progress: (a: number) => number; + readonly getnodestatusresult_available_block_range: (a: number) => number; + readonly getnodestatusresult_block_sync: (a: number) => number; + readonly getnodestatusresult_toJson: (a: number) => number; + readonly sdk_get_node_status: (a: number, b: number, c: number, d: number) => number; + readonly __wbg_getvalidatorchangesresult_free: (a: number) => void; + readonly getvalidatorchangesresult_api_version: (a: number) => number; + readonly getvalidatorchangesresult_changes: (a: number) => number; + readonly getvalidatorchangesresult_toJson: (a: number) => number; + readonly sdk_get_validator_changes: (a: number, b: number, c: number, d: number) => number; + readonly __wbg_listrpcsresult_free: (a: number) => void; + readonly listrpcsresult_api_version: (a: number) => number; + readonly listrpcsresult_name: (a: number, b: number) => void; + readonly listrpcsresult_schema: (a: number) => number; + readonly listrpcsresult_toJson: (a: number) => number; + readonly sdk_list_rpcs: (a: number, b: number, c: number, d: number) => number; + readonly __wbg_queryglobalstateresult_free: (a: number) => void; + readonly queryglobalstateresult_api_version: (a: number) => number; + readonly queryglobalstateresult_block_header: (a: number) => number; + readonly queryglobalstateresult_stored_value: (a: number) => number; + readonly queryglobalstateresult_merkle_proof: (a: number, b: number) => void; + readonly queryglobalstateresult_toJson: (a: number) => number; + readonly __wbg_queryglobalstateoptions_free: (a: number) => void; + readonly __wbg_get_queryglobalstateoptions_global_state_identifier: (a: number) => number; + readonly __wbg_set_queryglobalstateoptions_global_state_identifier: (a: number, b: number) => void; + readonly __wbg_get_queryglobalstateoptions_state_root_hash_as_string: (a: number, b: number) => void; + readonly __wbg_set_queryglobalstateoptions_state_root_hash_as_string: (a: number, b: number, c: number) => void; + readonly __wbg_get_queryglobalstateoptions_state_root_hash: (a: number) => number; + readonly __wbg_set_queryglobalstateoptions_state_root_hash: (a: number, b: number) => void; + readonly __wbg_get_queryglobalstateoptions_maybe_block_id_as_string: (a: number, b: number) => void; + readonly __wbg_set_queryglobalstateoptions_maybe_block_id_as_string: (a: number, b: number, c: number) => void; + readonly __wbg_get_queryglobalstateoptions_key_as_string: (a: number, b: number) => void; + readonly __wbg_set_queryglobalstateoptions_key_as_string: (a: number, b: number, c: number) => void; + readonly __wbg_get_queryglobalstateoptions_key: (a: number) => number; + readonly __wbg_set_queryglobalstateoptions_key: (a: number, b: number) => void; + readonly __wbg_get_queryglobalstateoptions_path_as_string: (a: number, b: number) => void; + readonly __wbg_set_queryglobalstateoptions_path_as_string: (a: number, b: number, c: number) => void; + readonly __wbg_get_queryglobalstateoptions_path: (a: number) => number; + readonly __wbg_set_queryglobalstateoptions_path: (a: number, b: number) => void; + readonly __wbg_get_queryglobalstateoptions_node_address: (a: number, b: number) => void; + readonly __wbg_set_queryglobalstateoptions_node_address: (a: number, b: number, c: number) => void; + readonly __wbg_get_queryglobalstateoptions_verbosity: (a: number) => number; + readonly __wbg_set_queryglobalstateoptions_verbosity: (a: number, b: number) => void; + readonly sdk_query_global_state_options: (a: number, b: number) => number; + readonly sdk_query_global_state: (a: number, b: number) => number; + readonly __wbg_set_geterasummaryoptions_maybe_block_identifier: (a: number, b: number) => void; + readonly __wbg_get_geterasummaryoptions_maybe_block_identifier: (a: number) => number; + readonly __wbg_accountidentifier_free: (a: number) => void; + readonly accountidentifier_fromFormattedStr: (a: number, b: number, c: number) => void; + readonly accountidentifier_fromPublicKey: (a: number) => number; + readonly accountidentifier_fromAccountHash: (a: number) => number; + readonly accountidentifier_toJson: (a: number) => number; + readonly __wbg_contractpackagehash_free: (a: number) => void; + readonly contractpackagehash_fromString: (a: number, b: number, c: number) => void; + readonly contractpackagehash_fromFormattedStr: (a: number, b: number, c: number) => void; + readonly contractpackagehash_toFormattedString: (a: number, b: number) => void; + readonly contractpackagehash_fromUint8Array: (a: number, b: number) => number; + readonly __wbg_dictionaryitemidentifier_free: (a: number) => void; + readonly dictionaryitemidentifier_newFromAccountInfo: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void; + readonly dictionaryitemidentifier_newFromContractInfo: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void; + readonly dictionaryitemidentifier_newFromSeedUref: (a: number, b: number, c: number, d: number, e: number) => void; + readonly dictionaryitemidentifier_newFromDictionaryKey: (a: number, b: number, c: number) => void; + readonly dictionaryitemidentifier_toJson: (a: number) => number; + readonly digest__new: (a: number, b: number, c: number) => void; + readonly digest_fromDigest: (a: number, b: number, c: number) => void; + readonly digest_toJson: (a: number) => number; + readonly digest_toString: (a: number, b: number) => void; + readonly __wbg_key_free: (a: number) => void; + readonly key_new: (a: number, b: number) => void; + readonly key_toJson: (a: number) => number; + readonly key_fromURef: (a: number) => number; + readonly key_fromDeployInfo: (a: number) => number; + readonly key_fromAccount: (a: number) => number; + readonly key_fromHash: (a: number) => number; + readonly key_fromTransfer: (a: number, b: number) => number; + readonly key_fromEraInfo: (a: number) => number; + readonly key_fromBalance: (a: number) => number; + readonly key_fromBid: (a: number) => number; + readonly key_fromWithdraw: (a: number) => number; + readonly key_fromDictionaryAddr: (a: number) => number; + readonly key_asDictionaryAddr: (a: number) => number; + readonly key_fromSystemContractRegistry: () => number; + readonly key_fromEraSummary: () => number; + readonly key_fromUnbond: (a: number) => number; + readonly key_fromChainspecRegistry: () => number; + readonly key_fromChecksumRegistry: () => number; + readonly key_toFormattedString: (a: number, b: number) => void; + readonly key_fromFormattedString: (a: number, b: number) => void; + readonly key_fromDictionaryKey: (a: number, b: number, c: number) => number; + readonly key_isDictionaryKey: (a: number) => number; + readonly key_intoAccount: (a: number) => number; + readonly key_intoHash: (a: number) => number; + readonly key_asBalance: (a: number) => number; + readonly key_intoURef: (a: number) => number; + readonly key_urefToHash: (a: number) => number; + readonly key_withdrawToUnbond: (a: number) => number; + readonly __wbg_getauctioninforesult_free: (a: number) => void; + readonly getauctioninforesult_api_version: (a: number) => number; + readonly getauctioninforesult_auction_state: (a: number) => number; + readonly getauctioninforesult_toJson: (a: number) => number; + readonly __wbg_getauctioninfooptions_free: (a: number) => void; + readonly __wbg_get_getauctioninfooptions_maybe_block_id_as_string: (a: number, b: number) => void; + readonly __wbg_set_getauctioninfooptions_maybe_block_id_as_string: (a: number, b: number, c: number) => void; + readonly __wbg_get_getauctioninfooptions_maybe_block_identifier: (a: number) => number; + readonly __wbg_set_getauctioninfooptions_maybe_block_identifier: (a: number, b: number) => void; + readonly __wbg_get_getauctioninfooptions_node_address: (a: number, b: number) => void; + readonly __wbg_set_getauctioninfooptions_node_address: (a: number, b: number, c: number) => void; + readonly __wbg_get_getauctioninfooptions_verbosity: (a: number) => number; + readonly __wbg_set_getauctioninfooptions_verbosity: (a: number, b: number) => void; + readonly sdk_get_auction_info_options: (a: number, b: number) => number; + readonly sdk_get_auction_info: (a: number, b: number) => number; + readonly __wbg_getblockresult_free: (a: number) => void; + readonly getblockresult_api_version: (a: number) => number; + readonly getblockresult_block: (a: number) => number; + readonly getblockresult_toJson: (a: number) => number; + readonly sdk_get_block_options: (a: number, b: number) => number; + readonly sdk_get_block: (a: number, b: number) => number; + readonly sdk_chain_get_block: (a: number, b: number) => number; + readonly __wbg_getpeersresult_free: (a: number) => void; + readonly getpeersresult_api_version: (a: number) => number; + readonly getpeersresult_peers: (a: number) => number; + readonly getpeersresult_toJson: (a: number) => number; + readonly sdk_get_peers: (a: number, b: number, c: number, d: number) => number; + readonly sdk_make_transfer: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => void; + readonly __wbg_get_getblockoptions_verbosity: (a: number) => number; + readonly __wbg_getblockoptions_free: (a: number) => void; + readonly __wbg_set_getblockoptions_maybe_block_id_as_string: (a: number, b: number, c: number) => void; + readonly __wbg_set_getblockoptions_node_address: (a: number, b: number, c: number) => void; + readonly __wbg_set_getblockoptions_maybe_block_identifier: (a: number, b: number) => void; + readonly __wbg_get_getblockoptions_maybe_block_identifier: (a: number) => number; + readonly accountidentifier_new: (a: number, b: number, c: number) => void; + readonly digest_fromString: (a: number, b: number, c: number) => void; + readonly __wbg_set_getblockoptions_verbosity: (a: number, b: number) => void; + readonly __wbg_digest_free: (a: number) => void; + readonly __wbg_get_getblockoptions_maybe_block_id_as_string: (a: number, b: number) => void; + readonly __wbg_get_getblockoptions_node_address: (a: number, b: number) => void; + readonly __wbg_dictionaryaddr_free: (a: number) => void; + readonly dictionaryaddr_new: (a: number, b: number, c: number) => void; + readonly hashaddr_new: (a: number, b: number, c: number) => void; + readonly __wbg_blockidentifier_free: (a: number) => void; + readonly blockidentifier_new: (a: number) => number; + readonly blockidentifier_from_hash: (a: number) => number; + readonly blockidentifier_fromHeight: (a: number) => number; + readonly blockidentifier_toJson: (a: number) => number; + readonly __wbg_argssimple_free: (a: number) => void; + readonly __wbg_dictionaryitemstrparams_free: (a: number) => void; + readonly dictionaryitemstrparams_new: () => number; + readonly dictionaryitemstrparams_setAccountNamedKey: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void; + readonly dictionaryitemstrparams_setContractNamedKey: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void; + readonly dictionaryitemstrparams_setUref: (a: number, b: number, c: number, d: number, e: number) => void; + readonly dictionaryitemstrparams_setDictionary: (a: number, b: number, c: number) => void; + readonly dictionaryitemstrparams_toJson: (a: number) => number; + readonly globalstateidentifier_fromStateRootHash: (a: number) => number; + readonly globalstateidentifier_toJson: (a: number) => number; + readonly __wbg_peerentry_free: (a: number) => void; + readonly peerentry_node_id: (a: number, b: number) => void; + readonly peerentry_address: (a: number, b: number) => void; + readonly sdk_speculative_deploy: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number; + readonly __wbg_getbalanceresult_free: (a: number) => void; + readonly getbalanceresult_api_version: (a: number) => number; + readonly getbalanceresult_balance_value: (a: number) => number; + readonly getbalanceresult_merkle_proof: (a: number, b: number) => void; + readonly getbalanceresult_toJson: (a: number) => number; + readonly __wbg_getbalanceoptions_free: (a: number) => void; + readonly __wbg_get_getbalanceoptions_state_root_hash_as_string: (a: number, b: number) => void; + readonly __wbg_set_getbalanceoptions_state_root_hash_as_string: (a: number, b: number, c: number) => void; + readonly __wbg_get_getbalanceoptions_state_root_hash: (a: number) => number; + readonly __wbg_set_getbalanceoptions_state_root_hash: (a: number, b: number) => void; + readonly __wbg_get_getbalanceoptions_purse_uref_as_string: (a: number, b: number) => void; + readonly __wbg_set_getbalanceoptions_purse_uref_as_string: (a: number, b: number, c: number) => void; + readonly __wbg_get_getbalanceoptions_purse_uref: (a: number) => number; + readonly __wbg_set_getbalanceoptions_purse_uref: (a: number, b: number) => void; + readonly __wbg_get_getbalanceoptions_node_address: (a: number, b: number) => void; + readonly __wbg_set_getbalanceoptions_node_address: (a: number, b: number, c: number) => void; + readonly __wbg_get_getbalanceoptions_verbosity: (a: number) => number; + readonly __wbg_set_getbalanceoptions_verbosity: (a: number, b: number) => void; + readonly sdk_get_balance_options: (a: number, b: number) => number; + readonly sdk_get_balance: (a: number, b: number) => number; + readonly sdk_state_get_balance: (a: number, b: number) => number; + readonly __wbg_getchainspecresult_free: (a: number) => void; + readonly getchainspecresult_api_version: (a: number) => number; + readonly getchainspecresult_chainspec_bytes: (a: number) => number; + readonly getchainspecresult_toJson: (a: number) => number; + readonly sdk_get_chainspec: (a: number, b: number, c: number, d: number) => number; + readonly __wbg_getdictionaryitemresult_free: (a: number) => void; + readonly getdictionaryitemresult_api_version: (a: number) => number; + readonly getdictionaryitemresult_dictionary_key: (a: number, b: number) => void; + readonly getdictionaryitemresult_stored_value: (a: number) => number; + readonly getdictionaryitemresult_merkle_proof: (a: number, b: number) => void; + readonly getdictionaryitemresult_toJson: (a: number) => number; + readonly __wbg_getdictionaryitemoptions_free: (a: number) => void; + readonly __wbg_get_getdictionaryitemoptions_state_root_hash_as_string: (a: number, b: number) => void; + readonly __wbg_set_getdictionaryitemoptions_state_root_hash_as_string: (a: number, b: number, c: number) => void; + readonly __wbg_get_getdictionaryitemoptions_state_root_hash: (a: number) => number; + readonly __wbg_set_getdictionaryitemoptions_state_root_hash: (a: number, b: number) => void; + readonly __wbg_get_getdictionaryitemoptions_dictionary_item_params: (a: number) => number; + readonly __wbg_set_getdictionaryitemoptions_dictionary_item_params: (a: number, b: number) => void; + readonly __wbg_get_getdictionaryitemoptions_dictionary_item_identifier: (a: number) => number; + readonly __wbg_set_getdictionaryitemoptions_dictionary_item_identifier: (a: number, b: number) => void; + readonly __wbg_get_getdictionaryitemoptions_node_address: (a: number, b: number) => void; + readonly __wbg_set_getdictionaryitemoptions_node_address: (a: number, b: number, c: number) => void; + readonly __wbg_get_getdictionaryitemoptions_verbosity: (a: number) => number; + readonly __wbg_set_getdictionaryitemoptions_verbosity: (a: number, b: number) => void; + readonly sdk_get_dictionary_item_options: (a: number, b: number) => number; + readonly sdk_get_dictionary_item: (a: number, b: number) => number; + readonly sdk_state_get_dictionary_item: (a: number, b: number) => number; + readonly sdk_query_contract_dict_options: (a: number, b: number) => number; + readonly sdk_query_contract_dict: (a: number, b: number) => number; + readonly __wbg_querycontractkeyoptions_free: (a: number) => void; + readonly __wbg_get_querycontractkeyoptions_global_state_identifier: (a: number) => number; + readonly __wbg_set_querycontractkeyoptions_global_state_identifier: (a: number, b: number) => void; + readonly __wbg_get_querycontractkeyoptions_state_root_hash_as_string: (a: number, b: number) => void; + readonly __wbg_set_querycontractkeyoptions_state_root_hash_as_string: (a: number, b: number, c: number) => void; + readonly __wbg_get_querycontractkeyoptions_state_root_hash: (a: number) => number; + readonly __wbg_set_querycontractkeyoptions_state_root_hash: (a: number, b: number) => void; + readonly __wbg_get_querycontractkeyoptions_maybe_block_id_as_string: (a: number, b: number) => void; + readonly __wbg_set_querycontractkeyoptions_maybe_block_id_as_string: (a: number, b: number, c: number) => void; + readonly __wbg_get_querycontractkeyoptions_contract_key_as_string: (a: number, b: number) => void; + readonly __wbg_set_querycontractkeyoptions_contract_key_as_string: (a: number, b: number, c: number) => void; + readonly __wbg_get_querycontractkeyoptions_contract_key: (a: number) => number; + readonly __wbg_set_querycontractkeyoptions_contract_key: (a: number, b: number) => void; + readonly __wbg_get_querycontractkeyoptions_path_as_string: (a: number, b: number) => void; + readonly __wbg_set_querycontractkeyoptions_path_as_string: (a: number, b: number, c: number) => void; + readonly __wbg_get_querycontractkeyoptions_path: (a: number) => number; + readonly __wbg_set_querycontractkeyoptions_path: (a: number, b: number) => void; + readonly __wbg_get_querycontractkeyoptions_node_address: (a: number, b: number) => void; + readonly __wbg_set_querycontractkeyoptions_node_address: (a: number, b: number, c: number) => void; + readonly __wbg_get_querycontractkeyoptions_verbosity: (a: number) => number; + readonly __wbg_set_querycontractkeyoptions_verbosity: (a: number, b: number) => void; + readonly sdk_query_contract_key_options: (a: number, b: number) => number; + readonly sdk_query_contract_key: (a: number, b: number) => number; + readonly globalstateidentifier_fromBlockHeight: (a: number) => number; + readonly __wbg_get_querycontractdictoptions_verbosity: (a: number) => number; + readonly __wbg_set_querycontractdictoptions_dictionary_item_params: (a: number, b: number) => void; + readonly __wbg_set_querycontractdictoptions_state_root_hash_as_string: (a: number, b: number, c: number) => void; + readonly __wbg_set_querycontractdictoptions_node_address: (a: number, b: number, c: number) => void; + readonly __wbg_set_querycontractdictoptions_state_root_hash: (a: number, b: number) => void; + readonly globalstateidentifier_fromBlockHash: (a: number) => number; + readonly __wbg_querycontractdictoptions_free: (a: number) => void; + readonly __wbg_set_querycontractdictoptions_dictionary_item_identifier: (a: number, b: number) => void; + readonly __wbg_get_querycontractdictoptions_state_root_hash: (a: number) => number; + readonly __wbg_set_querycontractdictoptions_verbosity: (a: number, b: number) => void; + readonly __wbg_hashaddr_free: (a: number) => void; + readonly __wbg_globalstateidentifier_free: (a: number) => void; + readonly __wbg_get_querycontractdictoptions_state_root_hash_as_string: (a: number, b: number) => void; + readonly __wbg_get_querycontractdictoptions_node_address: (a: number, b: number) => void; + readonly __wbg_get_querycontractdictoptions_dictionary_item_params: (a: number) => number; + readonly __wbg_get_querycontractdictoptions_dictionary_item_identifier: (a: number) => number; + readonly globalstateidentifier_new: (a: number) => number; + readonly __wbg_paymentstrparams_free: (a: number) => void; + readonly paymentstrparams_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number, o: number, p: number, q: number, r: number, s: number, t: number, u: number) => number; + readonly paymentstrparams_payment_amount: (a: number, b: number) => void; + readonly paymentstrparams_set_payment_amount: (a: number, b: number, c: number) => void; + readonly paymentstrparams_payment_hash: (a: number, b: number) => void; + readonly paymentstrparams_set_payment_hash: (a: number, b: number, c: number) => void; + readonly paymentstrparams_payment_name: (a: number, b: number) => void; + readonly paymentstrparams_set_payment_name: (a: number, b: number, c: number) => void; + readonly paymentstrparams_payment_package_hash: (a: number, b: number) => void; + readonly paymentstrparams_set_payment_package_hash: (a: number, b: number, c: number) => void; + readonly paymentstrparams_payment_package_name: (a: number, b: number) => void; + readonly paymentstrparams_set_payment_package_name: (a: number, b: number, c: number) => void; + readonly paymentstrparams_payment_path: (a: number, b: number) => void; + readonly paymentstrparams_set_payment_path: (a: number, b: number, c: number) => void; + readonly paymentstrparams_payment_args_simple: (a: number) => number; + readonly paymentstrparams_set_payment_args_simple: (a: number, b: number) => void; + readonly paymentstrparams_payment_args_json: (a: number, b: number) => void; + readonly paymentstrparams_set_payment_args_json: (a: number, b: number, c: number) => void; + readonly paymentstrparams_payment_args_complex: (a: number, b: number) => void; + readonly paymentstrparams_set_payment_args_complex: (a: number, b: number, c: number) => void; + readonly paymentstrparams_payment_version: (a: number, b: number) => void; + readonly paymentstrparams_set_payment_version: (a: number, b: number, c: number) => void; + readonly paymentstrparams_payment_entry_point: (a: number, b: number) => void; + readonly paymentstrparams_set_payment_entry_point: (a: number, b: number, c: number) => void; + readonly sdk_install: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => number; + readonly sdk_call_entrypoint: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => number; + readonly __wbindgen_malloc: (a: number, b: number) => number; + readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number; + readonly __wbindgen_export_2: WebAssembly.Table; + readonly _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__he9a0163254a4b264: (a: number, b: number, c: number) => void; + readonly __wbindgen_add_to_stack_pointer: (a: number) => number; + readonly __wbindgen_free: (a: number, b: number, c: number) => void; + readonly __wbindgen_exn_store: (a: number) => void; + readonly wasm_bindgen__convert__closures__invoke2_mut__h02a7a5846fd066d3: (a: number, b: number, c: number, d: number) => void; +} + +export type SyncInitInput = BufferSource | WebAssembly.Module; +/** +* Instantiates the given `module`, which can either be bytes or +* a precompiled `WebAssembly.Module`. +* +* @param {SyncInitInput} module +* +* @returns {InitOutput} +*/ +export function initSync(module: SyncInitInput): InitOutput; + +/** +* If `module_or_path` is {RequestInfo} or {URL}, makes a request and +* for everything else, calls `WebAssembly.instantiate` directly. +* +* @param {InitInput | Promise} module_or_path +* +* @returns {Promise} +*/ +export default function __wbg_init (module_or_path?: InitInput | Promise): Promise; diff --git a/pkg/casper_rust_wasm_sdk.js b/pkg/casper_rust_wasm_sdk.js new file mode 100644 index 000000000..541f1105a --- /dev/null +++ b/pkg/casper_rust_wasm_sdk.js @@ -0,0 +1,8927 @@ +let wasm; + +const heap = new Array(128).fill(undefined); + +heap.push(undefined, null, true, false); + +function getObject(idx) { return heap[idx]; } + +let heap_next = heap.length; + +function dropObject(idx) { + if (idx < 132) return; + heap[idx] = heap_next; + heap_next = idx; +} + +function takeObject(idx) { + const ret = getObject(idx); + dropObject(idx); + return ret; +} + +const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } ); + +if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); }; + +let cachedUint8Memory0 = null; + +function getUint8Memory0() { + if (cachedUint8Memory0 === null || cachedUint8Memory0.byteLength === 0) { + cachedUint8Memory0 = new Uint8Array(wasm.memory.buffer); + } + return cachedUint8Memory0; +} + +function getStringFromWasm0(ptr, len) { + ptr = ptr >>> 0; + return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len)); +} + +function addHeapObject(obj) { + if (heap_next === heap.length) heap.push(heap.length + 1); + const idx = heap_next; + heap_next = heap[idx]; + + heap[idx] = obj; + return idx; +} + +let WASM_VECTOR_LEN = 0; + +const cachedTextEncoder = (typeof TextEncoder !== 'undefined' ? new TextEncoder('utf-8') : { encode: () => { throw Error('TextEncoder not available') } } ); + +const encodeString = (typeof cachedTextEncoder.encodeInto === 'function' + ? function (arg, view) { + return cachedTextEncoder.encodeInto(arg, view); +} + : function (arg, view) { + const buf = cachedTextEncoder.encode(arg); + view.set(buf); + return { + read: arg.length, + written: buf.length + }; +}); + +function passStringToWasm0(arg, malloc, realloc) { + + if (realloc === undefined) { + const buf = cachedTextEncoder.encode(arg); + const ptr = malloc(buf.length, 1) >>> 0; + getUint8Memory0().subarray(ptr, ptr + buf.length).set(buf); + WASM_VECTOR_LEN = buf.length; + return ptr; + } + + let len = arg.length; + let ptr = malloc(len, 1) >>> 0; + + const mem = getUint8Memory0(); + + let offset = 0; + + for (; offset < len; offset++) { + const code = arg.charCodeAt(offset); + if (code > 0x7F) break; + mem[ptr + offset] = code; + } + + if (offset !== len) { + if (offset !== 0) { + arg = arg.slice(offset); + } + ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0; + const view = getUint8Memory0().subarray(ptr + offset, ptr + len); + const ret = encodeString(arg, view); + + offset += ret.written; + } + + WASM_VECTOR_LEN = offset; + return ptr; +} + +function isLikeNone(x) { + return x === undefined || x === null; +} + +let cachedInt32Memory0 = null; + +function getInt32Memory0() { + if (cachedInt32Memory0 === null || cachedInt32Memory0.byteLength === 0) { + cachedInt32Memory0 = new Int32Array(wasm.memory.buffer); + } + return cachedInt32Memory0; +} + +function debugString(val) { + // primitive types + const type = typeof val; + if (type == 'number' || type == 'boolean' || val == null) { + return `${val}`; + } + if (type == 'string') { + return `"${val}"`; + } + if (type == 'symbol') { + const description = val.description; + if (description == null) { + return 'Symbol'; + } else { + return `Symbol(${description})`; + } + } + if (type == 'function') { + const name = val.name; + if (typeof name == 'string' && name.length > 0) { + return `Function(${name})`; + } else { + return 'Function'; + } + } + // objects + if (Array.isArray(val)) { + const length = val.length; + let debug = '['; + if (length > 0) { + debug += debugString(val[0]); + } + for(let i = 1; i < length; i++) { + debug += ', ' + debugString(val[i]); + } + debug += ']'; + return debug; + } + // Test for built-in + const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val)); + let className; + if (builtInMatches.length > 1) { + className = builtInMatches[1]; + } else { + // Failed to match the standard '[object ClassName]' + return toString.call(val); + } + if (className == 'Object') { + // we're a user defined class or Object + // JSON.stringify avoids problems with cycles, and is generally much + // easier than looping through ownProperties of `val`. + try { + return 'Object(' + JSON.stringify(val) + ')'; + } catch (_) { + return 'Object'; + } + } + // errors + if (val instanceof Error) { + return `${val.name}: ${val.message}\n${val.stack}`; + } + // TODO we could test for more things here, like `Set`s and `Map`s. + return className; +} + +function makeMutClosure(arg0, arg1, dtor, f) { + const state = { a: arg0, b: arg1, cnt: 1, dtor }; + const real = (...args) => { + // First up with a closure we increment the internal reference + // count. This ensures that the Rust closure environment won't + // be deallocated while we're invoking it. + state.cnt++; + const a = state.a; + state.a = 0; + try { + return f(a, state.b, ...args); + } finally { + if (--state.cnt === 0) { + wasm.__wbindgen_export_2.get(state.dtor)(a, state.b); + + } else { + state.a = a; + } + } + }; + real.original = state; + + return real; +} +function __wbg_adapter_32(arg0, arg1, arg2) { + wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__he9a0163254a4b264(arg0, arg1, addHeapObject(arg2)); +} + +function _assertClass(instance, klass) { + if (!(instance instanceof klass)) { + throw new Error(`expected instance of ${klass.name}`); + } + return instance.ptr; +} +/** +* Converts a hexadecimal string to a regular string. +* +* # Arguments +* +* * `hex_string` - The hexadecimal string to convert. +* +* # Returns +* +* A regular string containing the converted value. +* @param {string} hex_string +* @returns {string} +*/ +export function hexToString(hex_string) { + let deferred2_0; + let deferred2_1; + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + const ptr0 = passStringToWasm0(hex_string, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + wasm.hexToString(retptr, ptr0, len0); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + deferred2_0 = r0; + deferred2_1 = r1; + return getStringFromWasm0(r0, r1); + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + wasm.__wbindgen_free(deferred2_0, deferred2_1, 1); + } +} + +function getArrayU8FromWasm0(ptr, len) { + ptr = ptr >>> 0; + return getUint8Memory0().subarray(ptr / 1, ptr / 1 + len); +} +/** +* Converts a hexadecimal string to a Uint8Array. +* +* # Arguments +* +* * `hex_string` - The hexadecimal string to convert. +* +* # Returns +* +* A Uint8Array containing the converted value. +* @param {string} hex_string +* @returns {Uint8Array} +*/ +export function hexToUint8Array(hex_string) { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + const ptr0 = passStringToWasm0(hex_string, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + wasm.hexToUint8Array(retptr, ptr0, len0); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + var v2 = getArrayU8FromWasm0(r0, r1).slice(); + wasm.__wbindgen_free(r0, r1 * 1); + return v2; + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } +} + +/** +* Converts a Uint8Array to a `Bytes` object. +* +* # Arguments +* +* * `uint8_array` - The Uint8Array to convert. +* +* # Returns +* +* A `Bytes` object containing the converted value. +* @param {Uint8Array} uint8_array +* @returns {Bytes} +*/ +export function uint8ArrayToBytes(uint8_array) { + const ret = wasm.uint8ArrayToBytes(addHeapObject(uint8_array)); + return Bytes.__wrap(ret); +} + +/** +* Converts motes to CSPR (Casper tokens). +* +* # Arguments +* +* * `motes` - The motes value to convert. +* +* # Returns +* +* A string representing the CSPR amount. +* @param {string} motes +* @returns {string} +*/ +export function motesToCSPR(motes) { + let deferred2_0; + let deferred2_1; + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + const ptr0 = passStringToWasm0(motes, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + wasm.motesToCSPR(retptr, ptr0, len0); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + deferred2_0 = r0; + deferred2_1 = r1; + return getStringFromWasm0(r0, r1); + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + wasm.__wbindgen_free(deferred2_0, deferred2_1, 1); + } +} + +/** +* Pretty prints a JSON value. +* +* # Arguments +* +* * `value` - The JSON value to pretty print. +* * `verbosity` - An optional verbosity level for pretty printing. +* +* # Returns +* +* A pretty printed JSON value as a JsValue. +* @param {any} value +* @param {number | undefined} verbosity +* @returns {any} +*/ +export function jsonPrettyPrint(value, verbosity) { + const ret = wasm.jsonPrettyPrint(addHeapObject(value), isLikeNone(verbosity) ? 3 : verbosity); + return takeObject(ret); +} + +/** +* Converts a secret key to a corresponding public key. +* +* # Arguments +* +* * `secret_key` - The secret key in PEM format. +* +* # Returns +* +* A JsValue containing the corresponding public key. +* If an error occurs during the conversion, JsValue::null() is returned. +* @param {string} secret_key +* @returns {any} +*/ +export function privateToPublicKey(secret_key) { + const ptr0 = passStringToWasm0(secret_key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + const ret = wasm.privateToPublicKey(ptr0, len0); + return takeObject(ret); +} + +/** +* Gets the current timestamp. +* +* # Returns +* +* A JsValue containing the current timestamp. +* @returns {any} +*/ +export function getTimestamp() { + const ret = wasm.getTimestamp(); + return takeObject(ret); +} + +function passArray8ToWasm0(arg, malloc) { + const ptr = malloc(arg.length * 1, 1) >>> 0; + getUint8Memory0().set(arg, ptr / 1); + WASM_VECTOR_LEN = arg.length; + return ptr; +} +/** +* @param {Uint8Array} key +* @returns {TransferAddr} +*/ +export function fromTransfer(key) { + const ptr0 = passArray8ToWasm0(key, wasm.__wbindgen_malloc); + const len0 = WASM_VECTOR_LEN; + const ret = wasm.fromTransfer(ptr0, len0); + return TransferAddr.__wrap(ret); +} + +function handleError(f, args) { + try { + return f.apply(this, args); + } catch (e) { + wasm.__wbindgen_exn_store(addHeapObject(e)); + } +} +function __wbg_adapter_671(arg0, arg1, arg2, arg3) { + wasm.wasm_bindgen__convert__closures__invoke2_mut__h02a7a5846fd066d3(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3)); +} + +/** +*/ +export const Verbosity = Object.freeze({ Low:0,"0":"Low",Medium:1,"1":"Medium",High:2,"2":"High", }); +/** +*/ +export class AccessRights { + + static __wrap(ptr) { + ptr = ptr >>> 0; + const obj = Object.create(AccessRights.prototype); + obj.__wbg_ptr = ptr; + + return obj; + } + + __destroy_into_raw() { + const ptr = this.__wbg_ptr; + this.__wbg_ptr = 0; + + return ptr; + } + + free() { + const ptr = this.__destroy_into_raw(); + wasm.__wbg_accessrights_free(ptr); + } + /** + * @returns {number} + */ + static NONE() { + const ret = wasm.accessrights_NONE(); + return ret; + } + /** + * @returns {number} + */ + static READ() { + const ret = wasm.accessrights_READ(); + return ret; + } + /** + * @returns {number} + */ + static WRITE() { + const ret = wasm.accessrights_WRITE(); + return ret; + } + /** + * @returns {number} + */ + static ADD() { + const ret = wasm.accessrights_ADD(); + return ret; + } + /** + * @returns {number} + */ + static READ_ADD() { + const ret = wasm.accessrights_READ_ADD(); + return ret; + } + /** + * @returns {number} + */ + static READ_WRITE() { + const ret = wasm.accessrights_READ_WRITE(); + return ret; + } + /** + * @returns {number} + */ + static ADD_WRITE() { + const ret = wasm.accessrights_ADD_WRITE(); + return ret; + } + /** + * @returns {number} + */ + static READ_ADD_WRITE() { + const ret = wasm.accessrights_READ_ADD_WRITE(); + return ret; + } + /** + * @param {number} access_rights + */ + constructor(access_rights) { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.accessrights_new(retptr, access_rights); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + var r2 = getInt32Memory0()[retptr / 4 + 2]; + if (r2) { + throw takeObject(r1); + } + return AccessRights.__wrap(r0); + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {boolean} read + * @param {boolean} write + * @param {boolean} add + * @returns {AccessRights} + */ + static from_bits(read, write, add) { + const ret = wasm.accessrights_from_bits(read, write, add); + return AccessRights.__wrap(ret); + } + /** + * @returns {boolean} + */ + is_readable() { + const ret = wasm.accessrights_is_readable(this.__wbg_ptr); + return ret !== 0; + } + /** + * @returns {boolean} + */ + is_writeable() { + const ret = wasm.accessrights_is_writeable(this.__wbg_ptr); + return ret !== 0; + } + /** + * @returns {boolean} + */ + is_addable() { + const ret = wasm.accessrights_is_addable(this.__wbg_ptr); + return ret !== 0; + } + /** + * @returns {boolean} + */ + is_none() { + const ret = wasm.accessrights_is_none(this.__wbg_ptr); + return ret !== 0; + } +} +/** +*/ +export class AccountHash { + + static __wrap(ptr) { + ptr = ptr >>> 0; + const obj = Object.create(AccountHash.prototype); + obj.__wbg_ptr = ptr; + + return obj; + } + + __destroy_into_raw() { + const ptr = this.__wbg_ptr; + this.__wbg_ptr = 0; + + return ptr; + } + + free() { + const ptr = this.__destroy_into_raw(); + wasm.__wbg_accounthash_free(ptr); + } + /** + * @param {string} account_hash_hex_str + */ + constructor(account_hash_hex_str) { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + const ptr0 = passStringToWasm0(account_hash_hex_str, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + wasm.accounthash_new(retptr, ptr0, len0); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + var r2 = getInt32Memory0()[retptr / 4 + 2]; + if (r2) { + throw takeObject(r1); + } + return AccountHash.__wrap(r0); + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string} formatted_str + * @returns {AccountHash} + */ + static fromFormattedStr(formatted_str) { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + const ptr0 = passStringToWasm0(formatted_str, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + wasm.accounthash_fromFormattedStr(retptr, ptr0, len0); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + var r2 = getInt32Memory0()[retptr / 4 + 2]; + if (r2) { + throw takeObject(r1); + } + return AccountHash.__wrap(r0); + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {PublicKey} public_key + * @returns {AccountHash} + */ + static fromPublicKey(public_key) { + _assertClass(public_key, PublicKey); + var ptr0 = public_key.__destroy_into_raw(); + const ret = wasm.accounthash_fromPublicKey(ptr0); + return AccountHash.__wrap(ret); + } + /** + * @returns {string} + */ + toFormattedString() { + let deferred1_0; + let deferred1_1; + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.accounthash_toFormattedString(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + deferred1_0 = r0; + deferred1_1 = r1; + return getStringFromWasm0(r0, r1); + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + wasm.__wbindgen_free(deferred1_0, deferred1_1, 1); + } + } + /** + * @param {Uint8Array} bytes + * @returns {AccountHash} + */ + static fromUint8Array(bytes) { + const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc); + const len0 = WASM_VECTOR_LEN; + const ret = wasm.accounthash_fromUint8Array(ptr0, len0); + return AccountHash.__wrap(ret); + } + /** + * @returns {any} + */ + toJson() { + const ret = wasm.accounthash_toJson(this.__wbg_ptr); + return takeObject(ret); + } +} +/** +*/ +export class AccountIdentifier { + + static __wrap(ptr) { + ptr = ptr >>> 0; + const obj = Object.create(AccountIdentifier.prototype); + obj.__wbg_ptr = ptr; + + return obj; + } + + __destroy_into_raw() { + const ptr = this.__wbg_ptr; + this.__wbg_ptr = 0; + + return ptr; + } + + free() { + const ptr = this.__destroy_into_raw(); + wasm.__wbg_accountidentifier_free(ptr); + } + /** + * @param {string} formatted_str + */ + constructor(formatted_str) { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + const ptr0 = passStringToWasm0(formatted_str, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + wasm.accountidentifier_fromFormattedStr(retptr, ptr0, len0); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + var r2 = getInt32Memory0()[retptr / 4 + 2]; + if (r2) { + throw takeObject(r1); + } + return AccountIdentifier.__wrap(r0); + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string} formatted_str + * @returns {AccountIdentifier} + */ + static fromFormattedStr(formatted_str) { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + const ptr0 = passStringToWasm0(formatted_str, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + wasm.accountidentifier_fromFormattedStr(retptr, ptr0, len0); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + var r2 = getInt32Memory0()[retptr / 4 + 2]; + if (r2) { + throw takeObject(r1); + } + return AccountIdentifier.__wrap(r0); + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {PublicKey} key + * @returns {AccountIdentifier} + */ + static fromPublicKey(key) { + _assertClass(key, PublicKey); + var ptr0 = key.__destroy_into_raw(); + const ret = wasm.accountidentifier_fromPublicKey(ptr0); + return AccountIdentifier.__wrap(ret); + } + /** + * @param {AccountHash} account_hash + * @returns {AccountIdentifier} + */ + static fromAccountHash(account_hash) { + _assertClass(account_hash, AccountHash); + var ptr0 = account_hash.__destroy_into_raw(); + const ret = wasm.accountidentifier_fromAccountHash(ptr0); + return AccountIdentifier.__wrap(ret); + } + /** + * @returns {any} + */ + toJson() { + const ret = wasm.accountidentifier_toJson(this.__wbg_ptr); + return takeObject(ret); + } +} +/** +*/ +export class ArgsSimple { + + static __wrap(ptr) { + ptr = ptr >>> 0; + const obj = Object.create(ArgsSimple.prototype); + obj.__wbg_ptr = ptr; + + return obj; + } + + __destroy_into_raw() { + const ptr = this.__wbg_ptr; + this.__wbg_ptr = 0; + + return ptr; + } + + free() { + const ptr = this.__destroy_into_raw(); + wasm.__wbg_argssimple_free(ptr); + } +} +/** +*/ +export class BlockHash { + + static __wrap(ptr) { + ptr = ptr >>> 0; + const obj = Object.create(BlockHash.prototype); + obj.__wbg_ptr = ptr; + + return obj; + } + + __destroy_into_raw() { + const ptr = this.__wbg_ptr; + this.__wbg_ptr = 0; + + return ptr; + } + + free() { + const ptr = this.__destroy_into_raw(); + wasm.__wbg_blockhash_free(ptr); + } + /** + * @param {string} block_hash_hex_str + */ + constructor(block_hash_hex_str) { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + const ptr0 = passStringToWasm0(block_hash_hex_str, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + wasm.blockhash_new(retptr, ptr0, len0); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + var r2 = getInt32Memory0()[retptr / 4 + 2]; + if (r2) { + throw takeObject(r1); + } + return BlockHash.__wrap(r0); + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {Digest} digest + * @returns {BlockHash} + */ + static fromDigest(digest) { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + _assertClass(digest, Digest); + var ptr0 = digest.__destroy_into_raw(); + wasm.blockhash_fromDigest(retptr, ptr0); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + var r2 = getInt32Memory0()[retptr / 4 + 2]; + if (r2) { + throw takeObject(r1); + } + return BlockHash.__wrap(r0); + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @returns {any} + */ + toJson() { + const ret = wasm.blockhash_toJson(this.__wbg_ptr); + return takeObject(ret); + } + /** + * @returns {string} + */ + toString() { + let deferred1_0; + let deferred1_1; + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.blockhash_toString(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + deferred1_0 = r0; + deferred1_1 = r1; + return getStringFromWasm0(r0, r1); + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + wasm.__wbindgen_free(deferred1_0, deferred1_1, 1); + } + } +} +/** +*/ +export class BlockIdentifier { + + static __wrap(ptr) { + ptr = ptr >>> 0; + const obj = Object.create(BlockIdentifier.prototype); + obj.__wbg_ptr = ptr; + + return obj; + } + + __destroy_into_raw() { + const ptr = this.__wbg_ptr; + this.__wbg_ptr = 0; + + return ptr; + } + + free() { + const ptr = this.__destroy_into_raw(); + wasm.__wbg_blockidentifier_free(ptr); + } + /** + * @param {BlockIdentifier} block_identifier + */ + constructor(block_identifier) { + _assertClass(block_identifier, BlockIdentifier); + var ptr0 = block_identifier.__destroy_into_raw(); + const ret = wasm.blockidentifier_new(ptr0); + return BlockIdentifier.__wrap(ret); + } + /** + * @param {BlockHash} hash + * @returns {BlockIdentifier} + */ + static from_hash(hash) { + _assertClass(hash, BlockHash); + var ptr0 = hash.__destroy_into_raw(); + const ret = wasm.blockidentifier_from_hash(ptr0); + return BlockIdentifier.__wrap(ret); + } + /** + * @param {bigint} height + * @returns {BlockIdentifier} + */ + static fromHeight(height) { + const ret = wasm.blockidentifier_fromHeight(height); + return BlockIdentifier.__wrap(ret); + } + /** + * @returns {any} + */ + toJson() { + const ret = wasm.blockidentifier_toJson(this.__wbg_ptr); + return takeObject(ret); + } +} +/** +*/ +export class Bytes { + + static __wrap(ptr) { + ptr = ptr >>> 0; + const obj = Object.create(Bytes.prototype); + obj.__wbg_ptr = ptr; + + return obj; + } + + __destroy_into_raw() { + const ptr = this.__wbg_ptr; + this.__wbg_ptr = 0; + + return ptr; + } + + free() { + const ptr = this.__destroy_into_raw(); + wasm.__wbg_bytes_free(ptr); + } + /** + */ + constructor() { + const ret = wasm.bytes_new(); + return Bytes.__wrap(ret); + } + /** + * @param {Uint8Array} uint8_array + * @returns {Bytes} + */ + static fromUint8Array(uint8_array) { + const ret = wasm.bytes_fromUint8Array(addHeapObject(uint8_array)); + return Bytes.__wrap(ret); + } +} +/** +*/ +export class ContractHash { + + static __wrap(ptr) { + ptr = ptr >>> 0; + const obj = Object.create(ContractHash.prototype); + obj.__wbg_ptr = ptr; + + return obj; + } + + __destroy_into_raw() { + const ptr = this.__wbg_ptr; + this.__wbg_ptr = 0; + + return ptr; + } + + free() { + const ptr = this.__destroy_into_raw(); + wasm.__wbg_contracthash_free(ptr); + } + /** + * @param {string} input + */ + constructor(input) { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + const ptr0 = passStringToWasm0(input, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + wasm.contracthash_fromString(retptr, ptr0, len0); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + var r2 = getInt32Memory0()[retptr / 4 + 2]; + if (r2) { + throw takeObject(r1); + } + return ContractHash.__wrap(r0); + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string} input + * @returns {ContractHash} + */ + static fromFormattedStr(input) { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + const ptr0 = passStringToWasm0(input, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + wasm.contracthash_fromFormattedStr(retptr, ptr0, len0); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + var r2 = getInt32Memory0()[retptr / 4 + 2]; + if (r2) { + throw takeObject(r1); + } + return ContractHash.__wrap(r0); + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @returns {string} + */ + toFormattedString() { + let deferred1_0; + let deferred1_1; + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.contracthash_toFormattedString(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + deferred1_0 = r0; + deferred1_1 = r1; + return getStringFromWasm0(r0, r1); + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + wasm.__wbindgen_free(deferred1_0, deferred1_1, 1); + } + } + /** + * @param {Uint8Array} bytes + * @returns {ContractHash} + */ + static fromUint8Array(bytes) { + const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc); + const len0 = WASM_VECTOR_LEN; + const ret = wasm.contracthash_fromUint8Array(ptr0, len0); + return ContractHash.__wrap(ret); + } +} +/** +*/ +export class ContractPackageHash { + + static __wrap(ptr) { + ptr = ptr >>> 0; + const obj = Object.create(ContractPackageHash.prototype); + obj.__wbg_ptr = ptr; + + return obj; + } + + __destroy_into_raw() { + const ptr = this.__wbg_ptr; + this.__wbg_ptr = 0; + + return ptr; + } + + free() { + const ptr = this.__destroy_into_raw(); + wasm.__wbg_contractpackagehash_free(ptr); + } + /** + * @param {string} input + */ + constructor(input) { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + const ptr0 = passStringToWasm0(input, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + wasm.contractpackagehash_fromString(retptr, ptr0, len0); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + var r2 = getInt32Memory0()[retptr / 4 + 2]; + if (r2) { + throw takeObject(r1); + } + return ContractPackageHash.__wrap(r0); + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string} input + * @returns {ContractPackageHash} + */ + static fromFormattedStr(input) { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + const ptr0 = passStringToWasm0(input, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + wasm.contractpackagehash_fromFormattedStr(retptr, ptr0, len0); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + var r2 = getInt32Memory0()[retptr / 4 + 2]; + if (r2) { + throw takeObject(r1); + } + return ContractPackageHash.__wrap(r0); + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @returns {string} + */ + toFormattedString() { + let deferred1_0; + let deferred1_1; + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.contractpackagehash_toFormattedString(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + deferred1_0 = r0; + deferred1_1 = r1; + return getStringFromWasm0(r0, r1); + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + wasm.__wbindgen_free(deferred1_0, deferred1_1, 1); + } + } + /** + * @param {Uint8Array} bytes + * @returns {ContractPackageHash} + */ + static fromUint8Array(bytes) { + const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc); + const len0 = WASM_VECTOR_LEN; + const ret = wasm.contractpackagehash_fromUint8Array(ptr0, len0); + return ContractPackageHash.__wrap(ret); + } +} +/** +*/ +export class Deploy { + + static __wrap(ptr) { + ptr = ptr >>> 0; + const obj = Object.create(Deploy.prototype); + obj.__wbg_ptr = ptr; + + return obj; + } + + __destroy_into_raw() { + const ptr = this.__wbg_ptr; + this.__wbg_ptr = 0; + + return ptr; + } + + free() { + const ptr = this.__destroy_into_raw(); + wasm.__wbg_deploy_free(ptr); + } + /** + * @param {any} deploy + */ + constructor(deploy) { + const ret = wasm.deploy_new(addHeapObject(deploy)); + return Deploy.__wrap(ret); + } + /** + * @returns {any} + */ + toJson() { + const ret = wasm.deploy_toJson(this.__wbg_ptr); + return takeObject(ret); + } + /** + * @param {DeployStrParams} deploy_params + * @param {SessionStrParams} session_params + * @param {PaymentStrParams} payment_params + * @returns {Deploy} + */ + static withPaymentAndSession(deploy_params, session_params, payment_params) { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + _assertClass(deploy_params, DeployStrParams); + var ptr0 = deploy_params.__destroy_into_raw(); + _assertClass(session_params, SessionStrParams); + var ptr1 = session_params.__destroy_into_raw(); + _assertClass(payment_params, PaymentStrParams); + var ptr2 = payment_params.__destroy_into_raw(); + wasm.deploy_withPaymentAndSession(retptr, ptr0, ptr1, ptr2); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + var r2 = getInt32Memory0()[retptr / 4 + 2]; + if (r2) { + throw takeObject(r1); + } + return Deploy.__wrap(r0); + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string} amount + * @param {string} target_account + * @param {string | undefined} transfer_id + * @param {DeployStrParams} deploy_params + * @param {PaymentStrParams} payment_params + * @returns {Deploy} + */ + static withTransfer(amount, target_account, transfer_id, deploy_params, payment_params) { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + const ptr0 = passStringToWasm0(amount, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + const ptr1 = passStringToWasm0(target_account, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len1 = WASM_VECTOR_LEN; + var ptr2 = isLikeNone(transfer_id) ? 0 : passStringToWasm0(transfer_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len2 = WASM_VECTOR_LEN; + _assertClass(deploy_params, DeployStrParams); + var ptr3 = deploy_params.__destroy_into_raw(); + _assertClass(payment_params, PaymentStrParams); + var ptr4 = payment_params.__destroy_into_raw(); + wasm.deploy_withTransfer(retptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, ptr4); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + var r2 = getInt32Memory0()[retptr / 4 + 2]; + if (r2) { + throw takeObject(r1); + } + return Deploy.__wrap(r0); + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string} ttl + * @param {string | undefined} secret_key + * @returns {Deploy} + */ + withTTL(ttl, secret_key) { + const ptr0 = passStringToWasm0(ttl, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + var ptr1 = isLikeNone(secret_key) ? 0 : passStringToWasm0(secret_key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len1 = WASM_VECTOR_LEN; + const ret = wasm.deploy_withTTL(this.__wbg_ptr, ptr0, len0, ptr1, len1); + return Deploy.__wrap(ret); + } + /** + * @param {string} timestamp + * @param {string | undefined} secret_key + * @returns {Deploy} + */ + withTimestamp(timestamp, secret_key) { + const ptr0 = passStringToWasm0(timestamp, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + var ptr1 = isLikeNone(secret_key) ? 0 : passStringToWasm0(secret_key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len1 = WASM_VECTOR_LEN; + const ret = wasm.deploy_withTimestamp(this.__wbg_ptr, ptr0, len0, ptr1, len1); + return Deploy.__wrap(ret); + } + /** + * @param {string} chain_name + * @param {string | undefined} secret_key + * @returns {Deploy} + */ + withChainName(chain_name, secret_key) { + const ptr0 = passStringToWasm0(chain_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + var ptr1 = isLikeNone(secret_key) ? 0 : passStringToWasm0(secret_key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len1 = WASM_VECTOR_LEN; + const ret = wasm.deploy_withChainName(this.__wbg_ptr, ptr0, len0, ptr1, len1); + return Deploy.__wrap(ret); + } + /** + * @param {PublicKey} account + * @param {string | undefined} secret_key + * @returns {Deploy} + */ + withAccount(account, secret_key) { + _assertClass(account, PublicKey); + var ptr0 = account.__destroy_into_raw(); + var ptr1 = isLikeNone(secret_key) ? 0 : passStringToWasm0(secret_key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len1 = WASM_VECTOR_LEN; + const ret = wasm.deploy_withAccount(this.__wbg_ptr, ptr0, ptr1, len1); + return Deploy.__wrap(ret); + } + /** + * @param {string} entry_point_name + * @param {string | undefined} secret_key + * @returns {Deploy} + */ + withEntryPointName(entry_point_name, secret_key) { + const ptr0 = passStringToWasm0(entry_point_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + var ptr1 = isLikeNone(secret_key) ? 0 : passStringToWasm0(secret_key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len1 = WASM_VECTOR_LEN; + const ret = wasm.deploy_withEntryPointName(this.__wbg_ptr, ptr0, len0, ptr1, len1); + return Deploy.__wrap(ret); + } + /** + * @param {ContractHash} hash + * @param {string | undefined} secret_key + * @returns {Deploy} + */ + withHash(hash, secret_key) { + _assertClass(hash, ContractHash); + var ptr0 = hash.__destroy_into_raw(); + var ptr1 = isLikeNone(secret_key) ? 0 : passStringToWasm0(secret_key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len1 = WASM_VECTOR_LEN; + const ret = wasm.deploy_withHash(this.__wbg_ptr, ptr0, ptr1, len1); + return Deploy.__wrap(ret); + } + /** + * @param {ContractPackageHash} package_hash + * @param {string | undefined} secret_key + * @returns {Deploy} + */ + withPackageHash(package_hash, secret_key) { + _assertClass(package_hash, ContractPackageHash); + var ptr0 = package_hash.__destroy_into_raw(); + var ptr1 = isLikeNone(secret_key) ? 0 : passStringToWasm0(secret_key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len1 = WASM_VECTOR_LEN; + const ret = wasm.deploy_withPackageHash(this.__wbg_ptr, ptr0, ptr1, len1); + return Deploy.__wrap(ret); + } + /** + * @param {Bytes} module_bytes + * @param {string | undefined} secret_key + * @returns {Deploy} + */ + withModuleBytes(module_bytes, secret_key) { + _assertClass(module_bytes, Bytes); + var ptr0 = module_bytes.__destroy_into_raw(); + var ptr1 = isLikeNone(secret_key) ? 0 : passStringToWasm0(secret_key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len1 = WASM_VECTOR_LEN; + const ret = wasm.deploy_withModuleBytes(this.__wbg_ptr, ptr0, ptr1, len1); + return Deploy.__wrap(ret); + } + /** + * @param {string | undefined} secret_key + * @returns {Deploy} + */ + withSecretKey(secret_key) { + var ptr0 = isLikeNone(secret_key) ? 0 : passStringToWasm0(secret_key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + const ret = wasm.deploy_withSecretKey(this.__wbg_ptr, ptr0, len0); + return Deploy.__wrap(ret); + } + /** + * @param {string} amount + * @param {string | undefined} secret_key + * @returns {Deploy} + */ + withStandardPayment(amount, secret_key) { + const ptr0 = passStringToWasm0(amount, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + var ptr1 = isLikeNone(secret_key) ? 0 : passStringToWasm0(secret_key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len1 = WASM_VECTOR_LEN; + const ret = wasm.deploy_withStandardPayment(this.__wbg_ptr, ptr0, len0, ptr1, len1); + return Deploy.__wrap(ret); + } + /** + * @param {any} payment + * @param {string | undefined} secret_key + * @returns {Deploy} + */ + withPayment(payment, secret_key) { + var ptr0 = isLikeNone(secret_key) ? 0 : passStringToWasm0(secret_key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + const ret = wasm.deploy_withPayment(this.__wbg_ptr, addHeapObject(payment), ptr0, len0); + return Deploy.__wrap(ret); + } + /** + * @param {any} session + * @param {string | undefined} secret_key + * @returns {Deploy} + */ + withSession(session, secret_key) { + var ptr0 = isLikeNone(secret_key) ? 0 : passStringToWasm0(secret_key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + const ret = wasm.deploy_withSession(this.__wbg_ptr, addHeapObject(session), ptr0, len0); + return Deploy.__wrap(ret); + } + /** + * @returns {boolean} + */ + validateDeploySize() { + const ret = wasm.deploy_validateDeploySize(this.__wbg_ptr); + return ret !== 0; + } + /** + * @param {string} secret_key + * @returns {Deploy} + */ + sign(secret_key) { + const ptr0 = passStringToWasm0(secret_key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + const ret = wasm.deploy_sign(this.__wbg_ptr, ptr0, len0); + return Deploy.__wrap(ret); + } + /** + * @returns {string} + */ + TTL() { + let deferred1_0; + let deferred1_1; + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.deploy_TTL(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + deferred1_0 = r0; + deferred1_1 = r1; + return getStringFromWasm0(r0, r1); + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + wasm.__wbindgen_free(deferred1_0, deferred1_1, 1); + } + } + /** + * @returns {string} + */ + timestamp() { + let deferred1_0; + let deferred1_1; + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.deploy_timestamp(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + deferred1_0 = r0; + deferred1_1 = r1; + return getStringFromWasm0(r0, r1); + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + wasm.__wbindgen_free(deferred1_0, deferred1_1, 1); + } + } + /** + * @returns {string} + */ + chainName() { + let deferred1_0; + let deferred1_1; + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.deploy_chainName(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + deferred1_0 = r0; + deferred1_1 = r1; + return getStringFromWasm0(r0, r1); + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + wasm.__wbindgen_free(deferred1_0, deferred1_1, 1); + } + } + /** + * @returns {string} + */ + account() { + let deferred1_0; + let deferred1_1; + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.deploy_account(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + deferred1_0 = r0; + deferred1_1 = r1; + return getStringFromWasm0(r0, r1); + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + wasm.__wbindgen_free(deferred1_0, deferred1_1, 1); + } + } + /** + * @returns {any} + */ + args() { + const ret = wasm.deploy_args(this.__wbg_ptr); + return takeObject(ret); + } + /** + * @param {any} js_value_arg + * @param {string | undefined} secret_key + * @returns {Deploy} + */ + addArg(js_value_arg, secret_key) { + var ptr0 = isLikeNone(secret_key) ? 0 : passStringToWasm0(secret_key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + const ret = wasm.deploy_addArg(this.__wbg_ptr, addHeapObject(js_value_arg), ptr0, len0); + return Deploy.__wrap(ret); + } +} +/** +*/ +export class DeployHash { + + static __wrap(ptr) { + ptr = ptr >>> 0; + const obj = Object.create(DeployHash.prototype); + obj.__wbg_ptr = ptr; + + return obj; + } + + __destroy_into_raw() { + const ptr = this.__wbg_ptr; + this.__wbg_ptr = 0; + + return ptr; + } + + free() { + const ptr = this.__destroy_into_raw(); + wasm.__wbg_deployhash_free(ptr); + } + /** + * @param {string} deploy_hash_hex_str + */ + constructor(deploy_hash_hex_str) { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + const ptr0 = passStringToWasm0(deploy_hash_hex_str, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + wasm.deployhash_new(retptr, ptr0, len0); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + var r2 = getInt32Memory0()[retptr / 4 + 2]; + if (r2) { + throw takeObject(r1); + } + return DeployHash.__wrap(r0); + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {Digest} digest + * @returns {DeployHash} + */ + static fromDigest(digest) { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + _assertClass(digest, Digest); + var ptr0 = digest.__destroy_into_raw(); + wasm.deployhash_fromDigest(retptr, ptr0); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + var r2 = getInt32Memory0()[retptr / 4 + 2]; + if (r2) { + throw takeObject(r1); + } + return DeployHash.__wrap(r0); + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @returns {any} + */ + toJson() { + const ret = wasm.deployhash_toJson(this.__wbg_ptr); + return takeObject(ret); + } + /** + * @returns {string} + */ + toString() { + let deferred1_0; + let deferred1_1; + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.deployhash_toString(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + deferred1_0 = r0; + deferred1_1 = r1; + return getStringFromWasm0(r0, r1); + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + wasm.__wbindgen_free(deferred1_0, deferred1_1, 1); + } + } +} +/** +*/ +export class DeployStrParams { + + static __wrap(ptr) { + ptr = ptr >>> 0; + const obj = Object.create(DeployStrParams.prototype); + obj.__wbg_ptr = ptr; + + return obj; + } + + __destroy_into_raw() { + const ptr = this.__wbg_ptr; + this.__wbg_ptr = 0; + + return ptr; + } + + free() { + const ptr = this.__destroy_into_raw(); + wasm.__wbg_deploystrparams_free(ptr); + } + /** + * @param {string} chain_name + * @param {string} session_account + * @param {string | undefined} secret_key + * @param {string | undefined} timestamp + * @param {string | undefined} ttl + */ + constructor(chain_name, session_account, secret_key, timestamp, ttl) { + const ptr0 = passStringToWasm0(chain_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + const ptr1 = passStringToWasm0(session_account, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len1 = WASM_VECTOR_LEN; + var ptr2 = isLikeNone(secret_key) ? 0 : passStringToWasm0(secret_key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len2 = WASM_VECTOR_LEN; + var ptr3 = isLikeNone(timestamp) ? 0 : passStringToWasm0(timestamp, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len3 = WASM_VECTOR_LEN; + var ptr4 = isLikeNone(ttl) ? 0 : passStringToWasm0(ttl, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len4 = WASM_VECTOR_LEN; + const ret = wasm.deploystrparams_new(ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, ptr4, len4); + return DeployStrParams.__wrap(ret); + } + /** + * @returns {string | undefined} + */ + get secret_key() { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.deploystrparams_secret_key(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + let v1; + if (r0 !== 0) { + v1 = getStringFromWasm0(r0, r1).slice(); + wasm.__wbindgen_free(r0, r1 * 1); + } + return v1; + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string} secret_key + */ + set secret_key(secret_key) { + const ptr0 = passStringToWasm0(secret_key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + wasm.deploystrparams_set_secret_key(this.__wbg_ptr, ptr0, len0); + } + /** + * @returns {string | undefined} + */ + get timestamp() { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.deploystrparams_timestamp(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + let v1; + if (r0 !== 0) { + v1 = getStringFromWasm0(r0, r1).slice(); + wasm.__wbindgen_free(r0, r1 * 1); + } + return v1; + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string | undefined} timestamp + */ + set timestamp(timestamp) { + var ptr0 = isLikeNone(timestamp) ? 0 : passStringToWasm0(timestamp, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + wasm.deploystrparams_set_timestamp(this.__wbg_ptr, ptr0, len0); + } + /** + */ + setDefaultTimestamp() { + wasm.deploystrparams_setDefaultTimestamp(this.__wbg_ptr); + } + /** + * @returns {string | undefined} + */ + get ttl() { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.deploystrparams_ttl(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + let v1; + if (r0 !== 0) { + v1 = getStringFromWasm0(r0, r1).slice(); + wasm.__wbindgen_free(r0, r1 * 1); + } + return v1; + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string | undefined} ttl + */ + set ttl(ttl) { + var ptr0 = isLikeNone(ttl) ? 0 : passStringToWasm0(ttl, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + wasm.deploystrparams_set_ttl(this.__wbg_ptr, ptr0, len0); + } + /** + */ + setDefaultTTL() { + wasm.deploystrparams_setDefaultTTL(this.__wbg_ptr); + } + /** + * @returns {string | undefined} + */ + get chain_name() { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.deploystrparams_chain_name(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + let v1; + if (r0 !== 0) { + v1 = getStringFromWasm0(r0, r1).slice(); + wasm.__wbindgen_free(r0, r1 * 1); + } + return v1; + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string} chain_name + */ + set chain_name(chain_name) { + const ptr0 = passStringToWasm0(chain_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + wasm.deploystrparams_set_chain_name(this.__wbg_ptr, ptr0, len0); + } + /** + * @returns {string | undefined} + */ + get session_account() { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.deploystrparams_session_account(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + let v1; + if (r0 !== 0) { + v1 = getStringFromWasm0(r0, r1).slice(); + wasm.__wbindgen_free(r0, r1 * 1); + } + return v1; + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string} session_account + */ + set session_account(session_account) { + const ptr0 = passStringToWasm0(session_account, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + wasm.deploystrparams_set_session_account(this.__wbg_ptr, ptr0, len0); + } +} +/** +*/ +export class DictionaryAddr { + + static __wrap(ptr) { + ptr = ptr >>> 0; + const obj = Object.create(DictionaryAddr.prototype); + obj.__wbg_ptr = ptr; + + return obj; + } + + __destroy_into_raw() { + const ptr = this.__wbg_ptr; + this.__wbg_ptr = 0; + + return ptr; + } + + free() { + const ptr = this.__destroy_into_raw(); + wasm.__wbg_dictionaryaddr_free(ptr); + } + /** + * @param {Uint8Array} bytes + */ + constructor(bytes) { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc); + const len0 = WASM_VECTOR_LEN; + wasm.dictionaryaddr_new(retptr, ptr0, len0); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + var r2 = getInt32Memory0()[retptr / 4 + 2]; + if (r2) { + throw takeObject(r1); + } + return DictionaryAddr.__wrap(r0); + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } +} +/** +*/ +export class DictionaryItemIdentifier { + + static __wrap(ptr) { + ptr = ptr >>> 0; + const obj = Object.create(DictionaryItemIdentifier.prototype); + obj.__wbg_ptr = ptr; + + return obj; + } + + __destroy_into_raw() { + const ptr = this.__wbg_ptr; + this.__wbg_ptr = 0; + + return ptr; + } + + free() { + const ptr = this.__destroy_into_raw(); + wasm.__wbg_dictionaryitemidentifier_free(ptr); + } + /** + * @param {string} account_hash + * @param {string} dictionary_name + * @param {string} dictionary_item_key + * @returns {DictionaryItemIdentifier} + */ + static newFromAccountInfo(account_hash, dictionary_name, dictionary_item_key) { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + const ptr0 = passStringToWasm0(account_hash, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + const ptr1 = passStringToWasm0(dictionary_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len1 = WASM_VECTOR_LEN; + const ptr2 = passStringToWasm0(dictionary_item_key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len2 = WASM_VECTOR_LEN; + wasm.dictionaryitemidentifier_newFromAccountInfo(retptr, ptr0, len0, ptr1, len1, ptr2, len2); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + var r2 = getInt32Memory0()[retptr / 4 + 2]; + if (r2) { + throw takeObject(r1); + } + return DictionaryItemIdentifier.__wrap(r0); + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string} contract_addr + * @param {string} dictionary_name + * @param {string} dictionary_item_key + * @returns {DictionaryItemIdentifier} + */ + static newFromContractInfo(contract_addr, dictionary_name, dictionary_item_key) { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + const ptr0 = passStringToWasm0(contract_addr, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + const ptr1 = passStringToWasm0(dictionary_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len1 = WASM_VECTOR_LEN; + const ptr2 = passStringToWasm0(dictionary_item_key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len2 = WASM_VECTOR_LEN; + wasm.dictionaryitemidentifier_newFromContractInfo(retptr, ptr0, len0, ptr1, len1, ptr2, len2); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + var r2 = getInt32Memory0()[retptr / 4 + 2]; + if (r2) { + throw takeObject(r1); + } + return DictionaryItemIdentifier.__wrap(r0); + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string} seed_uref + * @param {string} dictionary_item_key + * @returns {DictionaryItemIdentifier} + */ + static newFromSeedUref(seed_uref, dictionary_item_key) { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + const ptr0 = passStringToWasm0(seed_uref, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + const ptr1 = passStringToWasm0(dictionary_item_key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len1 = WASM_VECTOR_LEN; + wasm.dictionaryitemidentifier_newFromSeedUref(retptr, ptr0, len0, ptr1, len1); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + var r2 = getInt32Memory0()[retptr / 4 + 2]; + if (r2) { + throw takeObject(r1); + } + return DictionaryItemIdentifier.__wrap(r0); + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string} dictionary_key + * @returns {DictionaryItemIdentifier} + */ + static newFromDictionaryKey(dictionary_key) { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + const ptr0 = passStringToWasm0(dictionary_key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + wasm.dictionaryitemidentifier_newFromDictionaryKey(retptr, ptr0, len0); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + var r2 = getInt32Memory0()[retptr / 4 + 2]; + if (r2) { + throw takeObject(r1); + } + return DictionaryItemIdentifier.__wrap(r0); + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @returns {any} + */ + toJson() { + const ret = wasm.dictionaryitemidentifier_toJson(this.__wbg_ptr); + return takeObject(ret); + } +} +/** +*/ +export class DictionaryItemStrParams { + + static __wrap(ptr) { + ptr = ptr >>> 0; + const obj = Object.create(DictionaryItemStrParams.prototype); + obj.__wbg_ptr = ptr; + + return obj; + } + + __destroy_into_raw() { + const ptr = this.__wbg_ptr; + this.__wbg_ptr = 0; + + return ptr; + } + + free() { + const ptr = this.__destroy_into_raw(); + wasm.__wbg_dictionaryitemstrparams_free(ptr); + } + /** + */ + constructor() { + const ret = wasm.dictionaryitemstrparams_new(); + return DictionaryItemStrParams.__wrap(ret); + } + /** + * @param {string} key + * @param {string} dictionary_name + * @param {string} dictionary_item_key + */ + setAccountNamedKey(key, dictionary_name, dictionary_item_key) { + const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + const ptr1 = passStringToWasm0(dictionary_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len1 = WASM_VECTOR_LEN; + const ptr2 = passStringToWasm0(dictionary_item_key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len2 = WASM_VECTOR_LEN; + wasm.dictionaryitemstrparams_setAccountNamedKey(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2); + } + /** + * @param {string} key + * @param {string} dictionary_name + * @param {string} dictionary_item_key + */ + setContractNamedKey(key, dictionary_name, dictionary_item_key) { + const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + const ptr1 = passStringToWasm0(dictionary_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len1 = WASM_VECTOR_LEN; + const ptr2 = passStringToWasm0(dictionary_item_key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len2 = WASM_VECTOR_LEN; + wasm.dictionaryitemstrparams_setContractNamedKey(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2); + } + /** + * @param {string} seed_uref + * @param {string} dictionary_item_key + */ + setUref(seed_uref, dictionary_item_key) { + const ptr0 = passStringToWasm0(seed_uref, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + const ptr1 = passStringToWasm0(dictionary_item_key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len1 = WASM_VECTOR_LEN; + wasm.dictionaryitemstrparams_setUref(this.__wbg_ptr, ptr0, len0, ptr1, len1); + } + /** + * @param {string} value + */ + setDictionary(value) { + const ptr0 = passStringToWasm0(value, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + wasm.dictionaryitemstrparams_setDictionary(this.__wbg_ptr, ptr0, len0); + } + /** + * @returns {any} + */ + toJson() { + const ret = wasm.dictionaryitemstrparams_toJson(this.__wbg_ptr); + return takeObject(ret); + } +} +/** +*/ +export class Digest { + + static __wrap(ptr) { + ptr = ptr >>> 0; + const obj = Object.create(Digest.prototype); + obj.__wbg_ptr = ptr; + + return obj; + } + + __destroy_into_raw() { + const ptr = this.__wbg_ptr; + this.__wbg_ptr = 0; + + return ptr; + } + + free() { + const ptr = this.__destroy_into_raw(); + wasm.__wbg_digest_free(ptr); + } + /** + * @param {string} digest_hex_str + */ + constructor(digest_hex_str) { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + const ptr0 = passStringToWasm0(digest_hex_str, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + wasm.digest__new(retptr, ptr0, len0); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + var r2 = getInt32Memory0()[retptr / 4 + 2]; + if (r2) { + throw takeObject(r1); + } + return Digest.__wrap(r0); + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string} digest_hex_str + * @returns {Digest} + */ + static fromString(digest_hex_str) { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + const ptr0 = passStringToWasm0(digest_hex_str, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + wasm.digest__new(retptr, ptr0, len0); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + var r2 = getInt32Memory0()[retptr / 4 + 2]; + if (r2) { + throw takeObject(r1); + } + return Digest.__wrap(r0); + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {Uint8Array} bytes + * @returns {Digest} + */ + static fromDigest(bytes) { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc); + const len0 = WASM_VECTOR_LEN; + wasm.digest_fromDigest(retptr, ptr0, len0); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + var r2 = getInt32Memory0()[retptr / 4 + 2]; + if (r2) { + throw takeObject(r1); + } + return Digest.__wrap(r0); + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @returns {any} + */ + toJson() { + const ret = wasm.digest_toJson(this.__wbg_ptr); + return takeObject(ret); + } + /** + * @returns {string} + */ + toString() { + let deferred1_0; + let deferred1_1; + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.digest_toString(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + deferred1_0 = r0; + deferred1_1 = r1; + return getStringFromWasm0(r0, r1); + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + wasm.__wbindgen_free(deferred1_0, deferred1_1, 1); + } + } +} +/** +*/ +export class EraId { + + static __wrap(ptr) { + ptr = ptr >>> 0; + const obj = Object.create(EraId.prototype); + obj.__wbg_ptr = ptr; + + return obj; + } + + __destroy_into_raw() { + const ptr = this.__wbg_ptr; + this.__wbg_ptr = 0; + + return ptr; + } + + free() { + const ptr = this.__destroy_into_raw(); + wasm.__wbg_eraid_free(ptr); + } + /** + * @param {bigint} value + */ + constructor(value) { + const ret = wasm.eraid_new(value); + return EraId.__wrap(ret); + } + /** + * @returns {bigint} + */ + value() { + const ret = wasm.eraid_value(this.__wbg_ptr); + return BigInt.asUintN(64, ret); + } +} +/** +*/ +export class GetAccountResult { + + static __wrap(ptr) { + ptr = ptr >>> 0; + const obj = Object.create(GetAccountResult.prototype); + obj.__wbg_ptr = ptr; + + return obj; + } + + __destroy_into_raw() { + const ptr = this.__wbg_ptr; + this.__wbg_ptr = 0; + + return ptr; + } + + free() { + const ptr = this.__destroy_into_raw(); + wasm.__wbg_getaccountresult_free(ptr); + } + /** + * @returns {any} + */ + get api_version() { + const ret = wasm.getaccountresult_api_version(this.__wbg_ptr); + return takeObject(ret); + } + /** + * @returns {any} + */ + get account() { + const ret = wasm.getaccountresult_account(this.__wbg_ptr); + return takeObject(ret); + } + /** + * @returns {string} + */ + get merkle_proof() { + let deferred1_0; + let deferred1_1; + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.getaccountresult_merkle_proof(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + deferred1_0 = r0; + deferred1_1 = r1; + return getStringFromWasm0(r0, r1); + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + wasm.__wbindgen_free(deferred1_0, deferred1_1, 1); + } + } + /** + * @returns {any} + */ + toJson() { + const ret = wasm.getaccountresult_toJson(this.__wbg_ptr); + return takeObject(ret); + } +} +/** +*/ +export class GetAuctionInfoResult { + + static __wrap(ptr) { + ptr = ptr >>> 0; + const obj = Object.create(GetAuctionInfoResult.prototype); + obj.__wbg_ptr = ptr; + + return obj; + } + + __destroy_into_raw() { + const ptr = this.__wbg_ptr; + this.__wbg_ptr = 0; + + return ptr; + } + + free() { + const ptr = this.__destroy_into_raw(); + wasm.__wbg_getauctioninforesult_free(ptr); + } + /** + * Gets the API version as a JsValue. + * @returns {any} + */ + get api_version() { + const ret = wasm.getauctioninforesult_api_version(this.__wbg_ptr); + return takeObject(ret); + } + /** + * Gets the auction state as a JsValue. + * @returns {any} + */ + get auction_state() { + const ret = wasm.getauctioninforesult_auction_state(this.__wbg_ptr); + return takeObject(ret); + } + /** + * Converts the GetAuctionInfoResult to a JsValue. + * @returns {any} + */ + toJson() { + const ret = wasm.getauctioninforesult_toJson(this.__wbg_ptr); + return takeObject(ret); + } +} +/** +*/ +export class GetBalanceResult { + + static __wrap(ptr) { + ptr = ptr >>> 0; + const obj = Object.create(GetBalanceResult.prototype); + obj.__wbg_ptr = ptr; + + return obj; + } + + __destroy_into_raw() { + const ptr = this.__wbg_ptr; + this.__wbg_ptr = 0; + + return ptr; + } + + free() { + const ptr = this.__destroy_into_raw(); + wasm.__wbg_getbalanceresult_free(ptr); + } + /** + * Gets the API version as a JsValue. + * @returns {any} + */ + get api_version() { + const ret = wasm.getbalanceresult_api_version(this.__wbg_ptr); + return takeObject(ret); + } + /** + * Gets the balance value as a JsValue. + * @returns {any} + */ + get balance_value() { + const ret = wasm.getbalanceresult_balance_value(this.__wbg_ptr); + return takeObject(ret); + } + /** + * Gets the Merkle proof as a string. + * @returns {string} + */ + get merkle_proof() { + let deferred1_0; + let deferred1_1; + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.getbalanceresult_merkle_proof(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + deferred1_0 = r0; + deferred1_1 = r1; + return getStringFromWasm0(r0, r1); + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + wasm.__wbindgen_free(deferred1_0, deferred1_1, 1); + } + } + /** + * Converts the GetBalanceResult to a JsValue. + * @returns {any} + */ + toJson() { + const ret = wasm.getbalanceresult_toJson(this.__wbg_ptr); + return takeObject(ret); + } +} +/** +*/ +export class GetBlockResult { + + static __wrap(ptr) { + ptr = ptr >>> 0; + const obj = Object.create(GetBlockResult.prototype); + obj.__wbg_ptr = ptr; + + return obj; + } + + __destroy_into_raw() { + const ptr = this.__wbg_ptr; + this.__wbg_ptr = 0; + + return ptr; + } + + free() { + const ptr = this.__destroy_into_raw(); + wasm.__wbg_getblockresult_free(ptr); + } + /** + * Gets the API version as a JsValue. + * @returns {any} + */ + get api_version() { + const ret = wasm.getblockresult_api_version(this.__wbg_ptr); + return takeObject(ret); + } + /** + * Gets the block information as a JsValue. + * @returns {any} + */ + get block() { + const ret = wasm.getblockresult_block(this.__wbg_ptr); + return takeObject(ret); + } + /** + * Converts the GetBlockResult to a JsValue. + * @returns {any} + */ + toJson() { + const ret = wasm.getblockresult_toJson(this.__wbg_ptr); + return takeObject(ret); + } +} +/** +*/ +export class GetBlockTransfersResult { + + static __wrap(ptr) { + ptr = ptr >>> 0; + const obj = Object.create(GetBlockTransfersResult.prototype); + obj.__wbg_ptr = ptr; + + return obj; + } + + __destroy_into_raw() { + const ptr = this.__wbg_ptr; + this.__wbg_ptr = 0; + + return ptr; + } + + free() { + const ptr = this.__destroy_into_raw(); + wasm.__wbg_getblocktransfersresult_free(ptr); + } + /** + * Gets the API version as a JsValue. + * @returns {any} + */ + get api_version() { + const ret = wasm.getblocktransfersresult_api_version(this.__wbg_ptr); + return takeObject(ret); + } + /** + * Gets the block hash as an Option. + * @returns {BlockHash | undefined} + */ + get block_hash() { + const ret = wasm.getblocktransfersresult_block_hash(this.__wbg_ptr); + return ret === 0 ? undefined : BlockHash.__wrap(ret); + } + /** + * Gets the transfers as a JsValue. + * @returns {any} + */ + get transfers() { + const ret = wasm.getblocktransfersresult_transfers(this.__wbg_ptr); + return takeObject(ret); + } + /** + * Converts the GetBlockTransfersResult to a JsValue. + * @returns {any} + */ + toJson() { + const ret = wasm.getblocktransfersresult_toJson(this.__wbg_ptr); + return takeObject(ret); + } +} +/** +* A struct representing the result of the `get_chainspec` function. +*/ +export class GetChainspecResult { + + static __wrap(ptr) { + ptr = ptr >>> 0; + const obj = Object.create(GetChainspecResult.prototype); + obj.__wbg_ptr = ptr; + + return obj; + } + + __destroy_into_raw() { + const ptr = this.__wbg_ptr; + this.__wbg_ptr = 0; + + return ptr; + } + + free() { + const ptr = this.__destroy_into_raw(); + wasm.__wbg_getchainspecresult_free(ptr); + } + /** + * Gets the API version as a JsValue. + * @returns {any} + */ + get api_version() { + const ret = wasm.getchainspecresult_api_version(this.__wbg_ptr); + return takeObject(ret); + } + /** + * Gets the chainspec bytes as a JsValue. + * @returns {any} + */ + get chainspec_bytes() { + const ret = wasm.getchainspecresult_chainspec_bytes(this.__wbg_ptr); + return takeObject(ret); + } + /** + * Converts the `GetChainspecResult` to a JsValue. + * @returns {any} + */ + toJson() { + const ret = wasm.getchainspecresult_toJson(this.__wbg_ptr); + return takeObject(ret); + } +} +/** +*/ +export class GetDeployResult { + + static __wrap(ptr) { + ptr = ptr >>> 0; + const obj = Object.create(GetDeployResult.prototype); + obj.__wbg_ptr = ptr; + + return obj; + } + + __destroy_into_raw() { + const ptr = this.__wbg_ptr; + this.__wbg_ptr = 0; + + return ptr; + } + + free() { + const ptr = this.__destroy_into_raw(); + wasm.__wbg_getdeployresult_free(ptr); + } + /** + * Gets the API version as a JavaScript value. + * @returns {any} + */ + get api_version() { + const ret = wasm.getdeployresult_api_version(this.__wbg_ptr); + return takeObject(ret); + } + /** + * Gets the deploy information. + * @returns {Deploy} + */ + get deploy() { + const ret = wasm.getdeployresult_deploy(this.__wbg_ptr); + return Deploy.__wrap(ret); + } + /** + * Converts the result to a JSON JavaScript value. + * @returns {any} + */ + toJson() { + const ret = wasm.getdeployresult_toJson(this.__wbg_ptr); + return takeObject(ret); + } +} +/** +*/ +export class GetDictionaryItemResult { + + static __wrap(ptr) { + ptr = ptr >>> 0; + const obj = Object.create(GetDictionaryItemResult.prototype); + obj.__wbg_ptr = ptr; + + return obj; + } + + __destroy_into_raw() { + const ptr = this.__wbg_ptr; + this.__wbg_ptr = 0; + + return ptr; + } + + free() { + const ptr = this.__destroy_into_raw(); + wasm.__wbg_getdictionaryitemresult_free(ptr); + } + /** + * Gets the API version as a JsValue. + * @returns {any} + */ + get api_version() { + const ret = wasm.getdictionaryitemresult_api_version(this.__wbg_ptr); + return takeObject(ret); + } + /** + * Gets the dictionary key as a String. + * @returns {string} + */ + get dictionary_key() { + let deferred1_0; + let deferred1_1; + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.getdictionaryitemresult_dictionary_key(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + deferred1_0 = r0; + deferred1_1 = r1; + return getStringFromWasm0(r0, r1); + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + wasm.__wbindgen_free(deferred1_0, deferred1_1, 1); + } + } + /** + * Gets the stored value as a JsValue. + * @returns {any} + */ + get stored_value() { + const ret = wasm.getdictionaryitemresult_stored_value(this.__wbg_ptr); + return takeObject(ret); + } + /** + * Gets the merkle proof as a String. + * @returns {string} + */ + get merkle_proof() { + let deferred1_0; + let deferred1_1; + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.getdictionaryitemresult_merkle_proof(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + deferred1_0 = r0; + deferred1_1 = r1; + return getStringFromWasm0(r0, r1); + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + wasm.__wbindgen_free(deferred1_0, deferred1_1, 1); + } + } + /** + * Converts the GetDictionaryItemResult to a JsValue. + * @returns {any} + */ + toJson() { + const ret = wasm.getdictionaryitemresult_toJson(this.__wbg_ptr); + return takeObject(ret); + } +} +/** +*/ +export class GetEraInfoResult { + + static __wrap(ptr) { + ptr = ptr >>> 0; + const obj = Object.create(GetEraInfoResult.prototype); + obj.__wbg_ptr = ptr; + + return obj; + } + + __destroy_into_raw() { + const ptr = this.__wbg_ptr; + this.__wbg_ptr = 0; + + return ptr; + } + + free() { + const ptr = this.__destroy_into_raw(); + wasm.__wbg_geterainforesult_free(ptr); + } + /** + * @returns {any} + */ + get api_version() { + const ret = wasm.geterainforesult_api_version(this.__wbg_ptr); + return takeObject(ret); + } + /** + * @returns {any} + */ + get era_summary() { + const ret = wasm.geterainforesult_era_summary(this.__wbg_ptr); + return takeObject(ret); + } + /** + * @returns {any} + */ + toJson() { + const ret = wasm.geterainforesult_toJson(this.__wbg_ptr); + return takeObject(ret); + } +} +/** +* Wrapper struct for the `GetEraSummaryResult` from casper_client. +*/ +export class GetEraSummaryResult { + + static __wrap(ptr) { + ptr = ptr >>> 0; + const obj = Object.create(GetEraSummaryResult.prototype); + obj.__wbg_ptr = ptr; + + return obj; + } + + __destroy_into_raw() { + const ptr = this.__wbg_ptr; + this.__wbg_ptr = 0; + + return ptr; + } + + free() { + const ptr = this.__destroy_into_raw(); + wasm.__wbg_geterasummaryresult_free(ptr); + } + /** + * Gets the API version as a JsValue. + * @returns {any} + */ + get api_version() { + const ret = wasm.geterasummaryresult_api_version(this.__wbg_ptr); + return takeObject(ret); + } + /** + * Gets the era summary as a JsValue. + * @returns {any} + */ + get era_summary() { + const ret = wasm.geterasummaryresult_era_summary(this.__wbg_ptr); + return takeObject(ret); + } + /** + * Converts the GetEraSummaryResult to a JsValue. + * @returns {any} + */ + toJson() { + const ret = wasm.geterasummaryresult_toJson(this.__wbg_ptr); + return takeObject(ret); + } +} +/** +* Wrapper struct for the `GetNodeStatusResult` from casper_client. +*/ +export class GetNodeStatusResult { + + static __wrap(ptr) { + ptr = ptr >>> 0; + const obj = Object.create(GetNodeStatusResult.prototype); + obj.__wbg_ptr = ptr; + + return obj; + } + + __destroy_into_raw() { + const ptr = this.__wbg_ptr; + this.__wbg_ptr = 0; + + return ptr; + } + + free() { + const ptr = this.__destroy_into_raw(); + wasm.__wbg_getnodestatusresult_free(ptr); + } + /** + * Gets the API version as a JsValue. + * @returns {any} + */ + get api_version() { + const ret = wasm.getnodestatusresult_api_version(this.__wbg_ptr); + return takeObject(ret); + } + /** + * Gets the chainspec name as a String. + * @returns {string} + */ + get chainspec_name() { + let deferred1_0; + let deferred1_1; + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.getnodestatusresult_chainspec_name(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + deferred1_0 = r0; + deferred1_1 = r1; + return getStringFromWasm0(r0, r1); + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + wasm.__wbindgen_free(deferred1_0, deferred1_1, 1); + } + } + /** + * Gets the starting state root hash as a Digest. + * @returns {Digest} + */ + get starting_state_root_hash() { + const ret = wasm.getnodestatusresult_starting_state_root_hash(this.__wbg_ptr); + return Digest.__wrap(ret); + } + /** + * Gets the list of peers as a JsValue. + * @returns {any} + */ + get peers() { + const ret = wasm.getnodestatusresult_peers(this.__wbg_ptr); + return takeObject(ret); + } + /** + * Gets information about the last added block as a JsValue. + * @returns {any} + */ + get last_added_block_info() { + const ret = wasm.getnodestatusresult_last_added_block_info(this.__wbg_ptr); + return takeObject(ret); + } + /** + * Gets the public signing key as an Option. + * @returns {PublicKey | undefined} + */ + get our_public_signing_key() { + const ret = wasm.getnodestatusresult_our_public_signing_key(this.__wbg_ptr); + return ret === 0 ? undefined : PublicKey.__wrap(ret); + } + /** + * Gets the round length as a JsValue. + * @returns {any} + */ + get round_length() { + const ret = wasm.getnodestatusresult_round_length(this.__wbg_ptr); + return takeObject(ret); + } + /** + * Gets information about the next upgrade as a JsValue. + * @returns {any} + */ + get next_upgrade() { + const ret = wasm.getnodestatusresult_next_upgrade(this.__wbg_ptr); + return takeObject(ret); + } + /** + * Gets the build version as a String. + * @returns {string} + */ + get build_version() { + let deferred1_0; + let deferred1_1; + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.getnodestatusresult_build_version(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + deferred1_0 = r0; + deferred1_1 = r1; + return getStringFromWasm0(r0, r1); + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + wasm.__wbindgen_free(deferred1_0, deferred1_1, 1); + } + } + /** + * Gets the uptime information as a JsValue. + * @returns {any} + */ + get uptime() { + const ret = wasm.getnodestatusresult_uptime(this.__wbg_ptr); + return takeObject(ret); + } + /** + * Gets the reactor state information as a JsValue. + * @returns {any} + */ + get reactor_state() { + const ret = wasm.getnodestatusresult_reactor_state(this.__wbg_ptr); + return takeObject(ret); + } + /** + * Gets the last progress information as a JsValue. + * @returns {any} + */ + get last_progress() { + const ret = wasm.getnodestatusresult_last_progress(this.__wbg_ptr); + return takeObject(ret); + } + /** + * Gets the available block range as a JsValue. + * @returns {any} + */ + get available_block_range() { + const ret = wasm.getnodestatusresult_available_block_range(this.__wbg_ptr); + return takeObject(ret); + } + /** + * Gets the block sync information as a JsValue. + * @returns {any} + */ + get block_sync() { + const ret = wasm.getnodestatusresult_block_sync(this.__wbg_ptr); + return takeObject(ret); + } + /** + * Converts the GetNodeStatusResult to a JsValue. + * @returns {any} + */ + toJson() { + const ret = wasm.getnodestatusresult_toJson(this.__wbg_ptr); + return takeObject(ret); + } +} +/** +* A wrapper for the `GetPeersResult` type from the Casper client. +*/ +export class GetPeersResult { + + static __wrap(ptr) { + ptr = ptr >>> 0; + const obj = Object.create(GetPeersResult.prototype); + obj.__wbg_ptr = ptr; + + return obj; + } + + __destroy_into_raw() { + const ptr = this.__wbg_ptr; + this.__wbg_ptr = 0; + + return ptr; + } + + free() { + const ptr = this.__destroy_into_raw(); + wasm.__wbg_getpeersresult_free(ptr); + } + /** + * Gets the API version as a JSON value. + * @returns {any} + */ + get api_version() { + const ret = wasm.getpeersresult_api_version(this.__wbg_ptr); + return takeObject(ret); + } + /** + * Gets the peers as a JSON value. + * @returns {any} + */ + get peers() { + const ret = wasm.getpeersresult_peers(this.__wbg_ptr); + return takeObject(ret); + } + /** + * Converts the result to JSON format as a JavaScript value. + * @returns {any} + */ + toJson() { + const ret = wasm.getpeersresult_toJson(this.__wbg_ptr); + return takeObject(ret); + } +} +/** +* Wrapper struct for the `GetStateRootHashResult` from casper_client. +*/ +export class GetStateRootHashResult { + + static __wrap(ptr) { + ptr = ptr >>> 0; + const obj = Object.create(GetStateRootHashResult.prototype); + obj.__wbg_ptr = ptr; + + return obj; + } + + __destroy_into_raw() { + const ptr = this.__wbg_ptr; + this.__wbg_ptr = 0; + + return ptr; + } + + free() { + const ptr = this.__destroy_into_raw(); + wasm.__wbg_getstateroothashresult_free(ptr); + } + /** + * Gets the API version as a JsValue. + * @returns {any} + */ + get api_version() { + const ret = wasm.getstateroothashresult_api_version(this.__wbg_ptr); + return takeObject(ret); + } + /** + * Gets the state root hash as an Option. + * @returns {Digest | undefined} + */ + get state_root_hash() { + const ret = wasm.getstateroothashresult_state_root_hash(this.__wbg_ptr); + return ret === 0 ? undefined : Digest.__wrap(ret); + } + /** + * Gets the state root hash as a String. + * @returns {string} + */ + get state_root_hash_as_string() { + let deferred1_0; + let deferred1_1; + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.getstateroothashresult_state_root_hash_as_string(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + deferred1_0 = r0; + deferred1_1 = r1; + return getStringFromWasm0(r0, r1); + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + wasm.__wbindgen_free(deferred1_0, deferred1_1, 1); + } + } + /** + * Converts the GetStateRootHashResult to a JsValue. + * @returns {any} + */ + toJson() { + const ret = wasm.getstateroothashresult_toJson(this.__wbg_ptr); + return takeObject(ret); + } +} +/** +* Wrapper struct for the `GetValidatorChangesResult` from casper_client. +*/ +export class GetValidatorChangesResult { + + static __wrap(ptr) { + ptr = ptr >>> 0; + const obj = Object.create(GetValidatorChangesResult.prototype); + obj.__wbg_ptr = ptr; + + return obj; + } + + __destroy_into_raw() { + const ptr = this.__wbg_ptr; + this.__wbg_ptr = 0; + + return ptr; + } + + free() { + const ptr = this.__destroy_into_raw(); + wasm.__wbg_getvalidatorchangesresult_free(ptr); + } + /** + * Gets the API version as a JsValue. + * @returns {any} + */ + get api_version() { + const ret = wasm.getvalidatorchangesresult_api_version(this.__wbg_ptr); + return takeObject(ret); + } + /** + * Gets the validator changes as a JsValue. + * @returns {any} + */ + get changes() { + const ret = wasm.getvalidatorchangesresult_changes(this.__wbg_ptr); + return takeObject(ret); + } + /** + * Converts the GetValidatorChangesResult to a JsValue. + * @returns {any} + */ + toJson() { + const ret = wasm.getvalidatorchangesresult_toJson(this.__wbg_ptr); + return takeObject(ret); + } +} +/** +*/ +export class GlobalStateIdentifier { + + static __wrap(ptr) { + ptr = ptr >>> 0; + const obj = Object.create(GlobalStateIdentifier.prototype); + obj.__wbg_ptr = ptr; + + return obj; + } + + __destroy_into_raw() { + const ptr = this.__wbg_ptr; + this.__wbg_ptr = 0; + + return ptr; + } + + free() { + const ptr = this.__destroy_into_raw(); + wasm.__wbg_globalstateidentifier_free(ptr); + } + /** + * @param {GlobalStateIdentifier} global_state_identifier + */ + constructor(global_state_identifier) { + _assertClass(global_state_identifier, GlobalStateIdentifier); + var ptr0 = global_state_identifier.__destroy_into_raw(); + const ret = wasm.blockidentifier_new(ptr0); + return GlobalStateIdentifier.__wrap(ret); + } + /** + * @param {BlockHash} block_hash + * @returns {GlobalStateIdentifier} + */ + static fromBlockHash(block_hash) { + _assertClass(block_hash, BlockHash); + var ptr0 = block_hash.__destroy_into_raw(); + const ret = wasm.blockidentifier_from_hash(ptr0); + return GlobalStateIdentifier.__wrap(ret); + } + /** + * @param {bigint} block_height + * @returns {GlobalStateIdentifier} + */ + static fromBlockHeight(block_height) { + const ret = wasm.blockidentifier_fromHeight(block_height); + return GlobalStateIdentifier.__wrap(ret); + } + /** + * @param {Digest} state_root_hash + * @returns {GlobalStateIdentifier} + */ + static fromStateRootHash(state_root_hash) { + _assertClass(state_root_hash, Digest); + var ptr0 = state_root_hash.__destroy_into_raw(); + const ret = wasm.globalstateidentifier_fromStateRootHash(ptr0); + return GlobalStateIdentifier.__wrap(ret); + } + /** + * @returns {any} + */ + toJson() { + const ret = wasm.globalstateidentifier_toJson(this.__wbg_ptr); + return takeObject(ret); + } +} +/** +*/ +export class HashAddr { + + static __wrap(ptr) { + ptr = ptr >>> 0; + const obj = Object.create(HashAddr.prototype); + obj.__wbg_ptr = ptr; + + return obj; + } + + __destroy_into_raw() { + const ptr = this.__wbg_ptr; + this.__wbg_ptr = 0; + + return ptr; + } + + free() { + const ptr = this.__destroy_into_raw(); + wasm.__wbg_hashaddr_free(ptr); + } + /** + * @param {Uint8Array} bytes + */ + constructor(bytes) { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc); + const len0 = WASM_VECTOR_LEN; + wasm.hashaddr_new(retptr, ptr0, len0); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + var r2 = getInt32Memory0()[retptr / 4 + 2]; + if (r2) { + throw takeObject(r1); + } + return HashAddr.__wrap(r0); + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } +} +/** +*/ +export class Key { + + static __wrap(ptr) { + ptr = ptr >>> 0; + const obj = Object.create(Key.prototype); + obj.__wbg_ptr = ptr; + + return obj; + } + + __destroy_into_raw() { + const ptr = this.__wbg_ptr; + this.__wbg_ptr = 0; + + return ptr; + } + + free() { + const ptr = this.__destroy_into_raw(); + wasm.__wbg_key_free(ptr); + } + /** + * @param {Key} key + */ + constructor(key) { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + _assertClass(key, Key); + var ptr0 = key.__destroy_into_raw(); + wasm.key_new(retptr, ptr0); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + var r2 = getInt32Memory0()[retptr / 4 + 2]; + if (r2) { + throw takeObject(r1); + } + return Key.__wrap(r0); + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @returns {any} + */ + toJson() { + const ret = wasm.key_toJson(this.__wbg_ptr); + return takeObject(ret); + } + /** + * @param {URef} key + * @returns {Key} + */ + static fromURef(key) { + _assertClass(key, URef); + var ptr0 = key.__destroy_into_raw(); + const ret = wasm.key_fromURef(ptr0); + return Key.__wrap(ret); + } + /** + * @param {DeployHash} key + * @returns {Key} + */ + static fromDeployInfo(key) { + _assertClass(key, DeployHash); + var ptr0 = key.__destroy_into_raw(); + const ret = wasm.key_fromDeployInfo(ptr0); + return Key.__wrap(ret); + } + /** + * @param {AccountHash} key + * @returns {Key} + */ + static fromAccount(key) { + _assertClass(key, AccountHash); + var ptr0 = key.__destroy_into_raw(); + const ret = wasm.key_fromAccount(ptr0); + return Key.__wrap(ret); + } + /** + * @param {HashAddr} key + * @returns {Key} + */ + static fromHash(key) { + _assertClass(key, HashAddr); + var ptr0 = key.__destroy_into_raw(); + const ret = wasm.key_fromHash(ptr0); + return Key.__wrap(ret); + } + /** + * @param {Uint8Array} key + * @returns {TransferAddr} + */ + static fromTransfer(key) { + const ptr0 = passArray8ToWasm0(key, wasm.__wbindgen_malloc); + const len0 = WASM_VECTOR_LEN; + const ret = wasm.key_fromTransfer(ptr0, len0); + return TransferAddr.__wrap(ret); + } + /** + * @param {EraId} key + * @returns {Key} + */ + static fromEraInfo(key) { + _assertClass(key, EraId); + var ptr0 = key.__destroy_into_raw(); + const ret = wasm.key_fromEraInfo(ptr0); + return Key.__wrap(ret); + } + /** + * @param {URefAddr} key + * @returns {Key} + */ + static fromBalance(key) { + _assertClass(key, URefAddr); + var ptr0 = key.__destroy_into_raw(); + const ret = wasm.key_fromBalance(ptr0); + return Key.__wrap(ret); + } + /** + * @param {AccountHash} key + * @returns {Key} + */ + static fromBid(key) { + _assertClass(key, AccountHash); + var ptr0 = key.__destroy_into_raw(); + const ret = wasm.key_fromBid(ptr0); + return Key.__wrap(ret); + } + /** + * @param {AccountHash} key + * @returns {Key} + */ + static fromWithdraw(key) { + _assertClass(key, AccountHash); + var ptr0 = key.__destroy_into_raw(); + const ret = wasm.key_fromWithdraw(ptr0); + return Key.__wrap(ret); + } + /** + * @param {DictionaryAddr} key + * @returns {Key} + */ + static fromDictionaryAddr(key) { + _assertClass(key, DictionaryAddr); + var ptr0 = key.__destroy_into_raw(); + const ret = wasm.key_fromDictionaryAddr(ptr0); + return Key.__wrap(ret); + } + /** + * @returns {DictionaryAddr | undefined} + */ + asDictionaryAddr() { + const ret = wasm.key_asDictionaryAddr(this.__wbg_ptr); + return ret === 0 ? undefined : DictionaryAddr.__wrap(ret); + } + /** + * @returns {Key} + */ + static fromSystemContractRegistry() { + const ret = wasm.key_fromSystemContractRegistry(); + return Key.__wrap(ret); + } + /** + * @returns {Key} + */ + static fromEraSummary() { + const ret = wasm.key_fromEraSummary(); + return Key.__wrap(ret); + } + /** + * @param {AccountHash} key + * @returns {Key} + */ + static fromUnbond(key) { + _assertClass(key, AccountHash); + var ptr0 = key.__destroy_into_raw(); + const ret = wasm.key_fromUnbond(ptr0); + return Key.__wrap(ret); + } + /** + * @returns {Key} + */ + static fromChainspecRegistry() { + const ret = wasm.key_fromChainspecRegistry(); + return Key.__wrap(ret); + } + /** + * @returns {Key} + */ + static fromChecksumRegistry() { + const ret = wasm.key_fromChecksumRegistry(); + return Key.__wrap(ret); + } + /** + * @returns {string} + */ + toFormattedString() { + let deferred1_0; + let deferred1_1; + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.key_toFormattedString(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + deferred1_0 = r0; + deferred1_1 = r1; + return getStringFromWasm0(r0, r1); + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + wasm.__wbindgen_free(deferred1_0, deferred1_1, 1); + } + } + /** + * @param {any} input + * @returns {Key} + */ + static fromFormattedString(input) { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.key_fromFormattedString(retptr, addHeapObject(input)); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + var r2 = getInt32Memory0()[retptr / 4 + 2]; + if (r2) { + throw takeObject(r1); + } + return Key.__wrap(r0); + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {URef} seed_uref + * @param {Uint8Array} dictionary_item_key + * @returns {Key} + */ + static fromDictionaryKey(seed_uref, dictionary_item_key) { + _assertClass(seed_uref, URef); + var ptr0 = seed_uref.__destroy_into_raw(); + const ptr1 = passArray8ToWasm0(dictionary_item_key, wasm.__wbindgen_malloc); + const len1 = WASM_VECTOR_LEN; + const ret = wasm.key_fromDictionaryKey(ptr0, ptr1, len1); + return Key.__wrap(ret); + } + /** + * @returns {boolean} + */ + isDictionaryKey() { + const ret = wasm.key_isDictionaryKey(this.__wbg_ptr); + return ret !== 0; + } + /** + * @returns {AccountHash | undefined} + */ + intoAccount() { + const ptr = this.__destroy_into_raw(); + const ret = wasm.key_intoAccount(ptr); + return ret === 0 ? undefined : AccountHash.__wrap(ret); + } + /** + * @returns {HashAddr | undefined} + */ + intoHash() { + const ptr = this.__destroy_into_raw(); + const ret = wasm.key_intoHash(ptr); + return ret === 0 ? undefined : HashAddr.__wrap(ret); + } + /** + * @returns {URefAddr | undefined} + */ + asBalance() { + const ret = wasm.key_asBalance(this.__wbg_ptr); + return ret === 0 ? undefined : URefAddr.__wrap(ret); + } + /** + * @returns {URef | undefined} + */ + intoURef() { + const ptr = this.__destroy_into_raw(); + const ret = wasm.key_intoURef(ptr); + return ret === 0 ? undefined : URef.__wrap(ret); + } + /** + * @returns {Key | undefined} + */ + urefToHash() { + const ret = wasm.key_urefToHash(this.__wbg_ptr); + return ret === 0 ? undefined : Key.__wrap(ret); + } + /** + * @returns {Key | undefined} + */ + withdrawToUnbond() { + const ret = wasm.key_withdrawToUnbond(this.__wbg_ptr); + return ret === 0 ? undefined : Key.__wrap(ret); + } +} +/** +* Wrapper struct for the `ListRpcsResult` from casper_client. +*/ +export class ListRpcsResult { + + static __wrap(ptr) { + ptr = ptr >>> 0; + const obj = Object.create(ListRpcsResult.prototype); + obj.__wbg_ptr = ptr; + + return obj; + } + + __destroy_into_raw() { + const ptr = this.__wbg_ptr; + this.__wbg_ptr = 0; + + return ptr; + } + + free() { + const ptr = this.__destroy_into_raw(); + wasm.__wbg_listrpcsresult_free(ptr); + } + /** + * Gets the API version as a JsValue. + * @returns {any} + */ + get api_version() { + const ret = wasm.listrpcsresult_api_version(this.__wbg_ptr); + return takeObject(ret); + } + /** + * Gets the name of the RPC. + * @returns {string} + */ + get name() { + let deferred1_0; + let deferred1_1; + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.listrpcsresult_name(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + deferred1_0 = r0; + deferred1_1 = r1; + return getStringFromWasm0(r0, r1); + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + wasm.__wbindgen_free(deferred1_0, deferred1_1, 1); + } + } + /** + * Gets the schema of the RPC as a JsValue. + * @returns {any} + */ + get schema() { + const ret = wasm.listrpcsresult_schema(this.__wbg_ptr); + return takeObject(ret); + } + /** + * Converts the ListRpcsResult to a JsValue. + * @returns {any} + */ + toJson() { + const ret = wasm.listrpcsresult_toJson(this.__wbg_ptr); + return takeObject(ret); + } +} +/** +*/ +export class Path { + + static __wrap(ptr) { + ptr = ptr >>> 0; + const obj = Object.create(Path.prototype); + obj.__wbg_ptr = ptr; + + return obj; + } + + __destroy_into_raw() { + const ptr = this.__wbg_ptr; + this.__wbg_ptr = 0; + + return ptr; + } + + free() { + const ptr = this.__destroy_into_raw(); + wasm.__wbg_path_free(ptr); + } + /** + * @param {any} path + */ + constructor(path) { + const ret = wasm.path_new(addHeapObject(path)); + return Path.__wrap(ret); + } + /** + * @param {any} path + * @returns {Path} + */ + static fromArray(path) { + const ret = wasm.path_fromArray(addHeapObject(path)); + return Path.__wrap(ret); + } + /** + * @returns {any} + */ + toJson() { + const ret = wasm.path_toJson(this.__wbg_ptr); + return takeObject(ret); + } + /** + * @returns {string} + */ + toString() { + let deferred1_0; + let deferred1_1; + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.path_toString(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + deferred1_0 = r0; + deferred1_1 = r1; + return getStringFromWasm0(r0, r1); + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + wasm.__wbindgen_free(deferred1_0, deferred1_1, 1); + } + } + /** + * @returns {boolean} + */ + is_empty() { + const ret = wasm.path_is_empty(this.__wbg_ptr); + return ret !== 0; + } +} +/** +*/ +export class PaymentStrParams { + + static __wrap(ptr) { + ptr = ptr >>> 0; + const obj = Object.create(PaymentStrParams.prototype); + obj.__wbg_ptr = ptr; + + return obj; + } + + __destroy_into_raw() { + const ptr = this.__wbg_ptr; + this.__wbg_ptr = 0; + + return ptr; + } + + free() { + const ptr = this.__destroy_into_raw(); + wasm.__wbg_paymentstrparams_free(ptr); + } + /** + * @param {string | undefined} payment_amount + * @param {string | undefined} payment_hash + * @param {string | undefined} payment_name + * @param {string | undefined} payment_package_hash + * @param {string | undefined} payment_package_name + * @param {string | undefined} payment_path + * @param {Array | undefined} payment_args_simple + * @param {string | undefined} payment_args_json + * @param {string | undefined} payment_args_complex + * @param {string | undefined} payment_version + * @param {string | undefined} payment_entry_point + */ + constructor(payment_amount, payment_hash, payment_name, payment_package_hash, payment_package_name, payment_path, payment_args_simple, payment_args_json, payment_args_complex, payment_version, payment_entry_point) { + var ptr0 = isLikeNone(payment_amount) ? 0 : passStringToWasm0(payment_amount, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + var ptr1 = isLikeNone(payment_hash) ? 0 : passStringToWasm0(payment_hash, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len1 = WASM_VECTOR_LEN; + var ptr2 = isLikeNone(payment_name) ? 0 : passStringToWasm0(payment_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len2 = WASM_VECTOR_LEN; + var ptr3 = isLikeNone(payment_package_hash) ? 0 : passStringToWasm0(payment_package_hash, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len3 = WASM_VECTOR_LEN; + var ptr4 = isLikeNone(payment_package_name) ? 0 : passStringToWasm0(payment_package_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len4 = WASM_VECTOR_LEN; + var ptr5 = isLikeNone(payment_path) ? 0 : passStringToWasm0(payment_path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len5 = WASM_VECTOR_LEN; + var ptr6 = isLikeNone(payment_args_json) ? 0 : passStringToWasm0(payment_args_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len6 = WASM_VECTOR_LEN; + var ptr7 = isLikeNone(payment_args_complex) ? 0 : passStringToWasm0(payment_args_complex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len7 = WASM_VECTOR_LEN; + var ptr8 = isLikeNone(payment_version) ? 0 : passStringToWasm0(payment_version, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len8 = WASM_VECTOR_LEN; + var ptr9 = isLikeNone(payment_entry_point) ? 0 : passStringToWasm0(payment_entry_point, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len9 = WASM_VECTOR_LEN; + const ret = wasm.paymentstrparams_new(ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, ptr4, len4, ptr5, len5, isLikeNone(payment_args_simple) ? 0 : addHeapObject(payment_args_simple), ptr6, len6, ptr7, len7, ptr8, len8, ptr9, len9); + return PaymentStrParams.__wrap(ret); + } + /** + * @returns {string | undefined} + */ + get payment_amount() { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.paymentstrparams_payment_amount(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + let v1; + if (r0 !== 0) { + v1 = getStringFromWasm0(r0, r1).slice(); + wasm.__wbindgen_free(r0, r1 * 1); + } + return v1; + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string} payment_amount + */ + set payment_amount(payment_amount) { + const ptr0 = passStringToWasm0(payment_amount, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + wasm.paymentstrparams_set_payment_amount(this.__wbg_ptr, ptr0, len0); + } + /** + * @returns {string | undefined} + */ + get payment_hash() { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.paymentstrparams_payment_hash(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + let v1; + if (r0 !== 0) { + v1 = getStringFromWasm0(r0, r1).slice(); + wasm.__wbindgen_free(r0, r1 * 1); + } + return v1; + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string} payment_hash + */ + set payment_hash(payment_hash) { + const ptr0 = passStringToWasm0(payment_hash, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + wasm.paymentstrparams_set_payment_hash(this.__wbg_ptr, ptr0, len0); + } + /** + * @returns {string | undefined} + */ + get payment_name() { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.paymentstrparams_payment_name(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + let v1; + if (r0 !== 0) { + v1 = getStringFromWasm0(r0, r1).slice(); + wasm.__wbindgen_free(r0, r1 * 1); + } + return v1; + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string} payment_name + */ + set payment_name(payment_name) { + const ptr0 = passStringToWasm0(payment_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + wasm.paymentstrparams_set_payment_name(this.__wbg_ptr, ptr0, len0); + } + /** + * @returns {string | undefined} + */ + get payment_package_hash() { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.paymentstrparams_payment_package_hash(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + let v1; + if (r0 !== 0) { + v1 = getStringFromWasm0(r0, r1).slice(); + wasm.__wbindgen_free(r0, r1 * 1); + } + return v1; + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string} payment_package_hash + */ + set payment_package_hash(payment_package_hash) { + const ptr0 = passStringToWasm0(payment_package_hash, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + wasm.paymentstrparams_set_payment_package_hash(this.__wbg_ptr, ptr0, len0); + } + /** + * @returns {string | undefined} + */ + get payment_package_name() { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.paymentstrparams_payment_package_name(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + let v1; + if (r0 !== 0) { + v1 = getStringFromWasm0(r0, r1).slice(); + wasm.__wbindgen_free(r0, r1 * 1); + } + return v1; + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string} payment_package_name + */ + set payment_package_name(payment_package_name) { + const ptr0 = passStringToWasm0(payment_package_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + wasm.paymentstrparams_set_payment_package_name(this.__wbg_ptr, ptr0, len0); + } + /** + * @returns {string | undefined} + */ + get payment_path() { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.paymentstrparams_payment_path(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + let v1; + if (r0 !== 0) { + v1 = getStringFromWasm0(r0, r1).slice(); + wasm.__wbindgen_free(r0, r1 * 1); + } + return v1; + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string} payment_path + */ + set payment_path(payment_path) { + const ptr0 = passStringToWasm0(payment_path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + wasm.paymentstrparams_set_payment_path(this.__wbg_ptr, ptr0, len0); + } + /** + * @returns {Array | undefined} + */ + get payment_args_simple() { + const ret = wasm.paymentstrparams_payment_args_simple(this.__wbg_ptr); + return takeObject(ret); + } + /** + * @param {Array} payment_args_simple + */ + set payment_args_simple(payment_args_simple) { + wasm.paymentstrparams_set_payment_args_simple(this.__wbg_ptr, addHeapObject(payment_args_simple)); + } + /** + * @returns {string | undefined} + */ + get payment_args_json() { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.paymentstrparams_payment_args_json(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + let v1; + if (r0 !== 0) { + v1 = getStringFromWasm0(r0, r1).slice(); + wasm.__wbindgen_free(r0, r1 * 1); + } + return v1; + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string} payment_args_json + */ + set payment_args_json(payment_args_json) { + const ptr0 = passStringToWasm0(payment_args_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + wasm.paymentstrparams_set_payment_args_json(this.__wbg_ptr, ptr0, len0); + } + /** + * @returns {string | undefined} + */ + get payment_args_complex() { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.paymentstrparams_payment_args_complex(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + let v1; + if (r0 !== 0) { + v1 = getStringFromWasm0(r0, r1).slice(); + wasm.__wbindgen_free(r0, r1 * 1); + } + return v1; + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string} payment_args_complex + */ + set payment_args_complex(payment_args_complex) { + const ptr0 = passStringToWasm0(payment_args_complex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + wasm.paymentstrparams_set_payment_args_complex(this.__wbg_ptr, ptr0, len0); + } + /** + * @returns {string | undefined} + */ + get payment_version() { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.paymentstrparams_payment_version(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + let v1; + if (r0 !== 0) { + v1 = getStringFromWasm0(r0, r1).slice(); + wasm.__wbindgen_free(r0, r1 * 1); + } + return v1; + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string} payment_version + */ + set payment_version(payment_version) { + const ptr0 = passStringToWasm0(payment_version, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + wasm.paymentstrparams_set_payment_version(this.__wbg_ptr, ptr0, len0); + } + /** + * @returns {string | undefined} + */ + get payment_entry_point() { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.paymentstrparams_payment_entry_point(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + let v1; + if (r0 !== 0) { + v1 = getStringFromWasm0(r0, r1).slice(); + wasm.__wbindgen_free(r0, r1 * 1); + } + return v1; + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string} payment_entry_point + */ + set payment_entry_point(payment_entry_point) { + const ptr0 = passStringToWasm0(payment_entry_point, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + wasm.paymentstrparams_set_payment_entry_point(this.__wbg_ptr, ptr0, len0); + } +} +/** +*/ +export class PeerEntry { + + __destroy_into_raw() { + const ptr = this.__wbg_ptr; + this.__wbg_ptr = 0; + + return ptr; + } + + free() { + const ptr = this.__destroy_into_raw(); + wasm.__wbg_peerentry_free(ptr); + } + /** + * @returns {string} + */ + get node_id() { + let deferred1_0; + let deferred1_1; + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.peerentry_node_id(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + deferred1_0 = r0; + deferred1_1 = r1; + return getStringFromWasm0(r0, r1); + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + wasm.__wbindgen_free(deferred1_0, deferred1_1, 1); + } + } + /** + * @returns {string} + */ + get address() { + let deferred1_0; + let deferred1_1; + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.peerentry_address(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + deferred1_0 = r0; + deferred1_1 = r1; + return getStringFromWasm0(r0, r1); + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + wasm.__wbindgen_free(deferred1_0, deferred1_1, 1); + } + } +} +/** +*/ +export class PublicKey { + + static __wrap(ptr) { + ptr = ptr >>> 0; + const obj = Object.create(PublicKey.prototype); + obj.__wbg_ptr = ptr; + + return obj; + } + + __destroy_into_raw() { + const ptr = this.__wbg_ptr; + this.__wbg_ptr = 0; + + return ptr; + } + + free() { + const ptr = this.__destroy_into_raw(); + wasm.__wbg_publickey_free(ptr); + } + /** + * @param {string} public_key_hex_str + */ + constructor(public_key_hex_str) { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + const ptr0 = passStringToWasm0(public_key_hex_str, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + wasm.publickey_new(retptr, ptr0, len0); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + var r2 = getInt32Memory0()[retptr / 4 + 2]; + if (r2) { + throw takeObject(r1); + } + return PublicKey.__wrap(r0); + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {Uint8Array} bytes + * @returns {PublicKey} + */ + static fromUint8Array(bytes) { + const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc); + const len0 = WASM_VECTOR_LEN; + const ret = wasm.publickey_fromUint8Array(ptr0, len0); + return PublicKey.__wrap(ret); + } + /** + * @returns {AccountHash} + */ + toAccountHash() { + const ret = wasm.publickey_toAccountHash(this.__wbg_ptr); + return AccountHash.__wrap(ret); + } + /** + * @returns {URef} + */ + toPurseUref() { + const ret = wasm.publickey_toPurseUref(this.__wbg_ptr); + return URef.__wrap(ret); + } + /** + * @returns {any} + */ + toJson() { + const ret = wasm.publickey_toJson(this.__wbg_ptr); + return takeObject(ret); + } +} +/** +*/ +export class PurseIdentifier { + + static __wrap(ptr) { + ptr = ptr >>> 0; + const obj = Object.create(PurseIdentifier.prototype); + obj.__wbg_ptr = ptr; + + return obj; + } + + __destroy_into_raw() { + const ptr = this.__wbg_ptr; + this.__wbg_ptr = 0; + + return ptr; + } + + free() { + const ptr = this.__destroy_into_raw(); + wasm.__wbg_purseidentifier_free(ptr); + } + /** + * @param {PublicKey} key + */ + constructor(key) { + _assertClass(key, PublicKey); + var ptr0 = key.__destroy_into_raw(); + const ret = wasm.purseidentifier_fromPublicKey(ptr0); + return PurseIdentifier.__wrap(ret); + } + /** + * @param {AccountHash} account_hash + * @returns {PurseIdentifier} + */ + static fromAccountHash(account_hash) { + _assertClass(account_hash, AccountHash); + var ptr0 = account_hash.__destroy_into_raw(); + const ret = wasm.purseidentifier_fromAccountHash(ptr0); + return PurseIdentifier.__wrap(ret); + } + /** + * @param {URef} uref + * @returns {PurseIdentifier} + */ + static fromURef(uref) { + _assertClass(uref, URef); + var ptr0 = uref.__destroy_into_raw(); + const ret = wasm.purseidentifier_fromURef(ptr0); + return PurseIdentifier.__wrap(ret); + } +} +/** +*/ +export class PutDeployResult { + + static __wrap(ptr) { + ptr = ptr >>> 0; + const obj = Object.create(PutDeployResult.prototype); + obj.__wbg_ptr = ptr; + + return obj; + } + + __destroy_into_raw() { + const ptr = this.__wbg_ptr; + this.__wbg_ptr = 0; + + return ptr; + } + + free() { + const ptr = this.__destroy_into_raw(); + wasm.__wbg_putdeployresult_free(ptr); + } + /** + * Gets the API version as a JavaScript value. + * @returns {any} + */ + get api_version() { + const ret = wasm.putdeployresult_api_version(this.__wbg_ptr); + return takeObject(ret); + } + /** + * Gets the deploy hash associated with this result. + * @returns {DeployHash} + */ + get deploy_hash() { + const ret = wasm.putdeployresult_deploy_hash(this.__wbg_ptr); + return DeployHash.__wrap(ret); + } + /** + * Converts PutDeployResult to a JavaScript object. + * @returns {any} + */ + toJson() { + const ret = wasm.putdeployresult_toJson(this.__wbg_ptr); + return takeObject(ret); + } +} +/** +*/ +export class QueryBalanceResult { + + static __wrap(ptr) { + ptr = ptr >>> 0; + const obj = Object.create(QueryBalanceResult.prototype); + obj.__wbg_ptr = ptr; + + return obj; + } + + __destroy_into_raw() { + const ptr = this.__wbg_ptr; + this.__wbg_ptr = 0; + + return ptr; + } + + free() { + const ptr = this.__destroy_into_raw(); + wasm.__wbg_querybalanceresult_free(ptr); + } + /** + * Gets the API version as a JsValue. + * @returns {any} + */ + get api_version() { + const ret = wasm.querybalanceresult_api_version(this.__wbg_ptr); + return takeObject(ret); + } + /** + * Gets the balance as a JsValue. + * @returns {any} + */ + get balance() { + const ret = wasm.querybalanceresult_balance(this.__wbg_ptr); + return takeObject(ret); + } + /** + * Converts the QueryBalanceResult to a JsValue. + * @returns {any} + */ + toJson() { + const ret = wasm.querybalanceresult_toJson(this.__wbg_ptr); + return takeObject(ret); + } +} +/** +*/ +export class QueryGlobalStateResult { + + static __wrap(ptr) { + ptr = ptr >>> 0; + const obj = Object.create(QueryGlobalStateResult.prototype); + obj.__wbg_ptr = ptr; + + return obj; + } + + __destroy_into_raw() { + const ptr = this.__wbg_ptr; + this.__wbg_ptr = 0; + + return ptr; + } + + free() { + const ptr = this.__destroy_into_raw(); + wasm.__wbg_queryglobalstateresult_free(ptr); + } + /** + * Gets the API version as a JsValue. + * @returns {any} + */ + get api_version() { + const ret = wasm.queryglobalstateresult_api_version(this.__wbg_ptr); + return takeObject(ret); + } + /** + * Gets the block header as a JsValue. + * @returns {any} + */ + get block_header() { + const ret = wasm.queryglobalstateresult_block_header(this.__wbg_ptr); + return takeObject(ret); + } + /** + * Gets the stored value as a JsValue. + * @returns {any} + */ + get stored_value() { + const ret = wasm.queryglobalstateresult_stored_value(this.__wbg_ptr); + return takeObject(ret); + } + /** + * Gets the Merkle proof as a string. + * @returns {string} + */ + get merkle_proof() { + let deferred1_0; + let deferred1_1; + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.queryglobalstateresult_merkle_proof(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + deferred1_0 = r0; + deferred1_1 = r1; + return getStringFromWasm0(r0, r1); + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + wasm.__wbindgen_free(deferred1_0, deferred1_1, 1); + } + } + /** + * Converts the QueryGlobalStateResult to a JsValue. + * @returns {any} + */ + toJson() { + const ret = wasm.queryglobalstateresult_toJson(this.__wbg_ptr); + return takeObject(ret); + } +} +/** +*/ +export class SDK { + + static __wrap(ptr) { + ptr = ptr >>> 0; + const obj = Object.create(SDK.prototype); + obj.__wbg_ptr = ptr; + + return obj; + } + + __destroy_into_raw() { + const ptr = this.__wbg_ptr; + this.__wbg_ptr = 0; + + return ptr; + } + + free() { + const ptr = this.__destroy_into_raw(); + wasm.__wbg_sdk_free(ptr); + } + /** + * Parses deploy options from a JsValue. + * + * # Arguments + * + * * `options` - A JsValue containing deploy options to be parsed. + * + * # Returns + * + * Parsed deploy options as a `GetDeployOptions` struct. + * @param {any} options + * @returns {getDeployOptions} + */ + get_deploy_options(options) { + const ret = wasm.sdk_get_deploy_options(this.__wbg_ptr, addHeapObject(options)); + return getDeployOptions.__wrap(ret); + } + /** + * Retrieves deploy information using the provided options. + * + * # Arguments + * + * * `options` - An optional `GetDeployOptions` struct containing retrieval options. + * + * # Returns + * + * A `Result` containing either a `GetDeployResult` or an error. + * @param {getDeployOptions | undefined} options + * @returns {Promise} + */ + get_deploy(options) { + let ptr0 = 0; + if (!isLikeNone(options)) { + _assertClass(options, getDeployOptions); + ptr0 = options.__destroy_into_raw(); + } + const ret = wasm.sdk_get_deploy(this.__wbg_ptr, ptr0); + return takeObject(ret); + } + /** + * Retrieves deploy information using the provided options, alias for `get_deploy_js_alias`. + * @param {getDeployOptions | undefined} options + * @returns {Promise} + */ + info_get_deploy(options) { + let ptr0 = 0; + if (!isLikeNone(options)) { + _assertClass(options, getDeployOptions); + ptr0 = options.__destroy_into_raw(); + } + const ret = wasm.sdk_info_get_deploy(this.__wbg_ptr, ptr0); + return takeObject(ret); + } + /** + * @param {any} options + * @returns {getEraInfoOptions} + */ + get_era_info_options(options) { + const ret = wasm.sdk_get_era_info_options(this.__wbg_ptr, addHeapObject(options)); + return getEraInfoOptions.__wrap(ret); + } + /** + * @param {getEraInfoOptions | undefined} options + * @returns {Promise} + */ + get_era_info(options) { + let ptr0 = 0; + if (!isLikeNone(options)) { + _assertClass(options, getEraInfoOptions); + ptr0 = options.__destroy_into_raw(); + } + const ret = wasm.sdk_get_era_info(this.__wbg_ptr, ptr0); + return takeObject(ret); + } + /** + * Parses state root hash options from a JsValue. + * + * # Arguments + * + * * `options` - A JsValue containing state root hash options to be parsed. + * + * # Returns + * + * Parsed state root hash options as a `GetStateRootHashOptions` struct. + * @param {any} options + * @returns {getStateRootHashOptions} + */ + get_state_root_hash_options(options) { + const ret = wasm.sdk_get_state_root_hash_options(this.__wbg_ptr, addHeapObject(options)); + return getStateRootHashOptions.__wrap(ret); + } + /** + * Retrieves state root hash information using the provided options. + * + * # Arguments + * + * * `options` - An optional `GetStateRootHashOptions` struct containing retrieval options. + * + * # Returns + * + * A `Result` containing either a `GetStateRootHashResult` or a `JsError` in case of an error. + * + * # Errors + * + * Returns a `JsError` if there is an error during the retrieval process. + * @param {getStateRootHashOptions | undefined} options + * @returns {Promise} + */ + get_state_root_hash(options) { + let ptr0 = 0; + if (!isLikeNone(options)) { + _assertClass(options, getStateRootHashOptions); + ptr0 = options.__destroy_into_raw(); + } + const ret = wasm.sdk_get_state_root_hash(this.__wbg_ptr, ptr0); + return takeObject(ret); + } + /** + * Retrieves state root hash information using the provided options (alias for `get_state_root_hash_js_alias`). + * + * # Arguments + * + * * `options` - An optional `GetStateRootHashOptions` struct containing retrieval options. + * + * # Returns + * + * A `Result` containing either a `GetStateRootHashResult` or a `JsError` in case of an error. + * + * # Errors + * + * Returns a `JsError` if there is an error during the retrieval process. + * @param {getStateRootHashOptions | undefined} options + * @returns {Promise} + */ + chain_get_state_root_hash(options) { + let ptr0 = 0; + if (!isLikeNone(options)) { + _assertClass(options, getStateRootHashOptions); + ptr0 = options.__destroy_into_raw(); + } + const ret = wasm.sdk_chain_get_state_root_hash(this.__wbg_ptr, ptr0); + return takeObject(ret); + } + /** + * Get options for speculative execution from a JavaScript value. + * @param {any} options + * @returns {getSpeculativeExecOptions} + */ + speculative_exec_options(options) { + const ret = wasm.sdk_speculative_exec_options(this.__wbg_ptr, addHeapObject(options)); + return getSpeculativeExecOptions.__wrap(ret); + } + /** + * JS Alias for speculative execution. + * + * # Arguments + * + * * `options` - The options for speculative execution. + * + * # Returns + * + * A `Result` containing the result of the speculative execution or a `JsError` in case of an error. + * @param {getSpeculativeExecOptions | undefined} options + * @returns {Promise} + */ + speculative_exec(options) { + let ptr0 = 0; + if (!isLikeNone(options)) { + _assertClass(options, getSpeculativeExecOptions); + ptr0 = options.__destroy_into_raw(); + } + const ret = wasm.sdk_speculative_exec(this.__wbg_ptr, ptr0); + return takeObject(ret); + } + /** + * @param {string | undefined} node_address + * @param {number | undefined} verbosity + */ + constructor(node_address, verbosity) { + var ptr0 = isLikeNone(node_address) ? 0 : passStringToWasm0(node_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + const ret = wasm.sdk_new(ptr0, len0, isLikeNone(verbosity) ? 3 : verbosity); + return SDK.__wrap(ret); + } + /** + * @param {string | undefined} node_address + * @returns {string} + */ + getNodeAddress(node_address) { + let deferred2_0; + let deferred2_1; + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + var ptr0 = isLikeNone(node_address) ? 0 : passStringToWasm0(node_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + wasm.sdk_getNodeAddress(retptr, this.__wbg_ptr, ptr0, len0); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + deferred2_0 = r0; + deferred2_1 = r1; + return getStringFromWasm0(r0, r1); + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + wasm.__wbindgen_free(deferred2_0, deferred2_1, 1); + } + } + /** + * @param {string | undefined} node_address + */ + setNodeAddress(node_address) { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + var ptr0 = isLikeNone(node_address) ? 0 : passStringToWasm0(node_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + wasm.sdk_setNodeAddress(retptr, this.__wbg_ptr, ptr0, len0); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + if (r1) { + throw takeObject(r0); + } + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {number | undefined} verbosity + * @returns {number} + */ + getVerbosity(verbosity) { + const ret = wasm.sdk_getVerbosity(this.__wbg_ptr, isLikeNone(verbosity) ? 3 : verbosity); + return ret >>> 0; + } + /** + * @param {number | undefined} verbosity + */ + setVerbosity(verbosity) { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.sdk_setVerbosity(retptr, this.__wbg_ptr, isLikeNone(verbosity) ? 3 : verbosity); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + if (r1) { + throw takeObject(r0); + } + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * Puts a deploy using the provided options. + * + * # Arguments + * + * * `deploy` - The `Deploy` object to be sent. + * * `verbosity` - An optional `Verbosity` level for controlling the output verbosity. + * * `node_address` - An optional string specifying the node address to use for the request. + * + * # Returns + * + * A `Result` containing either a `PutDeployResult` or a `JsError` in case of an error. + * + * # Errors + * + * Returns a `JsError` if there is an error during the deploy process. + * @param {Deploy} deploy + * @param {number | undefined} verbosity + * @param {string | undefined} node_address + * @returns {Promise} + */ + put_deploy(deploy, verbosity, node_address) { + _assertClass(deploy, Deploy); + var ptr0 = deploy.__destroy_into_raw(); + var ptr1 = isLikeNone(node_address) ? 0 : passStringToWasm0(node_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len1 = WASM_VECTOR_LEN; + const ret = wasm.sdk_put_deploy(this.__wbg_ptr, ptr0, isLikeNone(verbosity) ? 3 : verbosity, ptr1, len1); + return takeObject(ret); + } + /** + * JS Alias for `put_deploy_js_alias`. + * + * This function provides an alternative name for `put_deploy_js_alias`. + * @param {Deploy} deploy + * @param {number | undefined} verbosity + * @param {string | undefined} node_address + * @returns {Promise} + */ + account_put_deploy(deploy, verbosity, node_address) { + _assertClass(deploy, Deploy); + var ptr0 = deploy.__destroy_into_raw(); + var ptr1 = isLikeNone(node_address) ? 0 : passStringToWasm0(node_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len1 = WASM_VECTOR_LEN; + const ret = wasm.sdk_account_put_deploy(this.__wbg_ptr, ptr0, isLikeNone(verbosity) ? 3 : verbosity, ptr1, len1); + return takeObject(ret); + } + /** + * JS Alias for `make_deploy`. + * + * # Arguments + * + * * `deploy_params` - The deploy parameters. + * * `session_params` - The session parameters. + * * `payment_params` - The payment parameters. + * + * # Returns + * + * A `Result` containing the created `Deploy` or a `JsError` in case of an error. + * @param {DeployStrParams} deploy_params + * @param {SessionStrParams} session_params + * @param {PaymentStrParams} payment_params + * @returns {Deploy} + */ + make_deploy(deploy_params, session_params, payment_params) { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + _assertClass(deploy_params, DeployStrParams); + var ptr0 = deploy_params.__destroy_into_raw(); + _assertClass(session_params, SessionStrParams); + var ptr1 = session_params.__destroy_into_raw(); + _assertClass(payment_params, PaymentStrParams); + var ptr2 = payment_params.__destroy_into_raw(); + wasm.sdk_make_deploy(retptr, this.__wbg_ptr, ptr0, ptr1, ptr2); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + var r2 = getInt32Memory0()[retptr / 4 + 2]; + if (r2) { + throw takeObject(r1); + } + return Deploy.__wrap(r0); + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * JS Alias for speculative transfer. + * + * # Arguments + * + * * `amount` - The amount to transfer. + * * `target_account` - The target account. + * * `transfer_id` - An optional transfer ID (defaults to a random number). + * * `deploy_params` - The deployment parameters. + * * `payment_params` - The payment parameters. + * * `maybe_block_id_as_string` - An optional block ID as a string. + * * `maybe_block_identifier` - An optional block identifier. + * * `verbosity` - The verbosity level for logging (optional). + * * `node_address` - The address of the node to connect to (optional). + * + * # Returns + * + * A `Result` containing the result of the speculative transfer or a `JsError` in case of an error. + * @param {string} amount + * @param {string} target_account + * @param {string | undefined} transfer_id + * @param {DeployStrParams} deploy_params + * @param {PaymentStrParams} payment_params + * @param {string | undefined} maybe_block_id_as_string + * @param {BlockIdentifier | undefined} maybe_block_identifier + * @param {number | undefined} verbosity + * @param {string | undefined} node_address + * @returns {Promise} + */ + speculative_transfer(amount, target_account, transfer_id, deploy_params, payment_params, maybe_block_id_as_string, maybe_block_identifier, verbosity, node_address) { + const ptr0 = passStringToWasm0(amount, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + const ptr1 = passStringToWasm0(target_account, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len1 = WASM_VECTOR_LEN; + var ptr2 = isLikeNone(transfer_id) ? 0 : passStringToWasm0(transfer_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len2 = WASM_VECTOR_LEN; + _assertClass(deploy_params, DeployStrParams); + var ptr3 = deploy_params.__destroy_into_raw(); + _assertClass(payment_params, PaymentStrParams); + var ptr4 = payment_params.__destroy_into_raw(); + var ptr5 = isLikeNone(maybe_block_id_as_string) ? 0 : passStringToWasm0(maybe_block_id_as_string, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len5 = WASM_VECTOR_LEN; + let ptr6 = 0; + if (!isLikeNone(maybe_block_identifier)) { + _assertClass(maybe_block_identifier, BlockIdentifier); + ptr6 = maybe_block_identifier.__destroy_into_raw(); + } + var ptr7 = isLikeNone(node_address) ? 0 : passStringToWasm0(node_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len7 = WASM_VECTOR_LEN; + const ret = wasm.sdk_speculative_transfer(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, ptr4, ptr5, len5, ptr6, isLikeNone(verbosity) ? 3 : verbosity, ptr7, len7); + return takeObject(ret); + } + /** + * JS Alias for `sign_deploy`. + * + * # Arguments + * + * * `deploy` - The deploy to sign. + * * `secret_key` - The secret key for signing. + * + * # Returns + * + * The signed `Deploy`. + * @param {Deploy} deploy + * @param {string} secret_key + * @returns {Deploy} + */ + sign_deploy(deploy, secret_key) { + _assertClass(deploy, Deploy); + var ptr0 = deploy.__destroy_into_raw(); + const ptr1 = passStringToWasm0(secret_key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len1 = WASM_VECTOR_LEN; + const ret = wasm.sdk_sign_deploy(this.__wbg_ptr, ptr0, ptr1, len1); + return Deploy.__wrap(ret); + } + /** + * Parses block transfers options from a JsValue. + * + * # Arguments + * + * * `options` - A JsValue containing block transfers options to be parsed. + * + * # Returns + * + * Parsed block transfers options as a `GetBlockTransfersOptions` struct. + * @param {any} options + * @returns {getBlockTransfersOptions} + */ + get_block_transfers_options(options) { + const ret = wasm.sdk_get_block_transfers_options(this.__wbg_ptr, addHeapObject(options)); + return getBlockTransfersOptions.__wrap(ret); + } + /** + * Retrieves block transfers information using the provided options. + * + * # Arguments + * + * * `options` - An optional `GetBlockTransfersOptions` struct containing retrieval options. + * + * # Returns + * + * A `Result` containing either a `GetBlockTransfersResult` or a `JsError` in case of an error. + * + * # Errors + * + * Returns a `JsError` if there is an error during the retrieval process. + * @param {getBlockTransfersOptions | undefined} options + * @returns {Promise} + */ + get_block_transfers(options) { + let ptr0 = 0; + if (!isLikeNone(options)) { + _assertClass(options, getBlockTransfersOptions); + ptr0 = options.__destroy_into_raw(); + } + const ret = wasm.sdk_get_block_transfers(this.__wbg_ptr, ptr0); + return takeObject(ret); + } + /** + * Parses query balance options from a JsValue. + * + * # Arguments + * + * * `options` - A JsValue containing query balance options to be parsed. + * + * # Returns + * + * Parsed query balance options as a `QueryBalanceOptions` struct. + * @param {any} options + * @returns {queryBalanceOptions} + */ + query_balance_options(options) { + const ret = wasm.sdk_query_balance_options(this.__wbg_ptr, addHeapObject(options)); + return queryBalanceOptions.__wrap(ret); + } + /** + * Retrieves balance information using the provided options. + * + * # Arguments + * + * * `options` - An optional `QueryBalanceOptions` struct containing retrieval options. + * + * # Returns + * + * A `Result` containing either a `QueryBalanceResult` or a `JsError` in case of an error. + * + * # Errors + * + * Returns a `JsError` if there is an error during the retrieval process. + * @param {queryBalanceOptions | undefined} options + * @returns {Promise} + */ + query_balance(options) { + let ptr0 = 0; + if (!isLikeNone(options)) { + _assertClass(options, queryBalanceOptions); + ptr0 = options.__destroy_into_raw(); + } + const ret = wasm.sdk_query_balance(this.__wbg_ptr, ptr0); + return takeObject(ret); + } + /** + * JavaScript alias for deploying with deserialized parameters. + * + * # Arguments + * + * * `deploy_params` - Deploy parameters. + * * `session_params` - Session parameters. + * * `payment_params` - Payment parameters. + * * `verbosity` - An optional verbosity level. + * * `node_address` - An optional node address. + * + * # Returns + * + * A result containing PutDeployResult or a JsError. + * @param {DeployStrParams} deploy_params + * @param {SessionStrParams} session_params + * @param {PaymentStrParams} payment_params + * @param {number | undefined} verbosity + * @param {string | undefined} node_address + * @returns {Promise} + */ + deploy(deploy_params, session_params, payment_params, verbosity, node_address) { + _assertClass(deploy_params, DeployStrParams); + var ptr0 = deploy_params.__destroy_into_raw(); + _assertClass(session_params, SessionStrParams); + var ptr1 = session_params.__destroy_into_raw(); + _assertClass(payment_params, PaymentStrParams); + var ptr2 = payment_params.__destroy_into_raw(); + var ptr3 = isLikeNone(node_address) ? 0 : passStringToWasm0(node_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len3 = WASM_VECTOR_LEN; + const ret = wasm.sdk_deploy(this.__wbg_ptr, ptr0, ptr1, ptr2, isLikeNone(verbosity) ? 3 : verbosity, ptr3, len3); + return takeObject(ret); + } + /** + * JS Alias for transferring funds. + * + * # Arguments + * + * * `amount` - The amount to transfer. + * * `target_account` - The target account. + * * `transfer_id` - An optional transfer ID (defaults to a random number). + * * `deploy_params` - The deployment parameters. + * * `payment_params` - The payment parameters. + * * `verbosity` - The verbosity level for logging (optional). + * * `node_address` - The address of the node to connect to (optional). + * + * # Returns + * + * A `Result` containing the result of the transfer or a `JsError` in case of an error. + * @param {string} amount + * @param {string} target_account + * @param {string | undefined} transfer_id + * @param {DeployStrParams} deploy_params + * @param {PaymentStrParams} payment_params + * @param {number | undefined} verbosity + * @param {string | undefined} node_address + * @returns {Promise} + */ + transfer(amount, target_account, transfer_id, deploy_params, payment_params, verbosity, node_address) { + const ptr0 = passStringToWasm0(amount, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + const ptr1 = passStringToWasm0(target_account, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len1 = WASM_VECTOR_LEN; + var ptr2 = isLikeNone(transfer_id) ? 0 : passStringToWasm0(transfer_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len2 = WASM_VECTOR_LEN; + _assertClass(deploy_params, DeployStrParams); + var ptr3 = deploy_params.__destroy_into_raw(); + _assertClass(payment_params, PaymentStrParams); + var ptr4 = payment_params.__destroy_into_raw(); + var ptr5 = isLikeNone(node_address) ? 0 : passStringToWasm0(node_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len5 = WASM_VECTOR_LEN; + const ret = wasm.sdk_transfer(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, ptr4, isLikeNone(verbosity) ? 3 : verbosity, ptr5, len5); + return takeObject(ret); + } + /** + * @param {any} options + * @returns {getAccountOptions} + */ + get_account_options(options) { + const ret = wasm.sdk_get_account_options(this.__wbg_ptr, addHeapObject(options)); + return getAccountOptions.__wrap(ret); + } + /** + * @param {getAccountOptions | undefined} options + * @returns {Promise} + */ + get_account(options) { + let ptr0 = 0; + if (!isLikeNone(options)) { + _assertClass(options, getAccountOptions); + ptr0 = options.__destroy_into_raw(); + } + const ret = wasm.sdk_get_account(this.__wbg_ptr, ptr0); + return takeObject(ret); + } + /** + * @param {getAccountOptions | undefined} options + * @returns {Promise} + */ + state_get_account_info(options) { + let ptr0 = 0; + if (!isLikeNone(options)) { + _assertClass(options, getAccountOptions); + ptr0 = options.__destroy_into_raw(); + } + const ret = wasm.sdk_state_get_account_info(this.__wbg_ptr, ptr0); + return takeObject(ret); + } + /** + * Parses era summary options from a JsValue. + * + * # Arguments + * + * * `options` - A JsValue containing era summary options to be parsed. + * + * # Returns + * + * Parsed era summary options as a `GetEraSummaryOptions` struct. + * @param {any} options + * @returns {getEraSummaryOptions} + */ + get_era_summary_options(options) { + const ret = wasm.sdk_get_era_summary_options(this.__wbg_ptr, addHeapObject(options)); + return getEraSummaryOptions.__wrap(ret); + } + /** + * Retrieves era summary information using the provided options. + * + * # Arguments + * + * * `options` - An optional `GetEraSummaryOptions` struct containing retrieval options. + * + * # Returns + * + * A `Result` containing either a `GetEraSummaryResult` or a `JsError` in case of an error. + * + * # Errors + * + * Returns a `JsError` if there is an error during the retrieval process. + * @param {getEraSummaryOptions | undefined} options + * @returns {Promise} + */ + get_era_summary(options) { + let ptr0 = 0; + if (!isLikeNone(options)) { + _assertClass(options, getEraSummaryOptions); + ptr0 = options.__destroy_into_raw(); + } + const ret = wasm.sdk_get_era_summary(this.__wbg_ptr, ptr0); + return takeObject(ret); + } + /** + * Retrieves node status information using the provided options. + * + * # Arguments + * + * * `verbosity` - An optional `Verbosity` level for controlling the output verbosity. + * * `node_address` - An optional string specifying the node address to use for the request. + * + * # Returns + * + * A `Result` containing either a `GetNodeStatusResult` or a `JsError` in case of an error. + * + * # Errors + * + * Returns a `JsError` if there is an error during the retrieval process. + * @param {number | undefined} verbosity + * @param {string | undefined} node_address + * @returns {Promise} + */ + get_node_status(verbosity, node_address) { + var ptr0 = isLikeNone(node_address) ? 0 : passStringToWasm0(node_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + const ret = wasm.sdk_get_node_status(this.__wbg_ptr, isLikeNone(verbosity) ? 3 : verbosity, ptr0, len0); + return takeObject(ret); + } + /** + * Retrieves validator changes using the provided options. + * + * # Arguments + * + * * `verbosity` - An optional `Verbosity` level for controlling the output verbosity. + * * `node_address` - An optional string specifying the node address to use for the request. + * + * # Returns + * + * A `Result` containing either a `GetValidatorChangesResult` or a `JsError` in case of an error. + * + * # Errors + * + * Returns a `JsError` if there is an error during the retrieval process. + * @param {number | undefined} verbosity + * @param {string | undefined} node_address + * @returns {Promise} + */ + get_validator_changes(verbosity, node_address) { + var ptr0 = isLikeNone(node_address) ? 0 : passStringToWasm0(node_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + const ret = wasm.sdk_get_validator_changes(this.__wbg_ptr, isLikeNone(verbosity) ? 3 : verbosity, ptr0, len0); + return takeObject(ret); + } + /** + * Lists available RPCs using the provided options. + * + * # Arguments + * + * * `verbosity` - An optional `Verbosity` level for controlling the output verbosity. + * * `node_address` - An optional string specifying the node address to use for the request. + * + * # Returns + * + * A `Result` containing either a `ListRpcsResult` or a `JsError` in case of an error. + * + * # Errors + * + * Returns a `JsError` if there is an error during the listing process. + * @param {number | undefined} verbosity + * @param {string | undefined} node_address + * @returns {Promise} + */ + list_rpcs(verbosity, node_address) { + var ptr0 = isLikeNone(node_address) ? 0 : passStringToWasm0(node_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + const ret = wasm.sdk_list_rpcs(this.__wbg_ptr, isLikeNone(verbosity) ? 3 : verbosity, ptr0, len0); + return takeObject(ret); + } + /** + * Parses query global state options from a JsValue. + * + * # Arguments + * + * * `options` - A JsValue containing query global state options to be parsed. + * + * # Returns + * + * Parsed query global state options as a `QueryGlobalStateOptions` struct. + * @param {any} options + * @returns {queryGlobalStateOptions} + */ + query_global_state_options(options) { + const ret = wasm.sdk_query_global_state_options(this.__wbg_ptr, addHeapObject(options)); + return queryGlobalStateOptions.__wrap(ret); + } + /** + * Retrieves global state information using the provided options. + * + * # Arguments + * + * * `options` - An optional `QueryGlobalStateOptions` struct containing retrieval options. + * + * # Returns + * + * A `Result` containing either a `QueryGlobalStateResult` or a `JsError` in case of an error. + * + * # Errors + * + * Returns a `JsError` if there is an error during the retrieval process. + * @param {queryGlobalStateOptions | undefined} options + * @returns {Promise} + */ + query_global_state(options) { + let ptr0 = 0; + if (!isLikeNone(options)) { + _assertClass(options, queryGlobalStateOptions); + ptr0 = options.__destroy_into_raw(); + } + const ret = wasm.sdk_query_global_state(this.__wbg_ptr, ptr0); + return takeObject(ret); + } + /** + * Parses auction info options from a JsValue. + * + * # Arguments + * + * * `options` - A JsValue containing auction info options to be parsed. + * + * # Returns + * + * Parsed auction info options as a `GetAuctionInfoOptions` struct. + * @param {any} options + * @returns {getAuctionInfoOptions} + */ + get_auction_info_options(options) { + const ret = wasm.sdk_get_auction_info_options(this.__wbg_ptr, addHeapObject(options)); + return getAuctionInfoOptions.__wrap(ret); + } + /** + * Retrieves auction information using the provided options. + * + * # Arguments + * + * * `options` - An optional `GetAuctionInfoOptions` struct containing retrieval options. + * + * # Returns + * + * A `Result` containing either a `GetAuctionInfoResult` or a `JsError` in case of an error. + * + * # Errors + * + * Returns a `JsError` if there is an error during the retrieval process. + * @param {getAuctionInfoOptions | undefined} options + * @returns {Promise} + */ + get_auction_info(options) { + let ptr0 = 0; + if (!isLikeNone(options)) { + _assertClass(options, getAuctionInfoOptions); + ptr0 = options.__destroy_into_raw(); + } + const ret = wasm.sdk_get_auction_info(this.__wbg_ptr, ptr0); + return takeObject(ret); + } + /** + * Parses block options from a JsValue. + * + * # Arguments + * + * * `options` - A JsValue containing block options to be parsed. + * + * # Returns + * + * Parsed block options as a `GetBlockOptions` struct. + * @param {any} options + * @returns {getBlockOptions} + */ + get_block_options(options) { + const ret = wasm.sdk_get_block_options(this.__wbg_ptr, addHeapObject(options)); + return getBlockOptions.__wrap(ret); + } + /** + * Retrieves block information using the provided options. + * + * # Arguments + * + * * `options` - An optional `GetBlockOptions` struct containing retrieval options. + * + * # Returns + * + * A `Result` containing either a `GetBlockResult` or a `JsError` in case of an error. + * + * # Errors + * + * Returns a `JsError` if there is an error during the retrieval process. + * @param {getBlockOptions | undefined} options + * @returns {Promise} + */ + get_block(options) { + let ptr0 = 0; + if (!isLikeNone(options)) { + _assertClass(options, getBlockOptions); + ptr0 = options.__destroy_into_raw(); + } + const ret = wasm.sdk_get_block(this.__wbg_ptr, ptr0); + return takeObject(ret); + } + /** + * JS Alias for the `get_block` method to maintain compatibility. + * + * # Arguments + * + * * `options` - An optional `GetBlockOptions` struct containing retrieval options. + * + * # Returns + * + * A `Result` containing either a `GetBlockResult` or a `JsError` in case of an error. + * + * # Errors + * + * Returns a `JsError` if there is an error during the retrieval process. + * @param {getBlockOptions | undefined} options + * @returns {Promise} + */ + chain_get_block(options) { + let ptr0 = 0; + if (!isLikeNone(options)) { + _assertClass(options, getBlockOptions); + ptr0 = options.__destroy_into_raw(); + } + const ret = wasm.sdk_chain_get_block(this.__wbg_ptr, ptr0); + return takeObject(ret); + } + /** + * Retrieves peers asynchronously. + * + * # Arguments + * + * * `verbosity` - Optional verbosity level. + * * `node_address` - Optional node address. + * + * # Returns + * + * A `Result` containing `GetPeersResult` or a `JsError` if an error occurs. + * @param {number | undefined} verbosity + * @param {string | undefined} node_address + * @returns {Promise} + */ + get_peers(verbosity, node_address) { + var ptr0 = isLikeNone(node_address) ? 0 : passStringToWasm0(node_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + const ret = wasm.sdk_get_peers(this.__wbg_ptr, isLikeNone(verbosity) ? 3 : verbosity, ptr0, len0); + return takeObject(ret); + } + /** + * JS Alias for `make_transfer`. + * + * # Arguments + * + * * `amount` - The transfer amount. + * * `target_account` - The target account. + * * `transfer_id` - Optional transfer identifier. + * * `deploy_params` - The deploy parameters. + * * `payment_params` - The payment parameters. + * + * # Returns + * + * A `Result` containing the created `Deploy` or a `JsError` in case of an error. + * @param {string} amount + * @param {string} target_account + * @param {string | undefined} transfer_id + * @param {DeployStrParams} deploy_params + * @param {PaymentStrParams} payment_params + * @returns {Deploy} + */ + make_transfer(amount, target_account, transfer_id, deploy_params, payment_params) { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + const ptr0 = passStringToWasm0(amount, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + const ptr1 = passStringToWasm0(target_account, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len1 = WASM_VECTOR_LEN; + var ptr2 = isLikeNone(transfer_id) ? 0 : passStringToWasm0(transfer_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len2 = WASM_VECTOR_LEN; + _assertClass(deploy_params, DeployStrParams); + var ptr3 = deploy_params.__destroy_into_raw(); + _assertClass(payment_params, PaymentStrParams); + var ptr4 = payment_params.__destroy_into_raw(); + wasm.sdk_make_transfer(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, ptr4); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + var r2 = getInt32Memory0()[retptr / 4 + 2]; + if (r2) { + throw takeObject(r1); + } + return Deploy.__wrap(r0); + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * This function allows executing a deploy speculatively. + * + * # Arguments + * + * * `deploy_params` - Deployment parameters for the deploy. + * * `session_params` - Session parameters for the deploy. + * * `payment_params` - Payment parameters for the deploy. + * * `maybe_block_identifier` - Optional block identifier. + * * `verbosity` - Optional verbosity level. + * * `node_address` - Optional node address. + * + * # Returns + * + * A `Result` containing either a `SpeculativeExecResult` or a `JsError` in case of an error. + * @param {DeployStrParams} deploy_params + * @param {SessionStrParams} session_params + * @param {PaymentStrParams} payment_params + * @param {BlockIdentifier | undefined} maybe_block_identifier + * @param {number | undefined} verbosity + * @param {string | undefined} node_address + * @returns {Promise} + */ + speculative_deploy(deploy_params, session_params, payment_params, maybe_block_identifier, verbosity, node_address) { + _assertClass(deploy_params, DeployStrParams); + var ptr0 = deploy_params.__destroy_into_raw(); + _assertClass(session_params, SessionStrParams); + var ptr1 = session_params.__destroy_into_raw(); + _assertClass(payment_params, PaymentStrParams); + var ptr2 = payment_params.__destroy_into_raw(); + let ptr3 = 0; + if (!isLikeNone(maybe_block_identifier)) { + _assertClass(maybe_block_identifier, BlockIdentifier); + ptr3 = maybe_block_identifier.__destroy_into_raw(); + } + var ptr4 = isLikeNone(node_address) ? 0 : passStringToWasm0(node_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len4 = WASM_VECTOR_LEN; + const ret = wasm.sdk_speculative_deploy(this.__wbg_ptr, ptr0, ptr1, ptr2, ptr3, isLikeNone(verbosity) ? 3 : verbosity, ptr4, len4); + return takeObject(ret); + } + /** + * Parses balance options from a JsValue. + * + * # Arguments + * + * * `options` - A JsValue containing balance options to be parsed. + * + * # Returns + * + * Parsed balance options as a `GetBalanceOptions` struct. + * @param {any} options + * @returns {getBalanceOptions} + */ + get_balance_options(options) { + const ret = wasm.sdk_get_balance_options(this.__wbg_ptr, addHeapObject(options)); + return getBalanceOptions.__wrap(ret); + } + /** + * Retrieves balance information using the provided options. + * + * # Arguments + * + * * `options` - An optional `GetBalanceOptions` struct containing retrieval options. + * + * # Returns + * + * A `Result` containing either a `GetBalanceResult` or a `JsError` in case of an error. + * + * # Errors + * + * Returns a `JsError` if there is an error during the retrieval process. + * @param {getBalanceOptions | undefined} options + * @returns {Promise} + */ + get_balance(options) { + let ptr0 = 0; + if (!isLikeNone(options)) { + _assertClass(options, getBalanceOptions); + ptr0 = options.__destroy_into_raw(); + } + const ret = wasm.sdk_get_balance(this.__wbg_ptr, ptr0); + return takeObject(ret); + } + /** + * JS Alias for `get_balance_js_alias`. + * + * # Arguments + * + * * `options` - An optional `GetBalanceOptions` struct containing retrieval options. + * + * # Returns + * + * A `Result` containing either a `GetBalanceResult` or a `JsError` in case of an error. + * @param {getBalanceOptions | undefined} options + * @returns {Promise} + */ + state_get_balance(options) { + let ptr0 = 0; + if (!isLikeNone(options)) { + _assertClass(options, getBalanceOptions); + ptr0 = options.__destroy_into_raw(); + } + const ret = wasm.sdk_state_get_balance(this.__wbg_ptr, ptr0); + return takeObject(ret); + } + /** + * Asynchronously retrieves the chainspec. + * + * # Arguments + * + * * `verbosity` - An optional `Verbosity` parameter. + * * `node_address` - An optional node address as a string. + * + * # Returns + * + * A `Result` containing either a `GetChainspecResult` or a `JsError` in case of an error. + * @param {number | undefined} verbosity + * @param {string | undefined} node_address + * @returns {Promise} + */ + get_chainspec(verbosity, node_address) { + var ptr0 = isLikeNone(node_address) ? 0 : passStringToWasm0(node_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + const ret = wasm.sdk_get_chainspec(this.__wbg_ptr, isLikeNone(verbosity) ? 3 : verbosity, ptr0, len0); + return takeObject(ret); + } + /** + * Parses dictionary item options from a JsValue. + * + * # Arguments + * + * * `options` - A JsValue containing dictionary item options to be parsed. + * + * # Returns + * + * Parsed dictionary item options as a `GetDictionaryItemOptions` struct. + * @param {any} options + * @returns {getDictionaryItemOptions} + */ + get_dictionary_item_options(options) { + const ret = wasm.sdk_get_dictionary_item_options(this.__wbg_ptr, addHeapObject(options)); + return getDictionaryItemOptions.__wrap(ret); + } + /** + * Retrieves dictionary item information using the provided options. + * + * # Arguments + * + * * `options` - An optional `GetDictionaryItemOptions` struct containing retrieval options. + * + * # Returns + * + * A `Result` containing either a `GetDictionaryItemResult` or a `JsError` in case of an error. + * + * # Errors + * + * Returns a `JsError` if there is an error during the retrieval process. + * @param {getDictionaryItemOptions | undefined} options + * @returns {Promise} + */ + get_dictionary_item(options) { + let ptr0 = 0; + if (!isLikeNone(options)) { + _assertClass(options, getDictionaryItemOptions); + ptr0 = options.__destroy_into_raw(); + } + const ret = wasm.sdk_get_dictionary_item(this.__wbg_ptr, ptr0); + return takeObject(ret); + } + /** + * JS Alias for `get_dictionary_item_js_alias` + * @param {getDictionaryItemOptions | undefined} options + * @returns {Promise} + */ + state_get_dictionary_item(options) { + let ptr0 = 0; + if (!isLikeNone(options)) { + _assertClass(options, getDictionaryItemOptions); + ptr0 = options.__destroy_into_raw(); + } + const ret = wasm.sdk_state_get_dictionary_item(this.__wbg_ptr, ptr0); + return takeObject(ret); + } + /** + * Deserialize query_contract_dict_options from a JavaScript object. + * @param {any} options + * @returns {queryContractDictOptions} + */ + query_contract_dict_options(options) { + const ret = wasm.sdk_query_contract_dict_options(this.__wbg_ptr, addHeapObject(options)); + return queryContractDictOptions.__wrap(ret); + } + /** + * JavaScript alias for query_contract_dict with deserialized options. + * @param {queryContractDictOptions | undefined} options + * @returns {Promise} + */ + query_contract_dict(options) { + let ptr0 = 0; + if (!isLikeNone(options)) { + _assertClass(options, queryContractDictOptions); + ptr0 = options.__destroy_into_raw(); + } + const ret = wasm.sdk_query_contract_dict(this.__wbg_ptr, ptr0); + return takeObject(ret); + } + /** + * Deserialize query_contract_key_options from a JavaScript object. + * @param {any} options + * @returns {queryContractKeyOptions} + */ + query_contract_key_options(options) { + const ret = wasm.sdk_query_contract_key_options(this.__wbg_ptr, addHeapObject(options)); + return queryContractKeyOptions.__wrap(ret); + } + /** + * JavaScript alias for query_contract_key with deserialized options. + * @param {queryContractKeyOptions | undefined} options + * @returns {Promise} + */ + query_contract_key(options) { + let ptr0 = 0; + if (!isLikeNone(options)) { + _assertClass(options, queryContractKeyOptions); + ptr0 = options.__destroy_into_raw(); + } + const ret = wasm.sdk_query_contract_key(this.__wbg_ptr, ptr0); + return takeObject(ret); + } + /** + * Installs a smart contract with the specified parameters and returns the result. + * + * # Arguments + * + * * `deploy_params` - The deploy parameters. + * * `session_params` - The session parameters. + * * `payment_amount` - The payment amount as a string. + * * `node_address` - An optional node address to send the request to. + * + * # Returns + * + * A `Result` containing either a `PutDeployResult` or a `JsError` in case of an error. + * + * # Errors + * + * Returns a `JsError` if there is an error during the installation. + * @param {DeployStrParams} deploy_params + * @param {SessionStrParams} session_params + * @param {string} payment_amount + * @param {string | undefined} node_address + * @returns {Promise} + */ + install(deploy_params, session_params, payment_amount, node_address) { + _assertClass(deploy_params, DeployStrParams); + var ptr0 = deploy_params.__destroy_into_raw(); + _assertClass(session_params, SessionStrParams); + var ptr1 = session_params.__destroy_into_raw(); + const ptr2 = passStringToWasm0(payment_amount, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len2 = WASM_VECTOR_LEN; + var ptr3 = isLikeNone(node_address) ? 0 : passStringToWasm0(node_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len3 = WASM_VECTOR_LEN; + const ret = wasm.sdk_install(this.__wbg_ptr, ptr0, ptr1, ptr2, len2, ptr3, len3); + return takeObject(ret); + } + /** + * Calls a smart contract entry point with the specified parameters and returns the result. + * + * # Arguments + * + * * `deploy_params` - The deploy parameters. + * * `session_params` - The session parameters. + * * `payment_amount` - The payment amount as a string. + * * `node_address` - An optional node address to send the request to. + * + * # Returns + * + * A `Result` containing either a `PutDeployResult` or a `JsError` in case of an error. + * + * # Errors + * + * Returns a `JsError` if there is an error during the call. + * @param {DeployStrParams} deploy_params + * @param {SessionStrParams} session_params + * @param {string} payment_amount + * @param {string | undefined} node_address + * @returns {Promise} + */ + call_entrypoint(deploy_params, session_params, payment_amount, node_address) { + _assertClass(deploy_params, DeployStrParams); + var ptr0 = deploy_params.__destroy_into_raw(); + _assertClass(session_params, SessionStrParams); + var ptr1 = session_params.__destroy_into_raw(); + const ptr2 = passStringToWasm0(payment_amount, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len2 = WASM_VECTOR_LEN; + var ptr3 = isLikeNone(node_address) ? 0 : passStringToWasm0(node_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len3 = WASM_VECTOR_LEN; + const ret = wasm.sdk_call_entrypoint(this.__wbg_ptr, ptr0, ptr1, ptr2, len2, ptr3, len3); + return takeObject(ret); + } +} +/** +*/ +export class SessionStrParams { + + static __wrap(ptr) { + ptr = ptr >>> 0; + const obj = Object.create(SessionStrParams.prototype); + obj.__wbg_ptr = ptr; + + return obj; + } + + __destroy_into_raw() { + const ptr = this.__wbg_ptr; + this.__wbg_ptr = 0; + + return ptr; + } + + free() { + const ptr = this.__destroy_into_raw(); + wasm.__wbg_sessionstrparams_free(ptr); + } + /** + * @param {string | undefined} session_hash + * @param {string | undefined} session_name + * @param {string | undefined} session_package_hash + * @param {string | undefined} session_package_name + * @param {string | undefined} session_path + * @param {Bytes | undefined} session_bytes + * @param {Array | undefined} session_args_simple + * @param {string | undefined} session_args_json + * @param {string | undefined} session_args_complex + * @param {string | undefined} session_version + * @param {string | undefined} session_entry_point + * @param {boolean | undefined} is_session_transfer + */ + constructor(session_hash, session_name, session_package_hash, session_package_name, session_path, session_bytes, session_args_simple, session_args_json, session_args_complex, session_version, session_entry_point, is_session_transfer) { + var ptr0 = isLikeNone(session_hash) ? 0 : passStringToWasm0(session_hash, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + var ptr1 = isLikeNone(session_name) ? 0 : passStringToWasm0(session_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len1 = WASM_VECTOR_LEN; + var ptr2 = isLikeNone(session_package_hash) ? 0 : passStringToWasm0(session_package_hash, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len2 = WASM_VECTOR_LEN; + var ptr3 = isLikeNone(session_package_name) ? 0 : passStringToWasm0(session_package_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len3 = WASM_VECTOR_LEN; + var ptr4 = isLikeNone(session_path) ? 0 : passStringToWasm0(session_path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len4 = WASM_VECTOR_LEN; + let ptr5 = 0; + if (!isLikeNone(session_bytes)) { + _assertClass(session_bytes, Bytes); + ptr5 = session_bytes.__destroy_into_raw(); + } + var ptr6 = isLikeNone(session_args_json) ? 0 : passStringToWasm0(session_args_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len6 = WASM_VECTOR_LEN; + var ptr7 = isLikeNone(session_args_complex) ? 0 : passStringToWasm0(session_args_complex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len7 = WASM_VECTOR_LEN; + var ptr8 = isLikeNone(session_version) ? 0 : passStringToWasm0(session_version, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len8 = WASM_VECTOR_LEN; + var ptr9 = isLikeNone(session_entry_point) ? 0 : passStringToWasm0(session_entry_point, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len9 = WASM_VECTOR_LEN; + const ret = wasm.sessionstrparams_new(ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, ptr4, len4, ptr5, isLikeNone(session_args_simple) ? 0 : addHeapObject(session_args_simple), ptr6, len6, ptr7, len7, ptr8, len8, ptr9, len9, isLikeNone(is_session_transfer) ? 0xFFFFFF : is_session_transfer ? 1 : 0); + return SessionStrParams.__wrap(ret); + } + /** + * @returns {string | undefined} + */ + get session_hash() { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.sessionstrparams_session_hash(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + let v1; + if (r0 !== 0) { + v1 = getStringFromWasm0(r0, r1).slice(); + wasm.__wbindgen_free(r0, r1 * 1); + } + return v1; + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string} session_hash + */ + set session_hash(session_hash) { + const ptr0 = passStringToWasm0(session_hash, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + wasm.sessionstrparams_set_session_hash(this.__wbg_ptr, ptr0, len0); + } + /** + * @returns {string | undefined} + */ + get session_name() { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.sessionstrparams_session_name(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + let v1; + if (r0 !== 0) { + v1 = getStringFromWasm0(r0, r1).slice(); + wasm.__wbindgen_free(r0, r1 * 1); + } + return v1; + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string} session_name + */ + set session_name(session_name) { + const ptr0 = passStringToWasm0(session_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + wasm.sessionstrparams_set_session_name(this.__wbg_ptr, ptr0, len0); + } + /** + * @returns {string | undefined} + */ + get session_package_hash() { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.sessionstrparams_session_package_hash(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + let v1; + if (r0 !== 0) { + v1 = getStringFromWasm0(r0, r1).slice(); + wasm.__wbindgen_free(r0, r1 * 1); + } + return v1; + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string} session_package_hash + */ + set session_package_hash(session_package_hash) { + const ptr0 = passStringToWasm0(session_package_hash, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + wasm.sessionstrparams_set_session_package_hash(this.__wbg_ptr, ptr0, len0); + } + /** + * @returns {string | undefined} + */ + get session_package_name() { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.sessionstrparams_session_package_name(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + let v1; + if (r0 !== 0) { + v1 = getStringFromWasm0(r0, r1).slice(); + wasm.__wbindgen_free(r0, r1 * 1); + } + return v1; + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string} session_package_name + */ + set session_package_name(session_package_name) { + const ptr0 = passStringToWasm0(session_package_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + wasm.sessionstrparams_set_session_package_name(this.__wbg_ptr, ptr0, len0); + } + /** + * @returns {string | undefined} + */ + get session_path() { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.sessionstrparams_session_path(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + let v1; + if (r0 !== 0) { + v1 = getStringFromWasm0(r0, r1).slice(); + wasm.__wbindgen_free(r0, r1 * 1); + } + return v1; + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string} session_path + */ + set session_path(session_path) { + const ptr0 = passStringToWasm0(session_path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + wasm.sessionstrparams_set_session_path(this.__wbg_ptr, ptr0, len0); + } + /** + * @returns {Bytes | undefined} + */ + get session_bytes() { + const ret = wasm.sessionstrparams_session_bytes(this.__wbg_ptr); + return ret === 0 ? undefined : Bytes.__wrap(ret); + } + /** + * @param {Bytes} session_bytes + */ + set session_bytes(session_bytes) { + _assertClass(session_bytes, Bytes); + var ptr0 = session_bytes.__destroy_into_raw(); + wasm.sessionstrparams_set_session_bytes(this.__wbg_ptr, ptr0); + } + /** + * @returns {ArgsSimple | undefined} + */ + get session_args_simple() { + const ret = wasm.sessionstrparams_session_args_simple(this.__wbg_ptr); + return ret === 0 ? undefined : ArgsSimple.__wrap(ret); + } + /** + * @param {Array} session_args_simple + */ + set session_args_simple(session_args_simple) { + wasm.sessionstrparams_set_session_args_simple(this.__wbg_ptr, addHeapObject(session_args_simple)); + } + /** + * @returns {string | undefined} + */ + get session_args_json() { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.sessionstrparams_session_args_json(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + let v1; + if (r0 !== 0) { + v1 = getStringFromWasm0(r0, r1).slice(); + wasm.__wbindgen_free(r0, r1 * 1); + } + return v1; + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string} session_args_json + */ + set session_args_json(session_args_json) { + const ptr0 = passStringToWasm0(session_args_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + wasm.sessionstrparams_set_session_args_json(this.__wbg_ptr, ptr0, len0); + } + /** + * @returns {string | undefined} + */ + get session_args_complex() { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.sessionstrparams_session_args_complex(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + let v1; + if (r0 !== 0) { + v1 = getStringFromWasm0(r0, r1).slice(); + wasm.__wbindgen_free(r0, r1 * 1); + } + return v1; + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string} session_args_complex + */ + set session_args_complex(session_args_complex) { + const ptr0 = passStringToWasm0(session_args_complex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + wasm.sessionstrparams_set_session_args_complex(this.__wbg_ptr, ptr0, len0); + } + /** + * @returns {string | undefined} + */ + get session_version() { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.sessionstrparams_session_version(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + let v1; + if (r0 !== 0) { + v1 = getStringFromWasm0(r0, r1).slice(); + wasm.__wbindgen_free(r0, r1 * 1); + } + return v1; + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string} session_version + */ + set session_version(session_version) { + const ptr0 = passStringToWasm0(session_version, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + wasm.sessionstrparams_set_session_version(this.__wbg_ptr, ptr0, len0); + } + /** + * @returns {string | undefined} + */ + get session_entry_point() { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.sessionstrparams_session_entry_point(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + let v1; + if (r0 !== 0) { + v1 = getStringFromWasm0(r0, r1).slice(); + wasm.__wbindgen_free(r0, r1 * 1); + } + return v1; + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string} session_entry_point + */ + set session_entry_point(session_entry_point) { + const ptr0 = passStringToWasm0(session_entry_point, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + wasm.sessionstrparams_set_session_entry_point(this.__wbg_ptr, ptr0, len0); + } + /** + * @returns {boolean | undefined} + */ + get is_session_transfer() { + const ret = wasm.sessionstrparams_is_session_transfer(this.__wbg_ptr); + return ret === 0xFFFFFF ? undefined : ret !== 0; + } + /** + * @param {boolean} is_session_transfer + */ + set is_session_transfer(is_session_transfer) { + wasm.sessionstrparams_set_is_session_transfer(this.__wbg_ptr, is_session_transfer); + } +} +/** +*/ +export class SpeculativeExecResult { + + static __wrap(ptr) { + ptr = ptr >>> 0; + const obj = Object.create(SpeculativeExecResult.prototype); + obj.__wbg_ptr = ptr; + + return obj; + } + + __destroy_into_raw() { + const ptr = this.__wbg_ptr; + this.__wbg_ptr = 0; + + return ptr; + } + + free() { + const ptr = this.__destroy_into_raw(); + wasm.__wbg_speculativeexecresult_free(ptr); + } + /** + * Get the API version of the result. + * @returns {any} + */ + get api_version() { + const ret = wasm.speculativeexecresult_api_version(this.__wbg_ptr); + return takeObject(ret); + } + /** + * Get the block hash. + * @returns {BlockHash} + */ + get block_hash() { + const ret = wasm.speculativeexecresult_block_hash(this.__wbg_ptr); + return BlockHash.__wrap(ret); + } + /** + * Get the execution result. + * @returns {any} + */ + get execution_result() { + const ret = wasm.speculativeexecresult_execution_result(this.__wbg_ptr); + return takeObject(ret); + } + /** + * Convert the result to JSON format. + * @returns {any} + */ + toJson() { + const ret = wasm.speculativeexecresult_toJson(this.__wbg_ptr); + return takeObject(ret); + } +} +/** +*/ +export class TransferAddr { + + static __wrap(ptr) { + ptr = ptr >>> 0; + const obj = Object.create(TransferAddr.prototype); + obj.__wbg_ptr = ptr; + + return obj; + } + + __destroy_into_raw() { + const ptr = this.__wbg_ptr; + this.__wbg_ptr = 0; + + return ptr; + } + + free() { + const ptr = this.__destroy_into_raw(); + wasm.__wbg_transferaddr_free(ptr); + } + /** + * @param {Uint8Array} bytes + */ + constructor(bytes) { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc); + const len0 = WASM_VECTOR_LEN; + wasm.transferaddr_new(retptr, ptr0, len0); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + var r2 = getInt32Memory0()[retptr / 4 + 2]; + if (r2) { + throw takeObject(r1); + } + return TransferAddr.__wrap(r0); + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } +} +/** +*/ +export class URef { + + static __wrap(ptr) { + ptr = ptr >>> 0; + const obj = Object.create(URef.prototype); + obj.__wbg_ptr = ptr; + + return obj; + } + + __destroy_into_raw() { + const ptr = this.__wbg_ptr; + this.__wbg_ptr = 0; + + return ptr; + } + + free() { + const ptr = this.__destroy_into_raw(); + wasm.__wbg_uref_free(ptr); + } + /** + * @param {string} uref_hex_str + * @param {number} access_rights + */ + constructor(uref_hex_str, access_rights) { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + const ptr0 = passStringToWasm0(uref_hex_str, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + wasm.uref_new(retptr, ptr0, len0, access_rights); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + var r2 = getInt32Memory0()[retptr / 4 + 2]; + if (r2) { + throw takeObject(r1); + } + return URef.__wrap(r0); + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {Uint8Array} bytes + * @param {number} access_rights + * @returns {URef} + */ + static fromUint8Array(bytes, access_rights) { + const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc); + const len0 = WASM_VECTOR_LEN; + const ret = wasm.uref_fromUint8Array(ptr0, len0, access_rights); + return URef.__wrap(ret); + } + /** + * @returns {string} + */ + toFormattedString() { + let deferred1_0; + let deferred1_1; + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.uref_toFormattedString(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + deferred1_0 = r0; + deferred1_1 = r1; + return getStringFromWasm0(r0, r1); + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + wasm.__wbindgen_free(deferred1_0, deferred1_1, 1); + } + } + /** + * @returns {any} + */ + toJson() { + const ret = wasm.uref_toJson(this.__wbg_ptr); + return takeObject(ret); + } +} +/** +*/ +export class URefAddr { + + static __wrap(ptr) { + ptr = ptr >>> 0; + const obj = Object.create(URefAddr.prototype); + obj.__wbg_ptr = ptr; + + return obj; + } + + __destroy_into_raw() { + const ptr = this.__wbg_ptr; + this.__wbg_ptr = 0; + + return ptr; + } + + free() { + const ptr = this.__destroy_into_raw(); + wasm.__wbg_urefaddr_free(ptr); + } + /** + * @param {Uint8Array} bytes + */ + constructor(bytes) { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc); + const len0 = WASM_VECTOR_LEN; + wasm.urefaddr_new(retptr, ptr0, len0); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + var r2 = getInt32Memory0()[retptr / 4 + 2]; + if (r2) { + throw takeObject(r1); + } + return URefAddr.__wrap(r0); + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } +} +/** +*/ +export class getAccountOptions { + + static __wrap(ptr) { + ptr = ptr >>> 0; + const obj = Object.create(getAccountOptions.prototype); + obj.__wbg_ptr = ptr; + + return obj; + } + + __destroy_into_raw() { + const ptr = this.__wbg_ptr; + this.__wbg_ptr = 0; + + return ptr; + } + + free() { + const ptr = this.__destroy_into_raw(); + wasm.__wbg_getaccountoptions_free(ptr); + } + /** + * @returns {AccountIdentifier | undefined} + */ + get account_identifier() { + const ret = wasm.__wbg_get_getaccountoptions_account_identifier(this.__wbg_ptr); + return ret === 0 ? undefined : AccountIdentifier.__wrap(ret); + } + /** + * @param {AccountIdentifier | undefined} arg0 + */ + set account_identifier(arg0) { + let ptr0 = 0; + if (!isLikeNone(arg0)) { + _assertClass(arg0, AccountIdentifier); + ptr0 = arg0.__destroy_into_raw(); + } + wasm.__wbg_set_getaccountoptions_account_identifier(this.__wbg_ptr, ptr0); + } + /** + * @returns {string | undefined} + */ + get account_identifier_as_string() { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.__wbg_get_getaccountoptions_account_identifier_as_string(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + let v1; + if (r0 !== 0) { + v1 = getStringFromWasm0(r0, r1).slice(); + wasm.__wbindgen_free(r0, r1 * 1); + } + return v1; + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string | undefined} arg0 + */ + set account_identifier_as_string(arg0) { + var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + wasm.__wbg_set_getaccountoptions_account_identifier_as_string(this.__wbg_ptr, ptr0, len0); + } + /** + * @returns {string | undefined} + */ + get maybe_block_id_as_string() { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.__wbg_get_getaccountoptions_maybe_block_id_as_string(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + let v1; + if (r0 !== 0) { + v1 = getStringFromWasm0(r0, r1).slice(); + wasm.__wbindgen_free(r0, r1 * 1); + } + return v1; + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string | undefined} arg0 + */ + set maybe_block_id_as_string(arg0) { + var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + wasm.__wbg_set_getaccountoptions_maybe_block_id_as_string(this.__wbg_ptr, ptr0, len0); + } + /** + * @returns {BlockIdentifier | undefined} + */ + get maybe_block_identifier() { + const ret = wasm.__wbg_get_getaccountoptions_maybe_block_identifier(this.__wbg_ptr); + return ret === 0 ? undefined : BlockIdentifier.__wrap(ret); + } + /** + * @param {BlockIdentifier | undefined} arg0 + */ + set maybe_block_identifier(arg0) { + let ptr0 = 0; + if (!isLikeNone(arg0)) { + _assertClass(arg0, BlockIdentifier); + ptr0 = arg0.__destroy_into_raw(); + } + wasm.__wbg_set_getaccountoptions_maybe_block_identifier(this.__wbg_ptr, ptr0); + } + /** + * @returns {string | undefined} + */ + get node_address() { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.__wbg_get_getaccountoptions_node_address(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + let v1; + if (r0 !== 0) { + v1 = getStringFromWasm0(r0, r1).slice(); + wasm.__wbindgen_free(r0, r1 * 1); + } + return v1; + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string | undefined} arg0 + */ + set node_address(arg0) { + var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + wasm.__wbg_set_getaccountoptions_node_address(this.__wbg_ptr, ptr0, len0); + } + /** + * @returns {number | undefined} + */ + get verbosity() { + const ret = wasm.__wbg_get_getaccountoptions_verbosity(this.__wbg_ptr); + return ret === 3 ? undefined : ret; + } + /** + * @param {number | undefined} arg0 + */ + set verbosity(arg0) { + wasm.__wbg_set_getaccountoptions_verbosity(this.__wbg_ptr, isLikeNone(arg0) ? 3 : arg0); + } +} +/** +* Options for the `get_auction_info` method. +*/ +export class getAuctionInfoOptions { + + static __wrap(ptr) { + ptr = ptr >>> 0; + const obj = Object.create(getAuctionInfoOptions.prototype); + obj.__wbg_ptr = ptr; + + return obj; + } + + __destroy_into_raw() { + const ptr = this.__wbg_ptr; + this.__wbg_ptr = 0; + + return ptr; + } + + free() { + const ptr = this.__destroy_into_raw(); + wasm.__wbg_getauctioninfooptions_free(ptr); + } + /** + * @returns {string | undefined} + */ + get maybe_block_id_as_string() { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.__wbg_get_getauctioninfooptions_maybe_block_id_as_string(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + let v1; + if (r0 !== 0) { + v1 = getStringFromWasm0(r0, r1).slice(); + wasm.__wbindgen_free(r0, r1 * 1); + } + return v1; + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string | undefined} arg0 + */ + set maybe_block_id_as_string(arg0) { + var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + wasm.__wbg_set_getauctioninfooptions_maybe_block_id_as_string(this.__wbg_ptr, ptr0, len0); + } + /** + * @returns {BlockIdentifier | undefined} + */ + get maybe_block_identifier() { + const ret = wasm.__wbg_get_getauctioninfooptions_maybe_block_identifier(this.__wbg_ptr); + return ret === 0 ? undefined : BlockIdentifier.__wrap(ret); + } + /** + * @param {BlockIdentifier | undefined} arg0 + */ + set maybe_block_identifier(arg0) { + let ptr0 = 0; + if (!isLikeNone(arg0)) { + _assertClass(arg0, BlockIdentifier); + ptr0 = arg0.__destroy_into_raw(); + } + wasm.__wbg_set_getauctioninfooptions_maybe_block_identifier(this.__wbg_ptr, ptr0); + } + /** + * @returns {string | undefined} + */ + get node_address() { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.__wbg_get_getauctioninfooptions_node_address(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + let v1; + if (r0 !== 0) { + v1 = getStringFromWasm0(r0, r1).slice(); + wasm.__wbindgen_free(r0, r1 * 1); + } + return v1; + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string | undefined} arg0 + */ + set node_address(arg0) { + var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + wasm.__wbg_set_getauctioninfooptions_node_address(this.__wbg_ptr, ptr0, len0); + } + /** + * @returns {number | undefined} + */ + get verbosity() { + const ret = wasm.__wbg_get_getauctioninfooptions_verbosity(this.__wbg_ptr); + return ret === 3 ? undefined : ret; + } + /** + * @param {number | undefined} arg0 + */ + set verbosity(arg0) { + wasm.__wbg_set_getauctioninfooptions_verbosity(this.__wbg_ptr, isLikeNone(arg0) ? 3 : arg0); + } +} +/** +* Options for the `get_balance` method. +*/ +export class getBalanceOptions { + + static __wrap(ptr) { + ptr = ptr >>> 0; + const obj = Object.create(getBalanceOptions.prototype); + obj.__wbg_ptr = ptr; + + return obj; + } + + __destroy_into_raw() { + const ptr = this.__wbg_ptr; + this.__wbg_ptr = 0; + + return ptr; + } + + free() { + const ptr = this.__destroy_into_raw(); + wasm.__wbg_getbalanceoptions_free(ptr); + } + /** + * @returns {string | undefined} + */ + get state_root_hash_as_string() { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.__wbg_get_getbalanceoptions_state_root_hash_as_string(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + let v1; + if (r0 !== 0) { + v1 = getStringFromWasm0(r0, r1).slice(); + wasm.__wbindgen_free(r0, r1 * 1); + } + return v1; + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string | undefined} arg0 + */ + set state_root_hash_as_string(arg0) { + var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + wasm.__wbg_set_getbalanceoptions_state_root_hash_as_string(this.__wbg_ptr, ptr0, len0); + } + /** + * @returns {Digest | undefined} + */ + get state_root_hash() { + const ret = wasm.__wbg_get_getbalanceoptions_state_root_hash(this.__wbg_ptr); + return ret === 0 ? undefined : Digest.__wrap(ret); + } + /** + * @param {Digest | undefined} arg0 + */ + set state_root_hash(arg0) { + let ptr0 = 0; + if (!isLikeNone(arg0)) { + _assertClass(arg0, Digest); + ptr0 = arg0.__destroy_into_raw(); + } + wasm.__wbg_set_getbalanceoptions_state_root_hash(this.__wbg_ptr, ptr0); + } + /** + * @returns {string | undefined} + */ + get purse_uref_as_string() { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.__wbg_get_getbalanceoptions_purse_uref_as_string(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + let v1; + if (r0 !== 0) { + v1 = getStringFromWasm0(r0, r1).slice(); + wasm.__wbindgen_free(r0, r1 * 1); + } + return v1; + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string | undefined} arg0 + */ + set purse_uref_as_string(arg0) { + var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + wasm.__wbg_set_getbalanceoptions_purse_uref_as_string(this.__wbg_ptr, ptr0, len0); + } + /** + * @returns {URef | undefined} + */ + get purse_uref() { + const ret = wasm.__wbg_get_getbalanceoptions_purse_uref(this.__wbg_ptr); + return ret === 0 ? undefined : URef.__wrap(ret); + } + /** + * @param {URef | undefined} arg0 + */ + set purse_uref(arg0) { + let ptr0 = 0; + if (!isLikeNone(arg0)) { + _assertClass(arg0, URef); + ptr0 = arg0.__destroy_into_raw(); + } + wasm.__wbg_set_getbalanceoptions_purse_uref(this.__wbg_ptr, ptr0); + } + /** + * @returns {string | undefined} + */ + get node_address() { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.__wbg_get_getbalanceoptions_node_address(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + let v1; + if (r0 !== 0) { + v1 = getStringFromWasm0(r0, r1).slice(); + wasm.__wbindgen_free(r0, r1 * 1); + } + return v1; + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string | undefined} arg0 + */ + set node_address(arg0) { + var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + wasm.__wbg_set_getbalanceoptions_node_address(this.__wbg_ptr, ptr0, len0); + } + /** + * @returns {number | undefined} + */ + get verbosity() { + const ret = wasm.__wbg_get_getbalanceoptions_verbosity(this.__wbg_ptr); + return ret === 3 ? undefined : ret; + } + /** + * @param {number | undefined} arg0 + */ + set verbosity(arg0) { + wasm.__wbg_set_getbalanceoptions_verbosity(this.__wbg_ptr, isLikeNone(arg0) ? 3 : arg0); + } +} +/** +* Options for the `get_block` method. +*/ +export class getBlockOptions { + + static __wrap(ptr) { + ptr = ptr >>> 0; + const obj = Object.create(getBlockOptions.prototype); + obj.__wbg_ptr = ptr; + + return obj; + } + + __destroy_into_raw() { + const ptr = this.__wbg_ptr; + this.__wbg_ptr = 0; + + return ptr; + } + + free() { + const ptr = this.__destroy_into_raw(); + wasm.__wbg_getblockoptions_free(ptr); + } + /** + * @returns {string | undefined} + */ + get maybe_block_id_as_string() { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.__wbg_get_getauctioninfooptions_maybe_block_id_as_string(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + let v1; + if (r0 !== 0) { + v1 = getStringFromWasm0(r0, r1).slice(); + wasm.__wbindgen_free(r0, r1 * 1); + } + return v1; + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string | undefined} arg0 + */ + set maybe_block_id_as_string(arg0) { + var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + wasm.__wbg_set_getauctioninfooptions_maybe_block_id_as_string(this.__wbg_ptr, ptr0, len0); + } + /** + * @returns {BlockIdentifier | undefined} + */ + get maybe_block_identifier() { + const ret = wasm.__wbg_get_getauctioninfooptions_maybe_block_identifier(this.__wbg_ptr); + return ret === 0 ? undefined : BlockIdentifier.__wrap(ret); + } + /** + * @param {BlockIdentifier | undefined} arg0 + */ + set maybe_block_identifier(arg0) { + let ptr0 = 0; + if (!isLikeNone(arg0)) { + _assertClass(arg0, BlockIdentifier); + ptr0 = arg0.__destroy_into_raw(); + } + wasm.__wbg_set_getauctioninfooptions_maybe_block_identifier(this.__wbg_ptr, ptr0); + } + /** + * @returns {string | undefined} + */ + get node_address() { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.__wbg_get_getauctioninfooptions_node_address(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + let v1; + if (r0 !== 0) { + v1 = getStringFromWasm0(r0, r1).slice(); + wasm.__wbindgen_free(r0, r1 * 1); + } + return v1; + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string | undefined} arg0 + */ + set node_address(arg0) { + var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + wasm.__wbg_set_getauctioninfooptions_node_address(this.__wbg_ptr, ptr0, len0); + } + /** + * @returns {number | undefined} + */ + get verbosity() { + const ret = wasm.__wbg_get_getauctioninfooptions_verbosity(this.__wbg_ptr); + return ret === 3 ? undefined : ret; + } + /** + * @param {number | undefined} arg0 + */ + set verbosity(arg0) { + wasm.__wbg_set_getauctioninfooptions_verbosity(this.__wbg_ptr, isLikeNone(arg0) ? 3 : arg0); + } +} +/** +* Options for the `get_block_transfers` method. +*/ +export class getBlockTransfersOptions { + + static __wrap(ptr) { + ptr = ptr >>> 0; + const obj = Object.create(getBlockTransfersOptions.prototype); + obj.__wbg_ptr = ptr; + + return obj; + } + + __destroy_into_raw() { + const ptr = this.__wbg_ptr; + this.__wbg_ptr = 0; + + return ptr; + } + + free() { + const ptr = this.__destroy_into_raw(); + wasm.__wbg_getblocktransfersoptions_free(ptr); + } + /** + * @returns {string | undefined} + */ + get maybe_block_id_as_string() { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.__wbg_get_getblocktransfersoptions_maybe_block_id_as_string(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + let v1; + if (r0 !== 0) { + v1 = getStringFromWasm0(r0, r1).slice(); + wasm.__wbindgen_free(r0, r1 * 1); + } + return v1; + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string | undefined} arg0 + */ + set maybe_block_id_as_string(arg0) { + var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + wasm.__wbg_set_getblocktransfersoptions_maybe_block_id_as_string(this.__wbg_ptr, ptr0, len0); + } + /** + * @returns {BlockIdentifier | undefined} + */ + get maybe_block_identifier() { + const ret = wasm.__wbg_get_getblocktransfersoptions_maybe_block_identifier(this.__wbg_ptr); + return ret === 0 ? undefined : BlockIdentifier.__wrap(ret); + } + /** + * @param {BlockIdentifier | undefined} arg0 + */ + set maybe_block_identifier(arg0) { + let ptr0 = 0; + if (!isLikeNone(arg0)) { + _assertClass(arg0, BlockIdentifier); + ptr0 = arg0.__destroy_into_raw(); + } + wasm.__wbg_set_getblocktransfersoptions_maybe_block_identifier(this.__wbg_ptr, ptr0); + } + /** + * @returns {number | undefined} + */ + get verbosity() { + const ret = wasm.__wbg_get_getblocktransfersoptions_verbosity(this.__wbg_ptr); + return ret === 3 ? undefined : ret; + } + /** + * @param {number | undefined} arg0 + */ + set verbosity(arg0) { + wasm.__wbg_set_getblocktransfersoptions_verbosity(this.__wbg_ptr, isLikeNone(arg0) ? 3 : arg0); + } + /** + * @returns {string | undefined} + */ + get node_address() { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.__wbg_get_getblocktransfersoptions_node_address(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + let v1; + if (r0 !== 0) { + v1 = getStringFromWasm0(r0, r1).slice(); + wasm.__wbindgen_free(r0, r1 * 1); + } + return v1; + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string | undefined} arg0 + */ + set node_address(arg0) { + var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + wasm.__wbg_set_getblocktransfersoptions_node_address(this.__wbg_ptr, ptr0, len0); + } +} +/** +* Options for the `get_deploy` method. +*/ +export class getDeployOptions { + + static __wrap(ptr) { + ptr = ptr >>> 0; + const obj = Object.create(getDeployOptions.prototype); + obj.__wbg_ptr = ptr; + + return obj; + } + + __destroy_into_raw() { + const ptr = this.__wbg_ptr; + this.__wbg_ptr = 0; + + return ptr; + } + + free() { + const ptr = this.__destroy_into_raw(); + wasm.__wbg_getdeployoptions_free(ptr); + } + /** + * @returns {string | undefined} + */ + get deploy_hash_as_string() { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.__wbg_get_getdeployoptions_deploy_hash_as_string(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + let v1; + if (r0 !== 0) { + v1 = getStringFromWasm0(r0, r1).slice(); + wasm.__wbindgen_free(r0, r1 * 1); + } + return v1; + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string | undefined} arg0 + */ + set deploy_hash_as_string(arg0) { + var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + wasm.__wbg_set_getdeployoptions_deploy_hash_as_string(this.__wbg_ptr, ptr0, len0); + } + /** + * @returns {DeployHash | undefined} + */ + get deploy_hash() { + const ret = wasm.__wbg_get_getdeployoptions_deploy_hash(this.__wbg_ptr); + return ret === 0 ? undefined : DeployHash.__wrap(ret); + } + /** + * @param {DeployHash | undefined} arg0 + */ + set deploy_hash(arg0) { + let ptr0 = 0; + if (!isLikeNone(arg0)) { + _assertClass(arg0, DeployHash); + ptr0 = arg0.__destroy_into_raw(); + } + wasm.__wbg_set_getdeployoptions_deploy_hash(this.__wbg_ptr, ptr0); + } + /** + * @returns {boolean | undefined} + */ + get finalized_approvals() { + const ret = wasm.__wbg_get_getdeployoptions_finalized_approvals(this.__wbg_ptr); + return ret === 0xFFFFFF ? undefined : ret !== 0; + } + /** + * @param {boolean | undefined} arg0 + */ + set finalized_approvals(arg0) { + wasm.__wbg_set_getdeployoptions_finalized_approvals(this.__wbg_ptr, isLikeNone(arg0) ? 0xFFFFFF : arg0 ? 1 : 0); + } + /** + * @returns {string | undefined} + */ + get node_address() { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.__wbg_get_getdeployoptions_node_address(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + let v1; + if (r0 !== 0) { + v1 = getStringFromWasm0(r0, r1).slice(); + wasm.__wbindgen_free(r0, r1 * 1); + } + return v1; + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string | undefined} arg0 + */ + set node_address(arg0) { + var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + wasm.__wbg_set_getdeployoptions_node_address(this.__wbg_ptr, ptr0, len0); + } + /** + * @returns {number | undefined} + */ + get verbosity() { + const ret = wasm.__wbg_get_getdeployoptions_verbosity(this.__wbg_ptr); + return ret === 3 ? undefined : ret; + } + /** + * @param {number | undefined} arg0 + */ + set verbosity(arg0) { + wasm.__wbg_set_getdeployoptions_verbosity(this.__wbg_ptr, isLikeNone(arg0) ? 3 : arg0); + } +} +/** +* Options for the `get_dictionary_item` method. +*/ +export class getDictionaryItemOptions { + + static __wrap(ptr) { + ptr = ptr >>> 0; + const obj = Object.create(getDictionaryItemOptions.prototype); + obj.__wbg_ptr = ptr; + + return obj; + } + + __destroy_into_raw() { + const ptr = this.__wbg_ptr; + this.__wbg_ptr = 0; + + return ptr; + } + + free() { + const ptr = this.__destroy_into_raw(); + wasm.__wbg_getdictionaryitemoptions_free(ptr); + } + /** + * @returns {string | undefined} + */ + get state_root_hash_as_string() { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.__wbg_get_getdictionaryitemoptions_state_root_hash_as_string(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + let v1; + if (r0 !== 0) { + v1 = getStringFromWasm0(r0, r1).slice(); + wasm.__wbindgen_free(r0, r1 * 1); + } + return v1; + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string | undefined} arg0 + */ + set state_root_hash_as_string(arg0) { + var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + wasm.__wbg_set_getdictionaryitemoptions_state_root_hash_as_string(this.__wbg_ptr, ptr0, len0); + } + /** + * @returns {Digest | undefined} + */ + get state_root_hash() { + const ret = wasm.__wbg_get_getdictionaryitemoptions_state_root_hash(this.__wbg_ptr); + return ret === 0 ? undefined : Digest.__wrap(ret); + } + /** + * @param {Digest | undefined} arg0 + */ + set state_root_hash(arg0) { + let ptr0 = 0; + if (!isLikeNone(arg0)) { + _assertClass(arg0, Digest); + ptr0 = arg0.__destroy_into_raw(); + } + wasm.__wbg_set_getdictionaryitemoptions_state_root_hash(this.__wbg_ptr, ptr0); + } + /** + * @returns {DictionaryItemStrParams | undefined} + */ + get dictionary_item_params() { + const ret = wasm.__wbg_get_getdictionaryitemoptions_dictionary_item_params(this.__wbg_ptr); + return ret === 0 ? undefined : DictionaryItemStrParams.__wrap(ret); + } + /** + * @param {DictionaryItemStrParams | undefined} arg0 + */ + set dictionary_item_params(arg0) { + let ptr0 = 0; + if (!isLikeNone(arg0)) { + _assertClass(arg0, DictionaryItemStrParams); + ptr0 = arg0.__destroy_into_raw(); + } + wasm.__wbg_set_getdictionaryitemoptions_dictionary_item_params(this.__wbg_ptr, ptr0); + } + /** + * @returns {DictionaryItemIdentifier | undefined} + */ + get dictionary_item_identifier() { + const ret = wasm.__wbg_get_getdictionaryitemoptions_dictionary_item_identifier(this.__wbg_ptr); + return ret === 0 ? undefined : DictionaryItemIdentifier.__wrap(ret); + } + /** + * @param {DictionaryItemIdentifier | undefined} arg0 + */ + set dictionary_item_identifier(arg0) { + let ptr0 = 0; + if (!isLikeNone(arg0)) { + _assertClass(arg0, DictionaryItemIdentifier); + ptr0 = arg0.__destroy_into_raw(); + } + wasm.__wbg_set_getdictionaryitemoptions_dictionary_item_identifier(this.__wbg_ptr, ptr0); + } + /** + * @returns {string | undefined} + */ + get node_address() { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.__wbg_get_getdictionaryitemoptions_node_address(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + let v1; + if (r0 !== 0) { + v1 = getStringFromWasm0(r0, r1).slice(); + wasm.__wbindgen_free(r0, r1 * 1); + } + return v1; + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string | undefined} arg0 + */ + set node_address(arg0) { + var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + wasm.__wbg_set_getdictionaryitemoptions_node_address(this.__wbg_ptr, ptr0, len0); + } + /** + * @returns {number | undefined} + */ + get verbosity() { + const ret = wasm.__wbg_get_getdictionaryitemoptions_verbosity(this.__wbg_ptr); + return ret === 3 ? undefined : ret; + } + /** + * @param {number | undefined} arg0 + */ + set verbosity(arg0) { + wasm.__wbg_set_getdictionaryitemoptions_verbosity(this.__wbg_ptr, isLikeNone(arg0) ? 3 : arg0); + } +} +/** +*/ +export class getEraInfoOptions { + + static __wrap(ptr) { + ptr = ptr >>> 0; + const obj = Object.create(getEraInfoOptions.prototype); + obj.__wbg_ptr = ptr; + + return obj; + } + + __destroy_into_raw() { + const ptr = this.__wbg_ptr; + this.__wbg_ptr = 0; + + return ptr; + } + + free() { + const ptr = this.__destroy_into_raw(); + wasm.__wbg_geterainfooptions_free(ptr); + } + /** + * @returns {string | undefined} + */ + get maybe_block_id_as_string() { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.__wbg_get_geterainfooptions_maybe_block_id_as_string(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + let v1; + if (r0 !== 0) { + v1 = getStringFromWasm0(r0, r1).slice(); + wasm.__wbindgen_free(r0, r1 * 1); + } + return v1; + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string | undefined} arg0 + */ + set maybe_block_id_as_string(arg0) { + var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + wasm.__wbg_set_geterainfooptions_maybe_block_id_as_string(this.__wbg_ptr, ptr0, len0); + } + /** + * @returns {BlockIdentifier | undefined} + */ + get maybe_block_identifier() { + const ret = wasm.__wbg_get_geterainfooptions_maybe_block_identifier(this.__wbg_ptr); + return ret === 0 ? undefined : BlockIdentifier.__wrap(ret); + } + /** + * @param {BlockIdentifier | undefined} arg0 + */ + set maybe_block_identifier(arg0) { + let ptr0 = 0; + if (!isLikeNone(arg0)) { + _assertClass(arg0, BlockIdentifier); + ptr0 = arg0.__destroy_into_raw(); + } + wasm.__wbg_set_geterainfooptions_maybe_block_identifier(this.__wbg_ptr, ptr0); + } + /** + * @returns {string | undefined} + */ + get node_address() { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.__wbg_get_geterainfooptions_node_address(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + let v1; + if (r0 !== 0) { + v1 = getStringFromWasm0(r0, r1).slice(); + wasm.__wbindgen_free(r0, r1 * 1); + } + return v1; + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string | undefined} arg0 + */ + set node_address(arg0) { + var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + wasm.__wbg_set_geterainfooptions_node_address(this.__wbg_ptr, ptr0, len0); + } + /** + * @returns {number | undefined} + */ + get verbosity() { + const ret = wasm.__wbg_get_geterainfooptions_verbosity(this.__wbg_ptr); + return ret === 3 ? undefined : ret; + } + /** + * @param {number | undefined} arg0 + */ + set verbosity(arg0) { + wasm.__wbg_set_geterainfooptions_verbosity(this.__wbg_ptr, isLikeNone(arg0) ? 3 : arg0); + } +} +/** +* Options for the `get_era_summary` method. +*/ +export class getEraSummaryOptions { + + static __wrap(ptr) { + ptr = ptr >>> 0; + const obj = Object.create(getEraSummaryOptions.prototype); + obj.__wbg_ptr = ptr; + + return obj; + } + + __destroy_into_raw() { + const ptr = this.__wbg_ptr; + this.__wbg_ptr = 0; + + return ptr; + } + + free() { + const ptr = this.__destroy_into_raw(); + wasm.__wbg_geterasummaryoptions_free(ptr); + } + /** + * @returns {string | undefined} + */ + get maybe_block_id_as_string() { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.__wbg_get_geterasummaryoptions_maybe_block_id_as_string(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + let v1; + if (r0 !== 0) { + v1 = getStringFromWasm0(r0, r1).slice(); + wasm.__wbindgen_free(r0, r1 * 1); + } + return v1; + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string | undefined} arg0 + */ + set maybe_block_id_as_string(arg0) { + var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + wasm.__wbg_set_geterasummaryoptions_maybe_block_id_as_string(this.__wbg_ptr, ptr0, len0); + } + /** + * @returns {BlockIdentifier | undefined} + */ + get maybe_block_identifier() { + const ret = wasm.__wbg_get_getaccountoptions_maybe_block_identifier(this.__wbg_ptr); + return ret === 0 ? undefined : BlockIdentifier.__wrap(ret); + } + /** + * @param {BlockIdentifier | undefined} arg0 + */ + set maybe_block_identifier(arg0) { + let ptr0 = 0; + if (!isLikeNone(arg0)) { + _assertClass(arg0, BlockIdentifier); + ptr0 = arg0.__destroy_into_raw(); + } + wasm.__wbg_set_getaccountoptions_maybe_block_identifier(this.__wbg_ptr, ptr0); + } + /** + * @returns {string | undefined} + */ + get node_address() { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.__wbg_get_geterasummaryoptions_node_address(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + let v1; + if (r0 !== 0) { + v1 = getStringFromWasm0(r0, r1).slice(); + wasm.__wbindgen_free(r0, r1 * 1); + } + return v1; + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string | undefined} arg0 + */ + set node_address(arg0) { + var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + wasm.__wbg_set_geterasummaryoptions_node_address(this.__wbg_ptr, ptr0, len0); + } + /** + * @returns {number | undefined} + */ + get verbosity() { + const ret = wasm.__wbg_get_geterasummaryoptions_verbosity(this.__wbg_ptr); + return ret === 3 ? undefined : ret; + } + /** + * @param {number | undefined} arg0 + */ + set verbosity(arg0) { + wasm.__wbg_set_geterasummaryoptions_verbosity(this.__wbg_ptr, isLikeNone(arg0) ? 3 : arg0); + } +} +/** +* Options for speculative execution. +*/ +export class getSpeculativeExecOptions { + + static __wrap(ptr) { + ptr = ptr >>> 0; + const obj = Object.create(getSpeculativeExecOptions.prototype); + obj.__wbg_ptr = ptr; + + return obj; + } + + __destroy_into_raw() { + const ptr = this.__wbg_ptr; + this.__wbg_ptr = 0; + + return ptr; + } + + free() { + const ptr = this.__destroy_into_raw(); + wasm.__wbg_getspeculativeexecoptions_free(ptr); + } + /** + * The deploy as a JSON string. + * @returns {string | undefined} + */ + get deploy_as_string() { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.__wbg_get_getspeculativeexecoptions_deploy_as_string(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + let v1; + if (r0 !== 0) { + v1 = getStringFromWasm0(r0, r1).slice(); + wasm.__wbindgen_free(r0, r1 * 1); + } + return v1; + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * The deploy as a JSON string. + * @param {string | undefined} arg0 + */ + set deploy_as_string(arg0) { + var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + wasm.__wbg_set_getspeculativeexecoptions_deploy_as_string(this.__wbg_ptr, ptr0, len0); + } + /** + * The deploy to execute. + * @returns {Deploy | undefined} + */ + get deploy() { + const ret = wasm.__wbg_get_getspeculativeexecoptions_deploy(this.__wbg_ptr); + return ret === 0 ? undefined : Deploy.__wrap(ret); + } + /** + * The deploy to execute. + * @param {Deploy | undefined} arg0 + */ + set deploy(arg0) { + let ptr0 = 0; + if (!isLikeNone(arg0)) { + _assertClass(arg0, Deploy); + ptr0 = arg0.__destroy_into_raw(); + } + wasm.__wbg_set_getspeculativeexecoptions_deploy(this.__wbg_ptr, ptr0); + } + /** + * The block identifier as a string. + * @returns {string | undefined} + */ + get maybe_block_id_as_string() { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.__wbg_get_getspeculativeexecoptions_maybe_block_id_as_string(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + let v1; + if (r0 !== 0) { + v1 = getStringFromWasm0(r0, r1).slice(); + wasm.__wbindgen_free(r0, r1 * 1); + } + return v1; + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * The block identifier as a string. + * @param {string | undefined} arg0 + */ + set maybe_block_id_as_string(arg0) { + var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + wasm.__wbg_set_getspeculativeexecoptions_maybe_block_id_as_string(this.__wbg_ptr, ptr0, len0); + } + /** + * The block identifier. + * @returns {BlockIdentifier | undefined} + */ + get maybe_block_identifier() { + const ret = wasm.__wbg_get_getspeculativeexecoptions_maybe_block_identifier(this.__wbg_ptr); + return ret === 0 ? undefined : BlockIdentifier.__wrap(ret); + } + /** + * The block identifier. + * @param {BlockIdentifier | undefined} arg0 + */ + set maybe_block_identifier(arg0) { + let ptr0 = 0; + if (!isLikeNone(arg0)) { + _assertClass(arg0, BlockIdentifier); + ptr0 = arg0.__destroy_into_raw(); + } + wasm.__wbg_set_getspeculativeexecoptions_maybe_block_identifier(this.__wbg_ptr, ptr0); + } + /** + * The node address. + * @returns {string | undefined} + */ + get node_address() { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.__wbg_get_getspeculativeexecoptions_node_address(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + let v1; + if (r0 !== 0) { + v1 = getStringFromWasm0(r0, r1).slice(); + wasm.__wbindgen_free(r0, r1 * 1); + } + return v1; + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * The node address. + * @param {string | undefined} arg0 + */ + set node_address(arg0) { + var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + wasm.__wbg_set_getspeculativeexecoptions_node_address(this.__wbg_ptr, ptr0, len0); + } + /** + * The verbosity level for logging. + * @returns {number | undefined} + */ + get verbosity() { + const ret = wasm.__wbg_get_getspeculativeexecoptions_verbosity(this.__wbg_ptr); + return ret === 3 ? undefined : ret; + } + /** + * The verbosity level for logging. + * @param {number | undefined} arg0 + */ + set verbosity(arg0) { + wasm.__wbg_set_getspeculativeexecoptions_verbosity(this.__wbg_ptr, isLikeNone(arg0) ? 3 : arg0); + } +} +/** +* Options for the `get_state_root_hash` method. +*/ +export class getStateRootHashOptions { + + static __wrap(ptr) { + ptr = ptr >>> 0; + const obj = Object.create(getStateRootHashOptions.prototype); + obj.__wbg_ptr = ptr; + + return obj; + } + + __destroy_into_raw() { + const ptr = this.__wbg_ptr; + this.__wbg_ptr = 0; + + return ptr; + } + + free() { + const ptr = this.__destroy_into_raw(); + wasm.__wbg_getstateroothashoptions_free(ptr); + } + /** + * @returns {string | undefined} + */ + get maybe_block_id_as_string() { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.__wbg_get_geterainfooptions_maybe_block_id_as_string(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + let v1; + if (r0 !== 0) { + v1 = getStringFromWasm0(r0, r1).slice(); + wasm.__wbindgen_free(r0, r1 * 1); + } + return v1; + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string | undefined} arg0 + */ + set maybe_block_id_as_string(arg0) { + var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + wasm.__wbg_set_geterainfooptions_maybe_block_id_as_string(this.__wbg_ptr, ptr0, len0); + } + /** + * @returns {BlockIdentifier | undefined} + */ + get maybe_block_identifier() { + const ret = wasm.__wbg_get_geterainfooptions_maybe_block_identifier(this.__wbg_ptr); + return ret === 0 ? undefined : BlockIdentifier.__wrap(ret); + } + /** + * @param {BlockIdentifier | undefined} arg0 + */ + set maybe_block_identifier(arg0) { + let ptr0 = 0; + if (!isLikeNone(arg0)) { + _assertClass(arg0, BlockIdentifier); + ptr0 = arg0.__destroy_into_raw(); + } + wasm.__wbg_set_geterainfooptions_maybe_block_identifier(this.__wbg_ptr, ptr0); + } + /** + * @returns {string | undefined} + */ + get node_address() { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.__wbg_get_geterainfooptions_node_address(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + let v1; + if (r0 !== 0) { + v1 = getStringFromWasm0(r0, r1).slice(); + wasm.__wbindgen_free(r0, r1 * 1); + } + return v1; + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string | undefined} arg0 + */ + set node_address(arg0) { + var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + wasm.__wbg_set_geterainfooptions_node_address(this.__wbg_ptr, ptr0, len0); + } + /** + * @returns {number | undefined} + */ + get verbosity() { + const ret = wasm.__wbg_get_geterainfooptions_verbosity(this.__wbg_ptr); + return ret === 3 ? undefined : ret; + } + /** + * @param {number | undefined} arg0 + */ + set verbosity(arg0) { + wasm.__wbg_set_geterainfooptions_verbosity(this.__wbg_ptr, isLikeNone(arg0) ? 3 : arg0); + } +} +/** +* Options for the `query_balance` method. +*/ +export class queryBalanceOptions { + + static __wrap(ptr) { + ptr = ptr >>> 0; + const obj = Object.create(queryBalanceOptions.prototype); + obj.__wbg_ptr = ptr; + + return obj; + } + + __destroy_into_raw() { + const ptr = this.__wbg_ptr; + this.__wbg_ptr = 0; + + return ptr; + } + + free() { + const ptr = this.__destroy_into_raw(); + wasm.__wbg_querybalanceoptions_free(ptr); + } + /** + * @returns {string | undefined} + */ + get purse_identifier_as_string() { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.__wbg_get_querybalanceoptions_purse_identifier_as_string(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + let v1; + if (r0 !== 0) { + v1 = getStringFromWasm0(r0, r1).slice(); + wasm.__wbindgen_free(r0, r1 * 1); + } + return v1; + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string | undefined} arg0 + */ + set purse_identifier_as_string(arg0) { + var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + wasm.__wbg_set_querybalanceoptions_purse_identifier_as_string(this.__wbg_ptr, ptr0, len0); + } + /** + * @returns {PurseIdentifier | undefined} + */ + get purse_identifier() { + const ret = wasm.__wbg_get_querybalanceoptions_purse_identifier(this.__wbg_ptr); + return ret === 0 ? undefined : PurseIdentifier.__wrap(ret); + } + /** + * @param {PurseIdentifier | undefined} arg0 + */ + set purse_identifier(arg0) { + let ptr0 = 0; + if (!isLikeNone(arg0)) { + _assertClass(arg0, PurseIdentifier); + ptr0 = arg0.__destroy_into_raw(); + } + wasm.__wbg_set_querybalanceoptions_purse_identifier(this.__wbg_ptr, ptr0); + } + /** + * @returns {GlobalStateIdentifier | undefined} + */ + get global_state_identifier() { + const ret = wasm.__wbg_get_querybalanceoptions_global_state_identifier(this.__wbg_ptr); + return ret === 0 ? undefined : GlobalStateIdentifier.__wrap(ret); + } + /** + * @param {GlobalStateIdentifier | undefined} arg0 + */ + set global_state_identifier(arg0) { + let ptr0 = 0; + if (!isLikeNone(arg0)) { + _assertClass(arg0, GlobalStateIdentifier); + ptr0 = arg0.__destroy_into_raw(); + } + wasm.__wbg_set_querybalanceoptions_global_state_identifier(this.__wbg_ptr, ptr0); + } + /** + * @returns {string | undefined} + */ + get state_root_hash_as_string() { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.__wbg_get_querybalanceoptions_state_root_hash_as_string(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + let v1; + if (r0 !== 0) { + v1 = getStringFromWasm0(r0, r1).slice(); + wasm.__wbindgen_free(r0, r1 * 1); + } + return v1; + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string | undefined} arg0 + */ + set state_root_hash_as_string(arg0) { + var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + wasm.__wbg_set_querybalanceoptions_state_root_hash_as_string(this.__wbg_ptr, ptr0, len0); + } + /** + * @returns {Digest | undefined} + */ + get state_root_hash() { + const ret = wasm.__wbg_get_querybalanceoptions_state_root_hash(this.__wbg_ptr); + return ret === 0 ? undefined : Digest.__wrap(ret); + } + /** + * @param {Digest | undefined} arg0 + */ + set state_root_hash(arg0) { + let ptr0 = 0; + if (!isLikeNone(arg0)) { + _assertClass(arg0, Digest); + ptr0 = arg0.__destroy_into_raw(); + } + wasm.__wbg_set_querybalanceoptions_state_root_hash(this.__wbg_ptr, ptr0); + } + /** + * @returns {string | undefined} + */ + get maybe_block_id_as_string() { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.__wbg_get_querybalanceoptions_maybe_block_id_as_string(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + let v1; + if (r0 !== 0) { + v1 = getStringFromWasm0(r0, r1).slice(); + wasm.__wbindgen_free(r0, r1 * 1); + } + return v1; + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string | undefined} arg0 + */ + set maybe_block_id_as_string(arg0) { + var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + wasm.__wbg_set_querybalanceoptions_maybe_block_id_as_string(this.__wbg_ptr, ptr0, len0); + } + /** + * @returns {string | undefined} + */ + get node_address() { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.__wbg_get_querybalanceoptions_node_address(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + let v1; + if (r0 !== 0) { + v1 = getStringFromWasm0(r0, r1).slice(); + wasm.__wbindgen_free(r0, r1 * 1); + } + return v1; + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string | undefined} arg0 + */ + set node_address(arg0) { + var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + wasm.__wbg_set_querybalanceoptions_node_address(this.__wbg_ptr, ptr0, len0); + } + /** + * @returns {number | undefined} + */ + get verbosity() { + const ret = wasm.__wbg_get_querybalanceoptions_verbosity(this.__wbg_ptr); + return ret === 3 ? undefined : ret; + } + /** + * @param {number | undefined} arg0 + */ + set verbosity(arg0) { + wasm.__wbg_set_querybalanceoptions_verbosity(this.__wbg_ptr, isLikeNone(arg0) ? 3 : arg0); + } +} +/** +*/ +export class queryContractDictOptions { + + static __wrap(ptr) { + ptr = ptr >>> 0; + const obj = Object.create(queryContractDictOptions.prototype); + obj.__wbg_ptr = ptr; + + return obj; + } + + __destroy_into_raw() { + const ptr = this.__wbg_ptr; + this.__wbg_ptr = 0; + + return ptr; + } + + free() { + const ptr = this.__destroy_into_raw(); + wasm.__wbg_querycontractdictoptions_free(ptr); + } + /** + * @returns {string | undefined} + */ + get state_root_hash_as_string() { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.__wbg_get_getdictionaryitemoptions_state_root_hash_as_string(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + let v1; + if (r0 !== 0) { + v1 = getStringFromWasm0(r0, r1).slice(); + wasm.__wbindgen_free(r0, r1 * 1); + } + return v1; + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string | undefined} arg0 + */ + set state_root_hash_as_string(arg0) { + var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + wasm.__wbg_set_getdictionaryitemoptions_state_root_hash_as_string(this.__wbg_ptr, ptr0, len0); + } + /** + * @returns {Digest | undefined} + */ + get state_root_hash() { + const ret = wasm.__wbg_get_getdictionaryitemoptions_state_root_hash(this.__wbg_ptr); + return ret === 0 ? undefined : Digest.__wrap(ret); + } + /** + * @param {Digest | undefined} arg0 + */ + set state_root_hash(arg0) { + let ptr0 = 0; + if (!isLikeNone(arg0)) { + _assertClass(arg0, Digest); + ptr0 = arg0.__destroy_into_raw(); + } + wasm.__wbg_set_getdictionaryitemoptions_state_root_hash(this.__wbg_ptr, ptr0); + } + /** + * @returns {DictionaryItemStrParams | undefined} + */ + get dictionary_item_params() { + const ret = wasm.__wbg_get_getdictionaryitemoptions_dictionary_item_params(this.__wbg_ptr); + return ret === 0 ? undefined : DictionaryItemStrParams.__wrap(ret); + } + /** + * @param {DictionaryItemStrParams | undefined} arg0 + */ + set dictionary_item_params(arg0) { + let ptr0 = 0; + if (!isLikeNone(arg0)) { + _assertClass(arg0, DictionaryItemStrParams); + ptr0 = arg0.__destroy_into_raw(); + } + wasm.__wbg_set_getdictionaryitemoptions_dictionary_item_params(this.__wbg_ptr, ptr0); + } + /** + * @returns {DictionaryItemIdentifier | undefined} + */ + get dictionary_item_identifier() { + const ret = wasm.__wbg_get_getdictionaryitemoptions_dictionary_item_identifier(this.__wbg_ptr); + return ret === 0 ? undefined : DictionaryItemIdentifier.__wrap(ret); + } + /** + * @param {DictionaryItemIdentifier | undefined} arg0 + */ + set dictionary_item_identifier(arg0) { + let ptr0 = 0; + if (!isLikeNone(arg0)) { + _assertClass(arg0, DictionaryItemIdentifier); + ptr0 = arg0.__destroy_into_raw(); + } + wasm.__wbg_set_getdictionaryitemoptions_dictionary_item_identifier(this.__wbg_ptr, ptr0); + } + /** + * @returns {string | undefined} + */ + get node_address() { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.__wbg_get_getdictionaryitemoptions_node_address(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + let v1; + if (r0 !== 0) { + v1 = getStringFromWasm0(r0, r1).slice(); + wasm.__wbindgen_free(r0, r1 * 1); + } + return v1; + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string | undefined} arg0 + */ + set node_address(arg0) { + var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + wasm.__wbg_set_getdictionaryitemoptions_node_address(this.__wbg_ptr, ptr0, len0); + } + /** + * @returns {number | undefined} + */ + get verbosity() { + const ret = wasm.__wbg_get_getdictionaryitemoptions_verbosity(this.__wbg_ptr); + return ret === 3 ? undefined : ret; + } + /** + * @param {number | undefined} arg0 + */ + set verbosity(arg0) { + wasm.__wbg_set_getdictionaryitemoptions_verbosity(this.__wbg_ptr, isLikeNone(arg0) ? 3 : arg0); + } +} +/** +*/ +export class queryContractKeyOptions { + + static __wrap(ptr) { + ptr = ptr >>> 0; + const obj = Object.create(queryContractKeyOptions.prototype); + obj.__wbg_ptr = ptr; + + return obj; + } + + __destroy_into_raw() { + const ptr = this.__wbg_ptr; + this.__wbg_ptr = 0; + + return ptr; + } + + free() { + const ptr = this.__destroy_into_raw(); + wasm.__wbg_querycontractkeyoptions_free(ptr); + } + /** + * @returns {GlobalStateIdentifier | undefined} + */ + get global_state_identifier() { + const ret = wasm.__wbg_get_querycontractkeyoptions_global_state_identifier(this.__wbg_ptr); + return ret === 0 ? undefined : GlobalStateIdentifier.__wrap(ret); + } + /** + * @param {GlobalStateIdentifier | undefined} arg0 + */ + set global_state_identifier(arg0) { + let ptr0 = 0; + if (!isLikeNone(arg0)) { + _assertClass(arg0, GlobalStateIdentifier); + ptr0 = arg0.__destroy_into_raw(); + } + wasm.__wbg_set_querycontractkeyoptions_global_state_identifier(this.__wbg_ptr, ptr0); + } + /** + * @returns {string | undefined} + */ + get state_root_hash_as_string() { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.__wbg_get_querycontractkeyoptions_state_root_hash_as_string(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + let v1; + if (r0 !== 0) { + v1 = getStringFromWasm0(r0, r1).slice(); + wasm.__wbindgen_free(r0, r1 * 1); + } + return v1; + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string | undefined} arg0 + */ + set state_root_hash_as_string(arg0) { + var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + wasm.__wbg_set_querycontractkeyoptions_state_root_hash_as_string(this.__wbg_ptr, ptr0, len0); + } + /** + * @returns {Digest | undefined} + */ + get state_root_hash() { + const ret = wasm.__wbg_get_querycontractkeyoptions_state_root_hash(this.__wbg_ptr); + return ret === 0 ? undefined : Digest.__wrap(ret); + } + /** + * @param {Digest | undefined} arg0 + */ + set state_root_hash(arg0) { + let ptr0 = 0; + if (!isLikeNone(arg0)) { + _assertClass(arg0, Digest); + ptr0 = arg0.__destroy_into_raw(); + } + wasm.__wbg_set_querycontractkeyoptions_state_root_hash(this.__wbg_ptr, ptr0); + } + /** + * @returns {string | undefined} + */ + get maybe_block_id_as_string() { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.__wbg_get_querycontractkeyoptions_maybe_block_id_as_string(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + let v1; + if (r0 !== 0) { + v1 = getStringFromWasm0(r0, r1).slice(); + wasm.__wbindgen_free(r0, r1 * 1); + } + return v1; + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string | undefined} arg0 + */ + set maybe_block_id_as_string(arg0) { + var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + wasm.__wbg_set_querycontractkeyoptions_maybe_block_id_as_string(this.__wbg_ptr, ptr0, len0); + } + /** + * @returns {string | undefined} + */ + get contract_key_as_string() { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.__wbg_get_querycontractkeyoptions_contract_key_as_string(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + let v1; + if (r0 !== 0) { + v1 = getStringFromWasm0(r0, r1).slice(); + wasm.__wbindgen_free(r0, r1 * 1); + } + return v1; + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string | undefined} arg0 + */ + set contract_key_as_string(arg0) { + var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + wasm.__wbg_set_querycontractkeyoptions_contract_key_as_string(this.__wbg_ptr, ptr0, len0); + } + /** + * @returns {Key | undefined} + */ + get contract_key() { + const ret = wasm.__wbg_get_querycontractkeyoptions_contract_key(this.__wbg_ptr); + return ret === 0 ? undefined : Key.__wrap(ret); + } + /** + * @param {Key | undefined} arg0 + */ + set contract_key(arg0) { + let ptr0 = 0; + if (!isLikeNone(arg0)) { + _assertClass(arg0, Key); + ptr0 = arg0.__destroy_into_raw(); + } + wasm.__wbg_set_querycontractkeyoptions_contract_key(this.__wbg_ptr, ptr0); + } + /** + * @returns {string | undefined} + */ + get path_as_string() { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.__wbg_get_querycontractkeyoptions_path_as_string(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + let v1; + if (r0 !== 0) { + v1 = getStringFromWasm0(r0, r1).slice(); + wasm.__wbindgen_free(r0, r1 * 1); + } + return v1; + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string | undefined} arg0 + */ + set path_as_string(arg0) { + var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + wasm.__wbg_set_querycontractkeyoptions_path_as_string(this.__wbg_ptr, ptr0, len0); + } + /** + * @returns {Path | undefined} + */ + get path() { + const ret = wasm.__wbg_get_querycontractkeyoptions_path(this.__wbg_ptr); + return ret === 0 ? undefined : Path.__wrap(ret); + } + /** + * @param {Path | undefined} arg0 + */ + set path(arg0) { + let ptr0 = 0; + if (!isLikeNone(arg0)) { + _assertClass(arg0, Path); + ptr0 = arg0.__destroy_into_raw(); + } + wasm.__wbg_set_querycontractkeyoptions_path(this.__wbg_ptr, ptr0); + } + /** + * @returns {string | undefined} + */ + get node_address() { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.__wbg_get_querycontractkeyoptions_node_address(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + let v1; + if (r0 !== 0) { + v1 = getStringFromWasm0(r0, r1).slice(); + wasm.__wbindgen_free(r0, r1 * 1); + } + return v1; + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string | undefined} arg0 + */ + set node_address(arg0) { + var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + wasm.__wbg_set_querycontractkeyoptions_node_address(this.__wbg_ptr, ptr0, len0); + } + /** + * @returns {number | undefined} + */ + get verbosity() { + const ret = wasm.__wbg_get_querycontractkeyoptions_verbosity(this.__wbg_ptr); + return ret === 3 ? undefined : ret; + } + /** + * @param {number | undefined} arg0 + */ + set verbosity(arg0) { + wasm.__wbg_set_querycontractkeyoptions_verbosity(this.__wbg_ptr, isLikeNone(arg0) ? 3 : arg0); + } +} +/** +* Options for the `query_global_state` method. +*/ +export class queryGlobalStateOptions { + + static __wrap(ptr) { + ptr = ptr >>> 0; + const obj = Object.create(queryGlobalStateOptions.prototype); + obj.__wbg_ptr = ptr; + + return obj; + } + + __destroy_into_raw() { + const ptr = this.__wbg_ptr; + this.__wbg_ptr = 0; + + return ptr; + } + + free() { + const ptr = this.__destroy_into_raw(); + wasm.__wbg_queryglobalstateoptions_free(ptr); + } + /** + * @returns {GlobalStateIdentifier | undefined} + */ + get global_state_identifier() { + const ret = wasm.__wbg_get_queryglobalstateoptions_global_state_identifier(this.__wbg_ptr); + return ret === 0 ? undefined : GlobalStateIdentifier.__wrap(ret); + } + /** + * @param {GlobalStateIdentifier | undefined} arg0 + */ + set global_state_identifier(arg0) { + let ptr0 = 0; + if (!isLikeNone(arg0)) { + _assertClass(arg0, GlobalStateIdentifier); + ptr0 = arg0.__destroy_into_raw(); + } + wasm.__wbg_set_queryglobalstateoptions_global_state_identifier(this.__wbg_ptr, ptr0); + } + /** + * @returns {string | undefined} + */ + get state_root_hash_as_string() { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.__wbg_get_queryglobalstateoptions_state_root_hash_as_string(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + let v1; + if (r0 !== 0) { + v1 = getStringFromWasm0(r0, r1).slice(); + wasm.__wbindgen_free(r0, r1 * 1); + } + return v1; + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string | undefined} arg0 + */ + set state_root_hash_as_string(arg0) { + var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + wasm.__wbg_set_queryglobalstateoptions_state_root_hash_as_string(this.__wbg_ptr, ptr0, len0); + } + /** + * @returns {Digest | undefined} + */ + get state_root_hash() { + const ret = wasm.__wbg_get_queryglobalstateoptions_state_root_hash(this.__wbg_ptr); + return ret === 0 ? undefined : Digest.__wrap(ret); + } + /** + * @param {Digest | undefined} arg0 + */ + set state_root_hash(arg0) { + let ptr0 = 0; + if (!isLikeNone(arg0)) { + _assertClass(arg0, Digest); + ptr0 = arg0.__destroy_into_raw(); + } + wasm.__wbg_set_queryglobalstateoptions_state_root_hash(this.__wbg_ptr, ptr0); + } + /** + * @returns {string | undefined} + */ + get maybe_block_id_as_string() { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.__wbg_get_queryglobalstateoptions_maybe_block_id_as_string(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + let v1; + if (r0 !== 0) { + v1 = getStringFromWasm0(r0, r1).slice(); + wasm.__wbindgen_free(r0, r1 * 1); + } + return v1; + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string | undefined} arg0 + */ + set maybe_block_id_as_string(arg0) { + var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + wasm.__wbg_set_queryglobalstateoptions_maybe_block_id_as_string(this.__wbg_ptr, ptr0, len0); + } + /** + * @returns {string | undefined} + */ + get key_as_string() { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.__wbg_get_queryglobalstateoptions_key_as_string(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + let v1; + if (r0 !== 0) { + v1 = getStringFromWasm0(r0, r1).slice(); + wasm.__wbindgen_free(r0, r1 * 1); + } + return v1; + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string | undefined} arg0 + */ + set key_as_string(arg0) { + var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + wasm.__wbg_set_queryglobalstateoptions_key_as_string(this.__wbg_ptr, ptr0, len0); + } + /** + * @returns {Key | undefined} + */ + get key() { + const ret = wasm.__wbg_get_queryglobalstateoptions_key(this.__wbg_ptr); + return ret === 0 ? undefined : Key.__wrap(ret); + } + /** + * @param {Key | undefined} arg0 + */ + set key(arg0) { + let ptr0 = 0; + if (!isLikeNone(arg0)) { + _assertClass(arg0, Key); + ptr0 = arg0.__destroy_into_raw(); + } + wasm.__wbg_set_queryglobalstateoptions_key(this.__wbg_ptr, ptr0); + } + /** + * @returns {string | undefined} + */ + get path_as_string() { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.__wbg_get_queryglobalstateoptions_path_as_string(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + let v1; + if (r0 !== 0) { + v1 = getStringFromWasm0(r0, r1).slice(); + wasm.__wbindgen_free(r0, r1 * 1); + } + return v1; + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string | undefined} arg0 + */ + set path_as_string(arg0) { + var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + wasm.__wbg_set_queryglobalstateoptions_path_as_string(this.__wbg_ptr, ptr0, len0); + } + /** + * @returns {Path | undefined} + */ + get path() { + const ret = wasm.__wbg_get_queryglobalstateoptions_path(this.__wbg_ptr); + return ret === 0 ? undefined : Path.__wrap(ret); + } + /** + * @param {Path | undefined} arg0 + */ + set path(arg0) { + let ptr0 = 0; + if (!isLikeNone(arg0)) { + _assertClass(arg0, Path); + ptr0 = arg0.__destroy_into_raw(); + } + wasm.__wbg_set_queryglobalstateoptions_path(this.__wbg_ptr, ptr0); + } + /** + * @returns {string | undefined} + */ + get node_address() { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.__wbg_get_queryglobalstateoptions_node_address(retptr, this.__wbg_ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + let v1; + if (r0 !== 0) { + v1 = getStringFromWasm0(r0, r1).slice(); + wasm.__wbindgen_free(r0, r1 * 1); + } + return v1; + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string | undefined} arg0 + */ + set node_address(arg0) { + var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + wasm.__wbg_set_queryglobalstateoptions_node_address(this.__wbg_ptr, ptr0, len0); + } + /** + * @returns {number | undefined} + */ + get verbosity() { + const ret = wasm.__wbg_get_queryglobalstateoptions_verbosity(this.__wbg_ptr); + return ret === 3 ? undefined : ret; + } + /** + * @param {number | undefined} arg0 + */ + set verbosity(arg0) { + wasm.__wbg_set_queryglobalstateoptions_verbosity(this.__wbg_ptr, isLikeNone(arg0) ? 3 : arg0); + } +} + +async function __wbg_load(module, imports) { + if (typeof Response === 'function' && module instanceof Response) { + if (typeof WebAssembly.instantiateStreaming === 'function') { + try { + return await WebAssembly.instantiateStreaming(module, imports); + + } catch (e) { + if (module.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", e); + + } else { + throw e; + } + } + } + + const bytes = await module.arrayBuffer(); + return await WebAssembly.instantiate(bytes, imports); + + } else { + const instance = await WebAssembly.instantiate(module, imports); + + if (instance instanceof WebAssembly.Instance) { + return { instance, module }; + + } else { + return instance; + } + } +} + +function __wbg_get_imports() { + const imports = {}; + imports.wbg = {}; + imports.wbg.__wbindgen_object_drop_ref = function(arg0) { + takeObject(arg0); + }; + imports.wbg.__wbg_getblockresult_new = function(arg0) { + const ret = GetBlockResult.__wrap(arg0); + return addHeapObject(ret); + }; + imports.wbg.__wbg_error_82cd4adbafcf90ca = function(arg0, arg1) { + console.error(getStringFromWasm0(arg0, arg1)); + }; + imports.wbg.__wbindgen_error_new = function(arg0, arg1) { + const ret = new Error(getStringFromWasm0(arg0, arg1)); + return addHeapObject(ret); + }; + imports.wbg.__wbg_geterasummaryresult_new = function(arg0) { + const ret = GetEraSummaryResult.__wrap(arg0); + return addHeapObject(ret); + }; + imports.wbg.__wbg_getdictionaryitemresult_new = function(arg0) { + const ret = GetDictionaryItemResult.__wrap(arg0); + return addHeapObject(ret); + }; + imports.wbg.__wbg_listrpcsresult_new = function(arg0) { + const ret = ListRpcsResult.__wrap(arg0); + return addHeapObject(ret); + }; + imports.wbg.__wbg_speculativeexecresult_new = function(arg0) { + const ret = SpeculativeExecResult.__wrap(arg0); + return addHeapObject(ret); + }; + imports.wbg.__wbindgen_string_new = function(arg0, arg1) { + const ret = getStringFromWasm0(arg0, arg1); + return addHeapObject(ret); + }; + imports.wbg.__wbg_putdeployresult_new = function(arg0) { + const ret = PutDeployResult.__wrap(arg0); + return addHeapObject(ret); + }; + imports.wbg.__wbg_getchainspecresult_new = function(arg0) { + const ret = GetChainspecResult.__wrap(arg0); + return addHeapObject(ret); + }; + imports.wbg.__wbg_getaccountresult_new = function(arg0) { + const ret = GetAccountResult.__wrap(arg0); + return addHeapObject(ret); + }; + imports.wbg.__wbg_getstateroothashresult_new = function(arg0) { + const ret = GetStateRootHashResult.__wrap(arg0); + return addHeapObject(ret); + }; + imports.wbg.__wbg_getauctioninforesult_new = function(arg0) { + const ret = GetAuctionInfoResult.__wrap(arg0); + return addHeapObject(ret); + }; + imports.wbg.__wbg_getpeersresult_new = function(arg0) { + const ret = GetPeersResult.__wrap(arg0); + return addHeapObject(ret); + }; + imports.wbg.__wbg_queryglobalstateresult_new = function(arg0) { + const ret = QueryGlobalStateResult.__wrap(arg0); + return addHeapObject(ret); + }; + imports.wbg.__wbg_querybalanceresult_new = function(arg0) { + const ret = QueryBalanceResult.__wrap(arg0); + return addHeapObject(ret); + }; + imports.wbg.__wbg_getbalanceresult_new = function(arg0) { + const ret = GetBalanceResult.__wrap(arg0); + return addHeapObject(ret); + }; + imports.wbg.__wbg_geterainforesult_new = function(arg0) { + const ret = GetEraInfoResult.__wrap(arg0); + return addHeapObject(ret); + }; + imports.wbg.__wbg_getdeployresult_new = function(arg0) { + const ret = GetDeployResult.__wrap(arg0); + return addHeapObject(ret); + }; + imports.wbg.__wbg_getnodestatusresult_new = function(arg0) { + const ret = GetNodeStatusResult.__wrap(arg0); + return addHeapObject(ret); + }; + imports.wbg.__wbg_getblocktransfersresult_new = function(arg0) { + const ret = GetBlockTransfersResult.__wrap(arg0); + return addHeapObject(ret); + }; + imports.wbg.__wbg_getvalidatorchangesresult_new = function(arg0) { + const ret = GetValidatorChangesResult.__wrap(arg0); + return addHeapObject(ret); + }; + imports.wbg.__wbindgen_jsval_eq = function(arg0, arg1) { + const ret = getObject(arg0) === getObject(arg1); + return ret; + }; + imports.wbg.__wbindgen_is_undefined = function(arg0) { + const ret = getObject(arg0) === undefined; + return ret; + }; + imports.wbg.__wbindgen_string_get = function(arg0, arg1) { + const obj = getObject(arg1); + const ret = typeof(obj) === 'string' ? obj : undefined; + var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len1 = WASM_VECTOR_LEN; + getInt32Memory0()[arg0 / 4 + 1] = len1; + getInt32Memory0()[arg0 / 4 + 0] = ptr1; + }; + imports.wbg.__wbindgen_is_null = function(arg0) { + const ret = getObject(arg0) === null; + return ret; + }; + imports.wbg.__wbindgen_cb_drop = function(arg0) { + const obj = takeObject(arg0).original; + if (obj.cnt-- == 1) { + obj.a = 0; + return true; + } + const ret = false; + return ret; + }; + imports.wbg.__wbindgen_object_clone_ref = function(arg0) { + const ret = getObject(arg0); + return addHeapObject(ret); + }; + imports.wbg.__wbg_fetch_57429b87be3dcc33 = function(arg0) { + const ret = fetch(getObject(arg0)); + return addHeapObject(ret); + }; + imports.wbg.__wbg_fetch_8eaf01857a5bb21f = function(arg0, arg1) { + const ret = getObject(arg0).fetch(getObject(arg1)); + return addHeapObject(ret); + }; + imports.wbg.__wbg_signal_4bd18fb489af2d4c = function(arg0) { + const ret = getObject(arg0).signal; + return addHeapObject(ret); + }; + imports.wbg.__wbg_new_55c9955722952374 = function() { return handleError(function () { + const ret = new AbortController(); + return addHeapObject(ret); + }, arguments) }; + imports.wbg.__wbg_abort_654b796176d117aa = function(arg0) { + getObject(arg0).abort(); + }; + imports.wbg.__wbg_newwithstrandinit_cad5cd6038c7ff5d = function() { return handleError(function (arg0, arg1, arg2) { + const ret = new Request(getStringFromWasm0(arg0, arg1), getObject(arg2)); + return addHeapObject(ret); + }, arguments) }; + imports.wbg.__wbg_instanceof_Response_fc4327dbfcdf5ced = function(arg0) { + let result; + try { + result = getObject(arg0) instanceof Response; + } catch { + result = false; + } + const ret = result; + return ret; + }; + imports.wbg.__wbg_url_8503de97f69da463 = function(arg0, arg1) { + const ret = getObject(arg1).url; + const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len1 = WASM_VECTOR_LEN; + getInt32Memory0()[arg0 / 4 + 1] = len1; + getInt32Memory0()[arg0 / 4 + 0] = ptr1; + }; + imports.wbg.__wbg_status_ac85a3142a84caa2 = function(arg0) { + const ret = getObject(arg0).status; + return ret; + }; + imports.wbg.__wbg_headers_b70de86b8e989bc0 = function(arg0) { + const ret = getObject(arg0).headers; + return addHeapObject(ret); + }; + imports.wbg.__wbg_arrayBuffer_288fb3538806e85c = function() { return handleError(function (arg0) { + const ret = getObject(arg0).arrayBuffer(); + return addHeapObject(ret); + }, arguments) }; + imports.wbg.__wbg_new_1eead62f64ca15ce = function() { return handleError(function () { + const ret = new Headers(); + return addHeapObject(ret); + }, arguments) }; + imports.wbg.__wbg_append_fda9e3432e3e88da = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) { + getObject(arg0).append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4)); + }, arguments) }; + imports.wbg.__wbg_crypto_c48a774b022d20ac = function(arg0) { + const ret = getObject(arg0).crypto; + return addHeapObject(ret); + }; + imports.wbg.__wbindgen_is_object = function(arg0) { + const val = getObject(arg0); + const ret = typeof(val) === 'object' && val !== null; + return ret; + }; + imports.wbg.__wbg_process_298734cf255a885d = function(arg0) { + const ret = getObject(arg0).process; + return addHeapObject(ret); + }; + imports.wbg.__wbg_versions_e2e78e134e3e5d01 = function(arg0) { + const ret = getObject(arg0).versions; + return addHeapObject(ret); + }; + imports.wbg.__wbg_node_1cd7a5d853dbea79 = function(arg0) { + const ret = getObject(arg0).node; + return addHeapObject(ret); + }; + imports.wbg.__wbindgen_is_string = function(arg0) { + const ret = typeof(getObject(arg0)) === 'string'; + return ret; + }; + imports.wbg.__wbg_msCrypto_bcb970640f50a1e8 = function(arg0) { + const ret = getObject(arg0).msCrypto; + return addHeapObject(ret); + }; + imports.wbg.__wbg_require_8f08ceecec0f4fee = function() { return handleError(function () { + const ret = module.require; + return addHeapObject(ret); + }, arguments) }; + imports.wbg.__wbindgen_is_function = function(arg0) { + const ret = typeof(getObject(arg0)) === 'function'; + return ret; + }; + imports.wbg.__wbg_randomFillSync_dc1e9a60c158336d = function() { return handleError(function (arg0, arg1) { + getObject(arg0).randomFillSync(takeObject(arg1)); + }, arguments) }; + imports.wbg.__wbg_getRandomValues_37fa2ca9e4e07fab = function() { return handleError(function (arg0, arg1) { + getObject(arg0).getRandomValues(getObject(arg1)); + }, arguments) }; + imports.wbg.__wbg_get_44be0491f933a435 = function(arg0, arg1) { + const ret = getObject(arg0)[arg1 >>> 0]; + return addHeapObject(ret); + }; + imports.wbg.__wbg_length_fff51ee6522a1a18 = function(arg0) { + const ret = getObject(arg0).length; + return ret; + }; + imports.wbg.__wbg_new_898a68150f225f2e = function() { + const ret = new Array(); + return addHeapObject(ret); + }; + imports.wbg.__wbg_newnoargs_581967eacc0e2604 = function(arg0, arg1) { + const ret = new Function(getStringFromWasm0(arg0, arg1)); + return addHeapObject(ret); + }; + imports.wbg.__wbg_next_526fc47e980da008 = function(arg0) { + const ret = getObject(arg0).next; + return addHeapObject(ret); + }; + imports.wbg.__wbg_next_ddb3312ca1c4e32a = function() { return handleError(function (arg0) { + const ret = getObject(arg0).next(); + return addHeapObject(ret); + }, arguments) }; + imports.wbg.__wbg_done_5c1f01fb660d73b5 = function(arg0) { + const ret = getObject(arg0).done; + return ret; + }; + imports.wbg.__wbg_value_1695675138684bd5 = function(arg0) { + const ret = getObject(arg0).value; + return addHeapObject(ret); + }; + imports.wbg.__wbg_iterator_97f0c81209c6c35a = function() { + const ret = Symbol.iterator; + return addHeapObject(ret); + }; + imports.wbg.__wbg_get_97b561fb56f034b5 = function() { return handleError(function (arg0, arg1) { + const ret = Reflect.get(getObject(arg0), getObject(arg1)); + return addHeapObject(ret); + }, arguments) }; + imports.wbg.__wbg_call_cb65541d95d71282 = function() { return handleError(function (arg0, arg1) { + const ret = getObject(arg0).call(getObject(arg1)); + return addHeapObject(ret); + }, arguments) }; + imports.wbg.__wbg_new_b51585de1b234aff = function() { + const ret = new Object(); + return addHeapObject(ret); + }; + imports.wbg.__wbg_self_1ff1d729e9aae938 = function() { return handleError(function () { + const ret = self.self; + return addHeapObject(ret); + }, arguments) }; + imports.wbg.__wbg_window_5f4faef6c12b79ec = function() { return handleError(function () { + const ret = window.window; + return addHeapObject(ret); + }, arguments) }; + imports.wbg.__wbg_globalThis_1d39714405582d3c = function() { return handleError(function () { + const ret = globalThis.globalThis; + return addHeapObject(ret); + }, arguments) }; + imports.wbg.__wbg_global_651f05c6a0944d1c = function() { return handleError(function () { + const ret = global.global; + return addHeapObject(ret); + }, arguments) }; + imports.wbg.__wbg_push_ca1c26067ef907ac = function(arg0, arg1) { + const ret = getObject(arg0).push(getObject(arg1)); + return ret; + }; + imports.wbg.__wbg_call_01734de55d61e11d = function() { return handleError(function (arg0, arg1, arg2) { + const ret = getObject(arg0).call(getObject(arg1), getObject(arg2)); + return addHeapObject(ret); + }, arguments) }; + imports.wbg.__wbg_getTime_5e2054f832d82ec9 = function(arg0) { + const ret = getObject(arg0).getTime(); + return ret; + }; + imports.wbg.__wbg_new0_c0be7df4b6bd481f = function() { + const ret = new Date(); + return addHeapObject(ret); + }; + imports.wbg.__wbg_instanceof_Object_3daa8298c86298be = function(arg0) { + let result; + try { + result = getObject(arg0) instanceof Object; + } catch { + result = false; + } + const ret = result; + return ret; + }; + imports.wbg.__wbg_new_43f1b47c28813cbd = function(arg0, arg1) { + try { + var state0 = {a: arg0, b: arg1}; + var cb0 = (arg0, arg1) => { + const a = state0.a; + state0.a = 0; + try { + return __wbg_adapter_671(a, state0.b, arg0, arg1); + } finally { + state0.a = a; + } + }; + const ret = new Promise(cb0); + return addHeapObject(ret); + } finally { + state0.a = state0.b = 0; + } + }; + imports.wbg.__wbg_resolve_53698b95aaf7fcf8 = function(arg0) { + const ret = Promise.resolve(getObject(arg0)); + return addHeapObject(ret); + }; + imports.wbg.__wbg_then_f7e06ee3c11698eb = function(arg0, arg1) { + const ret = getObject(arg0).then(getObject(arg1)); + return addHeapObject(ret); + }; + imports.wbg.__wbg_then_b2267541e2a73865 = function(arg0, arg1, arg2) { + const ret = getObject(arg0).then(getObject(arg1), getObject(arg2)); + return addHeapObject(ret); + }; + imports.wbg.__wbg_buffer_085ec1f694018c4f = function(arg0) { + const ret = getObject(arg0).buffer; + return addHeapObject(ret); + }; + imports.wbg.__wbg_newwithbyteoffsetandlength_6da8e527659b86aa = function(arg0, arg1, arg2) { + const ret = new Uint8Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0); + return addHeapObject(ret); + }; + imports.wbg.__wbg_new_8125e318e6245eed = function(arg0) { + const ret = new Uint8Array(getObject(arg0)); + return addHeapObject(ret); + }; + imports.wbg.__wbg_set_5cf90238115182c3 = function(arg0, arg1, arg2) { + getObject(arg0).set(getObject(arg1), arg2 >>> 0); + }; + imports.wbg.__wbg_length_72e2208bbc0efc61 = function(arg0) { + const ret = getObject(arg0).length; + return ret; + }; + imports.wbg.__wbg_newwithlength_e5d69174d6984cd7 = function(arg0) { + const ret = new Uint8Array(arg0 >>> 0); + return addHeapObject(ret); + }; + imports.wbg.__wbg_subarray_13db269f57aa838d = function(arg0, arg1, arg2) { + const ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0); + return addHeapObject(ret); + }; + imports.wbg.__wbg_getindex_961202524f8271d6 = function(arg0, arg1) { + const ret = getObject(arg0)[arg1 >>> 0]; + return ret; + }; + imports.wbg.__wbg_parse_670c19d4e984792e = function() { return handleError(function (arg0, arg1) { + const ret = JSON.parse(getStringFromWasm0(arg0, arg1)); + return addHeapObject(ret); + }, arguments) }; + imports.wbg.__wbg_stringify_e25465938f3f611f = function() { return handleError(function (arg0) { + const ret = JSON.stringify(getObject(arg0)); + return addHeapObject(ret); + }, arguments) }; + imports.wbg.__wbg_has_c5fcd020291e56b8 = function() { return handleError(function (arg0, arg1) { + const ret = Reflect.has(getObject(arg0), getObject(arg1)); + return ret; + }, arguments) }; + imports.wbg.__wbg_set_092e06b0f9d71865 = function() { return handleError(function (arg0, arg1, arg2) { + const ret = Reflect.set(getObject(arg0), getObject(arg1), getObject(arg2)); + return ret; + }, arguments) }; + imports.wbg.__wbindgen_debug_string = function(arg0, arg1) { + const ret = debugString(getObject(arg1)); + const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len1 = WASM_VECTOR_LEN; + getInt32Memory0()[arg0 / 4 + 1] = len1; + getInt32Memory0()[arg0 / 4 + 0] = ptr1; + }; + imports.wbg.__wbindgen_throw = function(arg0, arg1) { + throw new Error(getStringFromWasm0(arg0, arg1)); + }; + imports.wbg.__wbindgen_memory = function() { + const ret = wasm.memory; + return addHeapObject(ret); + }; + imports.wbg.__wbindgen_closure_wrapper3953 = function(arg0, arg1, arg2) { + const ret = makeMutClosure(arg0, arg1, 741, __wbg_adapter_32); + return addHeapObject(ret); + }; + + return imports; +} + +function __wbg_init_memory(imports, maybe_memory) { + +} + +function __wbg_finalize_init(instance, module) { + wasm = instance.exports; + __wbg_init.__wbindgen_wasm_module = module; + cachedInt32Memory0 = null; + cachedUint8Memory0 = null; + + + return wasm; +} + +function initSync(module) { + if (wasm !== undefined) return wasm; + + const imports = __wbg_get_imports(); + + __wbg_init_memory(imports); + + if (!(module instanceof WebAssembly.Module)) { + module = new WebAssembly.Module(module); + } + + const instance = new WebAssembly.Instance(module, imports); + + return __wbg_finalize_init(instance, module); +} + +async function __wbg_init(input) { + if (wasm !== undefined) return wasm; + + if (typeof input === 'undefined') { + input = new URL('casper_rust_wasm_sdk_bg.wasm', import.meta.url); + } + const imports = __wbg_get_imports(); + + if (typeof input === 'string' || (typeof Request === 'function' && input instanceof Request) || (typeof URL === 'function' && input instanceof URL)) { + input = fetch(input); + } + + __wbg_init_memory(imports); + + const { instance, module } = await __wbg_load(await input, imports); + + return __wbg_finalize_init(instance, module); +} + +export { initSync } +export default __wbg_init; diff --git a/pkg/casper_rust_wasm_sdk_bg.wasm b/pkg/casper_rust_wasm_sdk_bg.wasm new file mode 100644 index 000000000..cc9ebdd22 Binary files /dev/null and b/pkg/casper_rust_wasm_sdk_bg.wasm differ diff --git a/pkg/casper_rust_wasm_sdk_bg.wasm.d.ts b/pkg/casper_rust_wasm_sdk_bg.wasm.d.ts new file mode 100644 index 000000000..9fa6b3e41 --- /dev/null +++ b/pkg/casper_rust_wasm_sdk_bg.wasm.d.ts @@ -0,0 +1,599 @@ +/* tslint:disable */ +/* eslint-disable */ +export const memory: WebAssembly.Memory; +export function __wbg_accessrights_free(a: number): void; +export function accessrights_NONE(): number; +export function accessrights_READ(): number; +export function accessrights_WRITE(): number; +export function accessrights_ADD(): number; +export function accessrights_READ_ADD(): number; +export function accessrights_READ_WRITE(): number; +export function accessrights_ADD_WRITE(): number; +export function accessrights_READ_ADD_WRITE(): number; +export function accessrights_new(a: number, b: number): void; +export function accessrights_from_bits(a: number, b: number, c: number): number; +export function accessrights_is_readable(a: number): number; +export function accessrights_is_writeable(a: number): number; +export function accessrights_is_addable(a: number): number; +export function accessrights_is_none(a: number): number; +export function __wbg_deploy_free(a: number): void; +export function deploy_new(a: number): number; +export function deploy_toJson(a: number): number; +export function deploy_withPaymentAndSession(a: number, b: number, c: number, d: number): void; +export function deploy_withTransfer(a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number): void; +export function deploy_withTTL(a: number, b: number, c: number, d: number, e: number): number; +export function deploy_withTimestamp(a: number, b: number, c: number, d: number, e: number): number; +export function deploy_withChainName(a: number, b: number, c: number, d: number, e: number): number; +export function deploy_withAccount(a: number, b: number, c: number, d: number): number; +export function deploy_withEntryPointName(a: number, b: number, c: number, d: number, e: number): number; +export function deploy_withHash(a: number, b: number, c: number, d: number): number; +export function deploy_withPackageHash(a: number, b: number, c: number, d: number): number; +export function deploy_withModuleBytes(a: number, b: number, c: number, d: number): number; +export function deploy_withSecretKey(a: number, b: number, c: number): number; +export function deploy_withStandardPayment(a: number, b: number, c: number, d: number, e: number): number; +export function deploy_withPayment(a: number, b: number, c: number, d: number): number; +export function deploy_withSession(a: number, b: number, c: number, d: number): number; +export function deploy_validateDeploySize(a: number): number; +export function deploy_sign(a: number, b: number, c: number): number; +export function deploy_TTL(a: number, b: number): void; +export function deploy_timestamp(a: number, b: number): void; +export function deploy_chainName(a: number, b: number): void; +export function deploy_account(a: number, b: number): void; +export function deploy_args(a: number): number; +export function deploy_addArg(a: number, b: number, c: number, d: number): number; +export function __wbg_deploystrparams_free(a: number): void; +export function deploystrparams_new(a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number): number; +export function deploystrparams_secret_key(a: number, b: number): void; +export function deploystrparams_set_secret_key(a: number, b: number, c: number): void; +export function deploystrparams_timestamp(a: number, b: number): void; +export function deploystrparams_set_timestamp(a: number, b: number, c: number): void; +export function deploystrparams_setDefaultTimestamp(a: number): void; +export function deploystrparams_ttl(a: number, b: number): void; +export function deploystrparams_set_ttl(a: number, b: number, c: number): void; +export function deploystrparams_setDefaultTTL(a: number): void; +export function deploystrparams_chain_name(a: number, b: number): void; +export function deploystrparams_set_chain_name(a: number, b: number, c: number): void; +export function deploystrparams_session_account(a: number, b: number): void; +export function deploystrparams_set_session_account(a: number, b: number, c: number): void; +export function __wbg_purseidentifier_free(a: number): void; +export function purseidentifier_fromPublicKey(a: number): number; +export function purseidentifier_fromAccountHash(a: number): number; +export function purseidentifier_fromURef(a: number): number; +export function __wbg_getdeployresult_free(a: number): void; +export function getdeployresult_api_version(a: number): number; +export function getdeployresult_deploy(a: number): number; +export function getdeployresult_toJson(a: number): number; +export function __wbg_getdeployoptions_free(a: number): void; +export function __wbg_get_getdeployoptions_deploy_hash_as_string(a: number, b: number): void; +export function __wbg_set_getdeployoptions_deploy_hash_as_string(a: number, b: number, c: number): void; +export function __wbg_get_getdeployoptions_deploy_hash(a: number): number; +export function __wbg_set_getdeployoptions_deploy_hash(a: number, b: number): void; +export function __wbg_get_getdeployoptions_finalized_approvals(a: number): number; +export function __wbg_set_getdeployoptions_finalized_approvals(a: number, b: number): void; +export function __wbg_get_getdeployoptions_node_address(a: number, b: number): void; +export function __wbg_set_getdeployoptions_node_address(a: number, b: number, c: number): void; +export function __wbg_get_getdeployoptions_verbosity(a: number): number; +export function __wbg_set_getdeployoptions_verbosity(a: number, b: number): void; +export function sdk_get_deploy_options(a: number, b: number): number; +export function sdk_get_deploy(a: number, b: number): number; +export function sdk_info_get_deploy(a: number, b: number): number; +export function __wbg_geterainforesult_free(a: number): void; +export function geterainforesult_api_version(a: number): number; +export function geterainforesult_era_summary(a: number): number; +export function geterainforesult_toJson(a: number): number; +export function __wbg_geterainfooptions_free(a: number): void; +export function __wbg_get_geterainfooptions_maybe_block_id_as_string(a: number, b: number): void; +export function __wbg_set_geterainfooptions_maybe_block_id_as_string(a: number, b: number, c: number): void; +export function __wbg_get_geterainfooptions_maybe_block_identifier(a: number): number; +export function __wbg_set_geterainfooptions_maybe_block_identifier(a: number, b: number): void; +export function __wbg_get_geterainfooptions_node_address(a: number, b: number): void; +export function __wbg_set_geterainfooptions_node_address(a: number, b: number, c: number): void; +export function __wbg_get_geterainfooptions_verbosity(a: number): number; +export function __wbg_set_geterainfooptions_verbosity(a: number, b: number): void; +export function sdk_get_era_info_options(a: number, b: number): number; +export function sdk_get_era_info(a: number, b: number): number; +export function __wbg_getstateroothashresult_free(a: number): void; +export function getstateroothashresult_api_version(a: number): number; +export function getstateroothashresult_state_root_hash(a: number): number; +export function getstateroothashresult_state_root_hash_as_string(a: number, b: number): void; +export function getstateroothashresult_toJson(a: number): number; +export function sdk_get_state_root_hash_options(a: number, b: number): number; +export function sdk_get_state_root_hash(a: number, b: number): number; +export function sdk_chain_get_state_root_hash(a: number, b: number): number; +export function __wbg_speculativeexecresult_free(a: number): void; +export function speculativeexecresult_api_version(a: number): number; +export function speculativeexecresult_block_hash(a: number): number; +export function speculativeexecresult_execution_result(a: number): number; +export function speculativeexecresult_toJson(a: number): number; +export function __wbg_getspeculativeexecoptions_free(a: number): void; +export function __wbg_get_getspeculativeexecoptions_deploy_as_string(a: number, b: number): void; +export function __wbg_set_getspeculativeexecoptions_deploy_as_string(a: number, b: number, c: number): void; +export function __wbg_get_getspeculativeexecoptions_deploy(a: number): number; +export function __wbg_set_getspeculativeexecoptions_deploy(a: number, b: number): void; +export function __wbg_get_getspeculativeexecoptions_maybe_block_id_as_string(a: number, b: number): void; +export function __wbg_set_getspeculativeexecoptions_maybe_block_id_as_string(a: number, b: number, c: number): void; +export function __wbg_get_getspeculativeexecoptions_maybe_block_identifier(a: number): number; +export function __wbg_set_getspeculativeexecoptions_maybe_block_identifier(a: number, b: number): void; +export function __wbg_get_getspeculativeexecoptions_node_address(a: number, b: number): void; +export function __wbg_set_getspeculativeexecoptions_node_address(a: number, b: number, c: number): void; +export function __wbg_get_getspeculativeexecoptions_verbosity(a: number): number; +export function __wbg_set_getspeculativeexecoptions_verbosity(a: number, b: number): void; +export function sdk_speculative_exec_options(a: number, b: number): number; +export function sdk_speculative_exec(a: number, b: number): number; +export function __wbg_sdk_free(a: number): void; +export function sdk_new(a: number, b: number, c: number): number; +export function sdk_getNodeAddress(a: number, b: number, c: number, d: number): void; +export function sdk_setNodeAddress(a: number, b: number, c: number, d: number): void; +export function sdk_getVerbosity(a: number, b: number): number; +export function sdk_setVerbosity(a: number, b: number, c: number): void; +export function hexToString(a: number, b: number, c: number): void; +export function hexToUint8Array(a: number, b: number, c: number): void; +export function uint8ArrayToBytes(a: number): number; +export function motesToCSPR(a: number, b: number, c: number): void; +export function jsonPrettyPrint(a: number, b: number): number; +export function privateToPublicKey(a: number, b: number): number; +export function getTimestamp(): number; +export function __wbg_get_getstateroothashoptions_verbosity(a: number): number; +export function __wbg_getstateroothashoptions_free(a: number): void; +export function __wbg_set_getstateroothashoptions_maybe_block_id_as_string(a: number, b: number, c: number): void; +export function __wbg_set_getstateroothashoptions_node_address(a: number, b: number, c: number): void; +export function __wbg_set_getstateroothashoptions_maybe_block_identifier(a: number, b: number): void; +export function __wbg_get_getstateroothashoptions_maybe_block_identifier(a: number): number; +export function __wbg_set_getstateroothashoptions_verbosity(a: number, b: number): void; +export function __wbg_get_getstateroothashoptions_maybe_block_id_as_string(a: number, b: number): void; +export function __wbg_get_getstateroothashoptions_node_address(a: number, b: number): void; +export function sdk_put_deploy(a: number, b: number, c: number, d: number, e: number): number; +export function sdk_account_put_deploy(a: number, b: number, c: number, d: number, e: number): number; +export function sdk_make_deploy(a: number, b: number, c: number, d: number, e: number): void; +export function sdk_speculative_transfer(a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number, o: number): number; +export function sdk_sign_deploy(a: number, b: number, c: number, d: number): number; +export function __wbg_accounthash_free(a: number): void; +export function accounthash_new(a: number, b: number, c: number): void; +export function accounthash_fromFormattedStr(a: number, b: number, c: number): void; +export function accounthash_fromPublicKey(a: number): number; +export function accounthash_toFormattedString(a: number, b: number): void; +export function accounthash_fromUint8Array(a: number, b: number): number; +export function accounthash_toJson(a: number): number; +export function transferaddr_new(a: number, b: number, c: number): void; +export function fromTransfer(a: number, b: number): number; +export function urefaddr_new(a: number, b: number, c: number): void; +export function blockhash_new(a: number, b: number, c: number): void; +export function blockhash_fromDigest(a: number, b: number): void; +export function blockhash_toJson(a: number): number; +export function blockhash_toString(a: number, b: number): void; +export function __wbg_bytes_free(a: number): void; +export function bytes_new(): number; +export function bytes_fromUint8Array(a: number): number; +export function contracthash_fromString(a: number, b: number, c: number): void; +export function contracthash_fromFormattedStr(a: number, b: number, c: number): void; +export function contracthash_toFormattedString(a: number, b: number): void; +export function contracthash_fromUint8Array(a: number, b: number): number; +export function deployhash_new(a: number, b: number, c: number): void; +export function deployhash_fromDigest(a: number, b: number): void; +export function deployhash_toJson(a: number): number; +export function deployhash_toString(a: number, b: number): void; +export function __wbg_eraid_free(a: number): void; +export function eraid_new(a: number): number; +export function eraid_value(a: number): number; +export function __wbg_path_free(a: number): void; +export function path_new(a: number): number; +export function path_fromArray(a: number): number; +export function path_toJson(a: number): number; +export function path_toString(a: number, b: number): void; +export function path_is_empty(a: number): number; +export function __wbg_publickey_free(a: number): void; +export function publickey_new(a: number, b: number, c: number): void; +export function publickey_fromUint8Array(a: number, b: number): number; +export function publickey_toAccountHash(a: number): number; +export function publickey_toPurseUref(a: number): number; +export function publickey_toJson(a: number): number; +export function __wbg_uref_free(a: number): void; +export function uref_new(a: number, b: number, c: number, d: number): void; +export function uref_fromUint8Array(a: number, b: number, c: number): number; +export function uref_toFormattedString(a: number, b: number): void; +export function uref_toJson(a: number): number; +export function __wbg_getblocktransfersresult_free(a: number): void; +export function getblocktransfersresult_api_version(a: number): number; +export function getblocktransfersresult_block_hash(a: number): number; +export function getblocktransfersresult_transfers(a: number): number; +export function getblocktransfersresult_toJson(a: number): number; +export function __wbg_getblocktransfersoptions_free(a: number): void; +export function __wbg_get_getblocktransfersoptions_maybe_block_id_as_string(a: number, b: number): void; +export function __wbg_set_getblocktransfersoptions_maybe_block_id_as_string(a: number, b: number, c: number): void; +export function __wbg_get_getblocktransfersoptions_maybe_block_identifier(a: number): number; +export function __wbg_set_getblocktransfersoptions_maybe_block_identifier(a: number, b: number): void; +export function __wbg_get_getblocktransfersoptions_verbosity(a: number): number; +export function __wbg_set_getblocktransfersoptions_verbosity(a: number, b: number): void; +export function __wbg_get_getblocktransfersoptions_node_address(a: number, b: number): void; +export function __wbg_set_getblocktransfersoptions_node_address(a: number, b: number, c: number): void; +export function sdk_get_block_transfers_options(a: number, b: number): number; +export function sdk_get_block_transfers(a: number, b: number): number; +export function __wbg_querybalanceresult_free(a: number): void; +export function querybalanceresult_api_version(a: number): number; +export function querybalanceresult_balance(a: number): number; +export function querybalanceresult_toJson(a: number): number; +export function __wbg_querybalanceoptions_free(a: number): void; +export function __wbg_get_querybalanceoptions_purse_identifier_as_string(a: number, b: number): void; +export function __wbg_set_querybalanceoptions_purse_identifier_as_string(a: number, b: number, c: number): void; +export function __wbg_get_querybalanceoptions_purse_identifier(a: number): number; +export function __wbg_set_querybalanceoptions_purse_identifier(a: number, b: number): void; +export function __wbg_get_querybalanceoptions_global_state_identifier(a: number): number; +export function __wbg_set_querybalanceoptions_global_state_identifier(a: number, b: number): void; +export function __wbg_get_querybalanceoptions_state_root_hash_as_string(a: number, b: number): void; +export function __wbg_set_querybalanceoptions_state_root_hash_as_string(a: number, b: number, c: number): void; +export function __wbg_get_querybalanceoptions_state_root_hash(a: number): number; +export function __wbg_set_querybalanceoptions_state_root_hash(a: number, b: number): void; +export function __wbg_get_querybalanceoptions_maybe_block_id_as_string(a: number, b: number): void; +export function __wbg_set_querybalanceoptions_maybe_block_id_as_string(a: number, b: number, c: number): void; +export function __wbg_get_querybalanceoptions_node_address(a: number, b: number): void; +export function __wbg_set_querybalanceoptions_node_address(a: number, b: number, c: number): void; +export function __wbg_get_querybalanceoptions_verbosity(a: number): number; +export function __wbg_set_querybalanceoptions_verbosity(a: number, b: number): void; +export function sdk_query_balance_options(a: number, b: number): number; +export function sdk_query_balance(a: number, b: number): number; +export function __wbg_transferaddr_free(a: number): void; +export function __wbg_urefaddr_free(a: number): void; +export function __wbg_blockhash_free(a: number): void; +export function __wbg_contracthash_free(a: number): void; +export function __wbg_deployhash_free(a: number): void; +export function __wbg_sessionstrparams_free(a: number): void; +export function sessionstrparams_new(a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number, o: number, p: number, q: number, r: number, s: number, t: number, u: number): number; +export function sessionstrparams_session_hash(a: number, b: number): void; +export function sessionstrparams_set_session_hash(a: number, b: number, c: number): void; +export function sessionstrparams_session_name(a: number, b: number): void; +export function sessionstrparams_set_session_name(a: number, b: number, c: number): void; +export function sessionstrparams_session_package_hash(a: number, b: number): void; +export function sessionstrparams_set_session_package_hash(a: number, b: number, c: number): void; +export function sessionstrparams_session_package_name(a: number, b: number): void; +export function sessionstrparams_set_session_package_name(a: number, b: number, c: number): void; +export function sessionstrparams_session_path(a: number, b: number): void; +export function sessionstrparams_set_session_path(a: number, b: number, c: number): void; +export function sessionstrparams_session_bytes(a: number): number; +export function sessionstrparams_set_session_bytes(a: number, b: number): void; +export function sessionstrparams_session_args_simple(a: number): number; +export function sessionstrparams_set_session_args_simple(a: number, b: number): void; +export function sessionstrparams_session_args_json(a: number, b: number): void; +export function sessionstrparams_set_session_args_json(a: number, b: number, c: number): void; +export function sessionstrparams_session_args_complex(a: number, b: number): void; +export function sessionstrparams_set_session_args_complex(a: number, b: number, c: number): void; +export function sessionstrparams_session_version(a: number, b: number): void; +export function sessionstrparams_set_session_version(a: number, b: number, c: number): void; +export function sessionstrparams_session_entry_point(a: number, b: number): void; +export function sessionstrparams_set_session_entry_point(a: number, b: number, c: number): void; +export function sessionstrparams_is_session_transfer(a: number): number; +export function sessionstrparams_set_is_session_transfer(a: number, b: number): void; +export function __wbg_putdeployresult_free(a: number): void; +export function putdeployresult_api_version(a: number): number; +export function putdeployresult_deploy_hash(a: number): number; +export function putdeployresult_toJson(a: number): number; +export function sdk_deploy(a: number, b: number, c: number, d: number, e: number, f: number, g: number): number; +export function sdk_transfer(a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number): number; +export function __wbg_getaccountresult_free(a: number): void; +export function getaccountresult_api_version(a: number): number; +export function getaccountresult_account(a: number): number; +export function getaccountresult_merkle_proof(a: number, b: number): void; +export function getaccountresult_toJson(a: number): number; +export function __wbg_getaccountoptions_free(a: number): void; +export function __wbg_get_getaccountoptions_account_identifier(a: number): number; +export function __wbg_set_getaccountoptions_account_identifier(a: number, b: number): void; +export function __wbg_get_getaccountoptions_account_identifier_as_string(a: number, b: number): void; +export function __wbg_set_getaccountoptions_account_identifier_as_string(a: number, b: number, c: number): void; +export function __wbg_get_getaccountoptions_maybe_block_id_as_string(a: number, b: number): void; +export function __wbg_set_getaccountoptions_maybe_block_id_as_string(a: number, b: number, c: number): void; +export function __wbg_get_getaccountoptions_maybe_block_identifier(a: number): number; +export function __wbg_set_getaccountoptions_maybe_block_identifier(a: number, b: number): void; +export function __wbg_get_getaccountoptions_node_address(a: number, b: number): void; +export function __wbg_set_getaccountoptions_node_address(a: number, b: number, c: number): void; +export function __wbg_get_getaccountoptions_verbosity(a: number): number; +export function __wbg_set_getaccountoptions_verbosity(a: number, b: number): void; +export function sdk_get_account_options(a: number, b: number): number; +export function sdk_get_account(a: number, b: number): number; +export function sdk_state_get_account_info(a: number, b: number): number; +export function __wbg_geterasummaryresult_free(a: number): void; +export function geterasummaryresult_api_version(a: number): number; +export function geterasummaryresult_era_summary(a: number): number; +export function geterasummaryresult_toJson(a: number): number; +export function __wbg_geterasummaryoptions_free(a: number): void; +export function __wbg_get_geterasummaryoptions_maybe_block_id_as_string(a: number, b: number): void; +export function __wbg_set_geterasummaryoptions_maybe_block_id_as_string(a: number, b: number, c: number): void; +export function __wbg_get_geterasummaryoptions_node_address(a: number, b: number): void; +export function __wbg_set_geterasummaryoptions_node_address(a: number, b: number, c: number): void; +export function __wbg_get_geterasummaryoptions_verbosity(a: number): number; +export function __wbg_set_geterasummaryoptions_verbosity(a: number, b: number): void; +export function sdk_get_era_summary_options(a: number, b: number): number; +export function sdk_get_era_summary(a: number, b: number): number; +export function __wbg_getnodestatusresult_free(a: number): void; +export function getnodestatusresult_api_version(a: number): number; +export function getnodestatusresult_chainspec_name(a: number, b: number): void; +export function getnodestatusresult_starting_state_root_hash(a: number): number; +export function getnodestatusresult_peers(a: number): number; +export function getnodestatusresult_last_added_block_info(a: number): number; +export function getnodestatusresult_our_public_signing_key(a: number): number; +export function getnodestatusresult_round_length(a: number): number; +export function getnodestatusresult_next_upgrade(a: number): number; +export function getnodestatusresult_build_version(a: number, b: number): void; +export function getnodestatusresult_uptime(a: number): number; +export function getnodestatusresult_reactor_state(a: number): number; +export function getnodestatusresult_last_progress(a: number): number; +export function getnodestatusresult_available_block_range(a: number): number; +export function getnodestatusresult_block_sync(a: number): number; +export function getnodestatusresult_toJson(a: number): number; +export function sdk_get_node_status(a: number, b: number, c: number, d: number): number; +export function __wbg_getvalidatorchangesresult_free(a: number): void; +export function getvalidatorchangesresult_api_version(a: number): number; +export function getvalidatorchangesresult_changes(a: number): number; +export function getvalidatorchangesresult_toJson(a: number): number; +export function sdk_get_validator_changes(a: number, b: number, c: number, d: number): number; +export function __wbg_listrpcsresult_free(a: number): void; +export function listrpcsresult_api_version(a: number): number; +export function listrpcsresult_name(a: number, b: number): void; +export function listrpcsresult_schema(a: number): number; +export function listrpcsresult_toJson(a: number): number; +export function sdk_list_rpcs(a: number, b: number, c: number, d: number): number; +export function __wbg_queryglobalstateresult_free(a: number): void; +export function queryglobalstateresult_api_version(a: number): number; +export function queryglobalstateresult_block_header(a: number): number; +export function queryglobalstateresult_stored_value(a: number): number; +export function queryglobalstateresult_merkle_proof(a: number, b: number): void; +export function queryglobalstateresult_toJson(a: number): number; +export function __wbg_queryglobalstateoptions_free(a: number): void; +export function __wbg_get_queryglobalstateoptions_global_state_identifier(a: number): number; +export function __wbg_set_queryglobalstateoptions_global_state_identifier(a: number, b: number): void; +export function __wbg_get_queryglobalstateoptions_state_root_hash_as_string(a: number, b: number): void; +export function __wbg_set_queryglobalstateoptions_state_root_hash_as_string(a: number, b: number, c: number): void; +export function __wbg_get_queryglobalstateoptions_state_root_hash(a: number): number; +export function __wbg_set_queryglobalstateoptions_state_root_hash(a: number, b: number): void; +export function __wbg_get_queryglobalstateoptions_maybe_block_id_as_string(a: number, b: number): void; +export function __wbg_set_queryglobalstateoptions_maybe_block_id_as_string(a: number, b: number, c: number): void; +export function __wbg_get_queryglobalstateoptions_key_as_string(a: number, b: number): void; +export function __wbg_set_queryglobalstateoptions_key_as_string(a: number, b: number, c: number): void; +export function __wbg_get_queryglobalstateoptions_key(a: number): number; +export function __wbg_set_queryglobalstateoptions_key(a: number, b: number): void; +export function __wbg_get_queryglobalstateoptions_path_as_string(a: number, b: number): void; +export function __wbg_set_queryglobalstateoptions_path_as_string(a: number, b: number, c: number): void; +export function __wbg_get_queryglobalstateoptions_path(a: number): number; +export function __wbg_set_queryglobalstateoptions_path(a: number, b: number): void; +export function __wbg_get_queryglobalstateoptions_node_address(a: number, b: number): void; +export function __wbg_set_queryglobalstateoptions_node_address(a: number, b: number, c: number): void; +export function __wbg_get_queryglobalstateoptions_verbosity(a: number): number; +export function __wbg_set_queryglobalstateoptions_verbosity(a: number, b: number): void; +export function sdk_query_global_state_options(a: number, b: number): number; +export function sdk_query_global_state(a: number, b: number): number; +export function __wbg_set_geterasummaryoptions_maybe_block_identifier(a: number, b: number): void; +export function __wbg_get_geterasummaryoptions_maybe_block_identifier(a: number): number; +export function __wbg_accountidentifier_free(a: number): void; +export function accountidentifier_fromFormattedStr(a: number, b: number, c: number): void; +export function accountidentifier_fromPublicKey(a: number): number; +export function accountidentifier_fromAccountHash(a: number): number; +export function accountidentifier_toJson(a: number): number; +export function __wbg_contractpackagehash_free(a: number): void; +export function contractpackagehash_fromString(a: number, b: number, c: number): void; +export function contractpackagehash_fromFormattedStr(a: number, b: number, c: number): void; +export function contractpackagehash_toFormattedString(a: number, b: number): void; +export function contractpackagehash_fromUint8Array(a: number, b: number): number; +export function __wbg_dictionaryitemidentifier_free(a: number): void; +export function dictionaryitemidentifier_newFromAccountInfo(a: number, b: number, c: number, d: number, e: number, f: number, g: number): void; +export function dictionaryitemidentifier_newFromContractInfo(a: number, b: number, c: number, d: number, e: number, f: number, g: number): void; +export function dictionaryitemidentifier_newFromSeedUref(a: number, b: number, c: number, d: number, e: number): void; +export function dictionaryitemidentifier_newFromDictionaryKey(a: number, b: number, c: number): void; +export function dictionaryitemidentifier_toJson(a: number): number; +export function digest__new(a: number, b: number, c: number): void; +export function digest_fromDigest(a: number, b: number, c: number): void; +export function digest_toJson(a: number): number; +export function digest_toString(a: number, b: number): void; +export function __wbg_key_free(a: number): void; +export function key_new(a: number, b: number): void; +export function key_toJson(a: number): number; +export function key_fromURef(a: number): number; +export function key_fromDeployInfo(a: number): number; +export function key_fromAccount(a: number): number; +export function key_fromHash(a: number): number; +export function key_fromTransfer(a: number, b: number): number; +export function key_fromEraInfo(a: number): number; +export function key_fromBalance(a: number): number; +export function key_fromBid(a: number): number; +export function key_fromWithdraw(a: number): number; +export function key_fromDictionaryAddr(a: number): number; +export function key_asDictionaryAddr(a: number): number; +export function key_fromSystemContractRegistry(): number; +export function key_fromEraSummary(): number; +export function key_fromUnbond(a: number): number; +export function key_fromChainspecRegistry(): number; +export function key_fromChecksumRegistry(): number; +export function key_toFormattedString(a: number, b: number): void; +export function key_fromFormattedString(a: number, b: number): void; +export function key_fromDictionaryKey(a: number, b: number, c: number): number; +export function key_isDictionaryKey(a: number): number; +export function key_intoAccount(a: number): number; +export function key_intoHash(a: number): number; +export function key_asBalance(a: number): number; +export function key_intoURef(a: number): number; +export function key_urefToHash(a: number): number; +export function key_withdrawToUnbond(a: number): number; +export function __wbg_getauctioninforesult_free(a: number): void; +export function getauctioninforesult_api_version(a: number): number; +export function getauctioninforesult_auction_state(a: number): number; +export function getauctioninforesult_toJson(a: number): number; +export function __wbg_getauctioninfooptions_free(a: number): void; +export function __wbg_get_getauctioninfooptions_maybe_block_id_as_string(a: number, b: number): void; +export function __wbg_set_getauctioninfooptions_maybe_block_id_as_string(a: number, b: number, c: number): void; +export function __wbg_get_getauctioninfooptions_maybe_block_identifier(a: number): number; +export function __wbg_set_getauctioninfooptions_maybe_block_identifier(a: number, b: number): void; +export function __wbg_get_getauctioninfooptions_node_address(a: number, b: number): void; +export function __wbg_set_getauctioninfooptions_node_address(a: number, b: number, c: number): void; +export function __wbg_get_getauctioninfooptions_verbosity(a: number): number; +export function __wbg_set_getauctioninfooptions_verbosity(a: number, b: number): void; +export function sdk_get_auction_info_options(a: number, b: number): number; +export function sdk_get_auction_info(a: number, b: number): number; +export function __wbg_getblockresult_free(a: number): void; +export function getblockresult_api_version(a: number): number; +export function getblockresult_block(a: number): number; +export function getblockresult_toJson(a: number): number; +export function sdk_get_block_options(a: number, b: number): number; +export function sdk_get_block(a: number, b: number): number; +export function sdk_chain_get_block(a: number, b: number): number; +export function __wbg_getpeersresult_free(a: number): void; +export function getpeersresult_api_version(a: number): number; +export function getpeersresult_peers(a: number): number; +export function getpeersresult_toJson(a: number): number; +export function sdk_get_peers(a: number, b: number, c: number, d: number): number; +export function sdk_make_transfer(a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number): void; +export function __wbg_get_getblockoptions_verbosity(a: number): number; +export function __wbg_getblockoptions_free(a: number): void; +export function __wbg_set_getblockoptions_maybe_block_id_as_string(a: number, b: number, c: number): void; +export function __wbg_set_getblockoptions_node_address(a: number, b: number, c: number): void; +export function __wbg_set_getblockoptions_maybe_block_identifier(a: number, b: number): void; +export function __wbg_get_getblockoptions_maybe_block_identifier(a: number): number; +export function accountidentifier_new(a: number, b: number, c: number): void; +export function digest_fromString(a: number, b: number, c: number): void; +export function __wbg_set_getblockoptions_verbosity(a: number, b: number): void; +export function __wbg_digest_free(a: number): void; +export function __wbg_get_getblockoptions_maybe_block_id_as_string(a: number, b: number): void; +export function __wbg_get_getblockoptions_node_address(a: number, b: number): void; +export function __wbg_dictionaryaddr_free(a: number): void; +export function dictionaryaddr_new(a: number, b: number, c: number): void; +export function hashaddr_new(a: number, b: number, c: number): void; +export function __wbg_blockidentifier_free(a: number): void; +export function blockidentifier_new(a: number): number; +export function blockidentifier_from_hash(a: number): number; +export function blockidentifier_fromHeight(a: number): number; +export function blockidentifier_toJson(a: number): number; +export function __wbg_argssimple_free(a: number): void; +export function __wbg_dictionaryitemstrparams_free(a: number): void; +export function dictionaryitemstrparams_new(): number; +export function dictionaryitemstrparams_setAccountNamedKey(a: number, b: number, c: number, d: number, e: number, f: number, g: number): void; +export function dictionaryitemstrparams_setContractNamedKey(a: number, b: number, c: number, d: number, e: number, f: number, g: number): void; +export function dictionaryitemstrparams_setUref(a: number, b: number, c: number, d: number, e: number): void; +export function dictionaryitemstrparams_setDictionary(a: number, b: number, c: number): void; +export function dictionaryitemstrparams_toJson(a: number): number; +export function globalstateidentifier_fromStateRootHash(a: number): number; +export function globalstateidentifier_toJson(a: number): number; +export function __wbg_peerentry_free(a: number): void; +export function peerentry_node_id(a: number, b: number): void; +export function peerentry_address(a: number, b: number): void; +export function sdk_speculative_deploy(a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number): number; +export function __wbg_getbalanceresult_free(a: number): void; +export function getbalanceresult_api_version(a: number): number; +export function getbalanceresult_balance_value(a: number): number; +export function getbalanceresult_merkle_proof(a: number, b: number): void; +export function getbalanceresult_toJson(a: number): number; +export function __wbg_getbalanceoptions_free(a: number): void; +export function __wbg_get_getbalanceoptions_state_root_hash_as_string(a: number, b: number): void; +export function __wbg_set_getbalanceoptions_state_root_hash_as_string(a: number, b: number, c: number): void; +export function __wbg_get_getbalanceoptions_state_root_hash(a: number): number; +export function __wbg_set_getbalanceoptions_state_root_hash(a: number, b: number): void; +export function __wbg_get_getbalanceoptions_purse_uref_as_string(a: number, b: number): void; +export function __wbg_set_getbalanceoptions_purse_uref_as_string(a: number, b: number, c: number): void; +export function __wbg_get_getbalanceoptions_purse_uref(a: number): number; +export function __wbg_set_getbalanceoptions_purse_uref(a: number, b: number): void; +export function __wbg_get_getbalanceoptions_node_address(a: number, b: number): void; +export function __wbg_set_getbalanceoptions_node_address(a: number, b: number, c: number): void; +export function __wbg_get_getbalanceoptions_verbosity(a: number): number; +export function __wbg_set_getbalanceoptions_verbosity(a: number, b: number): void; +export function sdk_get_balance_options(a: number, b: number): number; +export function sdk_get_balance(a: number, b: number): number; +export function sdk_state_get_balance(a: number, b: number): number; +export function __wbg_getchainspecresult_free(a: number): void; +export function getchainspecresult_api_version(a: number): number; +export function getchainspecresult_chainspec_bytes(a: number): number; +export function getchainspecresult_toJson(a: number): number; +export function sdk_get_chainspec(a: number, b: number, c: number, d: number): number; +export function __wbg_getdictionaryitemresult_free(a: number): void; +export function getdictionaryitemresult_api_version(a: number): number; +export function getdictionaryitemresult_dictionary_key(a: number, b: number): void; +export function getdictionaryitemresult_stored_value(a: number): number; +export function getdictionaryitemresult_merkle_proof(a: number, b: number): void; +export function getdictionaryitemresult_toJson(a: number): number; +export function __wbg_getdictionaryitemoptions_free(a: number): void; +export function __wbg_get_getdictionaryitemoptions_state_root_hash_as_string(a: number, b: number): void; +export function __wbg_set_getdictionaryitemoptions_state_root_hash_as_string(a: number, b: number, c: number): void; +export function __wbg_get_getdictionaryitemoptions_state_root_hash(a: number): number; +export function __wbg_set_getdictionaryitemoptions_state_root_hash(a: number, b: number): void; +export function __wbg_get_getdictionaryitemoptions_dictionary_item_params(a: number): number; +export function __wbg_set_getdictionaryitemoptions_dictionary_item_params(a: number, b: number): void; +export function __wbg_get_getdictionaryitemoptions_dictionary_item_identifier(a: number): number; +export function __wbg_set_getdictionaryitemoptions_dictionary_item_identifier(a: number, b: number): void; +export function __wbg_get_getdictionaryitemoptions_node_address(a: number, b: number): void; +export function __wbg_set_getdictionaryitemoptions_node_address(a: number, b: number, c: number): void; +export function __wbg_get_getdictionaryitemoptions_verbosity(a: number): number; +export function __wbg_set_getdictionaryitemoptions_verbosity(a: number, b: number): void; +export function sdk_get_dictionary_item_options(a: number, b: number): number; +export function sdk_get_dictionary_item(a: number, b: number): number; +export function sdk_state_get_dictionary_item(a: number, b: number): number; +export function sdk_query_contract_dict_options(a: number, b: number): number; +export function sdk_query_contract_dict(a: number, b: number): number; +export function __wbg_querycontractkeyoptions_free(a: number): void; +export function __wbg_get_querycontractkeyoptions_global_state_identifier(a: number): number; +export function __wbg_set_querycontractkeyoptions_global_state_identifier(a: number, b: number): void; +export function __wbg_get_querycontractkeyoptions_state_root_hash_as_string(a: number, b: number): void; +export function __wbg_set_querycontractkeyoptions_state_root_hash_as_string(a: number, b: number, c: number): void; +export function __wbg_get_querycontractkeyoptions_state_root_hash(a: number): number; +export function __wbg_set_querycontractkeyoptions_state_root_hash(a: number, b: number): void; +export function __wbg_get_querycontractkeyoptions_maybe_block_id_as_string(a: number, b: number): void; +export function __wbg_set_querycontractkeyoptions_maybe_block_id_as_string(a: number, b: number, c: number): void; +export function __wbg_get_querycontractkeyoptions_contract_key_as_string(a: number, b: number): void; +export function __wbg_set_querycontractkeyoptions_contract_key_as_string(a: number, b: number, c: number): void; +export function __wbg_get_querycontractkeyoptions_contract_key(a: number): number; +export function __wbg_set_querycontractkeyoptions_contract_key(a: number, b: number): void; +export function __wbg_get_querycontractkeyoptions_path_as_string(a: number, b: number): void; +export function __wbg_set_querycontractkeyoptions_path_as_string(a: number, b: number, c: number): void; +export function __wbg_get_querycontractkeyoptions_path(a: number): number; +export function __wbg_set_querycontractkeyoptions_path(a: number, b: number): void; +export function __wbg_get_querycontractkeyoptions_node_address(a: number, b: number): void; +export function __wbg_set_querycontractkeyoptions_node_address(a: number, b: number, c: number): void; +export function __wbg_get_querycontractkeyoptions_verbosity(a: number): number; +export function __wbg_set_querycontractkeyoptions_verbosity(a: number, b: number): void; +export function sdk_query_contract_key_options(a: number, b: number): number; +export function sdk_query_contract_key(a: number, b: number): number; +export function globalstateidentifier_fromBlockHeight(a: number): number; +export function __wbg_get_querycontractdictoptions_verbosity(a: number): number; +export function __wbg_set_querycontractdictoptions_dictionary_item_params(a: number, b: number): void; +export function __wbg_set_querycontractdictoptions_state_root_hash_as_string(a: number, b: number, c: number): void; +export function __wbg_set_querycontractdictoptions_node_address(a: number, b: number, c: number): void; +export function __wbg_set_querycontractdictoptions_state_root_hash(a: number, b: number): void; +export function globalstateidentifier_fromBlockHash(a: number): number; +export function __wbg_querycontractdictoptions_free(a: number): void; +export function __wbg_set_querycontractdictoptions_dictionary_item_identifier(a: number, b: number): void; +export function __wbg_get_querycontractdictoptions_state_root_hash(a: number): number; +export function __wbg_set_querycontractdictoptions_verbosity(a: number, b: number): void; +export function __wbg_hashaddr_free(a: number): void; +export function __wbg_globalstateidentifier_free(a: number): void; +export function __wbg_get_querycontractdictoptions_state_root_hash_as_string(a: number, b: number): void; +export function __wbg_get_querycontractdictoptions_node_address(a: number, b: number): void; +export function __wbg_get_querycontractdictoptions_dictionary_item_params(a: number): number; +export function __wbg_get_querycontractdictoptions_dictionary_item_identifier(a: number): number; +export function globalstateidentifier_new(a: number): number; +export function __wbg_paymentstrparams_free(a: number): void; +export function paymentstrparams_new(a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number, o: number, p: number, q: number, r: number, s: number, t: number, u: number): number; +export function paymentstrparams_payment_amount(a: number, b: number): void; +export function paymentstrparams_set_payment_amount(a: number, b: number, c: number): void; +export function paymentstrparams_payment_hash(a: number, b: number): void; +export function paymentstrparams_set_payment_hash(a: number, b: number, c: number): void; +export function paymentstrparams_payment_name(a: number, b: number): void; +export function paymentstrparams_set_payment_name(a: number, b: number, c: number): void; +export function paymentstrparams_payment_package_hash(a: number, b: number): void; +export function paymentstrparams_set_payment_package_hash(a: number, b: number, c: number): void; +export function paymentstrparams_payment_package_name(a: number, b: number): void; +export function paymentstrparams_set_payment_package_name(a: number, b: number, c: number): void; +export function paymentstrparams_payment_path(a: number, b: number): void; +export function paymentstrparams_set_payment_path(a: number, b: number, c: number): void; +export function paymentstrparams_payment_args_simple(a: number): number; +export function paymentstrparams_set_payment_args_simple(a: number, b: number): void; +export function paymentstrparams_payment_args_json(a: number, b: number): void; +export function paymentstrparams_set_payment_args_json(a: number, b: number, c: number): void; +export function paymentstrparams_payment_args_complex(a: number, b: number): void; +export function paymentstrparams_set_payment_args_complex(a: number, b: number, c: number): void; +export function paymentstrparams_payment_version(a: number, b: number): void; +export function paymentstrparams_set_payment_version(a: number, b: number, c: number): void; +export function paymentstrparams_payment_entry_point(a: number, b: number): void; +export function paymentstrparams_set_payment_entry_point(a: number, b: number, c: number): void; +export function sdk_install(a: number, b: number, c: number, d: number, e: number, f: number, g: number): number; +export function sdk_call_entrypoint(a: number, b: number, c: number, d: number, e: number, f: number, g: number): number; +export function __wbindgen_malloc(a: number, b: number): number; +export function __wbindgen_realloc(a: number, b: number, c: number, d: number): number; +export const __wbindgen_export_2: WebAssembly.Table; +export function _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__he9a0163254a4b264(a: number, b: number, c: number): void; +export function __wbindgen_add_to_stack_pointer(a: number): number; +export function __wbindgen_free(a: number, b: number, c: number): void; +export function __wbindgen_exn_store(a: number): void; +export function wasm_bindgen__convert__closures__invoke2_mut__h02a7a5846fd066d3(a: number, b: number, c: number, d: number): void; diff --git a/pkg/package.json b/pkg/package.json new file mode 100644 index 000000000..1aa04c86e --- /dev/null +++ b/pkg/package.json @@ -0,0 +1,27 @@ +{ + "name": "casper-rust-wasm-sdk", + "description": "Casper Rust Wasm Web SDK", + "version": "0.1.0", + "license": "Apache-2.0", + "repository": { + "type": "git", + "url": "https://github.com/casper-ecosystem/rustSDK" + }, + "files": [ + "casper_rust_wasm_sdk_bg.wasm", + "casper_rust_wasm_sdk.js", + "casper_rust_wasm_sdk.d.ts" + ], + "module": "casper_rust_wasm_sdk.js", + "homepage": "https://casperlabs.io", + "types": "casper_rust_wasm_sdk.d.ts", + "sideEffects": [ + "./snippets/*" + ], + "keywords": [ + "casper", + "sdk", + "rust", + "wasm" + ] +} \ No newline at end of file diff --git a/src/helpers/mod.rs b/src/helpers/mod.rs new file mode 100644 index 000000000..e7506833e --- /dev/null +++ b/src/helpers/mod.rs @@ -0,0 +1,329 @@ +use crate::debug::error; +use crate::types::public_key::PublicKey; +use crate::types::sdk_error::SdkError; +use crate::types::verbosity::Verbosity; +use casper_client::cli::JsonArg; +use casper_client::types::{Deploy, TimeDiff, Timestamp}; +use casper_types::cl_value::cl_value_to_json as cl_value_to_json_from_casper_types; +use casper_types::{CLValue, ErrorExt, PublicKey as CasperTypesPublicKey, SecretKey}; +use casper_types::{NamedArg, RuntimeArgs}; +use chrono::{DateTime, NaiveDateTime, SecondsFormat, Utc}; +use gloo_utils::format::JsValueSerdeExt; +use rust_decimal::prelude::*; +use serde::Serialize; +use serde_json::Value; +use std::str::FromStr; +use wasm_bindgen::{JsCast, JsValue}; + +/// Converts a CLValue to a JSON Value. +/// +/// # Arguments +/// +/// * `cl_value` - The CLValue to convert. +/// +/// # Returns +/// +/// A JSON Value representing the CLValue data. +pub fn cl_value_to_json(cl_value: &CLValue) -> Option { + cl_value_to_json_from_casper_types(cl_value) +} + +/// Gets the current timestamp. +/// +/// # Arguments +/// +/// * `timestamp` - An optional timestamp value in milliseconds since the Unix epoch. +/// +/// # Returns +/// +/// A string containing the current timestamp in RFC3339 format. +pub fn get_current_timestamp(timestamp: Option) -> String { + let parsed_timestamp = timestamp.as_ref().and_then(|ts| ts.parse::().ok()); + let current_timestamp = parsed_timestamp + .map(|parsed_time| { + NaiveDateTime::from_timestamp_opt(parsed_time / 1000, 0) + .map(|naive_time| DateTime::::from_utc(naive_time, Utc)) + .unwrap_or_else(Utc::now) + }) + .unwrap_or_else(Utc::now); + current_timestamp.to_rfc3339_opts(SecondsFormat::Secs, true) +} + +/// Gets the time to live (TTL) value or returns the default value if not provided. +/// +/// # Arguments +/// +/// * `ttl` - An optional TTL value as a string. +/// +/// # Returns +/// +/// A string containing the TTL value or the default TTL if not provided. +pub fn get_ttl_or_default(ttl: Option<&str>) -> String { + if let Some(ttl) = ttl { + ttl.to_string() + } else { + Deploy::DEFAULT_TTL.to_string() + } +} + +/// Parses a timestamp string into a `Timestamp` object. +/// +/// # Arguments +/// +/// * `value` - The timestamp string to parse. +/// +/// # Returns +/// +/// A `Result` containing the parsed `Timestamp` or an error if parsing fails. +pub fn parse_timestamp(value: &str) -> Result { + Timestamp::from_str(value).map_err(|error| SdkError::FailedToParseTimestamp { + context: "timestamp", + error, + }) +} + +/// Parses a TTL (time to live) string into a `TimeDiff` object. +/// +/// # Arguments +/// +/// * `value` - The TTL string to parse. +/// +/// # Returns +/// +/// A `Result` containing the parsed `TimeDiff` or an error if parsing fails. +pub fn parse_ttl(value: &str) -> Result { + TimeDiff::from_str(value).map_err(|error| SdkError::FailedToParseTimeDiff { + context: "ttl", + error, + }) +} + +/// Gets the gas price or returns the default value if not provided. +/// +/// # Arguments +/// +/// * `gas_price` - An optional gas price value. +/// +/// # Returns +/// +/// The gas price or the default gas price if not provided. +pub fn get_gas_price_or_default(gas_price: Option) -> u64 { + gas_price.unwrap_or(Deploy::DEFAULT_GAS_PRICE) +} + +/// Gets the value as a string or returns an empty string if not provided. +/// +/// # Arguments +/// +/// * `opt_str` - An optional string value. +/// +/// # Returns +/// +/// The string value or an empty string if not provided. +pub(crate) fn get_str_or_default(opt_str: Option<&String>) -> &str { + opt_str.map(String::as_str).unwrap_or_default() +} + +/// Parses a secret key in PEM format into a `SecretKey` object. +/// +/// # Arguments +/// +/// * `secret_key` - The secret key in PEM format. +/// +/// # Returns +/// +/// A `Result` containing the parsed `SecretKey` or an error if parsing fails. +pub fn secret_key_from_pem(secret_key: &str) -> Result { + SecretKey::from_pem(secret_key) +} + +/// Converts a secret key in PEM format to its corresponding public key as a string. +/// +/// # Arguments +/// +/// * `secret_key` - The secret key in PEM format. +/// +/// # Returns +/// +/// A `Result` containing the public key as a string or an error if the conversion fails. +pub fn public_key_from_private_key(secret_key: &str) -> Result { + let secret_key_from_pem = secret_key_from_pem(secret_key); + let public_key = match secret_key_from_pem { + Ok(secret_key) => CasperTypesPublicKey::from(&secret_key), + Err(err) => { + error(&format!("Error in public_key_from_private_key: {:?}", err)); + return Err(err); + } + }; + let public_key_test: PublicKey = public_key.into(); + Ok(public_key_test.to_string()) +} + +/// Converts a hexadecimal string to a vector of unsigned 8-bit integers (Uint8Array). +/// +/// # Arguments +/// +/// * `hex_string` - The hexadecimal string to convert. +/// +/// # Returns +/// +/// A vector of unsigned 8-bit integers (Uint8Array) containing the converted value. +pub fn hex_to_uint8_vec(hex_string: &str) -> Vec { + let mut bytes = Vec::with_capacity(hex_string.len() / 2); + let mut hex_chars = hex_string.chars(); + while let (Some(a), Some(b)) = (hex_chars.next(), hex_chars.next()) { + if let Ok(byte) = u8::from_str_radix(&format!("{}{}", a, b), 16) { + bytes.push(byte); + } else { + // If an invalid hex pair is encountered, return an empty vector. + return Vec::new(); + } + } + bytes +} + +/// Converts a hexadecimal string to a regular string. +/// +/// # Arguments +/// +/// * `hex_string` - The hexadecimal string to convert. +/// +/// # Returns +/// +/// A regular string containing the converted value. +pub fn hex_to_string(hex_string: &str) -> String { + match hex::decode(hex_string) { + Ok(bytes) => String::from_utf8_lossy(&bytes).to_string(), + Err(_) => hex_string.to_string(), + } +} + +/// Converts motes to CSPR (Casper tokens). +/// +/// # Arguments +/// +/// * `motes` - The motes value to convert. +/// +/// # Returns +/// +/// A string representing the CSPR amount. +pub fn motes_to_cspr(motes: &str) -> String { + match Decimal::from_str(motes) { + Ok(motes_decimal) => { + let cspr_decimal = motes_decimal / Decimal::new(1_000_000_000, 0); + let formatted_cspr = cspr_decimal.to_string(); + if formatted_cspr.ends_with(".00") { + formatted_cspr.replace(".00", "") + } else { + formatted_cspr + } + } + Err(_) => { + eprintln!("Failed to parse input as Decimal"); + "Invalid input".to_string() + } + } +} + +/// Pretty prints a serializable value as a JSON string. +/// +/// # Arguments +/// +/// * `value` - The serializable value to pretty print. +/// * `verbosity` - An optional verbosity level for pretty printing. +/// +/// # Returns +/// +/// A JSON string representing the pretty printed value. +pub fn json_pretty_print(value: T, verbosity: Option) -> String +where + T: Serialize, +{ + if let Ok(deserialized) = serde_json::to_value(&value) { + let result = match verbosity { + Some(Verbosity::Low) | None => Ok(deserialized.to_string()), + Some(Verbosity::Medium) => casper_types::json_pretty_print(&deserialized), + Some(Verbosity::High) => serde_json::to_string_pretty(&deserialized), + } + .map_err(|err| error(&format!("Error in json_pretty_print: {}", err))); + + match result { + Ok(result) => result, + Err(err) => { + error(&format!("Error in json_pretty_print: {:?}", err)); + String::from("") + } + } + } else { + error("Deserialization error into_serde of json_pretty_print"); + String::from("") + } +} + +/// Inserts a JavaScript value argument into a RuntimeArgs map. +/// +/// # Arguments +/// +/// * `args` - The RuntimeArgs map to insert the argument into. +/// * `js_value_arg` - The JavaScript value argument to insert. +/// +/// # Returns +/// +/// The modified `RuntimeArgs` map. +pub fn insert_js_value_arg(args: &mut RuntimeArgs, js_value_arg: JsValue) -> &RuntimeArgs { + if js_sys::Object::instanceof(&js_value_arg) { + let json_arg: Result = js_value_arg.into_serde(); + let json_arg: Option = match json_arg { + Ok(arg) => Some(arg), + Err(err) => { + error(&format!("Error converting to JsonArg: {:?}", err)); + None + } + }; + if let Some(json_arg) = json_arg { + let named_arg = NamedArg::try_from(json_arg); + let named_arg: Option = match named_arg { + Ok(arg) => Some(arg), + Err(err) => { + error(&format!("Error converting to NamedArg: {:?}", err)); + None + } + }; + if let Some(named_arg) = named_arg { + args.insert_cl_value(named_arg.name(), named_arg.cl_value().clone()); + } + } + } else if let Some(string_arg) = js_value_arg.as_string() { + let simple_arg = string_arg; + let _ = casper_client::cli::insert_arg(&simple_arg, args); + } else { + error("Error converting to JsonArg or Simple Arg"); + } + args +} + +/// Inserts an argument into a RuntimeArgs map. +/// +/// # Arguments +/// +/// * `args` - The RuntimeArgs map to insert the argument into. +/// * `new_arg` - The argument as a string. +/// +/// # Returns +/// +/// The modified `RuntimeArgs` map. +pub(crate) fn insert_arg(args: &mut RuntimeArgs, new_arg: String) -> &RuntimeArgs { + match serde_json::from_str::(&new_arg) { + Ok(json_arg) => { + if let Ok(named_arg) = NamedArg::try_from(json_arg.clone()) { + // JSON args + args.insert_cl_value(named_arg.name(), named_arg.cl_value().clone()); + } + } + Err(_) => { + // Simple args + let _ = casper_client::cli::insert_arg(&new_arg, args); + } + } + args +} diff --git a/src/js/externs.rs b/src/js/externs.rs new file mode 100644 index 000000000..f921a5ebf --- /dev/null +++ b/src/js/externs.rs @@ -0,0 +1,39 @@ +use wasm_bindgen::prelude::*; + +/// Logs a message, prefixing it with "log wasm" and sends it to the console in JavaScript when running in a WebAssembly environment. +/// When running outside WebAssembly, it prints the message to the standard output. +#[wasm_bindgen] +extern "C" { + #[wasm_bindgen(js_namespace = console, js_name = log)] + fn log_with_prefix(s: &str); +} + +/// Logs a message, prefixing it with "log wasm" and sends it to the console in JavaScript when running in a WebAssembly environment. +/// When running outside WebAssembly, it prints the message to the standard output. +#[allow(dead_code)] +pub(crate) fn log(s: &str) { + let prefixed_s = format!("log wasm {}", s); + #[cfg(target_arch = "wasm32")] + log_with_prefix(&prefixed_s); + #[cfg(not(target_arch = "wasm32"))] + println!("{}", prefixed_s); +} + +/// Logs an error message, prefixing it with "error wasm" and sends it to the console in JavaScript when running in a WebAssembly environment. +/// When running outside WebAssembly, it prints the error message to the standard output. +#[wasm_bindgen] +extern "C" { + #[wasm_bindgen(js_namespace = console, js_name = error)] + fn error_with_prefix(s: &str); +} + +/// Logs an error message, prefixing it with "error wasm" and sends it to the console in JavaScript when running in a WebAssembly environment. +/// When running outside WebAssembly, it prints the error message to the standard output. +#[allow(dead_code)] +pub(crate) fn error(s: &str) { + let prefixed_s = format!("error wasm {}", s); + #[cfg(target_arch = "wasm32")] + error_with_prefix(&prefixed_s); + #[cfg(not(target_arch = "wasm32"))] + println!("{}", prefixed_s); +} diff --git a/src/js/interns.rs b/src/js/interns.rs new file mode 100644 index 000000000..c570acef4 --- /dev/null +++ b/src/js/interns.rs @@ -0,0 +1,128 @@ +use crate::helpers::get_current_timestamp; +use crate::helpers::hex_to_uint8_vec; +use crate::types::cl::bytes::Bytes; +use crate::{ + debug::error, + helpers::{hex_to_string, motes_to_cspr, secret_key_from_pem}, + types::verbosity::Verbosity, +}; +use casper_types::PublicKey; +use gloo_utils::format::JsValueSerdeExt; +use wasm_bindgen::prelude::*; + +/// Converts a hexadecimal string to a regular string. +/// +/// # Arguments +/// +/// * `hex_string` - The hexadecimal string to convert. +/// +/// # Returns +/// +/// A regular string containing the converted value. +#[wasm_bindgen(js_name = "hexToString")] +pub fn hex_to_string_js_alias(hex_string: &str) -> String { + hex_to_string(hex_string) +} + +/// Converts a hexadecimal string to a Uint8Array. +/// +/// # Arguments +/// +/// * `hex_string` - The hexadecimal string to convert. +/// +/// # Returns +/// +/// A Uint8Array containing the converted value. +#[wasm_bindgen(js_name = "hexToUint8Array")] +pub fn hex_to_uint8_vec_js_alias(hex_string: &str) -> Vec { + hex_to_uint8_vec(hex_string) +} + +/// Converts a Uint8Array to a `Bytes` object. +/// +/// # Arguments +/// +/// * `uint8_array` - The Uint8Array to convert. +/// +/// # Returns +/// +/// A `Bytes` object containing the converted value. +#[wasm_bindgen(js_name = "uint8ArrayToBytes")] +pub fn uint8_array_to_bytes(uint8_array: js_sys::Uint8Array) -> Bytes { + Bytes::from_uint8_array(uint8_array) +} + +/// Converts motes to CSPR (Casper tokens). +/// +/// # Arguments +/// +/// * `motes` - The motes value to convert. +/// +/// # Returns +/// +/// A string representing the CSPR amount. +#[wasm_bindgen(js_name = "motesToCSPR")] +pub fn motes_to_cspr_js_alias(motes: &str) -> String { + motes_to_cspr(motes) +} + +/// Pretty prints a JSON value. +/// +/// # Arguments +/// +/// * `value` - The JSON value to pretty print. +/// * `verbosity` - An optional verbosity level for pretty printing. +/// +/// # Returns +/// +/// A pretty printed JSON value as a JsValue. +#[wasm_bindgen(js_name = "jsonPrettyPrint")] +pub fn json_pretty_print_js_alias(value: JsValue, verbosity: Option) -> JsValue { + use crate::helpers::json_pretty_print; + + let deserialized: Result = value.into_serde(); + match deserialized { + Ok(result) => { + let pretty_printed = json_pretty_print(result, verbosity); + JsValue::from_str(&pretty_printed) + } + Err(err) => { + error(&format!("Error in json_pretty_print: {:?}", err)); + value + } + } +} + +/// Converts a secret key to a corresponding public key. +/// +/// # Arguments +/// +/// * `secret_key` - The secret key in PEM format. +/// +/// # Returns +/// +/// A JsValue containing the corresponding public key. +/// If an error occurs during the conversion, JsValue::null() is returned. +#[wasm_bindgen(js_name = "privateToPublicKey")] +pub fn secret_to_public_key(secret_key: &str) -> JsValue { + let secret_key_from_pem = secret_key_from_pem(secret_key); + if let Err(err) = secret_key_from_pem { + error(&format!("Error loading secret key: {:?}", err)); + return JsValue::null(); + } + let public_key = PublicKey::from(&secret_key_from_pem.unwrap()); + JsValue::from_serde(&public_key).unwrap_or_else(|err| { + error(&format!("Error serializing public key: {:?}", err)); + JsValue::null() + }) +} + +/// Gets the current timestamp. +/// +/// # Returns +/// +/// A JsValue containing the current timestamp. +#[wasm_bindgen(js_name = "getTimestamp")] +pub fn get_timestamp() -> JsValue { + get_current_timestamp(None).into() +} diff --git a/src/js/mod.rs b/src/js/mod.rs new file mode 100644 index 000000000..8224221f9 --- /dev/null +++ b/src/js/mod.rs @@ -0,0 +1,3 @@ +pub mod externs; +#[cfg(target_arch = "wasm32")] +pub mod interns; diff --git a/src/lib.rs b/src/lib.rs new file mode 100644 index 000000000..65e680c10 --- /dev/null +++ b/src/lib.rs @@ -0,0 +1,8 @@ +pub mod helpers; +pub mod types; + +pub(crate) mod sdk; +pub use sdk::*; + +pub(crate) mod js; +pub use js::externs as debug; diff --git a/src/main.rs b/src/main.rs new file mode 100644 index 000000000..f328e4d9d --- /dev/null +++ b/src/main.rs @@ -0,0 +1 @@ +fn main() {} diff --git a/src/sdk/contract/call_entrypoint.rs b/src/sdk/contract/call_entrypoint.rs new file mode 100644 index 000000000..7fe962b5e --- /dev/null +++ b/src/sdk/contract/call_entrypoint.rs @@ -0,0 +1,104 @@ +#[cfg(target_arch = "wasm32")] +use crate::deploy::deploy::PutDeployResult; +use crate::types::deploy_params::{ + deploy_str_params::{deploy_str_params_to_casper_client, DeployStrParams}, + payment_str_params::{payment_str_params_to_casper_client, PaymentStrParams}, + session_str_params::{session_str_params_to_casper_client, SessionStrParams}, +}; +use crate::{debug::error, types::sdk_error::SdkError, SDK}; +use casper_client::{ + cli::make_deploy, rpcs::results::PutDeployResult as _PutDeployResult, SuccessResponse, +}; +#[cfg(target_arch = "wasm32")] +use wasm_bindgen::prelude::*; + +/// A set of functions for working with smart contract entry points. +#[cfg(target_arch = "wasm32")] +#[wasm_bindgen] +impl SDK { + /// Calls a smart contract entry point with the specified parameters and returns the result. + /// + /// # Arguments + /// + /// * `deploy_params` - The deploy parameters. + /// * `session_params` - The session parameters. + /// * `payment_amount` - The payment amount as a string. + /// * `node_address` - An optional node address to send the request to. + /// + /// # Returns + /// + /// A `Result` containing either a `PutDeployResult` or a `JsError` in case of an error. + /// + /// # Errors + /// + /// Returns a `JsError` if there is an error during the call. + #[wasm_bindgen(js_name = "call_entrypoint")] + pub async fn call_entrypoint_js_alias( + &self, + deploy_params: DeployStrParams, + session_params: SessionStrParams, + payment_amount: &str, + node_address: Option, + ) -> Result { + let payment_params = PaymentStrParams::default(); + payment_params.set_payment_amount(payment_amount); + + let result = self + .call_entrypoint(deploy_params, session_params, payment_params, node_address) + .await; + match result { + Ok(data) => Ok(data.result.into()), + Err(err) => { + let err = &format!("Error occurred with {:?}", err); + error(err); + Err(JsError::new(err)) + } + } + } +} + +/// A set of functions for working with smart contract entry points. +impl SDK { + /// Calls a smart contract entry point with the specified parameters and returns the result. + /// + /// # Arguments + /// + /// * `deploy_params` - The deploy parameters. + /// * `session_params` - The session parameters. + /// * `payment_params` - The payment parameters. + /// * `node_address` - An optional node address to send the request to. + /// + /// # Returns + /// + /// A `Result` containing either a `PutDeployResult` or a `SdkError` in case of an error. + /// + /// # Errors + /// + /// Returns a `SdkError` if there is an error during the call. + pub async fn call_entrypoint( + &self, + deploy_params: DeployStrParams, + session_params: SessionStrParams, + payment_params: PaymentStrParams, + node_address: Option, + ) -> Result, SdkError> { + //log("call_entrypoint!"); + let deploy = make_deploy( + "", + deploy_str_params_to_casper_client(&deploy_params), + session_str_params_to_casper_client(&session_params), + payment_str_params_to_casper_client(&payment_params), + false, + ); + + if let Err(err) = deploy { + let err_msg = format!("Error during install: {}", err); + error(&err_msg); + return Err(SdkError::from(err)); + } + + self.put_deploy(deploy.unwrap().into(), None, node_address) + .await + .map_err(SdkError::from) + } +} diff --git a/src/sdk/contract/install.rs b/src/sdk/contract/install.rs new file mode 100644 index 000000000..cf46c3cb4 --- /dev/null +++ b/src/sdk/contract/install.rs @@ -0,0 +1,101 @@ +#[cfg(target_arch = "wasm32")] +use crate::deploy::deploy::PutDeployResult; +use crate::types::deploy_params::{ + deploy_str_params::{deploy_str_params_to_casper_client, DeployStrParams}, + payment_str_params::{payment_str_params_to_casper_client, PaymentStrParams}, + session_str_params::{session_str_params_to_casper_client, SessionStrParams}, +}; +use crate::{debug::error, types::sdk_error::SdkError, SDK}; +use casper_client::{ + cli::make_deploy, rpcs::results::PutDeployResult as _PutDeployResult, SuccessResponse, +}; +#[cfg(target_arch = "wasm32")] +use wasm_bindgen::prelude::*; + +/// A set of functions for installing smart contracts on the blockchain. +#[cfg(target_arch = "wasm32")] +#[wasm_bindgen] +impl SDK { + /// Installs a smart contract with the specified parameters and returns the result. + /// + /// # Arguments + /// + /// * `deploy_params` - The deploy parameters. + /// * `session_params` - The session parameters. + /// * `payment_amount` - The payment amount as a string. + /// * `node_address` - An optional node address to send the request to. + /// + /// # Returns + /// + /// A `Result` containing either a `PutDeployResult` or a `JsError` in case of an error. + /// + /// # Errors + /// + /// Returns a `JsError` if there is an error during the installation. + #[wasm_bindgen(js_name = "install")] + pub async fn install_js_alias( + &self, + deploy_params: DeployStrParams, + session_params: SessionStrParams, + payment_amount: &str, + node_address: Option, + ) -> Result { + let payment_params = PaymentStrParams::default(); + payment_params.set_payment_amount(payment_amount); + let result = self + .install(deploy_params, session_params, payment_params, node_address) + .await; + match result { + Ok(data) => Ok(data.result.into()), + Err(err) => { + let err = &format!("Error occurred with {:?}", err); + error(err); + Err(JsError::new(err)) + } + } + } +} + +/// A set of functions for installing smart contracts on the blockchain. +impl SDK { + /// Installs a smart contract with the specified parameters and returns the result. + /// + /// # Arguments + /// + /// * `deploy_params` - The deploy parameters. + /// * `session_params` - The session parameters. + /// * `payment_params` - The payment parameters. + /// * `node_address` - An optional node address to send the request to. + /// + /// # Returns + /// + /// A `Result` containing either a `PutDeployResult` or a `SdkError` in case of an error. + /// + /// # Errors + /// + /// Returns a `SdkError` if there is an error during the installation. + pub async fn install( + &self, + deploy_params: DeployStrParams, + session_params: SessionStrParams, + payment_params: PaymentStrParams, + node_address: Option, + ) -> Result, SdkError> { + //log("install!"); + let deploy = make_deploy( + "", + deploy_str_params_to_casper_client(&deploy_params), + session_str_params_to_casper_client(&session_params), + payment_str_params_to_casper_client(&payment_params), + false, + ); + if let Err(err) = deploy { + let err_msg = format!("Error during install: {}", err); + error(&err_msg); + return Err(SdkError::from(err)); + } + self.put_deploy(deploy.unwrap().into(), None, node_address) + .await + .map_err(SdkError::from) + } +} diff --git a/src/sdk/contract/mod.rs b/src/sdk/contract/mod.rs new file mode 100644 index 000000000..3e926b1a4 --- /dev/null +++ b/src/sdk/contract/mod.rs @@ -0,0 +1,4 @@ +pub mod call_entrypoint; +pub mod install; +pub mod query_contract_dict; +pub mod query_contract_key; diff --git a/src/sdk/contract/query_contract_dict.rs b/src/sdk/contract/query_contract_dict.rs new file mode 100644 index 000000000..9ad6b5a53 --- /dev/null +++ b/src/sdk/contract/query_contract_dict.rs @@ -0,0 +1,101 @@ +#[cfg(target_arch = "wasm32")] +use crate::rpcs::get_dictionary_item::GetDictionaryItemResult; +#[cfg(target_arch = "wasm32")] +use crate::types::{ + deploy_params::dictionary_item_str_params::DictionaryItemStrParams, + dictionary_item_identifier::DictionaryItemIdentifier, +}; +#[cfg(target_arch = "wasm32")] +use crate::{debug::error, types::digest::Digest}; +use crate::{ + rpcs::get_dictionary_item::DictionaryItemInput, + types::{digest::ToDigest, verbosity::Verbosity}, +}; +use crate::{types::sdk_error::SdkError, SDK}; +use casper_client::{ + rpcs::results::GetDictionaryItemResult as _GetDictionaryItemResult, SuccessResponse, +}; +#[cfg(target_arch = "wasm32")] +use gloo_utils::format::JsValueSerdeExt; +#[cfg(target_arch = "wasm32")] +use serde::{Deserialize, Serialize}; +#[cfg(target_arch = "wasm32")] +use wasm_bindgen::prelude::*; + +#[derive(Default, Debug, Deserialize, Clone, Serialize)] +#[cfg(target_arch = "wasm32")] +#[wasm_bindgen(js_name = "queryContractDictOptions", getter_with_clone)] +pub struct QueryContractDictOptions { + // Not supported by get_dictionary_item + // pub global_state_identifier: Option, + pub state_root_hash_as_string: Option, + pub state_root_hash: Option, + pub dictionary_item_params: Option, + pub dictionary_item_identifier: Option, + pub node_address: Option, + pub verbosity: Option, +} + +#[cfg(target_arch = "wasm32")] +#[wasm_bindgen] +impl SDK { + /// Deserialize query_contract_dict_options from a JavaScript object. + #[wasm_bindgen(js_name = "query_contract_dict_options")] + pub fn query_contract_dict_state_options(&self, options: JsValue) -> QueryContractDictOptions { + let options_result = options.into_serde::(); + match options_result { + Ok(options) => options, + Err(err) => { + error(&format!( + "Error deserializing query_contract_dict_options: {:?}", + err + )); + QueryContractDictOptions::default() + } + } + } + + /// JavaScript alias for query_contract_dict with deserialized options. + #[wasm_bindgen(js_name = "query_contract_dict")] + pub async fn query_contract_dict_js_alias( + &self, + options: Option, + ) -> Result { + let js_value_options = + JsValue::from_serde::(&options.unwrap_or_default()); + if let Err(err) = js_value_options { + let err = &format!("Error serializing options: {:?}", err); + error(err); + return Err(JsError::new(err)); + } + let options = self.get_dictionary_item_options(js_value_options.unwrap()); + self.get_dictionary_item_js_alias(Some(options)).await + } +} + +impl SDK { + /// Query a contract dictionary item. + /// + /// # Arguments + /// + /// * `state_root_hash` - State root hash. + /// * `dictionary_item` - Dictionary item input. + /// * `verbosity` - Optional verbosity level. + /// * `node_address` - Optional node address. + /// + /// # Returns + /// + /// A `Result` containing either a `SuccessResponse` or a `SdkError` in case of an error. + pub async fn query_contract_dict( + &self, + state_root_hash: impl ToDigest, + dictionary_item: DictionaryItemInput, + verbosity: Option, + node_address: Option, + ) -> Result, SdkError> { + // log("query_contract_dict!"); + self.get_dictionary_item(state_root_hash, dictionary_item, verbosity, node_address) + .await + .map_err(SdkError::from) + } +} diff --git a/src/sdk/contract/query_contract_key.rs b/src/sdk/contract/query_contract_key.rs new file mode 100644 index 000000000..f9015e2e5 --- /dev/null +++ b/src/sdk/contract/query_contract_key.rs @@ -0,0 +1,92 @@ +#[cfg(target_arch = "wasm32")] +use crate::rpcs::query_global_state::QueryGlobalStateResult; +#[cfg(target_arch = "wasm32")] +use crate::types::global_state_identifier::GlobalStateIdentifier; +#[cfg(target_arch = "wasm32")] +use crate::{ + debug::error, + types::{digest::Digest, key::Key, path::Path, verbosity::Verbosity}, +}; +use crate::{rpcs::query_global_state::QueryGlobalStateParams, types::sdk_error::SdkError, SDK}; +use casper_client::{ + rpcs::results::QueryGlobalStateResult as _QueryGlobalStateResult, SuccessResponse, +}; +#[cfg(target_arch = "wasm32")] +use gloo_utils::format::JsValueSerdeExt; +#[cfg(target_arch = "wasm32")] +use serde::{Deserialize, Serialize}; +#[cfg(target_arch = "wasm32")] +use wasm_bindgen::prelude::*; + +#[derive(Deserialize, Default, Serialize)] +#[cfg(target_arch = "wasm32")] +#[wasm_bindgen(js_name = "queryContractKeyOptions", getter_with_clone)] +pub struct QueryContractKeyOptions { + pub global_state_identifier: Option, + pub state_root_hash_as_string: Option, + pub state_root_hash: Option, + pub maybe_block_id_as_string: Option, + #[serde(rename = "key_as_string")] + pub contract_key_as_string: Option, + #[serde(rename = "key")] + pub contract_key: Option, + pub path_as_string: Option, + pub path: Option, + pub node_address: Option, + pub verbosity: Option, +} + +#[cfg(target_arch = "wasm32")] +#[wasm_bindgen] +impl SDK { + /// Deserialize query_contract_key_options from a JavaScript object. + #[wasm_bindgen(js_name = "query_contract_key_options")] + pub fn query_contract_key_state_options(&self, options: JsValue) -> QueryContractKeyOptions { + let options_result = options.into_serde::(); + match options_result { + Ok(options) => options, + Err(err) => { + error(&format!("Error deserializing options: {:?}", err)); + QueryContractKeyOptions::default() + } + } + } + + /// JavaScript alias for query_contract_key with deserialized options. + #[wasm_bindgen(js_name = "query_contract_key")] + pub async fn query_contract_key_js_alias( + &self, + options: Option, + ) -> Result { + let js_value_options = + JsValue::from_serde::(&options.unwrap_or_default()); + if let Err(err) = js_value_options { + let err = &format!("Error serializing options: {:?}", err); + error(err); + return Err(JsError::new(err)); + } + let options = self.query_global_state_options(js_value_options.unwrap()); + self.query_global_state_js_alias(Some(options)).await + } +} + +impl SDK { + /// Query a contract key. + /// + /// # Arguments + /// + /// * `query_params` - Query global state parameters. + /// + /// # Returns + /// + /// A `Result` containing either a `SuccessResponse` or a `SdkError` in case of an error. + pub async fn query_contract_key( + &self, + query_params: QueryGlobalStateParams, + ) -> Result, SdkError> { + //log("query_contract_key!"); + self.query_global_state(query_params) + .await + .map_err(SdkError::from) + } +} diff --git a/src/sdk/deploy/deploy.rs b/src/sdk/deploy/deploy.rs new file mode 100644 index 000000000..a50c5bdc4 --- /dev/null +++ b/src/sdk/deploy/deploy.rs @@ -0,0 +1,156 @@ +#[cfg(target_arch = "wasm32")] +use crate::types::deploy_hash::DeployHash; +use crate::{ + debug::error, + types::{ + deploy_params::{ + deploy_str_params::{deploy_str_params_to_casper_client, DeployStrParams}, + payment_str_params::{payment_str_params_to_casper_client, PaymentStrParams}, + session_str_params::{session_str_params_to_casper_client, SessionStrParams}, + }, + sdk_error::SdkError, + verbosity::Verbosity, + }, + SDK, +}; +use casper_client::{ + cli::make_deploy, rpcs::results::PutDeployResult as _PutDeployResult, SuccessResponse, +}; +#[cfg(target_arch = "wasm32")] +use gloo_utils::format::JsValueSerdeExt; +#[cfg(target_arch = "wasm32")] +use serde::{Deserialize, Serialize}; +#[cfg(target_arch = "wasm32")] +use wasm_bindgen::prelude::*; + +// Define a struct to wrap the result of a deploy. +#[cfg(target_arch = "wasm32")] +#[derive(Debug, Deserialize, Clone, Serialize)] +#[wasm_bindgen] +pub struct PutDeployResult(_PutDeployResult); + +/// Implement conversions between PutDeployResult and _PutDeployResult. +#[cfg(target_arch = "wasm32")] +impl From for _PutDeployResult { + fn from(result: PutDeployResult) -> Self { + result.0 + } +} +#[cfg(target_arch = "wasm32")] +impl From<_PutDeployResult> for PutDeployResult { + fn from(result: _PutDeployResult) -> Self { + PutDeployResult(result) + } +} + +/// Implement JavaScript bindings for PutDeployResult. +#[cfg(target_arch = "wasm32")] +#[wasm_bindgen] +impl PutDeployResult { + /// Gets the API version as a JavaScript value. + #[wasm_bindgen(getter)] + pub fn api_version(&self) -> JsValue { + JsValue::from_serde(&self.0.api_version).unwrap() + } + + /// Gets the deploy hash associated with this result. + #[wasm_bindgen(getter)] + pub fn deploy_hash(&self) -> DeployHash { + self.0.deploy_hash.into() + } + + /// Converts PutDeployResult to a JavaScript object. + #[wasm_bindgen(js_name = "toJson")] + pub fn to_json(&self) -> JsValue { + JsValue::from_serde(&self.0).unwrap_or(JsValue::null()) + } +} + +#[cfg(target_arch = "wasm32")] +#[wasm_bindgen] +impl SDK { + /// JavaScript alias for deploying with deserialized parameters. + /// + /// # Arguments + /// + /// * `deploy_params` - Deploy parameters. + /// * `session_params` - Session parameters. + /// * `payment_params` - Payment parameters. + /// * `verbosity` - An optional verbosity level. + /// * `node_address` - An optional node address. + /// + /// # Returns + /// + /// A result containing PutDeployResult or a JsError. + #[wasm_bindgen(js_name = "deploy")] + pub async fn deploy_js_alias( + &self, + deploy_params: DeployStrParams, + session_params: SessionStrParams, + payment_params: PaymentStrParams, + verbosity: Option, + node_address: Option, + ) -> Result { + let result = self + .deploy( + deploy_params, + session_params, + payment_params, + verbosity, + node_address, + ) + .await; + match result { + Ok(data) => Ok(data.result.into()), + Err(err) => { + let err = &format!("Error occurred with {:?}", err); + error(err); + Err(JsError::new(err)) + } + } + } +} + +impl SDK { + /// Perform a deploy operation. + /// + /// # Arguments + /// + /// * `deploy_params` - Deploy parameters. + /// * `session_params` - Session parameters. + /// * `payment_params` - Payment parameters. + /// * `verbosity` - An optional verbosity level. + /// * `node_address` - An optional node address. + /// + /// # Returns + /// + /// A result containing a SuccessResponse or an SdkError. + pub async fn deploy( + &self, + deploy_params: DeployStrParams, + session_params: SessionStrParams, + payment_params: PaymentStrParams, + verbosity: Option, + node_address: Option, + ) -> Result, SdkError> { + //log("deploy!"); + let deploy = make_deploy( + "", + deploy_str_params_to_casper_client(&deploy_params), + session_str_params_to_casper_client(&session_params), + payment_str_params_to_casper_client(&payment_params), + false, + ); + + if let Err(err) = deploy { + let err_msg = format!("Error during deploy: {}", err); + error(&err_msg); + return Err(SdkError::from(err)); + } + + // Send the deploy to the network and handle any errors. + self.put_deploy(deploy.unwrap().into(), verbosity, node_address) + .await + .map_err(SdkError::from) + } +} diff --git a/src/sdk/deploy/mod.rs b/src/sdk/deploy/mod.rs new file mode 100644 index 000000000..29f5ea56b --- /dev/null +++ b/src/sdk/deploy/mod.rs @@ -0,0 +1,5 @@ +#[allow(clippy::module_inception)] +pub mod deploy; +pub mod speculative_deploy; +pub mod speculative_transfer; +pub mod transfer; diff --git a/src/sdk/deploy/speculative_deploy.rs b/src/sdk/deploy/speculative_deploy.rs new file mode 100644 index 000000000..6ec88cb76 --- /dev/null +++ b/src/sdk/deploy/speculative_deploy.rs @@ -0,0 +1,123 @@ +#[cfg(target_arch = "wasm32")] +use crate::rpcs::speculative_exec::SpeculativeExecResult; +use crate::{ + debug::error, + types::{ + block_identifier::{BlockIdentifier, BlockIdentifierInput}, + deploy_params::{ + deploy_str_params::{deploy_str_params_to_casper_client, DeployStrParams}, + payment_str_params::{payment_str_params_to_casper_client, PaymentStrParams}, + session_str_params::{session_str_params_to_casper_client, SessionStrParams}, + }, + sdk_error::SdkError, + verbosity::Verbosity, + }, + SDK, +}; +use casper_client::{ + cli::make_deploy, rpcs::results::SpeculativeExecResult as _SpeculativeExecResult, + SuccessResponse, +}; +#[cfg(target_arch = "wasm32")] +use wasm_bindgen::prelude::*; + +#[cfg(target_arch = "wasm32")] +#[wasm_bindgen] +impl SDK { + /// This function allows executing a deploy speculatively. + /// + /// # Arguments + /// + /// * `deploy_params` - Deployment parameters for the deploy. + /// * `session_params` - Session parameters for the deploy. + /// * `payment_params` - Payment parameters for the deploy. + /// * `maybe_block_identifier` - Optional block identifier. + /// * `verbosity` - Optional verbosity level. + /// * `node_address` - Optional node address. + /// + /// # Returns + /// + /// A `Result` containing either a `SpeculativeExecResult` or a `JsError` in case of an error. + #[wasm_bindgen(js_name = "speculative_deploy")] + pub async fn speculative_deploy_js_alias( + &self, + deploy_params: DeployStrParams, + session_params: SessionStrParams, + payment_params: PaymentStrParams, + maybe_block_identifier: Option, + verbosity: Option, + node_address: Option, + ) -> Result { + let result = self + .speculative_deploy( + deploy_params, + session_params, + payment_params, + maybe_block_identifier, + verbosity, + node_address, + ) + .await; + match result { + Ok(data) => Ok(data.result.into()), + Err(err) => { + let err = &format!("Error occurred with {:?}", err); + error(err); + Err(JsError::new(err)) + } + } + } +} + +impl SDK { + /// This function allows executing a deploy speculatively. + /// + /// # Arguments + /// + /// * `deploy_params` - Deployment parameters for the deploy. + /// * `session_params` - Session parameters for the deploy. + /// * `payment_params` - Payment parameters for the deploy. + /// * `maybe_block_identifier` - Optional block identifier. + /// * `verbosity` - Optional verbosity level. + /// * `node_address` - Optional node address. + /// + /// # Returns + /// + /// A `Result` containing either a `SuccessResponse` or a `SdkError` in case of an error. + pub async fn speculative_deploy( + &self, + deploy_params: DeployStrParams, + session_params: SessionStrParams, + payment_params: PaymentStrParams, + maybe_block_identifier: Option, + verbosity: Option, + node_address: Option, + ) -> Result, SdkError> { + // log("speculative_deploy!"); + let deploy = make_deploy( + "", + deploy_str_params_to_casper_client(&deploy_params), + session_str_params_to_casper_client(&session_params), + payment_str_params_to_casper_client(&payment_params), + false, + ); + + if let Err(err) = deploy { + let err_msg = format!("Error during speculative_deploy: {}", err); + error(&err_msg); + return Err(SdkError::from(err)); + } + + let maybe_block_identifier = + maybe_block_identifier.map(BlockIdentifierInput::BlockIdentifier); + + self.speculative_exec( + deploy.unwrap().into(), + maybe_block_identifier, + verbosity, + node_address, + ) + .await + .map_err(SdkError::from) + } +} diff --git a/src/sdk/deploy/speculative_transfer.rs b/src/sdk/deploy/speculative_transfer.rs new file mode 100644 index 000000000..8758d7d44 --- /dev/null +++ b/src/sdk/deploy/speculative_transfer.rs @@ -0,0 +1,150 @@ +#[cfg(target_arch = "wasm32")] +use crate::rpcs::speculative_exec::SpeculativeExecResult; +#[cfg(target_arch = "wasm32")] +use crate::types::block_identifier::BlockIdentifier; +use crate::{ + debug::error, + types::{ + block_identifier::BlockIdentifierInput, + deploy_params::{ + deploy_str_params::{deploy_str_params_to_casper_client, DeployStrParams}, + payment_str_params::{payment_str_params_to_casper_client, PaymentStrParams}, + }, + sdk_error::SdkError, + verbosity::Verbosity, + }, + SDK, +}; +use casper_client::{ + cli::make_transfer, rpcs::results::SpeculativeExecResult as _SpeculativeExecResult, + SuccessResponse, +}; +use rand::Rng; +#[cfg(target_arch = "wasm32")] +use wasm_bindgen::prelude::*; + +#[cfg(target_arch = "wasm32")] +#[wasm_bindgen] +impl SDK { + /// JS Alias for speculative transfer. + /// + /// # Arguments + /// + /// * `amount` - The amount to transfer. + /// * `target_account` - The target account. + /// * `transfer_id` - An optional transfer ID (defaults to a random number). + /// * `deploy_params` - The deployment parameters. + /// * `payment_params` - The payment parameters. + /// * `maybe_block_id_as_string` - An optional block ID as a string. + /// * `maybe_block_identifier` - An optional block identifier. + /// * `verbosity` - The verbosity level for logging (optional). + /// * `node_address` - The address of the node to connect to (optional). + /// + /// # Returns + /// + /// A `Result` containing the result of the speculative transfer or a `JsError` in case of an error. + #[allow(clippy::too_many_arguments)] + #[wasm_bindgen(js_name = "speculative_transfer")] + pub async fn speculative_transfer_js_alias( + &self, + amount: &str, + target_account: &str, + transfer_id: Option, + deploy_params: DeployStrParams, + payment_params: PaymentStrParams, + maybe_block_id_as_string: Option, + maybe_block_identifier: Option, + verbosity: Option, + node_address: Option, + ) -> Result { + let maybe_block_identifier = if let Some(maybe_block_identifier) = maybe_block_identifier { + Some(BlockIdentifierInput::BlockIdentifier( + maybe_block_identifier, + )) + } else { + maybe_block_id_as_string.map(BlockIdentifierInput::String) + }; + let result = self + .speculative_transfer( + amount, + target_account, + transfer_id, + deploy_params, + payment_params, + maybe_block_identifier, + verbosity, + node_address, + ) + .await; + match result { + Ok(data) => Ok(data.result.into()), + Err(err) => { + let err = &format!("Error occurred with {:?}", err); + error(err); + Err(JsError::new(err)) + } + } + } +} + +impl SDK { + /// Perform a speculative transfer. + /// + /// # Arguments + /// + /// * `amount` - The amount to transfer. + /// * `target_account` - The target account. + /// * `transfer_id` - An optional transfer ID (defaults to a random number). + /// * `deploy_params` - The deployment parameters. + /// * `payment_params` - The payment parameters. + /// * `maybe_block_identifier` - An optional block identifier. + /// * `verbosity` - The verbosity level for logging (optional). + /// * `node_address` - The address of the node to connect to (optional). + /// + /// # Returns + /// + /// A `Result` containing the result of the speculative transfer or a `SdkError` in case of an error. + #[allow(clippy::too_many_arguments)] + pub async fn speculative_transfer( + &self, + amount: &str, + target_account: &str, + transfer_id: Option, + deploy_params: DeployStrParams, + payment_params: PaymentStrParams, + maybe_block_identifier: Option, + verbosity: Option, + node_address: Option, + ) -> Result, SdkError> { + // log("speculative_transfer!"); + let transfer_id = if let Some(transfer_id) = transfer_id { + transfer_id + } else { + rand::thread_rng().gen::().to_string() + }; + let deploy = make_transfer( + "", + amount, + target_account, + &transfer_id, + deploy_str_params_to_casper_client(&deploy_params), + payment_str_params_to_casper_client(&payment_params), + false, + ); + + if let Err(err) = deploy { + let err_msg = format!("Error during speculative_transfer: {}", err); + error(&err_msg); + return Err(SdkError::from(err)); + } + + self.speculative_exec( + deploy.unwrap().into(), + maybe_block_identifier, + verbosity, + node_address, + ) + .await + .map_err(SdkError::from) + } +} diff --git a/src/sdk/deploy/transfer.rs b/src/sdk/deploy/transfer.rs new file mode 100644 index 000000000..37eb0461d --- /dev/null +++ b/src/sdk/deploy/transfer.rs @@ -0,0 +1,127 @@ +#[cfg(target_arch = "wasm32")] +use super::deploy::PutDeployResult; +use crate::{ + debug::error, + types::{ + deploy_params::{ + deploy_str_params::{deploy_str_params_to_casper_client, DeployStrParams}, + payment_str_params::{payment_str_params_to_casper_client, PaymentStrParams}, + }, + sdk_error::SdkError, + verbosity::Verbosity, + }, + SDK, +}; +use casper_client::{ + cli::make_transfer, rpcs::results::PutDeployResult as _PutDeployResult, SuccessResponse, +}; +use rand::Rng; +#[cfg(target_arch = "wasm32")] +use wasm_bindgen::prelude::*; + +#[cfg(target_arch = "wasm32")] +#[wasm_bindgen] +impl SDK { + /// JS Alias for transferring funds. + /// + /// # Arguments + /// + /// * `amount` - The amount to transfer. + /// * `target_account` - The target account. + /// * `transfer_id` - An optional transfer ID (defaults to a random number). + /// * `deploy_params` - The deployment parameters. + /// * `payment_params` - The payment parameters. + /// * `verbosity` - The verbosity level for logging (optional). + /// * `node_address` - The address of the node to connect to (optional). + /// + /// # Returns + /// + /// A `Result` containing the result of the transfer or a `JsError` in case of an error. + #[wasm_bindgen(js_name = "transfer")] + #[allow(clippy::too_many_arguments)] + pub async fn transfer_js_alias( + &self, + amount: &str, + target_account: &str, + transfer_id: Option, + deploy_params: DeployStrParams, + payment_params: PaymentStrParams, + verbosity: Option, + node_address: Option, + ) -> Result { + let result = self + .transfer( + amount, + target_account, + transfer_id, + deploy_params, + payment_params, + verbosity, + node_address, + ) + .await; + match result { + Ok(data) => Ok(data.result.into()), + Err(err) => { + let err = &format!("Error occurred with {:?}", err); + error(err); + Err(JsError::new(err)) + } + } + } +} + +impl SDK { + /// Perform a transfer of funds. + /// + /// # Arguments + /// + /// * `amount` - The amount to transfer. + /// * `target_account` - The target account. + /// * `transfer_id` - An optional transfer ID (defaults to a random number). + /// * `deploy_params` - The deployment parameters. + /// * `payment_params` - The payment parameters. + /// * `verbosity` - The verbosity level for logging (optional). + /// * `node_address` - The address of the node to connect to (optional). + /// + /// # Returns + /// + /// A `Result` containing the result of the transfer or a `SdkError` in case of an error. + #[allow(clippy::too_many_arguments)] + pub async fn transfer( + &self, + amount: &str, + target_account: &str, + transfer_id: Option, + deploy_params: DeployStrParams, + payment_params: PaymentStrParams, + verbosity: Option, + node_address: Option, + ) -> Result, SdkError> { + //log("transfer!"); + let transfer_id = if let Some(transfer_id) = transfer_id { + transfer_id + } else { + rand::thread_rng().gen::().to_string() + }; + let deploy = make_transfer( + "", + amount, + target_account, + &transfer_id, + deploy_str_params_to_casper_client(&deploy_params), + payment_str_params_to_casper_client(&payment_params), + false, + ); + + if let Err(err) = deploy { + let err_msg = format!("Error during transfer: {}", err); + error(&err_msg); + return Err(SdkError::from(err)); + } + + self.put_deploy(deploy.unwrap().into(), verbosity, node_address) + .await + .map_err(SdkError::from) + } +} diff --git a/src/sdk/deploy_utils/make_deploy.rs b/src/sdk/deploy_utils/make_deploy.rs new file mode 100644 index 000000000..d9aa1682a --- /dev/null +++ b/src/sdk/deploy_utils/make_deploy.rs @@ -0,0 +1,92 @@ +#[cfg(target_arch = "wasm32")] +use crate::debug::error; +#[cfg(target_arch = "wasm32")] +use crate::types::deploy::Deploy; +use crate::{ + types::{ + deploy_params::{ + deploy_str_params::{deploy_str_params_to_casper_client, DeployStrParams}, + payment_str_params::{payment_str_params_to_casper_client, PaymentStrParams}, + session_str_params::{session_str_params_to_casper_client, SessionStrParams}, + }, + sdk_error::SdkError, + }, + SDK, +}; +use casper_client::cli::make_deploy as client_make_deploy; +use casper_client::types::Deploy as _Deploy; +#[cfg(target_arch = "wasm32")] +use wasm_bindgen::prelude::*; + +/// Exposes the `make_deploy` function to JavaScript with an alias. +#[cfg(target_arch = "wasm32")] +#[wasm_bindgen] +impl SDK { + /// JS Alias for `make_deploy`. + /// + /// # Arguments + /// + /// * `deploy_params` - The deploy parameters. + /// * `session_params` - The session parameters. + /// * `payment_params` - The payment parameters. + /// + /// # Returns + /// + /// A `Result` containing the created `Deploy` or a `JsError` in case of an error. + #[wasm_bindgen(js_name = "make_deploy")] + pub fn make_deploy_js_alias( + &self, + deploy_params: DeployStrParams, + session_params: SessionStrParams, + payment_params: PaymentStrParams, + ) -> Result { + let result = make_deploy(deploy_params, session_params, payment_params); + match result { + Ok(data) => Ok(data.into()), + Err(err) => { + let err = &format!("Error occurred with {:?}", err); + error(err); + Err(JsError::new(err)) + } + } + } +} + +impl SDK { + /// Creates a deploy using the provided parameters. + /// + /// # Arguments + /// + /// * `deploy_params` - The deploy parameters. + /// * `session_params` - The session parameters. + /// * `payment_params` - The payment parameters. + /// + /// # Returns + /// + /// A `Result` containing the created `Deploy` or a `SdkError` in case of an error. + pub fn make_deploy( + &self, + deploy_params: DeployStrParams, + session_params: SessionStrParams, + payment_params: PaymentStrParams, + ) -> Result<_Deploy, SdkError> { + make_deploy(deploy_params, session_params, payment_params).map_err(SdkError::from) + } +} + +/// Internal function to create a deploy. +pub(crate) fn make_deploy( + deploy_params: DeployStrParams, + session_params: SessionStrParams, + payment_params: PaymentStrParams, +) -> Result<_Deploy, SdkError> { + // log("make_deploy"); + client_make_deploy( + "", + deploy_str_params_to_casper_client(&deploy_params), + session_str_params_to_casper_client(&session_params), + payment_str_params_to_casper_client(&payment_params), + false, + ) + .map_err(SdkError::from) +} diff --git a/src/sdk/deploy_utils/make_transfer.rs b/src/sdk/deploy_utils/make_transfer.rs new file mode 100644 index 000000000..d57ae2ff5 --- /dev/null +++ b/src/sdk/deploy_utils/make_transfer.rs @@ -0,0 +1,123 @@ +#[cfg(target_arch = "wasm32")] +use crate::debug::error; +#[cfg(target_arch = "wasm32")] +use crate::types::deploy::Deploy; +use crate::{ + types::{ + deploy_params::{ + deploy_str_params::{deploy_str_params_to_casper_client, DeployStrParams}, + payment_str_params::{payment_str_params_to_casper_client, PaymentStrParams}, + }, + sdk_error::SdkError, + }, + SDK, +}; +use casper_client::cli::make_transfer as client_make_transfer; +use casper_client::types::Deploy as _Deploy; +use rand::Rng; +#[cfg(target_arch = "wasm32")] +use wasm_bindgen::prelude::*; + +/// Exposes the `make_transfer` function to JavaScript with an alias. +#[cfg(target_arch = "wasm32")] +#[wasm_bindgen] +impl SDK { + /// JS Alias for `make_transfer`. + /// + /// # Arguments + /// + /// * `amount` - The transfer amount. + /// * `target_account` - The target account. + /// * `transfer_id` - Optional transfer identifier. + /// * `deploy_params` - The deploy parameters. + /// * `payment_params` - The payment parameters. + /// + /// # Returns + /// + /// A `Result` containing the created `Deploy` or a `JsError` in case of an error. + #[wasm_bindgen(js_name = "make_transfer")] + pub fn make_transfer_js_alias( + &self, + amount: &str, + target_account: &str, + transfer_id: Option, + deploy_params: DeployStrParams, + payment_params: PaymentStrParams, + ) -> Result { + // log("make_transfer"); + let result = self.make_transfer( + amount, + target_account, + transfer_id, + deploy_params, + payment_params, + ); + match result { + Ok(data) => Ok(data.into()), + Err(err) => { + let err = &format!("Error occurred with {:?}", err); + error(err); + Err(JsError::new(err)) + } + } + } +} + +impl SDK { + /// Creates a transfer deploy with the provided parameters. + /// + /// # Arguments + /// + /// * `amount` - The transfer amount. + /// * `target_account` - The target account. + /// * `transfer_id` - Optional transfer identifier. + /// * `deploy_params` - The deploy parameters. + /// * `payment_params` - The payment parameters. + /// + /// # Returns + /// + /// A `Result` containing the created `Deploy` or a `SdkError` in case of an error. + pub fn make_transfer( + &self, + amount: &str, + target_account: &str, + transfer_id: Option, + deploy_params: DeployStrParams, + payment_params: PaymentStrParams, + ) -> Result<_Deploy, SdkError> { + // log("make_transfer"); + make_transfer( + amount, + target_account, + transfer_id, + deploy_params, + payment_params, + ) + .map_err(SdkError::from) + } +} + +/// Internal function to create a transfer deploy. +pub(crate) fn make_transfer( + amount: &str, + target_account: &str, + transfer_id: Option, + deploy_params: DeployStrParams, + payment_params: PaymentStrParams, +) -> Result<_Deploy, SdkError> { + let transfer_id = if let Some(transfer_id) = transfer_id { + transfer_id + } else { + rand::thread_rng().gen::().to_string() + }; + client_make_transfer( + "", + amount, + target_account, + &transfer_id, + deploy_str_params_to_casper_client(&deploy_params), + payment_str_params_to_casper_client(&payment_params), + false, + ) + .map_err(SdkError::from) +} diff --git a/src/sdk/deploy_utils/mod.rs b/src/sdk/deploy_utils/mod.rs new file mode 100644 index 000000000..445c3b366 --- /dev/null +++ b/src/sdk/deploy_utils/mod.rs @@ -0,0 +1,7 @@ +pub(crate) mod make_deploy; +pub(crate) use make_deploy::make_deploy; + +pub(crate) mod make_transfer; +pub(crate) use make_transfer::make_transfer; + +pub(crate) mod sign_deploy; diff --git a/src/sdk/deploy_utils/sign_deploy.rs b/src/sdk/deploy_utils/sign_deploy.rs new file mode 100644 index 000000000..1e33d0290 --- /dev/null +++ b/src/sdk/deploy_utils/sign_deploy.rs @@ -0,0 +1,48 @@ +use crate::types::deploy::Deploy; +use crate::SDK; +use casper_client::types::Deploy as _Deploy; +#[cfg(target_arch = "wasm32")] +use wasm_bindgen::prelude::*; + +/// Exposes the `sign_deploy` function to JavaScript with an alias. +#[cfg(target_arch = "wasm32")] +#[wasm_bindgen] +impl SDK { + /// JS Alias for `sign_deploy`. + /// + /// # Arguments + /// + /// * `deploy` - The deploy to sign. + /// * `secret_key` - The secret key for signing. + /// + /// # Returns + /// + /// The signed `Deploy`. + #[wasm_bindgen(js_name = "sign_deploy")] + pub fn sign_deploy_js_alias(&mut self, deploy: Deploy, secret_key: &str) -> Deploy { + sign_deploy(deploy.into(), secret_key) + } +} + +impl SDK { + /// Signs a deploy using the provided secret key. + /// + /// # Arguments + /// + /// * `deploy` - The deploy to sign. + /// * `secret_key` - The secret key for signing. + /// + /// # Returns + /// + /// The signed `Deploy`. + pub fn sign_deploy(&mut self, deploy: _Deploy, secret_key: &str) -> Deploy { + sign_deploy(deploy, secret_key) + } +} + +/// Internal function to sign a deploy. +pub(crate) fn sign_deploy(deploy: _Deploy, secret_key: &str) -> Deploy { + // log("sign_deploy!"); + let mut deploy: Deploy = deploy.into(); + deploy.sign(secret_key) +} diff --git a/src/sdk/mod.rs b/src/sdk/mod.rs new file mode 100644 index 000000000..0a30ea700 --- /dev/null +++ b/src/sdk/mod.rs @@ -0,0 +1,63 @@ +#[allow(hidden_glob_reexports)] +pub(crate) mod deploy; +pub mod rpcs; +pub use deploy::*; + +pub(crate) mod deploy_utils; +pub(crate) use deploy_utils::*; + +pub(crate) mod contract; +pub use contract::*; + +use wasm_bindgen::prelude::*; + +use crate::types::verbosity::Verbosity; + +#[wasm_bindgen] +pub struct SDK { + node_address: Option, + verbosity: Option, +} + +impl Default for SDK { + fn default() -> Self { + Self::new(None, None) + } +} + +#[wasm_bindgen] +impl SDK { + #[wasm_bindgen(constructor)] + pub fn new(node_address: Option, verbosity: Option) -> Self { + SDK { + node_address, + verbosity, + } + } + + #[wasm_bindgen(js_name = "getNodeAddress")] + pub fn get_node_address(&self, node_address: Option) -> String { + node_address + .as_ref() + .cloned() + .or_else(|| self.node_address.as_ref().map(String::to_owned)) + .unwrap_or_default() + } + + #[wasm_bindgen(js_name = "setNodeAddress")] + pub fn set_node_address(&mut self, node_address: Option) -> Result<(), String> { + self.node_address = node_address; + Ok(()) + } + + #[wasm_bindgen(js_name = "getVerbosity")] + pub fn get_verbosity(&self, verbosity: Option) -> Verbosity { + verbosity.unwrap_or(self.verbosity.unwrap_or(Verbosity::Low)) + } + + #[wasm_bindgen(js_name = "setVerbosity")] + pub fn set_verbosity(&mut self, verbosity: Option) -> Result<(), String> { + self.verbosity = verbosity; + Ok(()) + } +} diff --git a/src/sdk/rpcs/get_account.rs b/src/sdk/rpcs/get_account.rs new file mode 100644 index 000000000..feada34fc --- /dev/null +++ b/src/sdk/rpcs/get_account.rs @@ -0,0 +1,222 @@ +#[cfg(target_arch = "wasm32")] +use crate::types::block_identifier::BlockIdentifier; +use crate::{ + debug::error, + types::{ + account_identifier::AccountIdentifier, block_identifier::BlockIdentifierInput, + sdk_error::SdkError, verbosity::Verbosity, + }, + SDK, +}; +use casper_client::cli::parse_account_identifier; +use casper_client::{ + cli::get_account as get_account_cli, get_account as get_account_lib, + rpcs::results::GetAccountResult as _GetAccountResult, JsonRpcId, SuccessResponse, +}; +#[cfg(target_arch = "wasm32")] +use gloo_utils::format::JsValueSerdeExt; +use rand::Rng; +#[cfg(target_arch = "wasm32")] +use serde::{Deserialize, Serialize}; +#[cfg(target_arch = "wasm32")] +use wasm_bindgen::prelude::*; + +// Define the GetAccountResult struct to wrap the result from Casper Client RPC call +#[cfg(target_arch = "wasm32")] +#[derive(Debug, Deserialize, Clone, Serialize)] +#[wasm_bindgen] +pub struct GetAccountResult(_GetAccountResult); + +// Implement conversions between GetAccountResult and _GetAccountResult +#[cfg(target_arch = "wasm32")] +impl From for _GetAccountResult { + fn from(result: GetAccountResult) -> Self { + result.0 + } +} + +#[cfg(target_arch = "wasm32")] +impl From<_GetAccountResult> for GetAccountResult { + fn from(result: _GetAccountResult) -> Self { + GetAccountResult(result) + } +} + +#[cfg(target_arch = "wasm32")] +#[wasm_bindgen] +impl GetAccountResult { + // Define getters for various fields of GetAccountResult + #[wasm_bindgen(getter)] + pub fn api_version(&self) -> JsValue { + JsValue::from_serde(&self.0.api_version).unwrap() + } + + #[wasm_bindgen(getter)] + pub fn account(&self) -> JsValue { + JsValue::from_serde(&self.0.account).unwrap() + } + + #[wasm_bindgen(getter)] + pub fn merkle_proof(&self) -> String { + self.0.merkle_proof.clone() + } + + #[wasm_bindgen(js_name = "toJson")] + pub fn to_json(&self) -> JsValue { + JsValue::from_serde(&self.0).unwrap_or(JsValue::null()) + } +} + +// Define options for the `get_account` function +#[derive(Debug, Deserialize, Clone, Default, Serialize)] +#[cfg(target_arch = "wasm32")] +#[wasm_bindgen(js_name = "getAccountOptions", getter_with_clone)] +pub struct GetAccountOptions { + pub account_identifier: Option, + pub account_identifier_as_string: Option, + pub maybe_block_id_as_string: Option, + pub maybe_block_identifier: Option, + pub node_address: Option, + pub verbosity: Option, +} + +#[cfg(target_arch = "wasm32")] +#[wasm_bindgen] +impl SDK { + // Deserialize options for `get_account` from a JavaScript object + #[wasm_bindgen(js_name = "get_account_options")] + pub fn get_account_options(&self, options: JsValue) -> GetAccountOptions { + let options_result = options.into_serde::(); + match options_result { + Ok(options) => options, + Err(err) => { + error(&format!("Error deserializing options: {:?}", err)); + GetAccountOptions::default() + } + } + } + + // JavaScript alias for `get_account` function + #[wasm_bindgen(js_name = "get_account")] + pub async fn get_account_js_alias( + &self, + options: Option, + ) -> Result { + let GetAccountOptions { + account_identifier, + account_identifier_as_string, + maybe_block_id_as_string, + maybe_block_identifier, + verbosity, + node_address, + } = options.unwrap_or_default(); + + let maybe_block_identifier = if let Some(maybe_block_identifier) = maybe_block_identifier { + Some(BlockIdentifierInput::BlockIdentifier( + maybe_block_identifier, + )) + } else { + maybe_block_id_as_string.map(BlockIdentifierInput::String) + }; + + let result = self + .get_account( + account_identifier, + account_identifier_as_string, + maybe_block_identifier, + verbosity, + node_address, + ) + .await; + match result { + Ok(data) => Ok(data.result.into()), + Err(err) => { + let err = &format!("Error occurred with {:?}", err); + error(err); + Err(JsError::new(err)) + } + } + } + + // JavaScript alias for `get_account_js_alias` + #[wasm_bindgen(js_name = "state_get_account_info")] + pub async fn state_get_account_info_js_alias( + &self, + options: Option, + ) -> Result { + self.get_account_js_alias(options).await + } +} + +impl SDK { + /// Retrieves account information based on the provided options. + /// + /// # Arguments + /// + /// * `account_identifier` - An optional `AccountIdentifier` for specifying the account identifier. + /// * `account_identifier_as_string` - An optional string representing the account identifier. + /// * `maybe_block_identifier` - An optional `BlockIdentifierInput` for specifying a block identifier. + /// * `verbosity` - An optional `Verbosity` level for controlling the output verbosity. + /// * `node_address` - An optional string specifying the node address to use for the request. + /// + /// # Returns + /// + /// A `Result` containing either a `SuccessResponse<_GetAccountResult>` or a `SdkError` in case of an error. + /// + /// # Errors + /// + /// Returns a `SdkError` if there is an error during the retrieval process. + pub async fn get_account( + &self, + account_identifier: Option, + account_identifier_as_string: Option, + maybe_block_identifier: Option, + verbosity: Option, + node_address: Option, + ) -> Result, SdkError> { + let account_identifier = if let Some(account_identifier) = account_identifier { + account_identifier + } else if let Some(account_identifier_as_string) = account_identifier_as_string.clone() { + match parse_account_identifier(&account_identifier_as_string) { + Ok(parsed) => parsed.into(), + Err(err) => { + error(&err.to_string()); + return Err(SdkError::FailedToParseAccountIdentifier); + } + } + } else { + let err = "Error: Missing account identifier"; + error(err); + return Err(SdkError::FailedToParseAccountIdentifier); + }; + if let Some(BlockIdentifierInput::String(maybe_block_id)) = maybe_block_identifier { + get_account_cli( + &rand::thread_rng().gen::().to_string(), + &self.get_node_address(node_address), + self.get_verbosity(verbosity).into(), + &maybe_block_id, + &account_identifier.to_string(), + ) + .await + .map_err(SdkError::from) + } else { + let maybe_block_identifier = + if let Some(BlockIdentifierInput::BlockIdentifier(maybe_block_identifier)) = + maybe_block_identifier + { + Some(maybe_block_identifier) + } else { + None + }; + get_account_lib( + JsonRpcId::from(rand::thread_rng().gen::().to_string()), + &self.get_node_address(node_address), + self.get_verbosity(verbosity).into(), + maybe_block_identifier.map(Into::into), + account_identifier.into(), + ) + .await + .map_err(SdkError::from) + } + } +} diff --git a/src/sdk/rpcs/get_auction_info.rs b/src/sdk/rpcs/get_auction_info.rs new file mode 100644 index 000000000..61314dfb2 --- /dev/null +++ b/src/sdk/rpcs/get_auction_info.rs @@ -0,0 +1,197 @@ +#[cfg(target_arch = "wasm32")] +use crate::debug::error; +#[cfg(target_arch = "wasm32")] +use crate::types::block_identifier::BlockIdentifier; +use crate::{ + types::{block_identifier::BlockIdentifierInput, sdk_error::SdkError, verbosity::Verbosity}, + SDK, +}; +use casper_client::{ + cli::get_auction_info as get_auction_info_cli, get_auction_info as get_auction_info_lib, + rpcs::results::GetAuctionInfoResult as _GetAuctionInfoResult, JsonRpcId, SuccessResponse, +}; +#[cfg(target_arch = "wasm32")] +use gloo_utils::format::JsValueSerdeExt; +use rand::Rng; +#[cfg(target_arch = "wasm32")] +use serde::{Deserialize, Serialize}; +#[cfg(target_arch = "wasm32")] +use wasm_bindgen::prelude::*; + +// Define a struct to wrap the GetAuctionInfoResult +#[cfg(target_arch = "wasm32")] +#[derive(Debug, Deserialize, Clone, Serialize)] +#[wasm_bindgen] +pub struct GetAuctionInfoResult(_GetAuctionInfoResult); + +#[cfg(target_arch = "wasm32")] +impl From for _GetAuctionInfoResult { + fn from(result: GetAuctionInfoResult) -> Self { + result.0 + } +} + +#[cfg(target_arch = "wasm32")] +impl From<_GetAuctionInfoResult> for GetAuctionInfoResult { + fn from(result: _GetAuctionInfoResult) -> Self { + GetAuctionInfoResult(result) + } +} + +#[cfg(target_arch = "wasm32")] +#[wasm_bindgen] +impl GetAuctionInfoResult { + /// Gets the API version as a JsValue. + #[wasm_bindgen(getter)] + pub fn api_version(&self) -> JsValue { + JsValue::from_serde(&self.0.api_version).unwrap() + } + + /// Gets the auction state as a JsValue. + #[wasm_bindgen(getter)] + pub fn auction_state(&self) -> JsValue { + JsValue::from_serde(&self.0.auction_state).unwrap() + } + + /// Converts the GetAuctionInfoResult to a JsValue. + #[wasm_bindgen(js_name = "toJson")] + pub fn to_json(&self) -> JsValue { + JsValue::from_serde(&self.0).unwrap_or(JsValue::null()) + } +} + +/// Options for the `get_auction_info` method. +#[derive(Debug, Deserialize, Clone, Default, Serialize)] +#[cfg(target_arch = "wasm32")] +#[wasm_bindgen(js_name = "getAuctionInfoOptions", getter_with_clone)] +pub struct GetAuctionInfoOptions { + pub maybe_block_id_as_string: Option, + pub maybe_block_identifier: Option, + pub node_address: Option, + pub verbosity: Option, +} + +#[cfg(target_arch = "wasm32")] +#[wasm_bindgen] +impl SDK { + /// Parses auction info options from a JsValue. + /// + /// # Arguments + /// + /// * `options` - A JsValue containing auction info options to be parsed. + /// + /// # Returns + /// + /// Parsed auction info options as a `GetAuctionInfoOptions` struct. + #[wasm_bindgen(js_name = "get_auction_info_options")] + pub fn get_auction_info_options(&self, options: JsValue) -> GetAuctionInfoOptions { + let options_result = options.into_serde::(); + match options_result { + Ok(options) => options, + Err(err) => { + error(&format!("Error deserializing options: {:?}", err)); + GetAuctionInfoOptions::default() + } + } + } + + /// Retrieves auction information using the provided options. + /// + /// # Arguments + /// + /// * `options` - An optional `GetAuctionInfoOptions` struct containing retrieval options. + /// + /// # Returns + /// + /// A `Result` containing either a `GetAuctionInfoResult` or a `JsError` in case of an error. + /// + /// # Errors + /// + /// Returns a `JsError` if there is an error during the retrieval process. + #[wasm_bindgen(js_name = "get_auction_info")] + pub async fn get_auction_info_js_alias( + &self, + options: Option, + ) -> Result { + let GetAuctionInfoOptions { + maybe_block_id_as_string, + maybe_block_identifier, + verbosity, + node_address, + } = options.unwrap_or_default(); + + let maybe_block_identifier = if let Some(maybe_block_identifier) = maybe_block_identifier { + Some(BlockIdentifierInput::BlockIdentifier( + maybe_block_identifier, + )) + } else { + maybe_block_id_as_string.map(BlockIdentifierInput::String) + }; + + let result = self + .get_auction_info(maybe_block_identifier, verbosity, node_address) + .await; + match result { + Ok(data) => Ok(data.result.into()), + Err(err) => { + let err = &format!("Error occurred with {:?}", err); + error(err); + Err(JsError::new(err)) + } + } + } +} + +impl SDK { + /// Retrieves auction information based on the provided options. + /// + /// # Arguments + /// + /// * `maybe_block_identifier` - An optional `BlockIdentifierInput` for specifying a block identifier. + /// * `verbosity` - An optional `Verbosity` level for controlling the output verbosity. + /// * `node_address` - An optional string specifying the node address to use for the request. + /// + /// # Returns + /// + /// A `Result` containing either a `GetAuctionInfoResult` or a `SdkError` in case of an error. + /// + /// # Errors + /// + /// Returns a `SdkError` if there is an error during the retrieval process. + pub async fn get_auction_info( + &self, + maybe_block_identifier: Option, + verbosity: Option, + node_address: Option, + ) -> Result, SdkError> { + //log("get_auction_info!"); + + if let Some(BlockIdentifierInput::String(maybe_block_id)) = maybe_block_identifier { + get_auction_info_cli( + &rand::thread_rng().gen::().to_string(), + &self.get_node_address(node_address), + self.get_verbosity(verbosity).into(), + &maybe_block_id, + ) + .await + .map_err(SdkError::from) + } else { + let maybe_block_identifier = + if let Some(BlockIdentifierInput::BlockIdentifier(maybe_block_identifier)) = + maybe_block_identifier + { + Some(maybe_block_identifier) + } else { + None + }; + get_auction_info_lib( + JsonRpcId::from(rand::thread_rng().gen::().to_string()), + &self.get_node_address(node_address), + self.get_verbosity(verbosity).into(), + maybe_block_identifier.map(Into::into), + ) + .await + .map_err(SdkError::from) + } + } +} diff --git a/src/sdk/rpcs/get_balance.rs b/src/sdk/rpcs/get_balance.rs new file mode 100644 index 000000000..cd81bd89e --- /dev/null +++ b/src/sdk/rpcs/get_balance.rs @@ -0,0 +1,251 @@ +#[cfg(target_arch = "wasm32")] +use crate::debug::error; +#[cfg(target_arch = "wasm32")] +use crate::types::digest::Digest; +use crate::{ + types::{digest::ToDigest, sdk_error::SdkError, uref::URef, verbosity::Verbosity}, + SDK, +}; +use casper_client::{ + cli::get_balance as get_balance_cli, get_balance as get_balance_lib, + rpcs::results::GetBalanceResult as _GetBalanceResult, JsonRpcId, SuccessResponse, +}; +#[cfg(target_arch = "wasm32")] +use gloo_utils::format::JsValueSerdeExt; +use rand::Rng; +#[cfg(target_arch = "wasm32")] +use serde::{Deserialize, Serialize}; +#[cfg(target_arch = "wasm32")] +use wasm_bindgen::prelude::*; + +// Define a struct to wrap the GetBalanceResult +#[cfg(target_arch = "wasm32")] +#[derive(Debug, Deserialize, Clone, Serialize)] +#[wasm_bindgen] +pub struct GetBalanceResult(_GetBalanceResult); + +#[cfg(target_arch = "wasm32")] +impl From for _GetBalanceResult { + fn from(result: GetBalanceResult) -> Self { + result.0 + } +} + +#[cfg(target_arch = "wasm32")] +impl From<_GetBalanceResult> for GetBalanceResult { + fn from(result: _GetBalanceResult) -> Self { + GetBalanceResult(result) + } +} + +#[cfg(target_arch = "wasm32")] +#[wasm_bindgen] +impl GetBalanceResult { + /// Gets the API version as a JsValue. + #[wasm_bindgen(getter)] + pub fn api_version(&self) -> JsValue { + JsValue::from_serde(&self.0.api_version).unwrap() + } + + /// Gets the balance value as a JsValue. + #[wasm_bindgen(getter)] + pub fn balance_value(&self) -> JsValue { + JsValue::from_serde(&self.0.balance_value).unwrap() + } + + /// Gets the Merkle proof as a string. + #[wasm_bindgen(getter)] + pub fn merkle_proof(&self) -> String { + self.0.merkle_proof.clone() + } + + /// Converts the GetBalanceResult to a JsValue. + #[wasm_bindgen(js_name = "toJson")] + pub fn to_json(&self) -> JsValue { + JsValue::from_serde(&self.0).unwrap_or(JsValue::null()) + } +} + +/// Options for the `get_balance` method. +#[derive(Default, Debug, Deserialize, Clone, Serialize)] +#[cfg(target_arch = "wasm32")] +#[wasm_bindgen(js_name = "getBalanceOptions", getter_with_clone)] +pub struct GetBalanceOptions { + pub state_root_hash_as_string: Option, + pub state_root_hash: Option, + pub purse_uref_as_string: Option, + pub purse_uref: Option, + pub node_address: Option, + pub verbosity: Option, +} + +#[cfg(target_arch = "wasm32")] +#[wasm_bindgen] +impl SDK { + /// Parses balance options from a JsValue. + /// + /// # Arguments + /// + /// * `options` - A JsValue containing balance options to be parsed. + /// + /// # Returns + /// + /// Parsed balance options as a `GetBalanceOptions` struct. + #[wasm_bindgen(js_name = "get_balance_options")] + pub fn get_balance_options(&self, options: JsValue) -> GetBalanceOptions { + let options_result = options.into_serde::(); + match options_result { + Ok(options) => options, + Err(err) => { + error(&format!("Error deserializing options: {:?}", err)); + GetBalanceOptions::default() + } + } + } + + /// Retrieves balance information using the provided options. + /// + /// # Arguments + /// + /// * `options` - An optional `GetBalanceOptions` struct containing retrieval options. + /// + /// # Returns + /// + /// A `Result` containing either a `GetBalanceResult` or a `JsError` in case of an error. + /// + /// # Errors + /// + /// Returns a `JsError` if there is an error during the retrieval process. + #[wasm_bindgen(js_name = "get_balance")] + pub async fn get_balance_js_alias( + &self, + options: Option, + ) -> Result { + let GetBalanceOptions { + state_root_hash_as_string, + state_root_hash, + purse_uref_as_string, + purse_uref, + verbosity, + node_address, + } = options.unwrap_or_default(); + + let purse_uref = if let Some(purse_uref) = purse_uref { + GetBalanceInput::PurseUref(purse_uref) + } else if let Some(purse_uref_as_string) = purse_uref_as_string { + GetBalanceInput::PurseUrefAsString(purse_uref_as_string) + } else { + let err = "Error: Missing purse uref as string or purse uref"; + error(err); + return Err(JsError::new(err)); + }; + + let result = if let Some(hash) = state_root_hash { + self.get_balance(hash, purse_uref, verbosity, node_address) + .await + } else if let Some(hash) = state_root_hash_as_string.clone() { + // Todo check state root hash validity here _Digest::LENGTH + self.get_balance(hash.as_str(), purse_uref, verbosity, node_address) + .await + } else { + let err = "Error: Missing state_root_hash"; + error(err); + return Err(JsError::new(err)); + }; + match result { + Ok(data) => Ok(data.result.into()), + Err(err) => { + let err = &format!("Error occurred with {:?}", err); + error(err); + Err(JsError::new(err)) + } + } + } + + /// JS Alias for `get_balance_js_alias`. + /// + /// # Arguments + /// + /// * `options` - An optional `GetBalanceOptions` struct containing retrieval options. + /// + /// # Returns + /// + /// A `Result` containing either a `GetBalanceResult` or a `JsError` in case of an error. + #[wasm_bindgen(js_name = "state_get_balance")] + pub async fn state_get_balance_js_alias( + &self, + options: Option, + ) -> Result { + self.get_balance_js_alias(options).await + } +} + +/// Enum representing different ways to specify the purse uref. +#[derive(Debug, Clone)] +pub enum GetBalanceInput { + PurseUref(URef), + PurseUrefAsString(String), +} + +impl SDK { + /// Retrieves balance information based on the provided options. + /// + /// # Arguments + /// + /// * `state_root_hash` - The state root hash to query for balance information. + /// * `purse_uref` - The purse uref specifying the purse for which to retrieve the balance. + /// * `verbosity` - An optional `Verbosity` level for controlling the output verbosity. + /// * `node_address` - An optional string specifying the node address to use for the request. + /// + /// # Returns + /// + /// A `Result` containing either a `GetBalanceResult` or a `SdkError` in case of an error. + /// + /// # Errors + /// + /// Returns a `SdkError` if there is an error during the retrieval process. + pub async fn get_balance( + &self, + state_root_hash: impl ToDigest, + purse_uref: GetBalanceInput, + verbosity: Option, + node_address: Option, + ) -> Result, SdkError> { + //log("get_balance!"); + let state_root_hash = if state_root_hash.is_empty() { + self.get_state_root_hash( + None, + None, + Some(self.get_node_address(node_address.clone())), + ) + .await + .unwrap() + .result + .state_root_hash + .unwrap() + .into() + } else { + state_root_hash.to_digest() + }; + match purse_uref { + GetBalanceInput::PurseUref(purse_uref) => get_balance_lib( + JsonRpcId::from(rand::thread_rng().gen::().to_string()), + &self.get_node_address(node_address), + self.get_verbosity(verbosity).into(), + state_root_hash.into(), + purse_uref.into(), + ) + .await + .map_err(SdkError::from), + GetBalanceInput::PurseUrefAsString(purse_uref) => get_balance_cli( + &rand::thread_rng().gen::().to_string(), + &self.get_node_address(node_address), + self.get_verbosity(verbosity).into(), + &state_root_hash.to_string(), + &purse_uref, + ) + .await + .map_err(SdkError::from), + } + } +} diff --git a/src/sdk/rpcs/get_block.rs b/src/sdk/rpcs/get_block.rs new file mode 100644 index 000000000..5cd37fb9c --- /dev/null +++ b/src/sdk/rpcs/get_block.rs @@ -0,0 +1,218 @@ +#[cfg(target_arch = "wasm32")] +use crate::debug::error; +#[cfg(target_arch = "wasm32")] +use crate::types::block_identifier::BlockIdentifier; +use crate::{ + types::{block_identifier::BlockIdentifierInput, sdk_error::SdkError, verbosity::Verbosity}, + SDK, +}; +use casper_client::{ + cli::get_block as get_block_cli, get_block as get_block_lib, + rpcs::results::GetBlockResult as _GetBlockResult, JsonRpcId, SuccessResponse, +}; +#[cfg(target_arch = "wasm32")] +use gloo_utils::format::JsValueSerdeExt; +use rand::Rng; +#[cfg(target_arch = "wasm32")] +use serde::{Deserialize, Serialize}; +#[cfg(target_arch = "wasm32")] +use wasm_bindgen::prelude::*; + +// Define a struct to wrap the GetBlockResult +#[cfg(target_arch = "wasm32")] +#[derive(Debug, Deserialize, Serialize)] +#[wasm_bindgen] +pub struct GetBlockResult(_GetBlockResult); + +#[cfg(target_arch = "wasm32")] +impl From for _GetBlockResult { + fn from(result: GetBlockResult) -> Self { + result.0 + } +} + +#[cfg(target_arch = "wasm32")] +impl From<_GetBlockResult> for GetBlockResult { + fn from(result: _GetBlockResult) -> Self { + GetBlockResult(result) + } +} + +#[cfg(target_arch = "wasm32")] +#[wasm_bindgen] +impl GetBlockResult { + /// Gets the API version as a JsValue. + #[wasm_bindgen(getter)] + pub fn api_version(&self) -> JsValue { + JsValue::from_serde(&self.0.api_version).unwrap() + } + + /// Gets the block information as a JsValue. + #[wasm_bindgen(getter)] + pub fn block(&self) -> JsValue { + JsValue::from_serde(&self.0.block).unwrap() + } + + /// Converts the GetBlockResult to a JsValue. + #[wasm_bindgen(js_name = "toJson")] + pub fn to_json(&self) -> JsValue { + JsValue::from_serde(&self.0).unwrap_or(JsValue::null()) + } +} + +/// Options for the `get_block` method. +#[derive(Debug, Deserialize, Default, Serialize)] +#[cfg(target_arch = "wasm32")] +#[wasm_bindgen(js_name = "getBlockOptions", getter_with_clone)] +pub struct GetBlockOptions { + pub maybe_block_id_as_string: Option, + pub maybe_block_identifier: Option, + pub node_address: Option, + pub verbosity: Option, +} + +#[cfg(target_arch = "wasm32")] +#[wasm_bindgen] +impl SDK { + /// Parses block options from a JsValue. + /// + /// # Arguments + /// + /// * `options` - A JsValue containing block options to be parsed. + /// + /// # Returns + /// + /// Parsed block options as a `GetBlockOptions` struct. + #[wasm_bindgen(js_name = "get_block_options")] + pub fn get_block_options(&self, options: JsValue) -> GetBlockOptions { + let options_result = options.into_serde::(); + match options_result { + Ok(options) => options, + Err(err) => { + error(&format!("Error deserializing options: {:?}", err)); + GetBlockOptions::default() + } + } + } + + /// Retrieves block information using the provided options. + /// + /// # Arguments + /// + /// * `options` - An optional `GetBlockOptions` struct containing retrieval options. + /// + /// # Returns + /// + /// A `Result` containing either a `GetBlockResult` or a `JsError` in case of an error. + /// + /// # Errors + /// + /// Returns a `JsError` if there is an error during the retrieval process. + #[wasm_bindgen(js_name = "get_block")] + pub async fn get_block_js_alias( + &self, + options: Option, + ) -> Result { + let GetBlockOptions { + maybe_block_id_as_string, + maybe_block_identifier, + verbosity, + node_address, + } = options.unwrap_or_default(); + + let maybe_block_identifier = if let Some(maybe_block_identifier) = maybe_block_identifier { + Some(BlockIdentifierInput::BlockIdentifier( + maybe_block_identifier, + )) + } else { + maybe_block_id_as_string.map(BlockIdentifierInput::String) + }; + + let result = self + .get_block(maybe_block_identifier, verbosity, node_address) + .await; + match result { + Ok(data) => Ok(data.result.into()), + Err(err) => { + let err = &format!("Error occurred with {:?}", err); + error(err); + Err(JsError::new(err)) + } + } + } + + /// JS Alias for the `get_block` method to maintain compatibility. + /// + /// # Arguments + /// + /// * `options` - An optional `GetBlockOptions` struct containing retrieval options. + /// + /// # Returns + /// + /// A `Result` containing either a `GetBlockResult` or a `JsError` in case of an error. + /// + /// # Errors + /// + /// Returns a `JsError` if there is an error during the retrieval process. + #[wasm_bindgen(js_name = "chain_get_block")] + pub async fn chain_get_block_js_alias( + &self, + options: Option, + ) -> Result { + self.get_block_js_alias(options).await + } +} + +impl SDK { + /// Retrieves block information using the provided options. + /// + /// # Arguments + /// + /// * `maybe_block_identifier` - An optional `BlockIdentifierInput` specifying the block identifier. + /// * `verbosity` - An optional `Verbosity` level for the retrieval. + /// * `node_address` - An optional node address to target for retrieval. + /// + /// # Returns + /// + /// A `Result` containing either a `GetBlockResult` or a `SdkError` in case of an error. + /// + /// # Errors + /// + /// Returns a `SdkError` if there is an error during the retrieval process. + pub async fn get_block( + &self, + maybe_block_identifier: Option, + verbosity: Option, + node_address: Option, + ) -> Result, SdkError> { + //log("get_block!"); + + if let Some(BlockIdentifierInput::String(maybe_block_id)) = maybe_block_identifier { + get_block_cli( + &rand::thread_rng().gen::().to_string(), + &self.get_node_address(node_address), + self.get_verbosity(verbosity).into(), + &maybe_block_id, + ) + .await + .map_err(SdkError::from) + } else { + let maybe_block_identifier = + if let Some(BlockIdentifierInput::BlockIdentifier(maybe_block_identifier)) = + maybe_block_identifier + { + Some(maybe_block_identifier) + } else { + None + }; + get_block_lib( + JsonRpcId::from(rand::thread_rng().gen::().to_string()), + &self.get_node_address(node_address), + self.get_verbosity(verbosity).into(), + maybe_block_identifier.map(Into::into), + ) + .await + .map_err(SdkError::from) + } + } +} diff --git a/src/sdk/rpcs/get_block_transfers.rs b/src/sdk/rpcs/get_block_transfers.rs new file mode 100644 index 000000000..fb809e0e3 --- /dev/null +++ b/src/sdk/rpcs/get_block_transfers.rs @@ -0,0 +1,206 @@ +#[cfg(target_arch = "wasm32")] +use crate::debug::error; +#[cfg(target_arch = "wasm32")] +use crate::types::block_hash::BlockHash; +#[cfg(target_arch = "wasm32")] +use crate::types::block_identifier::BlockIdentifier; +use crate::{ + types::{block_identifier::BlockIdentifierInput, sdk_error::SdkError, verbosity::Verbosity}, + SDK, +}; +use casper_client::{ + cli::get_block_transfers as get_block_transfers_cli, + get_block_transfers as get_block_transfers_lib, + rpcs::results::GetBlockTransfersResult as _GetBlockTransfersResult, JsonRpcId, SuccessResponse, +}; +#[cfg(target_arch = "wasm32")] +use gloo_utils::format::JsValueSerdeExt; +use rand::Rng; +#[cfg(target_arch = "wasm32")] +use serde::{Deserialize, Serialize}; +#[cfg(target_arch = "wasm32")] +use wasm_bindgen::prelude::*; + +// Define a struct to wrap the GetBlockTransfersResult +#[cfg(target_arch = "wasm32")] +#[derive(Debug, Deserialize, Clone, Serialize)] +#[wasm_bindgen] +pub struct GetBlockTransfersResult(_GetBlockTransfersResult); + +#[cfg(target_arch = "wasm32")] +impl From for _GetBlockTransfersResult { + fn from(result: GetBlockTransfersResult) -> Self { + result.0 + } +} + +#[cfg(target_arch = "wasm32")] +impl From<_GetBlockTransfersResult> for GetBlockTransfersResult { + fn from(result: _GetBlockTransfersResult) -> Self { + GetBlockTransfersResult(result) + } +} + +#[cfg(target_arch = "wasm32")] +#[wasm_bindgen] +impl GetBlockTransfersResult { + /// Gets the API version as a JsValue. + #[wasm_bindgen(getter)] + pub fn api_version(&self) -> JsValue { + JsValue::from_serde(&self.0.api_version).unwrap() + } + + /// Gets the block hash as an Option. + #[wasm_bindgen(getter)] + pub fn block_hash(&self) -> Option { + self.0.block_hash.map(Into::into) + } + + /// Gets the transfers as a JsValue. + #[wasm_bindgen(getter)] + pub fn transfers(&self) -> JsValue { + JsValue::from_serde(&self.0.transfers).unwrap() + } + + /// Converts the GetBlockTransfersResult to a JsValue. + #[wasm_bindgen(js_name = "toJson")] + pub fn to_json(&self) -> JsValue { + JsValue::from_serde(&self.0).unwrap_or(JsValue::null()) + } +} + +/// Options for the `get_block_transfers` method. +#[derive(Debug, Deserialize, Clone, Default, Serialize)] +#[cfg(target_arch = "wasm32")] +#[wasm_bindgen(js_name = "getBlockTransfersOptions", getter_with_clone)] +pub struct GetBlockTransfersOptions { + pub maybe_block_id_as_string: Option, + pub maybe_block_identifier: Option, + pub verbosity: Option, + pub node_address: Option, +} + +#[cfg(target_arch = "wasm32")] +#[wasm_bindgen] +impl SDK { + /// Parses block transfers options from a JsValue. + /// + /// # Arguments + /// + /// * `options` - A JsValue containing block transfers options to be parsed. + /// + /// # Returns + /// + /// Parsed block transfers options as a `GetBlockTransfersOptions` struct. + #[wasm_bindgen(js_name = "get_block_transfers_options")] + pub fn get_block_transfers_options(&self, options: JsValue) -> GetBlockTransfersOptions { + let options_result = options.into_serde::(); + match options_result { + Ok(options) => options, + Err(err) => { + error(&format!("Error deserializing options: {:?}", err)); + GetBlockTransfersOptions::default() + } + } + } + + /// Retrieves block transfers information using the provided options. + /// + /// # Arguments + /// + /// * `options` - An optional `GetBlockTransfersOptions` struct containing retrieval options. + /// + /// # Returns + /// + /// A `Result` containing either a `GetBlockTransfersResult` or a `JsError` in case of an error. + /// + /// # Errors + /// + /// Returns a `JsError` if there is an error during the retrieval process. + #[wasm_bindgen(js_name = "get_block_transfers")] + pub async fn get_block_transfers_js_alias( + &self, + options: Option, + ) -> Result { + let GetBlockTransfersOptions { + maybe_block_id_as_string, + maybe_block_identifier, + verbosity, + node_address, + } = options.unwrap_or_default(); + + let maybe_block_identifier = if let Some(maybe_block_identifier) = maybe_block_identifier { + Some(BlockIdentifierInput::BlockIdentifier( + maybe_block_identifier, + )) + } else { + maybe_block_id_as_string.map(BlockIdentifierInput::String) + }; + + let result = self + .get_block_transfers(maybe_block_identifier, verbosity, node_address) + .await; + match result { + Ok(data) => Ok(data.result.into()), + Err(err) => { + let err = &format!("Error occurred with {:?}", err); + error(err); + Err(JsError::new(err)) + } + } + } +} + +impl SDK { + /// Retrieves block transfers information based on the provided options. + /// + /// # Arguments + /// + /// * `maybe_block_identifier` - An optional `BlockIdentifierInput` specifying the block identifier. + /// * `verbosity` - An optional `Verbosity` level for controlling the output verbosity. + /// * `node_address` - An optional string specifying the node address to use for the request. + /// + /// # Returns + /// + /// A `Result` containing either a `GetBlockTransfersResult` or a `SdkError` in case of an error. + /// + /// # Errors + /// + /// Returns a `SdkError` if there is an error during the retrieval process. + pub async fn get_block_transfers( + &self, + maybe_block_identifier: Option, + verbosity: Option, + node_address: Option, + ) -> Result, SdkError> { + //log("get_block_transfers!"); + + if let Some(BlockIdentifierInput::String(maybe_block_id)) = maybe_block_identifier { + get_block_transfers_cli( + &rand::thread_rng().gen::().to_string(), + &self.get_node_address(node_address), + self.get_verbosity(verbosity).into(), + &maybe_block_id, + ) + .await + .map_err(SdkError::from) + } else { + let maybe_block_identifier = + if let Some(BlockIdentifierInput::BlockIdentifier(maybe_block_identifier)) = + maybe_block_identifier + { + Some(maybe_block_identifier) + } else { + None + }; + get_block_transfers_lib( + JsonRpcId::from(rand::thread_rng().gen::().to_string()), + &self.get_node_address(node_address), + self.get_verbosity(verbosity).into(), + maybe_block_identifier.map(Into::into), + ) + .await + .map_err(SdkError::from) + } + } +} diff --git a/src/sdk/rpcs/get_chainspec.rs b/src/sdk/rpcs/get_chainspec.rs new file mode 100644 index 000000000..67a5d378e --- /dev/null +++ b/src/sdk/rpcs/get_chainspec.rs @@ -0,0 +1,116 @@ +#[cfg(target_arch = "wasm32")] +use crate::debug::error; +use crate::{types::verbosity::Verbosity, SDK}; +use casper_client::{ + get_chainspec, rpcs::results::GetChainspecResult as _GetChainspecResult, Error, JsonRpcId, + SuccessResponse, +}; +#[cfg(target_arch = "wasm32")] +use gloo_utils::format::JsValueSerdeExt; +use rand::Rng; +#[cfg(target_arch = "wasm32")] +use serde::{Deserialize, Serialize}; +#[cfg(target_arch = "wasm32")] +use wasm_bindgen::prelude::*; + +/// A struct representing the result of the `get_chainspec` function. +#[cfg(target_arch = "wasm32")] +#[derive(Debug, Deserialize, Clone, Serialize)] +#[wasm_bindgen] +pub struct GetChainspecResult(_GetChainspecResult); + +#[cfg(target_arch = "wasm32")] +impl From for _GetChainspecResult { + fn from(result: GetChainspecResult) -> Self { + result.0 + } +} + +#[cfg(target_arch = "wasm32")] +impl From<_GetChainspecResult> for GetChainspecResult { + fn from(result: _GetChainspecResult) -> Self { + GetChainspecResult(result) + } +} + +/// Implementations for the `GetChainspecResult` struct. +#[cfg(target_arch = "wasm32")] +#[wasm_bindgen] +impl GetChainspecResult { + /// Gets the API version as a JsValue. + #[wasm_bindgen(getter)] + pub fn api_version(&self) -> JsValue { + JsValue::from_serde(&self.0.api_version).unwrap() + } + + /// Gets the chainspec bytes as a JsValue. + #[wasm_bindgen(getter)] + pub fn chainspec_bytes(&self) -> JsValue { + JsValue::from_serde(&self.0.chainspec_bytes).unwrap() + } + + /// Converts the `GetChainspecResult` to a JsValue. + #[wasm_bindgen(js_name = "toJson")] + pub fn to_json(&self) -> JsValue { + JsValue::from_serde(&self.0).unwrap_or(JsValue::null()) + } +} + +/// Implementations for the `SDK` struct. +#[cfg(target_arch = "wasm32")] +#[wasm_bindgen] +impl SDK { + /// Asynchronously retrieves the chainspec. + /// + /// # Arguments + /// + /// * `verbosity` - An optional `Verbosity` parameter. + /// * `node_address` - An optional node address as a string. + /// + /// # Returns + /// + /// A `Result` containing either a `GetChainspecResult` or a `JsError` in case of an error. + #[wasm_bindgen(js_name = "get_chainspec")] + pub async fn get_chainspec_js_alias( + &self, + verbosity: Option, + node_address: Option, + ) -> Result { + let result = self.get_chainspec(verbosity, node_address).await; + match result { + Ok(data) => Ok(data.result.into()), + Err(err) => { + let err = &format!("Error occurred with {:?}", err); + error(err); + Err(JsError::new(err)) + } + } + } +} + +/// Implementations for the `SDK` struct. +impl SDK { + /// Asynchronously retrieves the chainspec. + /// + /// # Arguments + /// + /// * `verbosity` - An optional `Verbosity` parameter. + /// * `node_address` - An optional node address as a string. + /// + /// # Returns + /// + /// A `Result` containing either a `GetChainspecResult` or a `SdkError` in case of an error. + pub async fn get_chainspec( + &self, + verbosity: Option, + node_address: Option, + ) -> Result, Error> { + //log("get_chainspec!"); + get_chainspec( + JsonRpcId::from(rand::thread_rng().gen::().to_string()), + &self.get_node_address(node_address), + self.get_verbosity(verbosity).into(), + ) + .await + } +} diff --git a/src/sdk/rpcs/get_deploy.rs b/src/sdk/rpcs/get_deploy.rs new file mode 100644 index 000000000..86c33f3da --- /dev/null +++ b/src/sdk/rpcs/get_deploy.rs @@ -0,0 +1,205 @@ +#[cfg(target_arch = "wasm32")] +use crate::types::deploy::Deploy; +use crate::types::deploy_hash::DeployHash; +#[cfg(target_arch = "wasm32")] +use crate::{debug::error, types::digest::Digest}; +use crate::{types::verbosity::Verbosity, SDK}; +use casper_client::{ + get_deploy, rpcs::results::GetDeployResult as _GetDeployResult, Error, JsonRpcId, + SuccessResponse, +}; +#[cfg(target_arch = "wasm32")] +use gloo_utils::format::JsValueSerdeExt; +use rand::Rng; +#[cfg(target_arch = "wasm32")] +use serde::{Deserialize, Serialize}; +#[cfg(target_arch = "wasm32")] +use wasm_bindgen::prelude::*; + +// Define a struct to wrap the GetDeployResult +#[cfg(target_arch = "wasm32")] +#[derive(Debug, Deserialize, Clone, Serialize)] +#[wasm_bindgen] +pub struct GetDeployResult(_GetDeployResult); + +#[cfg(target_arch = "wasm32")] +impl From for _GetDeployResult { + fn from(result: GetDeployResult) -> Self { + result.0 + } +} +#[cfg(target_arch = "wasm32")] +impl From<_GetDeployResult> for GetDeployResult { + fn from(result: _GetDeployResult) -> Self { + GetDeployResult(result) + } +} + +#[cfg(target_arch = "wasm32")] +#[wasm_bindgen] +impl GetDeployResult { + #[wasm_bindgen(getter)] + /// Gets the API version as a JavaScript value. + pub fn api_version(&self) -> JsValue { + JsValue::from_serde(&self.0.api_version).unwrap() + } + + #[wasm_bindgen(getter)] + /// Gets the deploy information. + pub fn deploy(&self) -> Deploy { + self.0.deploy.clone().into() + } + + // #[wasm_bindgen(getter)] + // /// Gets the execution info as a JavaScript value. + // pub fn execution_info(&self) -> JsValue { + // JsValue::from_serde(&self.0.execution_info).unwrap() + // } + + #[wasm_bindgen(js_name = "toJson")] + /// Converts the result to a JSON JavaScript value. + pub fn to_json(&self) -> JsValue { + JsValue::from_serde(&self.0).unwrap_or(JsValue::null()) + } +} + +/// Options for the `get_deploy` method. +#[derive(Debug, Clone, Default, Deserialize, Serialize)] +#[cfg(target_arch = "wasm32")] +#[wasm_bindgen(js_name = "getDeployOptions", getter_with_clone)] +pub struct GetDeployOptions { + pub deploy_hash_as_string: Option, + pub deploy_hash: Option, + pub finalized_approvals: Option, + pub node_address: Option, + pub verbosity: Option, +} + +#[cfg(target_arch = "wasm32")] +#[wasm_bindgen] +impl SDK { + /// Parses deploy options from a JsValue. + /// + /// # Arguments + /// + /// * `options` - A JsValue containing deploy options to be parsed. + /// + /// # Returns + /// + /// Parsed deploy options as a `GetDeployOptions` struct. + #[wasm_bindgen(js_name = "get_deploy_options")] + pub fn get_deploy_options(&self, options: JsValue) -> GetDeployOptions { + let options_result = options.into_serde::(); + match options_result { + Ok(mut options) => { + if let Some(finalized_approvals) = options.finalized_approvals { + options.finalized_approvals = + Some(JsValue::from_bool(finalized_approvals) == JsValue::TRUE); + } + options + } + Err(err) => { + error(&format!("Error deserializing options: {:?}", err)); + GetDeployOptions::default() + } + } + } + + /// Retrieves deploy information using the provided options. + /// + /// # Arguments + /// + /// * `options` - An optional `GetDeployOptions` struct containing retrieval options. + /// + /// # Returns + /// + /// A `Result` containing either a `GetDeployResult` or an error. + #[wasm_bindgen(js_name = "get_deploy")] + pub async fn get_deploy_js_alias( + &self, + options: Option, + ) -> Result { + let GetDeployOptions { + deploy_hash_as_string, + deploy_hash, + finalized_approvals, + verbosity, + node_address, + } = options.unwrap_or_default(); + + let err_msg = "Error: Missing deploy hash as string or deploy hash".to_string(); + let deploy_hash = if let Some(deploy_hash_as_string) = deploy_hash_as_string { + let hash = Digest::new(&deploy_hash_as_string); + if let Err(err) = hash { + let err_msg = format!("Failed to parse AccountHash from formatted string: {}", err); + error(&err_msg); + return Err(JsError::new(&err_msg)); + } + let deploy_hash = DeployHash::from_digest(hash.unwrap()); + if deploy_hash.is_err() { + error(&err_msg); + return Err(JsError::new(&err_msg)); + } + deploy_hash.unwrap() + } else { + if deploy_hash.is_none() { + error(&err_msg); + return Err(JsError::new(&err_msg)); + } + deploy_hash.unwrap() + }; + + let result = self + .get_deploy(deploy_hash, finalized_approvals, verbosity, node_address) + .await; + match result { + Ok(data) => Ok(data.result.into()), + Err(err) => { + let err = &format!("Error occurred with {:?}", err); + error(err); + Err(JsError::new(err)) + } + } + } + + /// Retrieves deploy information using the provided options, alias for `get_deploy_js_alias`. + #[wasm_bindgen(js_name = "info_get_deploy")] + pub async fn info_get_deploy_js_alias( + &self, + options: Option, + ) -> Result { + self.get_deploy_js_alias(options).await + } +} + +impl SDK { + /// Retrieves deploy information based on the provided options. + /// + /// # Arguments + /// + /// * `deploy_hash` - The deploy hash. + /// * `finalized_approvals` - An optional boolean indicating finalized approvals. + /// * `verbosity` - An optional verbosity level. + /// * `node_address` - An optional node address. + /// + /// # Returns + /// + /// A `Result` containing either a `GetDeployResult` or an error. + pub async fn get_deploy( + &self, + deploy_hash: DeployHash, + finalized_approvals: Option, + verbosity: Option, + node_address: Option, + ) -> Result, Error> { + //log("get_deploy!"); + get_deploy( + JsonRpcId::from(rand::thread_rng().gen::().to_string()), + &self.get_node_address(node_address), + self.get_verbosity(verbosity).into(), + deploy_hash.into(), + finalized_approvals.unwrap_or_default(), + ) + .await + } +} diff --git a/src/sdk/rpcs/get_dictionary_item.rs b/src/sdk/rpcs/get_dictionary_item.rs new file mode 100644 index 000000000..5d3ee06ab --- /dev/null +++ b/src/sdk/rpcs/get_dictionary_item.rs @@ -0,0 +1,275 @@ +#[cfg(target_arch = "wasm32")] +use crate::debug::error; +use crate::types::digest::Digest; +use crate::{ + types::{ + deploy_params::dictionary_item_str_params::{ + dictionary_item_str_params_to_casper_client, DictionaryItemStrParams, + }, + dictionary_item_identifier::DictionaryItemIdentifier, + digest::ToDigest, + sdk_error::SdkError, + verbosity::Verbosity, + }, + SDK, +}; +use casper_client::{ + cli::get_dictionary_item as get_dictionary_item_cli, + get_dictionary_item as get_dictionary_item_lib, + rpcs::results::GetDictionaryItemResult as _GetDictionaryItemResult, JsonRpcId, SuccessResponse, +}; +#[cfg(target_arch = "wasm32")] +use gloo_utils::format::JsValueSerdeExt; +use rand::Rng; + +#[cfg(target_arch = "wasm32")] +use serde::{Deserialize, Serialize}; +#[cfg(target_arch = "wasm32")] +use wasm_bindgen::prelude::*; + +// Define a struct to wrap the GetDictionaryItemResult +#[cfg(target_arch = "wasm32")] +#[derive(Debug, Deserialize, Clone, Serialize)] +#[wasm_bindgen] +pub struct GetDictionaryItemResult(_GetDictionaryItemResult); + +#[cfg(target_arch = "wasm32")] +impl From for _GetDictionaryItemResult { + fn from(result: GetDictionaryItemResult) -> Self { + result.0 + } +} +#[cfg(target_arch = "wasm32")] +impl From<_GetDictionaryItemResult> for GetDictionaryItemResult { + fn from(result: _GetDictionaryItemResult) -> Self { + GetDictionaryItemResult(result) + } +} + +#[cfg(target_arch = "wasm32")] +#[wasm_bindgen] +impl GetDictionaryItemResult { + /// Gets the API version as a JsValue. + #[wasm_bindgen(getter)] + pub fn api_version(&self) -> JsValue { + JsValue::from_serde(&self.0.api_version).unwrap() + } + + /// Gets the dictionary key as a String. + #[wasm_bindgen(getter)] + pub fn dictionary_key(&self) -> String { + self.0.dictionary_key.clone() + } + + /// Gets the stored value as a JsValue. + #[wasm_bindgen(getter)] + pub fn stored_value(&self) -> JsValue { + JsValue::from_serde(&self.0.stored_value).unwrap() + } + + /// Gets the merkle proof as a String. + #[wasm_bindgen(getter)] + pub fn merkle_proof(&self) -> String { + self.0.merkle_proof.clone() + } + + /// Converts the GetDictionaryItemResult to a JsValue. + #[wasm_bindgen(js_name = "toJson")] + pub fn to_json(&self) -> JsValue { + JsValue::from_serde(&self.0).unwrap_or(JsValue::null()) + } +} + +/// Options for the `get_dictionary_item` method. +#[derive(Default, Debug, Deserialize, Clone, Serialize)] +#[cfg(target_arch = "wasm32")] +#[wasm_bindgen(js_name = "getDictionaryItemOptions", getter_with_clone)] +pub struct GetDictionaryItemOptions { + pub state_root_hash_as_string: Option, + pub state_root_hash: Option, + pub dictionary_item_params: Option, + pub dictionary_item_identifier: Option, + pub node_address: Option, + pub verbosity: Option, +} + +#[cfg(target_arch = "wasm32")] +#[wasm_bindgen] +impl SDK { + /// Parses dictionary item options from a JsValue. + /// + /// # Arguments + /// + /// * `options` - A JsValue containing dictionary item options to be parsed. + /// + /// # Returns + /// + /// Parsed dictionary item options as a `GetDictionaryItemOptions` struct. + #[wasm_bindgen(js_name = "get_dictionary_item_options")] + pub fn get_dictionary_item_options(&self, options: JsValue) -> GetDictionaryItemOptions { + let options_result = options.into_serde::(); + match options_result { + Ok(options) => options, + Err(err) => { + error(&format!("Error deserializing options: {:?}", err)); + GetDictionaryItemOptions::default() + } + } + } + + /// Retrieves dictionary item information using the provided options. + /// + /// # Arguments + /// + /// * `options` - An optional `GetDictionaryItemOptions` struct containing retrieval options. + /// + /// # Returns + /// + /// A `Result` containing either a `GetDictionaryItemResult` or a `JsError` in case of an error. + /// + /// # Errors + /// + /// Returns a `JsError` if there is an error during the retrieval process. + #[wasm_bindgen(js_name = "get_dictionary_item")] + pub async fn get_dictionary_item_js_alias( + &self, + options: Option, + ) -> Result { + let GetDictionaryItemOptions { + state_root_hash_as_string, + state_root_hash, + dictionary_item_params, + dictionary_item_identifier, + verbosity, + node_address, + } = options.unwrap_or_default(); + + let dictionary_item = if let Some(identifier) = dictionary_item_identifier { + DictionaryItemInput::Identifier(identifier) + } else if let Some(params) = dictionary_item_params { + DictionaryItemInput::Params(params) + } else { + let err = "Error: Missing dictionary item identifier or params"; + error(err); + return Err(JsError::new(err)); + }; + + let result = if let Some(hash) = state_root_hash { + self.get_dictionary_item(hash, dictionary_item, verbosity, node_address) + .await + } else if let Some(hash) = state_root_hash_as_string.clone() { + self.get_dictionary_item(hash.as_str(), dictionary_item, verbosity, node_address) + .await + } else { + let err = "Error: Missing state_root_hash"; + error(err); + return Err(JsError::new(err)); + }; + match result { + Ok(data) => Ok(data.result.into()), + Err(err) => { + let err = &format!("Error occurred with {:?}", err); + error(err); + Err(JsError::new(err)) + } + } + } + + /// JS Alias for `get_dictionary_item_js_alias` + #[wasm_bindgen(js_name = "state_get_dictionary_item")] + pub async fn state_get_dictionary_item_js_alias( + &self, + options: Option, + ) -> Result { + self.get_dictionary_item_js_alias(options).await + } +} + +pub enum DictionaryItemInput { + Identifier(DictionaryItemIdentifier), + Params(DictionaryItemStrParams), +} + +impl SDK { + /// Retrieves dictionary item information based on the provided options. + /// + /// # Arguments + /// + /// * `state_root_hash` - A `ToDigest` implementation for specifying the state root hash. + /// * `dictionary_item` - A `DictionaryItemInput` enum specifying the dictionary item to retrieve. + /// * `verbosity` - An optional `Verbosity` level for controlling the output verbosity. + /// * `node_address` - An optional string specifying the node address to use for the request. + /// + /// # Returns + /// + /// A `Result` containing either a `GetDictionaryItemResult` or a `SdkError` in case of an error. + /// + /// # Errors + /// + /// Returns a `SdkError` if there is an error during the retrieval process. + pub async fn get_dictionary_item( + &self, + state_root_hash: impl ToDigest, + dictionary_item_input: DictionaryItemInput, + verbosity: Option, + node_address: Option, + ) -> Result, SdkError> { + // log("state_get_dictionary_item!"); + match dictionary_item_input { + DictionaryItemInput::Params(dictionary_item_params) => { + let state_root_hash_as_string: String = if !state_root_hash.is_empty() { + state_root_hash.to_digest().to_string() + } else { + let state_root_hash: Digest = self + .get_state_root_hash( + None, + None, + Some(self.get_node_address(node_address.clone())), + ) + .await + .unwrap() + .result + .state_root_hash + .unwrap() + .into(); + state_root_hash.to_string() + }; + get_dictionary_item_cli( + &rand::thread_rng().gen::().to_string(), + &self.get_node_address(node_address), + self.get_verbosity(verbosity).into(), + &state_root_hash_as_string, + dictionary_item_str_params_to_casper_client(&dictionary_item_params), + ) + .await + .map_err(SdkError::from) + } + DictionaryItemInput::Identifier(dictionary_item_identifier) => { + let state_root_hash = if state_root_hash.is_empty() { + self.get_state_root_hash( + None, + None, + Some(self.get_node_address(node_address.clone())), + ) + .await + .unwrap() + .result + .state_root_hash + .unwrap() + .into() + } else { + state_root_hash.to_digest() + }; + get_dictionary_item_lib( + JsonRpcId::from(rand::thread_rng().gen::().to_string()), + &self.get_node_address(node_address), + self.get_verbosity(verbosity).into(), + state_root_hash.into(), + dictionary_item_identifier.into(), + ) + .await + .map_err(SdkError::from) + } + } + } +} diff --git a/src/sdk/rpcs/get_era_info.rs b/src/sdk/rpcs/get_era_info.rs new file mode 100644 index 000000000..666a815e6 --- /dev/null +++ b/src/sdk/rpcs/get_era_info.rs @@ -0,0 +1,153 @@ +#[cfg(target_arch = "wasm32")] +use crate::debug::error; +#[cfg(target_arch = "wasm32")] +use crate::types::block_identifier::BlockIdentifier; +use crate::{ + types::{block_identifier::BlockIdentifierInput, sdk_error::SdkError, verbosity::Verbosity}, + SDK, +}; +#[allow(deprecated)] +use casper_client::{ + cli::get_era_info as get_era_info_cli, get_era_info as get_era_info_lib, + rpcs::results::GetEraInfoResult as _GetEraInfoResult, JsonRpcId, SuccessResponse, +}; +#[cfg(target_arch = "wasm32")] +use gloo_utils::format::JsValueSerdeExt; +use rand::Rng; +#[cfg(target_arch = "wasm32")] +use serde::{Deserialize, Serialize}; +#[cfg(target_arch = "wasm32")] +use wasm_bindgen::prelude::*; + +#[cfg(target_arch = "wasm32")] +#[derive(Debug, Deserialize, Clone, Serialize)] +#[wasm_bindgen] +pub struct GetEraInfoResult(_GetEraInfoResult); + +#[cfg(target_arch = "wasm32")] +impl From for _GetEraInfoResult { + fn from(result: GetEraInfoResult) -> Self { + result.0 + } +} +#[cfg(target_arch = "wasm32")] +impl From<_GetEraInfoResult> for GetEraInfoResult { + fn from(result: _GetEraInfoResult) -> Self { + GetEraInfoResult(result) + } +} + +#[cfg(target_arch = "wasm32")] +#[wasm_bindgen] +impl GetEraInfoResult { + #[wasm_bindgen(getter)] + pub fn api_version(&self) -> JsValue { + JsValue::from_serde(&self.0.api_version).unwrap() + } + + #[wasm_bindgen(getter)] + pub fn era_summary(&self) -> JsValue { + JsValue::from_serde(&self.0.era_summary).unwrap() + } + + #[wasm_bindgen(js_name = "toJson")] + pub fn to_json(&self) -> JsValue { + JsValue::from_serde(&self.0).unwrap_or(JsValue::null()) + } +} + +#[derive(Debug, Deserialize, Clone, Default, Serialize)] +#[cfg(target_arch = "wasm32")] +#[wasm_bindgen(js_name = "getEraInfoOptions", getter_with_clone)] +pub struct GetEraInfoOptions { + pub maybe_block_id_as_string: Option, + pub maybe_block_identifier: Option, + pub node_address: Option, + pub verbosity: Option, +} + +#[cfg(target_arch = "wasm32")] +#[wasm_bindgen] +impl SDK { + #[deprecated(note = "prefer 'get_era_summary' as it doesn't require a switch block")] + #[allow(deprecated)] + #[wasm_bindgen(js_name = "get_era_info_options")] + pub fn get_era_info_options(&self, options: JsValue) -> GetEraInfoOptions { + options.into_serde().unwrap_or_default() + } + + #[deprecated(note = "prefer 'get_era_summary' as it doesn't require a switch block")] + #[allow(deprecated)] + #[wasm_bindgen(js_name = "get_era_info")] + pub async fn get_era_info_js_alias( + &self, + options: Option, + ) -> Result { + let GetEraInfoOptions { + maybe_block_id_as_string, + maybe_block_identifier, + verbosity, + node_address, + } = options.unwrap_or_default(); + + let maybe_block_identifier = if let Some(maybe_block_identifier) = maybe_block_identifier { + Some(BlockIdentifierInput::BlockIdentifier( + maybe_block_identifier, + )) + } else { + maybe_block_id_as_string.map(BlockIdentifierInput::String) + }; + let result = self + .get_era_info(maybe_block_identifier, verbosity, node_address) + .await; + match result { + Ok(data) => Ok(data.result.into()), + Err(err) => { + let err = &format!("Error occurred with {:?}", err); + error(err); + Err(JsError::new(err)) + } + } + } +} + +impl SDK { + #[deprecated(note = "prefer 'get_era_summary' as it doesn't require a switch block")] + #[allow(deprecated)] + pub async fn get_era_info( + &self, + maybe_block_identifier: Option, + verbosity: Option, + node_address: Option, + ) -> Result, SdkError> { + //log("get_era_info!"); + + if let Some(BlockIdentifierInput::String(maybe_block_id)) = maybe_block_identifier { + get_era_info_cli( + &rand::thread_rng().gen::().to_string(), + &self.get_node_address(node_address), + self.get_verbosity(verbosity).into(), + &maybe_block_id, + ) + .await + .map_err(SdkError::from) + } else { + let maybe_block_identifier = + if let Some(BlockIdentifierInput::BlockIdentifier(maybe_block_identifier)) = + maybe_block_identifier + { + Some(maybe_block_identifier) + } else { + None + }; + get_era_info_lib( + JsonRpcId::from(rand::thread_rng().gen::().to_string()), + &self.get_node_address(node_address), + self.get_verbosity(verbosity).into(), + maybe_block_identifier.map(Into::into), + ) + .await + .map_err(SdkError::from) + } + } +} diff --git a/src/sdk/rpcs/get_era_summary.rs b/src/sdk/rpcs/get_era_summary.rs new file mode 100644 index 000000000..c608d1a2e --- /dev/null +++ b/src/sdk/rpcs/get_era_summary.rs @@ -0,0 +1,196 @@ +#[cfg(target_arch = "wasm32")] +use crate::debug::error; +#[cfg(target_arch = "wasm32")] +use crate::types::block_identifier::BlockIdentifier; +use crate::{ + types::{block_identifier::BlockIdentifierInput, sdk_error::SdkError, verbosity::Verbosity}, + SDK, +}; +use casper_client::{ + cli::get_era_summary as get_era_summary_cli, get_era_summary as get_era_summary_lib, + rpcs::results::GetEraSummaryResult as _GetEraSummaryResult, JsonRpcId, SuccessResponse, +}; +#[cfg(target_arch = "wasm32")] +use gloo_utils::format::JsValueSerdeExt; +use rand::Rng; +#[cfg(target_arch = "wasm32")] +use serde::{Deserialize, Serialize}; +#[cfg(target_arch = "wasm32")] +use wasm_bindgen::prelude::*; + +/// Wrapper struct for the `GetEraSummaryResult` from casper_client. +#[cfg(target_arch = "wasm32")] +#[derive(Debug, Deserialize, Clone, Serialize)] +#[wasm_bindgen] +pub struct GetEraSummaryResult(_GetEraSummaryResult); + +#[cfg(target_arch = "wasm32")] +impl From for _GetEraSummaryResult { + fn from(result: GetEraSummaryResult) -> Self { + result.0 + } +} + +#[cfg(target_arch = "wasm32")] +impl From<_GetEraSummaryResult> for GetEraSummaryResult { + fn from(result: _GetEraSummaryResult) -> Self { + GetEraSummaryResult(result) + } +} + +#[cfg(target_arch = "wasm32")] +#[wasm_bindgen] +impl GetEraSummaryResult { + /// Gets the API version as a JsValue. + #[wasm_bindgen(getter)] + pub fn api_version(&self) -> JsValue { + JsValue::from_serde(&self.0.api_version).unwrap() + } + + /// Gets the era summary as a JsValue. + #[wasm_bindgen(getter)] + pub fn era_summary(&self) -> JsValue { + JsValue::from_serde(&self.0.era_summary).unwrap() + } + + /// Converts the GetEraSummaryResult to a JsValue. + #[wasm_bindgen(js_name = "toJson")] + pub fn to_json(&self) -> JsValue { + JsValue::from_serde(&self.0).unwrap_or(JsValue::null()) + } +} + +/// Options for the `get_era_summary` method. +#[derive(Debug, Deserialize, Clone, Default, Serialize)] +#[cfg(target_arch = "wasm32")] +#[wasm_bindgen(js_name = "getEraSummaryOptions", getter_with_clone)] +pub struct GetEraSummaryOptions { + pub maybe_block_id_as_string: Option, + pub maybe_block_identifier: Option, + pub node_address: Option, + pub verbosity: Option, +} + +#[cfg(target_arch = "wasm32")] +#[wasm_bindgen] +impl SDK { + /// Parses era summary options from a JsValue. + /// + /// # Arguments + /// + /// * `options` - A JsValue containing era summary options to be parsed. + /// + /// # Returns + /// + /// Parsed era summary options as a `GetEraSummaryOptions` struct. + #[wasm_bindgen(js_name = "get_era_summary_options")] + pub fn get_era_summary_options(&self, options: JsValue) -> GetEraSummaryOptions { + let options_result = options.into_serde::(); + match options_result { + Ok(options) => options, + Err(err) => { + error(&format!("Error deserializing options: {:?}", err)); + GetEraSummaryOptions::default() + } + } + } + + /// Retrieves era summary information using the provided options. + /// + /// # Arguments + /// + /// * `options` - An optional `GetEraSummaryOptions` struct containing retrieval options. + /// + /// # Returns + /// + /// A `Result` containing either a `GetEraSummaryResult` or a `JsError` in case of an error. + /// + /// # Errors + /// + /// Returns a `JsError` if there is an error during the retrieval process. + #[wasm_bindgen(js_name = "get_era_summary")] + pub async fn get_era_summary_js_alias( + &self, + options: Option, + ) -> Result { + let GetEraSummaryOptions { + maybe_block_id_as_string, + maybe_block_identifier, + verbosity, + node_address, + } = options.unwrap_or_default(); + + let maybe_block_identifier = if let Some(maybe_block_identifier) = maybe_block_identifier { + Some(BlockIdentifierInput::BlockIdentifier( + maybe_block_identifier, + )) + } else { + maybe_block_id_as_string.map(BlockIdentifierInput::String) + }; + + let result = self + .get_era_summary(maybe_block_identifier, verbosity, node_address) + .await; + match result { + Ok(data) => Ok(data.result.into()), + Err(err) => { + let err = &format!("Error occurred with {:?}", err); + error(err); + Err(JsError::new(err)) + } + } + } +} + +impl SDK { + /// Retrieves era summary information based on the provided options. + /// + /// # Arguments + /// + /// * `maybe_block_identifier` - An optional `BlockIdentifierInput` for specifying a block identifier. + /// * `verbosity` - An optional `Verbosity` level for controlling the output verbosity. + /// * `node_address` - An optional string specifying the node address to use for the request. + /// + /// # Returns + /// + /// A `Result` containing either a `GetEraSummaryResult` or a `SdkError` in case of an error. + /// + /// # Errors + /// + /// Returns a `SdkError` if there is an error during the retrieval process. + pub async fn get_era_summary( + &self, + maybe_block_identifier: Option, + verbosity: Option, + node_address: Option, + ) -> Result, SdkError> { + //log("get_era_summary!"); + if let Some(BlockIdentifierInput::String(maybe_block_id)) = maybe_block_identifier { + get_era_summary_cli( + &rand::thread_rng().gen::().to_string(), + &self.get_node_address(node_address), + self.get_verbosity(verbosity).into(), + &maybe_block_id, + ) + .await + .map_err(SdkError::from) + } else { + let maybe_block_identifier = + if let Some(BlockIdentifierInput::BlockIdentifier(maybe_block_identifier)) = + maybe_block_identifier + { + Some(maybe_block_identifier) + } else { + None + }; + get_era_summary_lib( + JsonRpcId::from(rand::thread_rng().gen::().to_string()), + &self.get_node_address(node_address), + self.get_verbosity(verbosity).into(), + maybe_block_identifier.map(Into::into), + ) + .await + .map_err(SdkError::from) + } + } +} diff --git a/src/sdk/rpcs/get_node_status.rs b/src/sdk/rpcs/get_node_status.rs new file mode 100644 index 000000000..0491095c8 --- /dev/null +++ b/src/sdk/rpcs/get_node_status.rs @@ -0,0 +1,198 @@ +#[cfg(target_arch = "wasm32")] +use crate::{ + debug::error, + types::{digest::Digest, public_key::PublicKey}, +}; +use crate::{types::verbosity::Verbosity, SDK}; +use casper_client::{ + get_node_status, rpcs::results::GetNodeStatusResult as _GetNodeStatusResult, Error, JsonRpcId, + SuccessResponse, +}; +#[cfg(target_arch = "wasm32")] +use gloo_utils::format::JsValueSerdeExt; +use rand::Rng; +#[cfg(target_arch = "wasm32")] +use serde::{Deserialize, Serialize}; +#[cfg(target_arch = "wasm32")] +use wasm_bindgen::prelude::*; + +/// Wrapper struct for the `GetNodeStatusResult` from casper_client. +#[cfg(target_arch = "wasm32")] +#[derive(Debug, Deserialize, Clone, Serialize)] +#[wasm_bindgen] +pub struct GetNodeStatusResult(_GetNodeStatusResult); + +#[cfg(target_arch = "wasm32")] +impl From for _GetNodeStatusResult { + fn from(result: GetNodeStatusResult) -> Self { + result.0 + } +} + +#[cfg(target_arch = "wasm32")] +impl From<_GetNodeStatusResult> for GetNodeStatusResult { + fn from(result: _GetNodeStatusResult) -> Self { + GetNodeStatusResult(result) + } +} + +#[cfg(target_arch = "wasm32")] +#[wasm_bindgen] +impl GetNodeStatusResult { + /// Gets the API version as a JsValue. + #[wasm_bindgen(getter)] + pub fn api_version(&self) -> JsValue { + JsValue::from_serde(&self.0.api_version).unwrap() + } + + /// Gets the chainspec name as a String. + #[wasm_bindgen(getter)] + pub fn chainspec_name(&self) -> String { + self.0.chainspec_name.clone() + } + + /// Gets the starting state root hash as a Digest. + #[allow(deprecated)] + #[wasm_bindgen(getter)] + pub fn starting_state_root_hash(&self) -> Digest { + self.0.starting_state_root_hash.into() + } + + /// Gets the list of peers as a JsValue. + #[wasm_bindgen(getter)] + pub fn peers(&self) -> JsValue { + JsValue::from_serde(&self.0.peers).unwrap() + } + + /// Gets information about the last added block as a JsValue. + #[wasm_bindgen(getter)] + pub fn last_added_block_info(&self) -> JsValue { + JsValue::from_serde(&self.0.last_added_block_info).unwrap() + } + + /// Gets the public signing key as an Option. + #[wasm_bindgen(getter)] + pub fn our_public_signing_key(&self) -> Option { + self.0.our_public_signing_key.clone().map(Into::into) + } + + /// Gets the round length as a JsValue. + #[wasm_bindgen(getter)] + pub fn round_length(&self) -> JsValue { + JsValue::from_serde(&self.0.round_length).unwrap() + } + + /// Gets information about the next upgrade as a JsValue. + #[wasm_bindgen(getter)] + pub fn next_upgrade(&self) -> JsValue { + JsValue::from_serde(&self.0.next_upgrade).unwrap() + } + + /// Gets the build version as a String. + #[wasm_bindgen(getter)] + pub fn build_version(&self) -> String { + self.0.build_version.clone() + } + + /// Gets the uptime information as a JsValue. + #[wasm_bindgen(getter)] + pub fn uptime(&self) -> JsValue { + JsValue::from_serde(&self.0.uptime).unwrap() + } + + /// Gets the reactor state information as a JsValue. + #[wasm_bindgen(getter)] + pub fn reactor_state(&self) -> JsValue { + JsValue::from_serde(&self.0.reactor_state).unwrap() + } + + /// Gets the last progress information as a JsValue. + #[wasm_bindgen(getter)] + pub fn last_progress(&self) -> JsValue { + JsValue::from_serde(&self.0.last_progress).unwrap() + } + + /// Gets the available block range as a JsValue. + #[wasm_bindgen(getter)] + pub fn available_block_range(&self) -> JsValue { + JsValue::from_serde(&self.0.available_block_range).unwrap() + } + + /// Gets the block sync information as a JsValue. + #[wasm_bindgen(getter)] + pub fn block_sync(&self) -> JsValue { + JsValue::from_serde(&self.0.block_sync).unwrap() + } + + /// Converts the GetNodeStatusResult to a JsValue. + #[wasm_bindgen(js_name = "toJson")] + pub fn to_json(&self) -> JsValue { + JsValue::from_serde(&self.0).unwrap_or(JsValue::null()) + } +} + +/// SDK methods related to retrieving node status information. +#[cfg(target_arch = "wasm32")] +#[wasm_bindgen] +impl SDK { + /// Retrieves node status information using the provided options. + /// + /// # Arguments + /// + /// * `verbosity` - An optional `Verbosity` level for controlling the output verbosity. + /// * `node_address` - An optional string specifying the node address to use for the request. + /// + /// # Returns + /// + /// A `Result` containing either a `GetNodeStatusResult` or a `JsError` in case of an error. + /// + /// # Errors + /// + /// Returns a `JsError` if there is an error during the retrieval process. + #[wasm_bindgen(js_name = "get_node_status")] + pub async fn get_node_status_js_alias( + &self, + verbosity: Option, + node_address: Option, + ) -> Result { + let result = self.get_node_status(verbosity, node_address).await; + match result { + Ok(data) => Ok(data.result.into()), + Err(err) => { + let err = &format!("Error occurred with {:?}", err); + error(err); + Err(JsError::new(err)) + } + } + } +} + +impl SDK { + /// Retrieves node status information based on the provided options. + /// + /// # Arguments + /// + /// * `verbosity` - An optional `Verbosity` level for controlling the output verbosity. + /// * `node_address` - An optional string specifying the node address to use for the request. + /// + /// # Returns + /// + /// A `Result` containing either a `GetNodeStatusResult` or an `Error` in case of an error. + /// + /// # Errors + /// + /// Returns an `Error` if there is an error during the retrieval process. + pub async fn get_node_status( + &self, + verbosity: Option, + node_address: Option, + ) -> Result, Error> { + //log("get_node_status!"); + get_node_status( + JsonRpcId::from(rand::thread_rng().gen::().to_string()), + &self.get_node_address(node_address), + self.get_verbosity(verbosity).into(), + ) + .await + } +} diff --git a/src/sdk/rpcs/get_peers.rs b/src/sdk/rpcs/get_peers.rs new file mode 100644 index 000000000..4434b9c72 --- /dev/null +++ b/src/sdk/rpcs/get_peers.rs @@ -0,0 +1,111 @@ +#[cfg(target_arch = "wasm32")] +use crate::debug::error; +use crate::{types::verbosity::Verbosity, SDK}; +use casper_client::{ + get_peers, rpcs::results::GetPeersResult as _GetPeersResult, Error, JsonRpcId, SuccessResponse, +}; +#[cfg(target_arch = "wasm32")] +use gloo_utils::format::JsValueSerdeExt; +use rand::Rng; +#[cfg(target_arch = "wasm32")] +use serde::{Deserialize, Serialize}; +#[cfg(target_arch = "wasm32")] +use wasm_bindgen::prelude::*; + +/// A wrapper for the `GetPeersResult` type from the Casper client. +#[cfg(target_arch = "wasm32")] +#[derive(Debug, Deserialize, Clone, Serialize)] +#[wasm_bindgen] +pub struct GetPeersResult(_GetPeersResult); + +#[cfg(target_arch = "wasm32")] +impl From for _GetPeersResult { + fn from(result: GetPeersResult) -> Self { + result.0 + } +} + +#[cfg(target_arch = "wasm32")] +impl From<_GetPeersResult> for GetPeersResult { + fn from(result: _GetPeersResult) -> Self { + GetPeersResult(result) + } +} + +#[cfg(target_arch = "wasm32")] +#[wasm_bindgen] +impl GetPeersResult { + /// Gets the API version as a JSON value. + #[wasm_bindgen(getter)] + pub fn api_version(&self) -> JsValue { + JsValue::from_serde(&self.0.api_version).unwrap() + } + + /// Gets the peers as a JSON value. + #[wasm_bindgen(getter)] + pub fn peers(&self) -> JsValue { + JsValue::from_serde(&self.0.peers).unwrap() + } + + /// Converts the result to JSON format as a JavaScript value. + #[wasm_bindgen(js_name = "toJson")] + pub fn to_json(&self) -> JsValue { + JsValue::from_serde(&self.0).unwrap_or(JsValue::null()) + } +} + +#[cfg(target_arch = "wasm32")] +#[wasm_bindgen] +impl SDK { + /// Retrieves peers asynchronously. + /// + /// # Arguments + /// + /// * `verbosity` - Optional verbosity level. + /// * `node_address` - Optional node address. + /// + /// # Returns + /// + /// A `Result` containing `GetPeersResult` or a `JsError` if an error occurs. + #[wasm_bindgen(js_name = "get_peers")] + pub async fn get_peers_js_alias( + &self, + verbosity: Option, + node_address: Option, + ) -> Result { + let result = self.get_peers(verbosity, node_address).await; + match result { + Ok(data) => Ok(data.result.into()), + Err(err) => { + let err = &format!("Error occurred with {:?}", err); + error(err); + Err(JsError::new(err)) + } + } + } +} + +impl SDK { + /// Retrieves peers. + /// + /// # Arguments + /// + /// * `verbosity` - Optional verbosity level. + /// * `node_address` - Optional node address. + /// + /// # Returns + /// + /// A `Result` containing `SuccessResponse` with `_GetPeersResult` or an `Error` if an error occurs. + pub async fn get_peers( + &self, + verbosity: Option, + node_address: Option, + ) -> Result, Error> { + get_peers( + JsonRpcId::from(rand::thread_rng().gen::().to_string()), + &self.get_node_address(node_address), + self.get_verbosity(verbosity).into(), + ) + .await + } +} diff --git a/src/sdk/rpcs/get_state_root_hash.rs b/src/sdk/rpcs/get_state_root_hash.rs new file mode 100644 index 000000000..73b094a68 --- /dev/null +++ b/src/sdk/rpcs/get_state_root_hash.rs @@ -0,0 +1,231 @@ +#[cfg(target_arch = "wasm32")] +use crate::debug::error; +#[cfg(target_arch = "wasm32")] +use crate::types::block_identifier::BlockIdentifier; +#[cfg(target_arch = "wasm32")] +use crate::types::digest::Digest; +use crate::{ + types::{block_identifier::BlockIdentifierInput, sdk_error::SdkError, verbosity::Verbosity}, + SDK, +}; +use casper_client::{ + cli::get_state_root_hash as get_state_root_hash_cli, + get_state_root_hash as get_state_root_hash_lib, + rpcs::results::GetStateRootHashResult as _GetStateRootHashResult, JsonRpcId, SuccessResponse, +}; +#[cfg(target_arch = "wasm32")] +use gloo_utils::format::JsValueSerdeExt; +use rand::Rng; +#[cfg(target_arch = "wasm32")] +use serde::{Deserialize, Serialize}; +#[cfg(target_arch = "wasm32")] +use wasm_bindgen::prelude::*; + +/// Wrapper struct for the `GetStateRootHashResult` from casper_client. +#[cfg(target_arch = "wasm32")] +#[derive(Debug, Deserialize, Clone, Serialize)] +#[wasm_bindgen] +pub struct GetStateRootHashResult(_GetStateRootHashResult); + +#[cfg(target_arch = "wasm32")] +impl From for _GetStateRootHashResult { + fn from(result: GetStateRootHashResult) -> Self { + result.0 + } +} + +#[cfg(target_arch = "wasm32")] +impl From<_GetStateRootHashResult> for GetStateRootHashResult { + fn from(result: _GetStateRootHashResult) -> Self { + GetStateRootHashResult(result) + } +} + +#[cfg(target_arch = "wasm32")] +#[wasm_bindgen] +impl GetStateRootHashResult { + /// Gets the API version as a JsValue. + #[wasm_bindgen(getter)] + pub fn api_version(&self) -> JsValue { + JsValue::from_serde(&self.0.api_version).unwrap() + } + + /// Gets the state root hash as an Option. + #[wasm_bindgen(getter)] + pub fn state_root_hash(&self) -> Option { + self.0.state_root_hash.map(Into::into) + } + + /// Gets the state root hash as a String. + #[wasm_bindgen(getter)] + pub fn state_root_hash_as_string(&self) -> String { + self.0 + .state_root_hash + .map(Into::::into) + .map(|digest| digest.to_string()) + .unwrap_or_default() + } + + /// Converts the GetStateRootHashResult to a JsValue. + #[wasm_bindgen(js_name = "toJson")] + pub fn to_json(&self) -> JsValue { + JsValue::from_serde(&self.0).unwrap_or(JsValue::null()) + } +} + +/// Options for the `get_state_root_hash` method. +#[derive(Debug, Deserialize, Clone, Default, Serialize)] +#[cfg(target_arch = "wasm32")] +#[wasm_bindgen(js_name = "getStateRootHashOptions", getter_with_clone)] +pub struct GetStateRootHashOptions { + pub maybe_block_id_as_string: Option, + pub maybe_block_identifier: Option, + pub node_address: Option, + pub verbosity: Option, +} + +#[cfg(target_arch = "wasm32")] +#[wasm_bindgen] +impl SDK { + /// Parses state root hash options from a JsValue. + /// + /// # Arguments + /// + /// * `options` - A JsValue containing state root hash options to be parsed. + /// + /// # Returns + /// + /// Parsed state root hash options as a `GetStateRootHashOptions` struct. + #[wasm_bindgen(js_name = "get_state_root_hash_options")] + pub fn get_state_root_hash_options(&self, options: JsValue) -> GetStateRootHashOptions { + let options_result = options.into_serde::(); + match options_result { + Ok(options) => options, + Err(err) => { + error(&format!("Error deserializing options: {:?}", err)); + GetStateRootHashOptions::default() + } + } + } + + /// Retrieves state root hash information using the provided options. + /// + /// # Arguments + /// + /// * `options` - An optional `GetStateRootHashOptions` struct containing retrieval options. + /// + /// # Returns + /// + /// A `Result` containing either a `GetStateRootHashResult` or a `JsError` in case of an error. + /// + /// # Errors + /// + /// Returns a `JsError` if there is an error during the retrieval process. + #[wasm_bindgen(js_name = "get_state_root_hash")] + pub async fn get_state_root_hash_js_alias( + &self, + options: Option, + ) -> Result { + let GetStateRootHashOptions { + maybe_block_id_as_string, + maybe_block_identifier, + verbosity, + node_address, + } = options.unwrap_or_default(); + + let maybe_block_identifier = if let Some(maybe_block_identifier) = maybe_block_identifier { + Some(BlockIdentifierInput::BlockIdentifier( + maybe_block_identifier, + )) + } else { + maybe_block_id_as_string.map(BlockIdentifierInput::String) + }; + + let result = self + .get_state_root_hash(maybe_block_identifier, verbosity, node_address) + .await; + match result { + Ok(data) => Ok(data.result.into()), + Err(err) => { + let err = &format!("Error occurred with {:?}", err); + error(err); + Err(JsError::new(err)) + } + } + } + + /// Retrieves state root hash information using the provided options (alias for `get_state_root_hash_js_alias`). + /// + /// # Arguments + /// + /// * `options` - An optional `GetStateRootHashOptions` struct containing retrieval options. + /// + /// # Returns + /// + /// A `Result` containing either a `GetStateRootHashResult` or a `JsError` in case of an error. + /// + /// # Errors + /// + /// Returns a `JsError` if there is an error during the retrieval process. + #[wasm_bindgen(js_name = "chain_get_state_root_hash")] + pub async fn chain_get_state_root_hash_js_alias( + &self, + options: Option, + ) -> Result { + self.get_state_root_hash_js_alias(options).await + } +} + +impl SDK { + /// Retrieves state root hash information based on the provided options. + /// + /// # Arguments + /// + /// * `maybe_block_identifier` - An optional `BlockIdentifierInput` for specifying a block identifier. + /// * `verbosity` - An optional `Verbosity` level for controlling the output verbosity. + /// * `node_address` - An optional string specifying the node address to use for the request. + /// + /// # Returns + /// + /// A `Result` containing either a `GetStateRootHashResult` or a `SdkError` in case of an error. + /// + /// # Errors + /// + /// Returns a `SdkError` if there is an error during the retrieval process. + pub async fn get_state_root_hash( + &self, + maybe_block_identifier: Option, + verbosity: Option, + node_address: Option, + ) -> Result, SdkError> { + //log("get_state_root_hash!"); + + if let Some(BlockIdentifierInput::String(maybe_block_id)) = maybe_block_identifier { + get_state_root_hash_cli( + &rand::thread_rng().gen::().to_string(), + &self.get_node_address(node_address), + self.get_verbosity(verbosity).into(), + &maybe_block_id, + ) + .await + .map_err(SdkError::from) + } else { + let maybe_block_identifier = + if let Some(BlockIdentifierInput::BlockIdentifier(maybe_block_identifier)) = + maybe_block_identifier + { + Some(maybe_block_identifier) + } else { + None + }; + get_state_root_hash_lib( + JsonRpcId::from(rand::thread_rng().gen::().to_string()), + &self.get_node_address(node_address), + self.get_verbosity(verbosity).into(), + maybe_block_identifier.map(Into::into), + ) + .await + .map_err(SdkError::from) + } + } +} diff --git a/src/sdk/rpcs/get_validator_changes.rs b/src/sdk/rpcs/get_validator_changes.rs new file mode 100644 index 000000000..dd9e25487 --- /dev/null +++ b/src/sdk/rpcs/get_validator_changes.rs @@ -0,0 +1,122 @@ +#[cfg(target_arch = "wasm32")] +use crate::debug::error; +use crate::{types::verbosity::Verbosity, SDK}; +use casper_client::{ + get_validator_changes, rpcs::results::GetValidatorChangesResult as _GetValidatorChangesResult, + Error, JsonRpcId, SuccessResponse, +}; +#[cfg(target_arch = "wasm32")] +use gloo_utils::format::JsValueSerdeExt; +use rand::Rng; +#[cfg(target_arch = "wasm32")] +use serde::{Deserialize, Serialize}; +#[cfg(target_arch = "wasm32")] +use wasm_bindgen::prelude::*; + +/// Wrapper struct for the `GetValidatorChangesResult` from casper_client. +#[cfg(target_arch = "wasm32")] +#[derive(Debug, Deserialize, Clone, Serialize)] +#[wasm_bindgen] +pub struct GetValidatorChangesResult(_GetValidatorChangesResult); + +#[cfg(target_arch = "wasm32")] +impl From for _GetValidatorChangesResult { + fn from(result: GetValidatorChangesResult) -> Self { + result.0 + } +} + +#[cfg(target_arch = "wasm32")] +impl From<_GetValidatorChangesResult> for GetValidatorChangesResult { + fn from(result: _GetValidatorChangesResult) -> Self { + GetValidatorChangesResult(result) + } +} + +#[cfg(target_arch = "wasm32")] +#[wasm_bindgen] +impl GetValidatorChangesResult { + /// Gets the API version as a JsValue. + #[wasm_bindgen(getter)] + pub fn api_version(&self) -> JsValue { + JsValue::from_serde(&self.0.api_version).unwrap() + } + + /// Gets the validator changes as a JsValue. + #[wasm_bindgen(getter)] + pub fn changes(&self) -> JsValue { + JsValue::from_serde(&self.0.changes).unwrap() + } + + /// Converts the GetValidatorChangesResult to a JsValue. + #[wasm_bindgen(js_name = "toJson")] + pub fn to_json(&self) -> JsValue { + JsValue::from_serde(&self.0).unwrap_or(JsValue::null()) + } +} + +/// SDK methods for working with validator changes. +#[cfg(target_arch = "wasm32")] +#[wasm_bindgen] +impl SDK { + /// Retrieves validator changes using the provided options. + /// + /// # Arguments + /// + /// * `verbosity` - An optional `Verbosity` level for controlling the output verbosity. + /// * `node_address` - An optional string specifying the node address to use for the request. + /// + /// # Returns + /// + /// A `Result` containing either a `GetValidatorChangesResult` or a `JsError` in case of an error. + /// + /// # Errors + /// + /// Returns a `JsError` if there is an error during the retrieval process. + #[wasm_bindgen(js_name = "get_validator_changes")] + pub async fn get_validator_changes_js_alias( + &self, + verbosity: Option, + node_address: Option, + ) -> Result { + let result = self.get_validator_changes(verbosity, node_address).await; + match result { + Ok(data) => Ok(data.result.into()), + Err(err) => { + let err = &format!("Error occurred with {:?}", err); + error(err); + Err(JsError::new(err)) + } + } + } +} + +impl SDK { + /// Retrieves validator changes based on the provided options. + /// + /// # Arguments + /// + /// * `verbosity` - An optional `Verbosity` level for controlling the output verbosity. + /// * `node_address` - An optional string specifying the node address to use for the request. + /// + /// # Returns + /// + /// A `Result` containing either a `GetValidatorChangesResult` or an `Error` in case of an error. + /// + /// # Errors + /// + /// Returns an `Error` if there is an error during the retrieval process. + pub async fn get_validator_changes( + &self, + verbosity: Option, + node_address: Option, + ) -> Result, Error> { + //log("get_validator_changes!"); + get_validator_changes( + JsonRpcId::from(rand::thread_rng().gen::().to_string()), + &self.get_node_address(node_address), + self.get_verbosity(verbosity).into(), + ) + .await + } +} diff --git a/src/sdk/rpcs/list_rpcs.rs b/src/sdk/rpcs/list_rpcs.rs new file mode 100644 index 000000000..0f698ddad --- /dev/null +++ b/src/sdk/rpcs/list_rpcs.rs @@ -0,0 +1,127 @@ +#[cfg(target_arch = "wasm32")] +use crate::debug::error; +use crate::{types::verbosity::Verbosity, SDK}; +use casper_client::{ + list_rpcs, rpcs::results::ListRpcsResult as _ListRpcsResult, Error, JsonRpcId, SuccessResponse, +}; +#[cfg(target_arch = "wasm32")] +use gloo_utils::format::JsValueSerdeExt; +use rand::Rng; +#[cfg(target_arch = "wasm32")] +use serde::{Deserialize, Serialize}; +#[cfg(target_arch = "wasm32")] +use wasm_bindgen::prelude::*; + +/// Wrapper struct for the `ListRpcsResult` from casper_client. +#[cfg(target_arch = "wasm32")] +#[derive(Debug, Deserialize, Clone, Serialize)] +#[wasm_bindgen] +pub struct ListRpcsResult(_ListRpcsResult); + +#[cfg(target_arch = "wasm32")] +impl From for _ListRpcsResult { + fn from(result: ListRpcsResult) -> Self { + result.0 + } +} + +#[cfg(target_arch = "wasm32")] +impl From<_ListRpcsResult> for ListRpcsResult { + fn from(result: _ListRpcsResult) -> Self { + ListRpcsResult(result) + } +} + +#[cfg(target_arch = "wasm32")] +#[wasm_bindgen] +impl ListRpcsResult { + /// Gets the API version as a JsValue. + #[wasm_bindgen(getter)] + pub fn api_version(&self) -> JsValue { + JsValue::from_serde(&self.0.api_version).unwrap() + } + + /// Gets the name of the RPC. + #[wasm_bindgen(getter)] + pub fn name(&self) -> String { + self.0.name.clone() + } + + /// Gets the schema of the RPC as a JsValue. + #[wasm_bindgen(getter)] + pub fn schema(&self) -> JsValue { + JsValue::from_serde(&self.0.schema).unwrap() + } + + /// Converts the ListRpcsResult to a JsValue. + #[wasm_bindgen(js_name = "toJson")] + pub fn to_json(&self) -> JsValue { + JsValue::from_serde(&self.0).unwrap_or(JsValue::null()) + } +} + +/// SDK methods for listing available RPCs. +#[cfg(target_arch = "wasm32")] +#[wasm_bindgen] +impl SDK { + /// Lists available RPCs using the provided options. + /// + /// # Arguments + /// + /// * `verbosity` - An optional `Verbosity` level for controlling the output verbosity. + /// * `node_address` - An optional string specifying the node address to use for the request. + /// + /// # Returns + /// + /// A `Result` containing either a `ListRpcsResult` or a `JsError` in case of an error. + /// + /// # Errors + /// + /// Returns a `JsError` if there is an error during the listing process. + #[wasm_bindgen(js_name = "list_rpcs")] + pub async fn list_rpcs_js_alias( + &self, + verbosity: Option, + node_address: Option, + ) -> Result { + let result = self.list_rpcs(verbosity, node_address).await; + match result { + Ok(data) => Ok(data.result.into()), + Err(err) => { + let err = &format!("Error occurred with {:?}", err); + error(err); + Err(JsError::new(err)) + } + } + } +} + +impl SDK { + /// Lists available RPCs based on the provided options. + /// + /// # Arguments + /// + /// * `verbosity` - An optional `Verbosity` level for controlling the output verbosity. + /// * `node_address` - An optional string specifying the node address to use for the request. + /// + /// # Returns + /// + /// A `Result` containing either a `ListRpcsResult` or an `Error` in case of an error. + /// + /// # Errors + /// + /// Returns an `Error` if there is an error during the listing process. + pub async fn list_rpcs( + &self, + verbosity: Option, + node_address: Option, + ) -> Result, Error> { + //log("list_rpcs!"); + list_rpcs( + JsonRpcId::from(rand::thread_rng().gen::().to_string()), + &self.get_node_address(node_address), + self.get_verbosity(verbosity).into(), + ) + .await + } +} diff --git a/src/sdk/rpcs/mod.rs b/src/sdk/rpcs/mod.rs new file mode 100644 index 000000000..38cd626d5 --- /dev/null +++ b/src/sdk/rpcs/mod.rs @@ -0,0 +1,19 @@ +pub mod get_account; +pub mod get_auction_info; +pub mod get_balance; +pub mod get_block; +pub mod get_block_transfers; +pub mod get_chainspec; +pub mod get_deploy; +pub mod get_dictionary_item; +pub mod get_era_info; +pub mod get_era_summary; +pub mod get_node_status; +pub mod get_peers; +pub mod get_state_root_hash; +pub mod get_validator_changes; +pub mod list_rpcs; +pub mod put_deploy; +pub mod query_balance; +pub mod query_global_state; +pub mod speculative_exec; diff --git a/src/sdk/rpcs/put_deploy.rs b/src/sdk/rpcs/put_deploy.rs new file mode 100644 index 000000000..6f1e6e3c7 --- /dev/null +++ b/src/sdk/rpcs/put_deploy.rs @@ -0,0 +1,98 @@ +use crate::types::deploy::Deploy; +#[cfg(target_arch = "wasm32")] +use crate::{debug::error, deploy::deploy::PutDeployResult}; +use crate::{types::verbosity::Verbosity, SDK}; +use casper_client::{ + put_deploy, rpcs::results::PutDeployResult as _PutDeployResult, Error, JsonRpcId, + SuccessResponse, +}; +use rand::Rng; +#[cfg(target_arch = "wasm32")] +use wasm_bindgen::prelude::*; + +/// SDK methods for putting a deploy. +#[cfg(target_arch = "wasm32")] +#[wasm_bindgen] +impl SDK { + /// Puts a deploy using the provided options. + /// + /// # Arguments + /// + /// * `deploy` - The `Deploy` object to be sent. + /// * `verbosity` - An optional `Verbosity` level for controlling the output verbosity. + /// * `node_address` - An optional string specifying the node address to use for the request. + /// + /// # Returns + /// + /// A `Result` containing either a `PutDeployResult` or a `JsError` in case of an error. + /// + /// # Errors + /// + /// Returns a `JsError` if there is an error during the deploy process. + #[wasm_bindgen(js_name = "put_deploy")] + pub async fn put_deploy_js_alias( + &self, + deploy: Deploy, + verbosity: Option, + node_address: Option, + ) -> Result { + let result = self + .put_deploy(deploy.into(), verbosity, node_address) + .await; + match result { + Ok(data) => Ok(data.result.into()), + Err(err) => { + let err = &format!("Error occurred with {:?}", err); + error(err); + Err(JsError::new(err)) + } + } + } + + /// JS Alias for `put_deploy_js_alias`. + /// + /// This function provides an alternative name for `put_deploy_js_alias`. + #[wasm_bindgen(js_name = "account_put_deploy")] + pub async fn account_put_deploy_js_alias( + &self, + deploy: Deploy, + verbosity: Option, + node_address: Option, + ) -> Result { + self.put_deploy_js_alias(deploy, verbosity, node_address) + .await + } +} + +impl SDK { + /// Puts a deploy based on the provided options. + /// + /// # Arguments + /// + /// * `deploy` - The `Deploy` object to be sent. + /// * `verbosity` - An optional `Verbosity` level for controlling the output verbosity. + /// * `node_address` - An optional string specifying the node address to use for the request. + /// + /// # Returns + /// + /// A `Result` containing either a `PutDeployResult` or an `Error` in case of an error. + /// + /// # Errors + /// + /// Returns an `Error` if there is an error during the deploy process. + pub async fn put_deploy( + &self, + deploy: Deploy, + verbosity: Option, + node_address: Option, + ) -> Result, Error> { + //log("account_put_deploy!"); + put_deploy( + JsonRpcId::from(rand::thread_rng().gen::().to_string()), + &self.get_node_address(node_address), + self.get_verbosity(verbosity).into(), + deploy.into(), + ) + .await + } +} diff --git a/src/sdk/rpcs/query_balance.rs b/src/sdk/rpcs/query_balance.rs new file mode 100644 index 000000000..0bef0865d --- /dev/null +++ b/src/sdk/rpcs/query_balance.rs @@ -0,0 +1,283 @@ +#[cfg(target_arch = "wasm32")] +use crate::types::digest::Digest; +use crate::types::{ + global_state_identifier::GlobalStateIdentifier, purse_identifier::PurseIdentifier, +}; +use crate::{ + debug::error, + types::{sdk_error::SdkError, verbosity::Verbosity}, + SDK, +}; +use casper_client::cli::parse_purse_identifier; +use casper_client::{ + cli::query_balance as query_balance_cli, query_balance as query_balance_lib, + rpcs::results::QueryBalanceResult as _QueryBalanceResult, JsonRpcId, SuccessResponse, +}; +#[cfg(target_arch = "wasm32")] +use gloo_utils::format::JsValueSerdeExt; +use rand::Rng; +#[cfg(target_arch = "wasm32")] +use serde::{Deserialize, Serialize}; +#[cfg(target_arch = "wasm32")] +use wasm_bindgen::prelude::*; + +// Define a struct to wrap the QueryBalanceResult +#[cfg(target_arch = "wasm32")] +#[derive(Debug, Deserialize, Clone, Serialize)] +#[wasm_bindgen] +pub struct QueryBalanceResult(_QueryBalanceResult); + +#[cfg(target_arch = "wasm32")] +impl From for _QueryBalanceResult { + fn from(result: QueryBalanceResult) -> Self { + result.0 + } +} + +#[cfg(target_arch = "wasm32")] +impl From<_QueryBalanceResult> for QueryBalanceResult { + fn from(result: _QueryBalanceResult) -> Self { + QueryBalanceResult(result) + } +} + +#[cfg(target_arch = "wasm32")] +#[wasm_bindgen] +impl QueryBalanceResult { + /// Gets the API version as a JsValue. + #[wasm_bindgen(getter)] + pub fn api_version(&self) -> JsValue { + JsValue::from_serde(&self.0.api_version).unwrap() + } + + /// Gets the balance as a JsValue. + #[wasm_bindgen(getter)] + pub fn balance(&self) -> JsValue { + JsValue::from_serde(&self.0.balance).unwrap() + } + + /// Converts the QueryBalanceResult to a JsValue. + #[wasm_bindgen(js_name = "toJson")] + pub fn to_json(&self) -> JsValue { + JsValue::from_serde(&self.0).unwrap_or(JsValue::null()) + } +} + +/// Options for the `query_balance` method. +#[derive(Debug, Deserialize, Clone, Default, Serialize)] +#[cfg(target_arch = "wasm32")] +#[wasm_bindgen(js_name = "queryBalanceOptions", getter_with_clone)] +pub struct QueryBalanceOptions { + pub purse_identifier_as_string: Option, + pub purse_identifier: Option, + pub global_state_identifier: Option, + pub state_root_hash_as_string: Option, + pub state_root_hash: Option, + pub maybe_block_id_as_string: Option, + pub node_address: Option, + pub verbosity: Option, +} + +#[cfg(target_arch = "wasm32")] +#[wasm_bindgen] +impl SDK { + /// Parses query balance options from a JsValue. + /// + /// # Arguments + /// + /// * `options` - A JsValue containing query balance options to be parsed. + /// + /// # Returns + /// + /// Parsed query balance options as a `QueryBalanceOptions` struct. + #[wasm_bindgen(js_name = "query_balance_options")] + pub fn query_balance_options(&self, options: JsValue) -> QueryBalanceOptions { + let options_result = options.into_serde::(); + match options_result { + Ok(options) => options, + Err(err) => { + error(&format!("Error deserializing options: {:?}", err)); + QueryBalanceOptions::default() + } + } + } + + /// Retrieves balance information using the provided options. + /// + /// # Arguments + /// + /// * `options` - An optional `QueryBalanceOptions` struct containing retrieval options. + /// + /// # Returns + /// + /// A `Result` containing either a `QueryBalanceResult` or a `JsError` in case of an error. + /// + /// # Errors + /// + /// Returns a `JsError` if there is an error during the retrieval process. + #[wasm_bindgen(js_name = "query_balance")] + pub async fn query_balance_js_alias( + &self, + options: Option, + ) -> Result { + let QueryBalanceOptions { + global_state_identifier, + purse_identifier_as_string, + purse_identifier, + state_root_hash_as_string, + state_root_hash, + maybe_block_id_as_string, + verbosity, + node_address, + } = options.unwrap_or_default(); + + let result = if let Some(hash) = state_root_hash { + self.query_balance( + global_state_identifier, + purse_identifier_as_string, + purse_identifier.into(), + Some(hash.to_string()), + None, + verbosity, + node_address, + ) + .await + } else if let Some(hash) = state_root_hash_as_string { + self.query_balance( + global_state_identifier, + purse_identifier_as_string, + purse_identifier.into(), + Some(hash.to_string()), + None, + verbosity, + node_address, + ) + .await + } else if let Some(maybe_block_id_as_string) = maybe_block_id_as_string { + self.query_balance( + global_state_identifier, + purse_identifier_as_string, + purse_identifier.into(), + None, + Some(maybe_block_id_as_string), + verbosity, + node_address, + ) + .await + } else { + self.query_balance( + global_state_identifier, + purse_identifier_as_string, + purse_identifier.into(), + None, + None, + verbosity, + node_address, + ) + .await + }; + match result { + Ok(data) => Ok(data.result.into()), + Err(err) => { + let err = &format!("Error occurred with {:?}", err); + error(err); + Err(JsError::new(err)) + } + } + } +} + +impl SDK { + /// Retrieves balance information based on the provided options. + /// + /// # Arguments + /// + /// * `maybe_global_state_identifier` - An optional `GlobalStateIdentifier` for specifying global state. + /// * `purse_identifier_as_string` - An optional string representing a purse identifier. + /// * `purse_identifier` - An optional `PurseIdentifier`. + /// * `state_root_hash` - An optional string representing a state root hash. + /// * `maybe_block_id` - An optional string representing a block identifier. + /// * `verbosity` - An optional `Verbosity` level for controlling the output verbosity. + /// * `node_address` - An optional string specifying the node address to use for the request. + /// + /// # Returns + /// + /// A `Result` containing either a `SuccessResponse<_QueryBalanceResult>` or a `SdkError` in case of an error. + /// + /// # Errors + /// + /// Returns a `SdkError` if there is an error during the retrieval process. + #[allow(clippy::too_many_arguments)] + pub async fn query_balance( + &self, + maybe_global_state_identifier: Option, + purse_identifier_as_string: Option, + purse_identifier: Option, + state_root_hash: Option, + maybe_block_id: Option, + verbosity: Option, + node_address: Option, + ) -> Result, SdkError> { + //log("query_balance!"); + + let purse_identifier: PurseIdentifier = if let Some(purse_identifier) = purse_identifier { + purse_identifier + } else if let Some(purse_id) = purse_identifier_as_string.clone() { + match parse_purse_identifier(&purse_id) { + Ok(parsed) => parsed.into(), + Err(err) => { + error(&err.to_string()); + return Err(SdkError::FailedToParsePurseIdentifier); + } + } + } else { + let err = "Error: Missing purse identifier"; + error(err); + return Err(SdkError::FailedToParsePurseIdentifier); + }; + + if let Some(maybe_global_state_identifier) = maybe_global_state_identifier { + query_balance_lib( + JsonRpcId::from(rand::thread_rng().gen::().to_string()), + &self.get_node_address(node_address), + self.get_verbosity(verbosity).into(), + Some(maybe_global_state_identifier.into()), + purse_identifier.into(), + ) + .await + .map_err(SdkError::from) + } else if maybe_global_state_identifier.is_none() { + query_balance_lib( + JsonRpcId::from(rand::thread_rng().gen::().to_string()), + &self.get_node_address(node_address), + self.get_verbosity(verbosity).into(), + None, + purse_identifier.into(), + ) + .await + .map_err(SdkError::from) + } else if let Some(state_root_hash) = state_root_hash { + query_balance_cli( + &rand::thread_rng().gen::().to_string(), + &self.get_node_address(node_address), + self.get_verbosity(verbosity).into(), + "", + &state_root_hash, + &purse_identifier.to_string(), + ) + .await + .map_err(SdkError::from) + } else { + query_balance_cli( + &rand::thread_rng().gen::().to_string(), + &self.get_node_address(node_address), + self.get_verbosity(verbosity).into(), + &maybe_block_id.unwrap_or_default(), + "", + &purse_identifier.to_string(), + ) + .await + .map_err(SdkError::from) + } + } +} diff --git a/src/sdk/rpcs/query_global_state.rs b/src/sdk/rpcs/query_global_state.rs new file mode 100644 index 000000000..081411ca8 --- /dev/null +++ b/src/sdk/rpcs/query_global_state.rs @@ -0,0 +1,402 @@ +use crate::debug::error; +use crate::types::digest::Digest; +use crate::types::global_state_identifier::GlobalStateIdentifier; +use crate::{ + types::{key::Key, path::Path, sdk_error::SdkError, verbosity::Verbosity}, + SDK, +}; +use casper_client::{ + cli::query_global_state as query_global_state_cli, + query_global_state as query_global_state_lib, + rpcs::results::QueryGlobalStateResult as _QueryGlobalStateResult, JsonRpcId, SuccessResponse, +}; +#[cfg(target_arch = "wasm32")] +use gloo_utils::format::JsValueSerdeExt; +use rand::Rng; +use serde::{Deserialize, Serialize}; +use wasm_bindgen::prelude::*; + +// Define a struct to wrap the QueryGlobalStateResult +#[derive(Debug, Deserialize, Clone, Serialize)] +#[wasm_bindgen] +pub struct QueryGlobalStateResult(_QueryGlobalStateResult); + +impl From for _QueryGlobalStateResult { + fn from(result: QueryGlobalStateResult) -> Self { + result.0 + } +} + +impl From<_QueryGlobalStateResult> for QueryGlobalStateResult { + fn from(result: _QueryGlobalStateResult) -> Self { + QueryGlobalStateResult(result) + } +} + +#[cfg(target_arch = "wasm32")] +#[wasm_bindgen] +impl QueryGlobalStateResult { + /// Gets the API version as a JsValue. + #[wasm_bindgen(getter)] + pub fn api_version(&self) -> JsValue { + JsValue::from_serde(&self.0.api_version).unwrap() + } + + /// Gets the block header as a JsValue. + #[wasm_bindgen(getter)] + pub fn block_header(&self) -> JsValue { + JsValue::from_serde(&self.0.block_header).unwrap() + } + + /// Gets the stored value as a JsValue. + #[wasm_bindgen(getter)] + pub fn stored_value(&self) -> JsValue { + JsValue::from_serde(&self.0.stored_value).unwrap() + } + + /// Gets the Merkle proof as a string. + #[wasm_bindgen(getter)] + pub fn merkle_proof(&self) -> String { + self.0.merkle_proof.clone() + } + + /// Converts the QueryGlobalStateResult to a JsValue. + #[wasm_bindgen(js_name = "toJson")] + pub fn to_json(&self) -> JsValue { + JsValue::from_serde(&self.0).unwrap_or(JsValue::null()) + } +} + +/// Options for the `query_global_state` method. +#[derive(Debug, Deserialize, Clone, Default, Serialize)] +#[wasm_bindgen(js_name = "queryGlobalStateOptions", getter_with_clone)] +pub struct QueryGlobalStateOptions { + pub global_state_identifier: Option, + pub state_root_hash_as_string: Option, + pub state_root_hash: Option, + pub maybe_block_id_as_string: Option, + pub key_as_string: Option, + pub key: Option, + pub path_as_string: Option, + pub path: Option, + pub node_address: Option, + pub verbosity: Option, +} + +#[cfg(target_arch = "wasm32")] +#[wasm_bindgen] +impl SDK { + /// Parses query global state options from a JsValue. + /// + /// # Arguments + /// + /// * `options` - A JsValue containing query global state options to be parsed. + /// + /// # Returns + /// + /// Parsed query global state options as a `QueryGlobalStateOptions` struct. + #[wasm_bindgen(js_name = "query_global_state_options")] + pub fn query_global_state_options(&self, options: JsValue) -> QueryGlobalStateOptions { + let options_result = options.into_serde::(); + match options_result { + Ok(options) => options, + Err(err) => { + error(&format!("Error deserializing options: {:?}", err)); + QueryGlobalStateOptions::default() + } + } + } + + /// Retrieves global state information using the provided options. + /// + /// # Arguments + /// + /// * `options` - An optional `QueryGlobalStateOptions` struct containing retrieval options. + /// + /// # Returns + /// + /// A `Result` containing either a `QueryGlobalStateResult` or a `JsError` in case of an error. + /// + /// # Errors + /// + /// Returns a `JsError` if there is an error during the retrieval process. + #[wasm_bindgen(js_name = "query_global_state")] + pub async fn query_global_state_js_alias( + &self, + options: Option, + ) -> Result { + match self.query_global_state_js_alias_params(options) { + Ok(params) => { + let result = self.query_global_state(params).await; + match result { + Ok(data) => Ok(data.result.into()), + Err(err) => { + let err = &format!("Error occurred with {:?}", err); + error(err); + Err(JsError::new(err)) + } + } + } + Err(err) => { + let err = &format!("Error building parameters: {:?}", err); + error(err); + Err(JsError::new(err)) + } + } + } +} + +/// Enum to represent input for KeyIdentifier. +#[derive(Debug, Clone)] +pub enum KeyIdentifierInput { + Key(Key), + String(String), +} + +/// Enum to represent input for PathIdentifier. +#[derive(Debug, Clone)] +pub enum PathIdentifierInput { + Path(Path), + String(String), +} + +/// Struct to store parameters for querying global state. +#[derive(Debug)] +pub struct QueryGlobalStateParams { + pub key: KeyIdentifierInput, + pub path: Option, + pub maybe_global_state_identifier: Option, + pub state_root_hash: Option, + pub maybe_block_id: Option, + pub node_address: Option, + pub verbosity: Option, +} + +impl SDK { + /// Builds parameters for querying global state based on the provided options. + /// + /// # Arguments + /// + /// * `options` - An optional `QueryGlobalStateOptions` struct containing retrieval options. + /// + /// # Returns + /// + /// A `Result` containing either a `QueryGlobalStateParams` struct or a `SdkError` in case of an error. + pub fn query_global_state_js_alias_params( + &self, + options: Option, + ) -> Result { + let QueryGlobalStateOptions { + global_state_identifier, + state_root_hash_as_string, + state_root_hash, + maybe_block_id_as_string, + key_as_string, + key, + path_as_string, + path, + verbosity, + node_address, + } = options.unwrap_or_default(); + + let key = if let Some(key) = key { + Some(KeyIdentifierInput::Key(key)) + } else if let Some(key_as_string) = key_as_string { + Some(KeyIdentifierInput::String(key_as_string)) + } else { + let err_msg = "Error: Missing Key as string or Key".to_string(); + error(&err_msg); + return Err(SdkError::InvalidArgument { + context: "query_global_state", + error: err_msg, + }); + }; + + let maybe_path = if let Some(path) = path { + Some(PathIdentifierInput::Path(path)) + } else if let Some(path_str) = path_as_string { + if path_str.is_empty() { + None + } else { + Some(PathIdentifierInput::String(path_str)) + } + } else { + None + }; + + let query_params = if let Some(hash) = state_root_hash { + let state_root_hash_str = hash.to_string(); + QueryGlobalStateParams { + key: key.unwrap(), + path: maybe_path.clone(), + maybe_global_state_identifier: global_state_identifier.clone(), + state_root_hash: if state_root_hash_str.is_empty() { + None + } else { + Some(state_root_hash_str) + }, + maybe_block_id: None, + verbosity, + node_address, + } + } else if let Some(hash) = state_root_hash_as_string { + let state_root_hash_str = hash.to_string(); + QueryGlobalStateParams { + key: key.unwrap(), + path: maybe_path.clone(), + maybe_global_state_identifier: global_state_identifier.clone(), + state_root_hash: if state_root_hash_str.is_empty() { + None + } else { + Some(state_root_hash_str) + }, + maybe_block_id: None, + verbosity, + node_address, + } + } else if let Some(maybe_block_id_as_string) = maybe_block_id_as_string { + QueryGlobalStateParams { + key: key.unwrap(), + path: maybe_path.clone(), + maybe_global_state_identifier: global_state_identifier.clone(), + state_root_hash: None, + maybe_block_id: Some(maybe_block_id_as_string), + verbosity, + node_address, + } + } else { + QueryGlobalStateParams { + key: key.unwrap(), + path: maybe_path.clone(), + maybe_global_state_identifier: global_state_identifier.clone(), + state_root_hash: None, + maybe_block_id: None, + verbosity, + node_address, + } + }; + Ok(query_params) + } + + /// Retrieves global state information based on the provided parameters. + /// + /// # Arguments + /// + /// * `query_params` - A `QueryGlobalStateParams` struct containing query parameters. + /// + /// # Returns + /// + /// A `Result` containing either a `SuccessResponse<_QueryGlobalStateResult>` or a `SdkError` in case of an error. + pub async fn query_global_state( + &self, + query_params: QueryGlobalStateParams, + ) -> Result, SdkError> { + //log("query_global_state!"); + + let QueryGlobalStateParams { + key, + path, + maybe_global_state_identifier, + state_root_hash, + maybe_block_id, + verbosity, + node_address, + } = query_params; + + let key = match key { + KeyIdentifierInput::Key(key) => Some(key), + KeyIdentifierInput::String(key_string) => match Key::from_formatted_str(&key_string) { + Ok(key) => Some(key), + Err(_) => None, + }, + }; + + if key.is_none() { + let err = "Error: Missing key from formatted string".to_string(); + error(&err); + return Err(SdkError::InvalidArgument { + context: "query_global_state", + error: err, + }); + } + + let path = if let Some(path) = path { + let path = match path { + PathIdentifierInput::Path(path) => path, + PathIdentifierInput::String(path_string) => Path::from(path_string), + }; + Some(path) + } else { + None + }; + + let path_str: String = match path.clone() { + Some(p) => p.to_string(), + None => String::new(), + }; + if let Some(maybe_global_state_identifier) = maybe_global_state_identifier { + query_global_state_lib( + JsonRpcId::from(rand::thread_rng().gen::().to_string()), + &self.get_node_address(node_address), + self.get_verbosity(verbosity).into(), + Some(maybe_global_state_identifier.into()), + key.unwrap().into(), + match path { + Some(path) if path.is_empty() => Vec::new(), + Some(path) => path.into(), + None => Vec::new(), + }, + ) + .await + .map_err(SdkError::from) + } else if let Some(state_root_hash) = state_root_hash { + query_global_state_cli( + &rand::thread_rng().gen::().to_string(), + &self.get_node_address(node_address), + self.get_verbosity(verbosity).into(), + "", + &state_root_hash, + &key.unwrap().to_formatted_string(), + &path_str, + ) + .await + .map_err(SdkError::from) + } else if let Some(maybe_block_id) = maybe_block_id { + query_global_state_cli( + &rand::thread_rng().gen::().to_string(), + &self.get_node_address(node_address), + self.get_verbosity(verbosity).into(), + &maybe_block_id, + "", + &key.unwrap().to_formatted_string(), + &path_str, + ) + .await + .map_err(SdkError::from) + } else { + let state_root_hash: Digest = self + .get_state_root_hash( + None, + None, + Some(self.get_node_address(node_address.clone())), + ) + .await + .unwrap() + .result + .state_root_hash + .unwrap() + .into(); + query_global_state_cli( + &rand::thread_rng().gen::().to_string(), + &self.get_node_address(node_address), + self.get_verbosity(verbosity).into(), + "", + &state_root_hash.to_string(), + &key.unwrap().to_formatted_string(), + &path_str, + ) + .await + .map_err(SdkError::from) + } + } +} diff --git a/src/sdk/rpcs/speculative_exec.rs b/src/sdk/rpcs/speculative_exec.rs new file mode 100644 index 000000000..267b7f3f3 --- /dev/null +++ b/src/sdk/rpcs/speculative_exec.rs @@ -0,0 +1,212 @@ +#[cfg(target_arch = "wasm32")] +use crate::debug::error; +#[cfg(target_arch = "wasm32")] +use crate::types::block_hash::BlockHash; +#[cfg(target_arch = "wasm32")] +use crate::types::block_identifier::BlockIdentifier; +use crate::types::deploy::Deploy; +use crate::{ + types::{block_identifier::BlockIdentifierInput, sdk_error::SdkError, verbosity::Verbosity}, + SDK, +}; +use casper_client::{ + rpcs::results::SpeculativeExecResult as _SpeculativeExecResult, + speculative_exec as speculative_exec_lib, JsonRpcId, SuccessResponse, +}; +#[cfg(target_arch = "wasm32")] +use gloo_utils::format::JsValueSerdeExt; +use rand::Rng; +#[cfg(target_arch = "wasm32")] +use serde::{Deserialize, Serialize}; +#[cfg(target_arch = "wasm32")] +use wasm_bindgen::prelude::*; + +// Define a struct to wrap the result of a speculative execution. +#[cfg(target_arch = "wasm32")] +#[derive(Debug, Deserialize, Clone, Serialize)] +#[wasm_bindgen] +pub struct SpeculativeExecResult(_SpeculativeExecResult); + +#[cfg(target_arch = "wasm32")] +impl From for _SpeculativeExecResult { + fn from(result: SpeculativeExecResult) -> Self { + result.0 + } +} + +#[cfg(target_arch = "wasm32")] +impl From<_SpeculativeExecResult> for SpeculativeExecResult { + fn from(result: _SpeculativeExecResult) -> Self { + SpeculativeExecResult(result) + } +} + +#[cfg(target_arch = "wasm32")] +#[wasm_bindgen] +impl SpeculativeExecResult { + /// Get the API version of the result. + #[wasm_bindgen(getter)] + pub fn api_version(&self) -> JsValue { + JsValue::from_serde(&self.0.api_version).unwrap() + } + + /// Get the block hash. + #[wasm_bindgen(getter)] + pub fn block_hash(&self) -> BlockHash { + self.0.block_hash.into() + } + + /// Get the execution result. + #[wasm_bindgen(getter)] + pub fn execution_result(&self) -> JsValue { + JsValue::from_serde(&self.0.execution_result).unwrap() + } + + /// Convert the result to JSON format. + #[wasm_bindgen(js_name = "toJson")] + pub fn to_json(&self) -> JsValue { + JsValue::from_serde(&self.0).unwrap_or(JsValue::null()) + } +} + +/// Options for speculative execution. +#[derive(Debug, Deserialize, Clone, Default, Serialize)] +#[cfg(target_arch = "wasm32")] +#[wasm_bindgen(js_name = "getSpeculativeExecOptions", getter_with_clone)] +pub struct GetSpeculativeExecOptions { + /// The deploy as a JSON string. + pub deploy_as_string: Option, + + /// The deploy to execute. + pub deploy: Option, + + /// The block identifier as a string. + pub maybe_block_id_as_string: Option, + + /// The block identifier. + pub maybe_block_identifier: Option, + + /// The node address. + pub node_address: Option, + + /// The verbosity level for logging. + pub verbosity: Option, +} + +#[cfg(target_arch = "wasm32")] +#[wasm_bindgen] +impl SDK { + /// Get options for speculative execution from a JavaScript value. + #[wasm_bindgen(js_name = "speculative_exec_options")] + pub fn get_speculative_exec_options(&self, options: JsValue) -> GetSpeculativeExecOptions { + let options_result = options.into_serde::(); + match options_result { + Ok(options) => options, + Err(err) => { + error(&format!("Error deserializing options: {:?}", err)); + GetSpeculativeExecOptions::default() + } + } + } + + /// JS Alias for speculative execution. + /// + /// # Arguments + /// + /// * `options` - The options for speculative execution. + /// + /// # Returns + /// + /// A `Result` containing the result of the speculative execution or a `JsError` in case of an error. + #[wasm_bindgen(js_name = "speculative_exec")] + pub async fn speculative_exec_js_alias( + &self, + options: Option, + ) -> Result { + let GetSpeculativeExecOptions { + deploy_as_string, + deploy, + maybe_block_id_as_string, + maybe_block_identifier, + verbosity, + node_address, + } = options.unwrap_or_default(); + + let deploy = if let Some(deploy_as_string) = deploy_as_string { + Deploy::new(deploy_as_string.into()) + } else if let Some(deploy) = deploy { + deploy + } else { + let err = &format!("Error: Missing deploy as json or deploy"); + error(err); + return Err(JsError::new(err)); + }; + + let maybe_block_identifier = if let Some(maybe_block_identifier) = maybe_block_identifier { + Some(BlockIdentifierInput::BlockIdentifier( + maybe_block_identifier, + )) + } else { + maybe_block_id_as_string.map(BlockIdentifierInput::String) + }; + + let result = self + .speculative_exec( + deploy.into(), + maybe_block_identifier, + verbosity, + node_address, + ) + .await; + match result { + Ok(data) => Ok(data.result.into()), + Err(err) => { + let err = &format!("Error occurred with {:?}", err); + error(err); + Err(JsError::new(err)) + } + } + } +} + +impl SDK { + /// Perform speculative execution. + /// + /// # Arguments + /// + /// * `deploy` - The deploy to execute. + /// * `maybe_block_identifier` - The block identifier. + /// * `verbosity` - The verbosity level for logging. + /// * `node_address` - The address of the node to connect to. + /// + /// # Returns + /// + /// A `Result` containing the result of the speculative execution or a `SdkError` in case of an error. + pub async fn speculative_exec( + &self, + deploy: Deploy, + maybe_block_identifier: Option, + verbosity: Option, + node_address: Option, + ) -> Result, SdkError> { + //log("speculative_exec!"); + + let maybe_block_identifier = + if let Some(BlockIdentifierInput::BlockIdentifier(maybe_block_identifier)) = + maybe_block_identifier + { + Some(maybe_block_identifier) + } else { + None + }; + speculative_exec_lib( + JsonRpcId::from(rand::thread_rng().gen::().to_string()), + &self.get_node_address(node_address), + maybe_block_identifier.map(Into::into), + self.get_verbosity(verbosity).into(), + deploy.into(), + ) + .await + .map_err(SdkError::from) + } +} diff --git a/src/types/access_rights.rs b/src/types/access_rights.rs new file mode 100644 index 000000000..894f3ec67 --- /dev/null +++ b/src/types/access_rights.rs @@ -0,0 +1,113 @@ +use crate::debug::error; +use casper_types::AccessRights as _AccessRights; +use wasm_bindgen::prelude::*; + +#[wasm_bindgen] +#[derive(Debug, Default)] +pub struct AccessRights(_AccessRights); + +#[wasm_bindgen] +impl AccessRights { + #[wasm_bindgen(js_name = "NONE")] + pub fn none() -> u8 { + _AccessRights::NONE.bits() + } + + #[wasm_bindgen(js_name = "READ")] + pub fn read() -> u8 { + _AccessRights::READ.bits() + } + + #[wasm_bindgen(js_name = "WRITE")] + pub fn write() -> u8 { + _AccessRights::WRITE.bits() + } + + #[wasm_bindgen(js_name = "ADD")] + pub fn add() -> u8 { + _AccessRights::ADD.bits() + } + + #[wasm_bindgen(js_name = "READ_ADD")] + pub fn read_add() -> u8 { + _AccessRights::READ_ADD.bits() + } + + #[wasm_bindgen(js_name = "READ_WRITE")] + pub fn read_write() -> u8 { + _AccessRights::READ_WRITE.bits() + } + + #[wasm_bindgen(js_name = "ADD_WRITE")] + pub fn add_write() -> u8 { + _AccessRights::ADD_WRITE.bits() + } + + #[wasm_bindgen(js_name = "READ_ADD_WRITE")] + pub fn read_add_write() -> u8 { + _AccessRights::READ_ADD_WRITE.bits() + } + + // Utility method to create AccessRights with u8 + #[wasm_bindgen(constructor)] + pub fn new(access_rights: u8) -> Result { + match _AccessRights::from_bits(access_rights) { + Some(rights) => Ok(AccessRights(rights)), + None => { + error("Invalid URef access rights"); + Err(JsValue::null()) + } + } + } + + #[wasm_bindgen] + pub fn from_bits(read: bool, write: bool, add: bool) -> Self { + let mut access_rights = _AccessRights::NONE; + if read { + access_rights |= _AccessRights::READ; + } + if write { + access_rights |= _AccessRights::WRITE; + } + if add { + access_rights |= _AccessRights::ADD; + } + AccessRights(access_rights) + } + + #[wasm_bindgen] + // Utility method to check if the READ flag is set. + pub fn is_readable(&self) -> bool { + self.0.is_readable() + } + + #[wasm_bindgen] + // Utility method to check if the WRITE flag is set. + pub fn is_writeable(&self) -> bool { + self.0.is_writeable() + } + + #[wasm_bindgen] + // Utility method to check if the ADD flag is set. + pub fn is_addable(&self) -> bool { + self.0.is_addable() + } + + #[wasm_bindgen] + // Utility method to check if no flags are set. + pub fn is_none(&self) -> bool { + self.0.is_none() + } +} + +impl From for _AccessRights { + fn from(access_rights: AccessRights) -> Self { + access_rights.0 + } +} + +impl From<_AccessRights> for AccessRights { + fn from(access_rights: _AccessRights) -> Self { + AccessRights(access_rights) + } +} diff --git a/src/types/account_hash.rs b/src/types/account_hash.rs new file mode 100644 index 000000000..4dc50d3cb --- /dev/null +++ b/src/types/account_hash.rs @@ -0,0 +1,101 @@ +use super::public_key::PublicKey; +use crate::debug::error; +use casper_types::{ + account::{AccountHash as _AccountHash, ACCOUNT_HASH_LENGTH}, + bytesrepr::{self, FromBytes, ToBytes, U8_SERIALIZED_LENGTH}, + crypto, +}; +#[cfg(target_arch = "wasm32")] +use gloo_utils::format::JsValueSerdeExt; +use serde::{Deserialize, Serialize}; +use wasm_bindgen::prelude::*; + +#[derive(Debug, Deserialize, Clone, Serialize)] +#[wasm_bindgen] +pub struct AccountHash(_AccountHash); + +#[wasm_bindgen] +impl AccountHash { + #[wasm_bindgen(constructor)] + pub fn new(account_hash_hex_str: &str) -> Result { + let bytes = hex::decode(account_hash_hex_str) + .map_err(|err| JsValue::from_str(&format!("Failed to decode hex string: {:?}", err)))?; + if bytes.len() != ACCOUNT_HASH_LENGTH { + return Err(JsValue::from_str("Invalid account hash length")); + } + let mut array = [0u8; ACCOUNT_HASH_LENGTH]; + array.copy_from_slice(&bytes); + let account_hash = _AccountHash(array); + Ok(account_hash.into()) + } + + #[wasm_bindgen(js_name = "fromFormattedStr")] + pub fn from_formatted_str(formatted_str: &str) -> Result { + let account_hash = _AccountHash::from_formatted_str(formatted_str) + .map_err(|err| { + error(&format!( + "Failed to parse AccountHash from formatted string: {:?}", + err + )) + }) + .unwrap(); + Ok(AccountHash(account_hash)) + } + + #[wasm_bindgen(js_name = "fromPublicKey")] + pub fn from_public_key(public_key: PublicKey) -> AccountHash { + let account_hash = _AccountHash::from_public_key(&(public_key.into()), crypto::blake2b); + AccountHash(account_hash) + } + + #[wasm_bindgen(js_name = "toFormattedString")] + pub fn to_formatted_string(&self) -> String { + self.0.to_formatted_string() + } + + #[wasm_bindgen(js_name = "fromUint8Array")] + pub fn from_bytes(bytes: Vec) -> AccountHash { + let account_hash = + _AccountHash::try_from(&bytes).expect("Failed to convert bytes to AccountHash"); + AccountHash(account_hash) + } + + #[cfg(target_arch = "wasm32")] + #[wasm_bindgen(js_name = "toJson")] + pub fn to_json(&self) -> JsValue { + JsValue::from_serde(self).unwrap_or(JsValue::null()) + } +} + +impl From for _AccountHash { + fn from(account_hash: AccountHash) -> Self { + account_hash.0 + } +} + +impl From<_AccountHash> for AccountHash { + fn from(account_hash: _AccountHash) -> Self { + AccountHash(account_hash) + } +} + +impl FromBytes for AccountHash { + fn from_bytes(bytes: &[u8]) -> Result<(Self, &[u8]), bytesrepr::Error> { + let (account_hash, remainder) = _AccountHash::from_bytes(bytes)?; + Ok((AccountHash(account_hash), remainder)) + } +} + +impl ToBytes for AccountHash { + fn to_bytes(&self) -> Result, bytesrepr::Error> { + self.0.to_bytes() + } + + fn serialized_length(&self) -> usize { + U8_SERIALIZED_LENGTH + self.0.value().len() * U8_SERIALIZED_LENGTH + } + + fn write_bytes(&self, bytes: &mut Vec) -> Result<(), bytesrepr::Error> { + self.0.write_bytes(bytes) + } +} diff --git a/src/types/account_identifier.rs b/src/types/account_identifier.rs new file mode 100644 index 000000000..c6fa0c76c --- /dev/null +++ b/src/types/account_identifier.rs @@ -0,0 +1,97 @@ +use super::{account_hash::AccountHash, public_key::PublicKey}; +use casper_client::rpcs::AccountIdentifier as _AccountIdentifier; +#[cfg(target_arch = "wasm32")] +use gloo_utils::format::JsValueSerdeExt; +use serde::{Deserialize, Serialize}; +use wasm_bindgen::prelude::*; + +#[derive(Debug, Deserialize, Clone, Serialize)] +#[wasm_bindgen] +pub struct AccountIdentifier(_AccountIdentifier); + +#[wasm_bindgen] +impl AccountIdentifier { + #[wasm_bindgen(constructor)] + pub fn new(formatted_str: &str) -> Result { + Self::from_formatted_str(formatted_str) + } + + #[wasm_bindgen(js_name = "fromFormattedStr")] + pub fn from_formatted_str(formatted_str: &str) -> Result { + if formatted_str.contains("account-hash") { + let account_hash = AccountHash::from_formatted_str(formatted_str)?; + Ok(Self::from_account_under_account_hash(account_hash)) + } else { + let public_key = PublicKey::new(formatted_str)?; + Ok(Self::from_account_account_under_public_key(public_key)) + } + } + + #[wasm_bindgen(js_name = "fromPublicKey")] + pub fn from_account_account_under_public_key(key: PublicKey) -> Self { + AccountIdentifier(_AccountIdentifier::PublicKey(key.into())) + } + + #[wasm_bindgen(js_name = "fromAccountHash")] + pub fn from_account_under_account_hash(account_hash: AccountHash) -> Self { + AccountIdentifier(_AccountIdentifier::AccountHash(account_hash.into())) + } + + #[cfg(target_arch = "wasm32")] + #[wasm_bindgen(js_name = "toJson")] + pub fn to_json(&self) -> JsValue { + JsValue::from_serde(self).unwrap_or(JsValue::null()) + } +} + +impl ToString for AccountIdentifier { + fn to_string(&self) -> String { + match &self.0 { + // TODO fix PublicKey to string not short version + _AccountIdentifier::PublicKey(key) => PublicKey::from(key.clone()).to_string(), + _AccountIdentifier::AccountHash(hash) => hash.to_formatted_string(), + } + } +} + +impl From for PublicKey { + fn from(account_identifier: AccountIdentifier) -> Self { + match account_identifier { + AccountIdentifier(_AccountIdentifier::PublicKey(key)) => key.into(), + _ => unimplemented!("Conversion not implemented for AccountIdentifier to Key"), + } + } +} + +impl From for _AccountIdentifier { + fn from(account_identifier: AccountIdentifier) -> Self { + account_identifier.0 + } +} + +impl From<_AccountIdentifier> for AccountIdentifier { + fn from(account_identifier: _AccountIdentifier) -> Self { + AccountIdentifier(account_identifier) + } +} + +impl From for AccountHash { + fn from(account_identifier: AccountIdentifier) -> Self { + match account_identifier { + AccountIdentifier(_AccountIdentifier::AccountHash(account_hash)) => account_hash.into(), + _ => unimplemented!("Conversion not implemented for AccountIdentifier to AccountHash"), + } + } +} + +impl From for AccountIdentifier { + fn from(key: PublicKey) -> Self { + AccountIdentifier(_AccountIdentifier::PublicKey(key.into())) + } +} + +impl From for AccountIdentifier { + fn from(account_hash: AccountHash) -> Self { + AccountIdentifier(_AccountIdentifier::AccountHash(account_hash.into())) + } +} diff --git a/src/types/addr/dictionary_addr.rs b/src/types/addr/dictionary_addr.rs new file mode 100644 index 000000000..749b90035 --- /dev/null +++ b/src/types/addr/dictionary_addr.rs @@ -0,0 +1,32 @@ +use crate::debug::error; +use casper_types::{DictionaryAddr as _DictionaryAddr, KEY_DICTIONARY_LENGTH}; +use wasm_bindgen::prelude::*; + +#[wasm_bindgen] +pub struct DictionaryAddr(_DictionaryAddr); + +#[wasm_bindgen] +impl DictionaryAddr { + #[wasm_bindgen(constructor)] + pub fn new(bytes: Vec) -> Result { + if bytes.len() != KEY_DICTIONARY_LENGTH { + error("Invalid DictionaryAddr length"); + return Err(JsValue::null()); + } + let mut array = [0u8; KEY_DICTIONARY_LENGTH]; + array.copy_from_slice(&bytes); + Ok(DictionaryAddr(array)) + } +} + +impl From for _DictionaryAddr { + fn from(dictionary_addr: DictionaryAddr) -> Self { + dictionary_addr.0 + } +} + +impl From<_DictionaryAddr> for DictionaryAddr { + fn from(dictionary_addr: _DictionaryAddr) -> Self { + DictionaryAddr(dictionary_addr) + } +} diff --git a/src/types/addr/hash_addr.rs b/src/types/addr/hash_addr.rs new file mode 100644 index 000000000..2051a35a9 --- /dev/null +++ b/src/types/addr/hash_addr.rs @@ -0,0 +1,32 @@ +use crate::debug::error; +use casper_types::{HashAddr as _HashAddr, KEY_HASH_LENGTH}; +use wasm_bindgen::prelude::*; + +#[wasm_bindgen] +pub struct HashAddr(_HashAddr); + +#[wasm_bindgen] +impl HashAddr { + #[wasm_bindgen(constructor)] + pub fn new(bytes: Vec) -> Result { + if bytes.len() != KEY_HASH_LENGTH { + error("Invalid HashAddr length"); + return Err(JsValue::null()); + } + let mut array = [0u8; KEY_HASH_LENGTH]; + array.copy_from_slice(&bytes); + Ok(HashAddr(array)) + } +} + +impl From for _HashAddr { + fn from(hash_addr: HashAddr) -> Self { + hash_addr.0 + } +} + +impl From<_HashAddr> for HashAddr { + fn from(hash_addr: _HashAddr) -> Self { + HashAddr(hash_addr) + } +} diff --git a/src/types/addr/mod.rs b/src/types/addr/mod.rs new file mode 100644 index 000000000..6932e2039 --- /dev/null +++ b/src/types/addr/mod.rs @@ -0,0 +1,4 @@ +pub mod dictionary_addr; +pub mod hash_addr; +pub mod transfer_addr; +pub mod uref_addr; diff --git a/src/types/addr/transfer_addr.rs b/src/types/addr/transfer_addr.rs new file mode 100644 index 000000000..d43c52c39 --- /dev/null +++ b/src/types/addr/transfer_addr.rs @@ -0,0 +1,43 @@ +//use casper_types::TransferAddr as _TransferAddr; +use crate::debug::error; +use casper_types::TRANSFER_ADDR_LENGTH; +use wasm_bindgen::prelude::*; + +// TODO Fix with TransferAddr as _TransferAddr, and [u8; 32] +#[wasm_bindgen] +pub struct TransferAddr([u8; TRANSFER_ADDR_LENGTH]); + +#[wasm_bindgen] +impl TransferAddr { + #[wasm_bindgen(constructor)] + pub fn new(bytes: Vec) -> Result { + if bytes.len() != TRANSFER_ADDR_LENGTH { + error("Invalid TransferAddr length"); + return Err(JsValue::null()); + } + let mut array = [0u8; TRANSFER_ADDR_LENGTH]; + array.copy_from_slice(&bytes); + Ok(TransferAddr(array)) + } +} + +impl From> for TransferAddr { + fn from(bytes: Vec) -> Self { + let mut array = [0u8; TRANSFER_ADDR_LENGTH]; + array.copy_from_slice(&bytes); + TransferAddr(array) + } +} + +// TODO cannot initialize a tuple struct which contains private fields +// Implement Into<_TransferAddr> for TransferAddr +// impl Into<_TransferAddr> for TransferAddr { +// fn into(self) -> _TransferAddr { +// _TransferAddr(self.0) +// } +// } + +#[wasm_bindgen(js_name = "fromTransfer")] +pub fn from_transfer(key: Vec) -> TransferAddr { + TransferAddr::from(key) +} diff --git a/src/types/addr/uref_addr.rs b/src/types/addr/uref_addr.rs new file mode 100644 index 000000000..1b86b8558 --- /dev/null +++ b/src/types/addr/uref_addr.rs @@ -0,0 +1,32 @@ +use crate::debug::error; +use casper_types::{URefAddr as _URefAddr, UREF_ADDR_LENGTH}; +use wasm_bindgen::prelude::*; + +#[wasm_bindgen] +pub struct URefAddr(_URefAddr); + +#[wasm_bindgen] +impl URefAddr { + #[wasm_bindgen(constructor)] + pub fn new(bytes: Vec) -> Result { + if bytes.len() != UREF_ADDR_LENGTH { + error("Invalid URefAddr length"); + return Err(JsValue::null()); + } + let mut array = [0u8; UREF_ADDR_LENGTH]; + array.copy_from_slice(&bytes); + Ok(URefAddr(array)) + } +} + +impl From for _URefAddr { + fn from(uref_addr: URefAddr) -> Self { + uref_addr.0 + } +} + +impl From<_URefAddr> for URefAddr { + fn from(uref_addr: _URefAddr) -> Self { + URefAddr(uref_addr) + } +} diff --git a/src/types/block_hash.rs b/src/types/block_hash.rs new file mode 100644 index 000000000..74c528bc7 --- /dev/null +++ b/src/types/block_hash.rs @@ -0,0 +1,67 @@ +use super::digest::Digest; +use crate::debug::error; +use casper_client::types::BlockHash as _BlockHash; +use casper_hashing::Digest as _Digest; +#[cfg(target_arch = "wasm32")] +use gloo_utils::format::JsValueSerdeExt; +use hex::decode; +use serde::{Deserialize, Serialize}; +use wasm_bindgen::prelude::*; + +#[wasm_bindgen] +#[derive(Debug, Deserialize, Clone, Serialize)] +pub struct BlockHash(_BlockHash); + +#[wasm_bindgen] +impl BlockHash { + #[wasm_bindgen(constructor)] + pub fn new(block_hash_hex_str: &str) -> Result { + let bytes = decode(block_hash_hex_str) + .map_err(|err| error(&format!("{:?}", err))) + .unwrap(); + let mut hash = [0u8; _Digest::LENGTH]; + hash.copy_from_slice(&bytes); + Self::from_digest(Digest::from(hash)) + } + + #[wasm_bindgen(js_name = "fromDigest")] + pub fn from_digest(digest: Digest) -> Result { + Ok(_BlockHash::new(digest.into()).into()) + } + + #[cfg(target_arch = "wasm32")] + #[wasm_bindgen(js_name = "toJson")] + pub fn to_json(&self) -> JsValue { + JsValue::from_serde(self).unwrap_or(JsValue::null()) + } + + #[cfg(target_arch = "wasm32")] + #[wasm_bindgen(js_name = "toString")] + pub fn to_string_js_alias(&self) -> String { + self.to_string() + } +} + +impl ToString for BlockHash { + fn to_string(&self) -> String { + hex::encode(self.0) + } +} + +impl From for _BlockHash { + fn from(block_hash: BlockHash) -> Self { + block_hash.0 + } +} + +impl From<_BlockHash> for BlockHash { + fn from(block_hash: _BlockHash) -> Self { + BlockHash(block_hash) + } +} + +impl From for BlockHash { + fn from(digest: Digest) -> Self { + _BlockHash::new(digest.into()).into() + } +} diff --git a/src/types/block_identifier.rs b/src/types/block_identifier.rs new file mode 100644 index 000000000..0895fc40e --- /dev/null +++ b/src/types/block_identifier.rs @@ -0,0 +1,51 @@ +use super::block_hash::BlockHash; +use casper_client::rpcs::common::BlockIdentifier as _BlockIdentifier; +#[cfg(target_arch = "wasm32")] +use gloo_utils::format::JsValueSerdeExt; +use serde::{Deserialize, Serialize}; +use wasm_bindgen::prelude::*; + +#[derive(Debug, Deserialize, Clone, Serialize, Copy)] +#[wasm_bindgen] +pub struct BlockIdentifier(_BlockIdentifier); + +#[wasm_bindgen] +impl BlockIdentifier { + #[wasm_bindgen(constructor)] + pub fn new(block_identifier: BlockIdentifier) -> BlockIdentifier { + block_identifier + } + + pub fn from_hash(hash: BlockHash) -> Self { + BlockIdentifier(_BlockIdentifier::Hash(hash.into())) + } + + #[wasm_bindgen(js_name = "fromHeight")] + pub fn from_height(height: u64) -> Self { + BlockIdentifier(_BlockIdentifier::Height(height)) + } + + #[cfg(target_arch = "wasm32")] + #[wasm_bindgen(js_name = "toJson")] + pub fn to_json(&self) -> JsValue { + JsValue::from_serde(self).unwrap_or(JsValue::null()) + } +} + +impl From for _BlockIdentifier { + fn from(block_identifier: BlockIdentifier) -> Self { + block_identifier.0 + } +} + +impl From<_BlockIdentifier> for BlockIdentifier { + fn from(block_identifier: _BlockIdentifier) -> Self { + BlockIdentifier(block_identifier) + } +} + +#[derive(Debug, Clone)] +pub enum BlockIdentifierInput { + BlockIdentifier(BlockIdentifier), + String(String), +} diff --git a/src/types/cl/bytes.rs b/src/types/cl/bytes.rs new file mode 100644 index 000000000..30d84b620 --- /dev/null +++ b/src/types/cl/bytes.rs @@ -0,0 +1,76 @@ +use casper_types::{bytesrepr::Bytes as _Bytes, CLType, CLTyped}; +use core::ops::Deref; +use wasm_bindgen::prelude::*; + +#[wasm_bindgen] +#[derive(Clone, Ord, PartialOrd, Eq, PartialEq, Debug, Default, Hash)] +pub struct Bytes(Vec); + +#[wasm_bindgen] +impl Bytes { + #[wasm_bindgen(constructor)] + pub fn new() -> Self { + Bytes(Vec::new()) + } + + #[wasm_bindgen(js_name = "fromUint8Array")] + pub fn from_uint8_array(uint8_array: js_sys::Uint8Array) -> Self { + let length = uint8_array.length() as usize; + let mut bytes_vec = Vec::with_capacity(length); + + for i in 0..length { + bytes_vec.push(uint8_array.get_index(i.try_into().unwrap())); + } + Self::from(bytes_vec) + } +} + +impl Deref for Bytes { + type Target = [u8]; + + fn deref(&self) -> &Self::Target { + self.0.deref() + } +} + +impl From> for Bytes { + fn from(vec: Vec) -> Self { + Bytes(vec) + } +} + +impl From for Vec { + fn from(bytes: Bytes) -> Self { + bytes.0 + } +} + +impl From<&[u8]> for Bytes { + fn from(bytes: &[u8]) -> Self { + Bytes(bytes.to_vec()) + } +} + +impl CLTyped for Bytes { + fn cl_type() -> CLType { + >::cl_type() + } +} + +impl From for _Bytes { + fn from(bytes: Bytes) -> Self { + _Bytes::from(bytes.0) + } +} + +impl From<_Bytes> for Bytes { + fn from(bytes: _Bytes) -> Self { + Bytes(bytes.into()) + } +} + +impl AsRef<[u8]> for Bytes { + fn as_ref(&self) -> &[u8] { + self.0.as_ref() + } +} diff --git a/src/types/cl/cl_type.rs b/src/types/cl/cl_type.rs new file mode 100644 index 000000000..108c0bac6 --- /dev/null +++ b/src/types/cl/cl_type.rs @@ -0,0 +1,188 @@ +// use casper_types::{ +// bytesrepr::{self, ToBytes}, +// CLTyped, CLValue as _CLValue, +// }; +// use wasm_bindgen::prelude::*; + +// #[wasm_bindgen] +// #[derive(Copy, Clone, Debug, Eq, PartialEq)] +// pub enum CLTypeEnum { +// Bool, +// I32, +// I64, +// U8, +// U32, +// U64, +// U128, +// U256, +// U512, +// Unit, +// String, +// Key, +// URef, +// PublicKey, +// Option, +// List, +// ByteArray, +// Result, +// Map, +// Tuple1, +// Tuple2, +// Tuple3, +// Any, +// } + +// #[derive(Clone, Debug)] +// #[wasm_bindgen] +// pub struct CLType(CLTypeEnum); + +// #[wasm_bindgen] +// impl CLType { +// #![allow(non_snake_case)] +// #[wasm_bindgen(js_name = "Bool")] +// pub fn Bool() -> Self { +// CLType(CLTypeEnum::Bool) +// } + +// #[wasm_bindgen(js_name = "I32")] +// pub fn I32() -> Self { +// CLType(CLTypeEnum::I32) +// } + +// #[wasm_bindgen(js_name = "I64")] +// pub fn I64() -> Self { +// CLType(CLTypeEnum::I64) +// } + +// #[wasm_bindgen(js_name = "U8")] +// pub fn U8() -> Self { +// CLType(CLTypeEnum::U8) +// } + +// #[wasm_bindgen(js_name = "U32")] +// pub fn U32() -> Self { +// CLType(CLTypeEnum::U32) +// } + +// #[wasm_bindgen(js_name = "U64")] +// pub fn U64() -> Self { +// CLType(CLTypeEnum::U64) +// } + +// #[wasm_bindgen(js_name = "U128")] +// pub fn U128() -> Self { +// CLType(CLTypeEnum::U128) +// } + +// #[wasm_bindgen(js_name = "U256")] +// pub fn U256() -> Self { +// CLType(CLTypeEnum::U256) +// } + +// #[wasm_bindgen(js_name = "U512")] +// pub fn U512() -> Self { +// CLType(CLTypeEnum::U512) +// } + +// #[wasm_bindgen(js_name = "Unit")] +// pub fn unit() -> Self { +// CLType(CLTypeEnum::Unit) +// } + +// #[wasm_bindgen(js_name = "String")] +// pub fn string() -> Self { +// CLType(CLTypeEnum::String) +// } + +// #[wasm_bindgen(js_name = "Key")] +// pub fn key() -> Self { +// CLType(CLTypeEnum::Key) +// } + +// #[wasm_bindgen(js_name = "URef")] +// pub fn uref() -> Self { +// CLType(CLTypeEnum::URef) +// } + +// #[wasm_bindgen(js_name = "PublicKey")] +// pub fn public_key() -> Self { +// CLType(CLTypeEnum::PublicKey) +// } + +// #[wasm_bindgen(js_name = "Option")] +// pub fn option() -> Self { +// CLType(CLTypeEnum::Option) +// } + +// #[wasm_bindgen(js_name = "List")] +// pub fn list() -> Self { +// CLType(CLTypeEnum::List) +// } + +// #[wasm_bindgen(js_name = "ByteArray")] +// pub fn byte_array() -> Self { +// CLType(CLTypeEnum::ByteArray) +// } + +// #[wasm_bindgen(js_name = "Result")] +// pub fn result() -> Self { +// CLType(CLTypeEnum::Result) +// } + +// #[wasm_bindgen(js_name = "Map")] +// pub fn map() -> Self { +// CLType(CLTypeEnum::Map) +// } + +// #[wasm_bindgen(js_name = "Tuple1")] +// pub fn tuple1() -> Self { +// CLType(CLTypeEnum::Tuple1) +// } + +// #[wasm_bindgen(js_name = "Tuple2")] +// pub fn tuple2() -> Self { +// CLType(CLTypeEnum::Tuple2) +// } + +// #[wasm_bindgen(js_name = "Tuple3")] +// pub fn tuple3() -> Self { +// CLType(CLTypeEnum::Tuple3) +// } + +// #[wasm_bindgen(js_name = "Any")] +// pub fn any() -> Self { +// CLType(CLTypeEnum::Any) +// } + +// #[wasm_bindgen(constructor)] +// pub fn new(cl_type: CLTypeEnum) -> Self { +// CLType(cl_type) +// } +// } + +// impl casper_types::CLTyped for CLType { +// fn cl_type() -> casper_types::CLType { +// casper_types::CLType::from(_CLValue::from_t(self.0).unwrap()) +// } +// } + +// impl ToBytes for CLType { +// fn to_bytes(&self) -> Result, bytesrepr::Error> { +// self.0.to_bytes() +// } + +// fn serialized_length(&self) -> usize { +// self.0.serialized_length() +// } + +// fn write_bytes(&self, bytes: &mut Vec) -> Result<(), bytesrepr::Error> { +// self.0.write_bytes(bytes) +// } +// } + +// impl FromBytes for CLType { +// fn from_bytes(bytes: &[u8]) -> Result<(Self, &[u8]), ByteSerializationError> { +// let (cl_enum, remainder) = CLTypeEnum::from_bytes(bytes)?; +// Ok((CLType(cl_enum), remainder)) +// } +// } diff --git a/src/types/cl/cl_value.rs b/src/types/cl/cl_value.rs new file mode 100644 index 000000000..7e29a26a8 --- /dev/null +++ b/src/types/cl/cl_value.rs @@ -0,0 +1,98 @@ +// use super::{ +// bytes::{self, Bytes}, +// cl_type::CLType, +// }; +// use crate::debug::error; +// use casper_types::{ +// bytesrepr::{FromBytes, ToBytes}, +// CLTyped, CLValue as _CLValue, U128, +// }; +// use gloo_utils::format::JsValueSerdeExt; +// use wasm_bindgen::prelude::*; + +// #[wasm_bindgen] +// #[derive(Clone, Debug)] +// pub struct CLValue { +// cl_type: CLType, +// bytes: Bytes, +// } + +// impl Into<_CLValue> for CLValue { +// fn into(self) -> _CLValue { +// _CLValue::from_t((self.cl_type, self.bytes)).unwrap() +// } +// } + +// #[wasm_bindgen] +// impl CLValue { +// #[wasm_bindgen(constructor)] +// pub fn new(cl_type: CLType, bytes: Bytes) -> Self { +// CLValue { cl_type, bytes } +// } + +// pub fn Bool(value: bool) -> Result { +// let cl_value = _CLValue::from_t(value) +// .map_err(|err| JsValue::from_str(&format!("Failed to create CLValue: {:?}", err)))?; +// Ok(cl_value.into()) +// } + +// pub fn I32(value: i32) -> Result { +// let cl_value = _CLValue::from_t(value) +// .map_err(|err| JsValue::from_str(&format!("Failed to create CLValue: {:?}", err)))?; +// let bytes = cl_value +// .into_bytes() +// .map_err(|err| JsValue::from_str(&format!("Failed to serialize CLValue: {:?}", err)))?; +// Ok(CLValue::new(CLType::I32(), bytes.into())) +// } + +// pub fn U32(value: u32) -> Result { +// let cl_value = _CLValue::from_t(value) +// .map_err(|err| JsValue::from_str(&format!("Failed to create CLValue: {:?}", err)))?; +// let bytes = cl_value +// .into_bytes() +// .map_err(|err| JsValue::from_str(&format!("Failed to serialize CLValue: {:?}", err)))?; +// Ok(CLValue::new(CLType::U32(), bytes.into())) +// } + +// pub fn U64(value: u64) -> Result { +// let cl_value = _CLValue::from_t(value) +// .map_err(|err| JsValue::from_str(&format!("Failed to create CLValue: {:?}", err)))?; +// let bytes = cl_value +// .into_bytes() +// .map_err(|err| JsValue::from_str(&format!("Failed to serialize CLValue: {:?}", err)))?; +// Ok(CLValue::new(CLType::U64(), bytes.into())) +// } + +// pub fn U128(value: JsValue) -> Result { +// // Deserialize JsValue into u128 +// let value_as_u128: U128 = value +// .into_serde() +// .map_err(|err| JsValue::from_str(&format!("Failed to deserialize u128: {:?}", err)))?; + +// // Create _CLValue from the u128 +// let cl_value = _CLValue::from_t(value_as_u128) +// .map_err(|err| JsValue::from_str(&format!("Failed to create CLValue: {:?}", err)))?; + +// // Serialize _CLValue into bytes +// let bytes = cl_value +// .into_bytes() +// .map_err(|err| JsValue::from_str(&format!("Failed to serialize CLValue: {:?}", err)))?; + +// // Create CLValue with u128 CLType and bytes +// Ok(CLValue::new(CLType::U128(), bytes.into())) +// } +// } + +// impl From for _CLValue { +// fn from(cl_value: CLValue) -> Self { +// let bytes = cl_value.bytes.inner_bytes_js().into(); +// _CLValue::from_t((cl_value.cl_type, bytes)).unwrap() +// } +// } +// impl From<_CLValue> for CLValue { +// fn from(cl_value: _CLValue) -> Self { +// let (cl_type, bytes): (CLType, Vec) = cl_value.into(); +// let bytes = Bytes::from(bytes); +// CLValue { cl_type, bytes } +// } +// } diff --git a/src/types/cl/mod.rs b/src/types/cl/mod.rs new file mode 100644 index 000000000..92e2c2078 --- /dev/null +++ b/src/types/cl/mod.rs @@ -0,0 +1,4 @@ +pub mod bytes; +// TODO see if we really need to re export cl values and types for result types coming from the client +// pub mod cl_type; +// pub mod cl_value; diff --git a/src/types/contract_hash.rs b/src/types/contract_hash.rs new file mode 100644 index 000000000..db0b88bb6 --- /dev/null +++ b/src/types/contract_hash.rs @@ -0,0 +1,78 @@ +use crate::debug::error; +use casper_types::{ + bytesrepr::{self, FromBytes, ToBytes, U8_SERIALIZED_LENGTH}, + ContractHash as _ContractHash, +}; +use wasm_bindgen::prelude::*; + +#[wasm_bindgen] +#[derive(Debug)] +pub struct ContractHash(_ContractHash); + +#[wasm_bindgen] +impl ContractHash { + #[wasm_bindgen(constructor)] + #[wasm_bindgen(js_name = "fromString")] + pub fn new(input: &str) -> Result { + let prefixed_input = format!("contract-{}", input); + ContractHash::from_formatted_str(&prefixed_input) + } + + #[wasm_bindgen(js_name = "fromFormattedStr")] + pub fn from_formatted_str(input: &str) -> Result { + let contract_hash = _ContractHash::from_formatted_str(input) + .map_err(|err| { + error(&format!( + "Failed to parse ContractHash from formatted string: {:?}", + err + )) + }) + .unwrap(); + Ok(ContractHash(contract_hash)) + } + + #[wasm_bindgen(js_name = "toFormattedString")] + pub fn to_formatted_string(&self) -> String { + self.0.to_formatted_string() + } + + #[wasm_bindgen(js_name = "fromUint8Array")] + pub fn from_bytes(bytes: Vec) -> ContractHash { + let contract_hash = + _ContractHash::try_from(&bytes).expect("Failed to convert bytes to ContractHash"); + ContractHash(contract_hash) + } +} + +impl From for _ContractHash { + fn from(contract_hash: ContractHash) -> Self { + contract_hash.0 + } +} + +impl From<_ContractHash> for ContractHash { + fn from(contract_hash: _ContractHash) -> Self { + ContractHash(contract_hash) + } +} + +impl FromBytes for ContractHash { + fn from_bytes(bytes: &[u8]) -> Result<(Self, &[u8]), bytesrepr::Error> { + let (contract_hash, remainder) = _ContractHash::from_bytes(bytes)?; + Ok((ContractHash(contract_hash), remainder)) + } +} + +impl ToBytes for ContractHash { + fn to_bytes(&self) -> Result, bytesrepr::Error> { + self.0.to_bytes() + } + + fn serialized_length(&self) -> usize { + U8_SERIALIZED_LENGTH + self.0.value().len() * U8_SERIALIZED_LENGTH + } + + fn write_bytes(&self, bytes: &mut Vec) -> Result<(), bytesrepr::Error> { + self.0.write_bytes(bytes) + } +} diff --git a/src/types/contract_package_hash.rs b/src/types/contract_package_hash.rs new file mode 100644 index 000000000..0862122c6 --- /dev/null +++ b/src/types/contract_package_hash.rs @@ -0,0 +1,79 @@ +use casper_types::{ + bytesrepr::{self, FromBytes, ToBytes, U8_SERIALIZED_LENGTH}, + ContractPackageHash as _ContractPackageHash, +}; +use wasm_bindgen::prelude::*; + +use crate::debug::error; + +#[wasm_bindgen] +#[derive(Debug)] +pub struct ContractPackageHash(_ContractPackageHash); + +#[wasm_bindgen] +impl ContractPackageHash { + #[wasm_bindgen(constructor)] + #[wasm_bindgen(js_name = "fromString")] + pub fn new(input: &str) -> Result { + let prefixed_input = format!("contract-package-{}", input); + ContractPackageHash::from_formatted_str(&prefixed_input) + } + + #[wasm_bindgen(js_name = "fromFormattedStr")] + pub fn from_formatted_str(input: &str) -> Result { + let contract_package_hash = _ContractPackageHash::from_formatted_str(input) + .map_err(|err| { + error(&format!( + "Failed to parse ContractPackageHash from formatted string: {:?}", + err + )) + }) + .unwrap(); + Ok(ContractPackageHash(contract_package_hash)) + } + + #[wasm_bindgen(js_name = "toFormattedString")] + pub fn to_formatted_string(&self) -> String { + self.0.to_formatted_string() + } + + #[wasm_bindgen(js_name = "fromUint8Array")] + pub fn from_bytes(bytes: Vec) -> ContractPackageHash { + let contract_package_hash = _ContractPackageHash::try_from(&bytes) + .expect("Failed to convert bytes to ContractPackageHash"); + ContractPackageHash(contract_package_hash) + } +} + +impl From for _ContractPackageHash { + fn from(contract_package_hash: ContractPackageHash) -> Self { + contract_package_hash.0 + } +} + +impl From<_ContractPackageHash> for ContractPackageHash { + fn from(contract_package_hash: _ContractPackageHash) -> Self { + ContractPackageHash(contract_package_hash) + } +} + +impl FromBytes for ContractPackageHash { + fn from_bytes(bytes: &[u8]) -> Result<(Self, &[u8]), bytesrepr::Error> { + let (contract_package_hash, remainder) = _ContractPackageHash::from_bytes(bytes)?; + Ok((ContractPackageHash(contract_package_hash), remainder)) + } +} + +impl ToBytes for ContractPackageHash { + fn to_bytes(&self) -> Result, bytesrepr::Error> { + self.0.to_bytes() + } + + fn serialized_length(&self) -> usize { + U8_SERIALIZED_LENGTH + self.0.value().len() * U8_SERIALIZED_LENGTH + } + + fn write_bytes(&self, bytes: &mut Vec) -> Result<(), bytesrepr::Error> { + self.0.write_bytes(bytes) + } +} diff --git a/src/types/deploy.rs b/src/types/deploy.rs new file mode 100644 index 000000000..012d24afc --- /dev/null +++ b/src/types/deploy.rs @@ -0,0 +1,728 @@ +use super::{ + cl::bytes::Bytes, + contract_hash::ContractHash, + contract_package_hash::ContractPackageHash, + deploy_params::{ + deploy_str_params::DeployStrParams, payment_str_params::PaymentStrParams, + session_str_params::SessionStrParams, + }, + public_key::PublicKey, +}; +use crate::{ + debug::error, + helpers::{ + get_current_timestamp, get_ttl_or_default, insert_arg, parse_timestamp, parse_ttl, + secret_key_from_pem, + }, + make_deploy, make_transfer, +}; +use casper_client::types::{TimeDiff, Timestamp, MAX_SERIALIZED_SIZE_OF_DEPLOY}; +use casper_types::{bytesrepr::Bytes as _Bytes, RuntimeArgs, SecretKey, U512}; + +#[cfg(target_arch = "wasm32")] +use crate::helpers::insert_js_value_arg; +use casper_client::types::{Deploy as _Deploy, DeployBuilder, ExecutableDeployItem}; +#[cfg(target_arch = "wasm32")] +use gloo_utils::format::JsValueSerdeExt; +use serde::{Deserialize, Serialize}; +use wasm_bindgen::prelude::*; + +#[derive(Debug, Deserialize, Clone, Serialize)] +#[wasm_bindgen] +pub struct Deploy(_Deploy); + +#[derive(Default)] +struct BuildParams { + secret_key: Option, + chain_name: Option, + ttl: Option, + timestamp: Option, + session: Option, + payment: Option, + account: Option, +} + +#[wasm_bindgen] +impl Deploy { + #[cfg(target_arch = "wasm32")] + #[wasm_bindgen(constructor)] + pub fn new(deploy: JsValue) -> Deploy { + let deploy: _Deploy = deploy + .into_serde() + .map_err(|err| error(&format!("Failed to deserialize Deploy: {:?}", err))) + .unwrap(); + let deploy = match deploy.is_valid_size(MAX_SERIALIZED_SIZE_OF_DEPLOY) { + Ok(()) => deploy, + Err(err) => { + error(&format!("Deploy has not a valid size: {:?}", err)); + deploy + } + }; + deploy.into() + } + + #[cfg(target_arch = "wasm32")] + #[wasm_bindgen(js_name = "toJson")] + pub fn to_json_js_alias(&self) -> JsValue { + match JsValue::from_serde(&self.0) { + Ok(json) => json, + Err(err) => { + error(&format!("Error serializing data to JSON: {:?}", err)); + JsValue::null() + } + } + } + + // static context + #[wasm_bindgen(js_name = "withPaymentAndSession")] + pub fn with_payment_and_session( + deploy_params: DeployStrParams, + session_params: SessionStrParams, + payment_params: PaymentStrParams, + ) -> Result { + make_deploy(deploy_params, session_params, payment_params) + .map(Into::into) + .map_err(|err| { + let err_msg = format!("Error creating session deploy: {}", err); + error(&err_msg); + err_msg + }) + } + + // static context + #[wasm_bindgen(js_name = "withTransfer")] + pub fn with_transfer( + amount: &str, + target_account: &str, + transfer_id: Option, + deploy_params: DeployStrParams, + payment_params: PaymentStrParams, + ) -> Result { + make_transfer( + amount, + target_account, + transfer_id, + deploy_params, + payment_params, + ) + .map(Into::into) + .map_err(|err| format!("Error creating transfer deploy: {}", err)) + } + + #[wasm_bindgen(js_name = "withTTL")] + pub fn with_ttl(&self, ttl: &str, secret_key: Option) -> Deploy { + let mut ttl = parse_ttl(ttl); + if let Err(err) = &ttl { + error(&format!("Error parsing TTL: {}", err)); + ttl = parse_ttl(&get_ttl_or_default(None)); + } + self.build(BuildParams { + secret_key, + ttl: Some(ttl.unwrap()), + ..Default::default() + }) + } + + #[wasm_bindgen(js_name = "withTimestamp")] + pub fn with_timestamp(&self, timestamp: &str, secret_key: Option) -> Deploy { + let mut timestamp = parse_timestamp(timestamp); + if let Err(err) = ×tamp { + error(&format!("Error parsing Timestamp: {}", err)); + timestamp = parse_timestamp(&get_current_timestamp(None)); + } + self.build(BuildParams { + secret_key, + timestamp: Some(timestamp.unwrap()), + ..Default::default() + }) + } + + #[wasm_bindgen(js_name = "withChainName")] + pub fn with_chain_name(&self, chain_name: &str, secret_key: Option) -> Deploy { + self.build(BuildParams { + secret_key, + chain_name: Some(chain_name.to_string()), + ..Default::default() + }) + } + + #[wasm_bindgen(js_name = "withAccount")] + pub fn with_account(&self, account: PublicKey, secret_key: Option) -> Deploy { + self.build(BuildParams { + secret_key, + account: account.into(), + ..Default::default() + }) + } + + #[wasm_bindgen(js_name = "withEntryPointName")] + pub fn with_entry_point_name( + &self, + entry_point_name: &str, + secret_key: Option, + ) -> Deploy { + let deploy = self.0.clone(); + let session = deploy.session(); + + self.build(BuildParams { + secret_key, + session: Some(modify_session( + session, + NewSessionParams { + new_entry_point: Some(entry_point_name.to_string()), + ..Default::default() + }, + )), + ..Default::default() + }) + } + + #[wasm_bindgen(js_name = "withHash")] + pub fn with_hash(&self, hash: ContractHash, secret_key: Option) -> Deploy { + let deploy = self.0.clone(); + let session = deploy.session(); + + self.build(BuildParams { + secret_key, + session: Some(modify_session( + session, + NewSessionParams { + new_hash: Some(hash), + ..Default::default() + }, + )), + ..Default::default() + }) + } + + #[wasm_bindgen(js_name = "withPackageHash")] + pub fn with_package_hash( + &self, + package_hash: ContractPackageHash, + secret_key: Option, + ) -> Deploy { + let deploy = self.0.clone(); + let session = deploy.session(); + + self.build(BuildParams { + secret_key, + session: Some(modify_session( + session, + NewSessionParams { + new_package_hash: Some(package_hash), + ..Default::default() + }, + )), + ..Default::default() + }) + } + + #[wasm_bindgen(js_name = "withModuleBytes")] + pub fn with_module_bytes(&self, module_bytes: Bytes, secret_key: Option) -> Deploy { + let deploy = self.0.clone(); + let session = deploy.session(); + + self.build(BuildParams { + secret_key, + session: Some(modify_session( + session, + NewSessionParams { + new_module_bytes: Some(&module_bytes), + ..Default::default() + }, + )), + ..Default::default() + }) + } + + #[wasm_bindgen(js_name = "withSecretKey")] + pub fn with_secret_key(&self, secret_key: Option) -> Deploy { + self.build(BuildParams { + secret_key, + ..Default::default() + }) + } + + #[wasm_bindgen(js_name = "withStandardPayment")] + pub fn with_standard_payment(&self, amount: &str, secret_key: Option) -> Deploy { + let cloned_amount = amount.to_string(); + let amount = U512::from_dec_str(&cloned_amount); + if let Err(err) = amount { + error(&format!("Error converting amount: {:?}", err)); + return self.0.clone().into(); + } + self.build(BuildParams { + secret_key, + payment: Some(ExecutableDeployItem::new_standard_payment(amount.unwrap())), + ..Default::default() + }) + } + + // Load payment from json + #[cfg(target_arch = "wasm32")] + #[wasm_bindgen(js_name = "withPayment")] + pub fn with_payment(&self, payment: JsValue, secret_key: Option) -> Deploy { + let payment_item_result = payment.into_serde(); + + match payment_item_result { + Ok(payment_item) => self.build(BuildParams { + secret_key, + payment: Some(payment_item), + ..Default::default() + }), + Err(err) => { + error(&format!("Error parsing payment: {}", err)); + self.0.clone().into() + } + } + } + + // Load session from json + #[cfg(target_arch = "wasm32")] + #[wasm_bindgen(js_name = "withSession")] + pub fn with_session(&self, session: JsValue, secret_key: Option) -> Deploy { + let session_item_result = session.into_serde(); + + match session_item_result { + Ok(session_item) => self.build(BuildParams { + secret_key, + session: Some(session_item), + ..Default::default() + }), + Err(err) => { + error(&format!("Error parsing session: {}", err)); + self.0.clone().into() + } + } + } + + #[wasm_bindgen(js_name = "validateDeploySize")] + pub fn validate_deploy_size(&self) -> bool { + let deploy: _Deploy = self.0.clone(); + match deploy.is_valid_size(MAX_SERIALIZED_SIZE_OF_DEPLOY) { + Ok(()) => true, + Err(err) => { + error(&format!("Deploy has not a valid size: {:?}", err)); + false + } + } + } + + // #[wasm_bindgen(js_name = "isValid")] + // pub fn is_valid(&self) -> bool { + // let deploy: _Deploy = self.0.clone(); + // match deploy.is_valid() { + // Ok(()) => true, + // Err(err) => { + // error(&format!("Deploy is not valid: {:?}", err)); + // false + // } + // } + // } + + // #[wasm_bindgen(js_name = "hasValidHash")] + // pub fn has_valid_hash(&self) -> bool { + // let deploy: _Deploy = self.0.clone(); + // match deploy.has_valid_hash() { + // Ok(()) => true, + // Err(err) => { + // error(&format!("Deploy has not a valid hash: {:?}", err)); + // false + // } + // } + // } + + // #[wasm_bindgen(js_name = "isExpired")] + // pub fn expired(&self) -> bool { + // let deploy: _Deploy = self.0.clone(); + // let now: DateTime = Utc::now(); + // let now_millis = now.timestamp_millis() as u64; + // let timestamp = Timestamp::from(now_millis); + // match deploy.expired(timestamp) { + // false => false, + // true => { + // error("Deploy has expired"); + // true + // } + // } + // } + + #[wasm_bindgen(js_name = "sign")] + pub fn sign(&mut self, secret_key: &str) -> Deploy { + let mut deploy: _Deploy = self.0.clone(); + let secret_key_from_pem = secret_key_from_pem(secret_key); + if let Err(err) = secret_key_from_pem { + error(&format!("Error loading secret key: {:?}", err)); + return deploy.into(); + } + deploy.sign(&secret_key_from_pem.unwrap()); + if let Err(err) = deploy.is_valid_size(MAX_SERIALIZED_SIZE_OF_DEPLOY) { + error(&format!("Deploy has not a valid size: {:?}", err)); + } + deploy.into() + } + + // #[wasm_bindgen(js_name = "footprint")] + // pub fn footprint_js_alias(&self) -> JsValue { + // match JsValue::from_serde(&self.footprint()) { + // Ok(json) => json, + // Err(err) => { + // error(&format!("Error serializing footprint to JSON: {:?}", err)); + // JsValue::null() + // } + // } + // } + + // #[wasm_bindgen(js_name = "approvalsHash")] + // pub fn compute_approvals_hash_js_alias(&self) -> JsValue { + // match JsValue::from_serde(&self.compute_approvals_hash()) { + // Ok(json) => json, + // Err(err) => { + // error(&format!( + // "Error serializing compute_approvals_hash to JSON: {:?}", + // err + // )); + // JsValue::null() + // } + // } + // } + + // #[wasm_bindgen(js_name = "isTransfer")] + // pub fn is_transfer(&self) -> bool { + // self.0.clone().session().is_transfer() + // } + + // #[wasm_bindgen(js_name = "isStandardPayment")] + // pub fn is_standard_payment(&self, phase: u8) -> bool { + // if let Some(phase_enum) = Phase::from_u8(phase) { + // self.0.clone().session().is_standard_payment(phase_enum) + // } else { + // false + // } + // } + + // #[wasm_bindgen(js_name = "isStoredContract")] + // pub fn is_stored_contract(&self) -> bool { + // self.0.clone().session().is_stored_contract() + // } + + // #[wasm_bindgen(js_name = "isStoredContractPackage")] + // pub fn is_stored_contract_package(&self) -> bool { + // self.0.clone().session().is_stored_contract_package() + // } + + // #[wasm_bindgen(js_name = "isModuleBytes")] + // pub fn is_module_bytes(&self) -> bool { + // self.0.clone().session().is_module_bytes() + // } + + // #[wasm_bindgen(js_name = "isByName")] + // pub fn is_by_name(&self) -> bool { + // self.0.clone().session().is_by_name() + // } + + // #[wasm_bindgen(js_name = "byName")] + // pub fn by_name(&self) -> Option { + // self.0.clone().session().by_name() + // } + + // #[wasm_bindgen(js_name = "entryPointName")] + // pub fn entry_point_name(&self) -> String { + // self.0.clone().session().entry_point_name().to_string() + // } + + #[wasm_bindgen(js_name = "TTL")] + pub fn ttl(&self) -> String { + self.0.clone().header().ttl().to_string() + } + + #[wasm_bindgen(js_name = "timestamp")] + pub fn timestamp(&self) -> String { + self.0.clone().header().timestamp().to_string() + } + + #[wasm_bindgen(js_name = "chainName")] + pub fn chain_name(&self) -> String { + self.0.clone().header().chain_name().to_string() + } + + #[wasm_bindgen(js_name = "account")] + pub fn account(&self) -> String { + let public_key: PublicKey = self.0.clone().header().account().clone().into(); + public_key.to_string() + } + + // #[wasm_bindgen(js_name = "paymentAmount")] + // pub fn payment_amount(&self, conv_rate: u64) -> String { + // self.0 + // .clone() + // .payment() + // .payment_amount(conv_rate) + // .unwrap() + // .to_string() + // } + + #[cfg(target_arch = "wasm32")] + #[wasm_bindgen(js_name = "args")] + pub fn args_js_alias(&self) -> JsValue { + match JsValue::from_serde(&self.args()) { + Ok(json) => json, + Err(err) => { + error(&format!("Error serializing args to JSON: {:?}", err)); + JsValue::null() + } + } + } + + #[cfg(target_arch = "wasm32")] + #[wasm_bindgen(js_name = "addArg")] + pub fn add_arg_js_alias( + &mut self, + js_value_arg: JsValue, + secret_key: Option, + ) -> Deploy { + let deploy = self.0.clone(); + let session = deploy.session(); + + let mut args = session.args().clone(); + let new_args = insert_js_value_arg(&mut args, js_value_arg); + let new_session = modify_session( + session, + NewSessionParams { + new_args: Some(new_args), + ..Default::default() + }, + ); + + self.build(BuildParams { + secret_key, + session: Some(new_session), + ..Default::default() + }) + } +} + +impl Deploy { + pub fn args(&self) -> RuntimeArgs { + self.0.clone().session().args().clone() + } + + pub fn add_arg(&mut self, new_value_arg: String, secret_key: Option) -> Deploy { + let deploy = self.0.clone(); + let session = deploy.session(); + + let mut args = session.args().clone(); + let new_args = insert_arg(&mut args, new_value_arg); + let new_session = modify_session( + session, + NewSessionParams { + new_args: Some(new_args), + ..Default::default() + }, + ); + + self.build(BuildParams { + secret_key, + session: Some(new_session), + ..Default::default() + }) + } + + pub fn to_json_string(&self) -> Result { + let result = serde_json::to_string(&self.0); + match result { + Ok(json) => Ok(json), + Err(err) => { + let err_msg = format!("Error serializing data to JSON: {:?}", err); + error(&err_msg); + Err(err_msg) + } + } + } + + // pub fn footprint(&self) -> DeployFootprint { + // let deploy: _Deploy = self.0.clone(); + // match deploy.footprint() { + // Ok(footprint) => footprint, + // Err(err) => { + // error(&format!("Error getting footprint: {:?}", err)); + // deploy.footprint().unwrap() + // } + // } + // } + + // pub fn compute_approvals_hash(&self) -> Result { + // let deploy: _Deploy = self.0.clone(); + // deploy.compute_approvals_hash() + // } + + fn build(&self, deploy_params: BuildParams) -> Deploy { + let BuildParams { + secret_key, + chain_name, + ttl, + timestamp, + session, + payment, + account, + } = deploy_params; + let deploy: _Deploy = self.0.clone(); + let chain_name = if let Some(chain_name) = chain_name { + chain_name + } else { + deploy.header().chain_name().into() + }; + let ttl = if let Some(ttl) = ttl { + ttl + } else { + deploy.header().ttl() + }; + let timestamp = if let Some(timestamp) = timestamp { + timestamp + } else { + deploy.header().timestamp() + }; + let session = if let Some(session) = session { + session + } else { + deploy.session().clone() + }; + let payment = if let Some(payment) = payment { + payment + } else { + deploy.payment().clone() + }; + let account = if let Some(account) = account { + account + } else { + deploy.header().account().clone().into() + }; + let mut deploy_builder = DeployBuilder::new(chain_name, session) + .with_account(account.into()) + .with_payment(payment) + .with_ttl(ttl) + .with_timestamp(timestamp); + + let secret_key_result = secret_key + .clone() + .map(|key| secret_key_from_pem(&key).unwrap()) + .unwrap_or_else(|| { + if secret_key.is_some() { + error("Error loading secret key"); + } + // Default will never be used in next if secret_key.is_some() + SecretKey::generate_ed25519().unwrap() + }); + if secret_key.is_some() { + deploy_builder = deploy_builder.with_secret_key(&secret_key_result); + } + let deploy = deploy_builder + .build() + .map_err(|err| error(&format!("Failed to build deploy: {:?}", err))) + .unwrap(); + + let deploy: Deploy = deploy.into(); + let _ = deploy.validate_deploy_size(); + deploy + } +} + +#[derive(Default)] +struct NewSessionParams<'a> { + new_args: Option<&'a RuntimeArgs>, + new_hash: Option, + new_package_hash: Option, + new_entry_point: Option, + new_name: Option, + new_version: Option, + new_module_bytes: Option<&'a Bytes>, +} + +fn modify_session( + session: &ExecutableDeployItem, + NewSessionParams { + new_args, + new_hash, + new_package_hash, + new_entry_point, + new_name, + new_version, + new_module_bytes, + }: NewSessionParams, +) -> ExecutableDeployItem { + match session { + ExecutableDeployItem::ModuleBytes { module_bytes, args } => { + let default: _Bytes = module_bytes.clone(); + let new_bytes = new_module_bytes.unwrap(); + let new: &Bytes = new_bytes; + let new_module_bytes: _Bytes = { + let new_bytes: _Bytes = _Bytes::from((*new).to_vec()); + if new_bytes.len() > 0 { + new_bytes + } else { + default + } + }; + + ExecutableDeployItem::ModuleBytes { + module_bytes: new_module_bytes, + args: new_args.cloned().unwrap_or_else(|| args.clone()), + } + } + ExecutableDeployItem::StoredContractByHash { + hash, + entry_point, + args, + } => ExecutableDeployItem::StoredContractByHash { + hash: new_hash.unwrap_or((*hash).into()).into(), + entry_point: new_entry_point.unwrap_or_else(|| entry_point.clone()), + args: new_args.cloned().unwrap_or_else(|| args.clone()), + }, + ExecutableDeployItem::StoredContractByName { + name, + entry_point, + args, + } => ExecutableDeployItem::StoredContractByName { + name: new_name.unwrap_or_else(|| name.clone()), + entry_point: new_entry_point.unwrap_or_else(|| entry_point.clone()), + args: new_args.cloned().unwrap_or_else(|| args.clone()), + }, + ExecutableDeployItem::StoredVersionedContractByHash { + hash, + version, + entry_point, + args, + } => ExecutableDeployItem::StoredVersionedContractByHash { + hash: new_package_hash.unwrap_or((*hash).into()).into(), + version: Some(new_version.unwrap_or(version.unwrap_or(1))), + entry_point: new_entry_point.unwrap_or_else(|| entry_point.clone()), + args: new_args.cloned().unwrap_or_else(|| args.clone()), + }, + ExecutableDeployItem::StoredVersionedContractByName { + name, + version, + entry_point, + args, + } => ExecutableDeployItem::StoredVersionedContractByName { + name: new_name.unwrap_or_else(|| name.clone()), + version: Some(new_version.unwrap_or(version.unwrap_or(1))), + entry_point: new_entry_point.unwrap_or_else(|| entry_point.clone()), + args: new_args.cloned().unwrap_or_else(|| args.clone()), + }, + ExecutableDeployItem::Transfer { args } => ExecutableDeployItem::Transfer { + args: new_args.cloned().unwrap_or_else(|| args.clone()), + }, + } +} + +impl From for _Deploy { + fn from(deploy: Deploy) -> Self { + deploy.0 + } +} + +impl From<_Deploy> for Deploy { + fn from(deploy: _Deploy) -> Self { + Deploy(deploy) + } +} diff --git a/src/types/deploy_hash.rs b/src/types/deploy_hash.rs new file mode 100644 index 000000000..b8ea9848b --- /dev/null +++ b/src/types/deploy_hash.rs @@ -0,0 +1,93 @@ +use super::digest::Digest; +use crate::debug::error; +use casper_hashing::Digest as _Digest; +use casper_types::{DeployHash as _DeployHash, DEPLOY_HASH_LENGTH}; +// Both Node and client exposes DeployHash +use casper_client::types::DeployHash as _DeployHashClient; +#[cfg(target_arch = "wasm32")] +use gloo_utils::format::JsValueSerdeExt; +use hex::decode; +use serde::{Deserialize, Serialize}; +use wasm_bindgen::prelude::*; + +#[derive(Debug, Deserialize, Clone, Serialize)] +#[wasm_bindgen] +pub struct DeployHash(_DeployHash); + +#[wasm_bindgen] +impl DeployHash { + #[wasm_bindgen(constructor)] + pub fn new(deploy_hash_hex_str: &str) -> Result { + let bytes = decode(deploy_hash_hex_str) + .map_err(|err| error(&format!("{:?}", err))) + .unwrap(); + let mut hash = [0u8; _Digest::LENGTH]; + hash.copy_from_slice(&bytes); + Self::from_digest(Digest::from(hash)) + } + + #[wasm_bindgen(js_name = "fromDigest")] + pub fn from_digest(digest: Digest) -> Result { + let mut hash_bytes = [0u8; DEPLOY_HASH_LENGTH]; + let digest_bytes: &[u8] = digest.as_ref(); + hash_bytes.copy_from_slice(&digest_bytes[..DEPLOY_HASH_LENGTH]); + Ok(_DeployHash::new(hash_bytes).into()) + } + + #[cfg(target_arch = "wasm32")] + #[wasm_bindgen(js_name = "toJson")] + pub fn to_json(&self) -> JsValue { + JsValue::from_serde(self).unwrap_or(JsValue::null()) + } + + #[cfg(target_arch = "wasm32")] + #[wasm_bindgen(js_name = "toString")] + pub fn to_string_js_alias(&self) -> String { + self.to_string() + } +} + +impl ToString for DeployHash { + fn to_string(&self) -> String { + hex::encode(self.0) + } +} + +impl From for _DeployHash { + fn from(deploy_hash: DeployHash) -> Self { + deploy_hash.0 + } +} + +impl From<_DeployHash> for DeployHash { + fn from(deploy_hash: _DeployHash) -> Self { + DeployHash(deploy_hash) + } +} + +impl From for DeployHash { + fn from(digest: Digest) -> Self { + let mut hash_bytes = [0u8; DEPLOY_HASH_LENGTH]; + let digest_bytes: &[u8] = digest.as_ref(); + hash_bytes.copy_from_slice(&digest_bytes[..DEPLOY_HASH_LENGTH]); + _DeployHash::new(hash_bytes).into() + } +} + +// Both Node and Client expose DeployHash but differently +impl From for _DeployHashClient { + fn from(deploy_hash: DeployHash) -> Self { + let mut bytes: [u8; DEPLOY_HASH_LENGTH] = [0; DEPLOY_HASH_LENGTH]; + bytes.copy_from_slice(deploy_hash.0.as_ref()); + let digest = Digest::from_digest(bytes.to_vec()).unwrap(); + _DeployHashClient::new(digest.into()) + } +} + +impl From<_DeployHashClient> for DeployHash { + fn from(deploy_hash: _DeployHashClient) -> Self { + let digest = deploy_hash.inner(); + let deploy_hash = _DeployHash::new(digest.into()); + DeployHash(deploy_hash) + } +} diff --git a/src/types/deploy_params/args_simple.rs b/src/types/deploy_params/args_simple.rs new file mode 100644 index 000000000..04aa55df4 --- /dev/null +++ b/src/types/deploy_params/args_simple.rs @@ -0,0 +1,56 @@ +use js_sys::Array; +use wasm_bindgen::prelude::*; + +#[wasm_bindgen] +#[derive(Default, Debug, Clone)] +pub struct ArgsSimple { + args: Vec, +} + +impl ArgsSimple { + pub fn new(args: JsValue) -> Self { + let args: Array = args.into(); + let args: Vec = args + .iter() + .map(|value| { + value + .as_string() + .unwrap_or_else(|| String::from("Invalid String")) + }) + .collect(); + + ArgsSimple { args } + } + + pub fn args(&self) -> &[String] { + &self.args + } +} + +impl From for Vec { + fn from(args: ArgsSimple) -> Self { + args.args + } +} + +impl From> for ArgsSimple { + fn from(args: Vec) -> Self { + ArgsSimple { args } + } +} + +impl FromIterator for ArgsSimple { + fn from_iter>(iter: I) -> Self { + let args: Vec = iter + .into_iter() + .map(|value| { + if let Some(str_value) = value.as_string() { + str_value + } else { + String::from("") + } + }) + .collect(); + ArgsSimple { args } + } +} diff --git a/src/types/deploy_params/deploy_str_params.rs b/src/types/deploy_params/deploy_str_params.rs new file mode 100644 index 000000000..47197dab7 --- /dev/null +++ b/src/types/deploy_params/deploy_str_params.rs @@ -0,0 +1,146 @@ +use crate::helpers::get_current_timestamp; +use crate::helpers::get_str_or_default; +use crate::helpers::get_ttl_or_default; +use casper_client::cli::DeployStrParams as _DeployStrParams; +use once_cell::sync::OnceCell; +use wasm_bindgen::prelude::*; + +#[wasm_bindgen] +#[derive(Debug, Clone)] +pub struct DeployStrParams { + secret_key: OnceCell, + timestamp: OnceCell, + ttl: OnceCell, + chain_name: OnceCell, + session_account: OnceCell, +} + +impl Default for DeployStrParams { + fn default() -> Self { + DeployStrParams { + secret_key: OnceCell::new(), + timestamp: OnceCell::new(), + ttl: OnceCell::new(), + chain_name: OnceCell::new(), + session_account: OnceCell::new(), + } + } +} + +#[wasm_bindgen] +impl DeployStrParams { + #[wasm_bindgen(constructor)] + pub fn new( + chain_name: &str, + session_account: &str, + secret_key: Option, + timestamp: Option, + ttl: Option, + ) -> Self { + let deploy_params = DeployStrParams::default(); + deploy_params.set_chain_name(chain_name); + deploy_params.set_session_account(session_account); + if let Some(secret_key) = secret_key { + deploy_params.set_secret_key(&secret_key); + }; + deploy_params.set_timestamp(timestamp); + deploy_params.set_ttl(ttl); + deploy_params + } + + // Getter and setter for secret_key field + #[wasm_bindgen(getter)] + pub fn secret_key(&self) -> Option { + self.secret_key.get().cloned() + } + + #[wasm_bindgen(setter)] + pub fn set_secret_key(&self, secret_key: &str) { + self.secret_key.set(secret_key.to_string()).unwrap(); + } + + // Getter and setter for timestamp field + #[wasm_bindgen(getter)] + pub fn timestamp(&self) -> Option { + self.timestamp.get().cloned() + } + + #[wasm_bindgen(setter)] + pub fn set_timestamp(&self, timestamp: Option) { + if let Some(mut timestamp) = timestamp { + if timestamp.is_empty() { + timestamp = get_current_timestamp(None); + } + self.timestamp.set(timestamp.to_string()).unwrap(); + } else { + let timestamp = get_current_timestamp(timestamp); + self.timestamp.set(timestamp).unwrap(); + }; + } + + #[wasm_bindgen(js_name = "setDefaultTimestamp")] + pub fn set_default_timestamp(&self) { + let current_timestamp = get_current_timestamp(None); + self.timestamp.set(current_timestamp).unwrap(); + } + + // Getter and setter for ttl field + #[wasm_bindgen(getter)] + pub fn ttl(&self) -> Option { + self.ttl.get().cloned() + } + + #[wasm_bindgen(setter)] + pub fn set_ttl(&self, ttl: Option) { + if let Some(mut ttl) = ttl { + if ttl.is_empty() { + ttl = get_ttl_or_default(None); + } + self.ttl.set(ttl.to_string()).unwrap(); + } else { + let ttl = get_ttl_or_default(ttl.as_deref()); + self.ttl.set(ttl).unwrap(); + }; + } + + #[wasm_bindgen(js_name = "setDefaultTTL")] + pub fn set_default_ttl(&self) { + let ttl = get_ttl_or_default(None); + self.ttl.set(ttl).unwrap(); + } + + // Getter and setter for chain_name field + #[wasm_bindgen(getter)] + pub fn chain_name(&self) -> Option { + self.chain_name.get().cloned() + } + + #[wasm_bindgen(setter)] + pub fn set_chain_name(&self, chain_name: &str) { + self.chain_name.set(chain_name.to_string()).unwrap(); + } + + // Getter and setter for session_account field + #[wasm_bindgen(getter)] + pub fn session_account(&self) -> Option { + self.session_account.get().cloned() + } + + #[wasm_bindgen(setter)] + pub fn set_session_account(&self, session_account: &str) { + self.session_account + .set(session_account.to_string()) + .unwrap(); + } +} + +// Convert DeployStrParams to casper_client::cli::DeployStrParams +pub fn deploy_str_params_to_casper_client(deploy_params: &DeployStrParams) -> _DeployStrParams<'_> { + _DeployStrParams { + secret_key: get_str_or_default(deploy_params.secret_key.get()), + timestamp: get_str_or_default(deploy_params.timestamp.get()), + ttl: get_str_or_default(deploy_params.ttl.get()), + chain_name: get_str_or_default(deploy_params.chain_name.get()), + session_account: get_str_or_default(deploy_params.session_account.get()), + } +} diff --git a/src/types/deploy_params/dictionary_item_str_params.rs b/src/types/deploy_params/dictionary_item_str_params.rs new file mode 100644 index 000000000..9563d381b --- /dev/null +++ b/src/types/deploy_params/dictionary_item_str_params.rs @@ -0,0 +1,235 @@ +use crate::{debug::error, helpers::get_str_or_default, types::sdk_error::SdkError}; +use casper_client::cli::DictionaryItemStrParams as _DictionaryItemStrParams; +use casper_types::URef; +#[cfg(target_arch = "wasm32")] +use gloo_utils::format::JsValueSerdeExt; +use once_cell::sync::OnceCell; +use serde::{de::Error as SerdeError, Deserialize, Serialize, Serializer}; +use wasm_bindgen::prelude::*; + +#[derive(Debug, Clone, Deserialize, Serialize)] +pub struct AccountNamedKey { + #[serde(serialize_with = "serialize_once_cell")] + #[serde(deserialize_with = "deserialize_once_cell")] + key: OnceCell, + #[serde(serialize_with = "serialize_once_cell")] + #[serde(deserialize_with = "deserialize_once_cell")] + dictionary_name: OnceCell, + #[serde(serialize_with = "serialize_once_cell")] + #[serde(deserialize_with = "deserialize_once_cell")] + dictionary_item_key: OnceCell, +} + +#[derive(Debug, Clone, Deserialize, Serialize)] +pub struct ContractNamedKey { + #[serde(serialize_with = "serialize_once_cell")] + #[serde(deserialize_with = "deserialize_once_cell")] + key: OnceCell, + #[serde(serialize_with = "serialize_once_cell")] + #[serde(deserialize_with = "deserialize_once_cell")] + dictionary_name: OnceCell, + #[serde(serialize_with = "serialize_once_cell")] + #[serde(deserialize_with = "deserialize_once_cell")] + dictionary_item_key: OnceCell, +} + +#[derive(Debug, Clone, Deserialize, Serialize)] +pub struct URefVariant { + #[serde(serialize_with = "serialize_once_cell")] + #[serde(deserialize_with = "deserialize_once_cell")] + seed_uref: OnceCell, + #[serde(serialize_with = "serialize_once_cell")] + #[serde(deserialize_with = "deserialize_once_cell")] + dictionary_item_key: OnceCell, +} + +#[derive(Debug, Clone, Deserialize, Serialize)] +pub struct DictionaryVariant { + #[serde(serialize_with = "serialize_once_cell")] + #[serde(deserialize_with = "deserialize_once_cell")] + value: OnceCell, +} + +fn deserialize_once_cell<'de, D>(deserializer: D) -> Result, D::Error> +where + D: serde::Deserializer<'de>, +{ + let value: String = Deserialize::deserialize(deserializer)?; + let cell = OnceCell::new(); + cell.set(value) + .map(|_| cell) + .map_err(|_| SerdeError::custom("Could not deser DictionaryItemStrParams")) +} + +fn serialize_once_cell(value: &OnceCell, serializer: S) -> Result +where + S: Serializer, +{ + let value_str = value.get().map(|s| s.as_str()).unwrap_or_default(); + serializer.serialize_str(value_str) +} + +#[wasm_bindgen] +#[derive(Debug, Clone, Deserialize, Serialize)] +pub struct DictionaryItemStrParams { + account_named_key: Option, + contract_named_key: Option, + uref: Option, + dictionary: Option, +} + +#[wasm_bindgen] +impl DictionaryItemStrParams { + #[wasm_bindgen(constructor)] + pub fn new() -> Self { + DictionaryItemStrParams { + account_named_key: None, + contract_named_key: None, + uref: None, + dictionary: None, + } + } + + #[wasm_bindgen(js_name = "setAccountNamedKey")] + pub fn set_account_named_key( + &mut self, + key: &str, + dictionary_name: &str, + dictionary_item_key: &str, + ) { + self.account_named_key = Some(AccountNamedKey { + key: OnceCell::new(), + dictionary_name: OnceCell::new(), + dictionary_item_key: OnceCell::new(), + }); + + if let Some(account_named_key) = &mut self.account_named_key { + let _ = account_named_key.key.set(key.to_string()); + let _ = account_named_key + .dictionary_name + .set(dictionary_name.to_string()); + let _ = account_named_key + .dictionary_item_key + .set(dictionary_item_key.to_string()); + } + } + + #[wasm_bindgen(js_name = "setContractNamedKey")] + pub fn set_contract_named_key( + &mut self, + key: &str, + dictionary_name: &str, + dictionary_item_key: &str, + ) { + self.contract_named_key = Some(ContractNamedKey { + key: OnceCell::new(), + dictionary_name: OnceCell::new(), + dictionary_item_key: OnceCell::new(), + }); + + if let Some(contract_named_key) = &mut self.contract_named_key { + let _ = contract_named_key.key.set(key.to_string()); + let _ = contract_named_key + .dictionary_name + .set(dictionary_name.to_string()); + let _ = contract_named_key + .dictionary_item_key + .set(dictionary_item_key.to_string()); + } + } + + #[wasm_bindgen(js_name = "setUref")] + pub fn set_uref(&mut self, seed_uref: &str, dictionary_item_key: &str) { + self.uref = Some(URefVariant { + seed_uref: OnceCell::new(), + dictionary_item_key: OnceCell::new(), + }); + if let Some(uref) = &mut self.uref { + let seed_uref = URef::from_formatted_str(seed_uref) + .map_err(|error| SdkError::FailedToParseURef { + context: "dictionary item uref", + error, + }) + .unwrap(); + uref.seed_uref.set(seed_uref.to_formatted_string()).unwrap(); + let _ = uref + .dictionary_item_key + .set(dictionary_item_key.to_string()); + } + } + + #[wasm_bindgen(js_name = "setDictionary")] + pub fn set_dictionary(&mut self, value: &str) { + self.dictionary = Some(DictionaryVariant { + value: OnceCell::new(), + }); + + if let Some(dictionary) = &mut self.dictionary { + let _ = dictionary.value.set(value.to_string()); + } + } + + #[cfg(target_arch = "wasm32")] + #[wasm_bindgen(js_name = "toJson")] + pub fn to_json(&self) -> JsValue { + JsValue::from_serde(self).unwrap_or(JsValue::null()) + } +} + +impl Default for DictionaryItemStrParams { + fn default() -> Self { + Self::new() + } +} + +impl DictionaryItemStrParams { + pub fn account_named_key(&self) -> Option { + self.account_named_key.clone() + } + pub fn contract_named_key(&self) -> Option { + self.contract_named_key.clone() + } + pub fn uref(&self) -> Option { + self.uref.clone() + } + pub fn dictionary(&self) -> Option { + self.dictionary.clone() + } +} + +pub fn dictionary_item_str_params_to_casper_client( + dictionary_item_params: &DictionaryItemStrParams, +) -> _DictionaryItemStrParams<'_> { + if let Some(account_named_key) = &dictionary_item_params.account_named_key { + let account_hash = get_str_or_default(account_named_key.key.get()); + let dictionary_name = get_str_or_default(account_named_key.dictionary_name.get()); + let dictionary_item_key = get_str_or_default(account_named_key.dictionary_item_key.get()); + _DictionaryItemStrParams::AccountNamedKey { + account_hash, + dictionary_name, + dictionary_item_key, + } + } else if let Some(contract_named_key) = &dictionary_item_params.contract_named_key { + let hash_addr = get_str_or_default(contract_named_key.key.get()); + let dictionary_name = get_str_or_default(contract_named_key.dictionary_name.get()); + let dictionary_item_key = get_str_or_default(contract_named_key.dictionary_item_key.get()); + return _DictionaryItemStrParams::ContractNamedKey { + hash_addr, + dictionary_name, + dictionary_item_key, + }; + } else if let Some(uref_variant) = &dictionary_item_params.uref { + let seed_uref = get_str_or_default(uref_variant.seed_uref.get()); + let dictionary_item_key = get_str_or_default(uref_variant.dictionary_item_key.get()); + return _DictionaryItemStrParams::URef { + seed_uref, + dictionary_item_key, + }; + } else if let Some(dictionary_variant) = &dictionary_item_params.dictionary { + let value = get_str_or_default(dictionary_variant.value.get()); + return _DictionaryItemStrParams::Dictionary(value); + } else { + error("Error converting dictionary_item_params"); + return _DictionaryItemStrParams::Dictionary(""); + } +} diff --git a/src/types/deploy_params/mod.rs b/src/types/deploy_params/mod.rs new file mode 100644 index 000000000..4847b5836 --- /dev/null +++ b/src/types/deploy_params/mod.rs @@ -0,0 +1,5 @@ +pub mod args_simple; +pub mod deploy_str_params; +pub mod dictionary_item_str_params; +pub mod payment_str_params; +pub mod session_str_params; diff --git a/src/types/deploy_params/payment_str_params.rs b/src/types/deploy_params/payment_str_params.rs new file mode 100644 index 000000000..b0e1bb03f --- /dev/null +++ b/src/types/deploy_params/payment_str_params.rs @@ -0,0 +1,261 @@ +use super::args_simple::ArgsSimple; +use crate::helpers::get_str_or_default; +use casper_client::cli::PaymentStrParams as _PaymentStrParams; +use js_sys::Array; +use once_cell::sync::OnceCell; +use wasm_bindgen::prelude::*; + +#[wasm_bindgen] +#[derive(Default, Debug, Clone)] +pub struct PaymentStrParams { + payment_amount: OnceCell, + payment_hash: OnceCell, + payment_name: OnceCell, + payment_package_hash: OnceCell, + payment_package_name: OnceCell, + payment_path: OnceCell, + payment_args_simple: OnceCell, + payment_args_json: OnceCell, + payment_args_complex: OnceCell, + payment_version: OnceCell, + payment_entry_point: OnceCell, +} + +#[wasm_bindgen] +impl PaymentStrParams { + #[allow(clippy::too_many_arguments)] + #[wasm_bindgen(constructor)] + pub fn new( + payment_amount: Option, + payment_hash: Option, + payment_name: Option, + payment_package_hash: Option, + payment_package_name: Option, + payment_path: Option, + payment_args_simple: Option, + payment_args_json: Option, + payment_args_complex: Option, + payment_version: Option, + payment_entry_point: Option, + ) -> Self { + let payment_params = PaymentStrParams::default(); + if let Some(payment_amount) = payment_amount { + payment_params.set_payment_amount(&payment_amount); + }; + if let Some(payment_hash) = payment_hash { + payment_params.set_payment_hash(&payment_hash); + }; + if let Some(payment_name) = payment_name { + payment_params.set_payment_name(&payment_name); + }; + if let Some(payment_package_hash) = payment_package_hash { + payment_params.set_payment_package_hash(&payment_package_hash); + }; + if let Some(payment_package_name) = payment_package_name { + payment_params.set_payment_package_name(&payment_package_name); + }; + if let Some(payment_path) = payment_path { + payment_params.set_payment_path(&payment_path); + }; + if let Some(payment_args_simple) = payment_args_simple { + payment_params.set_payment_args_simple(payment_args_simple); + }; + if let Some(payment_args_json) = payment_args_json { + payment_params.set_payment_args_json(&payment_args_json); + }; + if let Some(payment_args_complex) = payment_args_complex { + payment_params.set_payment_args_complex(&payment_args_complex); + }; + if let Some(payment_version) = payment_version { + payment_params.set_payment_version(&payment_version); + }; + if let Some(payment_entry_point) = payment_entry_point { + payment_params.set_payment_entry_point(&payment_entry_point); + }; + + payment_params + } + + #[wasm_bindgen(getter)] + pub fn payment_amount(&self) -> Option { + self.payment_amount.get().cloned() + } + + #[wasm_bindgen(setter)] + pub fn set_payment_amount(&self, payment_amount: &str) { + self.payment_amount.set(payment_amount.to_string()).unwrap(); + } + + #[wasm_bindgen(getter)] + pub fn payment_hash(&self) -> Option { + self.payment_hash.get().cloned() + } + + #[wasm_bindgen(setter)] + pub fn set_payment_hash(&self, payment_hash: &str) { + self.payment_hash.set(payment_hash.to_string()).unwrap(); + } + + #[wasm_bindgen(getter)] + pub fn payment_name(&self) -> Option { + self.payment_name.get().cloned() + } + + #[wasm_bindgen(setter)] + pub fn set_payment_name(&self, payment_name: &str) { + self.payment_name.set(payment_name.to_string()).unwrap(); + } + + #[wasm_bindgen(getter)] + pub fn payment_package_hash(&self) -> Option { + self.payment_package_hash.get().cloned() + } + + #[wasm_bindgen(setter)] + pub fn set_payment_package_hash(&self, payment_package_hash: &str) { + self.payment_package_hash + .set(payment_package_hash.to_string()) + .unwrap(); + } + + #[wasm_bindgen(getter)] + pub fn payment_package_name(&self) -> Option { + self.payment_package_name.get().cloned() + } + + #[wasm_bindgen(setter)] + pub fn set_payment_package_name(&self, payment_package_name: &str) { + self.payment_package_name + .set(payment_package_name.to_string()) + .unwrap(); + } + + #[wasm_bindgen(getter)] + pub fn payment_path(&self) -> Option { + self.payment_path.get().cloned() + } + + #[wasm_bindgen(setter)] + pub fn set_payment_path(&self, payment_path: &str) { + self.payment_path.set(payment_path.to_string()).unwrap(); + } + + #[wasm_bindgen(getter)] + pub fn payment_args_simple(&self) -> Option { + let args_simple = self.payment_args_simple.get()?; + let array: Array = args_simple.args().iter().map(JsValue::from).collect(); + Some(array) + } + + #[wasm_bindgen(setter)] + pub fn set_payment_args_simple(&self, payment_args_simple: Array) { + let args_simple: ArgsSimple = payment_args_simple.into_iter().collect(); + self.payment_args_simple.set(args_simple).unwrap(); + } + + #[wasm_bindgen(getter)] + pub fn payment_args_json(&self) -> Option { + self.payment_args_json.get().cloned() + } + + #[wasm_bindgen(setter)] + pub fn set_payment_args_json(&self, payment_args_json: &str) { + self.payment_args_json + .set(payment_args_json.to_string()) + .unwrap(); + } + + #[wasm_bindgen(getter)] + pub fn payment_args_complex(&self) -> Option { + self.payment_args_complex.get().cloned() + } + + #[wasm_bindgen(setter)] + pub fn set_payment_args_complex(&self, payment_args_complex: &str) { + self.payment_args_complex + .set(payment_args_complex.to_string()) + .unwrap(); + } + + #[wasm_bindgen(getter)] + pub fn payment_version(&self) -> Option { + self.payment_version.get().cloned() + } + + #[wasm_bindgen(setter)] + pub fn set_payment_version(&self, payment_version: &str) { + self.payment_version + .set(payment_version.to_string()) + .unwrap(); + } + + #[wasm_bindgen(getter)] + pub fn payment_entry_point(&self) -> Option { + self.payment_entry_point.get().cloned() + } + + #[wasm_bindgen(setter)] + pub fn set_payment_entry_point(&self, payment_entry_point: &str) { + self.payment_entry_point + .set(payment_entry_point.to_string()) + .unwrap(); + } +} + +// Convert PaymentStrParams to casper_client::cli::PaymentStrParams +pub fn payment_str_params_to_casper_client( + payment_params: &PaymentStrParams, +) -> _PaymentStrParams<'_> { + let payment_args_simple: Vec<&str> = payment_params + .payment_args_simple + .get() + .map_or_else(Vec::new, |args_simple| { + args_simple.args().iter().map(String::as_str).collect() + }); + + // Use the appropriate `with_` method based on available fields as PaymentStrParams is private + if let Some(payment_hash) = payment_params.payment_hash.get() { + return _PaymentStrParams::with_hash( + payment_hash.as_str(), + get_str_or_default(payment_params.payment_entry_point.get()), + payment_args_simple, + get_str_or_default(payment_params.payment_args_json.get()), + get_str_or_default(payment_params.payment_args_complex.get()), + ); + } + + if let Some(payment_name) = payment_params.payment_name.get() { + return _PaymentStrParams::with_name( + payment_name.as_str(), + get_str_or_default(payment_params.payment_entry_point.get()), + payment_args_simple, + get_str_or_default(payment_params.payment_args_json.get()), + get_str_or_default(payment_params.payment_args_complex.get()), + ); + } + + if let Some(payment_package_hash) = payment_params.payment_package_hash.get() { + return _PaymentStrParams::with_package_hash( + payment_package_hash.as_str(), + get_str_or_default(payment_params.payment_version.get()), + get_str_or_default(payment_params.payment_entry_point.get()), + payment_args_simple, + get_str_or_default(payment_params.payment_args_json.get()), + get_str_or_default(payment_params.payment_args_complex.get()), + ); + } + + if let Some(payment_package_name) = payment_params.payment_package_name.get() { + return _PaymentStrParams::with_package_name( + payment_package_name.as_str(), + get_str_or_default(payment_params.payment_version.get()), + get_str_or_default(payment_params.payment_entry_point.get()), + payment_args_simple, + get_str_or_default(payment_params.payment_args_json.get()), + get_str_or_default(payment_params.payment_args_complex.get()), + ); + } + + // Default to the Payment amount + _PaymentStrParams::with_amount(get_str_or_default(payment_params.payment_amount.get())) +} diff --git a/src/types/deploy_params/session_str_params.rs b/src/types/deploy_params/session_str_params.rs new file mode 100644 index 000000000..1351a13f0 --- /dev/null +++ b/src/types/deploy_params/session_str_params.rs @@ -0,0 +1,317 @@ +use super::args_simple::ArgsSimple; +use crate::{helpers::get_str_or_default, types::cl::bytes::Bytes}; +use casper_client::cli::SessionStrParams as _SessionStrParams; +use js_sys::Array; +use once_cell::sync::OnceCell; +use wasm_bindgen::prelude::*; + +#[wasm_bindgen] +#[derive(Default, Debug, Clone)] +pub struct SessionStrParams { + session_hash: OnceCell, + session_name: OnceCell, + session_package_hash: OnceCell, + session_package_name: OnceCell, + session_path: OnceCell, + session_bytes: OnceCell, + session_args_simple: OnceCell, + session_args_json: OnceCell, + session_args_complex: OnceCell, + session_version: OnceCell, + session_entry_point: OnceCell, + is_session_transfer: OnceCell, +} + +#[wasm_bindgen] +impl SessionStrParams { + #[wasm_bindgen(constructor)] + #[allow(clippy::too_many_arguments)] + pub fn new( + session_hash: Option, + session_name: Option, + session_package_hash: Option, + session_package_name: Option, + session_path: Option, + session_bytes: Option, + session_args_simple: Option, + session_args_json: Option, + session_args_complex: Option, + session_version: Option, + session_entry_point: Option, + is_session_transfer: Option, + ) -> Self { + let mut session_params = SessionStrParams::default(); + if let Some(session_hash) = session_hash { + session_params.set_session_hash(&session_hash); + }; + if let Some(session_name) = session_name { + session_params.set_session_name(&session_name); + }; + if let Some(session_package_hash) = session_package_hash { + session_params.set_session_package_hash(&session_package_hash); + }; + if let Some(session_package_name) = session_package_name { + session_params.set_session_package_name(&session_package_name); + }; + if let Some(session_path) = session_path { + session_params.set_session_path(&session_path); + }; + if let Some(session_bytes) = session_bytes { + session_params.set_session_bytes(session_bytes); + }; + if let Some(session_args_simple) = session_args_simple { + session_params.set_session_args_simple(session_args_simple); + }; + if let Some(session_args_json) = session_args_json { + session_params.set_session_args_json(&session_args_json); + }; + if let Some(session_args_complex) = session_args_complex { + session_params.set_session_args_complex(&session_args_complex); + }; + if let Some(session_version) = session_version { + session_params.set_session_version(&session_version); + }; + if let Some(session_entry_point) = session_entry_point { + session_params.set_session_entry_point(&session_entry_point); + }; + if let Some(is_session_transfer) = is_session_transfer { + session_params.set_is_session_transfer(is_session_transfer); + }; + + session_params + } + + // Getter and setter for session_hash field + #[wasm_bindgen(getter)] + pub fn session_hash(&self) -> Option { + self.session_hash.get().cloned() + } + + #[wasm_bindgen(setter)] + pub fn set_session_hash(&self, session_hash: &str) { + self.session_hash.set(session_hash.to_string()).unwrap(); + } + + // Getter and setter for session_name field + #[wasm_bindgen(getter)] + pub fn session_name(&self) -> Option { + self.session_name.get().cloned() + } + + #[wasm_bindgen(setter)] + pub fn set_session_name(&self, session_name: &str) { + self.session_name.set(session_name.to_string()).unwrap(); + } + + // Getter and setter for session_package_hash field + #[wasm_bindgen(getter)] + pub fn session_package_hash(&self) -> Option { + self.session_package_hash.get().cloned() + } + + #[wasm_bindgen(setter)] + pub fn set_session_package_hash(&self, session_package_hash: &str) { + self.session_package_hash + .set(session_package_hash.to_string()) + .unwrap(); + } + + // Getter and setter for session_package_name field + #[wasm_bindgen(getter)] + pub fn session_package_name(&self) -> Option { + self.session_package_name.get().cloned() + } + + #[wasm_bindgen(setter)] + pub fn set_session_package_name(&self, session_package_name: &str) { + self.session_package_name + .set(session_package_name.to_string()) + .unwrap(); + } + + // Getter and setter for session_path field + #[wasm_bindgen(getter)] + pub fn session_path(&self) -> Option { + self.session_path.get().cloned() + } + + #[wasm_bindgen(setter)] + pub fn set_session_path(&self, session_path: &str) { + self.session_path.set(session_path.to_string()).unwrap(); + } + + // Getter and setter for session_bytes field + #[wasm_bindgen(getter)] + pub fn session_bytes(&self) -> Option { + self.session_bytes.get().cloned() + } + + #[wasm_bindgen(setter)] + pub fn set_session_bytes(&self, session_bytes: Bytes) { + self.session_bytes.set(session_bytes).unwrap(); + } + + // Getter and setter for session_args_simple field + #[wasm_bindgen(getter)] + pub fn session_args_simple(&self) -> Option { + self.session_args_simple.get().cloned() + } + + #[wasm_bindgen(setter)] + pub fn set_session_args_simple(&mut self, session_args_simple: Array) { + let args: Vec = session_args_simple + .iter() + .map(|value| value.as_string().unwrap_or_default()) + .collect(); + self.set_session_args(args); + } + + // Getter and setter for session_args_json field + #[wasm_bindgen(getter)] + pub fn session_args_json(&self) -> Option { + self.session_args_json.get().cloned() + } + + #[wasm_bindgen(setter)] + pub fn set_session_args_json(&self, session_args_json: &str) { + self.session_args_json + .set(session_args_json.to_string()) + .unwrap(); + } + + // Getter and setter for session_args_complex field + #[wasm_bindgen(getter)] + pub fn session_args_complex(&self) -> Option { + self.session_args_complex.get().cloned() + } + + #[wasm_bindgen(setter)] + pub fn set_session_args_complex(&self, session_args_complex: &str) { + self.session_args_complex + .set(session_args_complex.to_string()) + .unwrap(); + } + + // Getter and setter for session_version field + #[wasm_bindgen(getter)] + pub fn session_version(&self) -> Option { + self.session_version.get().cloned() + } + + #[wasm_bindgen(setter)] + pub fn set_session_version(&self, session_version: &str) { + self.session_version + .set(session_version.to_string()) + .unwrap(); + } + + // Getter and setter for session_entry_point field + #[wasm_bindgen(getter)] + pub fn session_entry_point(&self) -> Option { + self.session_entry_point.get().cloned() + } + + #[wasm_bindgen(setter)] + pub fn set_session_entry_point(&self, session_entry_point: &str) { + self.session_entry_point + .set(session_entry_point.to_string()) + .unwrap(); + } + + // Getter and setter for is_session_transfer field + #[wasm_bindgen(getter)] + pub fn is_session_transfer(&self) -> Option { + self.is_session_transfer.get().cloned() + } + + #[wasm_bindgen(setter)] + pub fn set_is_session_transfer(&self, is_session_transfer: bool) { + self.is_session_transfer.set(is_session_transfer).unwrap(); + } +} + +impl SessionStrParams { + pub fn set_session_args(&mut self, session_args_simple: Vec) { + let args_simple = ArgsSimple::from(session_args_simple); + self.session_args_simple.set(args_simple).unwrap(); + } +} + +// Convert SessionStrParams to casper_client::cli::SessionStrParam +pub fn session_str_params_to_casper_client( + session_params: &SessionStrParams, +) -> _SessionStrParams<'_> { + let session_args_simple: Vec<&str> = session_params + .session_args_simple + .get() + .map_or_else(Vec::new, |args_simple| { + args_simple.args().iter().map(String::as_str).collect() + }); + + if let Some(session_path) = session_params.session_path.get() { + return _SessionStrParams::with_path( + session_path, + session_args_simple, + get_str_or_default(session_params.session_args_json.get()), + get_str_or_default(session_params.session_args_complex.get()), + ); + } + + if let Some(session_bytes) = session_params.session_bytes.get() { + return _SessionStrParams::with_bytes( + (*session_bytes).clone().into(), + session_args_simple, + get_str_or_default(session_params.session_args_json.get()), + get_str_or_default(session_params.session_args_complex.get()), + ); + } + + if let Some(session_hash) = session_params.session_hash.get() { + return _SessionStrParams::with_hash( + session_hash.as_str(), + get_str_or_default(session_params.session_entry_point.get()), + session_args_simple, + get_str_or_default(session_params.session_args_json.get()), + get_str_or_default(session_params.session_args_complex.get()), + ); + } + + if let Some(session_name) = session_params.session_name.get() { + return _SessionStrParams::with_name( + session_name.as_str(), + get_str_or_default(session_params.session_entry_point.get()), + session_args_simple, + get_str_or_default(session_params.session_args_json.get()), + get_str_or_default(session_params.session_args_complex.get()), + ); + } + + if let Some(session_package_hash) = session_params.session_package_hash.get() { + return _SessionStrParams::with_package_hash( + session_package_hash.as_str(), + get_str_or_default(session_params.session_version.get()), + get_str_or_default(session_params.session_entry_point.get()), + session_args_simple, + get_str_or_default(session_params.session_args_json.get()), + get_str_or_default(session_params.session_args_complex.get()), + ); + } + + if let Some(session_package_name) = session_params.session_package_name.get() { + return _SessionStrParams::with_package_name( + session_package_name.as_str(), + get_str_or_default(session_params.session_version.get()), + get_str_or_default(session_params.session_entry_point.get()), + session_args_simple, + get_str_or_default(session_params.session_args_json.get()), + get_str_or_default(session_params.session_args_complex.get()), + ); + } + + // Default to Transfer type of Deploy + _SessionStrParams::with_transfer( + session_args_simple, + get_str_or_default(session_params.session_args_json.get()), + get_str_or_default(session_params.session_args_complex.get()), + ) +} diff --git a/src/types/dictionary_item_identifier.rs b/src/types/dictionary_item_identifier.rs new file mode 100644 index 000000000..2b454908b --- /dev/null +++ b/src/types/dictionary_item_identifier.rs @@ -0,0 +1,131 @@ +use crate::debug::error; + +use super::key::Key; +use casper_client::rpcs::DictionaryItemIdentifier as _DictionaryItemIdentifier; +use casper_types::Key as _Key; +#[cfg(target_arch = "wasm32")] +use gloo_utils::format::JsValueSerdeExt; +use serde::{Deserialize, Serialize}; +use wasm_bindgen::prelude::*; + +#[derive(Debug, Deserialize, Clone, Serialize)] +#[wasm_bindgen] +pub struct DictionaryItemIdentifier(_DictionaryItemIdentifier); + +#[wasm_bindgen] +impl DictionaryItemIdentifier { + // static context + #[wasm_bindgen(js_name = "newFromAccountInfo")] + pub fn new_from_account_info( + account_hash: &str, + dictionary_name: &str, + dictionary_item_key: &str, + ) -> Result { + let key = Key::from_formatted_str(account_hash) + .map_err(|err| { + error(&format!( + "Failed to parse key from formatted string: {:?}", + err + )); + JsValue::null() + }) + .unwrap(); + + Ok(DictionaryItemIdentifier( + _DictionaryItemIdentifier::AccountNamedKey { + key: key.to_formatted_string(), + dictionary_name: dictionary_name.to_string(), + dictionary_item_key: dictionary_item_key.to_string(), + }, + )) + } + + // static context + #[wasm_bindgen(js_name = "newFromContractInfo")] + pub fn new_from_contract_info( + contract_addr: &str, + dictionary_name: &str, + dictionary_item_key: &str, + ) -> Result { + let key = Key::from_formatted_str(contract_addr) + .map_err(|err| { + error(&format!( + "Failed to parse key from formatted string: {:?}", + err + )); + JsValue::null() + }) + .unwrap(); + + Ok(DictionaryItemIdentifier( + _DictionaryItemIdentifier::ContractNamedKey { + key: key.to_formatted_string(), + dictionary_name: dictionary_name.to_string(), + dictionary_item_key: dictionary_item_key.to_string(), + }, + )) + } + + // static context + #[wasm_bindgen(js_name = "newFromSeedUref")] + pub fn new_from_seed_uref( + seed_uref: &str, + dictionary_item_key: &str, + ) -> Result { + let key: _Key = Key::from_formatted_str(seed_uref) + .map_err(|err| { + error(&format!( + "Failed to parse key from formatted string: {:?}", + err + )); + JsValue::null() + }) + .unwrap() + .into(); + + Ok(DictionaryItemIdentifier(_DictionaryItemIdentifier::URef { + seed_uref: *key.as_uref().ok_or_else(|| { + error("Key is not a URef"); + JsValue::null() + })?, + dictionary_item_key: dictionary_item_key.to_string(), + })) + } + + // static context + #[wasm_bindgen(js_name = "newFromDictionaryKey")] + pub fn new_from_dictionary_key( + dictionary_key: &str, + ) -> Result { + let _ = Key::from_formatted_str(dictionary_key) + .map_err(|err| { + error(&format!( + "Failed to parse key from formatted string: {:?}", + err + )); + JsValue::null() + }) + .unwrap(); + Ok(DictionaryItemIdentifier( + _DictionaryItemIdentifier::Dictionary(dictionary_key.to_string()), + )) + } + + #[cfg(target_arch = "wasm32")] + #[wasm_bindgen(js_name = "toJson")] + pub fn to_json(&self) -> JsValue { + JsValue::from_serde(self).unwrap_or(JsValue::null()) + } +} + +impl From for _DictionaryItemIdentifier { + fn from(dictionary_item_identifier: DictionaryItemIdentifier) -> Self { + dictionary_item_identifier.0 + } +} + +impl From<_DictionaryItemIdentifier> for DictionaryItemIdentifier { + fn from(identifier: _DictionaryItemIdentifier) -> Self { + DictionaryItemIdentifier(identifier) + } +} diff --git a/src/types/digest.rs b/src/types/digest.rs new file mode 100644 index 000000000..f81298131 --- /dev/null +++ b/src/types/digest.rs @@ -0,0 +1,165 @@ +use super::sdk_error::SdkError; +#[cfg(target_arch = "wasm32")] +use crate::debug::error; +use base16::DecodeError; +use casper_hashing::{Digest as _Digest, Error as DigestError}; +use casper_types::bytesrepr::{self, FromBytes, ToBytes}; +#[cfg(target_arch = "wasm32")] +use gloo_utils::format::JsValueSerdeExt; +use serde::{Deserialize, Serialize}; +use wasm_bindgen::prelude::*; + +#[derive(Debug, Clone, Deserialize, Serialize)] +#[wasm_bindgen] +pub struct Digest(_Digest); + +#[wasm_bindgen] +impl Digest { + #[wasm_bindgen(constructor)] + #[wasm_bindgen(js_name = "new")] + pub fn new_js_alias(digest_hex_str: &str) -> Result { + Self::from_string(digest_hex_str) + } + + #[wasm_bindgen(js_name = "fromString")] + pub fn from_string(digest_hex_str: &str) -> Result { + Ok(Digest::from(digest_hex_str)) + } + + #[cfg(target_arch = "wasm32")] + #[wasm_bindgen(js_name = "fromDigest")] + pub fn from_digest_js_alias(bytes: Vec) -> Result { + Self::from_digest(bytes).map_err(|err| { + error(&format!("Failed to parse digest from digest {}", err)); + JsValue::from_str(&format!("{:?}", err)) + }) + } + + #[cfg(target_arch = "wasm32")] + #[wasm_bindgen(js_name = "toJson")] + pub fn to_json(&self) -> JsValue { + JsValue::from_serde(self).unwrap_or(JsValue::null()) + } + + #[cfg(target_arch = "wasm32")] + #[wasm_bindgen(js_name = "toString")] + pub fn to_string_js_alias(&self) -> String { + self.to_string() + } +} + +impl Digest { + pub fn new(digest_hex_str: &str) -> Result { + Ok(Digest::from(digest_hex_str)) + } + + pub fn from_digest(bytes: Vec) -> Result { + let hex_string = hex::encode(bytes); + Ok(Digest::from(&hex_string[..])) + } +} + +impl AsRef<[u8]> for Digest { + fn as_ref(&self) -> &[u8] { + self.0.as_ref() + } +} + +impl ToString for Digest { + fn to_string(&self) -> String { + hex::encode(self.0) + } +} + +impl From for _Digest { + fn from(digest: Digest) -> Self { + digest.0 + } +} + +impl From<_Digest> for Digest { + fn from(digest: _Digest) -> Self { + Digest(digest) + } +} + +impl ToBytes for Digest { + fn to_bytes(&self) -> Result, bytesrepr::Error> { + self.0.to_bytes() + } + + fn serialized_length(&self) -> usize { + self.0.serialized_length() + } + + fn write_bytes(&self, bytes: &mut Vec) -> Result<(), bytesrepr::Error> { + self.0.write_bytes(bytes) + } +} + +impl FromBytes for Digest { + fn from_bytes(bytes: &[u8]) -> Result<(Self, &[u8]), bytesrepr::Error> { + _Digest::from_bytes(bytes).map(|(digest, remainder)| (Digest(digest), remainder)) + } +} + +impl From<[u8; _Digest::LENGTH]> for Digest { + fn from(bytes: [u8; _Digest::LENGTH]) -> Self { + let digest = _Digest::try_from(bytes).unwrap(); + Digest(digest) + } +} + +impl From<&str> for Digest { + fn from(s: &str) -> Self { + let bytes = hex::decode(s) + .map_err(|err| { + let context = format!("Decoding hex string {:?}", err); + let base16_err = DecodeError::InvalidByte { + byte: 0, // TODO Fix error + index: 0, // Set the index to 0 or a relevant value here + }; + let error = DigestError::Base16DecodeError(base16_err); + SdkError::FailedToParseDigest { context, error } + }) + .unwrap_or_default(); + + if bytes.len() != _Digest::LENGTH { + let context = "Invalid Digest length"; + let error = DigestError::IncorrectDigestLength(bytes.len()); + let sdk_error = SdkError::FailedToParseDigest { + context: context.to_string(), + error, + }; + // TODO remove this unreachable + unreachable!("{:?}", sdk_error); + } + + let mut digest_bytes = [0u8; _Digest::LENGTH]; + digest_bytes.copy_from_slice(&bytes); + Digest(_Digest::from(digest_bytes)) + } +} + +pub trait ToDigest { + fn to_digest(&self) -> Digest; + fn is_empty(&self) -> bool; +} + +impl ToDigest for Digest { + fn to_digest(&self) -> Digest { + self.0.into() + } + fn is_empty(&self) -> bool { + hex::encode(self.0).is_empty() + } +} + +impl ToDigest for &str { + fn to_digest(&self) -> Digest { + Digest::from(*self) + } + fn is_empty(&self) -> bool { + self.trim().is_empty() + } +} diff --git a/src/types/era_id.rs b/src/types/era_id.rs new file mode 100644 index 000000000..82a253617 --- /dev/null +++ b/src/types/era_id.rs @@ -0,0 +1,31 @@ +use casper_types::EraId as _EraId; +use wasm_bindgen::prelude::*; + +#[wasm_bindgen] +#[derive(Default, Clone, Copy, Debug, PartialEq, Eq, PartialOrd, Ord)] + +pub struct EraId(_EraId); + +#[wasm_bindgen] +impl EraId { + #[wasm_bindgen(constructor)] + pub fn new(value: u64) -> EraId { + EraId(value.into()) + } + + pub fn value(&self) -> u64 { + self.0.into() + } +} + +impl From for _EraId { + fn from(hash_addr: EraId) -> Self { + hash_addr.0 + } +} + +impl From<_EraId> for EraId { + fn from(hash_addr: _EraId) -> Self { + EraId(hash_addr) + } +} diff --git a/src/types/global_state_identifier.rs b/src/types/global_state_identifier.rs new file mode 100644 index 000000000..612277546 --- /dev/null +++ b/src/types/global_state_identifier.rs @@ -0,0 +1,53 @@ +use super::{block_hash::BlockHash, digest::Digest}; +use casper_client::rpcs::GlobalStateIdentifier as _GlobalStateIdentifier; +#[cfg(target_arch = "wasm32")] +use gloo_utils::format::JsValueSerdeExt; +use serde::{Deserialize, Serialize}; +use wasm_bindgen::prelude::*; + +#[derive(Debug, Deserialize, Clone, Serialize)] +#[wasm_bindgen] +pub struct GlobalStateIdentifier(_GlobalStateIdentifier); + +#[wasm_bindgen] +impl GlobalStateIdentifier { + #[wasm_bindgen(constructor)] + pub fn new(global_state_identifier: GlobalStateIdentifier) -> GlobalStateIdentifier { + global_state_identifier + } + + #[wasm_bindgen(js_name = "fromBlockHash")] + pub fn from_block_hash(block_hash: BlockHash) -> GlobalStateIdentifier { + GlobalStateIdentifier(_GlobalStateIdentifier::BlockHash(block_hash.into())) + } + + #[wasm_bindgen(js_name = "fromBlockHeight")] + pub fn from_block_height(block_height: u64) -> GlobalStateIdentifier { + GlobalStateIdentifier(_GlobalStateIdentifier::BlockHeight(block_height)) + } + + #[wasm_bindgen(js_name = "fromStateRootHash")] + pub fn from_state_root_hash(state_root_hash: Digest) -> GlobalStateIdentifier { + GlobalStateIdentifier(_GlobalStateIdentifier::StateRootHash( + state_root_hash.into(), + )) + } + + #[cfg(target_arch = "wasm32")] + #[wasm_bindgen(js_name = "toJson")] + pub fn to_json(&self) -> JsValue { + JsValue::from_serde(self).unwrap_or(JsValue::null()) + } +} + +impl From for _GlobalStateIdentifier { + fn from(global_state_identifier: GlobalStateIdentifier) -> Self { + global_state_identifier.0 + } +} + +impl From<_GlobalStateIdentifier> for GlobalStateIdentifier { + fn from(identifier: _GlobalStateIdentifier) -> Self { + GlobalStateIdentifier(identifier) + } +} diff --git a/src/types/key.rs b/src/types/key.rs new file mode 100644 index 000000000..dea5b127f --- /dev/null +++ b/src/types/key.rs @@ -0,0 +1,219 @@ +use super::addr::transfer_addr::TransferAddr; +use super::addr::{dictionary_addr::DictionaryAddr, hash_addr::HashAddr, uref_addr::URefAddr}; +use super::era_id::EraId; +use super::{account_hash::AccountHash, deploy_hash::DeployHash, uref::URef}; +use crate::debug::error; +use crate::types::sdk_error::SdkError; +use casper_types::Key as _Key; +#[cfg(target_arch = "wasm32")] +use gloo_utils::format::JsValueSerdeExt; +use serde::{Deserialize, Serialize}; +use wasm_bindgen::prelude::*; + +#[derive(Debug, Deserialize, Clone, Serialize)] +#[wasm_bindgen] +pub struct Key(_Key); + +#[wasm_bindgen] +impl Key { + #[wasm_bindgen(constructor)] + pub fn new(key: Key) -> Result { + let key: _Key = key.into(); + Ok(Key(key)) + } + + #[cfg(target_arch = "wasm32")] + #[wasm_bindgen(js_name = "toJson")] + pub fn to_json(&self) -> JsValue { + JsValue::from_serde(self).unwrap_or(JsValue::null()) + } + + #[wasm_bindgen(js_name = "fromURef")] + pub fn from_uref(key: URef) -> Key { + Key(_Key::URef(key.into())) + } + + #[wasm_bindgen(js_name = "fromDeployInfo")] + pub fn from_deploy_info(key: DeployHash) -> Key { + Key(_Key::DeployInfo(key.into())) + } + + #[wasm_bindgen(js_name = "fromAccount")] + pub fn from_account(key: AccountHash) -> Key { + Key(_Key::Account(key.into())) + } + + #[wasm_bindgen] + #[wasm_bindgen(js_name = "fromHash")] + pub fn from_hash(key: HashAddr) -> Key { + Key(_Key::Hash(key.into())) + } + + #[wasm_bindgen(js_name = "fromTransfer")] + pub fn from_transfer(key: Vec) -> TransferAddr { + // TODO Fix with TransferAddr as _TransferAddr, and [u8; 32] + // Key(_Key::Transfer(key.into())) + TransferAddr::from(key) + } + + #[wasm_bindgen(js_name = "fromEraInfo")] + pub fn from_era_info(key: EraId) -> Key { + Key(_Key::EraInfo(key.into())) + } + + #[wasm_bindgen(js_name = "fromBalance")] + pub fn from_balance(key: URefAddr) -> Key { + Key(_Key::Balance(key.into())) + } + + #[wasm_bindgen(js_name = "fromBid")] + pub fn from_bid(key: AccountHash) -> Key { + Key(_Key::Bid(key.into())) + } + + #[wasm_bindgen(js_name = "fromWithdraw")] + pub fn from_withdraw(key: AccountHash) -> Key { + Key(_Key::Withdraw(key.into())) + } + + #[wasm_bindgen(js_name = "fromDictionaryAddr")] + pub fn from_dictionary_addr(key: DictionaryAddr) -> Key { + Key(_Key::Dictionary(key.into())) + } + + #[wasm_bindgen(js_name = "asDictionaryAddr")] + pub fn as_dictionary(&self) -> Option { + match &self.0 { + _Key::Dictionary(v) => Some((*v).into()), + _ => None, + } + } + + #[wasm_bindgen(js_name = "fromSystemContractRegistry")] + pub fn from_system_contract_registry() -> Key { + Key(_Key::SystemContractRegistry) + } + + #[wasm_bindgen(js_name = "fromEraSummary")] + pub fn from_era_summary() -> Key { + Key(_Key::EraSummary) + } + + #[wasm_bindgen(js_name = "fromUnbond")] + pub fn from_unbond(key: AccountHash) -> Key { + Key(_Key::Unbond(key.into())) + } + + #[wasm_bindgen(js_name = "fromChainspecRegistry")] + pub fn from_chainspec_registry() -> Key { + Key(_Key::ChainspecRegistry) + } + + #[wasm_bindgen(js_name = "fromChecksumRegistry")] + pub fn from_checksum_registry() -> Key { + Key(_Key::ChecksumRegistry) + } + + #[wasm_bindgen(js_name = "toFormattedString")] + pub fn to_formatted_string(&self) -> String { + _Key::to_formatted_string(self.0) + } + + #[wasm_bindgen(js_name = "fromFormattedString")] + pub fn from_formatted_str_js_alias(input: JsValue) -> Result { + let input_string = input.as_string(); + if let Some(input_string) = input_string { + Key::from_formatted_str(&input_string) + .map_err(|err| { + error(&format!("Error parsing Key from formatted string, {}", err)); + JsValue::null() + }) + .map(Into::into) + } else { + error("Input is not a string"); + Err(JsValue::null()) + } + } + + #[wasm_bindgen(js_name = "fromDictionaryKey")] + pub fn from_dictionary_key(seed_uref: URef, dictionary_item_key: &[u8]) -> Self { + _Key::dictionary(seed_uref.into(), dictionary_item_key).into() + } + + #[wasm_bindgen(js_name = "isDictionaryKey")] + pub fn is_dictionary_key(&self) -> bool { + matches!(&self.0, _Key::Dictionary(_)) + } + + #[wasm_bindgen(js_name = "intoAccount")] + pub fn into_account(self) -> Option { + match self.0 { + _Key::Account(bytes) => Some(bytes.into()), + _ => None, + } + } + + #[wasm_bindgen(js_name = "intoHash")] + pub fn into_hash(self) -> Option { + match self.0 { + _Key::Hash(hash) => Some(hash.into()), + _ => None, + } + } + + #[wasm_bindgen(js_name = "asBalance")] + pub fn as_balance(&self) -> Option { + match &self.0 { + _Key::Balance(v) => Some((*v).into()), + _ => None, + } + } + + #[wasm_bindgen(js_name = "intoURef")] + pub fn into_uref(self) -> Option { + match self.0 { + _Key::URef(uref) => Some(uref.into()), + _ => None, + } + } + + #[wasm_bindgen(js_name = "urefToHash")] + pub fn uref_to_hash(&self) -> Option { + if let _Key::URef(uref) = &self.0 { + let addr = uref.addr(); + return Some(Key(_Key::Hash(addr))); + } + None + } + + #[wasm_bindgen(js_name = "withdrawToUnbond")] + pub fn withdraw_to_unbond(&self) -> Option { + if let _Key::Withdraw(account_hash) = &self.0 { + return Some(Key(_Key::Unbond(*account_hash))); + } + None + } +} + +impl Key { + pub fn from_formatted_str(input: &str) -> Result { + _Key::from_formatted_str(input) + .map(Into::into) + .map_err(|error| SdkError::FailedToParseKey { + context: "Key from formatted string", + error, + }) + } +} + +impl From for _Key { + fn from(key: Key) -> Self { + key.0 + } +} + +impl From<_Key> for Key { + fn from(key: _Key) -> Self { + Key(key) + } +} diff --git a/src/types/mod.rs b/src/types/mod.rs new file mode 100644 index 000000000..bc4e8b5a2 --- /dev/null +++ b/src/types/mod.rs @@ -0,0 +1,24 @@ +pub mod access_rights; +pub mod account_hash; +pub mod account_identifier; +pub mod addr; +pub mod block_hash; +pub mod block_identifier; +pub mod cl; +pub mod contract_hash; +pub mod contract_package_hash; +pub mod deploy; +pub mod deploy_hash; +pub mod deploy_params; +pub mod dictionary_item_identifier; +pub mod digest; +pub mod era_id; +pub mod global_state_identifier; +pub mod key; +pub mod path; +pub mod peer_entry; +pub mod public_key; +pub mod purse_identifier; +pub mod sdk_error; +pub mod uref; +pub mod verbosity; diff --git a/src/types/path.rs b/src/types/path.rs new file mode 100644 index 000000000..2945f6242 --- /dev/null +++ b/src/types/path.rs @@ -0,0 +1,92 @@ +#[cfg(target_arch = "wasm32")] +use gloo_utils::format::JsValueSerdeExt; +#[cfg(target_arch = "wasm32")] +use js_sys::Array; +use serde::{Deserialize, Deserializer, Serialize}; +use wasm_bindgen::prelude::*; + +#[derive(Debug, Clone, Serialize, Default)] +#[wasm_bindgen] +pub struct Path { + path: Vec, +} + +#[wasm_bindgen] +impl Path { + #[wasm_bindgen(constructor)] + pub fn new(path: JsValue) -> Self { + let path_string: String = if path.is_null() { + String::from("") + } else { + path.as_string().unwrap_or_else(|| String::from("")) + }; + Path::from(path_string) + } + + #[cfg(target_arch = "wasm32")] + #[wasm_bindgen(js_name = "fromArray")] + pub fn from_js_array(path: JsValue) -> Self { + let path: Array = path.into(); + let path: Vec = path + .iter() + .map(|value| { + value + .as_string() + .unwrap_or_else(|| String::from("Invalid String")) + }) + .collect(); + + Path { path } + } + + #[cfg(target_arch = "wasm32")] + #[wasm_bindgen(js_name = "toJson")] + pub fn to_json(&self) -> JsValue { + JsValue::from_serde(&self.path).unwrap_or(JsValue::null()) + } + + #[cfg(target_arch = "wasm32")] + #[wasm_bindgen(js_name = "toString")] + pub fn to_string_js_alias(&self) -> String { + self.to_string() + } + + pub fn is_empty(&self) -> bool { + self.path.is_empty() || self.path.iter().all(|s| s.is_empty()) + } +} + +impl std::fmt::Display for Path { + fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { + write!(f, "{}", self.path.join("/")) + } +} + +impl<'de> Deserialize<'de> for Path { + fn deserialize(deserializer: D) -> Result + where + D: Deserializer<'de>, + { + let path: Vec = Vec::deserialize(deserializer)?; + Ok(Path { path }) + } +} + +impl From for Vec { + fn from(path: Path) -> Self { + path.path + } +} + +impl From> for Path { + fn from(path: Vec) -> Self { + Path { path } + } +} + +impl From for Path { + fn from(path_string: String) -> Self { + let segments: Vec = path_string.split('/').map(ToString::to_string).collect(); + Path { path: segments } + } +} diff --git a/src/types/peer_entry.rs b/src/types/peer_entry.rs new file mode 100644 index 000000000..f541e09a7 --- /dev/null +++ b/src/types/peer_entry.rs @@ -0,0 +1,32 @@ +use casper_client::rpcs::results::PeerEntry as _PeerEntry; +use serde::{Deserialize, Serialize}; +use wasm_bindgen::prelude::*; + +#[derive(Debug, Clone, Deserialize, Serialize)] +#[wasm_bindgen] +pub struct PeerEntry(_PeerEntry); + +#[wasm_bindgen] +impl PeerEntry { + #[wasm_bindgen(getter)] + pub fn node_id(&self) -> String { + self.0.node_id.clone() + } + + #[wasm_bindgen(getter)] + pub fn address(&self) -> String { + self.0.address.clone() + } +} + +impl From<_PeerEntry> for PeerEntry { + fn from(peer_entry: _PeerEntry) -> Self { + PeerEntry(peer_entry) + } +} + +impl From for _PeerEntry { + fn from(peer_entry: PeerEntry) -> Self { + peer_entry.0 + } +} diff --git a/src/types/public_key.rs b/src/types/public_key.rs new file mode 100644 index 000000000..11e1ba0f1 --- /dev/null +++ b/src/types/public_key.rs @@ -0,0 +1,96 @@ +use crate::{ + debug::error, + types::{account_hash::AccountHash, purse_identifier::PurseIdentifier, uref::URef}, +}; +use casper_types::{ + bytesrepr::{self, FromBytes, ToBytes}, + PublicKey as _PublicKey, +}; +#[cfg(target_arch = "wasm32")] +use gloo_utils::format::JsValueSerdeExt; +use serde::{Deserialize, Serialize}; +use std::fmt::{Display, Formatter, Result as FmtResult}; +use wasm_bindgen::prelude::*; + +#[wasm_bindgen] +#[derive(Debug, Deserialize, Clone, Serialize, PartialEq, Eq, PartialOrd, Ord)] +pub struct PublicKey(_PublicKey); + +#[wasm_bindgen] +impl PublicKey { + #[wasm_bindgen(constructor)] + pub fn new(public_key_hex_str: &str) -> Result { + let bytes = hex::decode(public_key_hex_str).map_err(|err| { + error(&format!("PublicKey decode {:?}", err)); + JsValue::null() + })?; + let (public_key, _) = _PublicKey::from_bytes(&bytes).map_err(|err| { + error(&format!("PublicKey from bytes {:?}", err)); + JsValue::null() + })?; + Ok(PublicKey(public_key)) + } + + #[wasm_bindgen(js_name = "fromUint8Array")] + pub fn from_bytes(bytes: Vec) -> PublicKey { + let (public_key, _) = _PublicKey::from_bytes(&bytes).unwrap(); + PublicKey(public_key) + } + + #[wasm_bindgen(js_name = "toAccountHash")] + pub fn to_account_hash(&self) -> AccountHash { + AccountHash::from_public_key(self.0.clone().into()) + } + + #[wasm_bindgen(js_name = "toPurseUref")] + pub fn to_purse_uref(&self) -> URef { + PurseIdentifier::from_main_purse_under_public_key(self.0.clone().into()).into() + } + + #[cfg(target_arch = "wasm32")] + #[wasm_bindgen(js_name = "toJson")] + pub fn to_json(&self) -> JsValue { + JsValue::from_serde(self).unwrap_or(JsValue::null()) + } +} + +impl Display for PublicKey { + fn fmt(&self, f: &mut Formatter) -> FmtResult { + let bytes = self.0.to_bytes().unwrap_or_default(); + let hex_string = hex::encode(bytes); + write!(f, "{}", hex_string) + } +} + +impl From for _PublicKey { + fn from(public_key: PublicKey) -> Self { + public_key.0 + } +} + +impl From<_PublicKey> for PublicKey { + fn from(public_key: _PublicKey) -> Self { + PublicKey(public_key) + } +} + +impl ToBytes for PublicKey { + fn to_bytes(&self) -> Result, bytesrepr::Error> { + self.0.to_bytes() + } + + fn serialized_length(&self) -> usize { + self.0.serialized_length() + } + + fn write_bytes(&self, bytes: &mut Vec) -> Result<(), bytesrepr::Error> { + self.0.write_bytes(bytes) + } +} + +impl FromBytes for PublicKey { + fn from_bytes(bytes: &[u8]) -> Result<(Self, &[u8]), bytesrepr::Error> { + let (public_key, remainder) = _PublicKey::from_bytes(bytes)?; + Ok((PublicKey(public_key), remainder)) + } +} diff --git a/src/types/purse_identifier.rs b/src/types/purse_identifier.rs new file mode 100644 index 000000000..2189cce3d --- /dev/null +++ b/src/types/purse_identifier.rs @@ -0,0 +1,103 @@ +use super::{account_hash::AccountHash, public_key::PublicKey, uref::URef}; +use casper_client::rpcs::PurseIdentifier as _PurseIdentifier; +use serde::{Deserialize, Serialize}; +use wasm_bindgen::prelude::*; + +#[derive(Debug, Deserialize, Clone, Serialize)] +#[wasm_bindgen] +pub struct PurseIdentifier(_PurseIdentifier); + +#[wasm_bindgen] +impl PurseIdentifier { + #[wasm_bindgen(constructor)] + #[wasm_bindgen(js_name = "fromPublicKey")] + pub fn from_main_purse_under_public_key(key: PublicKey) -> Self { + PurseIdentifier(_PurseIdentifier::MainPurseUnderPublicKey(key.into())) + } + + #[wasm_bindgen(js_name = "fromAccountHash")] + pub fn from_main_purse_under_account_hash(account_hash: AccountHash) -> Self { + PurseIdentifier(_PurseIdentifier::MainPurseUnderAccountHash( + account_hash.into(), + )) + } + + #[wasm_bindgen(js_name = "fromURef")] + pub fn from_purse_uref(uref: URef) -> Self { + PurseIdentifier(_PurseIdentifier::PurseUref(uref.into())) + } +} + +impl ToString for PurseIdentifier { + fn to_string(&self) -> String { + match &self.0 { + // TODO fix PublicKey to string not short version + _PurseIdentifier::MainPurseUnderPublicKey(key) => { + PublicKey::from(key.clone()).to_string() + } + _PurseIdentifier::MainPurseUnderAccountHash(hash) => hash.to_formatted_string(), + _PurseIdentifier::PurseUref(uref) => uref.to_formatted_string(), + } + } +} + +impl From for PublicKey { + fn from(purse_identifier: PurseIdentifier) -> Self { + match purse_identifier { + PurseIdentifier(_PurseIdentifier::MainPurseUnderPublicKey(key)) => key.into(), + _ => unimplemented!("Conversion not implemented for PurseIdentifier to Key"), + } + } +} + +impl From for _PurseIdentifier { + fn from(purse_identifier: PurseIdentifier) -> Self { + purse_identifier.0 + } +} + +impl From<_PurseIdentifier> for PurseIdentifier { + fn from(purse_identifier: _PurseIdentifier) -> Self { + PurseIdentifier(purse_identifier) + } +} + +impl From for AccountHash { + fn from(purse_identifier: PurseIdentifier) -> Self { + match purse_identifier { + PurseIdentifier(_PurseIdentifier::MainPurseUnderAccountHash(account_hash)) => { + account_hash.into() + } + _ => unimplemented!("Conversion not implemented for PurseIdentifier to AccountHash"), + } + } +} + +impl From for URef { + fn from(purse_identifier: PurseIdentifier) -> Self { + match purse_identifier { + PurseIdentifier(_PurseIdentifier::PurseUref(uref)) => uref.into(), + _ => unimplemented!("Conversion not implemented for PurseIdentifier to URef"), + } + } +} + +impl From for PurseIdentifier { + fn from(key: PublicKey) -> Self { + PurseIdentifier(_PurseIdentifier::MainPurseUnderPublicKey(key.into())) + } +} + +impl From for PurseIdentifier { + fn from(account_hash: AccountHash) -> Self { + PurseIdentifier(_PurseIdentifier::MainPurseUnderAccountHash( + account_hash.into(), + )) + } +} + +impl From for PurseIdentifier { + fn from(uref: URef) -> Self { + PurseIdentifier(_PurseIdentifier::PurseUref(uref.into())) + } +} diff --git a/src/types/sdk_error.rs b/src/types/sdk_error.rs new file mode 100644 index 000000000..5843a5e98 --- /dev/null +++ b/src/types/sdk_error.rs @@ -0,0 +1,153 @@ +use casper_client::{cli::CliError, cli::JsonArgsError, Error}; +use casper_types::{ + account::FromStrError, CLValueError, KeyFromStrError, UIntParseError, URefFromStrError, +}; +use humantime::{DurationError, TimestampError}; +use std::num::ParseIntError; +use thiserror::Error; + +#[derive(Error, Debug)] +pub enum SdkError { + #[error("Failed to parse {context} as a key: {error}")] + FailedToParseKey { + context: &'static str, + error: KeyFromStrError, + }, + + #[error("Failed to parse {context} as a public key: {error}")] + FailedToParsePublicKey { + context: String, + error: casper_types::crypto::Error, + }, + + #[error("Failed to parse {context} as an account hash: {error}")] + FailedToParseAccountHash { + context: &'static str, + error: FromStrError, + }, + + #[error("Failed to parse '{context}' as a uref: {error}")] + FailedToParseURef { + context: &'static str, + error: URefFromStrError, + }, + + #[error("Failed to parse '{context}' as an integer: {error}")] + FailedToParseInt { + context: &'static str, + error: ParseIntError, + }, + + #[error("Failed to parse '{context}' as a time diff: {error}")] + FailedToParseTimeDiff { + context: &'static str, + error: DurationError, + }, + + #[error("Failed to parse '{context}' as a timestamp: {error}")] + FailedToParseTimestamp { + context: &'static str, + error: TimestampError, + }, + + #[error("Failed to parse '{context}' as u128, u256, or u512: {error:?}")] + FailedToParseUint { + context: &'static str, + error: UIntParseError, + }, + + #[error("Failed to parse '{context}' as a hash digest: {error:?}")] + FailedToParseDigest { + context: String, + error: casper_hashing::Error, + }, + + #[error("Failed to parse state identifier")] + FailedToParseStateIdentifier, + + #[error("Failed to parse purse identifier")] + FailedToParsePurseIdentifier, + + #[error("Failed to parse account identifier")] + FailedToParseAccountIdentifier, + + #[error("Conflicting arguments passed '{context}' {args:?}")] + ConflictingArguments { context: String, args: Vec }, + + #[error("Invalid CLValue error: {0}")] + InvalidCLValue(String), + + #[error("Invalid argument '{context}': {error}")] + InvalidArgument { + context: &'static str, + error: String, + }, + + #[error("Failed to parse json-args to JSON: {0}. They should be a JSON Array of Objects, each of the form {{\"name\":,\"type\":,\"value\":}}")] + FailedToParseJsonArgs(#[from] serde_json::Error), + + #[error(transparent)] + JsonArgs(#[from] JsonArgsError), + + #[error(transparent)] + Core(#[from] Error), +} + +impl From for SdkError { + fn from(error: CLValueError) -> Self { + match error { + CLValueError::Serialization(bytesrepr_error) => SdkError::Core(bytesrepr_error.into()), + CLValueError::Type(type_mismatch) => { + SdkError::InvalidCLValue(type_mismatch.to_string()) + } + } + } +} + +impl From for SdkError { + fn from(error: CliError) -> Self { + match error { + CliError::FailedToParseKey { context, error } => { + SdkError::FailedToParseKey { context, error } + } + CliError::FailedToParsePublicKey { context, error } => { + SdkError::FailedToParsePublicKey { context, error } + } + CliError::FailedToParseAccountHash { context, error } => { + SdkError::FailedToParseAccountHash { context, error } + } + CliError::FailedToParseURef { context, error } => { + SdkError::FailedToParseURef { context, error } + } + CliError::FailedToParseInt { context, error } => { + SdkError::FailedToParseInt { context, error } + } + CliError::FailedToParseTimeDiff { context, error } => { + SdkError::FailedToParseTimeDiff { context, error } + } + CliError::FailedToParseTimestamp { context, error } => { + SdkError::FailedToParseTimestamp { context, error } + } + CliError::FailedToParseUint { context, error } => { + SdkError::FailedToParseUint { context, error } + } + CliError::FailedToParseDigest { context, error } => SdkError::FailedToParseDigest { + context: context.to_owned(), + error, + }, + CliError::FailedToParseStateIdentifier => SdkError::FailedToParseStateIdentifier, + CliError::ConflictingArguments { context, args } => { + SdkError::ConflictingArguments { context, args } + } + CliError::InvalidCLValue(error) => SdkError::InvalidCLValue(error), + CliError::InvalidArgument { context, error } => { + SdkError::InvalidArgument { context, error } + } + CliError::FailedToParseJsonArgs(json_error) => { + SdkError::FailedToParseJsonArgs(json_error) + } + CliError::JsonArgs(json_args_error) => SdkError::JsonArgs(json_args_error), + CliError::Core(core_error) => SdkError::Core(core_error), + } + } +} diff --git a/src/types/uref.rs b/src/types/uref.rs new file mode 100644 index 000000000..6745933e4 --- /dev/null +++ b/src/types/uref.rs @@ -0,0 +1,70 @@ +use crate::{ + debug::error, + types::{access_rights::AccessRights, addr::uref_addr::URefAddr}, +}; +use casper_types::URef as _URef; +#[cfg(target_arch = "wasm32")] +use gloo_utils::format::JsValueSerdeExt; +use serde::{Deserialize, Serialize}; +use wasm_bindgen::prelude::*; + +#[derive(Debug, Clone, Deserialize, Serialize)] +#[wasm_bindgen] + +pub struct URef(_URef); + +#[wasm_bindgen] +impl URef { + #[wasm_bindgen(constructor)] + pub fn new(uref_hex_str: &str, access_rights: u8) -> Result { + // Convert the input hexadecimal string to bytes + let bytes = match hex::decode(uref_hex_str) { + Ok(bytes) => bytes, + Err(err) => { + error(&format!("Invalid hex string: {}", err)); + return Err(JsValue::null()); + } + }; + + let uref = _URef::new( + URefAddr::new(bytes).unwrap().into(), + AccessRights::new(access_rights).unwrap_or_default().into(), + ); + + Ok(URef(uref)) + } + + #[wasm_bindgen(js_name = "fromUint8Array")] + pub fn from_bytes(bytes: Vec, access_rights: u8) -> Self { + let mut address_array = [0u8; 32]; + address_array[..bytes.len()].copy_from_slice(&bytes); + + URef(_URef::new( + address_array, + AccessRights::new(access_rights).unwrap_or_default().into(), + )) + } + + #[wasm_bindgen(js_name = "toFormattedString")] + pub fn to_formatted_string(&self) -> String { + self.0.to_formatted_string() + } + + #[cfg(target_arch = "wasm32")] + #[wasm_bindgen(js_name = "toJson")] + pub fn to_json(&self) -> JsValue { + JsValue::from_serde(self).unwrap_or(JsValue::null()) + } +} + +impl From<_URef> for URef { + fn from(uref: _URef) -> Self { + URef(uref) + } +} + +impl From for _URef { + fn from(uref: URef) -> Self { + uref.0 + } +} diff --git a/src/types/verbosity.rs b/src/types/verbosity.rs new file mode 100644 index 000000000..5988a425f --- /dev/null +++ b/src/types/verbosity.rs @@ -0,0 +1,95 @@ +use casper_client::Verbosity as _Verbosity; +use serde::{Deserialize, Deserializer, Serialize}; +use wasm_bindgen::prelude::*; + +#[derive(Debug, Serialize, Clone, Copy, PartialEq)] +#[wasm_bindgen] +pub enum Verbosity { + Low = 0, + Medium = 1, + High = 2, +} + +impl<'de> Deserialize<'de> for Verbosity { + fn deserialize(deserializer: D) -> Result + where + D: Deserializer<'de>, + { + #[derive(Deserialize)] + #[serde(untagged)] + enum Value { + IntValue(u64), + StrValue(String), + } + + let value: Value = Deserialize::deserialize(deserializer)?; + + match value { + Value::IntValue(v) => match v { + 0 => Ok(Verbosity::Low), + 1 => Ok(Verbosity::Medium), + 2 => Ok(Verbosity::High), + _ => Err(serde::de::Error::custom("Invalid verbosity value")), + }, + Value::StrValue(s) => Ok(Verbosity::from(s.as_str())), + } + } +} + +impl From for u64 { + fn from(verbosity: Verbosity) -> Self { + match verbosity { + Verbosity::Low => 0, + Verbosity::Medium => 1, + Verbosity::High => 2, + } + } +} + +impl From for Verbosity { + fn from(value: u64) -> Self { + match value { + 0 => Verbosity::Low, + 1 => Verbosity::Medium, + 2 => Verbosity::High, + _ => unreachable!("Invalid u64 value for Verbosity"), + } + } +} + +impl From<&str> for Verbosity { + fn from(s: &str) -> Self { + match s.to_lowercase().as_str() { + "low" => Verbosity::Low, + "medium" => Verbosity::Medium, + "high" => Verbosity::High, + _ => unreachable!("Invalid verbosity string"), + } + } +} + +impl From for Verbosity { + fn from(s: String) -> Self { + s.as_str().into() + } +} + +impl From for _Verbosity { + fn from(verbosity: Verbosity) -> Self { + match verbosity { + Verbosity::Low => _Verbosity::Low, + Verbosity::Medium => _Verbosity::Medium, + Verbosity::High => _Verbosity::High, + } + } +} + +impl From<_Verbosity> for Verbosity { + fn from(verbosity: _Verbosity) -> Self { + match verbosity { + _Verbosity::Low => Verbosity::Low, + _Verbosity::Medium => Verbosity::Medium, + _Verbosity::High => Verbosity::High, + } + } +} diff --git a/tests/e2e/.env b/tests/e2e/.env new file mode 100644 index 000000000..ee1d1e8a5 --- /dev/null +++ b/tests/e2e/.env @@ -0,0 +1,5 @@ +KEY_NAME=secret_key.pem +KEY_PATH=../../../../NCTL/casper-node/utils/nctl/assets/net-1/users/user-1/ +NODE_ADDRESS=http://localhost:11101 +APP_ADDRESS=http://localhost:4200 +CHAIN_NAME=casper-net-1 \ No newline at end of file diff --git a/tests/e2e/.gitignore b/tests/e2e/.gitignore new file mode 100644 index 000000000..a61b5c615 --- /dev/null +++ b/tests/e2e/.gitignore @@ -0,0 +1,4 @@ +node_modules/ +coverage/ +test.png +secret_key.pem diff --git a/tests/e2e/jest.config.ts b/tests/e2e/jest.config.ts new file mode 100644 index 000000000..a25c22e6a --- /dev/null +++ b/tests/e2e/jest.config.ts @@ -0,0 +1,201 @@ +/** + * For a detailed explanation regarding each configuration property, visit: + * https://jestjs.io/docs/configuration + */ + +import type { Config } from 'jest'; + +const config: Config = { + // All imported modules in your tests should be mocked automatically + // automock: false, + + // Stop running tests after `n` failures + // bail: 0, + + // The directory where Jest should store its cached dependency information + // cacheDirectory: "/tmp/jest_rs", + + // Automatically clear mock calls, instances, contexts and results before every test + clearMocks: true, + + // Indicates whether the coverage information should be collected while executing the test + collectCoverage: true, + + // An array of glob patterns indicating a set of files for which coverage information should be collected + // collectCoverageFrom: undefined, + + // The directory where Jest should output its coverage files + coverageDirectory: "coverage", + + // An array of regexp pattern strings used to skip coverage collection + // coveragePathIgnorePatterns: [ + // "/node_modules/" + // ], + + // Indicates which provider should be used to instrument code for coverage + coverageProvider: "v8", + + // A list of reporter names that Jest uses when writing coverage reports + // coverageReporters: [ + // "json", + // "text", + // "lcov", + // "clover" + // ], + + // An object that configures minimum threshold enforcement for coverage results + // coverageThreshold: undefined, + + // A path to a custom dependency extractor + // dependencyExtractor: undefined, + + // Make calling deprecated APIs throw helpful error messages + // errorOnDeprecated: false, + + // The default configuration for fake timers + // fakeTimers: { + // "enableGlobally": false + // }, + + // Force coverage collection from ignored files using an array of glob patterns + // forceCoverageMatch: [], + + // A path to a module which exports an async function that is triggered once before all test suites + "globalSetup": "jest-environment-puppeteer/setup", + + // A path to a module which exports an async function that is triggered once after all test suites + "globalTeardown": "jest-environment-puppeteer/teardown", + + // A set of global variables that need to be available in all test environments + // globals: {}, + + // The maximum amount of workers used to run your tests. Can be specified as % or a number. E.g. maxWorkers: 10% will use 10% of your CPU amount + 1 as the maximum worker number. maxWorkers: 2 will use a maximum of 2 workers. + // maxWorkers: "50%", + + // An array of directory names to be searched recursively up from the requiring module's location + // moduleDirectories: [ + // "node_modules" + // ], + + // An array of file extensions your modules use + // moduleFileExtensions: [ + // "js", + // "mjs", + // "cjs", + // "jsx", + // "ts", + // "tsx", + // "json", + // "node" + // ], + + // A map from regular expressions to module names or to arrays of module names that allow to stub out resources with a single module + // moduleNameMapper: {}, + + // An array of regexp pattern strings, matched against all module paths before considered 'visible' to the module loader + // modulePathIgnorePatterns: [], + + // Activates notifications for test results + // notify: false, + + // An enum that specifies notification mode. Requires { notify: true } + // notifyMode: "failure-change", + + // A preset that is used as a base for Jest's configuration + preset: 'jest-puppeteer', + + // Run tests from one or more projects + // projects: undefined, + + // Use this configuration option to add custom reporters to Jest + // reporters: undefined, + + // Automatically reset mock state before every test + // resetMocks: false, + + // Reset the module registry before running each individual test + // resetModules: false, + + // A path to a custom resolver + // resolver: undefined, + + // Automatically restore mock state and implementation before every test + // restoreMocks: false, + + // The root directory that Jest should scan for tests and modules within + // rootDir: undefined, + + // A list of paths to directories that Jest should use to search for files in + // roots: [ + // "" + // ], + + // Allows you to use a custom runner instead of Jest's default test runner + // runner: "jest-runner", + + // The paths to modules that run some code to configure or set up the testing environment before each test + // setupFiles: [], + + // A list of paths to modules that run some code to configure or set up the testing framework before each test + //setupFilesAfterEnv: [], + + // The number of seconds after which a test is considered as slow and reported as such in the results. + // slowTestThreshold: 5, + + // A list of paths to snapshot serializer modules Jest should use for snapshot testing + // snapshotSerializers: [], + + // The test environment that will be used for testing + testEnvironment: 'jest-environment-puppeteer', + + // Options that will be passed to the testEnvironment + // testEnvironmentOptions: {}, + + // Adds a location field to test results + // testLocationInResults: false, + + // The glob patterns Jest uses to detect test files + // testMatch: [ + // "**/__tests__/**/*.[jt]s?(x)", + // "**/?(*.)+(spec|test).[tj]s?(x)" + // ], + + // An array of regexp pattern strings that are matched against all test paths, matched tests are skipped + // testPathIgnorePatterns: [ + // "/node_modules/" + // ], + + // The regexp pattern or array of patterns that Jest uses to detect test files + // testRegex: [], + + // This option allows the use of a custom results processor + // testResultsProcessor: undefined, + + // This option allows use of a custom test runner + // testRunner: "jest-circus/runner", + + // A map from regular expressions to paths to transformers + transform: { + '^.+\\.tsx?$': 'ts-jest', + }, + + // An array of regexp pattern strings that are matched against all source file paths, matched files will skip transformation + // transformIgnorePatterns: [ + // "/node_modules/", + // "\\.pnp\\.[^\\/]+$" + // ], + + // An array of regexp pattern strings that are matched against all modules before the module loader will automatically return a mock for them + // unmockedModulePathPatterns: undefined, + + // Indicates whether each individual test should be reported during the run + // verbose: undefined, + + // An array of regexp patterns that are matched against all source file paths before re-running tests in watch mode + // watchPathIgnorePatterns: [], + + // Whether to use watchman for file crawling + // watchman: true, +}; + +export default config; diff --git a/tests/e2e/package-lock.json b/tests/e2e/package-lock.json new file mode 100644 index 000000000..045b877ac --- /dev/null +++ b/tests/e2e/package-lock.json @@ -0,0 +1,4650 @@ +{ + "name": "e2e", + "version": "1.0.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "e2e", + "version": "1.0.0", + "license": "ISC", + "dependencies": { + "casper-rust-wasm-sdk": "file:../../pkg-nodejs", + "dotenv": "^16.3.1", + "puppeteer": "^21.1.1" + }, + "devDependencies": { + "@types/jest": "^29.5.4", + "@types/puppeteer": "^7.0.4", + "jest": "^29.6.4", + "jest-puppeteer": "^9.0.0", + "ts-jest": "^29.1.1", + "ts-node": "^10.9.1" + } + }, + "../../../pkg-nodejs": { + "extraneous": true + }, + "../../pkg-nodejs": { + "name": "casper-rust-wasm-sdk", + "version": "0.1.0", + "license": "Apache-2.0" + }, + "node_modules/@ampproject/remapping": { + "version": "2.2.1", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@jridgewell/gen-mapping": "^0.3.0", + "@jridgewell/trace-mapping": "^0.3.9" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@babel/code-frame": { + "version": "7.22.13", + "license": "MIT", + "dependencies": { + "@babel/highlight": "^7.22.13", + "chalk": "^2.4.2" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/code-frame/node_modules/ansi-styles": { + "version": "3.2.1", + "license": "MIT", + "dependencies": { + "color-convert": "^1.9.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/@babel/code-frame/node_modules/chalk": { + "version": "2.4.2", + "license": "MIT", + "dependencies": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/@babel/code-frame/node_modules/color-convert": { + "version": "1.9.3", + "license": "MIT", + "dependencies": { + "color-name": "1.1.3" + } + }, + "node_modules/@babel/code-frame/node_modules/color-name": { + "version": "1.1.3", + "license": "MIT" + }, + "node_modules/@babel/code-frame/node_modules/escape-string-regexp": { + "version": "1.0.5", + "license": "MIT", + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/@babel/code-frame/node_modules/has-flag": { + "version": "3.0.0", + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/@babel/code-frame/node_modules/supports-color": { + "version": "5.5.0", + "license": "MIT", + "dependencies": { + "has-flag": "^3.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/@babel/compat-data": { + "version": "7.22.9", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/core": { + "version": "7.22.15", + "dev": true, + "license": "MIT", + "dependencies": { + "@ampproject/remapping": "^2.2.0", + "@babel/code-frame": "^7.22.13", + "@babel/generator": "^7.22.15", + "@babel/helper-compilation-targets": "^7.22.15", + "@babel/helper-module-transforms": "^7.22.15", + "@babel/helpers": "^7.22.15", + "@babel/parser": "^7.22.15", + "@babel/template": "^7.22.15", + "@babel/traverse": "^7.22.15", + "@babel/types": "^7.22.15", + "convert-source-map": "^1.7.0", + "debug": "^4.1.0", + "gensync": "^1.0.0-beta.2", + "json5": "^2.2.3", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/babel" + } + }, + "node_modules/@babel/core/node_modules/convert-source-map": { + "version": "1.9.0", + "dev": true, + "license": "MIT" + }, + "node_modules/@babel/generator": { + "version": "7.22.15", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/types": "^7.22.15", + "@jridgewell/gen-mapping": "^0.3.2", + "@jridgewell/trace-mapping": "^0.3.17", + "jsesc": "^2.5.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-compilation-targets": { + "version": "7.22.15", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/compat-data": "^7.22.9", + "@babel/helper-validator-option": "^7.22.15", + "browserslist": "^4.21.9", + "lru-cache": "^5.1.1", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-environment-visitor": { + "version": "7.22.5", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-function-name": { + "version": "7.22.5", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/template": "^7.22.5", + "@babel/types": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-hoist-variables": { + "version": "7.22.5", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/types": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-module-imports": { + "version": "7.22.15", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/types": "^7.22.15" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-module-transforms": { + "version": "7.22.15", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-environment-visitor": "^7.22.5", + "@babel/helper-module-imports": "^7.22.15", + "@babel/helper-simple-access": "^7.22.5", + "@babel/helper-split-export-declaration": "^7.22.6", + "@babel/helper-validator-identifier": "^7.22.15" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/helper-plugin-utils": { + "version": "7.22.5", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-simple-access": { + "version": "7.22.5", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/types": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-split-export-declaration": { + "version": "7.22.6", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/types": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-string-parser": { + "version": "7.22.5", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-identifier": { + "version": "7.22.15", + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-option": { + "version": "7.22.15", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helpers": { + "version": "7.22.15", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/template": "^7.22.15", + "@babel/traverse": "^7.22.15", + "@babel/types": "^7.22.15" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/highlight": { + "version": "7.22.13", + "license": "MIT", + "dependencies": { + "@babel/helper-validator-identifier": "^7.22.5", + "chalk": "^2.4.2", + "js-tokens": "^4.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/highlight/node_modules/ansi-styles": { + "version": "3.2.1", + "license": "MIT", + "dependencies": { + "color-convert": "^1.9.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/@babel/highlight/node_modules/chalk": { + "version": "2.4.2", + "license": "MIT", + "dependencies": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/@babel/highlight/node_modules/color-convert": { + "version": "1.9.3", + "license": "MIT", + "dependencies": { + "color-name": "1.1.3" + } + }, + "node_modules/@babel/highlight/node_modules/color-name": { + "version": "1.1.3", + "license": "MIT" + }, + "node_modules/@babel/highlight/node_modules/escape-string-regexp": { + "version": "1.0.5", + "license": "MIT", + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/@babel/highlight/node_modules/has-flag": { + "version": "3.0.0", + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/@babel/highlight/node_modules/supports-color": { + "version": "5.5.0", + "license": "MIT", + "dependencies": { + "has-flag": "^3.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/@babel/parser": { + "version": "7.22.16", + "dev": true, + "license": "MIT", + "bin": { + "parser": "bin/babel-parser.js" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@babel/plugin-syntax-async-generators": { + "version": "7.8.4", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-bigint": { + "version": "7.8.3", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-class-properties": { + "version": "7.12.13", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.12.13" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-import-meta": { + "version": "7.10.4", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.10.4" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-json-strings": { + "version": "7.8.3", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-jsx": { + "version": "7.22.5", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-logical-assignment-operators": { + "version": "7.10.4", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.10.4" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-nullish-coalescing-operator": { + "version": "7.8.3", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-numeric-separator": { + "version": "7.10.4", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.10.4" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-object-rest-spread": { + "version": "7.8.3", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-optional-catch-binding": { + "version": "7.8.3", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-optional-chaining": { + "version": "7.8.3", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-top-level-await": { + "version": "7.14.5", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-typescript": { + "version": "7.22.5", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/template": { + "version": "7.22.15", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.22.13", + "@babel/parser": "^7.22.15", + "@babel/types": "^7.22.15" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/traverse": { + "version": "7.22.15", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.22.13", + "@babel/generator": "^7.22.15", + "@babel/helper-environment-visitor": "^7.22.5", + "@babel/helper-function-name": "^7.22.5", + "@babel/helper-hoist-variables": "^7.22.5", + "@babel/helper-split-export-declaration": "^7.22.6", + "@babel/parser": "^7.22.15", + "@babel/types": "^7.22.15", + "debug": "^4.1.0", + "globals": "^11.1.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/types": { + "version": "7.22.15", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-string-parser": "^7.22.5", + "@babel/helper-validator-identifier": "^7.22.15", + "to-fast-properties": "^2.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@bcoe/v8-coverage": { + "version": "0.2.3", + "dev": true, + "license": "MIT" + }, + "node_modules/@cspotcode/source-map-support": { + "version": "0.8.1", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/trace-mapping": "0.3.9" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/@cspotcode/source-map-support/node_modules/@jridgewell/trace-mapping": { + "version": "0.3.9", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/resolve-uri": "^3.0.3", + "@jridgewell/sourcemap-codec": "^1.4.10" + } + }, + "node_modules/@hapi/hoek": { + "version": "9.3.0", + "dev": true, + "license": "BSD-3-Clause" + }, + "node_modules/@hapi/topo": { + "version": "5.1.0", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "@hapi/hoek": "^9.0.0" + } + }, + "node_modules/@istanbuljs/load-nyc-config": { + "version": "1.1.0", + "dev": true, + "license": "ISC", + "dependencies": { + "camelcase": "^5.3.1", + "find-up": "^4.1.0", + "get-package-type": "^0.1.0", + "js-yaml": "^3.13.1", + "resolve-from": "^5.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@istanbuljs/schema": { + "version": "0.1.3", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/@jest/console": { + "version": "29.6.4", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/types": "^29.6.3", + "@types/node": "*", + "chalk": "^4.0.0", + "jest-message-util": "^29.6.3", + "jest-util": "^29.6.3", + "slash": "^3.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/core": { + "version": "29.6.4", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/console": "^29.6.4", + "@jest/reporters": "^29.6.4", + "@jest/test-result": "^29.6.4", + "@jest/transform": "^29.6.4", + "@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.6.3", + "jest-config": "^29.6.4", + "jest-haste-map": "^29.6.4", + "jest-message-util": "^29.6.3", + "jest-regex-util": "^29.6.3", + "jest-resolve": "^29.6.4", + "jest-resolve-dependencies": "^29.6.4", + "jest-runner": "^29.6.4", + "jest-runtime": "^29.6.4", + "jest-snapshot": "^29.6.4", + "jest-util": "^29.6.3", + "jest-validate": "^29.6.3", + "jest-watcher": "^29.6.4", + "micromatch": "^4.0.4", + "pretty-format": "^29.6.3", + "slash": "^3.0.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" + }, + "peerDependenciesMeta": { + "node-notifier": { + "optional": true + } + } + }, + "node_modules/@jest/environment": { + "version": "29.6.4", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/fake-timers": "^29.6.4", + "@jest/types": "^29.6.3", + "@types/node": "*", + "jest-mock": "^29.6.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/expect": { + "version": "29.6.4", + "dev": true, + "license": "MIT", + "dependencies": { + "expect": "^29.6.4", + "jest-snapshot": "^29.6.4" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/expect-utils": { + "version": "29.6.4", + "dev": true, + "license": "MIT", + "dependencies": { + "jest-get-type": "^29.6.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/fake-timers": { + "version": "29.6.4", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/types": "^29.6.3", + "@sinonjs/fake-timers": "^10.0.2", + "@types/node": "*", + "jest-message-util": "^29.6.3", + "jest-mock": "^29.6.3", + "jest-util": "^29.6.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/globals": { + "version": "29.6.4", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/environment": "^29.6.4", + "@jest/expect": "^29.6.4", + "@jest/types": "^29.6.3", + "jest-mock": "^29.6.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/reporters": { + "version": "29.6.4", + "dev": true, + "license": "MIT", + "dependencies": { + "@bcoe/v8-coverage": "^0.2.3", + "@jest/console": "^29.6.4", + "@jest/test-result": "^29.6.4", + "@jest/transform": "^29.6.4", + "@jest/types": "^29.6.3", + "@jridgewell/trace-mapping": "^0.3.18", + "@types/node": "*", + "chalk": "^4.0.0", + "collect-v8-coverage": "^1.0.0", + "exit": "^0.1.2", + "glob": "^7.1.3", + "graceful-fs": "^4.2.9", + "istanbul-lib-coverage": "^3.0.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.3", + "jest-util": "^29.6.3", + "jest-worker": "^29.6.4", + "slash": "^3.0.0", + "string-length": "^4.0.1", + "strip-ansi": "^6.0.0", + "v8-to-istanbul": "^9.0.1" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" + }, + "peerDependenciesMeta": { + "node-notifier": { + "optional": true + } + } + }, + "node_modules/@jest/schemas": { + "version": "29.6.3", + "dev": true, + "license": "MIT", + "dependencies": { + "@sinclair/typebox": "^0.27.8" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/source-map": { + "version": "29.6.3", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/trace-mapping": "^0.3.18", + "callsites": "^3.0.0", + "graceful-fs": "^4.2.9" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/test-result": { + "version": "29.6.4", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/console": "^29.6.4", + "@jest/types": "^29.6.3", + "@types/istanbul-lib-coverage": "^2.0.0", + "collect-v8-coverage": "^1.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/test-sequencer": { + "version": "29.6.4", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/test-result": "^29.6.4", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^29.6.4", + "slash": "^3.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/transform": { + "version": "29.6.4", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/core": "^7.11.6", + "@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.4", + "jest-regex-util": "^29.6.3", + "jest-util": "^29.6.3", + "micromatch": "^4.0.4", + "pirates": "^4.0.4", + "slash": "^3.0.0", + "write-file-atomic": "^4.0.2" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/types": { + "version": "29.6.3", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/schemas": "^29.6.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" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jridgewell/gen-mapping": { + "version": "0.3.3", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/set-array": "^1.0.1", + "@jridgewell/sourcemap-codec": "^1.4.10", + "@jridgewell/trace-mapping": "^0.3.9" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/resolve-uri": { + "version": "3.1.1", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/set-array": { + "version": "1.1.2", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/sourcemap-codec": { + "version": "1.4.15", + "dev": true, + "license": "MIT" + }, + "node_modules/@jridgewell/trace-mapping": { + "version": "0.3.19", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/resolve-uri": "^3.1.0", + "@jridgewell/sourcemap-codec": "^1.4.14" + } + }, + "node_modules/@puppeteer/browsers": { + "version": "1.7.0", + "license": "Apache-2.0", + "dependencies": { + "debug": "4.3.4", + "extract-zip": "2.0.1", + "progress": "2.0.3", + "proxy-agent": "6.3.0", + "tar-fs": "3.0.4", + "unbzip2-stream": "1.4.3", + "yargs": "17.7.1" + }, + "bin": { + "browsers": "lib/cjs/main-cli.js" + }, + "engines": { + "node": ">=16.3.0" + } + }, + "node_modules/@puppeteer/browsers/node_modules/yargs": { + "version": "17.7.1", + "license": "MIT", + "dependencies": { + "cliui": "^8.0.1", + "escalade": "^3.1.1", + "get-caller-file": "^2.0.5", + "require-directory": "^2.1.1", + "string-width": "^4.2.3", + "y18n": "^5.0.5", + "yargs-parser": "^21.1.1" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/@sideway/address": { + "version": "4.1.4", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "@hapi/hoek": "^9.0.0" + } + }, + "node_modules/@sideway/formula": { + "version": "3.0.1", + "dev": true, + "license": "BSD-3-Clause" + }, + "node_modules/@sideway/pinpoint": { + "version": "2.0.0", + "dev": true, + "license": "BSD-3-Clause" + }, + "node_modules/@sinclair/typebox": { + "version": "0.27.8", + "dev": true, + "license": "MIT" + }, + "node_modules/@sinonjs/commons": { + "version": "3.0.0", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "type-detect": "4.0.8" + } + }, + "node_modules/@sinonjs/fake-timers": { + "version": "10.3.0", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "@sinonjs/commons": "^3.0.0" + } + }, + "node_modules/@tootallnate/quickjs-emscripten": { + "version": "0.23.0", + "license": "MIT" + }, + "node_modules/@tsconfig/node10": { + "version": "1.0.9", + "dev": true, + "license": "MIT" + }, + "node_modules/@tsconfig/node12": { + "version": "1.0.11", + "dev": true, + "license": "MIT" + }, + "node_modules/@tsconfig/node14": { + "version": "1.0.3", + "dev": true, + "license": "MIT" + }, + "node_modules/@tsconfig/node16": { + "version": "1.0.4", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/babel__core": { + "version": "7.20.1", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/parser": "^7.20.7", + "@babel/types": "^7.20.7", + "@types/babel__generator": "*", + "@types/babel__template": "*", + "@types/babel__traverse": "*" + } + }, + "node_modules/@types/babel__generator": { + "version": "7.6.4", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/types": "^7.0.0" + } + }, + "node_modules/@types/babel__template": { + "version": "7.4.1", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/parser": "^7.1.0", + "@babel/types": "^7.0.0" + } + }, + "node_modules/@types/babel__traverse": { + "version": "7.20.1", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/types": "^7.20.7" + } + }, + "node_modules/@types/graceful-fs": { + "version": "4.1.6", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/istanbul-lib-coverage": { + "version": "2.0.4", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/istanbul-lib-report": { + "version": "3.0.0", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/istanbul-lib-coverage": "*" + } + }, + "node_modules/@types/istanbul-reports": { + "version": "3.0.1", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/istanbul-lib-report": "*" + } + }, + "node_modules/@types/jest": { + "version": "29.5.4", + "dev": true, + "license": "MIT", + "dependencies": { + "expect": "^29.0.0", + "pretty-format": "^29.0.0" + } + }, + "node_modules/@types/node": { + "version": "20.5.9", + "devOptional": true, + "license": "MIT" + }, + "node_modules/@types/puppeteer": { + "version": "7.0.4", + "deprecated": "This is a stub types definition. puppeteer provides its own type definitions, so you do not need this installed.", + "dev": true, + "license": "MIT", + "dependencies": { + "puppeteer": "*" + } + }, + "node_modules/@types/stack-utils": { + "version": "2.0.1", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/yargs": { + "version": "17.0.24", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/yargs-parser": "*" + } + }, + "node_modules/@types/yargs-parser": { + "version": "21.0.0", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/yauzl": { + "version": "2.10.0", + "license": "MIT", + "optional": true, + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/acorn": { + "version": "8.10.0", + "dev": true, + "license": "MIT", + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/acorn-walk": { + "version": "8.2.0", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/agent-base": { + "version": "7.1.0", + "license": "MIT", + "dependencies": { + "debug": "^4.3.4" + }, + "engines": { + "node": ">= 14" + } + }, + "node_modules/ansi-escapes": { + "version": "4.3.2", + "dev": true, + "license": "MIT", + "dependencies": { + "type-fest": "^0.21.3" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/ansi-regex": { + "version": "5.0.1", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/ansi-styles": { + "version": "4.3.0", + "license": "MIT", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/anymatch": { + "version": "3.1.3", + "dev": true, + "license": "ISC", + "dependencies": { + "normalize-path": "^3.0.0", + "picomatch": "^2.0.4" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/arg": { + "version": "4.1.3", + "dev": true, + "license": "MIT" + }, + "node_modules/argparse": { + "version": "1.0.10", + "dev": true, + "license": "MIT", + "dependencies": { + "sprintf-js": "~1.0.2" + } + }, + "node_modules/ast-types": { + "version": "0.13.4", + "license": "MIT", + "dependencies": { + "tslib": "^2.0.1" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/asynckit": { + "version": "0.4.0", + "dev": true, + "license": "MIT" + }, + "node_modules/axios": { + "version": "0.27.2", + "dev": true, + "license": "MIT", + "dependencies": { + "follow-redirects": "^1.14.9", + "form-data": "^4.0.0" + } + }, + "node_modules/b4a": { + "version": "1.6.4", + "license": "ISC" + }, + "node_modules/babel-jest": { + "version": "29.6.4", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/transform": "^29.6.4", + "@types/babel__core": "^7.1.14", + "babel-plugin-istanbul": "^6.1.1", + "babel-preset-jest": "^29.6.3", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.9", + "slash": "^3.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "@babel/core": "^7.8.0" + } + }, + "node_modules/babel-plugin-istanbul": { + "version": "6.1.1", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "@babel/helper-plugin-utils": "^7.0.0", + "@istanbuljs/load-nyc-config": "^1.0.0", + "@istanbuljs/schema": "^0.1.2", + "istanbul-lib-instrument": "^5.0.4", + "test-exclude": "^6.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/babel-plugin-istanbul/node_modules/istanbul-lib-instrument": { + "version": "5.2.1", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "@babel/core": "^7.12.3", + "@babel/parser": "^7.14.7", + "@istanbuljs/schema": "^0.1.2", + "istanbul-lib-coverage": "^3.2.0", + "semver": "^6.3.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/babel-plugin-jest-hoist": { + "version": "29.6.3", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/template": "^7.3.3", + "@babel/types": "^7.3.3", + "@types/babel__core": "^7.1.14", + "@types/babel__traverse": "^7.0.6" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/babel-preset-current-node-syntax": { + "version": "1.0.1", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/plugin-syntax-async-generators": "^7.8.4", + "@babel/plugin-syntax-bigint": "^7.8.3", + "@babel/plugin-syntax-class-properties": "^7.8.3", + "@babel/plugin-syntax-import-meta": "^7.8.3", + "@babel/plugin-syntax-json-strings": "^7.8.3", + "@babel/plugin-syntax-logical-assignment-operators": "^7.8.3", + "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3", + "@babel/plugin-syntax-numeric-separator": "^7.8.3", + "@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-top-level-await": "^7.8.3" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/babel-preset-jest": { + "version": "29.6.3", + "dev": true, + "license": "MIT", + "dependencies": { + "babel-plugin-jest-hoist": "^29.6.3", + "babel-preset-current-node-syntax": "^1.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/balanced-match": { + "version": "1.0.2", + "dev": true, + "license": "MIT" + }, + "node_modules/base64-js": { + "version": "1.5.1", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT" + }, + "node_modules/basic-ftp": { + "version": "5.0.3", + "license": "MIT", + "engines": { + "node": ">=10.0.0" + } + }, + "node_modules/brace-expansion": { + "version": "1.1.11", + "dev": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/braces": { + "version": "3.0.2", + "dev": true, + "license": "MIT", + "dependencies": { + "fill-range": "^7.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/browserslist": { + "version": "4.21.10", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "caniuse-lite": "^1.0.30001517", + "electron-to-chromium": "^1.4.477", + "node-releases": "^2.0.13", + "update-browserslist-db": "^1.0.11" + }, + "bin": { + "browserslist": "cli.js" + }, + "engines": { + "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" + } + }, + "node_modules/bs-logger": { + "version": "0.2.6", + "dev": true, + "license": "MIT", + "dependencies": { + "fast-json-stable-stringify": "2.x" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/bser": { + "version": "2.1.1", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "node-int64": "^0.4.0" + } + }, + "node_modules/buffer": { + "version": "5.7.1", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT", + "dependencies": { + "base64-js": "^1.3.1", + "ieee754": "^1.1.13" + } + }, + "node_modules/buffer-crc32": { + "version": "0.2.13", + "license": "MIT", + "engines": { + "node": "*" + } + }, + "node_modules/buffer-from": { + "version": "1.1.2", + "dev": true, + "license": "MIT" + }, + "node_modules/callsites": { + "version": "3.1.0", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/camelcase": { + "version": "5.3.1", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/caniuse-lite": { + "version": "1.0.30001527", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/caniuse-lite" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "CC-BY-4.0" + }, + "node_modules/casper-rust-wasm-sdk": { + "resolved": "../../pkg-nodejs", + "link": true + }, + "node_modules/chalk": { + "version": "4.1.2", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/char-regex": { + "version": "1.0.2", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + } + }, + "node_modules/chromium-bidi": { + "version": "0.4.22", + "license": "Apache-2.0", + "dependencies": { + "mitt": "3.0.1" + }, + "peerDependencies": { + "devtools-protocol": "*" + } + }, + "node_modules/ci-info": { + "version": "3.8.0", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/sibiraj-s" + } + ], + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/cjs-module-lexer": { + "version": "1.2.3", + "dev": true, + "license": "MIT" + }, + "node_modules/cliui": { + "version": "8.0.1", + "license": "ISC", + "dependencies": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.1", + "wrap-ansi": "^7.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/co": { + "version": "4.6.0", + "dev": true, + "license": "MIT", + "engines": { + "iojs": ">= 1.0.0", + "node": ">= 0.12.0" + } + }, + "node_modules/collect-v8-coverage": { + "version": "1.0.2", + "dev": true, + "license": "MIT" + }, + "node_modules/color-convert": { + "version": "2.0.1", + "license": "MIT", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/color-name": { + "version": "1.1.4", + "license": "MIT" + }, + "node_modules/combined-stream": { + "version": "1.0.8", + "dev": true, + "license": "MIT", + "dependencies": { + "delayed-stream": "~1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/commander": { + "version": "5.1.0", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 6" + } + }, + "node_modules/concat-map": { + "version": "0.0.1", + "dev": true, + "license": "MIT" + }, + "node_modules/convert-source-map": { + "version": "2.0.0", + "dev": true, + "license": "MIT" + }, + "node_modules/cosmiconfig": { + "version": "8.3.4", + "dev": true, + "license": "MIT", + "dependencies": { + "import-fresh": "^3.3.0", + "js-yaml": "^4.1.0", + "parse-json": "^5.2.0", + "path-type": "^4.0.0" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/d-fischer" + }, + "peerDependencies": { + "typescript": ">=4.9.5" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/cosmiconfig/node_modules/argparse": { + "version": "2.0.1", + "dev": true, + "license": "Python-2.0" + }, + "node_modules/cosmiconfig/node_modules/js-yaml": { + "version": "4.1.0", + "dev": true, + "license": "MIT", + "dependencies": { + "argparse": "^2.0.1" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "node_modules/create-require": { + "version": "1.1.1", + "dev": true, + "license": "MIT" + }, + "node_modules/cross-fetch": { + "version": "4.0.0", + "license": "MIT", + "dependencies": { + "node-fetch": "^2.6.12" + } + }, + "node_modules/cross-spawn": { + "version": "7.0.3", + "dev": true, + "license": "MIT", + "dependencies": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/cwd": { + "version": "0.10.0", + "dev": true, + "license": "MIT", + "dependencies": { + "find-pkg": "^0.1.2", + "fs-exists-sync": "^0.1.0" + }, + "engines": { + "node": ">=0.8" + } + }, + "node_modules/data-uri-to-buffer": { + "version": "5.0.1", + "license": "MIT", + "engines": { + "node": ">= 14" + } + }, + "node_modules/debug": { + "version": "4.3.4", + "license": "MIT", + "dependencies": { + "ms": "2.1.2" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/dedent": { + "version": "1.5.1", + "dev": true, + "license": "MIT", + "peerDependencies": { + "babel-plugin-macros": "^3.1.0" + }, + "peerDependenciesMeta": { + "babel-plugin-macros": { + "optional": true + } + } + }, + "node_modules/deepmerge": { + "version": "4.3.1", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/degenerator": { + "version": "5.0.1", + "license": "MIT", + "dependencies": { + "ast-types": "^0.13.4", + "escodegen": "^2.1.0", + "esprima": "^4.0.1" + }, + "engines": { + "node": ">= 14" + } + }, + "node_modules/delayed-stream": { + "version": "1.0.0", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/detect-newline": { + "version": "3.1.0", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/devtools-protocol": { + "version": "0.0.1159816", + "license": "BSD-3-Clause" + }, + "node_modules/diff": { + "version": "4.0.2", + "dev": true, + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.3.1" + } + }, + "node_modules/diff-sequences": { + "version": "29.6.3", + "dev": true, + "license": "MIT", + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/dotenv": { + "version": "16.3.1", + "license": "BSD-2-Clause", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/motdotla/dotenv?sponsor=1" + } + }, + "node_modules/electron-to-chromium": { + "version": "1.4.508", + "dev": true, + "license": "ISC" + }, + "node_modules/emittery": { + "version": "0.13.1", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sindresorhus/emittery?sponsor=1" + } + }, + "node_modules/emoji-regex": { + "version": "8.0.0", + "license": "MIT" + }, + "node_modules/end-of-stream": { + "version": "1.4.4", + "license": "MIT", + "dependencies": { + "once": "^1.4.0" + } + }, + "node_modules/error-ex": { + "version": "1.3.2", + "license": "MIT", + "dependencies": { + "is-arrayish": "^0.2.1" + } + }, + "node_modules/escalade": { + "version": "3.1.1", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/escape-string-regexp": { + "version": "2.0.0", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/escodegen": { + "version": "2.1.0", + "license": "BSD-2-Clause", + "dependencies": { + "esprima": "^4.0.1", + "estraverse": "^5.2.0", + "esutils": "^2.0.2" + }, + "bin": { + "escodegen": "bin/escodegen.js", + "esgenerate": "bin/esgenerate.js" + }, + "engines": { + "node": ">=6.0" + }, + "optionalDependencies": { + "source-map": "~0.6.1" + } + }, + "node_modules/esprima": { + "version": "4.0.1", + "license": "BSD-2-Clause", + "bin": { + "esparse": "bin/esparse.js", + "esvalidate": "bin/esvalidate.js" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/estraverse": { + "version": "5.3.0", + "license": "BSD-2-Clause", + "engines": { + "node": ">=4.0" + } + }, + "node_modules/esutils": { + "version": "2.0.3", + "license": "BSD-2-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/execa": { + "version": "5.1.1", + "dev": true, + "license": "MIT", + "dependencies": { + "cross-spawn": "^7.0.3", + "get-stream": "^6.0.0", + "human-signals": "^2.1.0", + "is-stream": "^2.0.0", + "merge-stream": "^2.0.0", + "npm-run-path": "^4.0.1", + "onetime": "^5.1.2", + "signal-exit": "^3.0.3", + "strip-final-newline": "^2.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sindresorhus/execa?sponsor=1" + } + }, + "node_modules/exit": { + "version": "0.1.2", + "dev": true, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/expand-tilde": { + "version": "1.2.2", + "dev": true, + "license": "MIT", + "dependencies": { + "os-homedir": "^1.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/expect": { + "version": "29.6.4", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/expect-utils": "^29.6.4", + "jest-get-type": "^29.6.3", + "jest-matcher-utils": "^29.6.4", + "jest-message-util": "^29.6.3", + "jest-util": "^29.6.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/expect-puppeteer": { + "version": "9.0.0", + "dev": true, + "engines": { + "node": ">=16" + } + }, + "node_modules/extract-zip": { + "version": "2.0.1", + "license": "BSD-2-Clause", + "dependencies": { + "debug": "^4.1.1", + "get-stream": "^5.1.0", + "yauzl": "^2.10.0" + }, + "bin": { + "extract-zip": "cli.js" + }, + "engines": { + "node": ">= 10.17.0" + }, + "optionalDependencies": { + "@types/yauzl": "^2.9.1" + } + }, + "node_modules/extract-zip/node_modules/get-stream": { + "version": "5.2.0", + "license": "MIT", + "dependencies": { + "pump": "^3.0.0" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/fast-fifo": { + "version": "1.3.2", + "license": "MIT" + }, + "node_modules/fast-json-stable-stringify": { + "version": "2.1.0", + "dev": true, + "license": "MIT" + }, + "node_modules/fb-watchman": { + "version": "2.0.2", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "bser": "2.1.1" + } + }, + "node_modules/fd-slicer": { + "version": "1.1.0", + "license": "MIT", + "dependencies": { + "pend": "~1.2.0" + } + }, + "node_modules/fill-range": { + "version": "7.0.1", + "dev": true, + "license": "MIT", + "dependencies": { + "to-regex-range": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/find-file-up": { + "version": "0.1.3", + "dev": true, + "license": "MIT", + "dependencies": { + "fs-exists-sync": "^0.1.0", + "resolve-dir": "^0.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/find-pkg": { + "version": "0.1.2", + "dev": true, + "license": "MIT", + "dependencies": { + "find-file-up": "^0.1.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/find-process": { + "version": "1.4.7", + "dev": true, + "license": "MIT", + "dependencies": { + "chalk": "^4.0.0", + "commander": "^5.1.0", + "debug": "^4.1.1" + }, + "bin": { + "find-process": "bin/find-process.js" + } + }, + "node_modules/find-up": { + "version": "4.1.0", + "dev": true, + "license": "MIT", + "dependencies": { + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/follow-redirects": { + "version": "1.15.2", + "dev": true, + "funding": [ + { + "type": "individual", + "url": "https://github.com/sponsors/RubenVerborgh" + } + ], + "license": "MIT", + "engines": { + "node": ">=4.0" + }, + "peerDependenciesMeta": { + "debug": { + "optional": true + } + } + }, + "node_modules/form-data": { + "version": "4.0.0", + "dev": true, + "license": "MIT", + "dependencies": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.8", + "mime-types": "^2.1.12" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/fs-exists-sync": { + "version": "0.1.0", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/fs-extra": { + "version": "8.1.0", + "license": "MIT", + "dependencies": { + "graceful-fs": "^4.2.0", + "jsonfile": "^4.0.0", + "universalify": "^0.1.0" + }, + "engines": { + "node": ">=6 <7 || >=8" + } + }, + "node_modules/fs.realpath": { + "version": "1.0.0", + "dev": true, + "license": "ISC" + }, + "node_modules/function-bind": { + "version": "1.1.1", + "dev": true, + "license": "MIT" + }, + "node_modules/gensync": { + "version": "1.0.0-beta.2", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/get-caller-file": { + "version": "2.0.5", + "license": "ISC", + "engines": { + "node": "6.* || 8.* || >= 10.*" + } + }, + "node_modules/get-package-type": { + "version": "0.1.0", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/get-stream": { + "version": "6.0.1", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/get-uri": { + "version": "6.0.1", + "license": "MIT", + "dependencies": { + "basic-ftp": "^5.0.2", + "data-uri-to-buffer": "^5.0.1", + "debug": "^4.3.4", + "fs-extra": "^8.1.0" + }, + "engines": { + "node": ">= 14" + } + }, + "node_modules/glob": { + "version": "7.2.3", + "dev": true, + "license": "ISC", + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/global-modules": { + "version": "0.2.3", + "dev": true, + "license": "MIT", + "dependencies": { + "global-prefix": "^0.1.4", + "is-windows": "^0.2.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/global-prefix": { + "version": "0.1.5", + "dev": true, + "license": "MIT", + "dependencies": { + "homedir-polyfill": "^1.0.0", + "ini": "^1.3.4", + "is-windows": "^0.2.0", + "which": "^1.2.12" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/global-prefix/node_modules/which": { + "version": "1.3.1", + "dev": true, + "license": "ISC", + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "which": "bin/which" + } + }, + "node_modules/globals": { + "version": "11.12.0", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/graceful-fs": { + "version": "4.2.11", + "license": "ISC" + }, + "node_modules/has": { + "version": "1.0.3", + "dev": true, + "license": "MIT", + "dependencies": { + "function-bind": "^1.1.1" + }, + "engines": { + "node": ">= 0.4.0" + } + }, + "node_modules/has-flag": { + "version": "4.0.0", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/homedir-polyfill": { + "version": "1.0.3", + "dev": true, + "license": "MIT", + "dependencies": { + "parse-passwd": "^1.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/html-escaper": { + "version": "2.0.2", + "dev": true, + "license": "MIT" + }, + "node_modules/http-proxy-agent": { + "version": "7.0.0", + "license": "MIT", + "dependencies": { + "agent-base": "^7.1.0", + "debug": "^4.3.4" + }, + "engines": { + "node": ">= 14" + } + }, + "node_modules/https-proxy-agent": { + "version": "7.0.2", + "license": "MIT", + "dependencies": { + "agent-base": "^7.0.2", + "debug": "4" + }, + "engines": { + "node": ">= 14" + } + }, + "node_modules/human-signals": { + "version": "2.1.0", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=10.17.0" + } + }, + "node_modules/ieee754": { + "version": "1.2.1", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "BSD-3-Clause" + }, + "node_modules/import-fresh": { + "version": "3.3.0", + "license": "MIT", + "dependencies": { + "parent-module": "^1.0.0", + "resolve-from": "^4.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/import-fresh/node_modules/resolve-from": { + "version": "4.0.0", + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/import-local": { + "version": "3.1.0", + "dev": true, + "license": "MIT", + "dependencies": { + "pkg-dir": "^4.2.0", + "resolve-cwd": "^3.0.0" + }, + "bin": { + "import-local-fixture": "fixtures/cli.js" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/imurmurhash": { + "version": "0.1.4", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.8.19" + } + }, + "node_modules/inflight": { + "version": "1.0.6", + "dev": true, + "license": "ISC", + "dependencies": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "node_modules/inherits": { + "version": "2.0.4", + "dev": true, + "license": "ISC" + }, + "node_modules/ini": { + "version": "1.3.8", + "dev": true, + "license": "ISC" + }, + "node_modules/ip": { + "version": "1.1.8", + "license": "MIT" + }, + "node_modules/is-arrayish": { + "version": "0.2.1", + "license": "MIT" + }, + "node_modules/is-core-module": { + "version": "2.13.0", + "dev": true, + "license": "MIT", + "dependencies": { + "has": "^1.0.3" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/is-generator-fn": { + "version": "2.1.0", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/is-number": { + "version": "7.0.0", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.12.0" + } + }, + "node_modules/is-stream": { + "version": "2.0.1", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/is-windows": { + "version": "0.2.0", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/isexe": { + "version": "2.0.0", + "dev": true, + "license": "ISC" + }, + "node_modules/istanbul-lib-coverage": { + "version": "3.2.0", + "dev": true, + "license": "BSD-3-Clause", + "engines": { + "node": ">=8" + } + }, + "node_modules/istanbul-lib-instrument": { + "version": "6.0.0", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "@babel/core": "^7.12.3", + "@babel/parser": "^7.14.7", + "@istanbuljs/schema": "^0.1.2", + "istanbul-lib-coverage": "^3.2.0", + "semver": "^7.5.4" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/istanbul-lib-instrument/node_modules/lru-cache": { + "version": "6.0.0", + "dev": true, + "license": "ISC", + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/istanbul-lib-instrument/node_modules/semver": { + "version": "7.5.4", + "dev": true, + "license": "ISC", + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/istanbul-lib-instrument/node_modules/yallist": { + "version": "4.0.0", + "dev": true, + "license": "ISC" + }, + "node_modules/istanbul-lib-report": { + "version": "3.0.1", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "istanbul-lib-coverage": "^3.0.0", + "make-dir": "^4.0.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/istanbul-lib-source-maps": { + "version": "4.0.1", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "debug": "^4.1.1", + "istanbul-lib-coverage": "^3.0.0", + "source-map": "^0.6.1" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/istanbul-reports": { + "version": "3.1.6", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "html-escaper": "^2.0.0", + "istanbul-lib-report": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest": { + "version": "29.6.4", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/core": "^29.6.4", + "@jest/types": "^29.6.3", + "import-local": "^3.0.2", + "jest-cli": "^29.6.4" + }, + "bin": { + "jest": "bin/jest.js" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" + }, + "peerDependenciesMeta": { + "node-notifier": { + "optional": true + } + } + }, + "node_modules/jest-changed-files": { + "version": "29.6.3", + "dev": true, + "license": "MIT", + "dependencies": { + "execa": "^5.0.0", + "jest-util": "^29.6.3", + "p-limit": "^3.1.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-circus": { + "version": "29.6.4", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/environment": "^29.6.4", + "@jest/expect": "^29.6.4", + "@jest/test-result": "^29.6.4", + "@jest/types": "^29.6.3", + "@types/node": "*", + "chalk": "^4.0.0", + "co": "^4.6.0", + "dedent": "^1.0.0", + "is-generator-fn": "^2.0.0", + "jest-each": "^29.6.3", + "jest-matcher-utils": "^29.6.4", + "jest-message-util": "^29.6.3", + "jest-runtime": "^29.6.4", + "jest-snapshot": "^29.6.4", + "jest-util": "^29.6.3", + "p-limit": "^3.1.0", + "pretty-format": "^29.6.3", + "pure-rand": "^6.0.0", + "slash": "^3.0.0", + "stack-utils": "^2.0.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-cli": { + "version": "29.6.4", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/core": "^29.6.4", + "@jest/test-result": "^29.6.4", + "@jest/types": "^29.6.3", + "chalk": "^4.0.0", + "exit": "^0.1.2", + "graceful-fs": "^4.2.9", + "import-local": "^3.0.2", + "jest-config": "^29.6.4", + "jest-util": "^29.6.3", + "jest-validate": "^29.6.3", + "prompts": "^2.0.1", + "yargs": "^17.3.1" + }, + "bin": { + "jest": "bin/jest.js" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" + }, + "peerDependenciesMeta": { + "node-notifier": { + "optional": true + } + } + }, + "node_modules/jest-config": { + "version": "29.6.4", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/core": "^7.11.6", + "@jest/test-sequencer": "^29.6.4", + "@jest/types": "^29.6.3", + "babel-jest": "^29.6.4", + "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.4", + "jest-environment-node": "^29.6.4", + "jest-get-type": "^29.6.3", + "jest-regex-util": "^29.6.3", + "jest-resolve": "^29.6.4", + "jest-runner": "^29.6.4", + "jest-util": "^29.6.3", + "jest-validate": "^29.6.3", + "micromatch": "^4.0.4", + "parse-json": "^5.2.0", + "pretty-format": "^29.6.3", + "slash": "^3.0.0", + "strip-json-comments": "^3.1.1" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "@types/node": "*", + "ts-node": ">=9.0.0" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + }, + "ts-node": { + "optional": true + } + } + }, + "node_modules/jest-dev-server": { + "version": "9.0.0", + "dev": true, + "dependencies": { + "chalk": "^4.1.2", + "cwd": "^0.10.0", + "find-process": "^1.4.7", + "prompts": "^2.4.2", + "spawnd": "^9.0.0", + "tree-kill": "^1.2.2", + "wait-on": "^7.0.1" + }, + "engines": { + "node": ">=16" + } + }, + "node_modules/jest-diff": { + "version": "29.6.4", + "dev": true, + "license": "MIT", + "dependencies": { + "chalk": "^4.0.0", + "diff-sequences": "^29.6.3", + "jest-get-type": "^29.6.3", + "pretty-format": "^29.6.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-docblock": { + "version": "29.6.3", + "dev": true, + "license": "MIT", + "dependencies": { + "detect-newline": "^3.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-each": { + "version": "29.6.3", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/types": "^29.6.3", + "chalk": "^4.0.0", + "jest-get-type": "^29.6.3", + "jest-util": "^29.6.3", + "pretty-format": "^29.6.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-environment-node": { + "version": "29.6.4", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/environment": "^29.6.4", + "@jest/fake-timers": "^29.6.4", + "@jest/types": "^29.6.3", + "@types/node": "*", + "jest-mock": "^29.6.3", + "jest-util": "^29.6.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-environment-puppeteer": { + "version": "9.0.0", + "dev": true, + "dependencies": { + "chalk": "^4.1.2", + "cosmiconfig": "^8.1.3", + "deepmerge": "^4.3.1", + "jest-dev-server": "^9.0.0", + "jest-environment-node": "^29.5.0" + }, + "engines": { + "node": ">=16" + } + }, + "node_modules/jest-get-type": { + "version": "29.6.3", + "dev": true, + "license": "MIT", + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-haste-map": { + "version": "29.6.4", + "dev": true, + "license": "MIT", + "dependencies": { + "@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.6.3", + "jest-util": "^29.6.3", + "jest-worker": "^29.6.4", + "micromatch": "^4.0.4", + "walker": "^1.0.8" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "optionalDependencies": { + "fsevents": "^2.3.2" + } + }, + "node_modules/jest-leak-detector": { + "version": "29.6.3", + "dev": true, + "license": "MIT", + "dependencies": { + "jest-get-type": "^29.6.3", + "pretty-format": "^29.6.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-matcher-utils": { + "version": "29.6.4", + "dev": true, + "license": "MIT", + "dependencies": { + "chalk": "^4.0.0", + "jest-diff": "^29.6.4", + "jest-get-type": "^29.6.3", + "pretty-format": "^29.6.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-message-util": { + "version": "29.6.3", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.12.13", + "@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.3", + "slash": "^3.0.0", + "stack-utils": "^2.0.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-mock": { + "version": "29.6.3", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/types": "^29.6.3", + "@types/node": "*", + "jest-util": "^29.6.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-pnp-resolver": { + "version": "1.2.3", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + }, + "peerDependencies": { + "jest-resolve": "*" + }, + "peerDependenciesMeta": { + "jest-resolve": { + "optional": true + } + } + }, + "node_modules/jest-puppeteer": { + "version": "9.0.0", + "dev": true, + "dependencies": { + "expect-puppeteer": "^9.0.0", + "jest-environment-puppeteer": "^9.0.0" + }, + "engines": { + "node": ">=16" + }, + "peerDependencies": { + "puppeteer": ">=19" + } + }, + "node_modules/jest-regex-util": { + "version": "29.6.3", + "dev": true, + "license": "MIT", + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-resolve": { + "version": "29.6.4", + "dev": true, + "license": "MIT", + "dependencies": { + "chalk": "^4.0.0", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^29.6.4", + "jest-pnp-resolver": "^1.2.2", + "jest-util": "^29.6.3", + "jest-validate": "^29.6.3", + "resolve": "^1.20.0", + "resolve.exports": "^2.0.0", + "slash": "^3.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-resolve-dependencies": { + "version": "29.6.4", + "dev": true, + "license": "MIT", + "dependencies": { + "jest-regex-util": "^29.6.3", + "jest-snapshot": "^29.6.4" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-runner": { + "version": "29.6.4", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/console": "^29.6.4", + "@jest/environment": "^29.6.4", + "@jest/test-result": "^29.6.4", + "@jest/transform": "^29.6.4", + "@jest/types": "^29.6.3", + "@types/node": "*", + "chalk": "^4.0.0", + "emittery": "^0.13.1", + "graceful-fs": "^4.2.9", + "jest-docblock": "^29.6.3", + "jest-environment-node": "^29.6.4", + "jest-haste-map": "^29.6.4", + "jest-leak-detector": "^29.6.3", + "jest-message-util": "^29.6.3", + "jest-resolve": "^29.6.4", + "jest-runtime": "^29.6.4", + "jest-util": "^29.6.3", + "jest-watcher": "^29.6.4", + "jest-worker": "^29.6.4", + "p-limit": "^3.1.0", + "source-map-support": "0.5.13" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-runtime": { + "version": "29.6.4", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/environment": "^29.6.4", + "@jest/fake-timers": "^29.6.4", + "@jest/globals": "^29.6.4", + "@jest/source-map": "^29.6.3", + "@jest/test-result": "^29.6.4", + "@jest/transform": "^29.6.4", + "@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.4", + "jest-message-util": "^29.6.3", + "jest-mock": "^29.6.3", + "jest-regex-util": "^29.6.3", + "jest-resolve": "^29.6.4", + "jest-snapshot": "^29.6.4", + "jest-util": "^29.6.3", + "slash": "^3.0.0", + "strip-bom": "^4.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-snapshot": { + "version": "29.6.4", + "dev": true, + "license": "MIT", + "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.4", + "@jest/transform": "^29.6.4", + "@jest/types": "^29.6.3", + "babel-preset-current-node-syntax": "^1.0.0", + "chalk": "^4.0.0", + "expect": "^29.6.4", + "graceful-fs": "^4.2.9", + "jest-diff": "^29.6.4", + "jest-get-type": "^29.6.3", + "jest-matcher-utils": "^29.6.4", + "jest-message-util": "^29.6.3", + "jest-util": "^29.6.3", + "natural-compare": "^1.4.0", + "pretty-format": "^29.6.3", + "semver": "^7.5.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-snapshot/node_modules/lru-cache": { + "version": "6.0.0", + "dev": true, + "license": "ISC", + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/jest-snapshot/node_modules/semver": { + "version": "7.5.4", + "dev": true, + "license": "ISC", + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/jest-snapshot/node_modules/yallist": { + "version": "4.0.0", + "dev": true, + "license": "ISC" + }, + "node_modules/jest-util": { + "version": "29.6.3", + "dev": true, + "license": "MIT", + "dependencies": { + "@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" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-validate": { + "version": "29.6.3", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/types": "^29.6.3", + "camelcase": "^6.2.0", + "chalk": "^4.0.0", + "jest-get-type": "^29.6.3", + "leven": "^3.1.0", + "pretty-format": "^29.6.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-validate/node_modules/camelcase": { + "version": "6.3.0", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/jest-watcher": { + "version": "29.6.4", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/test-result": "^29.6.4", + "@jest/types": "^29.6.3", + "@types/node": "*", + "ansi-escapes": "^4.2.1", + "chalk": "^4.0.0", + "emittery": "^0.13.1", + "jest-util": "^29.6.3", + "string-length": "^4.0.1" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-worker": { + "version": "29.6.4", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/node": "*", + "jest-util": "^29.6.3", + "merge-stream": "^2.0.0", + "supports-color": "^8.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-worker/node_modules/supports-color": { + "version": "8.1.1", + "dev": true, + "license": "MIT", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/supports-color?sponsor=1" + } + }, + "node_modules/joi": { + "version": "17.10.1", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "@hapi/hoek": "^9.0.0", + "@hapi/topo": "^5.0.0", + "@sideway/address": "^4.1.3", + "@sideway/formula": "^3.0.1", + "@sideway/pinpoint": "^2.0.0" + } + }, + "node_modules/js-tokens": { + "version": "4.0.0", + "license": "MIT" + }, + "node_modules/js-yaml": { + "version": "3.14.1", + "dev": true, + "license": "MIT", + "dependencies": { + "argparse": "^1.0.7", + "esprima": "^4.0.0" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "node_modules/jsesc": { + "version": "2.5.2", + "dev": true, + "license": "MIT", + "bin": { + "jsesc": "bin/jsesc" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/json-parse-even-better-errors": { + "version": "2.3.1", + "license": "MIT" + }, + "node_modules/json5": { + "version": "2.2.3", + "dev": true, + "license": "MIT", + "bin": { + "json5": "lib/cli.js" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/jsonfile": { + "version": "4.0.0", + "license": "MIT", + "optionalDependencies": { + "graceful-fs": "^4.1.6" + } + }, + "node_modules/kleur": { + "version": "3.0.3", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/leven": { + "version": "3.1.0", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/lines-and-columns": { + "version": "1.2.4", + "license": "MIT" + }, + "node_modules/locate-path": { + "version": "5.0.0", + "dev": true, + "license": "MIT", + "dependencies": { + "p-locate": "^4.1.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/lodash": { + "version": "4.17.21", + "dev": true, + "license": "MIT" + }, + "node_modules/lodash.memoize": { + "version": "4.1.2", + "dev": true, + "license": "MIT" + }, + "node_modules/lru-cache": { + "version": "5.1.1", + "dev": true, + "license": "ISC", + "dependencies": { + "yallist": "^3.0.2" + } + }, + "node_modules/make-dir": { + "version": "4.0.0", + "dev": true, + "license": "MIT", + "dependencies": { + "semver": "^7.5.3" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/make-dir/node_modules/lru-cache": { + "version": "6.0.0", + "dev": true, + "license": "ISC", + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/make-dir/node_modules/semver": { + "version": "7.5.4", + "dev": true, + "license": "ISC", + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/make-dir/node_modules/yallist": { + "version": "4.0.0", + "dev": true, + "license": "ISC" + }, + "node_modules/make-error": { + "version": "1.3.6", + "dev": true, + "license": "ISC" + }, + "node_modules/makeerror": { + "version": "1.0.12", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "tmpl": "1.0.5" + } + }, + "node_modules/merge-stream": { + "version": "2.0.0", + "dev": true, + "license": "MIT" + }, + "node_modules/micromatch": { + "version": "4.0.5", + "dev": true, + "license": "MIT", + "dependencies": { + "braces": "^3.0.2", + "picomatch": "^2.3.1" + }, + "engines": { + "node": ">=8.6" + } + }, + "node_modules/mime-db": { + "version": "1.52.0", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mime-types": { + "version": "2.1.35", + "dev": true, + "license": "MIT", + "dependencies": { + "mime-db": "1.52.0" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mimic-fn": { + "version": "2.1.0", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/minimatch": { + "version": "3.1.2", + "dev": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/minimist": { + "version": "1.2.8", + "dev": true, + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/mitt": { + "version": "3.0.1", + "license": "MIT" + }, + "node_modules/mkdirp-classic": { + "version": "0.5.3", + "license": "MIT" + }, + "node_modules/ms": { + "version": "2.1.2", + "license": "MIT" + }, + "node_modules/natural-compare": { + "version": "1.4.0", + "dev": true, + "license": "MIT" + }, + "node_modules/netmask": { + "version": "2.0.2", + "license": "MIT", + "engines": { + "node": ">= 0.4.0" + } + }, + "node_modules/node-fetch": { + "version": "2.7.0", + "license": "MIT", + "dependencies": { + "whatwg-url": "^5.0.0" + }, + "engines": { + "node": "4.x || >=6.0.0" + }, + "peerDependencies": { + "encoding": "^0.1.0" + }, + "peerDependenciesMeta": { + "encoding": { + "optional": true + } + } + }, + "node_modules/node-int64": { + "version": "0.4.0", + "dev": true, + "license": "MIT" + }, + "node_modules/node-releases": { + "version": "2.0.13", + "dev": true, + "license": "MIT" + }, + "node_modules/normalize-path": { + "version": "3.0.0", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/npm-run-path": { + "version": "4.0.1", + "dev": true, + "license": "MIT", + "dependencies": { + "path-key": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/once": { + "version": "1.4.0", + "license": "ISC", + "dependencies": { + "wrappy": "1" + } + }, + "node_modules/onetime": { + "version": "5.1.2", + "dev": true, + "license": "MIT", + "dependencies": { + "mimic-fn": "^2.1.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/os-homedir": { + "version": "1.0.2", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/p-limit": { + "version": "3.1.0", + "dev": true, + "license": "MIT", + "dependencies": { + "yocto-queue": "^0.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-locate": { + "version": "4.1.0", + "dev": true, + "license": "MIT", + "dependencies": { + "p-limit": "^2.2.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/p-locate/node_modules/p-limit": { + "version": "2.3.0", + "dev": true, + "license": "MIT", + "dependencies": { + "p-try": "^2.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-try": { + "version": "2.2.0", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/pac-proxy-agent": { + "version": "7.0.1", + "license": "MIT", + "dependencies": { + "@tootallnate/quickjs-emscripten": "^0.23.0", + "agent-base": "^7.0.2", + "debug": "^4.3.4", + "get-uri": "^6.0.1", + "http-proxy-agent": "^7.0.0", + "https-proxy-agent": "^7.0.2", + "pac-resolver": "^7.0.0", + "socks-proxy-agent": "^8.0.2" + }, + "engines": { + "node": ">= 14" + } + }, + "node_modules/pac-resolver": { + "version": "7.0.0", + "license": "MIT", + "dependencies": { + "degenerator": "^5.0.0", + "ip": "^1.1.8", + "netmask": "^2.0.2" + }, + "engines": { + "node": ">= 14" + } + }, + "node_modules/parent-module": { + "version": "1.0.1", + "license": "MIT", + "dependencies": { + "callsites": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/parse-json": { + "version": "5.2.0", + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.0.0", + "error-ex": "^1.3.1", + "json-parse-even-better-errors": "^2.3.0", + "lines-and-columns": "^1.1.6" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/parse-passwd": { + "version": "1.0.0", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/path-exists": { + "version": "4.0.0", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/path-is-absolute": { + "version": "1.0.1", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/path-key": { + "version": "3.1.1", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/path-parse": { + "version": "1.0.7", + "dev": true, + "license": "MIT" + }, + "node_modules/path-type": { + "version": "4.0.0", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/pend": { + "version": "1.2.0", + "license": "MIT" + }, + "node_modules/picocolors": { + "version": "1.0.0", + "dev": true, + "license": "ISC" + }, + "node_modules/picomatch": { + "version": "2.3.1", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8.6" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/pirates": { + "version": "4.0.6", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 6" + } + }, + "node_modules/pkg-dir": { + "version": "4.2.0", + "dev": true, + "license": "MIT", + "dependencies": { + "find-up": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/pretty-format": { + "version": "29.6.3", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/schemas": "^29.6.3", + "ansi-styles": "^5.0.0", + "react-is": "^18.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/pretty-format/node_modules/ansi-styles": { + "version": "5.2.0", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/progress": { + "version": "2.0.3", + "license": "MIT", + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/prompts": { + "version": "2.4.2", + "dev": true, + "license": "MIT", + "dependencies": { + "kleur": "^3.0.3", + "sisteransi": "^1.0.5" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/proxy-agent": { + "version": "6.3.0", + "license": "MIT", + "dependencies": { + "agent-base": "^7.0.2", + "debug": "^4.3.4", + "http-proxy-agent": "^7.0.0", + "https-proxy-agent": "^7.0.0", + "lru-cache": "^7.14.1", + "pac-proxy-agent": "^7.0.0", + "proxy-from-env": "^1.1.0", + "socks-proxy-agent": "^8.0.1" + }, + "engines": { + "node": ">= 14" + } + }, + "node_modules/proxy-agent/node_modules/lru-cache": { + "version": "7.18.3", + "license": "ISC", + "engines": { + "node": ">=12" + } + }, + "node_modules/proxy-from-env": { + "version": "1.1.0", + "license": "MIT" + }, + "node_modules/pump": { + "version": "3.0.0", + "license": "MIT", + "dependencies": { + "end-of-stream": "^1.1.0", + "once": "^1.3.1" + } + }, + "node_modules/puppeteer": { + "version": "21.1.1", + "hasInstallScript": true, + "license": "Apache-2.0", + "dependencies": { + "@puppeteer/browsers": "1.7.0", + "cosmiconfig": "8.2.0", + "puppeteer-core": "21.1.1" + }, + "engines": { + "node": ">=16.3.0" + } + }, + "node_modules/puppeteer-core": { + "version": "21.1.1", + "license": "Apache-2.0", + "dependencies": { + "@puppeteer/browsers": "1.7.0", + "chromium-bidi": "0.4.22", + "cross-fetch": "4.0.0", + "debug": "4.3.4", + "devtools-protocol": "0.0.1159816", + "ws": "8.13.0" + }, + "engines": { + "node": ">=16.3.0" + } + }, + "node_modules/puppeteer/node_modules/argparse": { + "version": "2.0.1", + "license": "Python-2.0" + }, + "node_modules/puppeteer/node_modules/cosmiconfig": { + "version": "8.2.0", + "license": "MIT", + "dependencies": { + "import-fresh": "^3.2.1", + "js-yaml": "^4.1.0", + "parse-json": "^5.0.0", + "path-type": "^4.0.0" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/d-fischer" + } + }, + "node_modules/puppeteer/node_modules/js-yaml": { + "version": "4.1.0", + "license": "MIT", + "dependencies": { + "argparse": "^2.0.1" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "node_modules/pure-rand": { + "version": "6.0.3", + "dev": true, + "funding": [ + { + "type": "individual", + "url": "https://github.com/sponsors/dubzzz" + }, + { + "type": "opencollective", + "url": "https://opencollective.com/fast-check" + } + ], + "license": "MIT" + }, + "node_modules/queue-tick": { + "version": "1.0.1", + "license": "MIT" + }, + "node_modules/react-is": { + "version": "18.2.0", + "dev": true, + "license": "MIT" + }, + "node_modules/require-directory": { + "version": "2.1.1", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/resolve": { + "version": "1.22.4", + "dev": true, + "license": "MIT", + "dependencies": { + "is-core-module": "^2.13.0", + "path-parse": "^1.0.7", + "supports-preserve-symlinks-flag": "^1.0.0" + }, + "bin": { + "resolve": "bin/resolve" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/resolve-cwd": { + "version": "3.0.0", + "dev": true, + "license": "MIT", + "dependencies": { + "resolve-from": "^5.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/resolve-dir": { + "version": "0.1.1", + "dev": true, + "license": "MIT", + "dependencies": { + "expand-tilde": "^1.2.2", + "global-modules": "^0.2.3" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/resolve-from": { + "version": "5.0.0", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/resolve.exports": { + "version": "2.0.2", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + } + }, + "node_modules/rxjs": { + "version": "7.8.1", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "tslib": "^2.1.0" + } + }, + "node_modules/semver": { + "version": "6.3.1", + "dev": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/shebang-command": { + "version": "2.0.0", + "dev": true, + "license": "MIT", + "dependencies": { + "shebang-regex": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/shebang-regex": { + "version": "3.0.0", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/signal-exit": { + "version": "3.0.7", + "dev": true, + "license": "ISC" + }, + "node_modules/sisteransi": { + "version": "1.0.5", + "dev": true, + "license": "MIT" + }, + "node_modules/slash": { + "version": "3.0.0", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/smart-buffer": { + "version": "4.2.0", + "license": "MIT", + "engines": { + "node": ">= 6.0.0", + "npm": ">= 3.0.0" + } + }, + "node_modules/socks": { + "version": "2.7.1", + "license": "MIT", + "dependencies": { + "ip": "^2.0.0", + "smart-buffer": "^4.2.0" + }, + "engines": { + "node": ">= 10.13.0", + "npm": ">= 3.0.0" + } + }, + "node_modules/socks-proxy-agent": { + "version": "8.0.2", + "license": "MIT", + "dependencies": { + "agent-base": "^7.0.2", + "debug": "^4.3.4", + "socks": "^2.7.1" + }, + "engines": { + "node": ">= 14" + } + }, + "node_modules/socks/node_modules/ip": { + "version": "2.0.0", + "license": "MIT" + }, + "node_modules/source-map": { + "version": "0.6.1", + "devOptional": true, + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/source-map-support": { + "version": "0.5.13", + "dev": true, + "license": "MIT", + "dependencies": { + "buffer-from": "^1.0.0", + "source-map": "^0.6.0" + } + }, + "node_modules/spawnd": { + "version": "9.0.0", + "dev": true, + "dependencies": { + "signal-exit": "^4.0.2", + "tree-kill": "^1.2.2" + }, + "engines": { + "node": ">=16" + } + }, + "node_modules/spawnd/node_modules/signal-exit": { + "version": "4.1.0", + "dev": true, + "license": "ISC", + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/sprintf-js": { + "version": "1.0.3", + "dev": true, + "license": "BSD-3-Clause" + }, + "node_modules/stack-utils": { + "version": "2.0.6", + "dev": true, + "license": "MIT", + "dependencies": { + "escape-string-regexp": "^2.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/streamx": { + "version": "2.15.1", + "license": "MIT", + "dependencies": { + "fast-fifo": "^1.1.0", + "queue-tick": "^1.0.1" + } + }, + "node_modules/string-length": { + "version": "4.0.2", + "dev": true, + "license": "MIT", + "dependencies": { + "char-regex": "^1.0.2", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/string-width": { + "version": "4.2.3", + "license": "MIT", + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-ansi": { + "version": "6.0.1", + "license": "MIT", + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-bom": { + "version": "4.0.0", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-final-newline": { + "version": "2.0.0", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/strip-json-comments": { + "version": "3.1.1", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/supports-color": { + "version": "7.2.0", + "dev": true, + "license": "MIT", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/supports-preserve-symlinks-flag": { + "version": "1.0.0", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/tar-fs": { + "version": "3.0.4", + "license": "MIT", + "dependencies": { + "mkdirp-classic": "^0.5.2", + "pump": "^3.0.0", + "tar-stream": "^3.1.5" + } + }, + "node_modules/tar-stream": { + "version": "3.1.6", + "license": "MIT", + "dependencies": { + "b4a": "^1.6.4", + "fast-fifo": "^1.2.0", + "streamx": "^2.15.0" + } + }, + "node_modules/test-exclude": { + "version": "6.0.0", + "dev": true, + "license": "ISC", + "dependencies": { + "@istanbuljs/schema": "^0.1.2", + "glob": "^7.1.4", + "minimatch": "^3.0.4" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/through": { + "version": "2.3.8", + "license": "MIT" + }, + "node_modules/tmpl": { + "version": "1.0.5", + "dev": true, + "license": "BSD-3-Clause" + }, + "node_modules/to-fast-properties": { + "version": "2.0.0", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/to-regex-range": { + "version": "5.0.1", + "dev": true, + "license": "MIT", + "dependencies": { + "is-number": "^7.0.0" + }, + "engines": { + "node": ">=8.0" + } + }, + "node_modules/tr46": { + "version": "0.0.3", + "license": "MIT" + }, + "node_modules/tree-kill": { + "version": "1.2.2", + "dev": true, + "license": "MIT", + "bin": { + "tree-kill": "cli.js" + } + }, + "node_modules/ts-jest": { + "version": "29.1.1", + "dev": true, + "license": "MIT", + "dependencies": { + "bs-logger": "0.x", + "fast-json-stable-stringify": "2.x", + "jest-util": "^29.0.0", + "json5": "^2.2.3", + "lodash.memoize": "4.x", + "make-error": "1.x", + "semver": "^7.5.3", + "yargs-parser": "^21.0.1" + }, + "bin": { + "ts-jest": "cli.js" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "@babel/core": ">=7.0.0-beta.0 <8", + "@jest/types": "^29.0.0", + "babel-jest": "^29.0.0", + "jest": "^29.0.0", + "typescript": ">=4.3 <6" + }, + "peerDependenciesMeta": { + "@babel/core": { + "optional": true + }, + "@jest/types": { + "optional": true + }, + "babel-jest": { + "optional": true + }, + "esbuild": { + "optional": true + } + } + }, + "node_modules/ts-jest/node_modules/lru-cache": { + "version": "6.0.0", + "dev": true, + "license": "ISC", + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/ts-jest/node_modules/semver": { + "version": "7.5.4", + "dev": true, + "license": "ISC", + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/ts-jest/node_modules/yallist": { + "version": "4.0.0", + "dev": true, + "license": "ISC" + }, + "node_modules/ts-node": { + "version": "10.9.1", + "dev": true, + "license": "MIT", + "dependencies": { + "@cspotcode/source-map-support": "^0.8.0", + "@tsconfig/node10": "^1.0.7", + "@tsconfig/node12": "^1.0.7", + "@tsconfig/node14": "^1.0.0", + "@tsconfig/node16": "^1.0.2", + "acorn": "^8.4.1", + "acorn-walk": "^8.1.1", + "arg": "^4.1.0", + "create-require": "^1.1.0", + "diff": "^4.0.1", + "make-error": "^1.1.1", + "v8-compile-cache-lib": "^3.0.1", + "yn": "3.1.1" + }, + "bin": { + "ts-node": "dist/bin.js", + "ts-node-cwd": "dist/bin-cwd.js", + "ts-node-esm": "dist/bin-esm.js", + "ts-node-script": "dist/bin-script.js", + "ts-node-transpile-only": "dist/bin-transpile.js", + "ts-script": "dist/bin-script-deprecated.js" + }, + "peerDependencies": { + "@swc/core": ">=1.2.50", + "@swc/wasm": ">=1.2.50", + "@types/node": "*", + "typescript": ">=2.7" + }, + "peerDependenciesMeta": { + "@swc/core": { + "optional": true + }, + "@swc/wasm": { + "optional": true + } + } + }, + "node_modules/tslib": { + "version": "2.6.2", + "license": "0BSD" + }, + "node_modules/type-detect": { + "version": "4.0.8", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/type-fest": { + "version": "0.21.3", + "dev": true, + "license": "(MIT OR CC0-1.0)", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/typescript": { + "version": "5.2.2", + "dev": true, + "license": "Apache-2.0", + "peer": true, + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=14.17" + } + }, + "node_modules/unbzip2-stream": { + "version": "1.4.3", + "license": "MIT", + "dependencies": { + "buffer": "^5.2.1", + "through": "^2.3.8" + } + }, + "node_modules/universalify": { + "version": "0.1.2", + "license": "MIT", + "engines": { + "node": ">= 4.0.0" + } + }, + "node_modules/update-browserslist-db": { + "version": "1.0.11", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "escalade": "^3.1.1", + "picocolors": "^1.0.0" + }, + "bin": { + "update-browserslist-db": "cli.js" + }, + "peerDependencies": { + "browserslist": ">= 4.21.0" + } + }, + "node_modules/v8-compile-cache-lib": { + "version": "3.0.1", + "dev": true, + "license": "MIT" + }, + "node_modules/v8-to-istanbul": { + "version": "9.1.0", + "dev": true, + "license": "ISC", + "dependencies": { + "@jridgewell/trace-mapping": "^0.3.12", + "@types/istanbul-lib-coverage": "^2.0.1", + "convert-source-map": "^1.6.0" + }, + "engines": { + "node": ">=10.12.0" + } + }, + "node_modules/v8-to-istanbul/node_modules/convert-source-map": { + "version": "1.9.0", + "dev": true, + "license": "MIT" + }, + "node_modules/wait-on": { + "version": "7.0.1", + "dev": true, + "license": "MIT", + "dependencies": { + "axios": "^0.27.2", + "joi": "^17.7.0", + "lodash": "^4.17.21", + "minimist": "^1.2.7", + "rxjs": "^7.8.0" + }, + "bin": { + "wait-on": "bin/wait-on" + }, + "engines": { + "node": ">=12.0.0" + } + }, + "node_modules/walker": { + "version": "1.0.8", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "makeerror": "1.0.12" + } + }, + "node_modules/webidl-conversions": { + "version": "3.0.1", + "license": "BSD-2-Clause" + }, + "node_modules/whatwg-url": { + "version": "5.0.0", + "license": "MIT", + "dependencies": { + "tr46": "~0.0.3", + "webidl-conversions": "^3.0.0" + } + }, + "node_modules/which": { + "version": "2.0.2", + "dev": true, + "license": "ISC", + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/wrap-ansi": { + "version": "7.0.0", + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } + }, + "node_modules/wrappy": { + "version": "1.0.2", + "license": "ISC" + }, + "node_modules/write-file-atomic": { + "version": "4.0.2", + "dev": true, + "license": "ISC", + "dependencies": { + "imurmurhash": "^0.1.4", + "signal-exit": "^3.0.7" + }, + "engines": { + "node": "^12.13.0 || ^14.15.0 || >=16.0.0" + } + }, + "node_modules/ws": { + "version": "8.13.0", + "license": "MIT", + "engines": { + "node": ">=10.0.0" + }, + "peerDependencies": { + "bufferutil": "^4.0.1", + "utf-8-validate": ">=5.0.2" + }, + "peerDependenciesMeta": { + "bufferutil": { + "optional": true + }, + "utf-8-validate": { + "optional": true + } + } + }, + "node_modules/y18n": { + "version": "5.0.8", + "license": "ISC", + "engines": { + "node": ">=10" + } + }, + "node_modules/yallist": { + "version": "3.1.1", + "dev": true, + "license": "ISC" + }, + "node_modules/yargs": { + "version": "17.7.2", + "dev": true, + "license": "MIT", + "dependencies": { + "cliui": "^8.0.1", + "escalade": "^3.1.1", + "get-caller-file": "^2.0.5", + "require-directory": "^2.1.1", + "string-width": "^4.2.3", + "y18n": "^5.0.5", + "yargs-parser": "^21.1.1" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/yargs-parser": { + "version": "21.1.1", + "license": "ISC", + "engines": { + "node": ">=12" + } + }, + "node_modules/yauzl": { + "version": "2.10.0", + "license": "MIT", + "dependencies": { + "buffer-crc32": "~0.2.3", + "fd-slicer": "~1.1.0" + } + }, + "node_modules/yn": { + "version": "3.1.1", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/yocto-queue": { + "version": "0.1.0", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + } + } +} diff --git a/tests/e2e/package.json b/tests/e2e/package.json new file mode 100644 index 000000000..9ed98dbb2 --- /dev/null +++ b/tests/e2e/package.json @@ -0,0 +1,25 @@ +{ + "name": "e2e", + "version": "1.0.0", + "description": "e2e tests", + "main": "index.js", + "scripts": { + "test": "jest" + }, + "author": "casper", + "license": "ISC", + "type": "module", + "devDependencies": { + "@types/jest": "^29.5.4", + "@types/puppeteer": "^7.0.4", + "jest": "^29.6.4", + "jest-puppeteer": "^9.0.0", + "ts-jest": "^29.1.1", + "ts-node": "^10.9.1" + }, + "dependencies": { + "puppeteer": "^21.1.1", + "casper-rust-wasm-sdk": "file:../../pkg-nodejs", + "dotenv": "^16.3.1" + } +} \ No newline at end of file diff --git a/tests/e2e/puppeteer/config.ts b/tests/e2e/puppeteer/config.ts new file mode 100644 index 000000000..f28be3ebc --- /dev/null +++ b/tests/e2e/puppeteer/config.ts @@ -0,0 +1,39 @@ +const dotenv = require('dotenv'); +dotenv.config(); + +export const key_name_default = 'secret_key.pem'; +export const key_path_default = '../../../../NCTL/casper-node/utils/nctl/assets/net-1/users/user-1/'; +export const node_address_default = 'http://localhost:11101'; +export const app_address_default = 'http://localhost:4200'; +export const chain_name_default = 'casper-net-1'; + +export const key_name = process.env.KEY_NAME || key_name_default; +export const key_path = process.env.KEY_PATH || key_path_default; +export const node_address = process.env.NODE_ADDRESS || node_address_default; +export const app_address = process.env.APP_ADDRESS || app_address_default; +export const chain_name = process.env.CHAIN_NAME || chain_name_default; + +export const payment_amount = '5500000000'; +export const transfer_amount = '2500000000'; +export const entrypoint = 'mint'; +export const contract_hello = 'hello.wasm'; +export const contract_cep78 = 'cep78.wasm'; +export const payment_amount_contract_cep78 = '300000000000'; +export const test_hello_key = 'test_hello_key'; +export const contract_cep78_key = 'cep78_contract_hash_enhanced-nft-1'; +export const collection_name = 'enhanced-nft-1'; +export const args_simple = + `key-name:String='${test_hello_key}',message:String='Hello Casper'`; +export const args_json = `[ +{"name": "collection_name", "type": "String", "value": "${collection_name}"}, +{"name": "collection_symbol", "type": "String", "value": "ENFT-1"}, +{"name": "total_token_supply", "type": "U64", "value": 10}, +{"name": "ownership_mode", "type": "U8", "value": 0}, +{"name": "nft_kind", "type": "U8", "value": 1}, +{"name": "allow_minting", "type": "Bool", "value": true}, +{"name": "owner_reverse_lookup_mode", "type": "U8", "value": 0}, +{"name": "nft_metadata_kind", "type": "U8", "value": 2}, +{"name": "identifier_mode", "type": "U8", "value": 0}, +{"name": "metadata_mutability", "type": "U8", "value": 0}, +{"name": "events_mode", "type": "U8", "value": 1} +]`; diff --git a/tests/e2e/puppeteer/helpers.ts b/tests/e2e/puppeteer/helpers.ts new file mode 100644 index 000000000..b06a8ecaf --- /dev/null +++ b/tests/e2e/puppeteer/helpers.ts @@ -0,0 +1,203 @@ +const fs = require('fs'); +const path = require('path'); +const puppeteer = require('puppeteer'); +import * as config from './config'; + +const { Browser, Page } = puppeteer; + +const casper_sdk = require('casper-rust-wasm-sdk'); +const { SDK, privateToPublicKey, PublicKey } = casper_sdk; + +export const variables = { + browser: undefined as typeof Browser | undefined, + page: undefined as typeof Page | undefined, + state_root_hash_default: '', + private_key: '', + account: '', + account_hash: '', + target: '', + block_height: '', + block_hash: '', + deploy_hash: '', + dictionary_key: '', + dictionary_uref: '', + contract_cep78_hash: '', + delete_key_at_root_after_test: false, + sdk: undefined as typeof SDK | undefined, +}; + +export async function clear() { + await variables.page.waitForSelector('[e2e-id="clear result"]'); + await variables.page.click('[e2e-id="clear result"]'); + await variables.page.waitForFunction(() => !document.querySelector('[e2e-id="clear result"]')); + await delay(100); + let result = await variables.page.evaluate(() => { + return document.querySelector('[e2e-id="result"]')?.textContent; + }); + expect(result).toBeUndefined(); +} + +export async function clearInput(id: string) { + await variables.page.waitForSelector(id); + await variables.page.$eval(id, (input: { value: string; }) => { + input.value = ''; + }); + await variables.page.$eval(id, (e: { blur: () => any; }) => e.blur()); +} + +export async function submit() { + await variables.page.waitForSelector('[e2e-id="submit"]'); + await variables.page.click('[e2e-id="submit"]'); +} + +export async function sign() { + await variables.page.waitForSelector('[e2e-id="sign"]'); + await variables.page.click('[e2e-id="sign"]'); +} + +export async function getResult() { + await variables.page.waitForSelector('[e2e-id="result"]'); + const result = await variables.page.evaluate(() => { + return document.querySelector('[e2e-id="result"]')?.textContent; + }); + expect(result).toBeDefined(); + return result; +} + +export async function seletAction(action: string) { + await variables.page.waitForSelector('[e2e-id="state_root_hash"]'); + await variables.page.waitForSelector('[e2e-id="selectActionElt"]'); + await variables.page.select('[e2e-id="selectActionElt"]', action); + await variables.page.waitForSelector('[e2e-id="selectActionElt"]'); + const action_selected = await variables.page.evaluate(() => { + return (document.querySelector('[e2e-id="selectActionElt"]') as HTMLSelectElement).value; + }); + expect(action_selected).toBe(action); +} + +export async function setPrivateKey() { + await variables.page.waitForSelector('[e2e-id="privateKeyElt"]'); + const elementHandle = await variables.page.$('[e2e-id="privateKeyElt"]'); + const resolvedPath = path.resolve(__dirname, '../', config.key_name); + if (fs.existsSync(resolvedPath)) { + await elementHandle.uploadFile(resolvedPath); + } else { + console.error(`File [resolvedPath} does not exist.`); + } + await variables.page.waitForSelector('[e2e-id="publicKeyElt"]'); + await variables.page.waitForSelector('[e2e-id="main_purse"]'); + await variables.page.waitForSelector('[e2e-id="account_hash"]'); +} + +export async function setWasm(file_name: string) { + await variables.page.waitForSelector('[e2e-id="wasmElt"]'); + const elementHandle = await variables.page.$('[e2e-id="wasmElt"]'); + const resolvedPath = path.resolve(__dirname, '../../wasm', file_name); + if (fs.existsSync(resolvedPath)) { + await elementHandle.uploadFile(resolvedPath); + } else { + console.error(`File [resolvedPath} does not exist.`); + } + await variables.page.waitForSelector('[e2e-id="wasmName"]'); + const name = await variables.page.evaluate(() => { + return document.querySelector('[e2e-id="wasmName"]')?.textContent; + }); + expect(name).toContain(file_name); +} + +export async function screenshot() { + await variables.page.screenshot({ path: "test.png" }); +} + +export function delay(time: number | undefined) { + return new Promise(function (resolve) { + setTimeout(resolve, time); + }); +} + +export async function setupFixtures() { + variables.sdk = new SDK(); + + // User 1 as target for default account + let copy_key_to_root_folder = true; + variables.private_key = readPEMFile(`${config.key_path}${config.key_name}`, copy_key_to_root_folder); + variables.account = privateToPublicKey(variables.private_key); + + // User 2 as target for transfers etc + const key_path_target = config.key_path.replace('user-1', 'user-2'); + const private_key_target = readPEMFile(`${key_path_target}${config.key_name}`); + variables.target = privateToPublicKey(private_key_target); + + if (!variables.account) { + console.error('Missing account'); + } + let public_key = new PublicKey(variables.account); + if (!public_key) { + console.error('Missing public_key'); + } + variables.account_hash = public_key.toAccountHash().toFormattedString(); + get_block(); + if (!variables.account_hash) { + console.error('Missing account_hash'); + } + get_state_root_hash(); +} + +export function deleteFile(filePathToDelete: string) { + try { + if (fs.existsSync(filePathToDelete)) { + fs.unlinkSync(filePathToDelete); + console.info(`Deleted file: ${filePathToDelete}`); + } else { + console.info(`File not found: ${filePathToDelete}`); + } + } catch (error) { + console.error(`Error deleting file: ${filePathToDelete}`, error); + } +} + +export async function get_state_root_hash() { + const get_state_root_hash_options = variables.sdk.get_state_root_hash_options({ + node_address: config.node_address + }); + const get_state_root_hash_result = await variables.sdk.get_state_root_hash(get_state_root_hash_options); + variables.state_root_hash_default = get_state_root_hash_result?.state_root_hash.toString(); +} + +function readPEMFile(key_path?: string, copy?: boolean): string { + let pemFilePath = key_path ? path.resolve(__dirname, key_path) : null; + variables.delete_key_at_root_after_test = true; + if (!pemFilePath || !fs.existsSync(pemFilePath)) { + pemFilePath = path.resolve(__dirname, config.key_name); + variables.delete_key_at_root_after_test = false; + } + try { + const data = fs.readFileSync(pemFilePath, 'utf8'); + if (copy) { + const copyFilePath = path.resolve(__dirname, '../', config.key_name); + copyFile(pemFilePath, copyFilePath); + } + return data; + } catch (error) { + console.error('Error:', error); + return ""; + } +} + +function copyFile(src: string, dest: string) { + try { + fs.copyFileSync(src, dest); + console.info(`Copied ${src} to ${dest}`); + } catch (error) { + console.error(`Error copying ${src} to ${dest}:`, error); + } +} + +async function get_block() { + const chain_get_block_options = variables.sdk.get_block_options({ + node_address: config.node_address + }); + const block_result = await variables.sdk.get_block(chain_get_block_options); + variables.block_hash = block_result?.block?.hash; + variables.block_height = block_result?.block?.header.height.toString(); +} \ No newline at end of file diff --git a/tests/e2e/puppeteer/tests.spec.ts b/tests/e2e/puppeteer/tests.spec.ts new file mode 100644 index 000000000..747fa39f3 --- /dev/null +++ b/tests/e2e/puppeteer/tests.spec.ts @@ -0,0 +1,1288 @@ +import * as config from './config'; +const path = require('path'); +import { setupFixtures, variables as test, deleteFile, getResult, clear, clearInput, setPrivateKey, seletAction, setWasm, submit, get_state_root_hash, sign, screenshot, delay } from './helpers'; +const puppeteer = require('puppeteer'); + +describe('Angular App Tests', () => { + beforeAll(async () => { + setupFixtures(); + test.browser = await puppeteer.launch({ headless: 'new' }); + test.page = await test.browser.newPage(); + await test.page.goto(config.app_address); + await test.page.setViewport({ + width: 1920, + height: 1080, + }); + // page + // .on('console', (message: { type: () => string; text: () => any; }) => + // console.log(`${message.type().substr(0, 3).toUpperCase()} ${message.text()}`)) + // .on('pageerror', (message: any) => console.log(message)) + // .on('requestfailed', (request: { failure: () => { (): any; new(): any; errorText: any; }; url: () => any; }) => + // console.log(`${request.failure().errorText} ${request.url()}`)); + }); + + describe('Loading', () => { + it('should have a title', async () => { + const title = await test.page.title(); + expect(title).toBe('Casper Client'); + }); + + it('should have a state_root_hash', async () => { + await test.page.waitForSelector('[e2e-id="state_root_hash"]'); + const state_root_hash = await test.page.evaluate(() => { + return document.querySelector('[e2e-id="state_root_hash"]')?.textContent; + }); + const pattern = /^state root hash is ([0-9a-f]{64})$/i; + expect(state_root_hash).toMatch(pattern); + test.state_root_hash_default = (state_root_hash.match(pattern) || [])[1] || ''; + expect(test.state_root_hash_default).toBeDefined(); + }); + + it('should have action to get_node_status by default', async () => { + await test.page.waitForSelector('[e2e-id="selectActionElt"]'); + const action = await test.page.evaluate(() => { + return (document.querySelector('[e2e-id="selectActionElt"]') as HTMLSelectElement).value; + }); + expect(action).toBe('get_node_status'); + await getResult(); + }); + + it('should have chain_name and node_address', async () => { + await test.page.waitForSelector('[e2e-id="selectActionElt"]'); + const chainname = await test.page.evaluate(() => { + return document.querySelector('[e2e-id="chain_name"]')?.textContent; + }); + const node_address = await test.page.evaluate(() => { + return document.querySelector('[e2e-id="node_address"]')?.textContent; + }); + expect(chainname).toBe(config.chain_name); + expect(node_address).toBe(config.app_address); + }); + + it('should clear result', async () => { + await test.page.waitForSelector('[e2e-id="clear result"]'); + let result = await test.page.evaluate(() => { + return document.querySelector('[e2e-id="result"]')?.textContent; + }); + expect(result).toBeDefined(); + await clear(); + result = await test.page.evaluate(() => { + return document.querySelector('[e2e-id="result"]')?.textContent; + }); + expect(result).toBeUndefined(); + }); + }); + + describe('Setting public key and get account info', () => { + it('should set public key', async () => { + await test.page.waitForSelector('[e2e-id="publicKeyElt"]'); + await clearInput('[e2e-id="publicKeyElt"]'); + await test.page.type('[e2e-id="publicKeyElt"]', test.account); + await test.page.$eval('[e2e-id="publicKeyElt"]', (e: { blur: () => any; }) => e.blur()); + const account_input = await test.page.evaluate(() => { + return (document.querySelector('[e2e-id="publicKeyElt"]') as HTMLInputElement).value; + }); + const pattern = /^[0-9a-f]{66}$/i; + expect(account_input).toMatch(pattern); + await test.page.waitForSelector('[e2e-id="main_purse"]'); + await test.page.waitForSelector('[e2e-id="account_hash"]'); + }); + + it('should have a main purse uref', async () => { + await test.page.waitForSelector('[e2e-id="main_purse"]'); + const main_purse = await test.page.evaluate(() => { + return document.querySelector('[e2e-id="main_purse"]')?.textContent; + }); + const pattern = /^main purse is uref-[0-9a-f\-]{68}$/i; + expect(main_purse).toMatch(pattern); + }); + + it('should have an account hash', async () => { + await test.page.waitForSelector('[e2e-id="account_hash"]'); + const account_hash = await test.page.evaluate(() => { + return document.querySelector('[e2e-id="account_hash"]')?.textContent; + }); + const pattern = /^account hash is account-hash-[0-9a-f]{64}$/i; + expect(account_hash).toMatch(pattern); + }); + }); + + describe('Contract install', () => { + beforeEach(async () => { + await test.page.reload(); + await getResult(); + await seletAction('install'); + await setPrivateKey(); + await test.page.waitForSelector('[e2e-id="paymentAmountElt"]'); + await test.page.waitForSelector('[e2e-id="argsSimpleElt"]'); + await test.page.waitForSelector('[e2e-id="argsJsonElt"]'); + }); + + it('should install hello contract', async () => { + await test.page.type('[e2e-id="paymentAmountElt"]', config.payment_amount); + await test.page.type('[e2e-id="argsSimpleElt"]', config.args_simple); + await setWasm(config.contract_hello); + await submit(); + await test.page.waitForSelector('[e2e-id="result"]'); + let deploy = await test.page.evaluate(() => { + return document.querySelector('[e2e-id="result"]')?.textContent; + }); + expect(deploy).toBeDefined(); + deploy = await test.page.evaluate(() => { + return document.querySelector('[e2e-id="result"]')?.textContent; + }); + deploy = JSON.parse(deploy); + expect(deploy?.deploy_hash).toBeDefined(); + test.deploy_hash = deploy.deploy_hash; + }); + + it('should install cep78 contract', async () => { + await test.page.type('[e2e-id="paymentAmountElt"]', config.payment_amount_contract_cep78); + await test.page.type('[e2e-id="argsJsonElt"]', config.args_json); + await setWasm(config.contract_cep78); + await submit(); + await test.page.waitForSelector('[e2e-id="result"]'); + let deploy = await test.page.evaluate(() => { + return document.querySelector('[e2e-id="result"]')?.textContent; + }); + expect(deploy).toBeDefined(); + deploy = await test.page.evaluate(() => { + return document.querySelector('[e2e-id="result"]')?.textContent; + }); + deploy = JSON.parse(deploy); + expect(deploy?.deploy_hash).toBeDefined(); + test.deploy_hash = deploy.deploy_hash; + }); + }); + + describe('Rpc call get_account', () => { + beforeAll(async () => { + await test.page.reload(); + await getResult(); + await seletAction('get_account'); + }); + afterEach(async () => { + await clear(); + }); + + it('should get_account from public key', async () => { + await test.page.waitForSelector('[e2e-id="accountIdentifierElt"]'); + await clearInput('[e2e-id="accountIdentifierElt"]'); + await test.page.type('[e2e-id="accountIdentifierElt"]', test.account); + await submit(); + const result = await getResult(); + const pattern = /\"account-hash-[0-9a-f]{64}\"/i; + expect(result).toMatch(pattern); + }); + + it('should get_account from account hash', async () => { + await test.page.waitForSelector('[e2e-id="accountIdentifierElt"]'); + await clearInput('[e2e-id="accountIdentifierElt"]'); + await test.page.type('[e2e-id="accountIdentifierElt"]', test.account_hash); + await submit(); + const result = await getResult(); + const pattern = new RegExp(`"${test.account_hash}"`, 'i'); + expect(result).toMatch(pattern); + }); + + it('should get_account from public key with block', async () => { + await test.page.waitForSelector('[e2e-id="accountIdentifierElt"]'); + await clearInput('[e2e-id="accountIdentifierElt"]'); + await test.page.type('[e2e-id="accountIdentifierElt"]', test.account); + await test.page.waitForSelector('[e2e-id="blockIdentifierHeightElt"]'); + await test.page.type('[e2e-id="blockIdentifierHeightElt"]', test.block_height); + await submit(); + let result = await getResult(); + const pattern = /\"account-hash-[0-9a-f]{64}\"/i; + expect(result).toMatch(pattern); + await clear(); + await clearInput('[e2e-id="blockIdentifierHeightElt"]'); + await test.page.type('[e2e-id="blockIdentifierHashElt"]', test.block_hash); + await submit(); + result = await getResult(); + expect(result).toMatch(pattern); + }); + }); + + describe('Rpc call get_auction_info', () => { + beforeAll(async () => { + await test.page.reload(); + await getResult(); + await seletAction('get_auction_info'); + }); + afterEach(async () => { + await clear(); + }); + + it('should get_auction_info', async () => { + await submit(); + await getResult(); + }); + }); + + describe('Rpc call get_balance', () => { + beforeAll(async () => { + await test.page.reload(); + await getResult(); + await test.page.waitForSelector('[e2e-id="publicKeyElt"]'); + await clearInput('[e2e-id="publicKeyElt"]'); + await test.page.type('[e2e-id="publicKeyElt"]', test.account); + await test.page.$eval('[e2e-id="publicKeyElt"]', (e: { blur: () => any; }) => e.blur()); + await test.page.waitForSelector('[e2e-id="main_purse"]'); + await seletAction('get_balance'); + await test.page.waitForSelector('[e2e-id="purseUrefElt"]'); + await test.page.waitForSelector('[e2e-id="stateRootHashElt"]'); + }); + + afterEach(async () => { + await clear(); + }); + + it('should get_balance with state root hash', async () => { + await test.page.type('[e2e-id="stateRootHashElt"]', test.state_root_hash_default); + let main_purse = await test.page.evaluate(() => { + return (document.querySelector('[e2e-id="purseUrefElt"]') as HTMLInputElement).value; + }); + expect(main_purse).toBeDefined(); + await submit(); + await getResult(); + }); + + it('should get_balance without state root hash', async () => { + await clearInput('[e2e-id="stateRootHashElt"]'); + await submit(); + await getResult(); + }); + }); + + describe('Rpc call get_block', () => { + beforeAll(async () => { + await test.page.reload(); + await getResult(); + await seletAction('get_block'); + }); + afterEach(async () => { + await clear(); + }); + + it('should get_block', async () => { + await submit(); + await getResult(); + }); + + it('should get_block with block height', async () => { + await test.page.waitForSelector('[e2e-id="blockIdentifierHeightElt"]'); + await clearInput('[e2e-id="blockIdentifierHeightElt"]'); + await test.page.type('[e2e-id="blockIdentifierHeightElt"]', test.block_height); + await submit(); + await getResult(); + }); + + it('should get_block with block hash', async () => { + await clearInput('[e2e-id="blockIdentifierHeightElt"]'); + await clearInput('[e2e-id="blockIdentifierHashElt"]'); + await test.page.type('[e2e-id="blockIdentifierHashElt"]', test.block_hash); + await submit(); + await getResult(); + }); + }); + + describe('Rpc call get_block_transfers', () => { + beforeAll(async () => { + await test.page.reload(); + await getResult(); + await seletAction('get_block_transfers'); + }); + afterEach(async () => { + await clear(); + }); + + it('should get_block_transfers', async () => { + await submit(); + await getResult(); + }); + + it('should get_block_transfers with block height', async () => { + await test.page.waitForSelector('[e2e-id="blockIdentifierHeightElt"]'); + await clearInput('[e2e-id="blockIdentifierHeightElt"]'); + await test.page.type('[e2e-id="blockIdentifierHeightElt"]', test.block_height); + await submit(); + await getResult(); + }); + + it('should get_block_transfers with block hash', async () => { + await clearInput('[e2e-id="blockIdentifierHeightElt"]'); + await clearInput('[e2e-id="blockIdentifierHashElt"]'); + await test.page.type('[e2e-id="blockIdentifierHashElt"]', test.block_hash); + await submit(); + await getResult(); + }); + }); + + describe('Rpc call get_chainspec', () => { + beforeAll(async () => { + await test.page.reload(); + await getResult(); + await seletAction('get_chainspec'); + }); + afterEach(async () => { + await clear(); + }); + it('should get_chainspec', async () => { + await submit(); + await getResult(); + }); + }); + + describe('Rpc call get_era_info', () => { + beforeAll(async () => { + await test.page.reload(); + await getResult(); + await seletAction('get_era_info'); + }); + + afterEach(async () => { + await clear(); + }); + + it('should get_era_info', async () => { + await submit(); + await getResult(); + }); + + it('should get_era_info with block height', async () => { + await test.page.waitForSelector('[e2e-id="blockIdentifierHeightElt"]'); + await clearInput('[e2e-id="blockIdentifierHeightElt"]'); + await test.page.type('[e2e-id="blockIdentifierHeightElt"]', test.block_height); + await submit(); + await getResult(); + }); + + it('should get_era_info with block hash', async () => { + await test.page.waitForSelector('[e2e-id="blockIdentifierHeightElt"]'); + await test.page.waitForSelector('[e2e-id="blockIdentifierHashElt"]'); + await clearInput('[e2e-id="blockIdentifierHeightElt"]'); + await clearInput('[e2e-id="blockIdentifierHashElt"]'); + await test.page.type('[e2e-id="blockIdentifierHashElt"]', test.block_hash); + await submit(); + await getResult(); + }); + }); + + describe('Rpc call get_era_summary', () => { + beforeAll(async () => { + await test.page.reload(); + await getResult(); + await seletAction('get_era_summary'); + await test.page.waitForSelector('[e2e-id="blockIdentifierHeightElt"]'); + await test.page.waitForSelector('[e2e-id="blockIdentifierHashElt"]'); + }); + afterEach(async () => { + await clear(); + }); + it('should get_era_summary', async () => { + await submit(); + await getResult(); + }); + + it('should get_era_summary with block height', async () => { + await test.page.waitForSelector('[e2e-id="blockIdentifierHeightElt"]'); + await clearInput('[e2e-id="blockIdentifierHeightElt"]'); + await test.page.type('[e2e-id="blockIdentifierHeightElt"]', test.block_height); + await submit(); + await getResult(); + }); + + it('should get_era_summary with block hash', async () => { + await test.page.waitForSelector('[e2e-id="blockIdentifierHeightElt"]'); + await test.page.waitForSelector('[e2e-id="blockIdentifierHashElt"]'); + await clearInput('[e2e-id="blockIdentifierHeightElt"]'); + await clearInput('[e2e-id="blockIdentifierHashElt"]'); + await test.page.type('[e2e-id="blockIdentifierHashElt"]', test.block_hash); + await submit(); + await getResult(); + }); + }); + + describe('Rpc call get_node_status', () => { + beforeAll(async () => { + await test.page.reload(); + await getResult(); + await seletAction('get_node_status'); + }); + afterEach(async () => { + await clear(); + }); + it('should get_node_status', async () => { + await submit(); + await getResult(); + }); + }); + + describe('Rpc call get_peers', () => { + beforeAll(async () => { + await test.page.reload(); + await getResult(); + await seletAction('get_peers'); + }); + afterEach(async () => { + await clear(); + }); + + it('should get_peers', async () => { + await submit(); + await getResult(); + }); + }); + + describe('Rpc call get_state_root_hash', () => { + beforeAll(async () => { + await test.page.reload(); + await getResult(); + await seletAction('get_state_root_hash'); + }); + afterEach(async () => { + await clear(); + }); + it('should get_state_root_hash', async () => { + await submit(); + await getResult(); + }); + }); + + describe('Rpc call get_validator_changes', () => { + beforeAll(async () => { + await test.page.reload(); + await getResult(); + await seletAction('get_validator_changes'); + }); + afterEach(async () => { + await clear(); + }); + it('should get_validator_changes', async () => { + await submit(); + await getResult(); + }); + }); + + describe('Rpc call list_rpcs', () => { + beforeAll(async () => { + await test.page.reload(); + await getResult(); + await seletAction('list_rpcs'); + }); + afterEach(async () => { + await clear(); + }); + it('should list_rpcs', async () => { + await submit(); + await getResult(); + }); + }); + + describe('Rpc call query_balance', () => { + beforeAll(async () => { + await test.page.reload(); + await getResult(); + await test.page.waitForSelector('[e2e-id="publicKeyElt"]'); + await clearInput('[e2e-id="publicKeyElt"]'); + await test.page.type('[e2e-id="publicKeyElt"]', test.account); + await test.page.$eval('[e2e-id="publicKeyElt"]', (e: { blur: () => any; }) => e.blur()); + await test.page.waitForSelector('[e2e-id="main_purse"]'); + await seletAction('query_balance'); + await test.page.waitForSelector('[e2e-id="stateRootHashElt"]'); + await test.page.waitForSelector('[e2e-id="purseIdentifierElt"]'); + }); + + afterEach(async () => { + await clear(); + }); + + it('should query_balance with purse identifier', async () => { + await test.page.type('[e2e-id="stateRootHashElt"]', test.state_root_hash_default); + await submit(); + await getResult(); + }); + + it('should query_balance without state root hash', async () => { + await clearInput('[e2e-id="stateRootHashElt"]'); + await submit(); + await getResult(); + }); + + it('should query_balance with public key', async () => { + await clearInput('[e2e-id="purseIdentifierElt"]'); + await test.page.type('[e2e-id="purseIdentifierElt"]', test.account); + await submit(); + await getResult(); + }); + + it('should query_balance with account hash', async () => { + await clearInput('[e2e-id="purseIdentifierElt"]'); + await test.page.type('[e2e-id="purseIdentifierElt"]', test.account_hash); + await submit(); + await getResult(); + }); + + it('should query_balance with block height', async () => { + await test.page.waitForSelector('[e2e-id="blockIdentifierHeightElt"]'); + await clearInput('[e2e-id="blockIdentifierHeightElt"]'); + await test.page.type('[e2e-id="blockIdentifierHeightElt"]', test.block_height); + await submit(); + await getResult(); + }); + + it('should query_balance with block hash', async () => { + await clearInput('[e2e-id="blockIdentifierHeightElt"]'); + await clearInput('[e2e-id="blockIdentifierHashElt"]'); + await test.page.type('[e2e-id="blockIdentifierHashElt"]', test.block_hash); + await submit(); + await getResult(); + }); + }); + + describe('Rpc call query_global_state', () => { + beforeAll(async () => { + await test.page.reload(); + await getResult(); + await test.page.waitForSelector('[e2e-id="publicKeyElt"]'); + await clearInput('[e2e-id="publicKeyElt"]'); + await test.page.type('[e2e-id="publicKeyElt"]', test.account); + await test.page.$eval('[e2e-id="publicKeyElt"]', (e: { blur: () => any; }) => e.blur()); + await test.page.waitForSelector('[e2e-id="main_purse"]'); + await seletAction('query_global_state'); + await test.page.waitForSelector('[e2e-id="stateRootHashElt"]'); + await test.page.waitForSelector('[e2e-id="queryKeyElt"]'); + await test.page.waitForSelector('[e2e-id="queryPathElt"]'); + await test.page.waitForSelector('[e2e-id="blockIdentifierHeightElt"]'); + }); + + afterEach(async () => { + await clear(); + }); + + it('should query_global_state with account key', async () => { + await test.page.type('[e2e-id="stateRootHashElt"]', test.state_root_hash_default); + await test.page.type('[e2e-id="queryKeyElt"]', test.account_hash); + await submit(); + await getResult(); + }); + + it('should query_global_state without state root hash', async () => { + await clearInput('[e2e-id="queryKeyElt"]'); + await test.page.type('[e2e-id="queryKeyElt"]', test.account_hash); + await clearInput('[e2e-id="stateRootHashElt"]'); + await submit(); + await getResult(); + }); + + it('should query_global_state with block height', async () => { + await clearInput('[e2e-id="stateRootHashElt"]'); + await clearInput('[e2e-id="blockIdentifierHeightElt"]'); + await test.page.type('[e2e-id="blockIdentifierHeightElt"]', test.block_height); + await clearInput('[e2e-id="queryKeyElt"]'); + await test.page.type('[e2e-id="queryKeyElt"]', test.account_hash); + await submit(); + await getResult(); + }); + + it('should query_global_state with block hash', async () => { + await clearInput('[e2e-id="stateRootHashElt"]'); + await clearInput('[e2e-id="blockIdentifierHeightElt"]'); + await clearInput('[e2e-id="blockIdentifierHashElt"]'); + await test.page.type('[e2e-id="blockIdentifierHashElt"]', test.block_hash); + await clearInput('[e2e-id="queryKeyElt"]'); + await test.page.type('[e2e-id="queryKeyElt"]', test.account_hash); + await submit(); + await getResult(); + }); + + it(`should query_global_state with ${config.test_hello_key}`, async () => { + await clearInput('[e2e-id="stateRootHashElt"]'); + await clearInput('[e2e-id="blockIdentifierHeightElt"]'); + await clearInput('[e2e-id="blockIdentifierHashElt"]'); + await clearInput('[e2e-id="stateRootHashElt"]'); + await test.page.type('[e2e-id="queryPathElt"]', config.test_hello_key); + await clearInput('[e2e-id="queryKeyElt"]'); + await test.page.type('[e2e-id="queryKeyElt"]', test.account_hash); + await submit(); + await getResult(); + }); + + it(`should query_global_state with nft key`, async () => { + await clearInput('[e2e-id="stateRootHashElt"]'); + await clearInput('[e2e-id="blockIdentifierHeightElt"]'); + await clearInput('[e2e-id="blockIdentifierHashElt"]'); + await clearInput('[e2e-id="stateRootHashElt"]'); + await clearInput('[e2e-id="queryKeyElt"]'); + await test.page.type('[e2e-id="queryKeyElt"]', test.account_hash); + await clearInput('[e2e-id="queryPathElt"]'); + await submit(); + await getResult(); + let result = await test.page.evaluate(() => { + return document.querySelector('[e2e-id="result"]')?.textContent; + }); + let result_json = JSON.parse(result); + expect(result_json?.stored_value.Account.named_keys).toBeDefined(); + let named_keys = result_json?.stored_value.Account.named_keys as Array<{ name: string; key: string; }>; + test.contract_cep78_hash = named_keys.find(key => key.name === config.contract_cep78_key)?.key || ''; + expect(test.contract_cep78_hash).toBeDefined(); + expect(test.contract_cep78_hash).toBeTruthy(); + await test.page.type('[e2e-id="queryPathElt"]', config.contract_cep78_key + '/collection_name'); + await clear(); + await submit(); + await getResult(); + result = await test.page.evaluate(() => { + return document.querySelector('[e2e-id="result"]')?.textContent; + }); + result_json = JSON.parse(result); + expect(result_json?.stored_value.CLValue.parsed).toEqual(config.collection_name); + }); + }); + + describe('Rpc call get_deploy', () => { + beforeAll(async () => { + await test.page.reload(); + await getResult(); + await seletAction('get_deploy'); + }); + + afterEach(async () => { + await clear(); + }); + + it('should get_deploy', async () => { + await test.page.waitForSelector('[e2e-id="deployHashElt"]'); + await clearInput('[e2e-id="deployHashElt"]'); + await test.page.type('[e2e-id="deployHashElt"]', test.deploy_hash); + await submit(); + await getResult(); + }); + }); + + describe('Contract query_contract_key', () => { + beforeEach(async () => { + await get_state_root_hash(); // refresh state root hash before querying contract keys + await test.page.reload(); + await getResult(); + await seletAction('query_contract_key'); + await test.page.waitForSelector('[e2e-id="stateRootHashElt"]'); + await test.page.waitForSelector('[e2e-id="queryKeyElt"]'); + await test.page.waitForSelector('[e2e-id="queryPathElt"]'); + }); + + afterEach(async () => { + await clear(); + }); + + it('should query_contract_key with contract hash', async () => { + await test.page.type('[e2e-id="stateRootHashElt"]', test.state_root_hash_default); + await test.page.type('[e2e-id="queryKeyElt"]', test.contract_cep78_hash); + await test.page.type('[e2e-id="queryPathElt"]', 'installer'); + await submit(); + await getResult(); + }); + + it('should query_contract_key with contract hash without state root hash', async () => { + await clearInput('[e2e-id="stateRootHashElt"]'); + await test.page.type('[e2e-id="queryKeyElt"]', test.contract_cep78_hash); + await test.page.type('[e2e-id="queryPathElt"]', 'installer'); + await submit(); + await getResult(); + }); + + it('should query_contract_key to get dictionary uref', async () => { + await test.page.waitForSelector('[e2e-id="queryKeyElt"]'); + await test.page.type('[e2e-id="queryKeyElt"]', test.contract_cep78_hash); + await submit(); + await getResult(); + const result = await test.page.evaluate(() => { + return document.querySelector('[e2e-id="result"]')?.textContent; + }); + expect(result).toBeDefined(); + let result_json = JSON.parse(result); + expect(result_json?.stored_value.Contract.named_keys).toBeDefined(); + let named_keys = result_json?.stored_value.Contract.named_keys as Array<{ name: string; key: string; }>; + test.dictionary_uref = named_keys.find(key => key.name === 'events')?.key || ''; + }); + }); + + describe('Contract call entry point', () => { + beforeEach(async () => { + await test.page.reload(); + await getResult(); + await setPrivateKey(); + await seletAction('call_entrypoint'); + await test.page.waitForSelector('[e2e-id="paymentAmountElt"]'); + await test.page.waitForSelector('[e2e-id="sessionHashElt"]'); + await test.page.waitForSelector('[e2e-id="entryPointElt"]'); + await test.page.waitForSelector('[e2e-id="argsSimpleElt"]'); + await test.page.waitForSelector('[e2e-id="argsJsonElt"]'); + }); + afterEach(async () => { + await clear(); + }); + it('should call entry point with contract hash', async () => { + await test.page.type('[e2e-id="paymentAmountElt"]', config.payment_amount); + await test.page.type('[e2e-id="sessionHashElt"]', test.contract_cep78_hash); + await test.page.type('[e2e-id="entryPointElt"]', config.entrypoint); + let call = await test.page.evaluate(() => { + return document.querySelector('[e2e-id="result"]')?.textContent; + }); + expect(call).toBeUndefined(); + await submit(); + await test.page.waitForSelector('[e2e-id="result"]'); + call = await test.page.evaluate(() => { + return document.querySelector('[e2e-id="result"]')?.textContent; + }); + expect(call).toBeDefined(); + }); + + it('should should call entry point with contract name', async () => { + await test.page.type('[e2e-id="paymentAmountElt"]', config.payment_amount); + await test.page.waitForSelector('[e2e-id="sessionNameElt"]'); + await test.page.type('[e2e-id="sessionNameElt"]', config.contract_cep78_key); + await test.page.type('[e2e-id="entryPointElt"]', config.entrypoint); + let call = await test.page.evaluate(() => { + return document.querySelector('[e2e-id="result"]')?.textContent; + }); + expect(call).toBeUndefined(); + await submit(); + await test.page.waitForSelector('[e2e-id="result"]'); + call = await test.page.evaluate(() => { + return document.querySelector('[e2e-id="result"]')?.textContent; + }); + expect(call).toBeDefined(); + }); + + it('should should call entry point with contract hash and args simple', async () => { + let args_simple_mint = + `token_meta_data:String='test_meta_data',token_owner:Key='${test.account_hash}'`; + await test.page.type('[e2e-id="paymentAmountElt"]', config.payment_amount); + await test.page.type('[e2e-id="sessionHashElt"]', test.contract_cep78_hash); + await test.page.type('[e2e-id="entryPointElt"]', config.entrypoint); + await test.page.type('[e2e-id="argsSimpleElt"]', args_simple_mint); + let call = await test.page.evaluate(() => { + return document.querySelector('[e2e-id="result"]')?.textContent; + }); + expect(call).toBeUndefined(); + await submit(); + await test.page.waitForSelector('[e2e-id="result"]'); + call = await test.page.evaluate(() => { + return document.querySelector('[e2e-id="result"]')?.textContent; + }); + expect(call).toBeDefined(); + }); + + it('should should call entry point with contract hash and args json', async () => { + let args_json_mint = `[{"name": "token_meta_data", "type": "String", "value": "test_meta_data_json"}, + {"name": "token_owner", "type": "Key", "value": "${test.account_hash}"}]`; + await test.page.type('[e2e-id="paymentAmountElt"]', config.payment_amount); + await test.page.type('[e2e-id="sessionHashElt"]', test.contract_cep78_hash); + await test.page.type('[e2e-id="entryPointElt"]', config.entrypoint); + await test.page.type('[e2e-id="argsJsonElt"]', args_json_mint); + let call = await test.page.evaluate(() => { + return document.querySelector('[e2e-id="result"]')?.textContent; + }); + expect(call).toBeUndefined(); + await submit(); + await test.page.waitForSelector('[e2e-id="result"]'); + call = await test.page.evaluate(() => { + return document.querySelector('[e2e-id="result"]')?.textContent; + }); + expect(call).toBeDefined(); + }); + + it('should should call entry point with package hash and args simple', async () => { + let args_simple_mint = + `token_meta_data:String='test_meta_data',token_owner:Key='${test.account_hash}'`; + await test.page.type('[e2e-id="paymentAmountElt"]', config.payment_amount); + await test.page.type('[e2e-id="sessionHashElt"]', test.contract_cep78_hash); + await test.page.type('[e2e-id="entryPointElt"]', config.entrypoint); + await test.page.type('[e2e-id="argsSimpleElt"]', args_simple_mint); + await test.page.waitForSelector('[e2e-id="callPackageElt"]'); + await test.page.click('[e2e-id="callPackageElt"]'); + await test.page.waitForSelector('[e2e-id="versionElt"]'); + await test.page.type('[e2e-id="versionElt"]', "1"); + let call = await test.page.evaluate(() => { + return document.querySelector('[e2e-id="result"]')?.textContent; + }); + expect(call).toBeUndefined(); + await submit(); + await test.page.waitForSelector('[e2e-id="result"]'); + call = await test.page.evaluate(() => { + return document.querySelector('[e2e-id="result"]')?.textContent; + }); + expect(call).toBeDefined(); + }); + }); + + describe('Deploy util make_deploy', () => { + beforeEach(async () => { + await test.page.reload(); + await getResult(); + await test.page.waitForSelector('[e2e-id="publicKeyElt"]'); + await clearInput('[e2e-id="publicKeyElt"]'); + await test.page.type('[e2e-id="publicKeyElt"]', test.account); + await test.page.$eval('[e2e-id="publicKeyElt"]', (e: { blur: () => any; }) => e.blur()); + await test.page.waitForSelector('[e2e-id="main_purse"]'); + await seletAction('make_deploy'); + await test.page.waitForSelector('[e2e-id="paymentAmountElt"]'); + await test.page.waitForSelector('[e2e-id="sessionHashElt"]'); + await test.page.waitForSelector('[e2e-id="entryPointElt"]'); + await test.page.waitForSelector('[e2e-id="argsSimpleElt"]'); + await test.page.waitForSelector('[e2e-id="argsJsonElt"]'); + await test.page.waitForSelector('[e2e-id="TTLElt"]'); + }); + afterEach(async () => { + await clear(); + }); + it('should make_deploy with contract hash', async () => { + await test.page.type('[e2e-id="paymentAmountElt"]', config.payment_amount); + await test.page.type('[e2e-id="sessionHashElt"]', test.contract_cep78_hash); + await test.page.type('[e2e-id="entryPointElt"]', config.entrypoint); + await submit(); + await test.page.waitForSelector('[e2e-id="result"]'); + let make_deploy = await test.page.evaluate(() => { + return document.querySelector('[e2e-id="result"]')?.textContent; + }); + expect(make_deploy).toBeDefined(); + }); + + it('should make_deploy with contract name', async () => { + await test.page.type('[e2e-id="paymentAmountElt"]', config.payment_amount); + await test.page.waitForSelector('[e2e-id="sessionNameElt"]'); + await test.page.type('[e2e-id="sessionNameElt"]', "enhanced-nft-1"); + await test.page.type('[e2e-id="entryPointElt"]', config.entrypoint); + await submit(); + await test.page.waitForSelector('[e2e-id="result"]'); + let make_deploy = await test.page.evaluate(() => { + return document.querySelector('[e2e-id="result"]')?.textContent; + }); + expect(make_deploy).toBeDefined(); + }); + + it('should make_deploy with contract hash and args simple', async () => { + await test.page.type('[e2e-id="paymentAmountElt"]', config.payment_amount); + await test.page.type('[e2e-id="sessionHashElt"]', test.contract_cep78_hash); + await test.page.type('[e2e-id="entryPointElt"]', config.entrypoint); + await test.page.type('[e2e-id="argsSimpleElt"]', config.args_simple); + await submit(); + await test.page.waitForSelector('[e2e-id="result"]'); + let make_deploy = await test.page.evaluate(() => { + return document.querySelector('[e2e-id="result"]')?.textContent; + }); + expect(make_deploy).toBeDefined(); + }); + + it('should make_deploy with contract hash and args json', async () => { + await test.page.type('[e2e-id="paymentAmountElt"]', config.payment_amount); + await test.page.type('[e2e-id="sessionHashElt"]', test.contract_cep78_hash); + await test.page.type('[e2e-id="entryPointElt"]', config.entrypoint); + await test.page.type('[e2e-id="argsJsonElt"]', config.args_json); + await submit(); + await test.page.waitForSelector('[e2e-id="result"]'); + let make_deploy = await test.page.evaluate(() => { + return document.querySelector('[e2e-id="result"]')?.textContent; + }); + expect(make_deploy).toBeDefined(); + }); + + it('should make_deploy with package hash and args simple', async () => { + await test.page.type('[e2e-id="paymentAmountElt"]', config.payment_amount); + await test.page.type('[e2e-id="sessionHashElt"]', test.contract_cep78_hash); + await test.page.type('[e2e-id="entryPointElt"]', config.entrypoint); + await test.page.type('[e2e-id="argsSimpleElt"]', config.args_simple); + await test.page.waitForSelector('[e2e-id="callPackageElt"]'); + await test.page.click('[e2e-id="callPackageElt"]'); + await test.page.waitForSelector('[e2e-id="versionElt"]'); + await test.page.type('[e2e-id="versionElt"]', "1"); + await submit(); + await test.page.waitForSelector('[e2e-id="result"]'); + let make_deploy = await test.page.evaluate(() => { + return document.querySelector('[e2e-id="result"]')?.textContent; + }); + expect(make_deploy).toBeDefined(); + }); + + it('should make_deploy without TTL', async () => { + await clearInput('[e2e-id="TTLElt"]'); + await test.page.type('[e2e-id="paymentAmountElt"]', config.payment_amount); + await test.page.type('[e2e-id="sessionHashElt"]', test.contract_cep78_hash); + await test.page.type('[e2e-id="entryPointElt"]', config.entrypoint); + await submit(); + await test.page.waitForSelector('[e2e-id="result"]'); + let make_deploy = await test.page.evaluate(() => { + return document.querySelector('[e2e-id="result"]')?.textContent; + }); + expect(make_deploy).toBeDefined(); + }); + + it('should make_deploy with module bytes', async () => { + await test.page.type('[e2e-id="paymentAmountElt"]', config.payment_amount); + await test.page.type('[e2e-id="argsSimpleElt"]', config.args_simple); + await setWasm(config.contract_hello); + await submit(); + await test.page.waitForSelector('[e2e-id="result"]'); + let make_deploy = await test.page.evaluate(() => { + return document.querySelector('[e2e-id="result"]')?.textContent; + }); + expect(make_deploy).toBeDefined(); + }); + }); + + describe('Deploy util make_transfer', () => { + beforeEach(async () => { + await test.page.reload(); + await getResult(); + await test.page.waitForSelector('[e2e-id="publicKeyElt"]'); + await clearInput('[e2e-id="publicKeyElt"]'); + await test.page.type('[e2e-id="publicKeyElt"]', test.account); + await test.page.$eval('[e2e-id="publicKeyElt"]', (e: { blur: () => any; }) => e.blur()); + await test.page.waitForSelector('[e2e-id="main_purse"]'); + await seletAction('make_transfer'); + await test.page.waitForSelector('[e2e-id="transferAmountElt"]'); + await test.page.waitForSelector('[e2e-id="targetAccountElt"]'); + }); + afterEach(async () => { + await clear(); + }); + + it('should make_transfer', async () => { + await test.page.type('[e2e-id="transferAmountElt"]', config.transfer_amount); + await test.page.type('[e2e-id="targetAccountElt"]', test.target); + await submit(); + await test.page.waitForSelector('[e2e-id="result"]'); + let make_transfer = await test.page.evaluate(() => { + return document.querySelector('[e2e-id="result"]')?.textContent; + }); + expect(make_transfer).toBeDefined(); + }); + + it('should make_transfer without TTL', async () => { + await clearInput('[e2e-id="TTLElt"]'); + await test.page.type('[e2e-id="transferAmountElt"]', config.transfer_amount); + await test.page.type('[e2e-id="targetAccountElt"]', test.target); + await submit(); + await test.page.waitForSelector('[e2e-id="result"]'); + let make_transfer = await test.page.evaluate(() => { + return document.querySelector('[e2e-id="result"]')?.textContent; + }); + expect(make_transfer).toBeDefined(); + }); + }); + + describe('Deploy util sign_deploy', () => { + beforeAll(async () => { + await test.page.reload(); + await getResult(); + await test.page.waitForSelector('[e2e-id="publicKeyElt"]'); + await clearInput('[e2e-id="publicKeyElt"]'); + await test.page.type('[e2e-id="publicKeyElt"]', test.account); + await test.page.$eval('[e2e-id="publicKeyElt"]', (e: { blur: () => any; }) => e.blur()); + await test.page.waitForSelector('[e2e-id="main_purse"]'); + await seletAction('make_transfer'); + await test.page.waitForSelector('[e2e-id="transferAmountElt"]'); + await test.page.waitForSelector('[e2e-id="targetAccountElt"]'); + }); + + it('should sign_deploy', async () => { + await test.page.type('[e2e-id="transferAmountElt"]', config.transfer_amount); + await test.page.type('[e2e-id="targetAccountElt"]', test.target); + await submit(); + await getResult(); + let make_transfer = await test.page.evaluate(() => { + return document.querySelector('[e2e-id="result"]')?.textContent; + }); + expect(make_transfer).toBeDefined(); + await seletAction('sign_deploy'); + const unsigned_deploy = await test.page.evaluate(() => { + return document.querySelector('[e2e-id="result"]')?.textContent; + }); + expect(unsigned_deploy).toContain(`"approvals": []`); + await setPrivateKey(); + await sign(); + await delay(300); + const signed_deploy = await test.page.evaluate(() => { + return document.querySelector('[e2e-id="deployJsonElt"]')?.textContent; + }); + expect(signed_deploy).not.toContain(`"approvals": []`); + }); + }); + + describe('Deploy util put_deploy', () => { + beforeAll(async () => { + await test.page.reload(); + await getResult(); + await setPrivateKey(); + await seletAction('make_transfer'); + await test.page.waitForSelector('[e2e-id="transferAmountElt"]'); + await test.page.waitForSelector('[e2e-id="targetAccountElt"]'); + }); + + it('should put_deploy a transfer', async () => { + await test.page.type('[e2e-id="transferAmountElt"]', config.transfer_amount); + await test.page.type('[e2e-id="targetAccountElt"]', test.target); + await submit(); + await test.page.waitForSelector('[e2e-id="result"]'); + let make_transfer = await test.page.evaluate(() => { + return document.querySelector('[e2e-id="result"]')?.textContent; + }); + expect(make_transfer).toBeDefined(); + await seletAction('put_deploy'); + const signed_deploy = await test.page.evaluate(() => { + return document.querySelector('[e2e-id="result"]')?.textContent; + }); + expect(signed_deploy).not.toContain(`"approvals": []`); + await submit(); + await getResult(); + }); + }); + + describe('Deploy deploy', () => { + beforeEach(async () => { + await test.page.reload(); + await getResult(); + await setPrivateKey(); + await seletAction('deploy'); + await test.page.waitForSelector('[e2e-id="paymentAmountElt"]'); + await test.page.waitForSelector('[e2e-id="sessionHashElt"]'); + await test.page.waitForSelector('[e2e-id="entryPointElt"]'); + await test.page.waitForSelector('[e2e-id="argsSimpleElt"]'); + await test.page.waitForSelector('[e2e-id="argsJsonElt"]'); + }); + afterEach(async () => { + await clear(); + }); + + it('should deploy with contract hash', async () => { + await test.page.type('[e2e-id="paymentAmountElt"]', config.payment_amount); + await test.page.type('[e2e-id="sessionHashElt"]', test.contract_cep78_hash); + await test.page.type('[e2e-id="entryPointElt"]', config.entrypoint); + let deploy = await test.page.evaluate(() => { + return document.querySelector('[e2e-id="result"]')?.textContent; + }); + expect(deploy).toBeUndefined(); + await submit(); + await test.page.waitForSelector('[e2e-id="result"]'); + deploy = await test.page.evaluate(() => { + return document.querySelector('[e2e-id="result"]')?.textContent; + }); + expect(deploy).toBeDefined(); + }); + + it('should deploy with contract name', async () => { + await test.page.type('[e2e-id="paymentAmountElt"]', config.payment_amount); + await test.page.waitForSelector('[e2e-id="sessionNameElt"]'); + await test.page.type('[e2e-id="sessionNameElt"]', "enhanced-nft-1"); + await test.page.type('[e2e-id="entryPointElt"]', config.entrypoint); + let deploy = await test.page.evaluate(() => { + return document.querySelector('[e2e-id="result"]')?.textContent; + }); + expect(deploy).toBeUndefined(); + await submit(); + await test.page.waitForSelector('[e2e-id="result"]'); + deploy = await test.page.evaluate(() => { + return document.querySelector('[e2e-id="result"]')?.textContent; + }); + expect(deploy).toBeDefined(); + }); + + it('should deploy with contract hash and args simple', async () => { + await test.page.type('[e2e-id="paymentAmountElt"]', config.payment_amount); + await test.page.type('[e2e-id="sessionHashElt"]', test.contract_cep78_hash); + await test.page.type('[e2e-id="entryPointElt"]', config.entrypoint); + await test.page.type('[e2e-id="argsSimpleElt"]', config.args_simple); + let deploy = await test.page.evaluate(() => { + return document.querySelector('[e2e-id="result"]')?.textContent; + }); + expect(deploy).toBeUndefined(); + await submit(); + await test.page.waitForSelector('[e2e-id="result"]'); + deploy = await test.page.evaluate(() => { + return document.querySelector('[e2e-id="result"]')?.textContent; + }); + expect(deploy).toBeDefined(); + }); + + it('should deploy with contract hash and args json', async () => { + await test.page.type('[e2e-id="paymentAmountElt"]', config.payment_amount); + await test.page.type('[e2e-id="sessionHashElt"]', test.contract_cep78_hash); + await test.page.type('[e2e-id="entryPointElt"]', config.entrypoint); + await test.page.type('[e2e-id="argsJsonElt"]', config.args_json); + let deploy = await test.page.evaluate(() => { + return document.querySelector('[e2e-id="result"]')?.textContent; + }); + expect(deploy).toBeUndefined(); + await submit(); + await test.page.waitForSelector('[e2e-id="result"]'); + deploy = await test.page.evaluate(() => { + return document.querySelector('[e2e-id="result"]')?.textContent; + }); + expect(deploy).toBeDefined(); + }); + + it('should deploy with package hash and args simple', async () => { + await test.page.type('[e2e-id="paymentAmountElt"]', config.payment_amount); + await test.page.type('[e2e-id="sessionHashElt"]', test.contract_cep78_hash); + await test.page.type('[e2e-id="entryPointElt"]', config.entrypoint); + await test.page.type('[e2e-id="argsSimpleElt"]', config.args_simple); + await test.page.waitForSelector('[e2e-id="callPackageElt"]'); + await test.page.click('[e2e-id="callPackageElt"]'); + await test.page.waitForSelector('[e2e-id="versionElt"]'); + await test.page.type('[e2e-id="versionElt"]', "1"); + let deploy = await test.page.evaluate(() => { + return document.querySelector('[e2e-id="result"]')?.textContent; + }); + expect(deploy).toBeUndefined(); + await submit(); + await test.page.waitForSelector('[e2e-id="result"]'); + deploy = await test.page.evaluate(() => { + return document.querySelector('[e2e-id="result"]')?.textContent; + }); + expect(deploy).toBeDefined(); + }); + + it('should deploy without TTL', async () => { + await clearInput('[e2e-id="TTLElt"]'); + await test.page.type('[e2e-id="paymentAmountElt"]', config.payment_amount); + await test.page.type('[e2e-id="sessionHashElt"]', test.contract_cep78_hash); + await test.page.type('[e2e-id="entryPointElt"]', config.entrypoint); + let deploy = await test.page.evaluate(() => { + return document.querySelector('[e2e-id="result"]')?.textContent; + }); + expect(deploy).toBeUndefined(); + await submit(); + await test.page.waitForSelector('[e2e-id="result"]'); + deploy = await test.page.evaluate(() => { + return document.querySelector('[e2e-id="result"]')?.textContent; + }); + expect(deploy).toBeDefined(); + }); + + it('should deploy with module bytes', async () => { + await test.page.type('[e2e-id="paymentAmountElt"]', config.payment_amount); + await test.page.type('[e2e-id="argsSimpleElt"]', config.args_simple); + await setWasm(config.contract_hello); + let deploy = await test.page.evaluate(() => { + return document.querySelector('[e2e-id="result"]')?.textContent; + }); + expect(deploy).toBeUndefined(); + await submit(); + await test.page.waitForSelector('[e2e-id="result"]'); + deploy = await test.page.evaluate(() => { + return document.querySelector('[e2e-id="result"]')?.textContent; + }); + expect(deploy).toBeDefined(); + }); + }); + + describe('Deploy transfer', () => { + beforeEach(async () => { + await test.page.reload(); + await getResult(); + await setPrivateKey(); + await seletAction('transfer'); + await test.page.waitForSelector('[e2e-id="transferAmountElt"]'); + await test.page.waitForSelector('[e2e-id="targetAccountElt"]'); + }); + afterEach(async () => { + await clear(); + }); + + it('should transfer', async () => { + await test.page.type('[e2e-id="transferAmountElt"]', config.transfer_amount); + await test.page.type('[e2e-id="targetAccountElt"]', test.target); + await submit(); + await test.page.waitForSelector('[e2e-id="result"]'); + let transfer = await test.page.evaluate(() => { + return document.querySelector('[e2e-id="result"]')?.textContent; + }); + expect(transfer).toBeDefined(); + }); + + it('should transfer without TTL', async () => { + await clearInput('[e2e-id="TTLElt"]'); + await test.page.type('[e2e-id="transferAmountElt"]', config.transfer_amount); + await test.page.type('[e2e-id="targetAccountElt"]', test.target); + await submit(); + await test.page.waitForSelector('[e2e-id="result"]'); + let transfer = await test.page.evaluate(() => { + return document.querySelector('[e2e-id="result"]')?.textContent; + }); + expect(transfer).toBeDefined(); + }); + }); + + describe('Rpc call get_dictionary_item', () => { + beforeAll(async () => { + await test.page.reload(); + await getResult(); + await get_state_root_hash(); // refresh state root hash before querying contract dict + await seletAction('get_dictionary_item'); + await test.page.waitForSelector('[e2e-id="stateRootHashElt"]'); + await test.page.waitForSelector('[e2e-id="selectDictIdentifierElt"]'); + await test.page.waitForSelector('[e2e-id="seedContractHashElt"]'); + await test.page.waitForSelector('[e2e-id="seedNameElt"]'); + await test.page.waitForSelector('[e2e-id="itemKeyElt"]'); + }); + afterEach(async () => { + await clear(); + }); + it('should get_dictionary_item with contract hash with state root hash', async () => { + await test.page.waitForSelector('[e2e-id="stateRootHashElt"]'); + await test.page.type('[e2e-id="stateRootHashElt"]', test.state_root_hash_default); + await test.page.waitForSelector('[e2e-id="seedContractHashElt"]'); + await test.page.type('[e2e-id="seedContractHashElt"]', test.contract_cep78_hash); + await test.page.waitForSelector('[e2e-id="seedNameElt"]'); + await test.page.type('[e2e-id="seedNameElt"]', 'events'); + await test.page.waitForSelector('[e2e-id="itemKeyElt"]'); + await test.page.type('[e2e-id="itemKeyElt"]', '0'); + await submit(); + await getResult(); + }); + + it('should get_dictionary_item with contract hash without state root hash', async () => { + await test.page.waitForSelector('[e2e-id="stateRootHashElt"]'); + await clearInput('[e2e-id="stateRootHashElt"]'); + await submit(); + await getResult(); + const result = await test.page.evaluate(() => { + return document.querySelector('[e2e-id="result"]')?.textContent; + }); + expect(result).toBeDefined(); + const result_json = JSON.parse(result); + expect(result_json.dictionary_key).toBeDefined(); + test.dictionary_key = result_json.dictionary_key; + }); + + it('should get_dictionary_item with dictionary key', async () => { + await test.page.waitForSelector('[e2e-id="selectDictIdentifierElt"]'); + await test.page.select('[e2e-id="selectDictIdentifierElt"]', "newFromDictionaryKey"); + await test.page.waitForSelector('[e2e-id="seedKeyElt"]'); + await test.page.type('[e2e-id="seedKeyElt"]', test.dictionary_key); + await submit(); + await getResult(); + }); + + it('should get_dictionary_item with dictionary uref', async () => { + await test.page.waitForSelector('[e2e-id="selectDictIdentifierElt"]'); + await test.page.select('[e2e-id="selectDictIdentifierElt"]', "newFromSeedUref"); + await test.page.waitForSelector('[e2e-id="seedUrefElt"]'); + await test.page.type('[e2e-id="seedUrefElt"]', test.dictionary_uref); + await test.page.waitForSelector('[e2e-id="itemKeyElt"]'); + await test.page.type('[e2e-id="itemKeyElt"]', '0'); + await submit(); + await getResult(); + await screenshot(); + }); + }); + + afterAll(async () => { + if (test.delete_key_at_root_after_test) { + deleteFile(path.resolve(__dirname, '../', config.key_name)); + } + // deleteFile(path.resolve(__dirname, '../', "test.png")); + await test.browser.close(); + }); +}); \ No newline at end of file diff --git a/tests/e2e/tsconfig.json b/tests/e2e/tsconfig.json new file mode 100644 index 000000000..9f29a7591 --- /dev/null +++ b/tests/e2e/tsconfig.json @@ -0,0 +1,14 @@ +{ + "compilerOptions": { + "target": "ESNext", + "module": "ESNext", + "strict": true, + "esModuleInterop": true, + "skipLibCheck": true, + "forceConsistentCasingInFileNames": true, + "types": ["jest", "node", "puppeteer"] + }, + "paths": { + "casper-rust-wasm-sdk": ["../../../pkg"] + } +} diff --git a/tests/integration/rust/.gitignore b/tests/integration/rust/.gitignore new file mode 100644 index 000000000..6985cf1bd --- /dev/null +++ b/tests/integration/rust/.gitignore @@ -0,0 +1,14 @@ +# Generated by Cargo +# will have compiled files and executables +debug/ +target/ + +# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries +# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html +Cargo.lock + +# These are backup files generated by rustfmt +**/*.rs.bk + +# MSVC Windows builds of rustc generate these, which store debugging information +*.pdb diff --git a/tests/integration/rust/Cargo.toml b/tests/integration/rust/Cargo.toml new file mode 100644 index 000000000..2f80d401c --- /dev/null +++ b/tests/integration/rust/Cargo.toml @@ -0,0 +1,14 @@ +[package] +name = "sdk-tests" +version = "0.1.0" +edition = "2021" + +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[dependencies] +casper-rust-wasm-sdk = { path = "../../../" } +tokio = { version = "1", features = ["full"] } +once_cell = "*" +chrono = "0.4" +lazy_static = "*" +serde_json = "*" diff --git a/tests/integration/rust/src/config.rs b/tests/integration/rust/src/config.rs new file mode 100644 index 000000000..37453839f --- /dev/null +++ b/tests/integration/rust/src/config.rs @@ -0,0 +1,159 @@ +use crate::tests::helpers::{ + get_block, get_contract_cep78_hash_keys, get_dictionnary_key, get_dictionnary_uref, + get_main_purse, install_cep78_if_needed, mint_nft, read_pem_file, +}; +use casper_rust_wasm_sdk::{ + helpers::public_key_from_private_key, + types::{public_key::PublicKey, verbosity::Verbosity}, +}; +use lazy_static::lazy_static; +use std::time::{self, Duration}; +use tokio::sync::Mutex; + +pub const DEFAULT_NODE_ADDRESS: &str = "http://localhost:11101"; +pub const CHAIN_NAME: &str = "casper-net-1"; +pub const PRIVATE_KEY_NAME: &str = "secret_key.pem"; +// TODO fix mutex bug https://github.com/hyperium/hyper/issues/2112 lazy_static erroring with runtime dropped the dispatch task +// https://github.com/seanmonstar/reqwest/issues/1148#issuecomment-910868788 +pub const TIMESTAMP_WAIT_TIME: Duration = time::Duration::from_millis(1000); +pub const DEPLOY_TIME: Duration = time::Duration::from_millis(45000); +// read_pem_file will look PRIVATE_KEY_NAME to root directory if relative path is not found (relative to root) +pub const PRIVATE_KEY_NCTL_PATH: &str = + "./../../../../NCTL/casper-node/utils/nctl/assets/net-1/users/user-1/"; +pub const DEFAULT_TTL: &str = "30m"; +pub const TTL: &str = "1h"; +pub const HELLO_CONTRACT: &str = "hello.wasm"; +pub const CEP78_CONTRACT: &str = "cep78.wasm"; +pub const PAYMENT_AMOUNT: &str = "5500000000"; +pub const TRANSFER_AMOUNT: &str = "2500000000"; +pub const PAYMENT_TRANSFER_AMOUNT: &str = "100000000"; +pub const PAYMENT_AMOUNT_CONTRACT_CEP78: &str = "300000000000"; +pub const CONTRACT_CEP78_KEY: &str = "cep78_contract_hash_enhanced-nft-1"; +pub const PACKAGE_CEP78_KEY: &str = "cep78_contract_package_enhanced-nft-1"; +pub const ENTRYPOINT_MINT: &str = "mint"; +pub const ENTRYPOINT_DECIMALS: &str = "decimals"; +pub const COLLECTION_NAME: &str = "enhanced-nft-1"; +pub const DICTIONARY_NAME: &str = "events"; +pub const DICTIONARY_ITEM_KEY: &str = "0"; +pub const ARGS_SIMPLE: [&str; 2] = [ + "key-name:String='test_hello_key'", + "message:String='Hello Casper'", +]; +pub const TEST_HELLO_KEY: &str = "test_hello_key"; +pub const TEST_HELLO_MESSAGE: &str = "Hello Casper"; + +pub const ARGS_JSON: &str = r#"[ +{"name": "collection_name", "type": "String", "value": "enhanced-nft-1"}, +{"name": "collection_symbol", "type": "String", "value": "ENFT-1"}, +{"name": "total_token_supply", "type": "U64", "value": 10}, +{"name": "ownership_mode", "type": "U8", "value": 0}, +{"name": "nft_kind", "type": "U8", "value": 1}, +{"name": "allow_minting", "type": "Bool", "value": true}, +{"name": "owner_reverse_lookup_mode", "type": "U8", "value": 0}, +{"name": "nft_metadata_kind", "type": "U8", "value": 2}, +{"name": "identifier_mode", "type": "U8", "value": 0}, +{"name": "metadata_mutability", "type": "U8", "value": 0}, +{"name": "events_mode", "type": "U8", "value": 1} +]"#; + +#[derive(Clone, Debug)] +pub struct TestConfig { + pub node_address: Option, + pub verbosity: Option, + pub chain_name: String, + pub private_key: String, + pub account: String, + pub purse_uref: String, + pub account_hash: String, + pub target_account: String, + pub block_height: String, + pub block_hash: String, + pub deploy_hash: String, + pub dictionary_key: String, + pub dictionary_uref: String, + pub contract_cep78_hash: String, + pub contract_cep78_package_hash: String, +} + +lazy_static! { + pub static ref CONFIG: Mutex> = Mutex::new(None); + pub static ref BLOCK_HASH_INITIALIZED: Mutex = Mutex::new(false); +} + +pub async fn initialize_test_config() -> Result> { + let mut block_hash_initialized_guard = BLOCK_HASH_INITIALIZED.lock().await; + if *block_hash_initialized_guard { + return Err("initialize_test_config called after block_hash already initialized".into()); + } + let private_key = read_pem_file(&format!("{PRIVATE_KEY_NCTL_PATH}{PRIVATE_KEY_NAME}"))?; + let private_key_target_account = read_pem_file(&format!( + "{}{}", + PRIVATE_KEY_NCTL_PATH.replace("user-1", "user-2"), + PRIVATE_KEY_NAME + ))?; + let account = public_key_from_private_key(&private_key).unwrap(); + + let target_account = public_key_from_private_key(&private_key_target_account).unwrap(); + + let public_key = PublicKey::new(&account).unwrap(); + + let account_hash = public_key.to_account_hash().to_formatted_string(); + + let purse_uref = get_main_purse(&account).await; + + println!("install_cep78"); + let deploy_hash = install_cep78_if_needed(&account, &private_key) + .await + .unwrap(); + + let (contract_cep78_hash, contract_cep78_package_hash) = + get_contract_cep78_hash_keys(&account_hash).await; + + println!("mint_nft"); + // install has been running for over 60 seconds + mint_nft(&contract_cep78_hash, &account, &account_hash, &private_key).await; + + let dictionary_key = get_dictionnary_key( + &contract_cep78_hash, + DICTIONARY_NAME, + DICTIONARY_ITEM_KEY, + None, + ) + .await; + + let dictionary_uref = get_dictionnary_uref(&contract_cep78_hash, DICTIONARY_NAME).await; + + let (block_hash, block_height) = get_block().await; + *block_hash_initialized_guard = true; + + let config = TestConfig { + node_address: Some(DEFAULT_NODE_ADDRESS.to_string()), + verbosity: Some(Verbosity::High), + account, + private_key, + chain_name: CHAIN_NAME.to_string(), + block_height, + block_hash, + purse_uref, + account_hash, + target_account, + deploy_hash, + contract_cep78_hash, + contract_cep78_package_hash, + dictionary_key, + dictionary_uref, + }; + Ok(config) +} + +pub async fn get_config() -> TestConfig { + initialize_test_config_if_needed().await; + CONFIG.lock().await.clone().unwrap() +} + +async fn initialize_test_config_if_needed() { + let mut config_guard = CONFIG.lock().await; + if config_guard.is_none() { + *config_guard = Some(initialize_test_config().await.unwrap()); + } +} diff --git a/tests/integration/rust/src/main.rs b/tests/integration/rust/src/main.rs new file mode 100644 index 000000000..b413e572f --- /dev/null +++ b/tests/integration/rust/src/main.rs @@ -0,0 +1,28 @@ +mod config; +mod tests; + +use config::{initialize_test_config, CONFIG}; +use lazy_static::lazy_static; +use tokio::sync::Mutex; + +#[tokio::main] +async fn main() { + // Run config initialize for run_tests + // let _ = async_main().await; + #[cfg(not(test))] + crate::tests::run_tests_or_examples().await; +} + +lazy_static! { + pub static ref INITIALIZED: Mutex = Mutex::new(false); +} + +pub async fn async_main() -> Result<(), Box> { + let mut initialized_guard = INITIALIZED.lock().await; + if !*initialized_guard { + let config = initialize_test_config().await?; + *CONFIG.lock().await = Some(config); + *initialized_guard = true; + } + Ok(()) +} diff --git a/tests/integration/rust/src/tests/helpers.rs b/tests/integration/rust/src/tests/helpers.rs new file mode 100644 index 000000000..c180fe39c --- /dev/null +++ b/tests/integration/rust/src/tests/helpers.rs @@ -0,0 +1,342 @@ +use crate::config::{ + TestConfig, ARGS_JSON, CEP78_CONTRACT, CHAIN_NAME, CONTRACT_CEP78_KEY, DEFAULT_NODE_ADDRESS, + DEPLOY_TIME, ENTRYPOINT_MINT, PACKAGE_CEP78_KEY, PAYMENT_AMOUNT, PAYMENT_AMOUNT_CONTRACT_CEP78, + PRIVATE_KEY_NAME, +}; +use casper_rust_wasm_sdk::{ + rpcs::query_global_state::QueryGlobalStateParams, + types::{ + block_hash::BlockHash, + deploy_hash::DeployHash, + deploy_params::{ + deploy_str_params::DeployStrParams, payment_str_params::PaymentStrParams, + session_str_params::SessionStrParams, + }, + uref::URef, + }, +}; +use casper_rust_wasm_sdk::{ + rpcs::{get_dictionary_item::DictionaryItemInput, query_global_state::KeyIdentifierInput}, + types::deploy_params::dictionary_item_str_params::DictionaryItemStrParams, + SDK, +}; +use lazy_static::lazy_static; +use serde_json::{to_string, Value}; +use std::io::{self, Read}; +use std::path::{Path, PathBuf}; +use std::process; +use std::{fs::File, thread}; +use tokio::sync::Mutex; + +pub fn create_test_sdk(config: Option) -> SDK { + match config { + Some(config) => SDK::new(config.node_address, config.verbosity), + None => SDK::new(None, None), + } +} + +pub fn read_wasm_file(file_path: &str) -> Result, io::Error> { + let root_path = Path::new("../../wasm/"); + let path = root_path.join(file_path); + let mut file = File::open(path)?; + let mut buffer = Vec::new(); + file.read_to_end(&mut buffer)?; + Ok(buffer) +} + +pub fn read_pem_file(file_path: &str) -> Result { + let mut path_buf = PathBuf::new(); + path_buf.push(file_path); + if file_path.is_empty() || !path_buf.exists() { + path_buf.clear(); + path_buf.push(PRIVATE_KEY_NAME); + } + let mut file = match File::open(&path_buf) { + Ok(file) => file, + Err(err) => { + eprintln!("{}", err); + panic!(); + } + }; + let mut contents = String::new(); + file.read_to_string(&mut contents)?; + Ok(contents) +} + +pub async fn get_block() -> (String, String) { + let get_block = create_test_sdk(None) + .get_block(None, None, Some(DEFAULT_NODE_ADDRESS.to_string())) + .await; + match get_block { + Err(err) => { + eprintln!("Block hash unreachable! {}", err); + process::exit(1); + } + Ok(get_block) => { + let block = get_block.result.block.unwrap(); + let block_hash: BlockHash = (*block.hash()).into(); + let block_height = block.header().height(); + (block_hash.to_string(), block_height.to_string()) + } + } +} + +pub async fn get_main_purse(account_identifier_as_string: &str) -> String { + let purse_uref = *(create_test_sdk(None) + .get_account( + None, + Some(account_identifier_as_string.to_owned()), + None, + None, + Some(DEFAULT_NODE_ADDRESS.to_string()), + ) + .await + .unwrap() + .result + .account + .main_purse()); + let purse_uref: URef = purse_uref.into(); + purse_uref.to_formatted_string() +} + +pub async fn get_contract_cep78_hash_keys(account_hash: &str) -> (String, String) { + let query_params: QueryGlobalStateParams = QueryGlobalStateParams { + key: KeyIdentifierInput::String(account_hash.to_string()), + path: None, + maybe_global_state_identifier: None, + state_root_hash: None, + maybe_block_id: None, + node_address: Some(DEFAULT_NODE_ADDRESS.to_string()), + verbosity: None, + }; + let query_global_state = create_test_sdk(None).query_global_state(query_params).await; + let query_global_state_result = query_global_state.unwrap(); + + let json_string = to_string(&query_global_state_result.result.stored_value).unwrap(); + + // Parse the JSON string in 1.6 + let parsed_json: Value = serde_json::from_str(&json_string).unwrap(); + let named_keys = &parsed_json["Account"]["named_keys"]; + let named_keys_array = named_keys + .as_array() + .unwrap_or_else(|| panic!("named_keys is not an array")); + + let contract_cep78_hash = named_keys_array + .iter() + .find(|obj| obj["name"] == Value::String(CONTRACT_CEP78_KEY.to_string())) + .and_then(|obj| obj["key"].as_str()) + .unwrap_or_else(|| panic!("Contract CEP78 key not found in named_keys")); + + let contract_cep78_package_hash = named_keys_array + .iter() + .find(|obj| obj["name"] == Value::String(PACKAGE_CEP78_KEY.to_string())) + .and_then(|obj| obj["key"].as_str()) + .unwrap_or_else(|| panic!("Package CEP78 key not found in named_keys")); + + ( + contract_cep78_hash.to_string(), + contract_cep78_package_hash.to_string(), + ) +} + +pub async fn mint_nft( + contract_cep78_hash: &str, + account: &str, + account_hash: &str, + private_key: &str, +) { + let deploy_params = DeployStrParams::new( + CHAIN_NAME, + account, + Some(private_key.to_string()), + None, + None, + ); + let mut session_params = SessionStrParams::default(); + session_params.set_session_hash(contract_cep78_hash); + session_params.set_session_entry_point(ENTRYPOINT_MINT); + // Two ways to build args, either simple or json + // let args_json_vec: Vec = vec![ + // r#"{"name": "token_meta_data", "type": "String", "value": "test_meta_data"}"#.to_string(), + // format!(r#"{{"name": "token_owner", "type": "Key", "value": "{account_hash}"}}"#), + // ]; + // let args_json: String = format!("[{}]", args_json_vec.join(", ")); + let args = Vec::from([ + "token_meta_data:String='test_meta_data'".to_string(), + format!("token_owner:Key='{account_hash}'").to_string(), + ]); + session_params.set_session_args(args); + let payment_params = PaymentStrParams::default(); + payment_params.set_payment_amount(PAYMENT_AMOUNT); + let test_call_entrypoint = create_test_sdk(None) + .call_entrypoint( + deploy_params, + session_params, + payment_params, + Some(DEFAULT_NODE_ADDRESS.to_string()), + ) + .await; + assert!(!test_call_entrypoint + .as_ref() + .unwrap() + .result + .api_version + .to_string() + .is_empty()); + let deploy_hash_as_string = test_call_entrypoint + .as_ref() + .unwrap() + .result + .deploy_hash + .to_string(); + assert!(!deploy_hash_as_string.is_empty()); + + thread::sleep(DEPLOY_TIME); // Let's wait for deployment on nctl +} + +pub async fn get_dictionnary_key( + contract_hash: &str, + dictionary_name: &str, + dictionary_item_key: &str, + get_state_root_hash: Option<&str>, +) -> String { + let mut params = DictionaryItemStrParams::new(); + params.set_contract_named_key(contract_hash, dictionary_name, dictionary_item_key); + let dictionary_item = DictionaryItemInput::Params(params); + let get_dictionary_item = create_test_sdk(None) + .get_dictionary_item( + get_state_root_hash.unwrap_or_default(), + dictionary_item, + None, + Some(DEFAULT_NODE_ADDRESS.to_string()), + ) + .await; + let get_dictionary_item = get_dictionary_item.unwrap(); + assert!(!get_dictionary_item + .result + .api_version + .to_string() + .is_empty()); + + // 1.6 does not have method as_cl_value() + // let stored_value = get_dictionary_item.result.stored_value; + // let cl_value = stored_value.as_cl_value().unwrap(); + // assert!(!cl_value.inner_bytes().is_empty()); + + assert!(!get_dictionary_item + .result + .dictionary_key + .to_string() + .is_empty()); + let dictionary_key = get_dictionary_item.result.dictionary_key; + dictionary_key.to_string() +} + +pub async fn get_dictionnary_uref(contract_hash: &str, dictionary_name: &str) -> String { + let query_params: QueryGlobalStateParams = QueryGlobalStateParams { + key: KeyIdentifierInput::String(contract_hash.to_string()), + path: None, + maybe_global_state_identifier: None, + state_root_hash: None, + maybe_block_id: None, + node_address: Some(DEFAULT_NODE_ADDRESS.to_string()), + verbosity: None, + }; + let query_global_state = create_test_sdk(None).query_global_state(query_params).await; + let query_global_state_result = query_global_state.unwrap(); + + // Parse the JSON string in 1.6 + let json_string = to_string(&query_global_state_result.result.stored_value).unwrap(); + let parsed_json: Value = serde_json::from_str(&json_string).unwrap(); + let named_keys = &parsed_json["Contract"]["named_keys"]; + let dictionnary_uref = named_keys + .as_array() + .unwrap_or_else(|| panic!("named_keys is not an array")) + .iter() + .find(|obj| obj["name"] == Value::String(dictionary_name.to_string())) + .and_then(|obj| obj["key"].as_str()) + .unwrap_or_else(|| panic!("Dictionary name not found in named_keys")) + .to_string(); + dictionnary_uref.to_string() +} + +lazy_static! { + pub static ref CEP78_INSTALLED_GUARD: Mutex = Mutex::new(false); + pub static ref CEP78_REINSTALL_GUARD: Mutex = Mutex::new(false); +} + +pub async fn install_cep78( + account: &str, + private_key: &str, +) -> Result> { + let mut cep78_reinstall_guard = CEP78_REINSTALL_GUARD.lock().await; + if *cep78_reinstall_guard { + return Err("CEP78 contract already installed".into()); + } + *cep78_reinstall_guard = true; + let deploy_params = DeployStrParams::new( + CHAIN_NAME, + account, + Some(private_key.to_string()), + None, + None, + ); + let session_params = SessionStrParams::default(); + session_params.set_session_args_json(ARGS_JSON); + + let payment_params = PaymentStrParams::default(); + payment_params.set_payment_amount(PAYMENT_AMOUNT_CONTRACT_CEP78); + let file_path = CEP78_CONTRACT; + let module_bytes = match read_wasm_file(file_path) { + Ok(module_bytes) => module_bytes, + Err(err) => { + return Err(format!("Error reading file {}: {:?}", file_path, err).into()); + } + }; + session_params.set_session_bytes(module_bytes.into()); + let sdk = create_test_sdk(None); + let install = sdk + .install( + deploy_params, + session_params, + payment_params, + Some(DEFAULT_NODE_ADDRESS.to_string()), + ) + .await; + assert!(!install + .as_ref() + .unwrap() + .result + .api_version + .to_string() + .is_empty()); + + let deploy_hash = DeployHash::from(install.as_ref().unwrap().result.deploy_hash); + let deploy_hash_as_string = deploy_hash.to_string(); + assert!(!deploy_hash_as_string.is_empty()); + + thread::sleep(DEPLOY_TIME); // Let's wait for deployment on nctl + + let get_deploy = sdk + .get_deploy( + deploy_hash, + Some(true), + None, + Some(DEFAULT_NODE_ADDRESS.to_string()), + ) + .await; + let get_deploy = get_deploy.unwrap(); + assert!(!get_deploy.result.api_version.to_string().is_empty()); + assert!(!get_deploy.result.deploy.to_string().is_empty()); + Ok(deploy_hash_as_string) +} + +pub async fn install_cep78_if_needed(account: &str, private_key: &str) -> Option { + let mut install_guard = CEP78_INSTALLED_GUARD.lock().await; + if !(*install_guard) { + let deploy_hash = install_cep78(account, private_key).await.unwrap(); + *install_guard = true; + return Some(deploy_hash); + } + None +} diff --git a/tests/integration/rust/src/tests/integration/contract/mod.rs b/tests/integration/rust/src/tests/integration/contract/mod.rs new file mode 100644 index 000000000..8d53476f2 --- /dev/null +++ b/tests/integration/rust/src/tests/integration/contract/mod.rs @@ -0,0 +1,276 @@ +#[allow(dead_code)] +pub mod test_module { + use crate::{ + config::{ + get_config, TestConfig, ARGS_JSON, ARGS_SIMPLE, DICTIONARY_ITEM_KEY, DICTIONARY_NAME, + ENTRYPOINT_MINT, HELLO_CONTRACT, PAYMENT_AMOUNT, TTL, + }, + tests::helpers::{create_test_sdk, get_dictionnary_key, read_wasm_file}, + }; + use casper_rust_wasm_sdk::{ + rpcs::{ + get_dictionary_item::DictionaryItemInput, + query_global_state::{KeyIdentifierInput, PathIdentifierInput, QueryGlobalStateParams}, + }, + types::{ + deploy_params::{ + deploy_str_params::DeployStrParams, + dictionary_item_str_params::DictionaryItemStrParams, + payment_str_params::PaymentStrParams, session_str_params::SessionStrParams, + }, + digest::Digest, + global_state_identifier::GlobalStateIdentifier, + }, + }; + use serde_json::{to_string, Value}; + + pub async fn test_call_entrypoint() { + let config: TestConfig = get_config().await; + let deploy_params = DeployStrParams::new( + &config.chain_name, + &config.account, + Some(config.private_key.clone()), + None, + Some(TTL.to_string()), + ); + let session_params = SessionStrParams::default(); + session_params.set_session_hash(&config.contract_cep78_hash); + session_params.set_session_entry_point(ENTRYPOINT_MINT); + session_params.set_session_args_json(ARGS_JSON); + let payment_params = PaymentStrParams::default(); + payment_params.set_payment_amount(PAYMENT_AMOUNT); + let test_call_entrypoint = create_test_sdk(Some(config)) + .call_entrypoint(deploy_params, session_params, payment_params, None) + .await; + assert!(!test_call_entrypoint + .as_ref() + .unwrap() + .result + .api_version + .to_string() + .is_empty()); + assert!(!test_call_entrypoint + .as_ref() + .unwrap() + .result + .deploy_hash + .to_string() + .is_empty()); + } + + pub async fn test_query_contract_dict() { + let config: TestConfig = get_config().await; + let get_state_root_hash = create_test_sdk(Some(config.clone())) + .get_state_root_hash(None, None, None) + .await; + let state_root_hash_digest: Digest = get_state_root_hash + .unwrap() + .result + .state_root_hash + .unwrap() + .into(); + let state_root_hash = &state_root_hash_digest.to_string(); + + let dictionnary_key = get_dictionnary_key( + &config.contract_cep78_hash, + DICTIONARY_NAME, + DICTIONARY_ITEM_KEY, + Some(state_root_hash), + ) + .await; + assert_eq!(config.dictionary_key, dictionnary_key); + } + + pub async fn test_query_contract_dict_with_dictionary_key() { + let config: TestConfig = get_config().await; + let get_state_root_hash = create_test_sdk(Some(config.clone())) + .get_state_root_hash(None, None, None) + .await; + let state_root_hash: Digest = get_state_root_hash + .unwrap() + .result + .state_root_hash + .unwrap() + .into(); + + let mut params = DictionaryItemStrParams::new(); + params.set_dictionary(&config.dictionary_key); + let dictionary_item = DictionaryItemInput::Params(params); + let query_contract_dict = create_test_sdk(Some(config)) + .query_contract_dict(state_root_hash, dictionary_item, None, None) + .await; + + let query_contract_dict = query_contract_dict.unwrap(); + assert!(!query_contract_dict + .result + .api_version + .to_string() + .is_empty()); + // assert!(!query_contract_dict + // .result + // .stored_value + // .as_cl_value() + // .unwrap() + // .inner_bytes() + // .is_empty()); + // Parse the JSON string in 1.6 + let json_string = to_string(&query_contract_dict.result.stored_value).unwrap(); + let parsed_json: Value = serde_json::from_str(&json_string).unwrap(); + let cl_value_as_value = &parsed_json["CLValue"]["parsed"]; + assert!(cl_value_as_value.is_array()); + } + + pub async fn test_query_contract_dict_with_dictionary_uref() { + let config: TestConfig = get_config().await; + let get_state_root_hash = create_test_sdk(Some(config.clone())) + .get_state_root_hash(None, None, None) + .await; + let state_root_hash: Digest = get_state_root_hash + .unwrap() + .result + .state_root_hash + .unwrap() + .into(); + + let mut params = DictionaryItemStrParams::new(); + params.set_uref(&config.dictionary_uref, DICTIONARY_ITEM_KEY); + let dictionary_item = DictionaryItemInput::Params(params); + + let query_contract_dict = create_test_sdk(Some(config)) + .query_contract_dict(state_root_hash, dictionary_item, None, None) + .await; + let query_contract_dict = query_contract_dict.unwrap(); + assert!(!query_contract_dict + .result + .api_version + .to_string() + .is_empty()); + // assert!(!query_contract_dict + // .result + // .stored_value + // .as_cl_value() + // .unwrap() + // .inner_bytes() + // .is_empty()); + // Parse the JSON string in 1.6 + let json_string = to_string(&query_contract_dict.result.stored_value).unwrap(); + let parsed_json: Value = serde_json::from_str(&json_string).unwrap(); + let cl_value_as_value = &parsed_json["CLValue"]["parsed"]; + assert!(cl_value_as_value.is_array()); + } + + pub async fn query_contract_key(maybe_global_state_identifier: Option) { + let config: TestConfig = get_config().await; + let query_params: QueryGlobalStateParams = QueryGlobalStateParams { + key: KeyIdentifierInput::String(config.to_owned().contract_cep78_hash), + path: Some(PathIdentifierInput::String("installer".to_string())), + maybe_global_state_identifier, + state_root_hash: None, + maybe_block_id: None, + node_address: config.to_owned().node_address, + verbosity: config.to_owned().verbosity, + }; + let query_contract_key = create_test_sdk(Some(config.clone())) + .query_contract_key(query_params) + .await; + let query_contract_key = query_contract_key.unwrap(); + assert!(!query_contract_key.result.api_version.to_string().is_empty()); + // assert!(!query_contract_key + // .result + // .stored_value + // .as_account() + // .unwrap() + // .account_hash() + // .to_string() + // .is_empty()); + // Parse the JSON string in 1.6 + let json_string = to_string(&query_contract_key.result.stored_value).unwrap(); + let parsed_json: Value = serde_json::from_str(&json_string).unwrap(); + let cl_value_as_value = &parsed_json["Account"]["account_hash"]; + assert_eq!(*cl_value_as_value, Value::String(config.account_hash)); + } + + pub async fn test_install() { + let config: TestConfig = get_config().await; + let deploy_params = DeployStrParams::new( + &config.chain_name, + &config.account, + Some(config.private_key.clone()), + None, + Some(TTL.to_string()), + ); + let mut session_params = SessionStrParams::default(); + let payment_params = PaymentStrParams::default(); + let file_path = HELLO_CONTRACT; + let module_bytes = match read_wasm_file(file_path) { + Ok(module_bytes) => module_bytes, + Err(err) => { + eprintln!("Error reading file: {:?}", err); + return; + } + }; + session_params.set_session_bytes(module_bytes.into()); + let args_simple: Vec = ARGS_SIMPLE.iter().map(|s| s.to_string()).collect(); + session_params.set_session_args(args_simple); + payment_params.set_payment_amount(PAYMENT_AMOUNT); + let install = create_test_sdk(Some(config)) + .install(deploy_params, session_params, payment_params, None) + .await; + assert!(!install + .as_ref() + .unwrap() + .result + .api_version + .to_string() + .is_empty()); + assert!(!install + .as_ref() + .unwrap() + .result + .deploy_hash + .to_string() + .is_empty()); + } +} + +#[cfg(test)] +mod tests { + use crate::config::{get_config, TestConfig}; + + use super::test_module::*; + use casper_rust_wasm_sdk::types::{ + block_hash::BlockHash, global_state_identifier::GlobalStateIdentifier, + }; + use tokio::test; + + #[test] + pub async fn test_install_test() { + test_install().await; + } + #[test] + pub async fn test_query_contract_dict_test() { + test_query_contract_dict().await; + } + #[test] + pub async fn test_query_contract_dict_with_dictionary_key_test() { + test_query_contract_dict_with_dictionary_key().await; + } + #[test] + pub async fn test_query_contract_dict_with_dictionary_uref_test() { + test_query_contract_dict_with_dictionary_uref().await; + } + #[test] + pub async fn test_query_contract_key_test() { + let config: TestConfig = get_config().await; + + let maybe_global_state_identifier = Some(GlobalStateIdentifier::from_block_hash( + BlockHash::new(&config.block_hash).unwrap(), + )); + query_contract_key(maybe_global_state_identifier).await; + } + + #[test] + pub async fn test_call_entrypoint_test() { + test_call_entrypoint().await; + } +} diff --git a/tests/integration/rust/src/tests/integration/deploy/mod.rs b/tests/integration/rust/src/tests/integration/deploy/mod.rs new file mode 100644 index 000000000..155eeab6e --- /dev/null +++ b/tests/integration/rust/src/tests/integration/deploy/mod.rs @@ -0,0 +1,195 @@ +#[allow(dead_code)] +pub mod test_module { + use crate::config::{ + get_config, TestConfig, ENTRYPOINT_MINT, PAYMENT_AMOUNT, PAYMENT_TRANSFER_AMOUNT, + TRANSFER_AMOUNT, TTL, + }; + use crate::tests::helpers::create_test_sdk; + use casper_rust_wasm_sdk::types::deploy_params::{ + deploy_str_params::DeployStrParams, payment_str_params::PaymentStrParams, + session_str_params::SessionStrParams, + }; + + pub async fn test_deploy() { + let config: TestConfig = get_config().await; + let deploy_params = DeployStrParams::new( + &config.chain_name, + &config.account, + Some(config.private_key.clone()), + None, + Some(TTL.to_string()), + ); + let session_params = SessionStrParams::default(); + session_params.set_session_hash(&config.contract_cep78_hash); + session_params.set_session_entry_point(ENTRYPOINT_MINT); + let payment_params = PaymentStrParams::default(); + payment_params.set_payment_amount(PAYMENT_AMOUNT); + let deploy = create_test_sdk(Some(config)) + .deploy(deploy_params, session_params, payment_params, None, None) + .await; + assert!(!deploy + .as_ref() + .unwrap() + .result + .api_version + .to_string() + .is_empty()); + assert!(!deploy + .as_ref() + .unwrap() + .result + .deploy_hash + .to_string() + .is_empty()); + } + + pub async fn test_transfer() { + let config: TestConfig = get_config().await; + + let deploy_params = DeployStrParams::new( + &config.chain_name, + &config.account, + Some(config.private_key.clone()), + None, + Some(TTL.to_string()), + ); + let payment_params = PaymentStrParams::default(); + payment_params.set_payment_amount(PAYMENT_TRANSFER_AMOUNT); + let transfer = create_test_sdk(Some(config.clone())) + .transfer( + TRANSFER_AMOUNT, + &config.target_account, + None, + deploy_params, + payment_params, + None, + None, + ) + .await; + assert!(!transfer + .as_ref() + .unwrap() + .result + .api_version + .to_string() + .is_empty()); + assert!(!transfer + .as_ref() + .unwrap() + .result + .deploy_hash + .to_string() + .is_empty()); + } + + pub async fn test_speculative_deploy() { + let config: TestConfig = get_config().await; + let deploy_params = DeployStrParams::new( + &config.chain_name, + &config.account, + Some(config.private_key.clone()), + None, + Some(TTL.to_string()), + ); + let session_params = SessionStrParams::default(); + session_params.set_session_hash(&config.contract_cep78_hash); + session_params.set_session_entry_point(ENTRYPOINT_MINT); + let payment_params = PaymentStrParams::default(); + payment_params.set_payment_amount(PAYMENT_AMOUNT); + let deploy = create_test_sdk(Some(config)) + .speculative_deploy( + deploy_params, + session_params, + payment_params, + None, + None, + None, + ) + .await; + assert!(!deploy + .as_ref() + .unwrap() + .result + .api_version + .to_string() + .is_empty()); + // assert!(!deploy + // .as_ref() + // .unwrap() + // .result + // .execution_result + // .block_hash + // .to_string() + // .is_empty()); + } + + pub async fn test_speculative_transfer() { + let config: TestConfig = get_config().await; + let deploy_params = DeployStrParams::new( + &config.chain_name, + &config.account, + Some(config.private_key.clone()), + None, + Some(TTL.to_string()), + ); + let payment_params = PaymentStrParams::default(); + payment_params.set_payment_amount(PAYMENT_TRANSFER_AMOUNT); + let transfer = create_test_sdk(Some(config.clone())) + .speculative_transfer( + TRANSFER_AMOUNT, + &config.target_account, + None, + deploy_params, + payment_params, + None, + None, + None, + ) + .await; + assert!(!transfer + .as_ref() + .unwrap() + .result + .api_version + .to_string() + .is_empty()); + // assert!(!transfer + // .as_ref() + // .unwrap() + // .result + // .execution_result + // .block_hash + // .to_string() + // .is_empty()); + } +} + +#[cfg(test)] +mod tests { + use super::test_module::*; + use tokio::test; + + #[test] + pub async fn test_deploy_test() { + test_deploy().await; + } + + #[test] + pub async fn test_transfer_test() { + test_transfer().await; + } + + // speculative_exec' is not a supported json-rpc method on 1.6 + // #[test] + // pub async fn test_speculative_deploy_test() { + // + // test_speculative_deploy().await; + // + // } + // #[test] + // pub async fn test_speculative_transfer_test() { + // + // test_speculative_transfer().await; + // + // } +} diff --git a/tests/integration/rust/src/tests/integration/deploy_utils/mod.rs b/tests/integration/rust/src/tests/integration/deploy_utils/mod.rs new file mode 100644 index 000000000..bed4f8a21 --- /dev/null +++ b/tests/integration/rust/src/tests/integration/deploy_utils/mod.rs @@ -0,0 +1,129 @@ +#[allow(dead_code)] +pub mod test_module { + use crate::config::{ + get_config, TestConfig, ENTRYPOINT_DECIMALS, PAYMENT_AMOUNT, PAYMENT_TRANSFER_AMOUNT, + TRANSFER_AMOUNT, TTL, + }; + use crate::tests::helpers::create_test_sdk; + use casper_rust_wasm_sdk::types::deploy_params::{ + deploy_str_params::DeployStrParams, payment_str_params::PaymentStrParams, + session_str_params::SessionStrParams, + }; + use serde_json::{to_string, Value}; + + pub async fn test_make_deploy() { + let config: TestConfig = get_config().await; + let deploy_params = DeployStrParams::new( + &config.chain_name, + &config.account, + None, + None, + Some(TTL.to_string()), + ); + let session_params = SessionStrParams::default(); + session_params.set_session_hash(&config.contract_cep78_hash); + session_params.set_session_entry_point(ENTRYPOINT_DECIMALS); + let payment_params = PaymentStrParams::default(); + payment_params.set_payment_amount(PAYMENT_AMOUNT); + let make_deploy = create_test_sdk(Some(config)) + .make_deploy(deploy_params, session_params, payment_params) + .unwrap(); + assert!(!make_deploy.hash.to_string().is_empty()); + // assert_eq!( + // make_deploy.session().entry_point_name(), + // ENTRYPOINT_DECIMALS + // ); + + // Parse the JSON string in 1.6 + let json_string = to_string(&make_deploy.session()).unwrap(); + let parsed_json: Value = serde_json::from_str(&json_string).unwrap(); + let cl_value_as_value = &parsed_json["StoredContractByHash"]["entry_point"]; + assert_eq!( + *cl_value_as_value, + Value::String(ENTRYPOINT_DECIMALS.to_string()) + ); + } + + pub async fn test_make_transfer() { + let config: TestConfig = get_config().await; + let deploy_params = DeployStrParams::new( + &config.chain_name, + &config.account, + None, + None, + Some(TTL.to_string()), + ); + let payment_params = PaymentStrParams::default(); + payment_params.set_payment_amount(PAYMENT_TRANSFER_AMOUNT); + let make_transfer = create_test_sdk(Some(config.clone())) + .make_transfer( + TRANSFER_AMOUNT, + &config.target_account, + None, + deploy_params, + payment_params, + ) + .unwrap(); + assert!(!make_transfer.hash.to_string().is_empty()); + + // assert!(make_transfer.session().is_transfer()); + // Parse the JSON string in 1.6 + let json_string = to_string(&make_transfer.session()).unwrap(); + let parsed_json: Value = serde_json::from_str(&json_string).unwrap(); + let cl_value_as_value = &parsed_json["Transfer"]["args"]; + assert!(cl_value_as_value.is_array()); + } + + pub async fn test_sign_deploy() { + let config: TestConfig = get_config().await; + let deploy_params = DeployStrParams::new( + &config.chain_name, + &config.account, + None, + None, + Some(TTL.to_string()), + ); + let session_params = SessionStrParams::default(); + session_params.set_session_hash(&config.contract_cep78_hash); + session_params.set_session_entry_point(ENTRYPOINT_DECIMALS); + let payment_params = PaymentStrParams::default(); + payment_params.set_payment_amount(PAYMENT_AMOUNT); + let make_deploy = create_test_sdk(Some(config.clone())) + .make_deploy(deploy_params, session_params, payment_params) + .unwrap(); + let signed_deploy = create_test_sdk(Some(config.clone())) + .sign_deploy(make_deploy, &config.to_owned().private_key); + // assert!(signed_deploy.is_valid()); + // Parse the JSON string in 1.6 + let parsed_json: Value = + serde_json::from_str(&signed_deploy.to_json_string().unwrap()).unwrap(); + let cl_value_as_value = &parsed_json["approvals"][0]["signer"]; + assert_eq!( + *cl_value_as_value, + Value::String(config.account.to_string()) + ); + let cl_value_as_value = &parsed_json["approvals"][0]["signature"]; + assert!(cl_value_as_value.is_string()); + } +} + +#[cfg(test)] +mod tests { + use super::test_module::*; + use tokio::test; + + #[test] + pub async fn test_make_deploy_test() { + test_make_deploy().await; + } + + #[test] + pub async fn test_make_transfer_test() { + test_make_transfer().await; + } + + #[test] + pub async fn test_sign_deploy_test() { + test_sign_deploy().await; + } +} diff --git a/tests/integration/rust/src/tests/integration/mod.rs b/tests/integration/rust/src/tests/integration/mod.rs new file mode 100644 index 000000000..4f683d37e --- /dev/null +++ b/tests/integration/rust/src/tests/integration/mod.rs @@ -0,0 +1,6 @@ +pub mod contract; +pub mod deploy; +pub mod deploy_utils; +pub mod params; +pub mod rpcs; +pub mod types; diff --git a/tests/integration/rust/src/tests/integration/params/mod.rs b/tests/integration/rust/src/tests/integration/params/mod.rs new file mode 100644 index 000000000..966f2aff3 --- /dev/null +++ b/tests/integration/rust/src/tests/integration/params/mod.rs @@ -0,0 +1,127 @@ +#[allow(dead_code)] +pub mod test_module { + + use crate::config::{ + get_config, TestConfig, DEFAULT_TTL, DICTIONARY_ITEM_KEY, DICTIONARY_NAME, ENTRYPOINT_MINT, + PAYMENT_AMOUNT, TTL, + }; + use casper_rust_wasm_sdk::types::deploy_params::{ + deploy_str_params::DeployStrParams, dictionary_item_str_params::DictionaryItemStrParams, + payment_str_params::PaymentStrParams, session_str_params::SessionStrParams, + }; + + pub async fn test_deploy_params() { + let config: TestConfig = get_config().await; + let deploy_params = DeployStrParams::new( + &config.chain_name, + &config.account, + None, + None, + Some(TTL.to_string()), + ); + assert_eq!(deploy_params.chain_name().unwrap(), config.chain_name); + assert_eq!(deploy_params.ttl().unwrap(), TTL); + assert_eq!(deploy_params.session_account().unwrap(), config.account); + assert_eq!(deploy_params.secret_key(), None); + assert!(deploy_params.timestamp().is_some()); + } + + pub async fn test_deploy_params_defaults() { + let config: TestConfig = get_config().await; + let deploy_params = DeployStrParams::default(); + deploy_params.set_chain_name(&config.chain_name); + deploy_params.set_session_account(&config.account); + + assert_eq!(deploy_params.chain_name().unwrap(), config.chain_name); + assert_eq!(deploy_params.session_account().unwrap(), config.account); + assert!(deploy_params.timestamp().is_none()); + assert!(deploy_params.ttl().is_none()); + + deploy_params.set_default_ttl(); + deploy_params.set_default_timestamp(); + assert!(deploy_params.timestamp().is_some()); + assert_eq!(deploy_params.ttl().unwrap(), DEFAULT_TTL); + } + + pub async fn test_session_params() { + let config: TestConfig = get_config().await; + let session_params = SessionStrParams::default(); + session_params.set_session_hash(&config.contract_cep78_hash); + session_params.set_session_entry_point(ENTRYPOINT_MINT); + assert_eq!( + session_params.session_hash().unwrap(), + config.contract_cep78_hash + ); + assert_eq!( + session_params.session_entry_point().unwrap(), + ENTRYPOINT_MINT + ); + } + + pub fn test_payment_params() { + let payment_params = PaymentStrParams::default(); + payment_params.set_payment_amount(PAYMENT_AMOUNT); + assert_eq!(payment_params.payment_amount().unwrap(), PAYMENT_AMOUNT); + } + + pub async fn test_dictionary_item_params() { + let config: TestConfig = get_config().await; + let mut dictionary_item_params = DictionaryItemStrParams::default(); + // dictionary_item_params. + assert!(dictionary_item_params.account_named_key().is_none()); + assert!(dictionary_item_params.contract_named_key().is_none()); + assert!(dictionary_item_params.uref().is_none()); + assert!(dictionary_item_params.dictionary().is_none()); + + dictionary_item_params.set_account_named_key( + &config.account_hash, + DICTIONARY_NAME, + DICTIONARY_ITEM_KEY, + ); + assert!(dictionary_item_params.account_named_key().is_some()); + dictionary_item_params.set_contract_named_key( + &config.contract_cep78_hash, + DICTIONARY_NAME, + DICTIONARY_ITEM_KEY, + ); + assert!(dictionary_item_params.contract_named_key().is_some()); + dictionary_item_params.set_uref(&config.dictionary_uref, DICTIONARY_ITEM_KEY); + assert!(dictionary_item_params.uref().is_some()); + dictionary_item_params.set_dictionary(&config.dictionary_key); + assert!(dictionary_item_params.dictionary().is_some()); + } +} + +#[cfg(test)] +mod tests { + use super::test_module::*; + + #[test] + pub fn test_payment_params_test() { + test_payment_params(); + } +} + +#[cfg(test)] +mod tests_async { + use super::test_module::*; + use tokio::test; + + #[test] + pub async fn test_session_params_test() { + test_session_params().await; + } + #[test] + pub async fn test_deploy_params_test() { + test_deploy_params().await; + } + #[test] + pub async fn test_deploy_params_defaults_test() { + test_deploy_params_defaults().await; + } + + #[test] + pub async fn test_dictionary_item_params_test() { + test_dictionary_item_params().await; + } +} diff --git a/tests/integration/rust/src/tests/integration/rpcs/mod.rs b/tests/integration/rust/src/tests/integration/rpcs/mod.rs new file mode 100644 index 000000000..c67efd959 --- /dev/null +++ b/tests/integration/rust/src/tests/integration/rpcs/mod.rs @@ -0,0 +1,561 @@ +#[allow(dead_code)] +pub mod test_module { + use crate::config::{ + get_config, TestConfig, COLLECTION_NAME, CONTRACT_CEP78_KEY, DICTIONARY_ITEM_KEY, + DICTIONARY_NAME, TEST_HELLO_KEY, TEST_HELLO_MESSAGE, + }; + use crate::tests::helpers::create_test_sdk; + use casper_rust_wasm_sdk::types::account_hash::AccountHash; + use casper_rust_wasm_sdk::types::account_identifier::AccountIdentifier; + use casper_rust_wasm_sdk::{ + rpcs::{ + get_balance::GetBalanceInput, + get_dictionary_item::DictionaryItemInput, + query_global_state::{KeyIdentifierInput, PathIdentifierInput, QueryGlobalStateParams}, + }, + types::{ + block_identifier::BlockIdentifierInput, deploy_hash::DeployHash, + deploy_params::dictionary_item_str_params::DictionaryItemStrParams, digest::Digest, + global_state_identifier::GlobalStateIdentifier, public_key::PublicKey, + }, + }; + use serde_json::{to_string, Value}; + + pub async fn test_get_peers() { + let config: TestConfig = get_config().await; + let peers = create_test_sdk(Some(config)).get_peers(None, None).await; + let peers = peers.unwrap(); + assert!(!peers.result.api_version.to_string().is_empty()); + assert!(!peers.result.peers.is_empty()); + } + + pub async fn test_get_account(maybe_block_identifier: Option) { + let config: TestConfig = get_config().await; + let public_key = PublicKey::new(&config.account).unwrap(); + let account_identifier = + AccountIdentifier::from_account_account_under_public_key(public_key); + let get_account = create_test_sdk(Some(config)) + .get_account( + Some(account_identifier), + None, + maybe_block_identifier, + None, + None, + ) + .await; + let get_account = get_account.unwrap(); + assert!(!get_account.result.api_version.to_string().is_empty()); + assert!(!get_account + .result + .account + .account_hash() + .to_string() + .is_empty()); + } + + pub async fn test_get_account_with_account_hash( + maybe_block_identifier: Option, + ) { + let config: TestConfig = get_config().await; + let account_hash = AccountHash::from_formatted_str(&config.account_hash).unwrap(); + let account_identifier = AccountIdentifier::from_account_under_account_hash(account_hash); + let get_account = create_test_sdk(Some(config)) + .get_account( + Some(account_identifier), + None, + maybe_block_identifier, + None, + None, + ) + .await; + let get_account = get_account.unwrap(); + assert!(!get_account.result.api_version.to_string().is_empty()); + assert!(!get_account + .result + .account + .account_hash() + .to_string() + .is_empty()); + } + + pub async fn test_get_auction_info(maybe_block_identifier: Option) { + let config: TestConfig = get_config().await; + let get_auction_info = create_test_sdk(Some(config)) + .get_auction_info(maybe_block_identifier, None, None) + .await; + let get_auction_info = get_auction_info.unwrap(); + assert!(!get_auction_info.result.api_version.to_string().is_empty()); + assert!(!get_auction_info + .result + .auction_state + .block_height() + .to_string() + .is_empty()); + } + + pub async fn test_get_balance() { + let config: TestConfig = get_config().await; + let get_state_root_hash = create_test_sdk(Some(config.clone())) + .get_state_root_hash(None, None, None) + .await; + + let state_root_hash: Digest = get_state_root_hash + .unwrap() + .result + .state_root_hash + .unwrap() + .into(); + let purse_uref = GetBalanceInput::PurseUrefAsString(config.to_owned().purse_uref); + + let get_balance = create_test_sdk(Some(config)) + .get_balance(state_root_hash, purse_uref, None, None) + .await; + + let get_balance = get_balance.unwrap(); + assert!(!get_balance.result.api_version.to_string().is_empty()); + assert!(!get_balance.result.balance_value.to_string().is_empty()); + } + + pub async fn test_get_block_transfers(maybe_block_identifier: Option) { + let config: TestConfig = get_config().await; + let get_block_transfers = create_test_sdk(Some(config)) + .get_block_transfers(maybe_block_identifier, None, None) + .await; + + let get_block_transfers = get_block_transfers.unwrap(); + assert!(!get_block_transfers + .result + .api_version + .to_string() + .is_empty()); + assert!(!get_block_transfers + .result + .block_hash + .unwrap() + .to_string() + .is_empty()); + } + + pub async fn test_get_block(maybe_block_identifier: Option) { + let config: TestConfig = get_config().await; + let get_block = create_test_sdk(Some(config)) + .get_block(maybe_block_identifier, None, None) + .await; + let get_block = get_block.unwrap(); + assert!(!get_block.result.api_version.to_string().is_empty()); + assert!(!get_block + .result + .block + .unwrap() + .hash() + .to_string() + .is_empty()); + } + + pub async fn test_get_chainspec() { + let config: TestConfig = get_config().await; + let get_chainspec = create_test_sdk(Some(config)) + .get_chainspec(None, None) + .await; + + let get_chainspec = get_chainspec.unwrap(); + assert!(!get_chainspec.result.api_version.to_string().is_empty()); + assert!(!get_chainspec.result.chainspec_bytes.to_string().is_empty()); + } + + pub async fn test_get_deploy() { + let config: TestConfig = get_config().await; + let get_deploy = create_test_sdk(Some(config.clone())) + .get_deploy( + DeployHash::new(&config.deploy_hash).unwrap(), + Some(true), + None, + None, + ) + .await; + let get_deploy = get_deploy.unwrap(); + assert!(!get_deploy.result.api_version.to_string().is_empty()); + assert!(!get_deploy.result.deploy.to_string().is_empty()); + } + + pub async fn test_get_dictionary_item() { + let config: TestConfig = get_config().await; + let get_state_root_hash = create_test_sdk(Some(config.clone())) + .get_state_root_hash(None, None, None) + .await; + let state_root_hash: Digest = get_state_root_hash + .unwrap() + .result + .state_root_hash + .unwrap() + .into(); + + let mut params = DictionaryItemStrParams::new(); + params.set_contract_named_key( + &config.contract_cep78_hash, + DICTIONARY_NAME, + DICTIONARY_ITEM_KEY, + ); + let dictionary_item = DictionaryItemInput::Params(params); + let get_dictionary_item = create_test_sdk(Some(config)) + .get_dictionary_item(state_root_hash, dictionary_item, None, None) + .await; + + let get_dictionary_item = get_dictionary_item.unwrap(); + assert!(!get_dictionary_item + .result + .api_version + .to_string() + .is_empty()); + // assert!(!get_dictionary_item + // .result + // .stored_value + // .as_cl_value() + // .unwrap() + // .inner_bytes() + // .is_empty()); + // Parse the JSON string in 1.6 + let json_string = to_string(&get_dictionary_item.result.stored_value).unwrap(); + let parsed_json: Value = serde_json::from_str(&json_string).unwrap(); + let cl_value_as_value = &parsed_json["CLValue"]["parsed"]; + assert!(cl_value_as_value.is_array()); + } + + pub async fn test_get_dictionary_item_without_state_root_hash() { + let config: TestConfig = get_config().await; + let mut params = DictionaryItemStrParams::new(); + params.set_contract_named_key( + &config.contract_cep78_hash, + DICTIONARY_NAME, + DICTIONARY_ITEM_KEY, + ); + let dictionary_item = DictionaryItemInput::Params(params); + let get_dictionary_item = create_test_sdk(Some(config)) + .get_dictionary_item("", dictionary_item, None, None) + .await; + + let get_dictionary_item = get_dictionary_item.unwrap(); + assert!(!get_dictionary_item + .result + .api_version + .to_string() + .is_empty()); + // assert!(!get_dictionary_item + // .result + // .stored_value + // .as_cl_value() + // .unwrap() + // .inner_bytes() + // .is_empty()); + // Parse the JSON string in 1.6 + let json_string = to_string(&get_dictionary_item.result.stored_value).unwrap(); + let parsed_json: Value = serde_json::from_str(&json_string).unwrap(); + let cl_value_as_value = &parsed_json["CLValue"]["parsed"]; + assert!(cl_value_as_value.is_array()); + } + + #[allow(deprecated)] + pub async fn test_get_era_info(maybe_block_identifier: Option) { + let config: TestConfig = get_config().await; + let get_era_info = create_test_sdk(Some(config)) + .get_era_info(maybe_block_identifier, None, None) + .await; + let get_era_info = get_era_info.unwrap(); + assert!(!get_era_info.result.api_version.to_string().is_empty()); + } + + pub async fn test_get_era_summary(maybe_block_identifier: Option) { + let config: TestConfig = get_config().await; + let get_era_summary = create_test_sdk(Some(config)) + .get_era_summary(maybe_block_identifier, None, None) + .await; + + let get_era_summary = get_era_summary.unwrap(); + assert!(!get_era_summary.result.api_version.to_string().is_empty()); + assert!(!get_era_summary + .result + .era_summary + .block_hash + .to_string() + .is_empty()); + } + + pub async fn test_get_node_status() { + let config: TestConfig = get_config().await; + let get_node_status = create_test_sdk(Some(config)) + .get_node_status(None, None) + .await; + let get_node_status = get_node_status.unwrap(); + assert!(!get_node_status.result.api_version.to_string().is_empty()); + assert!(!get_node_status.result.chainspec_name.to_string().is_empty()); + } + + pub async fn test_get_state_root_hash() { + let config: TestConfig = get_config().await; + let get_state_root_hash = create_test_sdk(Some(config)) + .get_state_root_hash(None, None, None) + .await; + + let state_root_hash: Digest = get_state_root_hash + .unwrap() + .result + .state_root_hash + .unwrap() + .into(); + assert!(!state_root_hash.to_string().is_empty()); + } + + pub async fn test_get_validator_changes() { + let config: TestConfig = get_config().await; + let validator_changes = create_test_sdk(Some(config)) + .get_validator_changes(None, None) + .await; + let validator_changes = validator_changes.unwrap(); + assert!(!validator_changes.result.api_version.to_string().is_empty()); + assert!(validator_changes.result.changes.is_empty()); + } + + pub async fn test_list_rpcs() { + let config: TestConfig = get_config().await; + let list_rpcs = create_test_sdk(Some(config)).list_rpcs(None, None).await; + let list_rpcs = list_rpcs.unwrap(); + assert!(!list_rpcs.result.api_version.to_string().is_empty()); + assert!(!list_rpcs.result.name.is_empty()); + } + + pub async fn test_query_balance(maybe_global_state_identifier: Option) { + let config: TestConfig = get_config().await; + let query_balance = create_test_sdk(Some(config.clone())) + .query_balance( + maybe_global_state_identifier, + Some(config.purse_uref), + None, + None, + None, + None, + None, + ) + .await; + let query_balance = query_balance.unwrap(); + assert!(!query_balance.result.api_version.to_string().is_empty()); + assert!(!query_balance.result.balance.to_string().is_empty()); + } + + pub async fn test_query_global_state( + maybe_global_state_identifier: Option, + ) { + let config: TestConfig = get_config().await; + let path = format!("{CONTRACT_CEP78_KEY}/collection_name"); + + let query_params: QueryGlobalStateParams = QueryGlobalStateParams { + key: KeyIdentifierInput::String(config.to_owned().account_hash), + path: Some(PathIdentifierInput::String(path)), + maybe_global_state_identifier, + state_root_hash: None, + maybe_block_id: None, + node_address: None, + verbosity: None, + }; + let query_global_state = create_test_sdk(Some(config.clone())) + .query_global_state(query_params) + .await; + + let query_global_state = query_global_state.unwrap(); + assert!(!query_global_state.result.api_version.to_string().is_empty()); + // assert!(!query_global_state + // .result + // .stored_value + // .as_cl_value() + // .unwrap() + // .inner_bytes() + // .is_empty()); + + // Parse the JSON string in 1.6 + let json_string = to_string(&query_global_state.result.stored_value).unwrap(); + let parsed_json: Value = serde_json::from_str(&json_string).unwrap(); + let cl_value_as_value = &parsed_json["CLValue"]["parsed"]; + assert_eq!( + *cl_value_as_value, + Value::String(COLLECTION_NAME.to_string()) + ); + } + + pub async fn test_query_global_state_key_from_account_hash( + maybe_global_state_identifier: Option, + ) { + let config: TestConfig = get_config().await; + + let query_params: QueryGlobalStateParams = QueryGlobalStateParams { + key: KeyIdentifierInput::String(config.to_owned().account_hash), + path: Some(PathIdentifierInput::String(TEST_HELLO_KEY.to_string())), + maybe_global_state_identifier, + state_root_hash: None, + maybe_block_id: None, + node_address: config.node_address.to_owned(), + verbosity: config.verbosity.to_owned(), + }; + let query_global_state = create_test_sdk(Some(config.clone())) + .query_global_state(query_params) + .await; + + let query_global_state = query_global_state.unwrap(); + assert!(!query_global_state.result.api_version.to_string().is_empty()); + // assert!(!query_global_state + // .result + // .stored_value + // .as_cl_value() + // .unwrap() + // .inner_bytes() + // .is_empty()); + + // Parse the JSON string in 1.6 + let json_string = to_string(&query_global_state.result.stored_value).unwrap(); + let parsed_json: Value = serde_json::from_str(&json_string).unwrap(); + let cl_value_as_value = &parsed_json["CLValue"]["parsed"]; + assert_eq!( + *cl_value_as_value, + Value::String(TEST_HELLO_MESSAGE.to_string()) + ); + } +} + +#[cfg(test)] +mod tests { + use super::test_module::*; + use crate::config::{get_config, TestConfig}; + use casper_rust_wasm_sdk::types::{ + block_hash::BlockHash, block_identifier::BlockIdentifierInput, + global_state_identifier::GlobalStateIdentifier, + }; + use tokio::test; + + #[test] + pub async fn test_get_peers_test() { + test_get_peers().await; + } + #[test] + pub async fn test_get_account_test() { + test_get_account(None).await; + } + #[test] + pub async fn test_get_account_test_with_block_identifier() { + let config: TestConfig = get_config().await; + + let maybe_block_identifier = Some(BlockIdentifierInput::String(config.block_hash)); + test_get_account(maybe_block_identifier).await; + } + #[test] + pub async fn test_get_account_with_account_hash_test() { + test_get_account_with_account_hash(None).await; + } + #[test] + pub async fn test_get_auction_info_test() { + test_get_auction_info(None).await; + } + #[test] + pub async fn test_get_auction_info_test_with_block_identifier() { + let config: TestConfig = get_config().await; + + let maybe_block_identifier = Some(BlockIdentifierInput::String(config.block_hash)); + test_get_auction_info(maybe_block_identifier).await; + } + #[test] + pub async fn test_get_balance_test() { + test_get_balance().await; + } + #[test] + pub async fn test_get_block_transfers_test() { + test_get_block_transfers(None).await; + } + #[test] + pub async fn test_get_block_transfers_test_with_block_identifier() { + let config: TestConfig = get_config().await; + + let maybe_block_identifier = Some(BlockIdentifierInput::String(config.block_hash)); + test_get_block_transfers(maybe_block_identifier).await; + } + #[test] + pub async fn test_get_chainspec_test() { + test_get_chainspec().await; + } + #[test] + pub async fn test_get_deploy_test() { + test_get_deploy().await; + } + #[test] + pub async fn test_get_dictionary_item_test() { + test_get_dictionary_item().await; + } + #[test] + pub async fn test_get_dictionary_item_without_state_root_hash_test() { + test_get_dictionary_item_without_state_root_hash().await; + } + #[test] + pub async fn test_get_era_info_test() { + test_get_era_info(None).await; + } + #[test] + pub async fn test_get_era_info_test_with_block_identifier() { + let config: TestConfig = get_config().await; + + let maybe_block_identifier = Some(BlockIdentifierInput::String(config.block_hash)); + test_get_era_info(maybe_block_identifier).await; + } + #[test] + pub async fn test_get_era_summary_test() { + test_get_era_summary(None).await; + } + #[test] + pub async fn test_get_era_summary_test_with_block_identifier() { + let config: TestConfig = get_config().await; + + let maybe_block_identifier = Some(BlockIdentifierInput::String(config.block_hash)); + test_get_era_summary(maybe_block_identifier).await; + } + #[test] + pub async fn test_get_node_status_test() { + test_get_node_status().await; + } + #[test] + pub async fn test_get_state_root_hash_test() { + test_get_state_root_hash().await; + } + #[test] + pub async fn test_get_validator_changes_test() { + test_get_validator_changes().await; + } + #[test] + pub async fn test_list_rpcs_test() { + test_list_rpcs().await; + } + #[test] + pub async fn test_query_balance_test_with_block_identifier() { + let config: TestConfig = get_config().await; + + let maybe_global_state_identifier = Some(GlobalStateIdentifier::from_block_hash( + BlockHash::new(&config.block_hash).unwrap(), + )); + test_query_balance(maybe_global_state_identifier).await; + } + #[test] + pub async fn test_query_balance_test() { + test_query_balance(None).await; + } + #[test] + pub async fn test_query_global_state_key_from_account_hash_test() { + test_query_global_state_key_from_account_hash(None).await; + } + #[test] + pub async fn test_query_global_state_test_with_block_identifier() { + let config: TestConfig = get_config().await; + + let maybe_global_state_identifier = Some(GlobalStateIdentifier::from_block_hash( + BlockHash::new(&config.block_hash).unwrap(), + )); + test_query_global_state(maybe_global_state_identifier).await; + } + #[test] + pub async fn test_query_global_state_test() { + test_query_global_state(None).await; + } +} diff --git a/tests/integration/rust/src/tests/integration/types/mod.rs b/tests/integration/rust/src/tests/integration/types/mod.rs new file mode 100644 index 000000000..67b358e38 --- /dev/null +++ b/tests/integration/rust/src/tests/integration/types/mod.rs @@ -0,0 +1,731 @@ +#[allow(dead_code)] +pub mod test_module_deploy { + use crate::{ + config::{ + get_config, TestConfig, ARGS_JSON, CONTRACT_CEP78_KEY, DEFAULT_TTL, ENTRYPOINT_MINT, + HELLO_CONTRACT, PAYMENT_AMOUNT, PAYMENT_TRANSFER_AMOUNT, TIMESTAMP_WAIT_TIME, + TRANSFER_AMOUNT, TTL, + }, + tests::helpers::read_wasm_file, + }; + + use casper_rust_wasm_sdk::{ + helpers::get_current_timestamp, + types::{ + contract_hash::ContractHash, + contract_package_hash::ContractPackageHash, + deploy_params::{ + deploy_str_params::DeployStrParams, payment_str_params::PaymentStrParams, + session_str_params::SessionStrParams, + }, + }, + types::{deploy::Deploy, public_key::PublicKey}, + }; + use serde_json::Value; + + use std::thread; + + pub async fn test_deploy_type() { + let config: TestConfig = get_config().await; + let deploy_params = DeployStrParams::new( + &config.chain_name, + &config.account, + Some(config.private_key.clone()), + None, + Some(TTL.to_string()), + ); + let session_params = SessionStrParams::default(); + session_params.set_session_hash(&config.contract_cep78_hash); + session_params.set_session_entry_point(ENTRYPOINT_MINT); + let payment_params = PaymentStrParams::default(); + payment_params.set_payment_amount(PAYMENT_AMOUNT); + let deploy = + Deploy::with_payment_and_session(deploy_params, session_params, payment_params) + .unwrap(); + // assert!(deploy.is_valid()); + // assert!(deploy.has_valid_hash()); + // assert!(!deploy + // .compute_approvals_hash() + // .unwrap() + // .to_string() + // .is_empty()); + // Parse the JSON string in 1.6 + let parsed_json: Value = serde_json::from_str(&deploy.to_json_string().unwrap()).unwrap(); + let cl_value_as_value = &parsed_json["approvals"][0]["signer"]; + assert_eq!( + *cl_value_as_value, + Value::String(config.account.to_string()) + ); + let cl_value_as_value = &parsed_json["approvals"][0]["signature"]; + assert!(cl_value_as_value.is_string()); + } + + pub async fn test_deploy_type_transfer() { + let config: TestConfig = get_config().await; + let deploy_params = DeployStrParams::new( + &config.chain_name, + &config.account, + Some(config.private_key.to_string()), + None, + Some(TTL.to_string()), + ); + let payment_params = PaymentStrParams::default(); + payment_params.set_payment_amount(PAYMENT_TRANSFER_AMOUNT); + let deploy = Deploy::with_transfer( + TRANSFER_AMOUNT, + &config.target_account, + None, + deploy_params, + payment_params, + ) + .unwrap(); + // assert!(deploy.is_valid()); + // assert!(deploy.is_transfer()); + // Parse the JSON string in 1.6 + let parsed_json: Value = serde_json::from_str(&deploy.to_json_string().unwrap()).unwrap(); + let cl_value_as_value = &parsed_json["session"]["Transfer"]["args"][0][1]["parsed"]; + assert_eq!( + *cl_value_as_value, + Value::String(TRANSFER_AMOUNT.to_string()) + ); + } + + pub async fn test_deploy_type_with_ttl() { + let config: TestConfig = get_config().await; + let deploy_params = DeployStrParams::new( + &config.chain_name, + &config.account, + Some(config.private_key.to_string()), + None, + Some(TTL.to_string()), + ); + let session_params = SessionStrParams::default(); + session_params.set_session_hash(&config.contract_cep78_hash); + session_params.set_session_entry_point(ENTRYPOINT_MINT); + let payment_params = PaymentStrParams::default(); + payment_params.set_payment_amount(PAYMENT_AMOUNT); + let mut deploy = + Deploy::with_payment_and_session(deploy_params, session_params, payment_params) + .unwrap(); + // assert!(deploy.is_valid()); + assert_eq!(deploy.ttl(), TTL.to_string()); + deploy = deploy.with_ttl(DEFAULT_TTL, Some(config.private_key.clone())); + // assert!(deploy.is_valid()); + assert_eq!(deploy.ttl(), DEFAULT_TTL.to_string()); + } + + pub async fn test_deploy_type_with_timestamp() { + let config: TestConfig = get_config().await; + let deploy_params = DeployStrParams::new( + &config.chain_name, + &config.account, + Some(config.private_key.clone()), + None, + Some(TTL.to_string()), + ); + let payment_params = PaymentStrParams::default(); + payment_params.set_payment_amount(PAYMENT_TRANSFER_AMOUNT); + let mut deploy = Deploy::with_transfer( + TRANSFER_AMOUNT, + &config.target_account, + None, + deploy_params, + payment_params, + ) + .unwrap(); + // assert!(deploy.is_valid()); + assert!(!deploy.timestamp().is_empty()); + let deploy_timestamp = &deploy.timestamp()[..19]; + // Do not remove this intentional sleep + thread::sleep(TIMESTAMP_WAIT_TIME); + + let current_timestamp = &get_current_timestamp(None)[..19]; + assert_ne!(deploy_timestamp, current_timestamp); + deploy = deploy.with_timestamp(current_timestamp, Some(config.private_key.clone())); + // assert!(deploy.is_valid()); + assert_eq!(&deploy.timestamp()[..19], current_timestamp); + } + + pub async fn test_deploy_type_with_chain_name() { + let config: TestConfig = get_config().await; + let deploy_params = DeployStrParams::new( + &config.chain_name, + &config.account, + Some(config.private_key.clone()), + None, + Some(TTL.to_string()), + ); + let payment_params = PaymentStrParams::default(); + payment_params.set_payment_amount(PAYMENT_TRANSFER_AMOUNT); + let mut deploy = Deploy::with_transfer( + TRANSFER_AMOUNT, + &config.target_account, + None, + deploy_params, + payment_params, + ) + .unwrap(); + // assert!(deploy.is_valid()); + assert_eq!(deploy.chain_name(), config.chain_name); + deploy = deploy.with_chain_name("test", Some(config.private_key.clone())); + // assert!(deploy.is_valid()); + assert_eq!(&deploy.chain_name(), "test"); + } + + pub async fn test_deploy_type_with_account() { + let config: TestConfig = get_config().await; + let deploy_params = DeployStrParams::new( + &config.chain_name, + &config.account, + Some(config.private_key.clone()), + None, + Some(TTL.to_string()), + ); + let payment_params = PaymentStrParams::default(); + payment_params.set_payment_amount(PAYMENT_TRANSFER_AMOUNT); + let mut deploy = Deploy::with_transfer( + TRANSFER_AMOUNT, + &config.target_account, + None, + deploy_params, + payment_params, + ) + .unwrap(); + // assert!(deploy.is_valid()); + assert_eq!(&deploy.account(), &config.account); + deploy = deploy.with_account(PublicKey::new(&config.target_account).unwrap(), None); + // assert!(!deploy.is_valid()); + assert_eq!(&deploy.account(), &config.target_account); + } + + pub async fn test_deploy_type_with_entry_point_name() { + let config: TestConfig = get_config().await; + let deploy_params = DeployStrParams::new( + &config.chain_name, + &config.account, + Some(config.private_key.clone()), + None, + Some(TTL.to_string()), + ); + let session_params = SessionStrParams::default(); + session_params.set_session_hash(&config.contract_cep78_hash); + session_params.set_session_entry_point(ENTRYPOINT_MINT); + let payment_params = PaymentStrParams::default(); + payment_params.set_payment_amount(PAYMENT_AMOUNT); + let mut deploy = + Deploy::with_payment_and_session(deploy_params, session_params, payment_params) + .unwrap(); + // assert!(deploy.is_valid()); + // assert_eq!(&deploy.entry_point_name(), ENTRYPOINT_MINT); + + // Parse the JSON string in 1.6 + let parsed_json: Value = serde_json::from_str(&deploy.to_json_string().unwrap()).unwrap(); + let cl_value_as_value = &parsed_json["session"]["StoredContractByHash"]["entry_point"]; + assert_eq!( + *cl_value_as_value, + Value::String(ENTRYPOINT_MINT.to_string()) + ); + + deploy = deploy.with_entry_point_name("name", Some(config.private_key.clone())); + // assert!(deploy.is_valid()); + //assert_eq!(&deploy.entry_point_name(), "name"); + + // Parse the JSON string in 1.6 + let parsed_json: Value = serde_json::from_str(&deploy.to_json_string().unwrap()).unwrap(); + let cl_value_as_value = &parsed_json["session"]["StoredContractByHash"]["entry_point"]; + assert_eq!(*cl_value_as_value, Value::String("name".to_string())); + } + + pub async fn test_deploy_type_with_hash() { + let config: TestConfig = get_config().await; + let deploy_params = DeployStrParams::new( + &config.chain_name, + &config.account, + Some(config.private_key.clone()), + None, + Some(TTL.to_string()), + ); + let session_params = SessionStrParams::default(); + session_params.set_session_hash(&config.contract_cep78_hash); + session_params.set_session_entry_point(ENTRYPOINT_MINT); + let payment_params = PaymentStrParams::default(); + payment_params.set_payment_amount(PAYMENT_AMOUNT); + let mut deploy = + Deploy::with_payment_and_session(deploy_params, session_params, payment_params) + .unwrap(); + // assert!(deploy.is_valid()); + //assert!(deploy.is_stored_contract()); + + let new_session_hash = "7b9f86fd244c604012002cde5961464bfd371539c5e6df4b42ada6108090421c"; + deploy = deploy.with_hash( + ContractHash::new(new_session_hash).unwrap(), + Some(config.private_key.clone()), + ); + // assert!(deploy.is_valid()); + // assert!(deploy.is_stored_contract()); + assert!(!deploy + .to_json_string() + .unwrap() + .contains(&config.contract_cep78_hash)); + assert!(deploy.to_json_string().unwrap().contains(new_session_hash)); + } + + pub async fn test_deploy_type_by_name() { + let config: TestConfig = get_config().await; + let deploy_params = DeployStrParams::new( + &config.chain_name, + &config.account, + Some(config.private_key.clone()), + None, + Some(TTL.to_string()), + ); + let session_params = SessionStrParams::default(); + session_params.set_session_entry_point(ENTRYPOINT_MINT); + session_params.set_session_name(CONTRACT_CEP78_KEY); + let payment_params = PaymentStrParams::default(); + payment_params.set_payment_amount(PAYMENT_AMOUNT); + let deploy = + Deploy::with_payment_and_session(deploy_params, session_params, payment_params) + .unwrap(); + // assert!(deploy.is_valid()); + // assert!(deploy.is_stored_contract()); + // assert_eq!(deploy.by_name().unwrap().to_string(), CONTRACT_CEP78_KEY); + // Parse the JSON string in 1.6 + let parsed_json: Value = serde_json::from_str(&deploy.to_json_string().unwrap()).unwrap(); + let cl_value_as_value = &parsed_json["session"]["StoredContractByName"]["name"]; + assert_eq!( + *cl_value_as_value, + Value::String(CONTRACT_CEP78_KEY.to_string()) + ); + } + + pub async fn test_deploy_type_with_package_hash() { + let config: TestConfig = get_config().await; + let deploy_params = DeployStrParams::new( + &config.chain_name, + &config.account, + Some(config.private_key.clone()), + None, + Some(TTL.to_string()), + ); + let session_params = SessionStrParams::default(); + session_params.set_session_package_hash(&config.contract_cep78_package_hash); + session_params.set_session_entry_point(ENTRYPOINT_MINT); + let payment_params = PaymentStrParams::default(); + payment_params.set_payment_amount(PAYMENT_AMOUNT); + let mut deploy = + Deploy::with_payment_and_session(deploy_params, session_params, payment_params) + .unwrap(); + // assert!(deploy.is_valid()); + // assert!(deploy.is_stored_contract_package()); + + let new_session_package_hash = + "10631a7146f1a164fb4af24b71881704cccd9dc988e02f85cf332c8d9b88238a"; + deploy = deploy.with_package_hash( + ContractPackageHash::new(new_session_package_hash).unwrap(), + Some(config.private_key.clone()), + ); + // assert!(deploy.is_valid()); + // assert!(deploy.is_stored_contract_package()); + assert!(!deploy + .to_json_string() + .unwrap() + .contains(&config.contract_cep78_package_hash)); + assert!(deploy + .to_json_string() + .unwrap() + .contains(new_session_package_hash)); + } + + pub async fn test_deploy_type_with_module_bytes() { + let config: TestConfig = get_config().await; + let deploy_params = DeployStrParams::new( + &config.chain_name, + &config.account, + Some(config.private_key.clone()), + None, + Some(TTL.to_string()), + ); + let session_params = SessionStrParams::default(); + session_params.set_session_bytes(Vec::from([0]).into()); + let payment_params = PaymentStrParams::default(); + payment_params.set_payment_amount(PAYMENT_AMOUNT); + let mut deploy = + Deploy::with_payment_and_session(deploy_params, session_params, payment_params) + .unwrap(); + // assert!(deploy.is_valid()); + + assert!(deploy + .to_json_string() + .unwrap() + .contains("\"module_bytes\":\"00\"")); + let file_path = HELLO_CONTRACT; + let module_bytes = match read_wasm_file(file_path) { + Ok(module_bytes) => module_bytes, + Err(err) => { + eprintln!("Error reading file: {:?}", err); + return; + } + }; + deploy = deploy.with_module_bytes(module_bytes.into(), Some(config.private_key.clone())); + // assert!(deploy.is_valid()); + // assert!(deploy.is_module_bytes()); + assert!(!deploy + .to_json_string() + .unwrap() + .contains("\"module_bytes\":\"00\"")); + } + + pub async fn test_deploy_type_with_secret_key() { + let config: TestConfig = get_config().await; + let deploy_params = DeployStrParams::new( + &config.chain_name, + &config.account, + None, + None, + Some(TTL.to_string()), + ); + let payment_params = PaymentStrParams::default(); + payment_params.set_payment_amount(PAYMENT_TRANSFER_AMOUNT); + let mut deploy = Deploy::with_transfer( + TRANSFER_AMOUNT, + &config.target_account, + None, + deploy_params, + payment_params, + ) + .unwrap(); + // assert!(!deploy.is_valid()); + assert_eq!(&deploy.account(), &config.account); + deploy = deploy.with_secret_key(Some(config.private_key.clone())); + // assert!(deploy.is_valid()); + // Parse the JSON string in 1.6 + let parsed_json: Value = serde_json::from_str(&deploy.to_json_string().unwrap()).unwrap(); + let cl_value_as_value = &parsed_json["approvals"][0]["signer"]; + assert_eq!( + *cl_value_as_value, + Value::String(config.account.to_string()) + ); + let cl_value_as_value = &parsed_json["approvals"][0]["signature"]; + assert!(cl_value_as_value.is_string()); + } + + pub async fn test_deploy_type_with_standard_payment() { + let config: TestConfig = get_config().await; + let deploy_params = DeployStrParams::new( + &config.chain_name, + &config.account, + Some(config.private_key.clone()), + None, + Some(TTL.to_string()), + ); + let session_params = SessionStrParams::default(); + session_params.set_session_hash(&config.contract_cep78_hash); + session_params.set_session_entry_point(ENTRYPOINT_MINT); + let payment_params = PaymentStrParams::default(); + payment_params.set_payment_amount(PAYMENT_AMOUNT); + let mut deploy = + Deploy::with_payment_and_session(deploy_params, session_params, payment_params) + .unwrap(); + // assert!(deploy.is_valid()); + //assert_eq!(deploy.payment_amount(1_u64).to_string(), PAYMENT_AMOUNT); + let new_payment_amount = "1111111111"; + deploy = deploy.with_standard_payment(new_payment_amount, None); + // assert!(!deploy.is_valid()); + // assert_eq!(deploy.payment_amount(1_u64).to_string(), new_payment_amount); + // Parse the JSON string in 1.6 + let parsed_json: Value = serde_json::from_str(&deploy.to_json_string().unwrap()).unwrap(); + let cl_value_as_value = &parsed_json["payment"]["ModuleBytes"]["args"][0][1]["parsed"]; + assert_eq!( + *cl_value_as_value, + Value::String(new_payment_amount.to_string()) + ); + } + + pub async fn test_deploy_type_is_expired() { + let config: TestConfig = get_config().await; + let old_timestamp = "2023-09-05T16:53:46"; + let deploy_params = DeployStrParams::new( + &config.chain_name, + &config.account, + Some(config.private_key.clone()), + Some(old_timestamp.to_string()), + Some(TTL.to_string()), + ); + let payment_params = PaymentStrParams::default(); + payment_params.set_payment_amount(PAYMENT_TRANSFER_AMOUNT); + let mut deploy = Deploy::with_transfer( + TRANSFER_AMOUNT, + &config.target_account, + None, + deploy_params, + payment_params, + ) + .unwrap(); + // assert!(deploy.is_valid()); + assert!(!deploy.timestamp().is_empty()); + // assert!(deploy.expired()); + let deploy_timestamp = &deploy.timestamp()[..19]; + assert_eq!(deploy_timestamp, old_timestamp); + + let current_timestamp = &get_current_timestamp(None)[..19]; + assert_ne!(deploy_timestamp, current_timestamp); + deploy = deploy.with_timestamp(current_timestamp, Some(config.private_key.clone())); + // assert!(deploy.is_valid()); + assert!(!deploy.timestamp().is_empty()); + // assert!(!deploy.expired()); + assert_eq!(&deploy.timestamp()[..19], current_timestamp); + } + + pub async fn test_deploy_type_sign() { + let config: TestConfig = get_config().await; + let deploy_params = DeployStrParams::new( + &config.chain_name, + &config.account, + None, + None, + Some(TTL.to_string()), + ); + let payment_params = PaymentStrParams::default(); + payment_params.set_payment_amount(PAYMENT_TRANSFER_AMOUNT); + let mut deploy = Deploy::with_transfer( + TRANSFER_AMOUNT, + &config.target_account, + None, + deploy_params, + payment_params, + ) + .unwrap(); + // assert!(!deploy.is_valid()); + // assert!(deploy.has_valid_hash()); + // let compute_approvals_hash = deploy.compute_approvals_hash(); + assert_eq!(&deploy.account(), &config.account); + deploy = deploy.sign(&config.private_key); + // assert!(deploy.is_valid()); + // let new_compute_approvals_hash = deploy.compute_approvals_hash(); + // assert_ne!(compute_approvals_hash, new_compute_approvals_hash); + + // Parse the JSON string in 1.6 + let parsed_json: Value = serde_json::from_str(&deploy.to_json_string().unwrap()).unwrap(); + let cl_value_as_value = &parsed_json["approvals"][0]["signer"]; + assert_eq!( + *cl_value_as_value, + Value::String(config.account.to_string()) + ); + let cl_value_as_value = &parsed_json["approvals"][0]["signature"]; + assert!(cl_value_as_value.is_string()); + } + + pub async fn test_deploy_type_footprint() { + let config: TestConfig = get_config().await; + let deploy_params = DeployStrParams::new( + &config.chain_name, + &config.account, + Some(config.private_key.clone()), + None, + Some(TTL.to_string()), + ); + let payment_params = PaymentStrParams::default(); + payment_params.set_payment_amount(PAYMENT_TRANSFER_AMOUNT); + let deploy = Deploy::with_transfer( + TRANSFER_AMOUNT, + &config.target_account, + None, + deploy_params, + payment_params, + ) + .unwrap(); + // assert!(deploy.is_valid()); + // let footprint = deploy.footprint(); + // assert!(!footprint.size_estimate.to_string().is_empty()); + //assert!(footprint.is_transfer); + // 1.6 has no method footprint() + assert!(deploy.validate_deploy_size()); + } + + pub async fn test_deploy_type_empty_args() { + let config: TestConfig = get_config().await; + let deploy_params = DeployStrParams::new( + &config.chain_name, + &config.account, + Some(config.private_key.clone()), + None, + Some(TTL.to_string()), + ); + let session_params = SessionStrParams::default(); + session_params.set_session_hash(&config.contract_cep78_hash); + session_params.set_session_entry_point(ENTRYPOINT_MINT); + let payment_params = PaymentStrParams::default(); + payment_params.set_payment_amount(PAYMENT_AMOUNT); + let deploy = + Deploy::with_payment_and_session(deploy_params, session_params, payment_params) + .unwrap(); + // assert!(deploy.is_valid()); + assert!(deploy.args().is_empty()); + } + + pub async fn test_deploy_type_args() { + let config: TestConfig = get_config().await; + let deploy_params = DeployStrParams::new( + &config.chain_name, + &config.account, + Some(config.private_key.clone()), + None, + Some(TTL.to_string()), + ); + let mut session_params = SessionStrParams::default(); + session_params.set_session_hash(&config.contract_cep78_hash); + session_params.set_session_entry_point(ENTRYPOINT_MINT); + let args = Vec::from([ + "foo:Bool='true'".to_string(), + "bar:String='value'".to_string(), + ]); + session_params.set_session_args(args.clone()); + let payment_params = PaymentStrParams::default(); + payment_params.set_payment_amount(PAYMENT_AMOUNT); + let deploy = + Deploy::with_payment_and_session(deploy_params, session_params, payment_params) + .unwrap(); + // assert!(deploy.is_valid()); + assert!(!deploy.args().is_empty()); + assert_eq!(deploy.args().len(), args.len()); + } + + pub async fn test_deploy_type_args_json() { + let config: TestConfig = get_config().await; + let deploy_params = DeployStrParams::new( + &config.chain_name, + &config.account, + Some(config.private_key.clone()), + None, + Some(TTL.to_string()), + ); + let session_params = SessionStrParams::default(); + session_params.set_session_hash(&config.contract_cep78_hash); + session_params.set_session_entry_point(ENTRYPOINT_MINT); + session_params.set_session_args_json(ARGS_JSON); + let payment_params = PaymentStrParams::default(); + payment_params.set_payment_amount(PAYMENT_AMOUNT); + let deploy = + Deploy::with_payment_and_session(deploy_params, session_params, payment_params) + .unwrap(); + // assert!(deploy.is_valid()); + assert!(!deploy.args().is_empty()); + assert_eq!(deploy.args().len(), 11); + } + + pub async fn test_deploy_type_add_arg() { + let config: TestConfig = get_config().await; + let deploy_params = DeployStrParams::new( + &config.chain_name, + &config.account, + Some(config.private_key.clone()), + None, + Some(TTL.to_string()), + ); + let session_params = SessionStrParams::default(); + session_params.set_session_hash(&config.contract_cep78_hash); + session_params.set_session_entry_point(ENTRYPOINT_MINT); + let payment_params = PaymentStrParams::default(); + payment_params.set_payment_amount(PAYMENT_AMOUNT); + let mut deploy = + Deploy::with_payment_and_session(deploy_params, session_params, payment_params) + .unwrap(); + // assert!(deploy.is_valid()); + assert!(deploy.args().is_empty()); + deploy = deploy.add_arg("foo:bool='false".into(), Some(config.private_key.clone())); + // assert!(deploy.is_valid()); + assert_eq!(deploy.args().len(), 1); + let arg_json = r#"{"name": "bar", "type": "U256", "value": 1}"#; // No brackets only one arg + deploy = deploy.add_arg(arg_json.into(), Some(config.private_key.clone())); + // assert!(deploy.is_valid()); + assert_eq!(deploy.args().len(), 2); + } +} + +#[cfg(test)] +mod tests_deploy { + use super::test_module_deploy::*; + use tokio::test; + + #[test] + pub async fn test_deploy_type_test() { + test_deploy_type().await; + } + #[test] + pub async fn test_deploy_type_transfer_test() { + test_deploy_type_transfer().await; + } + #[test] + pub async fn test_deploy_type_test_with_ttl_test() { + test_deploy_type_with_ttl().await; + } + #[test] + pub async fn test_deploy_type_test_with_timestamp_test() { + test_deploy_type_with_timestamp().await; + } + #[test] + pub async fn test_deploy_type_test_with_chain_name_test() { + test_deploy_type_with_chain_name().await; + } + #[test] + pub async fn test_deploy_type_test_with_account_test() { + test_deploy_type_with_account().await; + } + #[test] + pub async fn test_deploy_type_test_with_entry_point_name_test() { + test_deploy_type_with_entry_point_name().await; + } + #[test] + pub async fn test_deploy_type_test_with_hash_test() { + test_deploy_type_with_hash().await; + } + #[test] + pub async fn test_deploy_type_test_by_name_test() { + test_deploy_type_by_name().await; + } + #[test] + pub async fn test_deploy_type_test_with_package_hash_test() { + test_deploy_type_with_package_hash().await; + } + #[test] + pub async fn test_deploy_type_test_with_module_bytes_test() { + test_deploy_type_with_module_bytes().await; + } + #[test] + pub async fn test_deploy_type_test_with_secret_key_test() { + test_deploy_type_with_secret_key().await; + } + #[test] + pub async fn test_deploy_type_with_standard_payment_test() { + test_deploy_type_with_standard_payment().await; + } + #[test] + pub async fn test_deploy_type_is_expired_test() { + test_deploy_type_is_expired().await; + } + #[test] + pub async fn test_deploy_type_sign_test() { + test_deploy_type_sign().await; + } + #[test] + pub async fn test_deploy_type_footprint_test() { + test_deploy_type_footprint().await; + } + #[test] + pub async fn test_deploy_type_empty_args_test() { + test_deploy_type_empty_args().await; + } + #[test] + pub async fn test_deploy_type_args_test() { + test_deploy_type_args().await; + } + #[test] + pub async fn test_deploy_type_args_json_test() { + test_deploy_type_args_json().await; + } + #[test] + pub async fn test_deploy_type_add_arg_test() { + test_deploy_type_add_arg().await; + } +} diff --git a/tests/integration/rust/src/tests/integration_tests.rs b/tests/integration/rust/src/tests/integration_tests.rs new file mode 100644 index 000000000..9d02b8d45 --- /dev/null +++ b/tests/integration/rust/src/tests/integration_tests.rs @@ -0,0 +1,196 @@ +#[allow(dead_code)] +pub mod test_module { + use crate::{ + config::{get_config, TestConfig, DEFAULT_TTL, TTL}, + tests::helpers::create_test_sdk, + }; + use casper_rust_wasm_sdk::{ + helpers::{ + get_current_timestamp, get_gas_price_or_default, get_ttl_or_default, hex_to_string, + hex_to_uint8_vec, json_pretty_print, motes_to_cspr, parse_timestamp, parse_ttl, + public_key_from_private_key, secret_key_from_pem, + }, + types::verbosity::Verbosity, + }; + use chrono::DateTime; + + pub async fn test_global_node_address_and_verbosity() { + let sdk = create_test_sdk(None); + assert_eq!(sdk.get_node_address(None), "".to_string()); + assert_eq!(sdk.get_verbosity(None), Verbosity::Low); + let config: TestConfig = get_config().await; + let mut sdk = create_test_sdk(Some(config.clone())); + assert_eq!(sdk.get_node_address(None), config.node_address.unwrap()); + assert_eq!(sdk.get_verbosity(None), config.verbosity.unwrap()); + let _ = sdk.set_node_address(Some("test".to_string())); + assert_eq!(sdk.get_node_address(None), "test".to_string()); + let _ = sdk.set_verbosity(Some(Verbosity::Medium)); + assert_eq!(sdk.get_verbosity(None), Verbosity::Medium); + } + + pub async fn test_hex_to_uint8_vec() { + let config: TestConfig = get_config().await; + let test: Vec = hex_to_uint8_vec(&config.account); + assert!(!test.is_empty()); + assert_eq!(test.len(), 33); + } + + pub fn test_hex_to_string() { + let test: String = hex_to_string( + "5b70726f746f636f6c5d0a232050726f746f636f6c2076657273696f6e2e0a76657273696f6e", + ); + let expected = "[protocol]\n# Protocol version.\nversion"; + assert!(!test.is_empty()); + assert_eq!(test, expected); + } + + pub fn test_motes_to_cspr() { + let cspr = motes_to_cspr("1000000000"); + assert_eq!(cspr, "1"); + let cspr = motes_to_cspr("2500000000"); + assert_eq!(cspr, "2.50"); + let cspr = motes_to_cspr("1111100000000"); + assert_eq!(cspr, "1111.10"); + let cspr = motes_to_cspr("2500000000000000000000000000"); + assert_eq!(cspr, "2500000000000000000"); + let cspr = motes_to_cspr("1000000000000250000000000000"); + assert_eq!(cspr, "1000000000000250000"); + } + + pub async fn test_public_key_from_private_key() { + let config: TestConfig = get_config().await; + let public_key = public_key_from_private_key(&config.private_key).unwrap(); + assert_eq!(public_key, config.account); + } + + pub async fn test_secret_key_from_pem() { + let config: TestConfig = get_config().await; + let secret_key = secret_key_from_pem(&config.private_key).unwrap(); + assert_eq!(secret_key.to_string(), "SecretKey::Ed25519"); + } + + pub fn test_get_current_timestamp() { + let current_timestamp = get_current_timestamp(None); + let parsed_timestamp = DateTime::parse_from_rfc3339(¤t_timestamp); + assert!(parsed_timestamp.is_ok()); + let current_timestamp = get_current_timestamp(Some(current_timestamp)); + let parsed_timestamp = DateTime::parse_from_rfc3339(¤t_timestamp); + assert!(parsed_timestamp.is_ok()); + } + + pub fn test_parse_timestamp() { + let current_timestamp = get_current_timestamp(None); + let parsed_timestamp = DateTime::parse_from_rfc3339(¤t_timestamp); + assert!(parsed_timestamp.is_ok()); + let parsed_timestamp = parse_timestamp(¤t_timestamp); + assert!(parsed_timestamp.is_ok()); + assert!(!parsed_timestamp.unwrap().to_string().is_empty()); + } + + pub fn test_get_ttl_or_default() { + let ttl = get_ttl_or_default(None); + assert_eq!(ttl, DEFAULT_TTL); + let ttl = get_ttl_or_default(Some(TTL)); + assert_eq!(ttl, TTL); + } + + pub fn test_parse_ttl() { + let ttl = parse_ttl(DEFAULT_TTL).unwrap(); + assert_eq!(ttl.to_string(), DEFAULT_TTL); + let ttl = parse_ttl(TTL).unwrap(); + assert_eq!(ttl.to_string(), TTL); + } + + pub fn test_get_gas_price_or_default() { + let gas_price = get_gas_price_or_default(None); + assert_eq!(gas_price.to_string(), "1"); + let gas_price = get_gas_price_or_default(Some(2)); + assert_eq!(gas_price.to_string(), "2"); + } + + pub async fn test_get_json_pretty_print() { + let config: TestConfig = get_config().await; + let get_node_status = create_test_sdk(Some(config)) + .get_node_status(None, None) + .await; + let get_node_status = get_node_status.unwrap(); + assert!(!get_node_status.result.api_version.to_string().is_empty()); + + // to_string + let print = json_pretty_print( + get_node_status.clone().result.block_sync, + Some(Verbosity::Low), + ); + let expected = r#"{"historical":null,"forward":null}"#; + assert_eq!(print, expected); + + // casper_types::json_pretty_print + let print = json_pretty_print( + get_node_status.clone().result.block_sync, + Some(Verbosity::Medium), + ); + let expected = "{\n \"historical\": null,\n \"forward\": null\n}"; + assert_eq!(print, expected); + + // serde_json::to_string_pretty + let print = json_pretty_print( + get_node_status.clone().result.block_sync, + Some(Verbosity::High), + ); + let expected = "{\n \"historical\": null,\n \"forward\": null\n}"; + assert_eq!(print, expected); + } +} + +#[cfg(test)] +mod tests { + use super::test_module::*; + + #[test] + pub fn test_hex_to_string_test() { + test_hex_to_string(); + } + #[test] + pub fn test_motes_to_cspr_test() { + test_motes_to_cspr(); + } + #[test] + pub fn test_parse_timestamp_test() { + test_parse_timestamp(); + } + #[test] + pub fn test_get_ttl_or_default_test() { + test_get_ttl_or_default(); + } + #[test] + pub fn test_get_gas_price_or_default_test() { + test_get_gas_price_or_default(); + } +} + +#[cfg(test)] +mod tests_async { + use super::test_module::*; + use tokio::test; + + #[test] + pub async fn test_global_node_address_and_verbosity_test() { + test_global_node_address_and_verbosity().await; + } + #[test] + pub async fn test_hex_to_uint8_vec_test() { + test_hex_to_uint8_vec().await; + } + #[test] + pub async fn test_public_key_from_private_key_test() { + test_public_key_from_private_key().await; + } + #[test] + pub async fn test_secret_key_from_pem_test() { + test_secret_key_from_pem().await; + } + #[test] + pub async fn test_get_json_pretty_print_test() { + test_get_json_pretty_print().await; + } +} diff --git a/tests/integration/rust/src/tests/mod.rs b/tests/integration/rust/src/tests/mod.rs new file mode 100644 index 000000000..ec3af4313 --- /dev/null +++ b/tests/integration/rust/src/tests/mod.rs @@ -0,0 +1,491 @@ +pub mod helpers; +pub mod integration; +pub mod integration_tests; +use std::{ + fs::File, + io::{self, Read}, + path::Path, + thread, + time::{self, Duration}, +}; + +use casper_rust_wasm_sdk::{types::verbosity::Verbosity, SDK}; + +#[cfg(not(test))] +pub async fn run_tests_or_examples() { + // Run a specific test ? + // integration::rpcs::test_module::test_get_peers().await; + // Run an example ? + let _ = _run_example_1().await; +} + +pub async fn _run_example_1() { + let sdk = SDK::new( + Some("https://rpc.integration.casperlabs.io".to_string()), + Some(Verbosity::High), + ); + use casper_rust_wasm_sdk::types::deploy_hash::DeployHash; + + let deploy_hash = + DeployHash::new("a8778b2e4bd1ad02c168329a1f6f3674513f4d350da1b5f078e058a3422ad0b9") + .unwrap(); + + let finalized_approvals = true; + let get_deploy = sdk + .get_deploy(deploy_hash, Some(finalized_approvals), None, None) + .await; + + let deploy = get_deploy.unwrap().result.deploy; + let deploy_header = deploy.header(); + let timestamp = deploy_header.timestamp(); + println!("{timestamp}"); +} + +pub async fn _run_example_2() { + let sdk = SDK::new( + Some("https://rpc.integration.casperlabs.io".to_string()), + Some(Verbosity::High), + ); + + let get_auction_info = sdk.get_auction_info(None, None, None).await; + + let auction_state = get_auction_info.unwrap().result.auction_state; + let state_root_hash = auction_state.state_root_hash(); + println!("{:?}", state_root_hash); + let block_height = auction_state.block_height(); + println!("{block_height}"); +} + +pub async fn _run_example_3() { + let sdk = SDK::new( + Some("https://rpc.integration.casperlabs.io".to_string()), + Some(Verbosity::High), + ); + + let get_peers = sdk.get_peers(None, None).await; + + let peers = get_peers.unwrap().result.peers; + for peer in &peers { + println!("{:?}", peer) + } +} + +pub async fn _run_example_4() { + let sdk = SDK::new( + Some("https://rpc.integration.casperlabs.io".to_string()), + Some(Verbosity::High), + ); + + let get_block = sdk.get_block(None, None, None).await; + + let block = get_block.unwrap().result.block.unwrap(); + let block_hash = block.hash(); + println!("{:?}", block_hash); +} + +pub async fn _run_example_5() { + let sdk = SDK::new( + Some("https://rpc.integration.casperlabs.io".to_string()), + Some(Verbosity::High), + ); + + use casper_rust_wasm_sdk::types::deploy_params::{ + deploy_str_params::DeployStrParams, payment_str_params::PaymentStrParams, + }; + + pub const CHAIN_NAME: &str = "integration-test"; + pub const PUBLIC_KEY: &str = + "0169d8d607f3ba04c578140398ceb1bd5296c653f965256bd7097982b9026c5129"; + pub const PAYMENT_AMOUNT: &str = "100000000"; + pub const TRANSFER_AMOUNT: &str = "2500000000"; + pub const TTL: &str = "1h"; + pub const TARGET_ACCOUNT: &str = + "018f2875776bc73e416daf1cf0df270efbb52becf1fc6af6d364d29d61ae23fe44"; + + let deploy_params = DeployStrParams::new( + CHAIN_NAME, + PUBLIC_KEY, // sender account + None, // optional secret key to sign transfer deploy + None, // optional timestamp + Some(TTL.to_string()), // optional TTL + ); + + let payment_params = PaymentStrParams::default(); + payment_params.set_payment_amount(PAYMENT_AMOUNT); + + let make_transfer = sdk + .make_transfer( + TRANSFER_AMOUNT, + TARGET_ACCOUNT, // target account + None, // optional transfer_id + deploy_params, + payment_params, + ) + .unwrap(); + println!("{:?}", make_transfer.header().timestamp()); +} + +pub async fn _run_example_6() { + let sdk = SDK::new( + Some("http://127.0.0.1:11101".to_string()), + Some(Verbosity::High), + ); + + use casper_rust_wasm_sdk::types::deploy_params::{ + deploy_str_params::DeployStrParams, payment_str_params::PaymentStrParams, + }; + + pub const CHAIN_NAME: &str = "casper-net-1"; + pub const PUBLIC_KEY: &str = + "0169d8d607f3ba04c578140398ceb1bd5296c653f965256bd7097982b9026c5129"; + pub const PRIVATE_KEY: &str = r#"-----BEGIN PRIVATE KEY----- + -----END PRIVATE KEY-----"#; + pub const PAYMENT_AMOUNT: &str = "100000000"; + pub const TRANSFER_AMOUNT: &str = "2500000000"; + pub const TTL: &str = "1h"; + pub const TARGET_ACCOUNT: &str = + "018f2875776bc73e416daf1cf0df270efbb52becf1fc6af6d364d29d61ae23fe44"; + + let deploy_params = DeployStrParams::new( + CHAIN_NAME, + PUBLIC_KEY, // sender account + Some(PRIVATE_KEY.to_string()), + None, // optional timestamp + Some(TTL.to_string()), // optional TTL + ); + + let payment_params = PaymentStrParams::default(); + payment_params.set_payment_amount(PAYMENT_AMOUNT); + + let transfer = sdk + .transfer( + TRANSFER_AMOUNT, + TARGET_ACCOUNT, + None, // optional transfer_id + deploy_params, + payment_params, + None, + None, + ) + .await; + println!("{:?}", transfer.as_ref().unwrap().result.deploy_hash); +} + +pub async fn _run_example_7() { + let sdk = SDK::new( + Some("https://rpc.integration.casperlabs.io".to_string()), + Some(Verbosity::High), + ); + + use casper_rust_wasm_sdk::types::deploy_params::{ + deploy_str_params::DeployStrParams, payment_str_params::PaymentStrParams, + session_str_params::SessionStrParams, + }; + + pub const CHAIN_NAME: &str = "casper-net-1"; + pub const PUBLIC_KEY: &str = + "0169d8d607f3ba04c578140398ceb1bd5296c653f965256bd7097982b9026c5129"; + pub const PAYMENT_AMOUNT: &str = "5000000000"; + pub const CONTRACT_HASH: &str = + "hash-5be5b0ef09a7016e11292848d77f539e55791cb07a7012fbc336b1f92a4fe743"; + pub const ENTRY_POINT: &str = "decimals"; + pub const TTL: &str = "1h"; + + let deploy_params = DeployStrParams::new( + CHAIN_NAME, + PUBLIC_KEY, // sender account + None, // optional secret key to sign deploy + None, // optional timestamp + Some(TTL.to_string()), // optional TTL + ); + + let session_params = SessionStrParams::default(); + session_params.set_session_hash(CONTRACT_HASH); + session_params.set_session_entry_point(ENTRY_POINT); + + let payment_params = PaymentStrParams::default(); + payment_params.set_payment_amount(PAYMENT_AMOUNT); + + let deploy = sdk + .make_deploy(deploy_params, session_params, payment_params) + .unwrap(); + println!("{:?}", deploy.header().timestamp()); +} + +pub async fn _run_example_8() { + let sdk = SDK::new( + Some("http://127.0.0.1:11101".to_string()), + Some(Verbosity::High), + ); + + use casper_rust_wasm_sdk::types::deploy_params::{ + deploy_str_params::DeployStrParams, payment_str_params::PaymentStrParams, + session_str_params::SessionStrParams, + }; + + pub const CHAIN_NAME: &str = "casper-net-1"; + pub const PUBLIC_KEY: &str = + "0169d8d607f3ba04c578140398ceb1bd5296c653f965256bd7097982b9026c5129"; + pub const PRIVATE_KEY: &str = r#"-----BEGIN PRIVATE KEY----- + -----END PRIVATE KEY-----"#; + pub const PAYMENT_AMOUNT: &str = "5000000000"; + pub const CONTRACT_HASH: &str = + "hash-6646c99b3327954b47035bbc31343d9d96a833a9fc9c8c6d809b29f2482b0abf"; + pub const ENTRY_POINT: &str = "set_variables"; + pub const TTL: &str = "1h"; + + let deploy_params = DeployStrParams::new( + CHAIN_NAME, + PUBLIC_KEY, // sender account + Some(PRIVATE_KEY.to_string()), + None, // optional timestamp + Some(TTL.to_string()), // optional TTL + ); + + let session_params = SessionStrParams::default(); + session_params.set_session_hash(CONTRACT_HASH); + session_params.set_session_entry_point(ENTRY_POINT); + + let payment_params = PaymentStrParams::default(); + payment_params.set_payment_amount(PAYMENT_AMOUNT); + + let deploy = sdk + .deploy(deploy_params, session_params, payment_params, None, None) + .await; + println!("{:?}", deploy.as_ref().unwrap().result.deploy_hash); +} + +pub async fn _run_example_9() { + let sdk = SDK::new( + Some("http://127.0.0.1:11101".to_string()), + Some(Verbosity::High), + ); + + use casper_rust_wasm_sdk::types::{ + deploy::Deploy, + deploy_params::{ + deploy_str_params::DeployStrParams, payment_str_params::PaymentStrParams, + session_str_params::SessionStrParams, + }, + }; + + pub const CHAIN_NAME: &str = "casper-net-1"; + pub const PUBLIC_KEY: &str = + "0169d8d607f3ba04c578140398ceb1bd5296c653f965256bd7097982b9026c5129"; + pub const PRIVATE_KEY: &str = r#"-----BEGIN PRIVATE KEY----- + -----END PRIVATE KEY-----"#; + pub const PAYMENT_AMOUNT: &str = "5000000000"; + pub const CONTRACT_HASH: &str = + "hash-6646c99b3327954b47035bbc31343d9d96a833a9fc9c8c6d809b29f2482b0abf"; + pub const ENTRY_POINT: &str = "set_variables"; + pub const TTL: &str = "1h"; + + let deploy_params = DeployStrParams::new( + CHAIN_NAME, + PUBLIC_KEY, // sender account + Some(PRIVATE_KEY.to_string()), + None, // optional timestamp + Some(TTL.to_string()), // optional TTL + ); + + let session_params = SessionStrParams::default(); + session_params.set_session_hash(CONTRACT_HASH); + session_params.set_session_entry_point(ENTRY_POINT); + + let payment_params = PaymentStrParams::default(); + payment_params.set_payment_amount(PAYMENT_AMOUNT); + + let deploy = + Deploy::with_payment_and_session(deploy_params, session_params, payment_params).unwrap(); + + let put_deploy = sdk.put_deploy(deploy, None, None).await; + println!("{:?}", put_deploy.as_ref().unwrap().result.deploy_hash); +} + +pub async fn _run_example_10() { + let sdk = SDK::new( + Some("http://127.0.0.1:11101".to_string()), + Some(Verbosity::High), + ); + + use casper_rust_wasm_sdk::types::{ + deploy::Deploy, + deploy_params::{deploy_str_params::DeployStrParams, payment_str_params::PaymentStrParams}, + }; + + pub const CHAIN_NAME: &str = "casper-net-1"; + pub const PUBLIC_KEY: &str = + "0169d8d607f3ba04c578140398ceb1bd5296c653f965256bd7097982b9026c5129"; + pub const PRIVATE_KEY: &str = r#"-----BEGIN PRIVATE KEY----- + -----END PRIVATE KEY-----"#; + pub const PAYMENT_AMOUNT: &str = "100000000"; + pub const TRANSFER_AMOUNT: &str = "2500000000"; + pub const TARGET_ACCOUNT: &str = + "018f2875776bc73e416daf1cf0df270efbb52becf1fc6af6d364d29d61ae23fe44"; + pub const TTL: &str = "1h"; + + let deploy_params = DeployStrParams::new( + CHAIN_NAME, + PUBLIC_KEY, // sender account + Some(PRIVATE_KEY.to_string()), + None, // optional timestamp + Some(TTL.to_string()), // optional TTL + ); + + let payment_params = PaymentStrParams::default(); + payment_params.set_payment_amount(PAYMENT_AMOUNT); + + let transfer_deploy = Deploy::with_transfer( + TRANSFER_AMOUNT, + TARGET_ACCOUNT, + None, + deploy_params, + payment_params, + ) + .unwrap(); + + let put_deploy = sdk.put_deploy(transfer_deploy, None, None).await; + println!("{:?}", put_deploy.as_ref().unwrap().result.deploy_hash); +} + +pub async fn _run_example_11() -> Result<(), String> { + let sdk = SDK::new( + Some("http://127.0.0.1:11101".to_string()), + Some(Verbosity::High), + ); + + use casper_rust_wasm_sdk::{ + helpers::json_pretty_print, + types::{ + deploy_hash::DeployHash, + deploy_params::{ + deploy_str_params::DeployStrParams, payment_str_params::PaymentStrParams, + session_str_params::SessionStrParams, + }, + }, + }; + + fn read_wasm_file(file_path: &str) -> Result, io::Error> { + let root_path = Path::new("../../wasm/"); + let path = root_path.join(file_path); + let mut file = File::open(path)?; + let mut buffer = Vec::new(); + file.read_to_end(&mut buffer)?; + Ok(buffer) + } + + pub const CHAIN_NAME: &str = "casper-net-1"; + pub const PUBLIC_KEY: &str = + "0169d8d607f3ba04c578140398ceb1bd5296c653f965256bd7097982b9026c5129"; + pub const PRIVATE_KEY: &str = r#"-----BEGIN PRIVATE KEY----- + -----END PRIVATE KEY-----"#; + pub const ARGS_JSON: &str = r#"[ +{"name": "collection_name", "type": "String", "value": "enhanced-nft-1"}, +{"name": "collection_symbol", "type": "String", "value": "ENFT-1"}, +{"name": "total_token_supply", "type": "U64", "value": 10}, +{"name": "ownership_mode", "type": "U8", "value": 0}, +{"name": "nft_kind", "type": "U8", "value": 1}, +{"name": "allow_minting", "type": "Bool", "value": true}, +{"name": "owner_reverse_lookup_mode", "type": "U8", "value": 0}, +{"name": "nft_metadata_kind", "type": "U8", "value": 2}, +{"name": "identifier_mode", "type": "U8", "value": 0}, +{"name": "metadata_mutability", "type": "U8", "value": 0}, +{"name": "events_mode", "type": "U8", "value": 1} +]"#; + pub const PAYMENT_AMOUNT_CONTRACT_CEP78: &str = "300000000000"; + pub const CEP78_CONTRACT: &str = "cep78.wasm"; + pub const DEPLOY_TIME: Duration = time::Duration::from_millis(45000); + + let deploy_params = DeployStrParams::new( + CHAIN_NAME, + PUBLIC_KEY, + Some(PRIVATE_KEY.to_string()), + None, + None, + ); + + let payment_params = PaymentStrParams::default(); + payment_params.set_payment_amount(PAYMENT_AMOUNT_CONTRACT_CEP78); + + let session_params = SessionStrParams::default(); + session_params.set_session_args_json(ARGS_JSON); + + let file_path = CEP78_CONTRACT; + let module_bytes = match read_wasm_file(file_path) { + Ok(module_bytes) => module_bytes, + Err(err) => { + return Err(format!("Error reading file {}: {:?}", file_path, err)); + } + }; + + session_params.set_session_bytes(module_bytes.into()); + + let install = sdk + .install(deploy_params, session_params, payment_params, None) + .await; + + let deploy_hash_result = install.as_ref().unwrap().result.deploy_hash; + println!("{:?}", deploy_hash_result); + + println!("wait {:?}", DEPLOY_TIME); + thread::sleep(DEPLOY_TIME); // Let's wait for deployment + + let finalized_approvals = true; + let deploy_hash = DeployHash::from(deploy_hash_result); + let get_deploy = sdk + .get_deploy(deploy_hash, Some(finalized_approvals), None, None) + .await; + let get_deploy = get_deploy.unwrap(); + let result = &get_deploy.result.execution_results.get(0).unwrap().result; + println!("{}", json_pretty_print(result, Some(Verbosity::High))); + Ok(()) +} + +pub async fn _run_example_12() { + let sdk = SDK::new( + Some("http://127.0.0.1:11101".to_string()), + Some(Verbosity::High), + ); + + use casper_rust_wasm_sdk::types::deploy_params::{ + deploy_str_params::DeployStrParams, payment_str_params::PaymentStrParams, + session_str_params::SessionStrParams, + }; + + pub const CHAIN_NAME: &str = "casper-net-1"; + pub const PUBLIC_KEY: &str = + "0169d8d607f3ba04c578140398ceb1bd5296c653f965256bd7097982b9026c5129"; + pub const PRIVATE_KEY: &str = r#"-----BEGIN PRIVATE KEY----- + -----END PRIVATE KEY-----"#; + pub const CONTRACT_HASH: &str = + "hash-c12808431d490e2c463c2f968d0a4eaa0f9d57842508d9041aa42e2bd21eb96c"; + pub const ENTRYPOINT_MINT: &str = "mint"; + pub const TOKEN_OWNER: &str = + "account-hash-878985c8c07064e09e67cc349dd21219b8e41942a0adc4bfa378cf0eace32611"; + pub const PAYMENT_AMOUNT: &str = "5000000000"; + + let deploy_params = DeployStrParams::new( + CHAIN_NAME, + PUBLIC_KEY, + Some(PRIVATE_KEY.to_string()), + None, + None, + ); + let mut session_params = SessionStrParams::default(); + session_params.set_session_hash(CONTRACT_HASH); + session_params.set_session_entry_point(ENTRYPOINT_MINT); + + let args = Vec::from([ + "token_meta_data:String='test_meta_data'".to_string(), + format!("token_owner:Key='{TOKEN_OWNER}'").to_string(), + ]); + session_params.set_session_args(args); + + let payment_params = PaymentStrParams::default(); + payment_params.set_payment_amount(PAYMENT_AMOUNT); + let call_entrypoint = sdk + .call_entrypoint(deploy_params, session_params, payment_params, None) + .await; + let deploy_hash_result = call_entrypoint.as_ref().unwrap().result.deploy_hash; + println!("{:?}", deploy_hash_result); +} diff --git a/tests/wasm/cep78.wasm b/tests/wasm/cep78.wasm new file mode 100755 index 000000000..2c7dee2b0 Binary files /dev/null and b/tests/wasm/cep78.wasm differ diff --git a/tests/wasm/hello.wasm b/tests/wasm/hello.wasm new file mode 100755 index 000000000..5819216f3 Binary files /dev/null and b/tests/wasm/hello.wasm differ