From 6519df606e07f903ae05fe4449cd66889002fa2d Mon Sep 17 00:00:00 2001 From: Kevin Yue Date: Fri, 13 Dec 2024 10:58:39 +0000 Subject: [PATCH] upgrade gpauth --- .github/workflows/build.yaml | 8 +- .github/workflows/publish.yaml | 8 +- .github/workflows/release.yaml | 4 +- .gitignore | 3 + Cargo.lock | 106 +- Cargo.toml | 6 +- Makefile | 3 +- README.md | 19 +- apps/gpauth/Cargo.toml | 11 +- apps/gpauth/src/auth_messenger.rs | 108 + apps/gpauth/src/auth_window.rs | 624 ++---- apps/gpauth/src/cli.rs | 195 +- apps/gpauth/src/common.rs | 174 ++ apps/gpauth/src/lib.rs | 7 + apps/gpauth/src/main.rs | 1 - apps/gpauth/src/unix.rs | 133 ++ apps/gpauth/tauri.conf.json | 47 +- apps/gpclient/Cargo.toml | 1 + apps/gpclient/src/cli.rs | 39 +- apps/gpclient/src/launch_gui.rs | 3 +- .../{icon-674efcbe.svg => icon-BlfaAlWe.svg} | 0 .../{index-11e7064a.css => main-B3YRsHQ2.css} | 0 .../gpgui-helper/dist/assets/main-DJgDj3te.js | 185 ++ .../gpgui-helper/dist/assets/main-c159dd55.js | 188 -- apps/gpgui-helper/dist/index.html | 5 +- apps/gpgui-helper/src-tauri/Cargo.toml | 1 + .../src-tauri/gen/schemas/acl-manifests.json | 1 - .../src-tauri/gen/schemas/capabilities.json | 1 - .../src-tauri/gen/schemas/desktop-schema.json | 1756 ----------------- .../src-tauri/gen/schemas/linux-schema.json | 1756 ----------------- crates/gpapi/Cargo.toml | 1 + crates/gpapi/src/auth.rs | 76 +- crates/gpapi/src/clap/mod.rs | 27 + crates/gpapi/src/error.rs | 20 +- crates/gpapi/src/gateway/login.rs | 2 +- crates/gpapi/src/lib.rs | 1 + crates/gpapi/src/portal/config.rs | 2 +- crates/gpapi/src/portal/prelogin.rs | 4 +- crates/gpapi/src/utils/window.rs | 26 +- packaging/deb/compat | 1 + packaging/deb/control.in | 2 +- packaging/pkgbuild/PKGBUILD.in | 4 +- .../rpm/globalprotect-openconnect.spec.in | 4 +- 43 files changed, 1098 insertions(+), 4465 deletions(-) create mode 100644 apps/gpauth/src/auth_messenger.rs create mode 100644 apps/gpauth/src/common.rs create mode 100644 apps/gpauth/src/lib.rs create mode 100644 apps/gpauth/src/unix.rs rename apps/gpgui-helper/dist/assets/{icon-674efcbe.svg => icon-BlfaAlWe.svg} (100%) rename apps/gpgui-helper/dist/assets/{index-11e7064a.css => main-B3YRsHQ2.css} (100%) create mode 100644 apps/gpgui-helper/dist/assets/main-DJgDj3te.js delete mode 100644 apps/gpgui-helper/dist/assets/main-c159dd55.js delete mode 100644 apps/gpgui-helper/src-tauri/gen/schemas/acl-manifests.json delete mode 100644 apps/gpgui-helper/src-tauri/gen/schemas/capabilities.json delete mode 100644 apps/gpgui-helper/src-tauri/gen/schemas/desktop-schema.json delete mode 100644 apps/gpgui-helper/src-tauri/gen/schemas/linux-schema.json create mode 100644 packaging/deb/compat diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index af438b69..efaf2cf0 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -89,13 +89,13 @@ jobs: run: | docker run --rm \ -v $(pwd)/build-gp-${{ matrix.package }}:/${{ matrix.package }} \ - yuezk/gpdev:${{ matrix.package }}-builder + yuezk/gpdev:${{ matrix.package }}-builder-tauri2 - name: Install ${{ matrix.package }} package in Docker run: | docker run --rm \ -e GPGUI_INSTALLED=0 \ -v $(pwd)/build-gp-${{ matrix.package }}:/${{ matrix.package }} \ - yuezk/gpdev:${{ matrix.package }}-builder \ + yuezk/gpdev:${{ matrix.package }}-builder-tauri2 \ bash install.sh - name: Upload ${{ matrix.package }} package uses: actions/upload-artifact@v3 @@ -141,12 +141,12 @@ jobs: run: echo ${{ secrets.DOCKER_HUB_TOKEN }} | docker login -u ${{ secrets.DOCKER_HUB_USERNAME }} --password-stdin - name: Build gpgui in Docker run: | - docker run --rm -v $(pwd)/gpgui-source:/gpgui yuezk/gpdev:gpgui-builder + docker run --rm -v $(pwd)/gpgui-source:/gpgui yuezk/gpdev:gpgui-builder-tauri2 - name: Install gpgui in Docker run: | cd gpgui-source tar -xJf *.bin.tar.xz - docker run --rm -v $(pwd):/gpgui yuezk/gpdev:gpgui-builder \ + docker run --rm -v $(pwd):/gpgui yuezk/gpdev:gpgui-builder-tauri2 \ bash -c "cd /gpgui/gpgui_*/ && ./gpgui --version" - name: Upload gpgui uses: actions/upload-artifact@v3 diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index f24a6f3c..f57e3d45 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -71,12 +71,12 @@ jobs: # Prepare the debian directory with custom files mkdir -p .build/debian - sed 's/@RUST@/rust-all(>=1.70)/g' packaging/deb/control.in > .build/debian/control + sed 's/@RUST@/rust-all(>=1.80)/g' packaging/deb/control.in > .build/debian/control sed 's/@OFFLINE@/1/g' packaging/deb/rules.in > .build/debian/rules cp packaging/deb/postrm .build/debian/postrm - name: Publish to PPA - uses: yuezk/publish-ppa-package@v2 + uses: yuezk/publish-ppa-package@gp with: repository: "yuezk/globalprotect-openconnect" gpg_private_key: ${{ secrets.PPA_GPG_PRIVATE_KEY }} @@ -85,5 +85,7 @@ jobs: debian_dir: publish-ppa/globalprotect-openconnect-*/.build/debian deb_email: "k3vinyue@gmail.com" deb_fullname: "Kevin Yue" - extra_ppa: "yuezk/globalprotect-openconnect liushuyu-011/rust-bpo-1.75" + extra_ppa: "yuezk/globalprotect-openconnect liushuyu-011/rust-updates-1.80" + # Ubuntu 18.04 and 20.04 are excluded because tauri2 no longer supports them + excluded_series: "bionic focal" revision: ${{ inputs.revision }} diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 386e0dae..db288287 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -112,13 +112,13 @@ jobs: docker run --rm \ -v $(pwd)/build-${{ matrix.package }}:/${{ matrix.package }} \ -e INCLUDE_GUI=1 \ - yuezk/gpdev:${{ matrix.package }}-builder + yuezk/gpdev:${{ matrix.package }}-builder-tauri2 - name: Install ${{ matrix.package }} package in Docker run: | docker run --rm \ -v $(pwd)/build-${{ matrix.package }}:/${{ matrix.package }} \ - yuezk/gpdev:${{ matrix.package }}-builder \ + yuezk/gpdev:${{ matrix.package }}-builder-tauri2 \ bash install.sh - name: Upload ${{ matrix.package }} package diff --git a/.gitignore b/.gitignore index e2741a91..2caa3e76 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,6 @@ .cargo .build SNAPSHOT + +# Tauri generated files +gen diff --git a/Cargo.lock b/Cargo.lock index 5ebeaad7..a77358c0 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -201,7 +201,7 @@ dependencies = [ "serde_path_to_error", "serde_urlencoded", "sha1", - "sync_wrapper 1.0.2", + "sync_wrapper", "tokio", "tokio-tungstenite", "tower", @@ -225,7 +225,7 @@ dependencies = [ "mime", "pin-project-lite", "rustversion", - "sync_wrapper 1.0.2", + "sync_wrapper", "tower-layer", "tower-service", "tracing", @@ -414,9 +414,9 @@ dependencies = [ [[package]] name = "cc" -version = "1.2.3" +version = "1.2.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "27f657647bcff5394bf56c7317665bbf790a137a50eaaa5c6bfbb9e27a518f2d" +checksum = "9157bbaa6b165880c27a4293a474c91cdcf265cc68cc829bf10be0964a391caf" dependencies = [ "shlex", ] @@ -596,7 +596,7 @@ dependencies = [ [[package]] name = "common" -version = "2.3.9" +version = "2.4.0" dependencies = [ "is_executable", ] @@ -1529,7 +1529,7 @@ dependencies = [ [[package]] name = "gpapi" -version = "2.3.9" +version = "2.4.0" dependencies = [ "anyhow", "base64 0.22.1", @@ -1552,7 +1552,7 @@ dependencies = [ "specta", "tauri", "tempfile", - "thiserror 2.0.6", + "thiserror 2.0.7", "tokio", "url", "urlencoding", @@ -1562,9 +1562,30 @@ dependencies = [ "whoami", ] +[[package]] +name = "gpauth" +version = "2.4.0" +dependencies = [ + "anyhow", + "clap", + "compile-time", + "env_logger", + "gpapi", + "html-escape", + "log", + "regex", + "serde_json", + "tauri", + "tauri-build", + "tempfile", + "tokio", + "tokio-util", + "webkit2gtk", +] + [[package]] name = "gpclient" -version = "2.3.9" +version = "2.4.0" dependencies = [ "anyhow", "clap", @@ -1586,7 +1607,7 @@ dependencies = [ [[package]] name = "gpgui-helper" -version = "2.3.9" +version = "2.4.0" dependencies = [ "anyhow", "clap", @@ -1604,7 +1625,7 @@ dependencies = [ [[package]] name = "gpservice" -version = "2.3.9" +version = "2.4.0" dependencies = [ "anyhow", "axum", @@ -1733,6 +1754,15 @@ dependencies = [ "windows-sys 0.52.0", ] +[[package]] +name = "html-escape" +version = "0.2.13" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6d1ad449764d627e22bfd7cd5e8868264fc9236e07c752972b4080cd351cb476" +dependencies = [ + "utf8-width", +] + [[package]] name = "html5ever" version = "0.26.0" @@ -2859,7 +2889,7 @@ dependencies = [ [[package]] name = "openconnect" -version = "2.3.9" +version = "2.4.0" dependencies = [ "cc", "common", @@ -3406,9 +3436,9 @@ dependencies = [ [[package]] name = "redox_syscall" -version = "0.5.7" +version = "0.5.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9b6dfecf2c74bce2466cabf93f6664d6998a69eb21e39f4207930065b27b771f" +checksum = "03a862b389f93e68874fbf580b9de08dd02facb9a788ebadaf4a3fd33cf58834" dependencies = [ "bitflags 2.6.0", ] @@ -3484,7 +3514,7 @@ dependencies = [ "serde", "serde_json", "serde_urlencoded", - "sync_wrapper 1.0.2", + "sync_wrapper", "system-configuration", "tokio", "tokio-native-tls", @@ -3549,9 +3579,9 @@ dependencies = [ [[package]] name = "rustls" -version = "0.23.19" +version = "0.23.20" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "934b404430bb06b3fae2cba809eb45a1ab1aecd64491213d7c3301b88393f8d1" +checksum = "5065c3f250cbd332cd894be57c40fa52387247659b14a2d6041d121547903b1b" dependencies = [ "once_cell", "rustls-pki-types", @@ -3571,9 +3601,9 @@ dependencies = [ [[package]] name = "rustls-pki-types" -version = "1.10.0" +version = "1.10.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "16f1201b3c9a7ee8039bcadc17b7e605e2945b27eee7631788c1bd2b0643674b" +checksum = "d2bf47e6ff922db3825eb750c4e2ff784c6ff8fb9e13046ef6a1d1c5401b0b37" [[package]] name = "rustls-webpki" @@ -3694,9 +3724,9 @@ dependencies = [ [[package]] name = "semver" -version = "1.0.23" +version = "1.0.24" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "61697e0a1c7e512e84a621326239844a24d8207b4669b41bc18b32ea5cbf988b" +checksum = "3cb6eb87a131f756572d7fb904f6e7b68633f09cca868c5df1c4b8d1a694bbba" dependencies = [ "serde", ] @@ -4130,12 +4160,6 @@ dependencies = [ "unicode-ident", ] -[[package]] -name = "sync_wrapper" -version = "0.1.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2047c6ded9c721764247e62cd3b03c09ffc529b2ba5b10ec482ae507a4a70160" - [[package]] name = "sync_wrapper" version = "1.0.2" @@ -4310,7 +4334,7 @@ dependencies = [ "tauri-runtime", "tauri-runtime-wry", "tauri-utils", - "thiserror 2.0.6", + "thiserror 2.0.7", "tokio", "tray-icon", "url", @@ -4363,7 +4387,7 @@ dependencies = [ "sha2", "syn 2.0.90", "tauri-utils", - "thiserror 2.0.6", + "thiserror 2.0.7", "time", "url", "uuid", @@ -4398,7 +4422,7 @@ dependencies = [ "serde", "serde_json", "tauri-utils", - "thiserror 2.0.6", + "thiserror 2.0.7", "url", "windows 0.58.0", ] @@ -4458,7 +4482,7 @@ dependencies = [ "serde_json", "serde_with", "swift-rs", - "thiserror 2.0.6", + "thiserror 2.0.7", "toml 0.8.2", "url", "urlpattern", @@ -4517,11 +4541,11 @@ dependencies = [ [[package]] name = "thiserror" -version = "2.0.6" +version = "2.0.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8fec2a1820ebd077e2b90c4df007bebf344cd394098a13c563957d0afc83ea47" +checksum = "93605438cbd668185516ab499d589afb7ee1859ea3d5fc8f6b0755e1c7443767" dependencies = [ - "thiserror-impl 2.0.6", + "thiserror-impl 2.0.7", ] [[package]] @@ -4537,9 +4561,9 @@ dependencies = [ [[package]] name = "thiserror-impl" -version = "2.0.6" +version = "2.0.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d65750cab40f4ff1929fb1ba509e9914eb756131cef4210da8d5d700d26f6312" +checksum = "e1d8749b4531af2117677a5fcd12b1348a3fe2b81e36e61ffeac5c4aa3273e36" dependencies = [ "proc-macro2", "quote", @@ -4722,14 +4746,14 @@ dependencies = [ [[package]] name = "tower" -version = "0.5.1" +version = "0.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2873938d487c3cfb9aed7546dc9f2711d867c9f90c46b889989a2cb84eba6b4f" +checksum = "d039ad9159c98b70ecfd540b2573b97f7f52c3e8d9f8ad57a24b916a536975f9" dependencies = [ "futures-core", "futures-util", "pin-project-lite", - "sync_wrapper 0.1.2", + "sync_wrapper", "tokio", "tower-layer", "tower-service", @@ -4942,6 +4966,12 @@ version = "1.0.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c8232dd3cdaed5356e0f716d285e4b40b932ac434100fe9b7e0e8e935b9e6246" +[[package]] +name = "utf8-width" +version = "0.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "86bd8d4e895da8537e5315b8254664e6b769c4ff3db18321b297a1e7004392e3" + [[package]] name = "utf8_iter" version = "1.0.4" diff --git a/Cargo.toml b/Cargo.toml index fad197c9..25b9c39d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,11 +1,11 @@ [workspace] resolver = "2" -members = ["crates/*", "apps/gpclient", "apps/gpservice", "apps/gpgui-helper/src-tauri"] +members = ["crates/*", "apps/gpclient", "apps/gpservice", "apps/gpauth", "apps/gpgui-helper/src-tauri"] [workspace.package] -rust-version = "1.70" -version = "2.3.9" +rust-version = "1.80" +version = "2.4.0" authors = ["Kevin Yue "] homepage = "https://github.com/yuezk/GlobalProtect-openconnect" edition = "2021" diff --git a/Makefile b/Makefile index cd7593d1..48430cdb 100644 --- a/Makefile +++ b/Makefile @@ -154,6 +154,7 @@ init-debian: clean-debian tarball cp -f packaging/deb/control.in .build/deb/$(PKG)/debian/control cp -f packaging/deb/rules.in .build/deb/$(PKG)/debian/rules cp -f packaging/deb/postrm .build/deb/$(PKG)/debian/postrm + cp -f packaging/deb/compat .build/deb/$(PKG)/debian/compat sed -i "s/@OFFLINE@/$(OFFLINE)/g" .build/deb/$(PKG)/debian/rules @@ -174,7 +175,7 @@ check-ppa: # Usage: make ppa SERIES=focal OFFLINE=1 PUBLISH=1 ppa: check-ppa init-debian - sed -i "s/@RUST@/rust-all(>=1.70)/g" .build/deb/$(PKG)/debian/control + sed -i "s/@RUST@/rust-all(>=1.80)/g" .build/deb/$(PKG)/debian/control $(eval SERIES_VER = $(shell distro-info --series $(SERIES) -r | cut -d' ' -f1)) @echo "Building for $(SERIES) $(SERIES_VER)" diff --git a/README.md b/README.md index 46974449..73a4bede 100644 --- a/README.md +++ b/README.md @@ -70,12 +70,10 @@ The GUI version is also available after you installed it. You can launch it from ### Debian/Ubuntu based distributions -#### Install from PPA (Ubuntu 18.04 and later, except 24.04) +#### Install from PPA (Ubuntu > 18.04) ``` -sudo apt-get install gir1.2-gtk-3.0 gir1.2-webkit2-4.0 sudo add-apt-repository ppa:yuezk/globalprotect-openconnect -sudo apt-get update sudo apt-get install globalprotect-openconnect ``` @@ -83,18 +81,9 @@ sudo apt-get install globalprotect-openconnect > > For Linux Mint, you might need to import the GPG key with: `sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 7937C393082992E5D6E4A60453FC26B43838D761` if you encountered an error `gpg: keyserver receive failed: General error`. -#### **Ubuntu 24.04 and later** - -The `libwebkit2gtk-4.0-37` package was [removed](https://bugs.launchpad.net/ubuntu/+source/webkit2gtk/+bug/2061914) from its repo. You can use the [`deb-install.sh`](./scripts/deb-install.sh) script to install the package: - -```bash -curl -o- https://raw.githubusercontent.com/yuezk/GlobalProtect-openconnect/main/scripts/deb-install.sh \ - | bash -s -- 2.3.9 -``` - #### **Ubuntu 18.04** -The latest package is not available in the PPA either, but you still needs to add the `ppa:yuezk/globalprotect-openconnect` repo beforehand to use the required `openconnect` package. Then you can follow the [Install from deb package](#install-from-deb-package) section to install the latest package. +The latest package is not available in the PPA, but you still needs to add the `ppa:yuezk/globalprotect-openconnect` repo beforehand to use the required `openconnect` package. Then you can follow the [Install from deb package](#install-from-deb-package) section to install the latest package. #### Install from deb package @@ -172,8 +161,8 @@ You can also build the client from source, steps are as follows: ### Prerequisites -- [Install Rust 1.75 or later](https://www.rust-lang.org/tools/install) -- Install Tauri dependencies: https://tauri.app/v1/guides/getting-started/prerequisites/#setting-up-linux +- [Install Rust 1.80 or later](https://www.rust-lang.org/tools/install) +- Install Tauri dependencies: https://tauri.app/start/prerequisites/ - Install `perl` and `jq` - Install `openconnect >= 8.20` and `libopenconnect-dev` (or `openconnect-devel` on RPM-based distributions) - Install `pkexec`, `gnome-keyring` (or `pam_kwallet` on KDE) diff --git a/apps/gpauth/Cargo.toml b/apps/gpauth/Cargo.toml index 9a8acd00..a4b851dd 100644 --- a/apps/gpauth/Cargo.toml +++ b/apps/gpauth/Cargo.toml @@ -1,12 +1,13 @@ [package] name = "gpauth" +rust-version.workspace = true authors.workspace = true version.workspace = true edition.workspace = true license.workspace = true [build-dependencies] -tauri-build = { version = "1.5", features = [] } +tauri-build = { version = "2", features = [] } [dependencies] gpapi = { path = "../../crates/gpapi", features = [ @@ -14,6 +15,9 @@ gpapi = { path = "../../crates/gpapi", features = [ "clap", "browser-auth", ] } + +tauri = { workspace = true } + anyhow.workspace = true clap.workspace = true env_logger.workspace = true @@ -24,6 +28,7 @@ tokio.workspace = true tokio-util.workspace = true tempfile.workspace = true html-escape = "0.2.13" -webkit2gtk = "0.18.2" -tauri = { workspace = true, features = ["http-all"] } compile-time.workspace = true + +[target.'cfg(not(target_os = "macos"))'.dependencies] +webkit2gtk = "2" diff --git a/apps/gpauth/src/auth_messenger.rs b/apps/gpauth/src/auth_messenger.rs new file mode 100644 index 00000000..29e4da89 --- /dev/null +++ b/apps/gpauth/src/auth_messenger.rs @@ -0,0 +1,108 @@ +use anyhow::bail; +use gpapi::auth::SamlAuthData; +use log::{error, info}; +use tokio::sync::{mpsc, RwLock}; +use tokio_util::sync::CancellationToken; + +pub enum AuthError { + /// Failed to load page due to TLS error + TlsError, + /// 1. Found auth data in headers/body but it's invalid + /// 2. Loaded an empty page, failed to load page. etc. + Invalid, + /// No auth data found in headers/body + NotFound, +} + +pub type AuthResult = anyhow::Result; + +pub enum AuthEvent { + Data(SamlAuthData), + Error(AuthError), + RaiseWindow, + Close, +} + +pub struct AuthMessenger { + tx: mpsc::UnboundedSender, + rx: RwLock>, + raise_window_cancel_token: RwLock>, +} + +impl AuthMessenger { + pub fn new() -> Self { + let (tx, rx) = mpsc::unbounded_channel(); + + Self { + tx, + rx: RwLock::new(rx), + raise_window_cancel_token: Default::default(), + } + } + + pub async fn subscribe(&self) -> anyhow::Result { + let mut rx = self.rx.write().await; + if let Some(event) = rx.recv().await { + return Ok(event); + } + bail!("Failed to receive auth event"); + } + + pub fn send_auth_event(&self, event: AuthEvent) { + if let Err(event) = self.tx.send(event) { + error!("Failed to send auth event: {}", event); + } + } + + pub fn send_auth_result(&self, result: AuthResult) { + match result { + Ok(data) => self.send_auth_data(data), + Err(err) => self.send_auth_error(err), + } + } + + pub fn send_auth_error(&self, err: AuthError) { + self.send_auth_event(AuthEvent::Error(err)); + } + + pub fn send_auth_data(&self, data: SamlAuthData) { + self.send_auth_event(AuthEvent::Data(data)); + } + + pub fn schedule_raise_window(&self, delay: u64) { + let cancel_token = CancellationToken::new(); + let cancel_token_clone = cancel_token.clone(); + + if let Ok(mut guard) = self.raise_window_cancel_token.try_write() { + // Cancel the previous raise window task if it exists + if let Some(token) = guard.take() { + token.cancel(); + } + *guard = Some(cancel_token_clone); + } + + let tx = self.tx.clone(); + tokio::spawn(async move { + info!("Displaying the window in {} second(s)...", delay); + + tokio::select! { + _ = tokio::time::sleep(tokio::time::Duration::from_secs(delay)) => { + if let Err(err) = tx.send(AuthEvent::RaiseWindow) { + error!("Failed to send raise window event: {}", err); + } + } + _ = cancel_token.cancelled() => { + info!("Cancelled raise window task"); + } + } + }); + } + + pub fn cancel_raise_window(&self) { + if let Ok(mut cancel_token) = self.raise_window_cancel_token.try_write() { + if let Some(token) = cancel_token.take() { + token.cancel(); + } + } + } +} diff --git a/apps/gpauth/src/auth_window.rs b/apps/gpauth/src/auth_window.rs index c3261952..bee1c9ea 100644 --- a/apps/gpauth/src/auth_window.rs +++ b/apps/gpauth/src/auth_window.rs @@ -1,5 +1,8 @@ use std::{ - rc::Rc, + borrow::Cow, + env::temp_dir, + fs, + os::unix::fs::PermissionsExt, sync::Arc, time::{Duration, Instant}, }; @@ -7,517 +10,278 @@ use std::{ use anyhow::bail; use gpapi::{ auth::SamlAuthData, - error::AuthDataParseError, + error::PortalError, gp_params::GpParams, portal::{prelogin, Prelogin}, - utils::{redact::redact_uri, window::WindowExt}, + process::browser_authenticator::BrowserAuthenticator, + utils::window::WindowExt, + GP_CALLBACK_PORT_FILENAME, }; use log::{info, warn}; -use regex::Regex; -use tauri::{AppHandle, Window, WindowEvent, WindowUrl}; -use tokio::sync::{mpsc, oneshot, RwLock}; -use tokio_util::sync::CancellationToken; -use webkit2gtk::{ - gio::Cancellable, - glib::{GString, TimeSpan}, - LoadEvent, SettingsExt, TLSErrorsPolicy, URIResponse, URIResponseExt, WebContextExt, WebResource, WebResourceExt, - WebView, WebViewExt, WebsiteDataManagerExtManual, WebsiteDataTypes, +use tauri::{AppHandle, WebviewUrl, WebviewWindow, WindowEvent}; +use tokio::{ + io::AsyncReadExt, + net::TcpListener, + sync::{oneshot, RwLock}, + time, }; -enum AuthDataError { - /// Failed to load page due to TLS error - TlsError, - /// 1. Found auth data in headers/body but it's invalid - /// 2. Loaded an empty page, failed to load page. etc. - Invalid, - /// No auth data found in headers/body - NotFound, -} - -type AuthResult = Result; +use crate::{ + auth_messenger::{AuthError, AuthEvent, AuthMessenger}, + common::{AuthRequest, AuthSettings}, + platform_impl, +}; -pub(crate) struct AuthWindow<'a> { - app_handle: AppHandle, +pub struct AuthWindow<'a> { server: &'a str, - saml_request: &'a str, - user_agent: &'a str, - gp_params: Option, + gp_params: &'a GpParams, + auth_request: Option<&'a str>, clean: bool, + is_retrying: RwLock, } impl<'a> AuthWindow<'a> { - pub fn new(app_handle: AppHandle) -> Self { + pub fn new(server: &'a str, gp_params: &'a GpParams) -> Self { Self { - app_handle, - server: "", - saml_request: "", - user_agent: "", - gp_params: None, + server, + gp_params, + auth_request: None, clean: false, + is_retrying: Default::default(), } } - pub fn server(mut self, server: &'a str) -> Self { - self.server = server; + pub fn with_auth_request(mut self, auth_request: &'a str) -> Self { + if !auth_request.is_empty() { + self.auth_request = Some(auth_request); + } self } - pub fn saml_request(mut self, saml_request: &'a str) -> Self { - self.saml_request = saml_request; + pub fn with_clean(mut self, clean: bool) -> Self { + self.clean = clean; self } - pub fn user_agent(mut self, user_agent: &'a str) -> Self { - self.user_agent = user_agent; - self - } + pub async fn browser_authenticate(&self, browser: Option<&str>) -> anyhow::Result { + let auth_request = self.initial_auth_request().await?; + let browser_auth = if let Some(browser) = browser { + BrowserAuthenticator::new_with_browser(&auth_request, browser) + } else { + BrowserAuthenticator::new(&auth_request) + }; - pub fn gp_params(mut self, gp_params: GpParams) -> Self { - self.gp_params.replace(gp_params); - self - } + browser_auth.authenticate()?; + info!("Please continue the authentication process in the default browser"); - pub fn clean(mut self, clean: bool) -> Self { - self.clean = clean; - self + wait_auth_data().await } - pub async fn open(&self) -> anyhow::Result { - info!("Open auth window, user_agent: {}", self.user_agent); - - let window = Window::builder(&self.app_handle, "auth_window", WindowUrl::default()) + pub async fn webview_authenticate(&self, app_handle: &AppHandle) -> anyhow::Result { + let auth_window = WebviewWindow::builder(app_handle, "auth_window", WebviewUrl::default()) .title("GlobalProtect Login") - // .user_agent(self.user_agent) .focused(true) .visible(false) .center() .build()?; - let window = Arc::new(window); + self.auth_loop(&auth_window).await + } - let cancel_token = CancellationToken::new(); - let cancel_token_clone = cancel_token.clone(); + async fn auth_loop(&self, auth_window: &WebviewWindow) -> anyhow::Result { + if self.clean { + self.clear_webview_data(&auth_window).await?; + } - window.on_window_event(move |event| { - if let WindowEvent::CloseRequested { .. } = event { - cancel_token_clone.cancel(); - } - }); + let auth_messenger = self.setup_auth_window(&auth_window).await?; - let window_clone = Arc::clone(&window); - let timeout_secs = 15; - tokio::spawn(async move { - tokio::time::sleep(Duration::from_secs(timeout_secs)).await; - let visible = window_clone.is_visible().unwrap_or(false); - if !visible { - info!("Try to raise auth window after {} seconds", timeout_secs); - raise_window(&window_clone); - } - }); - - tokio::select! { - _ = cancel_token.cancelled() => { - bail!("Auth cancelled"); - } - saml_result = self.auth_loop(&window) => { - window.close()?; - saml_result + loop { + match auth_messenger.subscribe().await? { + AuthEvent::Close => bail!("Authentication cancelled"), + AuthEvent::RaiseWindow => self.raise_window(auth_window), + AuthEvent::Error(AuthError::TlsError) => bail!(PortalError::TlsError), + AuthEvent::Error(AuthError::NotFound) => self.handle_not_found(auth_window, &auth_messenger), + AuthEvent::Error(AuthError::Invalid) => self.retry_auth(auth_window).await, + AuthEvent::Data(auth_data) => { + auth_window.close()?; + return Ok(auth_data); + } } } } - async fn auth_loop(&self, window: &Arc) -> anyhow::Result { - let saml_request = self.saml_request.to_string(); - let (auth_result_tx, mut auth_result_rx) = mpsc::unbounded_channel::(); - let raise_window_cancel_token: Arc>> = Default::default(); - let gp_params = self.gp_params.as_ref().unwrap(); - let tls_err_policy = if gp_params.ignore_tls_errors() { - TLSErrorsPolicy::Ignore - } else { - TLSErrorsPolicy::Fail - }; - - if self.clean { - clear_webview_cookies(window).await?; + async fn initial_auth_request(&self) -> anyhow::Result> { + if let Some(auth_request) = self.auth_request { + return Ok(Cow::Borrowed(auth_request)); } - let raise_window_cancel_token_clone = Arc::clone(&raise_window_cancel_token); - window.with_webview(move |wv| { - let wv = wv.inner(); - - if let Some(context) = wv.context() { - context.set_tls_errors_policy(tls_err_policy); - } + let auth_request = portal_prelogin(&self.server, &self.gp_params).await?; + Ok(Cow::Owned(auth_request)) + } - if let Some(settings) = wv.settings() { - let ua = settings.user_agent().unwrap_or("".into()); - info!("Auth window user agent: {}", ua); - } + async fn clear_webview_data(&self, auth_window: &WebviewWindow) -> anyhow::Result<()> { + info!("Clearing webview data..."); - // Load the initial SAML request - load_saml_request(&wv, &saml_request); - - let auth_result_tx_clone = auth_result_tx.clone(); - wv.connect_load_changed(move |wv, event| { - if event == LoadEvent::Started { - let Ok(mut cancel_token) = raise_window_cancel_token_clone.try_write() else { - return; - }; - - // Cancel the raise window task - if let Some(cancel_token) = cancel_token.take() { - cancel_token.cancel(); - } - return; + let (tx, rx) = oneshot::channel::>(); + let now = Instant::now(); + auth_window.with_webview(|webview| { + platform_impl::clear_data(&webview.inner(), |result| { + if let Err(result) = tx.send(result) { + warn!("Failed to send clear data result: {:?}", result); } + }) + })?; - if event != LoadEvent::Finished { - return; - } + rx.await??; + info!("Webview data cleared in {:?}", now.elapsed()); - if let Some(main_resource) = wv.main_resource() { - let uri = main_resource.uri().unwrap_or("".into()); + Ok(()) + } - if uri.is_empty() { - warn!("Loaded an empty uri"); - send_auth_result(&auth_result_tx_clone, Err(AuthDataError::Invalid)); - return; - } + async fn setup_auth_window(&self, auth_window: &WebviewWindow) -> anyhow::Result> { + info!("Setting up auth window..."); - info!("Loaded uri: {}", redact_uri(&uri)); - if uri.starts_with("globalprotectcallback:") { - return; - } + let auth_messenger = Arc::new(AuthMessenger::new()); + let auth_request = self.initial_auth_request().await?.into_owned(); + let ignore_tls_errors = self.gp_params.ignore_tls_errors(); - read_auth_data(&main_resource, auth_result_tx_clone.clone()); - } - }); - - let auth_result_tx_clone = auth_result_tx.clone(); - wv.connect_load_failed_with_tls_errors(move |_wv, uri, cert, err| { - let redacted_uri = redact_uri(uri); - warn!( - "Failed to load uri: {} with error: {}, cert: {}", - redacted_uri, err, cert - ); - - send_auth_result(&auth_result_tx_clone, Err(AuthDataError::TlsError)); - true - }); - - wv.connect_load_failed(move |_wv, _event, uri, err| { - let redacted_uri = redact_uri(uri); - if !uri.starts_with("globalprotectcallback:") { - warn!("Failed to load uri: {} with error: {}", redacted_uri, err); - } - // NOTE: Don't send error here, since load_changed event will be triggered after this - // send_auth_result(&auth_result_tx, Err(AuthDataError::Invalid)); - // true to stop other handlers from being invoked for the event. false to propagate the event further. - true - }); - })?; + // Handle window close event + let auth_messenger_clone = Arc::clone(&auth_messenger); + auth_window.on_window_event(move |event| { + if let WindowEvent::CloseRequested { .. } = event { + auth_messenger_clone.send_auth_event(AuthEvent::Close); + } + }); - let portal = self.server.to_string(); + // Show the window after 10 seconds, so that the user can see the window if the auth process is stuck + let auth_messenger_clone = Arc::clone(&auth_messenger); + tokio::spawn(async move { + time::sleep(Duration::from_secs(10)).await; + auth_messenger_clone.send_auth_event(AuthEvent::RaiseWindow); + }); - loop { - if let Some(auth_result) = auth_result_rx.recv().await { - match auth_result { - Ok(auth_data) => return Ok(auth_data), - Err(AuthDataError::TlsError) => bail!("TLS error: certificate verify failed"), - Err(AuthDataError::NotFound) => { - info!("No auth data found, it may not be the /SAML20/SP/ACS endpoint"); - - // The user may need to interact with the auth window, raise it in 3 seconds - if !window.is_visible().unwrap_or(false) { - let window = Arc::clone(window); - let cancel_token = CancellationToken::new(); - - raise_window_cancel_token.write().await.replace(cancel_token.clone()); - - tokio::spawn(async move { - let delay_secs = 1; - - info!("Raise window in {} second(s)", delay_secs); - tokio::select! { - _ = tokio::time::sleep(Duration::from_secs(delay_secs)) => { - raise_window(&window); - } - _ = cancel_token.cancelled() => { - info!("Raise window cancelled"); - } - } - }); - } - } - Err(AuthDataError::Invalid) => { - info!("Got invalid auth data, retrying..."); - - window.with_webview(|wv| { - let wv = wv.inner(); - wv.run_javascript(r#" - var loading = document.createElement("div"); - loading.innerHTML = '
Got invalid token, retrying...
'; - loading.style = "position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(255, 255, 255, 0.85); z-index: 99999;"; - document.body.appendChild(loading); - "#, - Cancellable::NONE, - |_| info!("Injected loading element successfully"), - ); - })?; - - let saml_request = portal_prelogin(&portal, gp_params).await?; - window.with_webview(move |wv| { - let wv = wv.inner(); - load_saml_request(&wv, &saml_request); - })?; - } - } - } - } - } -} + // setup webview + let auth_messenger_clone = Arc::clone(&auth_messenger); + let (tx, rx) = oneshot::channel::>(); -fn raise_window(window: &Arc) { - let visible = window.is_visible().unwrap_or(false); - if !visible { - if let Err(err) = window.raise() { - warn!("Failed to raise window: {}", err); - } - } -} + auth_window.with_webview(move |webview| { + let auth_settings = AuthSettings { + auth_request: AuthRequest::new(&auth_request), + auth_messenger: auth_messenger_clone, + ignore_tls_errors, + }; -pub async fn portal_prelogin(portal: &str, gp_params: &GpParams) -> anyhow::Result { - match prelogin(portal, gp_params).await? { - Prelogin::Saml(prelogin) => Ok(prelogin.saml_request().to_string()), - Prelogin::Standard(_) => bail!("Received non-SAML prelogin response"), - } -} + let result = platform_impl::setup_webview(&webview.inner(), auth_settings); + if let Err(result) = tx.send(result) { + warn!("Failed to send setup auth window result: {:?}", result); + } + })?; -fn send_auth_result(auth_result_tx: &mpsc::UnboundedSender, auth_result: AuthResult) { - if let Err(err) = auth_result_tx.send(auth_result) { - warn!("Failed to send auth event: {}", err); - } -} + rx.await??; + info!("Auth window setup completed"); -fn load_saml_request(wv: &Rc, saml_request: &str) { - if saml_request.starts_with("http") { - info!("Load the SAML request as URI..."); - wv.load_uri(saml_request); - } else { - info!("Load the SAML request as HTML..."); - wv.load_html(saml_request, None); + Ok(auth_messenger) } -} -fn read_auth_data_from_headers(response: &URIResponse) -> AuthResult { - response.http_headers().map_or_else( - || { - info!("No headers found in response"); - Err(AuthDataError::NotFound) - }, - |mut headers| match headers.get("saml-auth-status") { - Some(status) if status == "1" => { - let username = headers.get("saml-username").map(GString::into); - let prelogin_cookie = headers.get("prelogin-cookie").map(GString::into); - let portal_userauthcookie = headers.get("portal-userauthcookie").map(GString::into); - - if SamlAuthData::check(&username, &prelogin_cookie, &portal_userauthcookie) { - return Ok(SamlAuthData::new( - username.unwrap(), - prelogin_cookie, - portal_userauthcookie, - )); - } + fn handle_not_found(&self, auth_window: &WebviewWindow, auth_messenger: &Arc) { + info!("No auth data found, it may not be the /SAML20/SP/ACS endpoint"); - info!("Found invalid auth data in headers"); - Err(AuthDataError::Invalid) - } - Some(status) => { - info!("Found invalid SAML status: {} in headers", status); - Err(AuthDataError::Invalid) - } - None => { - info!("No saml-auth-status header found"); - Err(AuthDataError::NotFound) - } - }, - ) -} - -fn read_auth_data_from_body(main_resource: &WebResource, callback: F) -where - F: FnOnce(Result) + Send + 'static, -{ - main_resource.data(Cancellable::NONE, |data| match data { - Ok(data) => { - let html = String::from_utf8_lossy(&data); - callback(read_auth_data_from_html(&html)); - } - Err(err) => { - info!("Failed to read response body: {}", err); - callback(Err(AuthDataParseError::Invalid)) + let visible = auth_window.is_visible().unwrap_or(false); + if visible { + return; } - }); -} -fn read_auth_data_from_html(html: &str) -> Result { - if html.contains("Temporarily Unavailable") { - info!("Found 'Temporarily Unavailable' in HTML, auth failed"); - return Err(AuthDataParseError::Invalid); + auth_messenger.schedule_raise_window(1); } - SamlAuthData::from_html(html).or_else(|err| { - if let Some(gpcallback) = extract_gpcallback(html) { - info!("Found gpcallback from html..."); - SamlAuthData::from_gpcallback(&gpcallback) - } else { - Err(err) + async fn retry_auth(&self, auth_window: &WebviewWindow) { + let mut is_retrying = self.is_retrying.write().await; + if *is_retrying { + info!("Already retrying authentication, skipping..."); + return; } - }) -} -fn extract_gpcallback(html: &str) -> Option { - let re = Regex::new(r#"globalprotectcallback:[^"]+"#).unwrap(); - re.captures(html) - .and_then(|captures| captures.get(0)) - .map(|m| html_escape::decode_html_entities(m.as_str()).to_string()) -} + *is_retrying = true; + drop(is_retrying); -fn read_auth_data(main_resource: &WebResource, auth_result_tx: mpsc::UnboundedSender) { - let Some(response) = main_resource.response() else { - info!("No response found in main resource"); - send_auth_result(&auth_result_tx, Err(AuthDataError::Invalid)); - return; - }; + if let Err(err) = self.retry_auth_impl(auth_window).await { + warn!("Failed to retry authentication: {}", err); + } - info!("Trying to read auth data from response headers..."); + *self.is_retrying.write().await = false; + } - match read_auth_data_from_headers(&response) { - Ok(auth_data) => { - info!("Got auth data from headers"); - send_auth_result(&auth_result_tx, Ok(auth_data)); - } - Err(AuthDataError::Invalid) => { - info!("Found invalid auth data in headers, trying to read from body..."); - read_auth_data_from_body(main_resource, move |auth_result| { - // Since we have already found invalid auth data in headers, which means this could be the `/SAML20/SP/ACS` endpoint - // any error result from body should be considered as invalid, and trigger a retry - let auth_result = auth_result.map_err(|err| { - info!("Failed to read auth data from body: {}", err); - AuthDataError::Invalid - }); - send_auth_result(&auth_result_tx, auth_result); - }); - } - Err(AuthDataError::NotFound) => { - info!("No auth data found in headers, trying to read from body..."); + async fn retry_auth_impl(&self, auth_window: &WebviewWindow) -> anyhow::Result<()> { + info!("Retrying authentication..."); + + auth_window.eval( r#" + var loading = document.createElement("div"); + loading.innerHTML = '
Got invalid token, retrying...
'; + loading.style = "position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(255, 255, 255, 0.85); z-index: 99999;"; + document.body.appendChild(loading); + "#)?; - let is_acs_endpoint = main_resource.uri().map_or(false, |uri| uri.contains("/SAML20/SP/ACS")); + let auth_request = portal_prelogin(&self.server, &self.gp_params).await?; + let (tx, rx) = oneshot::channel::<()>(); + auth_window.with_webview(move |webview| { + let auth_request = AuthRequest::new(&auth_request); + platform_impl::load_auth_request(&webview.inner(), &auth_request); - read_auth_data_from_body(main_resource, move |auth_result| { - // If the endpoint is `/SAML20/SP/ACS` and no auth data found in body, it should be considered as invalid - let auth_result = auth_result.map_err(|err| { - info!("Failed to read auth data from body: {}", err); + tx.send(()).expect("Failed to send message to the channel") + })?; - if !is_acs_endpoint && matches!(err, AuthDataParseError::NotFound) { - AuthDataError::NotFound - } else { - AuthDataError::Invalid - } - }); + rx.await?; + Ok(()) + } - send_auth_result(&auth_result_tx, auth_result) - }); + fn raise_window(&self, auth_window: &WebviewWindow) { + let visible = auth_window.is_visible().unwrap_or(false); + if visible { + return; } - Err(AuthDataError::TlsError) => { - // NOTE: This is unreachable - info!("TLS error found in headers, trying to read from body..."); - send_auth_result(&auth_result_tx, Err(AuthDataError::TlsError)); + + info!("Raising auth window..."); + if let Err(err) = auth_window.raise() { + warn!("Failed to raise window: {}", err); } } } -pub(crate) async fn clear_webview_cookies(window: &Window) -> anyhow::Result<()> { - let (tx, rx) = oneshot::channel::>(); - - window.with_webview(|wv| { - let send_result = move |result: Result<(), String>| { - if let Err(err) = tx.send(result) { - info!("Failed to send result: {:?}", err); - } - }; - - let wv = wv.inner(); - let context = match wv.context() { - Some(context) => context, - None => { - send_result(Err("No webview context found".into())); - return; - } - }; - let data_manager = match context.website_data_manager() { - Some(manager) => manager, - None => { - send_result(Err("No data manager found".into())); - return; - } - }; +async fn portal_prelogin(portal: &str, gp_params: &GpParams) -> anyhow::Result { + match prelogin(portal, gp_params).await? { + Prelogin::Saml(prelogin) => Ok(prelogin.saml_request().to_string()), + Prelogin::Standard(_) => bail!("Received non-SAML prelogin response"), + } +} - let now = Instant::now(); - data_manager.clear( - WebsiteDataTypes::COOKIES, - TimeSpan(0), - Cancellable::NONE, - move |result| match result { - Err(err) => { - send_result(Err(err.to_string())); - } - Ok(_) => { - info!("Cookies cleared in {} ms", now.elapsed().as_millis()); - send_result(Ok(())); - } - }, - ); - })?; +async fn wait_auth_data() -> anyhow::Result { + // Start a local server to receive the browser authentication data + let listener = TcpListener::bind("127.0.0.1:0").await?; + let port = listener.local_addr()?.port(); + let port_file = temp_dir().join(GP_CALLBACK_PORT_FILENAME); - rx.await?.map_err(|err| anyhow::anyhow!(err)) -} + // Write the port to a file + fs::write(&port_file, port.to_string())?; + fs::set_permissions(&port_file, fs::Permissions::from_mode(0o600))?; -#[cfg(test)] -mod tests { - use super::*; - - #[test] - fn extract_gpcallback_some() { - let html = r#" - - - "#; - - assert_eq!( - extract_gpcallback(html).as_deref(), - Some("globalprotectcallback:PGh0bWw+PCEtLSA8c") - ); - } + // Remove the previous log file + let callback_log = temp_dir().join("gpcallback.log"); + let _ = fs::remove_file(&callback_log); - #[test] - fn extract_gpcallback_cas() { - let html = r#" - - "#; + info!("Listening authentication data on port {}", port); + info!( + "If it hangs, please check the logs at `{}` for more information", + callback_log.display() + ); + let (mut socket, _) = listener.accept().await?; - assert_eq!( - extract_gpcallback(html).as_deref(), - Some("globalprotectcallback:cas-as=1&un=xyz@email.com&token=very_long_string") - ); - } + info!("Received the browser authentication data from the socket"); + let mut data = String::new(); + socket.read_to_string(&mut data).await?; - #[test] - fn extract_gpcallback_none() { - let html = r#" - - "#; + // Remove the port file + fs::remove_file(&port_file)?; - assert_eq!(extract_gpcallback(html), None); - } + let auth_data = SamlAuthData::from_gpcallback(&data)?; + Ok(auth_data) } diff --git a/apps/gpauth/src/cli.rs b/apps/gpauth/src/cli.rs index 3142af5b..db6bd0ac 100644 --- a/apps/gpauth/src/cli.rs +++ b/apps/gpauth/src/cli.rs @@ -1,21 +1,16 @@ -use std::{env::temp_dir, fs, os::unix::fs::PermissionsExt}; - use clap::Parser; use gpapi::{ auth::{SamlAuthData, SamlAuthResult}, - clap::args::Os, + clap::{args::Os, handle_error, Args}, gp_params::{ClientOs, GpParams}, - process::browser_authenticator::BrowserAuthenticator, utils::{env_utils, normalize_server, openssl}, GP_USER_AGENT, }; +use gpauth::auth_window::AuthWindow; use log::{info, LevelFilter}; use serde_json::json; -use tauri::{App, AppHandle, RunEvent}; +use tauri::RunEvent; use tempfile::NamedTempFile; -use tokio::{io::AsyncReadExt, net::TcpListener}; - -use crate::auth_window::{portal_prelogin, AuthWindow}; const VERSION: &str = concat!(env!("CARGO_PKG_VERSION"), " (", compile_time::date_str!(), ")"); @@ -78,78 +73,88 @@ struct Cli { browser: Option, } +impl Args for Cli { + fn fix_openssl(&self) -> bool { + self.fix_openssl + } + + fn ignore_tls_errors(&self) -> bool { + self.ignore_tls_errors + } +} + impl Cli { - async fn run(&mut self) -> anyhow::Result<()> { + fn prepare_env(&self) -> anyhow::Result> { + env_utils::patch_gui_runtime_env(self.hidpi); + + if self.fix_openssl { + info!("Fixing OpenSSL environment"); + let file = openssl::fix_openssl_env()?; + + return Ok(Some(file)); + } + + Ok(None) + } + + async fn run(&self) -> anyhow::Result<()> { if self.ignore_tls_errors { info!("TLS errors will be ignored"); } let mut openssl_conf = self.prepare_env()?; - self.server = normalize_server(&self.server)?; - let gp_params = self.build_gp_params(); + let server = normalize_server(&self.server)?; + let server: &'static str = Box::leak(server.into_boxed_str()); + let gp_params: &'static GpParams = Box::leak(Box::new(self.build_gp_params())); - // Get the initial SAML request - let saml_request = match self.saml_request { - Some(ref saml_request) => saml_request.clone(), - None => portal_prelogin(&self.server, &gp_params).await?, - }; + let auth_request = self.saml_request.clone().unwrap_or_default(); + let auth_request: &'static str = Box::leak(Box::new(auth_request)); - let browser_auth = if let Some(browser) = &self.browser { - Some(BrowserAuthenticator::new_with_browser(&saml_request, browser)) + let auth_window = AuthWindow::new(&server, gp_params) + .with_auth_request(&auth_request) + .with_clean(self.clean); + + let browser = if let Some(browser) = self.browser.as_deref() { + Some(browser) } else if self.default_browser { - Some(BrowserAuthenticator::new(&saml_request)) + Some("default") } else { None }; - if let Some(browser_auth) = browser_auth { - browser_auth.authenticate()?; - - info!("Please continue the authentication process in the default browser"); - - let auth_result = match wait_auth_data().await { - Ok(auth_data) => SamlAuthResult::Success(auth_data), - Err(err) => SamlAuthResult::Failure(format!("{}", err)), - }; - - info!("Authentication completed"); - - println!("{}", json!(auth_result)); + if browser.is_some() { + let auth_result = auth_window.browser_authenticate(browser).await; + print_auth_result(auth_result); return Ok(()); } - self.saml_request.replace(saml_request); - - let app = create_app(self.clone())?; - - app.run(move |_app_handle, event| { - if let RunEvent::Exit = event { - if let Some(file) = openssl_conf.take() { - if let Err(err) = file.close() { - info!("Error closing OpenSSL config file: {}", err); + tauri::Builder::default() + .setup(move |app| { + let app_handle = app.handle().clone(); + + tauri::async_runtime::spawn(async move { + let auth_result = auth_window.webview_authenticate(&app_handle).await; + print_auth_result(auth_result); + }); + + Ok(()) + }) + .build(tauri::generate_context!())? + .run(move |_app_handle, event| { + if let RunEvent::Exit = event { + if let Some(file) = openssl_conf.take() { + if let Err(err) = file.close() { + info!("Error closing OpenSSL config file: {}", err); + } } } - } - }); + }); Ok(()) } - fn prepare_env(&self) -> anyhow::Result> { - env_utils::patch_gui_runtime_env(self.hidpi); - - if self.fix_openssl { - info!("Fixing OpenSSL environment"); - let file = openssl::fix_openssl_env()?; - - return Ok(Some(file)); - } - - Ok(None) - } - fn build_gp_params(&self) -> GpParams { let gp_params = GpParams::builder() .user_agent(&self.user_agent) @@ -161,37 +166,6 @@ impl Cli { gp_params } - - async fn saml_auth(&self, app_handle: AppHandle) -> anyhow::Result { - let auth_window = AuthWindow::new(app_handle) - .server(&self.server) - .user_agent(&self.user_agent) - .gp_params(self.build_gp_params()) - .saml_request(self.saml_request.as_ref().unwrap()) - .clean(self.clean); - - auth_window.open().await - } -} - -fn create_app(cli: Cli) -> anyhow::Result { - let app = tauri::Builder::default() - .setup(|app| { - let app_handle = app.handle(); - - tauri::async_runtime::spawn(async move { - let auth_result = match cli.saml_auth(app_handle.clone()).await { - Ok(auth_data) => SamlAuthResult::Success(auth_data), - Err(err) => SamlAuthResult::Failure(format!("{}", err)), - }; - - println!("{}", json!(auth_result)); - }); - Ok(()) - }) - .build(tauri::generate_context!())?; - - Ok(app) } fn init_logger() { @@ -199,53 +173,22 @@ fn init_logger() { } pub async fn run() { - let mut cli = Cli::parse(); + let cli = Cli::parse(); init_logger(); info!("gpauth started: {}", VERSION); if let Err(err) = cli.run().await { - eprintln!("\nError: {}", err); - - if err.to_string().contains("unsafe legacy renegotiation") && !cli.fix_openssl { - eprintln!("\nRe-run it with the `--fix-openssl` option to work around this issue, e.g.:\n"); - // Print the command - let args = std::env::args().collect::>(); - eprintln!("{} --fix-openssl {}\n", args[0], args[1..].join(" ")); - } - + handle_error(err, &cli); std::process::exit(1); } } -async fn wait_auth_data() -> anyhow::Result { - // Start a local server to receive the browser authentication data - let listener = TcpListener::bind("127.0.0.1:0").await?; - let port = listener.local_addr()?.port(); - let port_file = temp_dir().join("gpcallback.port"); - - // Write the port to a file - fs::write(&port_file, port.to_string())?; - fs::set_permissions(&port_file, fs::Permissions::from_mode(0o600))?; - - // Remove the previous log file - let callback_log = temp_dir().join("gpcallback.log"); - let _ = fs::remove_file(&callback_log); - - info!("Listening authentication data on port {}", port); - info!( - "If it hangs, please check the logs at `{}` for more information", - callback_log.display() - ); - let (mut socket, _) = listener.accept().await?; - - info!("Received the browser authentication data from the socket"); - let mut data = String::new(); - socket.read_to_string(&mut data).await?; - - // Remove the port file - fs::remove_file(&port_file)?; +fn print_auth_result(auth_result: anyhow::Result) { + let auth_result = match auth_result { + Ok(auth_data) => SamlAuthResult::Success(auth_data), + Err(err) => SamlAuthResult::Failure(format!("{}", err)), + }; - let auth_data = SamlAuthData::from_gpcallback(&data)?; - Ok(auth_data) + println!("{}", json!(auth_result)); } diff --git a/apps/gpauth/src/common.rs b/apps/gpauth/src/common.rs new file mode 100644 index 00000000..72907be2 --- /dev/null +++ b/apps/gpauth/src/common.rs @@ -0,0 +1,174 @@ +use std::sync::Arc; + +use gpapi::{ + auth::{AuthDataParseResult, SamlAuthData}, + error::AuthDataParseError, +}; +use log::{info, warn}; +use regex::Regex; + +use crate::auth_messenger::{AuthError, AuthMessenger}; + +pub struct AuthSettings<'a> { + pub auth_request: AuthRequest<'a>, + pub auth_messenger: Arc, + pub ignore_tls_errors: bool, +} + +pub struct AuthRequest<'a>(&'a str); + +impl<'a> AuthRequest<'a> { + pub fn new(auth_request: &'a str) -> Self { + Self(auth_request) + } + + pub fn is_url(&self) -> bool { + self.0.starts_with("http") + } + + pub fn as_str(&self) -> &str { + self.0 + } +} + +/// Trait for handling authentication response +pub trait AuthResponse { + fn get_header(&self, key: &str) -> Option; + fn get_body(&self, cb: F) + where + F: FnOnce(anyhow::Result>) + 'static; + + fn url(&self) -> Option; + + fn is_acs_endpoint(&self) -> bool { + self.url().map_or(false, |url| url.ends_with("/SAML20/SP/ACS")) + } +} + +pub fn read_auth_data(auth_response: &impl AuthResponse, auth_messenger: &Arc) { + let auth_messenger = Arc::clone(auth_messenger); + + match read_from_headers(auth_response) { + Ok(auth_data) => { + info!("Found auth data in headers"); + auth_messenger.send_auth_data(auth_data); + } + Err(header_err) => { + info!("Failed to read auth data from headers: {}", header_err); + + let is_acs_endpoint = auth_response.is_acs_endpoint(); + read_from_body(auth_response, move |auth_result| { + // If the endpoint is `/SAML20/SP/ACS` and no auth data found in body, it should be considered as invalid + let auth_result = auth_result.map_err(move |e| { + info!("Failed to read auth data from body: {}", e); + if is_acs_endpoint || e.is_invalid() || header_err.is_invalid() { + AuthError::Invalid + } else { + AuthError::NotFound + } + }); + + auth_messenger.send_auth_result(auth_result); + }); + } + } +} + +fn read_from_headers(auth_response: &impl AuthResponse) -> AuthDataParseResult { + let Some(status) = auth_response.get_header("saml-auth-status") else { + info!("No SAML auth status found in headers"); + return Err(AuthDataParseError::NotFound); + }; + + if status != "1" { + info!("Found invalid auth status: {}", status); + return Err(AuthDataParseError::Invalid); + } + + let username = auth_response.get_header("saml-username"); + let prelogin_cookie = auth_response.get_header("prelogin-cookie"); + let portal_userauthcookie = auth_response.get_header("portal-userauthcookie"); + + SamlAuthData::new(username, prelogin_cookie, portal_userauthcookie).map_err(|e| { + warn!("Found invalid auth data: {}", e); + AuthDataParseError::Invalid + }) +} + +fn read_from_body(auth_response: &impl AuthResponse, cb: F) +where + F: FnOnce(AuthDataParseResult) + 'static, +{ + auth_response.get_body(|body| match body { + Ok(body) => { + let html = String::from_utf8_lossy(&body); + cb(read_from_html(&html)) + } + Err(err) => { + info!("Failed to read body: {}", err); + cb(Err(AuthDataParseError::Invalid)) + } + }); +} + +fn read_from_html(html: &str) -> AuthDataParseResult { + if html.contains("Temporarily Unavailable") { + info!("Found 'Temporarily Unavailable' in HTML, auth failed"); + return Err(AuthDataParseError::Invalid); + } + + SamlAuthData::from_html(html).or_else(|err| { + if let Some(gpcallback) = extract_gpcallback(html) { + info!("Found gpcallback from html..."); + SamlAuthData::from_gpcallback(&gpcallback) + } else { + Err(err) + } + }) +} + +fn extract_gpcallback(html: &str) -> Option { + let re = Regex::new(r#"globalprotectcallback:[^"]+"#).unwrap(); + re.captures(html) + .and_then(|captures| captures.get(0)) + .map(|m| html_escape::decode_html_entities(m.as_str()).to_string()) +} + +#[cfg(test)] +mod tests { + use super::*; + + #[test] + fn extract_gpcallback_some() { + let html = r#" + + + "#; + + assert_eq!( + extract_gpcallback(html).as_deref(), + Some("globalprotectcallback:PGh0bWw+PCEtLSA8c") + ); + } + + #[test] + fn extract_gpcallback_cas() { + let html = r#" + + "#; + + assert_eq!( + extract_gpcallback(html).as_deref(), + Some("globalprotectcallback:cas-as=1&un=xyz@email.com&token=very_long_string") + ); + } + + #[test] + fn extract_gpcallback_none() { + let html = r#" + + "#; + + assert_eq!(extract_gpcallback(html), None); + } +} diff --git a/apps/gpauth/src/lib.rs b/apps/gpauth/src/lib.rs new file mode 100644 index 00000000..dd4b670c --- /dev/null +++ b/apps/gpauth/src/lib.rs @@ -0,0 +1,7 @@ +mod auth_messenger; +mod common; + +pub mod auth_window; + +#[cfg_attr(not(target_os = "macos"), path = "unix.rs")] +mod platform_impl; diff --git a/apps/gpauth/src/main.rs b/apps/gpauth/src/main.rs index 74f86ec2..05ae6847 100644 --- a/apps/gpauth/src/main.rs +++ b/apps/gpauth/src/main.rs @@ -1,6 +1,5 @@ #![cfg_attr(not(debug_assertions), windows_subsystem = "windows")] -mod auth_window; mod cli; #[tokio::main] diff --git a/apps/gpauth/src/unix.rs b/apps/gpauth/src/unix.rs new file mode 100644 index 00000000..d32ee44d --- /dev/null +++ b/apps/gpauth/src/unix.rs @@ -0,0 +1,133 @@ +use std::sync::Arc; + +use anyhow::bail; +use gpapi::utils::redact::redact_uri; +use log::{info, warn}; +use webkit2gtk::{ + gio::Cancellable, + glib::{GString, TimeSpan}, + LoadEvent, TLSErrorsPolicy, URIResponseExt, WebResource, WebResourceExt, WebView, WebViewExt, WebsiteDataManagerExt, + WebsiteDataManagerExtManual, WebsiteDataTypes, +}; + +use crate::{ + auth_messenger::AuthError, + common::{read_auth_data, AuthRequest, AuthResponse, AuthSettings}, +}; + +impl AuthResponse for WebResource { + fn get_header(&self, key: &str) -> Option { + self + .response() + .and_then(|response| response.http_headers()) + .and_then(|headers| headers.one(key)) + .map(GString::into) + } + + fn get_body(&self, cb: F) + where + F: FnOnce(anyhow::Result>) + 'static, + { + let cancellable = Cancellable::NONE; + self.data(cancellable, |data| cb(data.map_err(|e| anyhow::anyhow!(e)))); + } + + fn url(&self) -> Option { + self.uri().map(GString::into) + } +} + +pub fn clear_data(wv: &WebView, cb: F) +where + F: FnOnce(anyhow::Result<()>) + Send + 'static, +{ + let Some(data_manager) = wv.website_data_manager() else { + cb(Err(anyhow::anyhow!("Failed to get website data manager"))); + return; + }; + + data_manager.clear( + WebsiteDataTypes::COOKIES, + TimeSpan(0), + Cancellable::NONE, + move |result| { + cb(result.map_err(|e| anyhow::anyhow!(e))); + }, + ); +} + +pub fn setup_webview(wv: &WebView, auth_settings: AuthSettings) -> anyhow::Result<()> { + let AuthSettings { + auth_request, + auth_messenger, + ignore_tls_errors, + } = auth_settings; + let auth_messenger_clone = Arc::clone(&auth_messenger); + + let Some(data_manager) = wv.website_data_manager() else { + bail!("Failed to get website data manager"); + }; + + if ignore_tls_errors { + data_manager.set_tls_errors_policy(TLSErrorsPolicy::Ignore); + } + + wv.connect_load_changed(move |wv, event| { + if event == LoadEvent::Started { + auth_messenger_clone.cancel_raise_window(); + return; + } + + if event != LoadEvent::Finished { + return; + } + + let Some(main_resource) = wv.main_resource() else { + return; + }; + + let uri = main_resource.uri().unwrap_or("".into()); + if uri.is_empty() { + warn!("Loaded an empty URI"); + auth_messenger_clone.send_auth_error(AuthError::Invalid); + return; + } + + read_auth_data(&main_resource, &auth_messenger_clone); + }); + + wv.connect_load_failed_with_tls_errors(move |_wv, uri, cert, err| { + let redacted_uri = redact_uri(uri); + warn!( + "Failed to load uri: {} with error: {}, cert: {}", + redacted_uri, err, cert + ); + + auth_messenger.send_auth_error(AuthError::TlsError); + true + }); + + wv.connect_load_failed(move |_wv, _event, uri, err| { + let redacted_uri = redact_uri(uri); + if !uri.starts_with("globalprotectcallback:") { + warn!("Failed to load uri: {} with error: {}", redacted_uri, err); + } + // NOTE: Don't send error here, since load_changed event will be triggered after this + // true to stop other handlers from being invoked for the event. false to propagate the event further. + true + }); + + load_auth_request(wv, &auth_request); + + Ok(()) +} + +pub fn load_auth_request(wv: &WebView, auth_request: &AuthRequest) { + if auth_request.is_url() { + info!("Loading auth request as URI..."); + wv.load_uri(auth_request.as_str()); + } else { + info!("Loading auth request as HTML..."); + wv.load_html(auth_request.as_str(), None); + } +} diff --git a/apps/gpauth/tauri.conf.json b/apps/gpauth/tauri.conf.json index 5eab86d8..f446cb7a 100644 --- a/apps/gpauth/tauri.conf.json +++ b/apps/gpauth/tauri.conf.json @@ -1,47 +1,16 @@ { - "$schema": "https://cdn.jsdelivr.net/gh/tauri-apps/tauri@tauri-v1.5.0/tooling/cli/schema.json", + "$schema": "https://cdn.jsdelivr.net/gh/tauri-apps/tauri@tauri-v2.1.1/crates/tauri-cli/config.schema.json", "build": { - "distDir": [ - "index.html" - ], - "devPath": [ - "index.html" - ], + "frontendDist": ["index.html"], "beforeDevCommand": "", - "beforeBuildCommand": "", - "withGlobalTauri": false + "beforeBuildCommand": "" }, - "package": { - "productName": "gpauth", - "version": "0.0.0" - }, - "tauri": { - "allowlist": { - "all": false, - "http": { - "all": true, - "request": true, - "scope": [ - "http://*", - "https://*" - ] - } - }, - "bundle": { - "active": true, - "targets": "deb", - "identifier": "com.yuezk.gpauth", - "icon": [ - "icons/32x32.png", - "icons/128x128.png", - "icons/128x128@2x.png", - "icons/icon.icns", - "icons/icon.ico" - ] - }, + "identifier": "com.yuezk.gpauth", + "productName": "gpauth", + "app": { + "withGlobalTauri": false, "security": { "csp": null - }, - "windows": [] + } } } diff --git a/apps/gpclient/Cargo.toml b/apps/gpclient/Cargo.toml index b2594bd9..a5c96623 100644 --- a/apps/gpclient/Cargo.toml +++ b/apps/gpclient/Cargo.toml @@ -1,5 +1,6 @@ [package] name = "gpclient" +rust-version.workspace = true authors.workspace = true version.workspace = true edition.workspace = true diff --git a/apps/gpclient/src/cli.rs b/apps/gpclient/src/cli.rs index d4c55ce7..005373bb 100644 --- a/apps/gpclient/src/cli.rs +++ b/apps/gpclient/src/cli.rs @@ -1,7 +1,10 @@ use std::{env::temp_dir, fs::File}; use clap::{Parser, Subcommand}; -use gpapi::utils::openssl; +use gpapi::{ + clap::{handle_error, Args}, + utils::openssl, +}; use log::{info, LevelFilter}; use tempfile::NamedTempFile; @@ -50,12 +53,25 @@ struct Cli { #[command(subcommand)] command: CliCommand, - #[arg(long, help = "Uses extended compatibility mode for OpenSSL operations to support a broader range of systems and formats.")] + #[arg( + long, + help = "Uses extended compatibility mode for OpenSSL operations to support a broader range of systems and formats." + )] fix_openssl: bool, #[arg(long, help = "Ignore the TLS errors")] ignore_tls_errors: bool, } +impl Args for Cli { + fn fix_openssl(&self) -> bool { + self.fix_openssl + } + + fn ignore_tls_errors(&self) -> bool { + self.ignore_tls_errors + } +} + impl Cli { fn fix_openssl(&self) -> anyhow::Result> { if self.fix_openssl { @@ -113,24 +129,7 @@ pub(crate) async fn run() { info!("gpclient started: {}", VERSION); if let Err(err) = cli.run().await { - eprintln!("\nError: {}", err); - - let err = err.to_string(); - - if err.contains("unsafe legacy renegotiation") && !cli.fix_openssl { - eprintln!("\nRe-run it with the `--fix-openssl` option to work around this issue, e.g.:\n"); - // Print the command - let args = std::env::args().collect::>(); - eprintln!("{} --fix-openssl {}\n", args[0], args[1..].join(" ")); - } - - if err.contains("certificate verify failed") && !cli.ignore_tls_errors { - eprintln!("\nRe-run it with the `--ignore-tls-errors` option to ignore the certificate error, e.g.:\n"); - // Print the command - let args = std::env::args().collect::>(); - eprintln!("{} --ignore-tls-errors {}\n", args[0], args[1..].join(" ")); - } - + handle_error(err, &cli); std::process::exit(1); } } diff --git a/apps/gpclient/src/launch_gui.rs b/apps/gpclient/src/launch_gui.rs index 472b3f65..00042183 100644 --- a/apps/gpclient/src/launch_gui.rs +++ b/apps/gpclient/src/launch_gui.rs @@ -5,6 +5,7 @@ use directories::ProjectDirs; use gpapi::{ process::service_launcher::ServiceLauncher, utils::{endpoint::http_endpoint, env_utils, shutdown_signal}, + GP_CALLBACK_PORT_FILENAME, }; use log::info; use tokio::io::AsyncWriteExt; @@ -115,7 +116,7 @@ async fn feed_auth_data_gui(auth_data: &str) -> anyhow::Result<()> { async fn feed_auth_data_cli(auth_data: &str) -> anyhow::Result<()> { info!("Feeding auth data to the CLI"); - let port_file = temp_dir().join("gpcallback.port"); + let port_file = temp_dir().join(GP_CALLBACK_PORT_FILENAME); let port = tokio::fs::read_to_string(port_file).await?; let mut stream = tokio::net::TcpStream::connect(format!("127.0.0.1:{}", port.trim())).await?; diff --git a/apps/gpgui-helper/dist/assets/icon-674efcbe.svg b/apps/gpgui-helper/dist/assets/icon-BlfaAlWe.svg similarity index 100% rename from apps/gpgui-helper/dist/assets/icon-674efcbe.svg rename to apps/gpgui-helper/dist/assets/icon-BlfaAlWe.svg diff --git a/apps/gpgui-helper/dist/assets/index-11e7064a.css b/apps/gpgui-helper/dist/assets/main-B3YRsHQ2.css similarity index 100% rename from apps/gpgui-helper/dist/assets/index-11e7064a.css rename to apps/gpgui-helper/dist/assets/main-B3YRsHQ2.css diff --git a/apps/gpgui-helper/dist/assets/main-DJgDj3te.js b/apps/gpgui-helper/dist/assets/main-DJgDj3te.js new file mode 100644 index 00000000..16bfaac9 --- /dev/null +++ b/apps/gpgui-helper/dist/assets/main-DJgDj3te.js @@ -0,0 +1,185 @@ +var Um=Object.defineProperty;var Vm=(r,i,l)=>i in r?Um(r,i,{enumerable:!0,configurable:!0,writable:!0,value:l}):r[i]=l;var Ri=(r,i,l)=>Vm(r,typeof i!="symbol"?i+"":i,l);function Hm(r,i){for(var l=0;lu[c]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))u(c);new MutationObserver(c=>{for(const f of c)if(f.type==="childList")for(const p of f.addedNodes)p.tagName==="LINK"&&p.rel==="modulepreload"&&u(p)}).observe(document,{childList:!0,subtree:!0});function l(c){const f={};return c.integrity&&(f.integrity=c.integrity),c.referrerPolicy&&(f.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?f.credentials="include":c.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function u(c){if(c.ep)return;c.ep=!0;const f=l(c);fetch(c.href,f)}})();function Km(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var Rs={exports:{}},Oi={},Os={exports:{}},de={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var md;function Gm(){if(md)return de;md=1;var r=Symbol.for("react.element"),i=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),f=Symbol.for("react.provider"),p=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),k=Symbol.for("react.memo"),P=Symbol.for("react.lazy"),_=Symbol.iterator;function b(S){return S===null||typeof S!="object"?null:(S=_&&S[_]||S["@@iterator"],typeof S=="function"?S:null)}var D={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},z=Object.assign,O={};function M(S,N,ue){this.props=S,this.context=N,this.refs=O,this.updater=ue||D}M.prototype.isReactComponent={},M.prototype.setState=function(S,N){if(typeof S!="object"&&typeof S!="function"&&S!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,S,N,"setState")},M.prototype.forceUpdate=function(S){this.updater.enqueueForceUpdate(this,S,"forceUpdate")};function H(){}H.prototype=M.prototype;function Z(S,N,ue){this.props=S,this.context=N,this.refs=O,this.updater=ue||D}var j=Z.prototype=new H;j.constructor=Z,z(j,M.prototype),j.isPureReactComponent=!0;var $=Array.isArray,T=Object.prototype.hasOwnProperty,F={current:null},G={key:!0,ref:!0,__self:!0,__source:!0};function ce(S,N,ue){var fe,he={},me=null,Pe=null;if(N!=null)for(fe in N.ref!==void 0&&(Pe=N.ref),N.key!==void 0&&(me=""+N.key),N)T.call(N,fe)&&!G.hasOwnProperty(fe)&&(he[fe]=N[fe]);var Se=arguments.length-2;if(Se===1)he.children=ue;else if(1>>1,N=W[S];if(0>>1;Sc(he,X))mec(Pe,he)?(W[S]=Pe,W[me]=X,S=me):(W[S]=he,W[fe]=X,S=fe);else if(mec(Pe,X))W[S]=Pe,W[me]=X,S=me;else break e}}return Y}function c(W,Y){var X=W.sortIndex-Y.sortIndex;return X!==0?X:W.id-Y.id}if(typeof performance=="object"&&typeof performance.now=="function"){var f=performance;r.unstable_now=function(){return f.now()}}else{var p=Date,g=p.now();r.unstable_now=function(){return p.now()-g}}var v=[],k=[],P=1,_=null,b=3,D=!1,z=!1,O=!1,M=typeof setTimeout=="function"?setTimeout:null,H=typeof clearTimeout=="function"?clearTimeout:null,Z=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function j(W){for(var Y=l(k);Y!==null;){if(Y.callback===null)u(k);else if(Y.startTime<=W)u(k),Y.sortIndex=Y.expirationTime,i(v,Y);else break;Y=l(k)}}function $(W){if(O=!1,j(W),!z)if(l(v)!==null)z=!0,Ee(T);else{var Y=l(k);Y!==null&&we($,Y.startTime-W)}}function T(W,Y){z=!1,O&&(O=!1,H(ce),ce=-1),D=!0;var X=b;try{for(j(Y),_=l(v);_!==null&&(!(_.expirationTime>Y)||W&&!V());){var S=_.callback;if(typeof S=="function"){_.callback=null,b=_.priorityLevel;var N=S(_.expirationTime<=Y);Y=r.unstable_now(),typeof N=="function"?_.callback=N:_===l(v)&&u(v),j(Y)}else u(v);_=l(v)}if(_!==null)var ue=!0;else{var fe=l(k);fe!==null&&we($,fe.startTime-Y),ue=!1}return ue}finally{_=null,b=X,D=!1}}var F=!1,G=null,ce=-1,ve=5,h=-1;function V(){return!(r.unstable_now()-hW||125S?(W.sortIndex=X,i(k,W),l(v)===null&&W===l(k)&&(O?(H(ce),ce=-1):O=!0,we($,X-S))):(W.sortIndex=N,i(v,W),z||D||(z=!0,Ee(T))),W},r.unstable_shouldYield=V,r.unstable_wrapCallback=function(W){var Y=b;return function(){var X=b;b=Y;try{return W.apply(this,arguments)}finally{b=X}}}}($s)),$s}var Sd;function qm(){return Sd||(Sd=1,Ns.exports=Xm()),Ns.exports}/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var xd;function Jm(){if(xd)return mt;xd=1;var r=ru(),i=qm();function l(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),v=Object.prototype.hasOwnProperty,k=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,P={},_={};function b(e){return v.call(_,e)?!0:v.call(P,e)?!1:k.test(e)?_[e]=!0:(P[e]=!0,!1)}function D(e,t,n,o){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return o?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function z(e,t,n,o){if(t===null||typeof t>"u"||D(e,t,n,o))return!0;if(o)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function O(e,t,n,o,a,s,d){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=o,this.attributeNamespace=a,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=d}var M={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){M[e]=new O(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];M[t]=new O(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){M[e]=new O(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){M[e]=new O(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){M[e]=new O(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){M[e]=new O(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){M[e]=new O(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){M[e]=new O(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){M[e]=new O(e,5,!1,e.toLowerCase(),null,!1,!1)});var H=/[\-:]([a-z])/g;function Z(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(H,Z);M[t]=new O(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(H,Z);M[t]=new O(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(H,Z);M[t]=new O(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){M[e]=new O(e,1,!1,e.toLowerCase(),null,!1,!1)}),M.xlinkHref=new O("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){M[e]=new O(e,1,!1,e.toLowerCase(),null,!0,!0)});function j(e,t,n,o){var a=M.hasOwnProperty(t)?M[t]:null;(a!==null?a.type!==0:o||!(2m||a[d]!==s[m]){var y=` +`+a[d].replace(" at new "," at ");return e.displayName&&y.includes("")&&(y=y.replace("",e.displayName)),y}while(1<=d&&0<=m);break}}}finally{ue=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?N(e):""}function he(e){switch(e.tag){case 5:return N(e.type);case 16:return N("Lazy");case 13:return N("Suspense");case 19:return N("SuspenseList");case 0:case 2:case 15:return e=fe(e.type,!1),e;case 11:return e=fe(e.type.render,!1),e;case 1:return e=fe(e.type,!0),e;default:return""}}function me(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case G:return"Fragment";case F:return"Portal";case ve:return"Profiler";case ce:return"StrictMode";case oe:return"Suspense";case pe:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case V:return(e.displayName||"Context")+".Consumer";case h:return(e._context.displayName||"Context")+".Provider";case ne:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Te:return t=e.displayName||null,t!==null?t:me(e.type)||"Memo";case Ee:t=e._payload,e=e._init;try{return me(e(t))}catch{}}return null}function Pe(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return me(t);case 8:return t===ce?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Se(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Oe(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function lt(e){var t=Oe(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),o=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var a=n.get,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(d){o=""+d,s.call(this,d)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return o},setValue:function(d){o=""+d},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function tr(e){e._valueTracker||(e._valueTracker=lt(e))}function Qi(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),o="";return e&&(o=Oe(e)?e.checked?"true":"false":e.value),e=o,e!==n?(t.setValue(e),!0):!1}function nr(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Mn(e,t){var n=t.checked;return X({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Yi(e,t){var n=t.defaultValue==null?"":t.defaultValue,o=t.checked!=null?t.checked:t.defaultChecked;n=Se(t.value!=null?t.value:n),e._wrapperState={initialChecked:o,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Xi(e,t){t=t.checked,t!=null&&j(e,"checked",t,!1)}function dn(e,t){Xi(e,t);var n=Se(t.value),o=t.type;if(n!=null)o==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(o==="submit"||o==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Vr(e,t.type,n):t.hasOwnProperty("defaultValue")&&Vr(e,t.type,Se(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function pn(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var o=t.type;if(!(o!=="submit"&&o!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Vr(e,t,n){(t!=="number"||nr(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var hn=Array.isArray;function mn(e,t,n,o){if(e=e.options,t){t={};for(var a=0;a"+t.valueOf().toString()+"",t=qi.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Hr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Kr={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Gp=["Webkit","ms","Moz","O"];Object.keys(Kr).forEach(function(e){Gp.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Kr[t]=Kr[e]})});function Ru(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Kr.hasOwnProperty(e)&&Kr[e]?(""+t).trim():t+"px"}function Ou(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var o=n.indexOf("--")===0,a=Ru(n,t[n],o);n==="float"&&(n="cssFloat"),o?e.setProperty(n,a):e[n]=a}}var Qp=X({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Fl(e,t){if(t){if(Qp[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(l(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(l(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(l(61))}if(t.style!=null&&typeof t.style!="object")throw Error(l(62))}}function Wl(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Ul=null;function Vl(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Hl=null,rr=null,ir=null;function zu(e){if(e=hi(e)){if(typeof Hl!="function")throw Error(l(280));var t=e.stateNode;t&&(t=xo(t),Hl(e.stateNode,e.type,t))}}function Nu(e){rr?ir?ir.push(e):ir=[e]:rr=e}function $u(){if(rr){var e=rr,t=ir;if(ir=rr=null,zu(e),t)for(e=0;e>>=0,e===0?32:31-(oh(e)/lh|0)|0}var no=64,ro=4194304;function Xr(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function io(e,t){var n=e.pendingLanes;if(n===0)return 0;var o=0,a=e.suspendedLanes,s=e.pingedLanes,d=n&268435455;if(d!==0){var m=d&~a;m!==0?o=Xr(m):(s&=d,s!==0&&(o=Xr(s)))}else d=n&~a,d!==0?o=Xr(d):s!==0&&(o=Xr(s));if(o===0)return 0;if(t!==0&&t!==o&&!(t&a)&&(a=o&-o,s=t&-t,a>=s||a===16&&(s&4194240)!==0))return t;if(o&4&&(o|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=o;0n;n++)t.push(e);return t}function qr(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Lt(t),e[t]=n}function ch(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var o=e.eventTimes;for(e=e.expirationTimes;0=oi),ac=" ",sc=!1;function uc(e,t){switch(e){case"keyup":return Dh.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function cc(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ar=!1;function jh(e,t){switch(e){case"compositionend":return cc(t);case"keypress":return t.which!==32?null:(sc=!0,ac);case"textInput":return e=t.data,e===ac&&sc?null:e;default:return null}}function Fh(e,t){if(ar)return e==="compositionend"||!ua&&uc(e,t)?(e=tc(),uo=ra=Sn=null,ar=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=o}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=yc(n)}}function wc(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?wc(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Sc(){for(var e=window,t=nr();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=nr(e.document)}return t}function da(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Xh(e){var t=Sc(),n=e.focusedElem,o=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&wc(n.ownerDocument.documentElement,n)){if(o!==null&&da(n)){if(t=o.start,e=o.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var a=n.textContent.length,s=Math.min(o.start,a);o=o.end===void 0?s:Math.min(o.end,a),!e.extend&&s>o&&(a=o,o=s,s=a),a=vc(n,s);var d=vc(n,o);a&&d&&(e.rangeCount!==1||e.anchorNode!==a.node||e.anchorOffset!==a.offset||e.focusNode!==d.node||e.focusOffset!==d.offset)&&(t=t.createRange(),t.setStart(a.node,a.offset),e.removeAllRanges(),s>o?(e.addRange(t),e.extend(d.node,d.offset)):(t.setEnd(d.node,d.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,sr=null,pa=null,ui=null,ha=!1;function xc(e,t,n){var o=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ha||sr==null||sr!==nr(o)||(o=sr,"selectionStart"in o&&da(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),ui&&si(ui,o)||(ui=o,o=vo(pa,"onSelect"),0pr||(e.current=Pa[pr],Pa[pr]=null,pr--)}function ze(e,t){pr++,Pa[pr]=e.current,e.current=t}var _n={},tt=Cn(_n),ct=Cn(!1),jn=_n;function hr(e,t){var n=e.type.contextTypes;if(!n)return _n;var o=e.stateNode;if(o&&o.__reactInternalMemoizedUnmaskedChildContext===t)return o.__reactInternalMemoizedMaskedChildContext;var a={},s;for(s in n)a[s]=t[s];return o&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function ft(e){return e=e.childContextTypes,e!=null}function ko(){$e(ct),$e(tt)}function Ic(e,t,n){if(tt.current!==_n)throw Error(l(168));ze(tt,t),ze(ct,n)}function Mc(e,t,n){var o=e.stateNode;if(t=t.childContextTypes,typeof o.getChildContext!="function")return n;o=o.getChildContext();for(var a in o)if(!(a in t))throw Error(l(108,Pe(e)||"Unknown",a));return X({},n,o)}function Co(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||_n,jn=tt.current,ze(tt,e),ze(ct,ct.current),!0}function Dc(e,t,n){var o=e.stateNode;if(!o)throw Error(l(169));n?(e=Mc(e,t,jn),o.__reactInternalMemoizedMergedChildContext=e,$e(ct),$e(tt),ze(tt,e)):$e(ct),ze(ct,n)}var en=null,_o=!1,Ta=!1;function Bc(e){en===null?en=[e]:en.push(e)}function sm(e){_o=!0,Bc(e)}function En(){if(!Ta&&en!==null){Ta=!0;var e=0,t=_e;try{var n=en;for(_e=1;e>=d,a-=d,tn=1<<32-Lt(t)+a|n<ae?(qe=ie,ie=null):qe=ie.sibling;var ye=A(x,ie,C[ae],B);if(ye===null){ie===null&&(ie=qe);break}e&&ie&&ye.alternate===null&&t(x,ie),w=s(ye,w,ae),re===null?te=ye:re.sibling=ye,re=ye,ie=qe}if(ae===C.length)return n(x,ie),Le&&Wn(x,ae),te;if(ie===null){for(;aeae?(qe=ie,ie=null):qe=ie.sibling;var An=A(x,ie,ye.value,B);if(An===null){ie===null&&(ie=qe);break}e&&ie&&An.alternate===null&&t(x,ie),w=s(An,w,ae),re===null?te=An:re.sibling=An,re=An,ie=qe}if(ye.done)return n(x,ie),Le&&Wn(x,ae),te;if(ie===null){for(;!ye.done;ae++,ye=C.next())ye=I(x,ye.value,B),ye!==null&&(w=s(ye,w,ae),re===null?te=ye:re.sibling=ye,re=ye);return Le&&Wn(x,ae),te}for(ie=o(x,ie);!ye.done;ae++,ye=C.next())ye=Q(ie,x,ae,ye.value,B),ye!==null&&(e&&ye.alternate!==null&&ie.delete(ye.key===null?ae:ye.key),w=s(ye,w,ae),re===null?te=ye:re.sibling=ye,re=ye);return e&&ie.forEach(function(Wm){return t(x,Wm)}),Le&&Wn(x,ae),te}function Ue(x,w,C,B){if(typeof C=="object"&&C!==null&&C.type===G&&C.key===null&&(C=C.props.children),typeof C=="object"&&C!==null){switch(C.$$typeof){case T:e:{for(var te=C.key,re=w;re!==null;){if(re.key===te){if(te=C.type,te===G){if(re.tag===7){n(x,re.sibling),w=a(re,C.props.children),w.return=x,x=w;break e}}else if(re.elementType===te||typeof te=="object"&&te!==null&&te.$$typeof===Ee&&Hc(te)===re.type){n(x,re.sibling),w=a(re,C.props),w.ref=mi(x,re,C),w.return=x,x=w;break e}n(x,re);break}else t(x,re);re=re.sibling}C.type===G?(w=Xn(C.props.children,x.mode,B,C.key),w.return=x,x=w):(B=Jo(C.type,C.key,C.props,null,x.mode,B),B.ref=mi(x,w,C),B.return=x,x=B)}return d(x);case F:e:{for(re=C.key;w!==null;){if(w.key===re)if(w.tag===4&&w.stateNode.containerInfo===C.containerInfo&&w.stateNode.implementation===C.implementation){n(x,w.sibling),w=a(w,C.children||[]),w.return=x,x=w;break e}else{n(x,w);break}else t(x,w);w=w.sibling}w=_s(C,x.mode,B),w.return=x,x=w}return d(x);case Ee:return re=C._init,Ue(x,w,re(C._payload),B)}if(hn(C))return J(x,w,C,B);if(Y(C))return ee(x,w,C,B);bo(x,C)}return typeof C=="string"&&C!==""||typeof C=="number"?(C=""+C,w!==null&&w.tag===6?(n(x,w.sibling),w=a(w,C),w.return=x,x=w):(n(x,w),w=Cs(C,x.mode,B),w.return=x,x=w),d(x)):n(x,w)}return Ue}var vr=Kc(!0),Gc=Kc(!1),Ro=Cn(null),Oo=null,wr=null,$a=null;function Aa(){$a=wr=Oo=null}function La(e){var t=Ro.current;$e(Ro),e._currentValue=t}function Ia(e,t,n){for(;e!==null;){var o=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,o!==null&&(o.childLanes|=t)):o!==null&&(o.childLanes&t)!==t&&(o.childLanes|=t),e===n)break;e=e.return}}function Sr(e,t){Oo=e,$a=wr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(dt=!0),e.firstContext=null)}function Tt(e){var t=e._currentValue;if($a!==e)if(e={context:e,memoizedValue:t,next:null},wr===null){if(Oo===null)throw Error(l(308));wr=e,Oo.dependencies={lanes:0,firstContext:e}}else wr=wr.next=e;return t}var Un=null;function Ma(e){Un===null?Un=[e]:Un.push(e)}function Qc(e,t,n,o){var a=t.interleaved;return a===null?(n.next=n,Ma(t)):(n.next=a.next,a.next=n),t.interleaved=n,rn(e,o)}function rn(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Pn=!1;function Da(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Yc(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function on(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Tn(e,t,n){var o=e.updateQueue;if(o===null)return null;if(o=o.shared,ge&2){var a=o.pending;return a===null?t.next=t:(t.next=a.next,a.next=t),o.pending=t,rn(e,n)}return a=o.interleaved,a===null?(t.next=t,Ma(o)):(t.next=a.next,a.next=t),o.interleaved=t,rn(e,n)}function zo(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var o=t.lanes;o&=e.pendingLanes,n|=o,t.lanes=n,Jl(e,n)}}function Xc(e,t){var n=e.updateQueue,o=e.alternate;if(o!==null&&(o=o.updateQueue,n===o)){var a=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var d={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};s===null?a=s=d:s=s.next=d,n=n.next}while(n!==null);s===null?a=s=t:s=s.next=t}else a=s=t;n={baseState:o.baseState,firstBaseUpdate:a,lastBaseUpdate:s,shared:o.shared,effects:o.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function No(e,t,n,o){var a=e.updateQueue;Pn=!1;var s=a.firstBaseUpdate,d=a.lastBaseUpdate,m=a.shared.pending;if(m!==null){a.shared.pending=null;var y=m,E=y.next;y.next=null,d===null?s=E:d.next=E,d=y;var L=e.alternate;L!==null&&(L=L.updateQueue,m=L.lastBaseUpdate,m!==d&&(m===null?L.firstBaseUpdate=E:m.next=E,L.lastBaseUpdate=y))}if(s!==null){var I=a.baseState;d=0,L=E=y=null,m=s;do{var A=m.lane,Q=m.eventTime;if((o&A)===A){L!==null&&(L=L.next={eventTime:Q,lane:0,tag:m.tag,payload:m.payload,callback:m.callback,next:null});e:{var J=e,ee=m;switch(A=t,Q=n,ee.tag){case 1:if(J=ee.payload,typeof J=="function"){I=J.call(Q,I,A);break e}I=J;break e;case 3:J.flags=J.flags&-65537|128;case 0:if(J=ee.payload,A=typeof J=="function"?J.call(Q,I,A):J,A==null)break e;I=X({},I,A);break e;case 2:Pn=!0}}m.callback!==null&&m.lane!==0&&(e.flags|=64,A=a.effects,A===null?a.effects=[m]:A.push(m))}else Q={eventTime:Q,lane:A,tag:m.tag,payload:m.payload,callback:m.callback,next:null},L===null?(E=L=Q,y=I):L=L.next=Q,d|=A;if(m=m.next,m===null){if(m=a.shared.pending,m===null)break;A=m,m=A.next,A.next=null,a.lastBaseUpdate=A,a.shared.pending=null}}while(!0);if(L===null&&(y=I),a.baseState=y,a.firstBaseUpdate=E,a.lastBaseUpdate=L,t=a.shared.interleaved,t!==null){a=t;do d|=a.lane,a=a.next;while(a!==t)}else s===null&&(a.shared.lanes=0);Kn|=d,e.lanes=d,e.memoizedState=I}}function qc(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var o=Ua.transition;Ua.transition={};try{e(!1),t()}finally{_e=n,Ua.transition=o}}function yf(){return bt().memoizedState}function dm(e,t,n){var o=zn(e);if(n={lane:o,action:n,hasEagerState:!1,eagerState:null,next:null},vf(e))wf(t,n);else if(n=Qc(e,t,n,o),n!==null){var a=st();Ft(n,e,o,a),Sf(n,t,o)}}function pm(e,t,n){var o=zn(e),a={lane:o,action:n,hasEagerState:!1,eagerState:null,next:null};if(vf(e))wf(t,a);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var d=t.lastRenderedState,m=s(d,n);if(a.hasEagerState=!0,a.eagerState=m,It(m,d)){var y=t.interleaved;y===null?(a.next=a,Ma(t)):(a.next=y.next,y.next=a),t.interleaved=a;return}}catch{}finally{}n=Qc(e,t,a,o),n!==null&&(a=st(),Ft(n,e,o,a),Sf(n,t,o))}}function vf(e){var t=e.alternate;return e===De||t!==null&&t===De}function wf(e,t){wi=Lo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Sf(e,t,n){if(n&4194240){var o=t.lanes;o&=e.pendingLanes,n|=o,t.lanes=n,Jl(e,n)}}var Do={readContext:Tt,useCallback:nt,useContext:nt,useEffect:nt,useImperativeHandle:nt,useInsertionEffect:nt,useLayoutEffect:nt,useMemo:nt,useReducer:nt,useRef:nt,useState:nt,useDebugValue:nt,useDeferredValue:nt,useTransition:nt,useMutableSource:nt,useSyncExternalStore:nt,useId:nt,unstable_isNewReconciler:!1},hm={readContext:Tt,useCallback:function(e,t){return Kt().memoizedState=[e,t===void 0?null:t],e},useContext:Tt,useEffect:uf,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Io(4194308,4,df.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Io(4194308,4,e,t)},useInsertionEffect:function(e,t){return Io(4,2,e,t)},useMemo:function(e,t){var n=Kt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var o=Kt();return t=n!==void 0?n(t):t,o.memoizedState=o.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},o.queue=e,e=e.dispatch=dm.bind(null,De,e),[o.memoizedState,e]},useRef:function(e){var t=Kt();return e={current:e},t.memoizedState=e},useState:af,useDebugValue:Xa,useDeferredValue:function(e){return Kt().memoizedState=e},useTransition:function(){var e=af(!1),t=e[0];return e=fm.bind(null,e[1]),Kt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var o=De,a=Kt();if(Le){if(n===void 0)throw Error(l(407));n=n()}else{if(n=t(),Xe===null)throw Error(l(349));Hn&30||tf(o,t,n)}a.memoizedState=n;var s={value:n,getSnapshot:t};return a.queue=s,uf(rf.bind(null,o,s,e),[e]),o.flags|=2048,ki(9,nf.bind(null,o,s,n,t),void 0,null),n},useId:function(){var e=Kt(),t=Xe.identifierPrefix;if(Le){var n=nn,o=tn;n=(o&~(1<<32-Lt(o)-1)).toString(32)+n,t=":"+t+"R"+n,n=Si++,0<\/script>",e=e.removeChild(e.firstChild)):typeof o.is=="string"?e=d.createElement(n,{is:o.is}):(e=d.createElement(n),n==="select"&&(d=e,o.multiple?d.multiple=!0:o.size&&(d.size=o.size))):e=d.createElementNS(e,n),e[Vt]=t,e[pi]=o,jf(e,t,!1,!1),t.stateNode=e;e:{switch(d=Wl(n,o),n){case"dialog":Ne("cancel",e),Ne("close",e),a=o;break;case"iframe":case"object":case"embed":Ne("load",e),a=o;break;case"video":case"audio":for(a=0;aEr&&(t.flags|=128,o=!0,Ci(s,!1),t.lanes=4194304)}else{if(!o)if(e=$o(d),e!==null){if(t.flags|=128,o=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Ci(s,!0),s.tail===null&&s.tailMode==="hidden"&&!d.alternate&&!Le)return rt(t),null}else 2*We()-s.renderingStartTime>Er&&n!==1073741824&&(t.flags|=128,o=!0,Ci(s,!1),t.lanes=4194304);s.isBackwards?(d.sibling=t.child,t.child=d):(n=s.last,n!==null?n.sibling=d:t.child=d,s.last=d)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=We(),t.sibling=null,n=Me.current,ze(Me,o?n&1|2:n&1),t):(rt(t),null);case 22:case 23:return Ss(),o=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==o&&(t.flags|=8192),o&&t.mode&1?St&1073741824&&(rt(t),t.subtreeFlags&6&&(t.flags|=8192)):rt(t),null;case 24:return null;case 25:return null}throw Error(l(156,t.tag))}function km(e,t){switch(Ra(t),t.tag){case 1:return ft(t.type)&&ko(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return xr(),$e(ct),$e(tt),Wa(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return ja(t),null;case 13:if($e(Me),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(l(340));yr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return $e(Me),null;case 4:return xr(),null;case 10:return La(t.type._context),null;case 22:case 23:return Ss(),null;case 24:return null;default:return null}}var Wo=!1,it=!1,Cm=typeof WeakSet=="function"?WeakSet:Set,q=null;function Cr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(o){Be(e,t,o)}else n.current=null}function ss(e,t,n){try{n()}catch(o){Be(e,t,o)}}var Uf=!1;function _m(e,t){if(Sa=ao,e=Sc(),da(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var o=n.getSelection&&n.getSelection();if(o&&o.rangeCount!==0){n=o.anchorNode;var a=o.anchorOffset,s=o.focusNode;o=o.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var d=0,m=-1,y=-1,E=0,L=0,I=e,A=null;t:for(;;){for(var Q;I!==n||a!==0&&I.nodeType!==3||(m=d+a),I!==s||o!==0&&I.nodeType!==3||(y=d+o),I.nodeType===3&&(d+=I.nodeValue.length),(Q=I.firstChild)!==null;)A=I,I=Q;for(;;){if(I===e)break t;if(A===n&&++E===a&&(m=d),A===s&&++L===o&&(y=d),(Q=I.nextSibling)!==null)break;I=A,A=I.parentNode}I=Q}n=m===-1||y===-1?null:{start:m,end:y}}else n=null}n=n||{start:0,end:0}}else n=null;for(xa={focusedElem:e,selectionRange:n},ao=!1,q=t;q!==null;)if(t=q,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,q=e;else for(;q!==null;){t=q;try{var J=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(J!==null){var ee=J.memoizedProps,Ue=J.memoizedState,x=t.stateNode,w=x.getSnapshotBeforeUpdate(t.elementType===t.type?ee:Dt(t.type,ee),Ue);x.__reactInternalSnapshotBeforeUpdate=w}break;case 3:var C=t.stateNode.containerInfo;C.nodeType===1?C.textContent="":C.nodeType===9&&C.documentElement&&C.removeChild(C.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(l(163))}}catch(B){Be(t,t.return,B)}if(e=t.sibling,e!==null){e.return=t.return,q=e;break}q=t.return}return J=Uf,Uf=!1,J}function _i(e,t,n){var o=t.updateQueue;if(o=o!==null?o.lastEffect:null,o!==null){var a=o=o.next;do{if((a.tag&e)===e){var s=a.destroy;a.destroy=void 0,s!==void 0&&ss(t,n,s)}a=a.next}while(a!==o)}}function Uo(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var o=n.create;n.destroy=o()}n=n.next}while(n!==t)}}function us(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Vf(e){var t=e.alternate;t!==null&&(e.alternate=null,Vf(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Vt],delete t[pi],delete t[Ea],delete t[lm],delete t[am])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Hf(e){return e.tag===5||e.tag===3||e.tag===4}function Kf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Hf(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function cs(e,t,n){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=So));else if(o!==4&&(e=e.child,e!==null))for(cs(e,t,n),e=e.sibling;e!==null;)cs(e,t,n),e=e.sibling}function fs(e,t,n){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(o!==4&&(e=e.child,e!==null))for(fs(e,t,n),e=e.sibling;e!==null;)fs(e,t,n),e=e.sibling}var Je=null,Bt=!1;function bn(e,t,n){for(n=n.child;n!==null;)Gf(e,t,n),n=n.sibling}function Gf(e,t,n){if(Ut&&typeof Ut.onCommitFiberUnmount=="function")try{Ut.onCommitFiberUnmount(to,n)}catch{}switch(n.tag){case 5:it||Cr(n,t);case 6:var o=Je,a=Bt;Je=null,bn(e,t,n),Je=o,Bt=a,Je!==null&&(Bt?(e=Je,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Je.removeChild(n.stateNode));break;case 18:Je!==null&&(Bt?(e=Je,n=n.stateNode,e.nodeType===8?_a(e.parentNode,n):e.nodeType===1&&_a(e,n),ni(e)):_a(Je,n.stateNode));break;case 4:o=Je,a=Bt,Je=n.stateNode.containerInfo,Bt=!0,bn(e,t,n),Je=o,Bt=a;break;case 0:case 11:case 14:case 15:if(!it&&(o=n.updateQueue,o!==null&&(o=o.lastEffect,o!==null))){a=o=o.next;do{var s=a,d=s.destroy;s=s.tag,d!==void 0&&(s&2||s&4)&&ss(n,t,d),a=a.next}while(a!==o)}bn(e,t,n);break;case 1:if(!it&&(Cr(n,t),o=n.stateNode,typeof o.componentWillUnmount=="function"))try{o.props=n.memoizedProps,o.state=n.memoizedState,o.componentWillUnmount()}catch(m){Be(n,t,m)}bn(e,t,n);break;case 21:bn(e,t,n);break;case 22:n.mode&1?(it=(o=it)||n.memoizedState!==null,bn(e,t,n),it=o):bn(e,t,n);break;default:bn(e,t,n)}}function Qf(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Cm),t.forEach(function(o){var a=$m.bind(null,e,o);n.has(o)||(n.add(o),o.then(a,a))})}}function jt(e,t){var n=t.deletions;if(n!==null)for(var o=0;oa&&(a=d),o&=~s}if(o=a,o=We()-o,o=(120>o?120:480>o?480:1080>o?1080:1920>o?1920:3e3>o?3e3:4320>o?4320:1960*Pm(o/1960))-o,10e?16:e,On===null)var o=!1;else{if(e=On,On=null,Qo=0,ge&6)throw Error(l(331));var a=ge;for(ge|=4,q=e.current;q!==null;){var s=q,d=s.child;if(q.flags&16){var m=s.deletions;if(m!==null){for(var y=0;yWe()-hs?Qn(e,0):ps|=n),ht(e,t)}function ad(e,t){t===0&&(e.mode&1?(t=ro,ro<<=1,!(ro&130023424)&&(ro=4194304)):t=1);var n=st();e=rn(e,t),e!==null&&(qr(e,t,n),ht(e,n))}function Nm(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),ad(e,n)}function $m(e,t){var n=0;switch(e.tag){case 13:var o=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:o=e.stateNode;break;default:throw Error(l(314))}o!==null&&o.delete(t),ad(e,n)}var sd;sd=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ct.current)dt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return dt=!1,Sm(e,t,n);dt=!!(e.flags&131072)}else dt=!1,Le&&t.flags&1048576&&jc(t,Po,t.index);switch(t.lanes=0,t.tag){case 2:var o=t.type;Fo(e,t),e=t.pendingProps;var a=hr(t,tt.current);Sr(t,n),a=Ha(null,t,o,e,a,n);var s=Ka();return t.flags|=1,typeof a=="object"&&a!==null&&typeof a.render=="function"&&a.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,ft(o)?(s=!0,Co(t)):s=!1,t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,Da(t),a.updater=Bo,t.stateNode=a,a._reactInternals=t,Ja(t,o,e,n),t=ns(null,t,o,!0,s,n)):(t.tag=0,Le&&s&&ba(t),at(null,t,a,n),t=t.child),t;case 16:o=t.elementType;e:{switch(Fo(e,t),e=t.pendingProps,a=o._init,o=a(o._payload),t.type=o,a=t.tag=Lm(o),e=Dt(o,e),a){case 0:t=ts(null,t,o,e,n);break e;case 1:t=Af(null,t,o,e,n);break e;case 11:t=Rf(null,t,o,e,n);break e;case 14:t=Of(null,t,o,Dt(o.type,e),n);break e}throw Error(l(306,o,""))}return t;case 0:return o=t.type,a=t.pendingProps,a=t.elementType===o?a:Dt(o,a),ts(e,t,o,a,n);case 1:return o=t.type,a=t.pendingProps,a=t.elementType===o?a:Dt(o,a),Af(e,t,o,a,n);case 3:e:{if(Lf(t),e===null)throw Error(l(387));o=t.pendingProps,s=t.memoizedState,a=s.element,Yc(e,t),No(t,o,null,n);var d=t.memoizedState;if(o=d.element,s.isDehydrated)if(s={element:o,isDehydrated:!1,cache:d.cache,pendingSuspenseBoundaries:d.pendingSuspenseBoundaries,transitions:d.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){a=kr(Error(l(423)),t),t=If(e,t,o,n,a);break e}else if(o!==a){a=kr(Error(l(424)),t),t=If(e,t,o,n,a);break e}else for(wt=kn(t.stateNode.containerInfo.firstChild),vt=t,Le=!0,Mt=null,n=Gc(t,null,o,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(yr(),o===a){t=ln(e,t,n);break e}at(e,t,o,n)}t=t.child}return t;case 5:return Jc(t),e===null&&za(t),o=t.type,a=t.pendingProps,s=e!==null?e.memoizedProps:null,d=a.children,ka(o,a)?d=null:s!==null&&ka(o,s)&&(t.flags|=32),$f(e,t),at(e,t,d,n),t.child;case 6:return e===null&&za(t),null;case 13:return Mf(e,t,n);case 4:return Ba(t,t.stateNode.containerInfo),o=t.pendingProps,e===null?t.child=vr(t,null,o,n):at(e,t,o,n),t.child;case 11:return o=t.type,a=t.pendingProps,a=t.elementType===o?a:Dt(o,a),Rf(e,t,o,a,n);case 7:return at(e,t,t.pendingProps,n),t.child;case 8:return at(e,t,t.pendingProps.children,n),t.child;case 12:return at(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(o=t.type._context,a=t.pendingProps,s=t.memoizedProps,d=a.value,ze(Ro,o._currentValue),o._currentValue=d,s!==null)if(It(s.value,d)){if(s.children===a.children&&!ct.current){t=ln(e,t,n);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var m=s.dependencies;if(m!==null){d=s.child;for(var y=m.firstContext;y!==null;){if(y.context===o){if(s.tag===1){y=on(-1,n&-n),y.tag=2;var E=s.updateQueue;if(E!==null){E=E.shared;var L=E.pending;L===null?y.next=y:(y.next=L.next,L.next=y),E.pending=y}}s.lanes|=n,y=s.alternate,y!==null&&(y.lanes|=n),Ia(s.return,n,t),m.lanes|=n;break}y=y.next}}else if(s.tag===10)d=s.type===t.type?null:s.child;else if(s.tag===18){if(d=s.return,d===null)throw Error(l(341));d.lanes|=n,m=d.alternate,m!==null&&(m.lanes|=n),Ia(d,n,t),d=s.sibling}else d=s.child;if(d!==null)d.return=s;else for(d=s;d!==null;){if(d===t){d=null;break}if(s=d.sibling,s!==null){s.return=d.return,d=s;break}d=d.return}s=d}at(e,t,a.children,n),t=t.child}return t;case 9:return a=t.type,o=t.pendingProps.children,Sr(t,n),a=Tt(a),o=o(a),t.flags|=1,at(e,t,o,n),t.child;case 14:return o=t.type,a=Dt(o,t.pendingProps),a=Dt(o.type,a),Of(e,t,o,a,n);case 15:return zf(e,t,t.type,t.pendingProps,n);case 17:return o=t.type,a=t.pendingProps,a=t.elementType===o?a:Dt(o,a),Fo(e,t),t.tag=1,ft(o)?(e=!0,Co(t)):e=!1,Sr(t,n),kf(t,o,a),Ja(t,o,a,n),ns(null,t,o,!0,e,n);case 19:return Bf(e,t,n);case 22:return Nf(e,t,n)}throw Error(l(156,t.tag))};function ud(e,t){return Fu(e,t)}function Am(e,t,n,o){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ot(e,t,n,o){return new Am(e,t,n,o)}function ks(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Lm(e){if(typeof e=="function")return ks(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ne)return 11;if(e===Te)return 14}return 2}function $n(e,t){var n=e.alternate;return n===null?(n=Ot(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Jo(e,t,n,o,a,s){var d=2;if(o=e,typeof e=="function")ks(e)&&(d=1);else if(typeof e=="string")d=5;else e:switch(e){case G:return Xn(n.children,a,s,t);case ce:d=8,a|=8;break;case ve:return e=Ot(12,n,t,a|2),e.elementType=ve,e.lanes=s,e;case oe:return e=Ot(13,n,t,a),e.elementType=oe,e.lanes=s,e;case pe:return e=Ot(19,n,t,a),e.elementType=pe,e.lanes=s,e;case we:return Zo(n,a,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case h:d=10;break e;case V:d=9;break e;case ne:d=11;break e;case Te:d=14;break e;case Ee:d=16,o=null;break e}throw Error(l(130,e==null?e:typeof e,""))}return t=Ot(d,n,t,a),t.elementType=e,t.type=o,t.lanes=s,t}function Xn(e,t,n,o){return e=Ot(7,e,o,t),e.lanes=n,e}function Zo(e,t,n,o){return e=Ot(22,e,o,t),e.elementType=we,e.lanes=n,e.stateNode={isHidden:!1},e}function Cs(e,t,n){return e=Ot(6,e,null,t),e.lanes=n,e}function _s(e,t,n){return t=Ot(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Im(e,t,n,o,a){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ql(0),this.expirationTimes=ql(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ql(0),this.identifierPrefix=o,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function Es(e,t,n,o,a,s,d,m,y){return e=new Im(e,t,n,m,y),t===1?(t=1,s===!0&&(t|=8)):t=0,s=Ot(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:o,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Da(s),e}function Mm(e,t,n){var o=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(i){console.error(i)}}return r(),zs.exports=Jm(),zs.exports}var Cd;function e0(){if(Cd)return ll;Cd=1;var r=Zm();return ll.createRoot=r.createRoot,ll.hydrateRoot=r.hydrateRoot,ll}var t0=e0();const Di={black:"#000",white:"#fff"},Tr={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},br={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},Rr={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},Or={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},zr={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},zi={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},n0={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};function Jn(r,...i){const l=new URL(`https://mui.com/production-error/?code=${r}`);return i.forEach(u=>l.searchParams.append("args[]",u)),`Minified MUI error #${r}; visit ${l} for the full message.`}const iu="$$material";function wl(){return wl=Object.assign?Object.assign.bind():function(r){for(var i=1;i0?et(Br,--gt):0,Dr--,Ke===10&&(Dr=1,El--),Ke}function Ct(){return Ke=gt2||ji(Ke)>3?"":" "}function y0(r,i){for(;--i&&Ct()&&!(Ke<48||Ke>102||Ke>57&&Ke<65||Ke>70&&Ke<97););return Wi(r,fl()+(i<6&&Jt()==32&&Ct()==32))}function Us(r){for(;Ct();)switch(Ke){case r:return gt;case 34:case 39:r!==34&&r!==39&&Us(Ke);break;case 40:r===41&&Us(r);break;case 92:Ct();break}return gt}function v0(r,i){for(;Ct()&&r+Ke!==57;)if(r+Ke===84&&Jt()===47)break;return"/*"+Wi(i,gt-1)+"*"+_l(r===47?r:Ct())}function w0(r){for(;!ji(Jt());)Ct();return Wi(r,gt)}function S0(r){return cp(pl("",null,null,null,[""],r=up(r),0,[0],r))}function pl(r,i,l,u,c,f,p,g,v){for(var k=0,P=0,_=p,b=0,D=0,z=0,O=1,M=1,H=1,Z=0,j="",$=c,T=f,F=u,G=j;M;)switch(z=Z,Z=Ct()){case 40:if(z!=108&&et(G,_-1)==58){Ws(G+=ke(dl(Z),"&","&\f"),"&\f")!=-1&&(H=-1);break}case 34:case 39:case 91:G+=dl(Z);break;case 9:case 10:case 13:case 32:G+=g0(z);break;case 92:G+=y0(fl()-1,7);continue;case 47:switch(Jt()){case 42:case 47:al(x0(v0(Ct(),fl()),i,l),v);break;default:G+="/"}break;case 123*O:g[k++]=Yt(G)*H;case 125*O:case 59:case 0:switch(Z){case 0:case 125:M=0;case 59+P:H==-1&&(G=ke(G,/\f/g,"")),D>0&&Yt(G)-_&&al(D>32?Pd(G+";",u,l,_-1):Pd(ke(G," ","")+";",u,l,_-2),v);break;case 59:G+=";";default:if(al(F=Ed(G,i,l,k,P,c,g,j,$=[],T=[],_),f),Z===123)if(P===0)pl(G,i,F,F,$,f,_,g,T);else switch(b===99&&et(G,3)===110?100:b){case 100:case 108:case 109:case 115:pl(r,F,F,u&&al(Ed(r,F,F,0,0,c,g,j,c,$=[],_),T),c,T,_,g,u?$:T);break;default:pl(G,F,F,F,[""],T,0,g,T)}}k=P=D=0,O=H=1,j=G="",_=p;break;case 58:_=1+Yt(G),D=z;default:if(O<1){if(Z==123)--O;else if(Z==125&&O++==0&&m0()==125)continue}switch(G+=_l(Z),Z*O){case 38:H=P>0?1:(G+="\f",-1);break;case 44:g[k++]=(Yt(G)-1)*H,H=1;break;case 64:Jt()===45&&(G+=dl(Ct())),b=Jt(),P=_=Yt(j=G+=w0(fl())),Z++;break;case 45:z===45&&Yt(G)==2&&(O=0)}}return f}function Ed(r,i,l,u,c,f,p,g,v,k,P){for(var _=c-1,b=c===0?f:[""],D=au(b),z=0,O=0,M=0;z0?b[H]+" "+Z:ke(Z,/&\f/g,b[H])))&&(v[M++]=j);return Pl(r,i,l,c===0?ou:g,v,k,P)}function x0(r,i,l){return Pl(r,i,l,op,_l(h0()),Bi(r,2,-2),0)}function Pd(r,i,l,u){return Pl(r,i,l,lu,Bi(r,0,u),Bi(r,u+1,-1),u)}function Ir(r,i){for(var l="",u=au(r),c=0;c6)switch(et(r,i+1)){case 109:if(et(r,i+4)!==45)break;case 102:return ke(r,/(.+:)(.+)-([^]+)/,"$1"+xe+"$2-$3$1"+Sl+(et(r,i+3)==108?"$3":"$2-$3"))+r;case 115:return~Ws(r,"stretch")?dp(ke(r,"stretch","fill-available"),i)+r:r}break;case 4949:if(et(r,i+1)!==115)break;case 6444:switch(et(r,Yt(r)-3-(~Ws(r,"!important")&&10))){case 107:return ke(r,":",":"+xe)+r;case 101:return ke(r,/(.+:)([^;!]+)(;|!.+)?/,"$1"+xe+(et(r,14)===45?"inline-":"")+"box$3$1"+xe+"$2$3$1"+ot+"$2box$3")+r}break;case 5936:switch(et(r,i+11)){case 114:return xe+r+ot+ke(r,/[svh]\w+-[tblr]{2}/,"tb")+r;case 108:return xe+r+ot+ke(r,/[svh]\w+-[tblr]{2}/,"tb-rl")+r;case 45:return xe+r+ot+ke(r,/[svh]\w+-[tblr]{2}/,"lr")+r}return xe+r+ot+r+r}return r}var O0=function(i,l,u,c){if(i.length>-1&&!i.return)switch(i.type){case lu:i.return=dp(i.value,i.length);break;case lp:return Ir([Ni(i,{value:ke(i.value,"@","@"+xe)})],c);case ou:if(i.length)return p0(i.props,function(f){switch(d0(f,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ir([Ni(i,{props:[ke(f,/:(read-\w+)/,":"+Sl+"$1")]})],c);case"::placeholder":return Ir([Ni(i,{props:[ke(f,/:(plac\w+)/,":"+xe+"input-$1")]}),Ni(i,{props:[ke(f,/:(plac\w+)/,":"+Sl+"$1")]}),Ni(i,{props:[ke(f,/:(plac\w+)/,ot+"input-$1")]})],c)}return""})}},z0=[O0],N0=function(i){var l=i.key;if(l==="css"){var u=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(u,function(O){var M=O.getAttribute("data-emotion");M.indexOf(" ")!==-1&&(document.head.appendChild(O),O.setAttribute("data-s",""))})}var c=i.stylisPlugins||z0,f={},p,g=[];p=i.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+l+' "]'),function(O){for(var M=O.getAttribute("data-emotion").split(" "),H=1;H=4;++u,c-=4)l=r.charCodeAt(u)&255|(r.charCodeAt(++u)&255)<<8|(r.charCodeAt(++u)&255)<<16|(r.charCodeAt(++u)&255)<<24,l=(l&65535)*1540483477+((l>>>16)*59797<<16),l^=l>>>24,i=(l&65535)*1540483477+((l>>>16)*59797<<16)^(i&65535)*1540483477+((i>>>16)*59797<<16);switch(c){case 3:i^=(r.charCodeAt(u+2)&255)<<16;case 2:i^=(r.charCodeAt(u+1)&255)<<8;case 1:i^=r.charCodeAt(u)&255,i=(i&65535)*1540483477+((i>>>16)*59797<<16)}return i^=i>>>13,i=(i&65535)*1540483477+((i>>>16)*59797<<16),((i^i>>>15)>>>0).toString(36)}var D0={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},B0=!1,j0=/[A-Z]|^ms/g,F0=/_EMO_([^_]+?)_([^]*?)_EMO_/g,hp=function(i){return i.charCodeAt(1)===45},zd=function(i){return i!=null&&typeof i!="boolean"},Is=fp(function(r){return hp(r)?r:r.replace(j0,"-$&").toLowerCase()}),Nd=function(i,l){switch(i){case"animation":case"animationName":if(typeof l=="string")return l.replace(F0,function(u,c,f){return Xt={name:c,styles:f,next:Xt},c})}return D0[i]!==1&&!hp(i)&&typeof l=="number"&&l!==0?l+"px":l},W0="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Fi(r,i,l){if(l==null)return"";var u=l;if(u.__emotion_styles!==void 0)return u;switch(typeof l){case"boolean":return"";case"object":{var c=l;if(c.anim===1)return Xt={name:c.name,styles:c.styles,next:Xt},c.name;var f=l;if(f.styles!==void 0){var p=f.next;if(p!==void 0)for(;p!==void 0;)Xt={name:p.name,styles:p.styles,next:Xt},p=p.next;var g=f.styles+";";return g}return U0(r,i,l)}case"function":{if(r!==void 0){var v=Xt,k=l(r);return Xt=v,Fi(r,i,k)}break}}var P=l;if(i==null)return P;var _=i[P];return _!==void 0?_:P}function U0(r,i,l){var u="";if(Array.isArray(l))for(var c=0;c96?eg:tg},Md=function(i,l,u){var c;if(l){var f=l.shouldForwardProp;c=i.__emotion_forwardProp&&f?function(p){return i.__emotion_forwardProp(p)&&f(p)}:f}return typeof c!="function"&&u&&(c=i.__emotion_forwardProp),c},ng=function(i){var l=i.cache,u=i.serialized,c=i.isStringTag;return su(l,u,c),gp(function(){return uu(l,u,c)}),null},rg=function r(i,l){var u=i.__emotion_real===i,c=u&&i.__emotion_base||i,f,p;l!==void 0&&(f=l.label,p=l.target);var g=Md(i,l,u),v=g||Id(c),k=!v("as");return function(){var P=arguments,_=u&&i.__emotion_styles!==void 0?i.__emotion_styles.slice(0):[];if(f!==void 0&&_.push("label:"+f+";"),P[0]==null||P[0].raw===void 0)_.push.apply(_,P);else{var b=P[0];_.push(b[0]);for(var D=P.length,z=1;zi(og(c)?l:c):i;return le.jsx(X0,{styles:u})}/** + * @mui/styled-engine v6.2.0 + * + * @license MIT + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */function vp(r,i){return Hs(r,i)}function ag(r,i){Array.isArray(r.__emotion_styles)&&(r.__emotion_styles=i(r.__emotion_styles))}const Dd=[];function Bd(r){return Dd[0]=r,Ui(Dd)}function qt(r){if(typeof r!="object"||r===null)return!1;const i=Object.getPrototypeOf(r);return(i===null||i===Object.prototype||Object.getPrototypeOf(i)===null)&&!(Symbol.toStringTag in r)&&!(Symbol.iterator in r)}function wp(r){if(U.isValidElement(r)||!qt(r))return r;const i={};return Object.keys(r).forEach(l=>{i[l]=wp(r[l])}),i}function _t(r,i,l={clone:!0}){const u=l.clone?{...r}:r;return qt(r)&&qt(i)&&Object.keys(i).forEach(c=>{U.isValidElement(i[c])?u[c]=i[c]:qt(i[c])&&Object.prototype.hasOwnProperty.call(r,c)&&qt(r[c])?u[c]=_t(r[c],i[c],l):l.clone?u[c]=qt(i[c])?wp(i[c]):i[c]:u[c]=i[c]}),u}const sg=r=>{const i=Object.keys(r).map(l=>({key:l,val:r[l]}))||[];return i.sort((l,u)=>l.val-u.val),i.reduce((l,u)=>({...l,[u.key]:u.val}),{})};function ug(r){const{values:i={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:l="px",step:u=5,...c}=r,f=sg(i),p=Object.keys(f);function g(b){return`@media (min-width:${typeof i[b]=="number"?i[b]:b}${l})`}function v(b){return`@media (max-width:${(typeof i[b]=="number"?i[b]:b)-u/100}${l})`}function k(b,D){const z=p.indexOf(D);return`@media (min-width:${typeof i[b]=="number"?i[b]:b}${l}) and (max-width:${(z!==-1&&typeof i[p[z]]=="number"?i[p[z]]:D)-u/100}${l})`}function P(b){return p.indexOf(b)+1u.startsWith("@container")).sort((u,c)=>{var p,g;const f=/min-width:\s*([0-9.]+)/;return+(((p=u.match(f))==null?void 0:p[1])||0)-+(((g=c.match(f))==null?void 0:g[1])||0)});return l.length?l.reduce((u,c)=>{const f=i[c];return delete u[c],u[c]=f,u},{...i}):i}function fg(r,i){return i==="@"||i.startsWith("@")&&(r.some(l=>i.startsWith(`@${l}`))||!!i.match(/^@\d/))}function dg(r,i){const l=i.match(/^@([^/]+)?\/?(.+)?$/);if(!l)return null;const[,u,c]=l,f=Number.isNaN(+u)?u||0:+u;return r.containerQueries(c).up(f)}function pg(r){const i=(f,p)=>f.replace("@media",p?`@container ${p}`:"@container");function l(f,p){f.up=(...g)=>i(r.breakpoints.up(...g),p),f.down=(...g)=>i(r.breakpoints.down(...g),p),f.between=(...g)=>i(r.breakpoints.between(...g),p),f.only=(...g)=>i(r.breakpoints.only(...g),p),f.not=(...g)=>{const v=i(r.breakpoints.not(...g),p);return v.includes("not all and")?v.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):v}}const u={},c=f=>(l(u,f),u);return l(c),{...r,containerQueries:c}}const hg={borderRadius:4};function Li(r,i){return i?_t(r,i,{clone:!1}):r}const Rl={xs:0,sm:600,md:900,lg:1200,xl:1536},jd={keys:["xs","sm","md","lg","xl"],up:r=>`@media (min-width:${Rl[r]}px)`},mg={containerQueries:r=>({up:i=>{let l=typeof i=="number"?i:Rl[i]||i;return typeof l=="number"&&(l=`${l}px`),r?`@container ${r} (min-width:${l})`:`@container (min-width:${l})`}})};function fn(r,i,l){const u=r.theme||{};if(Array.isArray(i)){const f=u.breakpoints||jd;return i.reduce((p,g,v)=>(p[f.up(f.keys[v])]=l(i[v]),p),{})}if(typeof i=="object"){const f=u.breakpoints||jd;return Object.keys(i).reduce((p,g)=>{if(fg(f.keys,g)){const v=dg(u.containerQueries?u:mg,g);v&&(p[v]=l(i[g],g))}else if(Object.keys(f.values||Rl).includes(g)){const v=f.up(g);p[v]=l(i[g],g)}else{const v=g;p[v]=i[v]}return p},{})}return l(i)}function gg(r={}){var l;return((l=r.keys)==null?void 0:l.reduce((u,c)=>{const f=r.up(c);return u[f]={},u},{}))||{}}function yg(r,i){return r.reduce((l,u)=>{const c=l[u];return(!c||Object.keys(c).length===0)&&delete l[u],l},i)}function Ae(r){if(typeof r!="string")throw new Error(Jn(7));return r.charAt(0).toUpperCase()+r.slice(1)}function Ol(r,i,l=!0){if(!i||typeof i!="string")return null;if(r&&r.vars&&l){const u=`vars.${i}`.split(".").reduce((c,f)=>c&&c[f]?c[f]:null,r);if(u!=null)return u}return i.split(".").reduce((u,c)=>u&&u[c]!=null?u[c]:null,r)}function xl(r,i,l,u=l){let c;return typeof r=="function"?c=r(l):Array.isArray(r)?c=r[l]||u:c=Ol(r,l)||u,i&&(c=i(c,u,r)),c}function Ve(r){const{prop:i,cssProperty:l=r.prop,themeKey:u,transform:c}=r,f=p=>{if(p[i]==null)return null;const g=p[i],v=p.theme,k=Ol(v,u)||{};return fn(p,g,_=>{let b=xl(k,c,_);return _===b&&typeof _=="string"&&(b=xl(k,c,`${i}${_==="default"?"":Ae(_)}`,_)),l===!1?b:{[l]:b}})};return f.propTypes={},f.filterProps=[i],f}function vg(r){const i={};return l=>(i[l]===void 0&&(i[l]=r(l)),i[l])}const wg={m:"margin",p:"padding"},Sg={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Fd={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},xg=vg(r=>{if(r.length>2)if(Fd[r])r=Fd[r];else return[r];const[i,l]=r.split(""),u=wg[i],c=Sg[l]||"";return Array.isArray(c)?c.map(f=>u+f):[u+c]}),du=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],pu=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...du,...pu];function Vi(r,i,l,u){const c=Ol(r,i,!0)??l;return typeof c=="number"||typeof c=="string"?f=>typeof f=="string"?f:typeof c=="string"?`calc(${f} * ${c})`:c*f:Array.isArray(c)?f=>{if(typeof f=="string")return f;const p=Math.abs(f),g=c[p];return f>=0?g:typeof g=="number"?-g:`-${g}`}:typeof c=="function"?c:()=>{}}function hu(r){return Vi(r,"spacing",8)}function Hi(r,i){return typeof i=="string"||i==null?i:r(i)}function kg(r,i){return l=>r.reduce((u,c)=>(u[c]=Hi(i,l),u),{})}function Cg(r,i,l,u){if(!i.includes(l))return null;const c=xg(l),f=kg(c,u),p=r[l];return fn(r,p,f)}function Sp(r,i){const l=hu(r.theme);return Object.keys(r).map(u=>Cg(r,i,u,l)).reduce(Li,{})}function je(r){return Sp(r,du)}je.propTypes={};je.filterProps=du;function Fe(r){return Sp(r,pu)}Fe.propTypes={};Fe.filterProps=pu;function xp(r=8,i=hu({spacing:r})){if(r.mui)return r;const l=(...u)=>(u.length===0?[1]:u).map(f=>{const p=i(f);return typeof p=="number"?`${p}px`:p}).join(" ");return l.mui=!0,l}function zl(...r){const i=r.reduce((u,c)=>(c.filterProps.forEach(f=>{u[f]=c}),u),{}),l=u=>Object.keys(u).reduce((c,f)=>i[f]?Li(c,i[f](u)):c,{});return l.propTypes={},l.filterProps=r.reduce((u,c)=>u.concat(c.filterProps),[]),l}function Nt(r){return typeof r!="number"?r:`${r}px solid`}function At(r,i){return Ve({prop:r,themeKey:"borders",transform:i})}const _g=At("border",Nt),Eg=At("borderTop",Nt),Pg=At("borderRight",Nt),Tg=At("borderBottom",Nt),bg=At("borderLeft",Nt),Rg=At("borderColor"),Og=At("borderTopColor"),zg=At("borderRightColor"),Ng=At("borderBottomColor"),$g=At("borderLeftColor"),Ag=At("outline",Nt),Lg=At("outlineColor"),Nl=r=>{if(r.borderRadius!==void 0&&r.borderRadius!==null){const i=Vi(r.theme,"shape.borderRadius",4),l=u=>({borderRadius:Hi(i,u)});return fn(r,r.borderRadius,l)}return null};Nl.propTypes={};Nl.filterProps=["borderRadius"];zl(_g,Eg,Pg,Tg,bg,Rg,Og,zg,Ng,$g,Nl,Ag,Lg);const $l=r=>{if(r.gap!==void 0&&r.gap!==null){const i=Vi(r.theme,"spacing",8),l=u=>({gap:Hi(i,u)});return fn(r,r.gap,l)}return null};$l.propTypes={};$l.filterProps=["gap"];const Al=r=>{if(r.columnGap!==void 0&&r.columnGap!==null){const i=Vi(r.theme,"spacing",8),l=u=>({columnGap:Hi(i,u)});return fn(r,r.columnGap,l)}return null};Al.propTypes={};Al.filterProps=["columnGap"];const Ll=r=>{if(r.rowGap!==void 0&&r.rowGap!==null){const i=Vi(r.theme,"spacing",8),l=u=>({rowGap:Hi(i,u)});return fn(r,r.rowGap,l)}return null};Ll.propTypes={};Ll.filterProps=["rowGap"];const Ig=Ve({prop:"gridColumn"}),Mg=Ve({prop:"gridRow"}),Dg=Ve({prop:"gridAutoFlow"}),Bg=Ve({prop:"gridAutoColumns"}),jg=Ve({prop:"gridAutoRows"}),Fg=Ve({prop:"gridTemplateColumns"}),Wg=Ve({prop:"gridTemplateRows"}),Ug=Ve({prop:"gridTemplateAreas"}),Vg=Ve({prop:"gridArea"});zl($l,Al,Ll,Ig,Mg,Dg,Bg,jg,Fg,Wg,Ug,Vg);function Mr(r,i){return i==="grey"?i:r}const Hg=Ve({prop:"color",themeKey:"palette",transform:Mr}),Kg=Ve({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Mr}),Gg=Ve({prop:"backgroundColor",themeKey:"palette",transform:Mr});zl(Hg,Kg,Gg);function kt(r){return r<=1&&r!==0?`${r*100}%`:r}const Qg=Ve({prop:"width",transform:kt}),mu=r=>{if(r.maxWidth!==void 0&&r.maxWidth!==null){const i=l=>{var c,f,p,g,v;const u=((p=(f=(c=r.theme)==null?void 0:c.breakpoints)==null?void 0:f.values)==null?void 0:p[l])||Rl[l];return u?((v=(g=r.theme)==null?void 0:g.breakpoints)==null?void 0:v.unit)!=="px"?{maxWidth:`${u}${r.theme.breakpoints.unit}`}:{maxWidth:u}:{maxWidth:kt(l)}};return fn(r,r.maxWidth,i)}return null};mu.filterProps=["maxWidth"];const Yg=Ve({prop:"minWidth",transform:kt}),Xg=Ve({prop:"height",transform:kt}),qg=Ve({prop:"maxHeight",transform:kt}),Jg=Ve({prop:"minHeight",transform:kt});Ve({prop:"size",cssProperty:"width",transform:kt});Ve({prop:"size",cssProperty:"height",transform:kt});const Zg=Ve({prop:"boxSizing"});zl(Qg,mu,Yg,Xg,qg,Jg,Zg);const Ki={border:{themeKey:"borders",transform:Nt},borderTop:{themeKey:"borders",transform:Nt},borderRight:{themeKey:"borders",transform:Nt},borderBottom:{themeKey:"borders",transform:Nt},borderLeft:{themeKey:"borders",transform:Nt},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Nt},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Nl},color:{themeKey:"palette",transform:Mr},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Mr},backgroundColor:{themeKey:"palette",transform:Mr},p:{style:Fe},pt:{style:Fe},pr:{style:Fe},pb:{style:Fe},pl:{style:Fe},px:{style:Fe},py:{style:Fe},padding:{style:Fe},paddingTop:{style:Fe},paddingRight:{style:Fe},paddingBottom:{style:Fe},paddingLeft:{style:Fe},paddingX:{style:Fe},paddingY:{style:Fe},paddingInline:{style:Fe},paddingInlineStart:{style:Fe},paddingInlineEnd:{style:Fe},paddingBlock:{style:Fe},paddingBlockStart:{style:Fe},paddingBlockEnd:{style:Fe},m:{style:je},mt:{style:je},mr:{style:je},mb:{style:je},ml:{style:je},mx:{style:je},my:{style:je},margin:{style:je},marginTop:{style:je},marginRight:{style:je},marginBottom:{style:je},marginLeft:{style:je},marginX:{style:je},marginY:{style:je},marginInline:{style:je},marginInlineStart:{style:je},marginInlineEnd:{style:je},marginBlock:{style:je},marginBlockStart:{style:je},marginBlockEnd:{style:je},displayPrint:{cssProperty:!1,transform:r=>({"@media print":{display:r}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:$l},rowGap:{style:Ll},columnGap:{style:Al},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:kt},maxWidth:{style:mu},minWidth:{transform:kt},height:{transform:kt},maxHeight:{transform:kt},minHeight:{transform:kt},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function ey(...r){const i=r.reduce((u,c)=>u.concat(Object.keys(c)),[]),l=new Set(i);return r.every(u=>l.size===Object.keys(u).length)}function ty(r,i){return typeof r=="function"?r(i):r}function ny(){function r(l,u,c,f){const p={[l]:u,theme:c},g=f[l];if(!g)return{[l]:u};const{cssProperty:v=l,themeKey:k,transform:P,style:_}=g;if(u==null)return null;if(k==="typography"&&u==="inherit")return{[l]:u};const b=Ol(c,k)||{};return _?_(p):fn(p,u,z=>{let O=xl(b,P,z);return z===O&&typeof z=="string"&&(O=xl(b,P,`${l}${z==="default"?"":Ae(z)}`,z)),v===!1?O:{[v]:O}})}function i(l){const{sx:u,theme:c={}}=l||{};if(!u)return null;const f=c.unstable_sxConfig??Ki;function p(g){let v=g;if(typeof g=="function")v=g(c);else if(typeof g!="object")return g;if(!v)return null;const k=gg(c.breakpoints),P=Object.keys(k);let _=k;return Object.keys(v).forEach(b=>{const D=ty(v[b],c);if(D!=null)if(typeof D=="object")if(f[b])_=Li(_,r(b,D,c,f));else{const z=fn({theme:c},D,O=>({[b]:O}));ey(z,D)?_[b]=i({sx:D,theme:c}):_=Li(_,z)}else _=Li(_,r(b,D,c,f))}),cg(c,yg(P,_))}return Array.isArray(u)?u.map(p):p(u)}return i}const Zn=ny();Zn.filterProps=["sx"];function ry(r,i){var u;const l=this;if(l.vars){if(!((u=l.colorSchemes)!=null&&u[r])||typeof l.getColorSchemeSelector!="function")return{};let c=l.getColorSchemeSelector(r);return c==="&"?i:((c.includes("data-")||c.includes("."))&&(c=`*:where(${c.replace(/\s*&$/,"")}) &`),{[c]:i})}return l.palette.mode===r?i:{}}function gu(r={},...i){const{breakpoints:l={},palette:u={},spacing:c,shape:f={},...p}=r,g=ug(l),v=xp(c);let k=_t({breakpoints:g,direction:"ltr",components:{},palette:{mode:"light",...u},spacing:v,shape:{...hg,...f}},p);return k=pg(k),k.applyStyles=ry,k=i.reduce((P,_)=>_t(P,_),k),k.unstable_sxConfig={...Ki,...p==null?void 0:p.unstable_sxConfig},k.unstable_sx=function(_){return Zn({sx:_,theme:this})},k}function iy(r){return Object.keys(r).length===0}function oy(r=null){const i=U.useContext(Tl);return!i||iy(i)?r:i}const ly=gu();function kp(r=ly){return oy(r)}function ay({styles:r,themeId:i,defaultTheme:l={}}){const u=kp(l),c=typeof r=="function"?r(i&&u[i]||u):r;return le.jsx(lg,{styles:c})}const sy=r=>{var u;const i={systemProps:{},otherProps:{}},l=((u=r==null?void 0:r.theme)==null?void 0:u.unstable_sxConfig)??Ki;return Object.keys(r).forEach(c=>{l[c]?i.systemProps[c]=r[c]:i.otherProps[c]=r[c]}),i};function Cp(r){const{sx:i,...l}=r,{systemProps:u,otherProps:c}=sy(l);let f;return Array.isArray(i)?f=[u,...i]:typeof i=="function"?f=(...p)=>{const g=i(...p);return qt(g)?{...u,...g}:u}:f={...u,...i},{...c,sx:f}}const Wd=r=>r,uy=()=>{let r=Wd;return{configure(i){r=i},generate(i){return r(i)},reset(){r=Wd}}},_p=uy();function Ep(r){var i,l,u="";if(typeof r=="string"||typeof r=="number")u+=r;else if(typeof r=="object")if(Array.isArray(r)){var c=r.length;for(i=0;ig!=="theme"&&g!=="sx"&&g!=="as"})(Zn);return U.forwardRef(function(v,k){const P=kp(l),{className:_,component:b="div",...D}=Cp(v);return le.jsx(f,{as:b,ref:k,className:ut(_,c?c(u):u),theme:i&&P[i]||P,...D})})}const fy={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Gi(r,i,l="Mui"){const u=fy[i];return u?`${l}-${u}`:`${_p.generate(r)}-${i}`}function Fr(r,i,l="Mui"){const u={};return i.forEach(c=>{u[c]=Gi(r,c,l)}),u}function Pp(r){const{variants:i,...l}=r,u={variants:i,style:Bd(l),isProcessed:!0};return u.style===l||i&&i.forEach(c=>{typeof c.style!="function"&&(c.style=Bd(c.style))}),u}const dy=gu();function Ms(r){return r!=="ownerState"&&r!=="theme"&&r!=="sx"&&r!=="as"}function py(r){return r?(i,l)=>l[r]:null}function hy(r,i,l){r.theme=yy(r.theme)?l:r.theme[i]||r.theme}function hl(r,i){const l=typeof i=="function"?i(r):i;if(Array.isArray(l))return l.flatMap(u=>hl(r,u));if(Array.isArray(l==null?void 0:l.variants)){let u;if(l.isProcessed)u=l.style;else{const{variants:c,...f}=l;u=f}return Tp(r,l.variants,[u])}return l!=null&&l.isProcessed?l.style:l}function Tp(r,i,l=[]){var c;let u;e:for(let f=0;f{ag(g,T=>T.filter(F=>F!==Zn));const{name:k,slot:P,skipVariantsResolver:_,skipSx:b,overridesResolver:D=py(wy(P)),...z}=v,O=_!==void 0?_:P&&P!=="Root"&&P!=="root"||!1,M=b||!1;let H=Ms;P==="Root"||P==="root"?H=u:P?H=c:vy(g)&&(H=void 0);const Z=vp(g,{shouldForwardProp:H,label:gy(),...z}),j=T=>{if(typeof T=="function"&&T.__emotion_real!==T)return function(G){return hl(G,T)};if(qt(T)){const F=Pp(T);return F.variants?function(ce){return hl(ce,F)}:F.style}return T},$=(...T)=>{const F=[],G=T.map(j),ce=[];if(F.push(f),k&&D&&ce.push(function(ne){var Ee,we;const pe=(we=(Ee=ne.theme.components)==null?void 0:Ee[k])==null?void 0:we.styleOverrides;if(!pe)return null;const Te={};for(const W in pe)Te[W]=hl(ne,pe[W]);return D(ne,Te)}),k&&!O&&ce.push(function(ne){var Te,Ee;const oe=ne.theme,pe=(Ee=(Te=oe==null?void 0:oe.components)==null?void 0:Te[k])==null?void 0:Ee.variants;return pe?Tp(ne,pe):null}),M||ce.push(Zn),Array.isArray(G[0])){const V=G.shift(),ne=new Array(F.length).fill(""),oe=new Array(ce.length).fill("");let pe;pe=[...ne,...V,...oe],pe.raw=[...ne,...V.raw,...oe],F.unshift(pe)}const ve=[...F,...G,...ce],h=Z(...ve);return g.muiName&&(h.muiName=g.muiName),h};return Z.withConfig&&($.withConfig=Z.withConfig),$}}function gy(r,i){return void 0}function yy(r){for(const i in r)return!1;return!0}function vy(r){return typeof r=="string"&&r.charCodeAt(0)>96}function wy(r){return r&&r.charAt(0).toLowerCase()+r.slice(1)}function kl(r,i){const l={...i};for(const u in r)if(Object.prototype.hasOwnProperty.call(r,u)){const c=u;if(c==="components"||c==="slots")l[c]={...r[c],...l[c]};else if(c==="componentsProps"||c==="slotProps"){const f=r[c],p=i[c];if(!p)l[c]=f||{};else if(!f)l[c]=p;else{l[c]={...p};for(const g in f)if(Object.prototype.hasOwnProperty.call(f,g)){const v=g;l[c][v]=kl(f[v],p[v])}}}else l[c]===void 0&&(l[c]=r[c])}return l}const Sy=typeof window<"u"?U.useLayoutEffect:U.useEffect;function xy(r,i=Number.MIN_SAFE_INTEGER,l=Number.MAX_SAFE_INTEGER){return Math.max(i,Math.min(r,l))}function yu(r,i=0,l=1){return xy(r,i,l)}function ky(r){r=r.slice(1);const i=new RegExp(`.{1,${r.length>=6?2:1}}`,"g");let l=r.match(i);return l&&l[0].length===1&&(l=l.map(u=>u+u)),l?`rgb${l.length===4?"a":""}(${l.map((u,c)=>c<3?parseInt(u,16):Math.round(parseInt(u,16)/255*1e3)/1e3).join(", ")})`:""}function In(r){if(r.type)return r;if(r.charAt(0)==="#")return In(ky(r));const i=r.indexOf("("),l=r.substring(0,i);if(!["rgb","rgba","hsl","hsla","color"].includes(l))throw new Error(Jn(9,r));let u=r.substring(i+1,r.length-1),c;if(l==="color"){if(u=u.split(" "),c=u.shift(),u.length===4&&u[3].charAt(0)==="/"&&(u[3]=u[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(c))throw new Error(Jn(10,c))}else u=u.split(",");return u=u.map(f=>parseFloat(f)),{type:l,values:u,colorSpace:c}}const Cy=r=>{const i=In(r);return i.values.slice(0,3).map((l,u)=>i.type.includes("hsl")&&u!==0?`${l}%`:l).join(" ")},$i=(r,i)=>{try{return Cy(r)}catch{return r}};function Il(r){const{type:i,colorSpace:l}=r;let{values:u}=r;return i.includes("rgb")?u=u.map((c,f)=>f<3?parseInt(c,10):c):i.includes("hsl")&&(u[1]=`${u[1]}%`,u[2]=`${u[2]}%`),i.includes("color")?u=`${l} ${u.join(" ")}`:u=`${u.join(", ")}`,`${i}(${u})`}function bp(r){r=In(r);const{values:i}=r,l=i[0],u=i[1]/100,c=i[2]/100,f=u*Math.min(c,1-c),p=(k,P=(k+l/30)%12)=>c-f*Math.max(Math.min(P-3,9-P,1),-1);let g="rgb";const v=[Math.round(p(0)*255),Math.round(p(8)*255),Math.round(p(4)*255)];return r.type==="hsla"&&(g+="a",v.push(i[3])),Il({type:g,values:v})}function Ks(r){r=In(r);let i=r.type==="hsl"||r.type==="hsla"?In(bp(r)).values:r.values;return i=i.map(l=>(r.type!=="color"&&(l/=255),l<=.03928?l/12.92:((l+.055)/1.055)**2.4)),Number((.2126*i[0]+.7152*i[1]+.0722*i[2]).toFixed(3))}function _y(r,i){const l=Ks(r),u=Ks(i);return(Math.max(l,u)+.05)/(Math.min(l,u)+.05)}function Ar(r,i){return r=In(r),i=yu(i),(r.type==="rgb"||r.type==="hsl")&&(r.type+="a"),r.type==="color"?r.values[3]=`/${i}`:r.values[3]=i,Il(r)}function sl(r,i,l){try{return Ar(r,i)}catch{return r}}function Ml(r,i){if(r=In(r),i=yu(i),r.type.includes("hsl"))r.values[2]*=1-i;else if(r.type.includes("rgb")||r.type.includes("color"))for(let l=0;l<3;l+=1)r.values[l]*=1-i;return Il(r)}function be(r,i,l){try{return Ml(r,i)}catch{return r}}function Dl(r,i){if(r=In(r),i=yu(i),r.type.includes("hsl"))r.values[2]+=(100-r.values[2])*i;else if(r.type.includes("rgb"))for(let l=0;l<3;l+=1)r.values[l]+=(255-r.values[l])*i;else if(r.type.includes("color"))for(let l=0;l<3;l+=1)r.values[l]+=(1-r.values[l])*i;return Il(r)}function Re(r,i,l){try{return Dl(r,i)}catch{return r}}function Ey(r,i=.15){return Ks(r)>.5?Ml(r,i):Dl(r,i)}function ul(r,i,l){try{return Ey(r,i)}catch{return r}}function Py(r,i){typeof r=="function"?r(i):r&&(r.current=i)}function ml(r){const i=U.useRef(r);return Sy(()=>{i.current=r}),U.useRef((...l)=>(0,i.current)(...l)).current}function Ud(...r){return U.useMemo(()=>r.every(i=>i==null)?null:i=>{r.forEach(l=>{Py(l,i)})},r)}const Vd={};function Rp(r,i){const l=U.useRef(Vd);return l.current===Vd&&(l.current=r(i)),l}const Ty=[];function by(r){U.useEffect(r,Ty)}class vu{constructor(){Ri(this,"currentId",null);Ri(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});Ri(this,"disposeEffect",()=>this.clear)}static create(){return new vu}start(i,l){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,l()},i)}}function Ry(){const r=Rp(vu.create).current;return by(r.disposeEffect),r}function Hd(r){try{return r.matches(":focus-visible")}catch{}return!1}function Bl(r,i,l=void 0){const u={};for(const c in r){const f=r[c];let p="",g=!0;for(let v=0;vU.useContext(Oy)??!1,Ny=U.createContext(void 0);function $y(r){const{theme:i,name:l,props:u}=r;if(!i||!i.components||!i.components[l])return u;const c=i.components[l];return c.defaultProps?kl(c.defaultProps,u):!c.styleOverrides&&!c.variants?kl(c,u):u}function Ay({props:r,name:i}){const l=U.useContext(Ny);return $y({props:r,name:i,theme:{components:l}})}const Kd={theme:void 0};function Ly(r){let i,l;return function(c){let f=i;return(f===void 0||c.theme!==l)&&(Kd.theme=c.theme,f=Pp(r(Kd)),i=f,l=c.theme),f}}function Iy(r=""){function i(...u){if(!u.length)return"";const c=u[0];return typeof c=="string"&&!c.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${r?`${r}-`:""}${c}${i(...u.slice(1))})`:`, ${c}`}return(u,...c)=>`var(--${r?`${r}-`:""}${u}${i(...c)})`}const Gd=(r,i,l,u=[])=>{let c=r;i.forEach((f,p)=>{p===i.length-1?Array.isArray(c)?c[Number(f)]=l:c&&typeof c=="object"&&(c[f]=l):c&&typeof c=="object"&&(c[f]||(c[f]=u.includes(f)?[]:{}),c=c[f])})},My=(r,i,l)=>{function u(c,f=[],p=[]){Object.entries(c).forEach(([g,v])=>{(!l||l&&!l([...f,g]))&&v!=null&&(typeof v=="object"&&Object.keys(v).length>0?u(v,[...f,g],Array.isArray(v)?[...p,g]:p):i([...f,g],v,p))})}u(r)},Dy=(r,i)=>typeof i=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(u=>r.includes(u))||r[r.length-1].toLowerCase().includes("opacity")?i:`${i}px`:i;function Ds(r,i){const{prefix:l,shouldSkipGeneratingVar:u}=i||{},c={},f={},p={};return My(r,(g,v,k)=>{if((typeof v=="string"||typeof v=="number")&&(!u||!u(g,v))){const P=`--${l?`${l}-`:""}${g.join("-")}`,_=Dy(g,v);Object.assign(c,{[P]:_}),Gd(f,g,`var(${P})`,k),Gd(p,g,`var(${P}, ${_})`,k)}},g=>g[0]==="vars"),{css:c,vars:f,varsWithDefaults:p}}function By(r,i={}){const{getSelector:l=M,disableCssColorScheme:u,colorSchemeSelector:c}=i,{colorSchemes:f={},components:p,defaultColorScheme:g="light",...v}=r,{vars:k,css:P,varsWithDefaults:_}=Ds(v,i);let b=_;const D={},{[g]:z,...O}=f;if(Object.entries(O||{}).forEach(([j,$])=>{const{vars:T,css:F,varsWithDefaults:G}=Ds($,i);b=_t(b,G),D[j]={css:F,vars:T}}),z){const{css:j,vars:$,varsWithDefaults:T}=Ds(z,i);b=_t(b,T),D[g]={css:j,vars:$}}function M(j,$){var F,G;let T=c;if(c==="class"&&(T=".%s"),c==="data"&&(T="[data-%s]"),c!=null&&c.startsWith("data-")&&!c.includes("%s")&&(T=`[${c}="%s"]`),j){if(T==="media")return r.defaultColorScheme===j?":root":{[`@media (prefers-color-scheme: ${((G=(F=f[j])==null?void 0:F.palette)==null?void 0:G.mode)||j})`]:{":root":$}};if(T)return r.defaultColorScheme===j?`:root, ${T.replace("%s",String(j))}`:T.replace("%s",String(j))}return":root"}return{vars:b,generateThemeVars:()=>{let j={...k};return Object.entries(D).forEach(([,{vars:$}])=>{j=_t(j,$)}),j},generateStyleSheets:()=>{var ce,ve;const j=[],$=r.defaultColorScheme||"light";function T(h,V){Object.keys(V).length&&j.push(typeof h=="string"?{[h]:{...V}}:h)}T(l(void 0,{...P}),P);const{[$]:F,...G}=D;if(F){const{css:h}=F,V=(ve=(ce=f[$])==null?void 0:ce.palette)==null?void 0:ve.mode,ne=!u&&V?{colorScheme:V,...h}:{...h};T(l($,{...ne}),ne)}return Object.entries(G).forEach(([h,{css:V}])=>{var pe,Te;const ne=(Te=(pe=f[h])==null?void 0:pe.palette)==null?void 0:Te.mode,oe=!u&&ne?{colorScheme:ne,...V}:{...V};T(l(h,{...oe}),oe)}),j}}}function jy(r){return function(l){return r==="media"?`@media (prefers-color-scheme: ${l})`:r?r.startsWith("data-")&&!r.includes("%s")?`[${r}="${l}"] &`:r==="class"?`.${l} &`:r==="data"?`[data-${l}] &`:`${r.replace("%s",l)} &`:"&"}}function Op(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Di.white,default:Di.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const Fy=Op();function zp(){return{text:{primary:Di.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Di.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const Qd=zp();function Yd(r,i,l,u){const c=u.light||u,f=u.dark||u*1.5;r[i]||(r.hasOwnProperty(l)?r[i]=r[l]:i==="light"?r.light=Dl(r.main,c):i==="dark"&&(r.dark=Ml(r.main,f)))}function Wy(r="light"){return r==="dark"?{main:Rr[200],light:Rr[50],dark:Rr[400]}:{main:Rr[700],light:Rr[400],dark:Rr[800]}}function Uy(r="light"){return r==="dark"?{main:br[200],light:br[50],dark:br[400]}:{main:br[500],light:br[300],dark:br[700]}}function Vy(r="light"){return r==="dark"?{main:Tr[500],light:Tr[300],dark:Tr[700]}:{main:Tr[700],light:Tr[400],dark:Tr[800]}}function Hy(r="light"){return r==="dark"?{main:Or[400],light:Or[300],dark:Or[700]}:{main:Or[700],light:Or[500],dark:Or[900]}}function Ky(r="light"){return r==="dark"?{main:zr[400],light:zr[300],dark:zr[700]}:{main:zr[800],light:zr[500],dark:zr[900]}}function Gy(r="light"){return r==="dark"?{main:zi[400],light:zi[300],dark:zi[700]}:{main:"#ed6c02",light:zi[500],dark:zi[900]}}function wu(r){const{mode:i="light",contrastThreshold:l=3,tonalOffset:u=.2,...c}=r,f=r.primary||Wy(i),p=r.secondary||Uy(i),g=r.error||Vy(i),v=r.info||Hy(i),k=r.success||Ky(i),P=r.warning||Gy(i);function _(O){return _y(O,Qd.text.primary)>=l?Qd.text.primary:Fy.text.primary}const b=({color:O,name:M,mainShade:H=500,lightShade:Z=300,darkShade:j=700})=>{if(O={...O},!O.main&&O[H]&&(O.main=O[H]),!O.hasOwnProperty("main"))throw new Error(Jn(11,M?` (${M})`:"",H));if(typeof O.main!="string")throw new Error(Jn(12,M?` (${M})`:"",JSON.stringify(O.main)));return Yd(O,"light",Z,u),Yd(O,"dark",j,u),O.contrastText||(O.contrastText=_(O.main)),O};let D;return i==="light"?D=Op():i==="dark"&&(D=zp()),_t({common:{...Di},mode:i,primary:b({color:f,name:"primary"}),secondary:b({color:p,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:b({color:g,name:"error"}),warning:b({color:P,name:"warning"}),info:b({color:v,name:"info"}),success:b({color:k,name:"success"}),grey:n0,contrastThreshold:l,getContrastText:_,augmentColor:b,tonalOffset:u,...D},c)}function Qy(r){const i={};return Object.entries(r).forEach(u=>{const[c,f]=u;typeof f=="object"&&(i[c]=`${f.fontStyle?`${f.fontStyle} `:""}${f.fontVariant?`${f.fontVariant} `:""}${f.fontWeight?`${f.fontWeight} `:""}${f.fontStretch?`${f.fontStretch} `:""}${f.fontSize||""}${f.lineHeight?`/${f.lineHeight} `:""}${f.fontFamily||""}`)}),i}function Yy(r,i){return{toolbar:{minHeight:56,[r.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[r.up("sm")]:{minHeight:64}},...i}}function Xy(r){return Math.round(r*1e5)/1e5}const Xd={textTransform:"uppercase"},qd='"Roboto", "Helvetica", "Arial", sans-serif';function qy(r,i){const{fontFamily:l=qd,fontSize:u=14,fontWeightLight:c=300,fontWeightRegular:f=400,fontWeightMedium:p=500,fontWeightBold:g=700,htmlFontSize:v=16,allVariants:k,pxToRem:P,..._}=typeof i=="function"?i(r):i,b=u/14,D=P||(M=>`${M/v*b}rem`),z=(M,H,Z,j,$)=>({fontFamily:l,fontWeight:M,fontSize:D(H),lineHeight:Z,...l===qd?{letterSpacing:`${Xy(j/H)}em`}:{},...$,...k}),O={h1:z(c,96,1.167,-1.5),h2:z(c,60,1.2,-.5),h3:z(f,48,1.167,0),h4:z(f,34,1.235,.25),h5:z(f,24,1.334,0),h6:z(p,20,1.6,.15),subtitle1:z(f,16,1.75,.15),subtitle2:z(p,14,1.57,.1),body1:z(f,16,1.5,.15),body2:z(f,14,1.43,.15),button:z(p,14,1.75,.4,Xd),caption:z(f,12,1.66,.4),overline:z(f,12,2.66,1,Xd),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return _t({htmlFontSize:v,pxToRem:D,fontFamily:l,fontSize:u,fontWeightLight:c,fontWeightRegular:f,fontWeightMedium:p,fontWeightBold:g,...O},_,{clone:!1})}const Jy=.2,Zy=.14,ev=.12;function Ie(...r){return[`${r[0]}px ${r[1]}px ${r[2]}px ${r[3]}px rgba(0,0,0,${Jy})`,`${r[4]}px ${r[5]}px ${r[6]}px ${r[7]}px rgba(0,0,0,${Zy})`,`${r[8]}px ${r[9]}px ${r[10]}px ${r[11]}px rgba(0,0,0,${ev})`].join(",")}const tv=["none",Ie(0,2,1,-1,0,1,1,0,0,1,3,0),Ie(0,3,1,-2,0,2,2,0,0,1,5,0),Ie(0,3,3,-2,0,3,4,0,0,1,8,0),Ie(0,2,4,-1,0,4,5,0,0,1,10,0),Ie(0,3,5,-1,0,5,8,0,0,1,14,0),Ie(0,3,5,-1,0,6,10,0,0,1,18,0),Ie(0,4,5,-2,0,7,10,1,0,2,16,1),Ie(0,5,5,-3,0,8,10,1,0,3,14,2),Ie(0,5,6,-3,0,9,12,1,0,3,16,2),Ie(0,6,6,-3,0,10,14,1,0,4,18,3),Ie(0,6,7,-4,0,11,15,1,0,4,20,3),Ie(0,7,8,-4,0,12,17,2,0,5,22,4),Ie(0,7,8,-4,0,13,19,2,0,5,24,4),Ie(0,7,9,-4,0,14,21,2,0,5,26,4),Ie(0,8,9,-5,0,15,22,2,0,6,28,5),Ie(0,8,10,-5,0,16,24,2,0,6,30,5),Ie(0,8,11,-5,0,17,26,2,0,6,32,5),Ie(0,9,11,-5,0,18,28,2,0,7,34,6),Ie(0,9,12,-6,0,19,29,2,0,7,36,6),Ie(0,10,13,-6,0,20,31,3,0,8,38,7),Ie(0,10,13,-6,0,21,33,3,0,8,40,7),Ie(0,10,14,-6,0,22,35,3,0,8,42,7),Ie(0,11,14,-7,0,23,36,3,0,9,44,8),Ie(0,11,15,-7,0,24,38,3,0,9,46,8)],nv={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},rv={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Jd(r){return`${Math.round(r)}ms`}function iv(r){if(!r)return 0;const i=r/36;return Math.min(Math.round((4+15*i**.25+i/5)*10),3e3)}function ov(r){const i={...nv,...r.easing},l={...rv,...r.duration};return{getAutoHeightDuration:iv,create:(c=["all"],f={})=>{const{duration:p=l.standard,easing:g=i.easeInOut,delay:v=0,...k}=f;return(Array.isArray(c)?c:[c]).map(P=>`${P} ${typeof p=="string"?p:Jd(p)} ${g} ${typeof v=="string"?v:Jd(v)}`).join(",")},...r,easing:i,duration:l}}const lv={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function av(r){return qt(r)||typeof r>"u"||typeof r=="string"||typeof r=="boolean"||typeof r=="number"||Array.isArray(r)}function Np(r={}){const i={...r};function l(u){const c=Object.entries(u);for(let f=0;f_t(D,z),b),b.unstable_sxConfig={...Ki,...k==null?void 0:k.unstable_sxConfig},b.unstable_sx=function(z){return Zn({sx:z,theme:this})},b.toRuntimeSource=Np,b}function sv(r){let i;return r<1?i=5.11916*r**2:i=4.5*Math.log(r+1)+2,Math.round(i*10)/1e3}const uv=[...Array(25)].map((r,i)=>{if(i===0)return"none";const l=sv(i);return`linear-gradient(rgba(255 255 255 / ${l}), rgba(255 255 255 / ${l}))`});function $p(r){return{inputPlaceholder:r==="dark"?.5:.42,inputUnderline:r==="dark"?.7:.42,switchTrackDisabled:r==="dark"?.2:.12,switchTrack:r==="dark"?.3:.38}}function Ap(r){return r==="dark"?uv:[]}function cv(r){const{palette:i={mode:"light"},opacity:l,overlays:u,...c}=r,f=wu(i);return{palette:f,opacity:{...$p(f.mode),...l},overlays:u||Ap(f.mode),...c}}function fv(r){var i;return!!r[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!r[0].match(/sxConfig$/)||r[0]==="palette"&&!!((i=r[1])!=null&&i.match(/(mode|contrastThreshold|tonalOffset)/))}const dv=r=>[...[...Array(25)].map((i,l)=>`--${r?`${r}-`:""}overlays-${l}`),`--${r?`${r}-`:""}palette-AppBar-darkBg`,`--${r?`${r}-`:""}palette-AppBar-darkColor`],pv=r=>(i,l)=>{const u=r.rootSelector||":root",c=r.colorSchemeSelector;let f=c;if(c==="class"&&(f=".%s"),c==="data"&&(f="[data-%s]"),c!=null&&c.startsWith("data-")&&!c.includes("%s")&&(f=`[${c}="%s"]`),r.defaultColorScheme===i){if(i==="dark"){const p={};return dv(r.cssVarPrefix).forEach(g=>{p[g]=l[g],delete l[g]}),f==="media"?{[u]:l,"@media (prefers-color-scheme: dark)":{[u]:p}}:f?{[f.replace("%s",i)]:p,[`${u}, ${f.replace("%s",i)}`]:l}:{[u]:{...l,...p}}}if(f&&f!=="media")return`${u}, ${f.replace("%s",String(i))}`}else if(i){if(f==="media")return{[`@media (prefers-color-scheme: ${String(i)})`]:{[u]:l}};if(f)return f.replace("%s",String(i))}return u};function hv(r,i){i.forEach(l=>{r[l]||(r[l]={})})}function R(r,i,l){!r[i]&&l&&(r[i]=l)}function Ai(r){return typeof r!="string"||!r.startsWith("hsl")?r:bp(r)}function sn(r,i){`${i}Channel`in r||(r[`${i}Channel`]=$i(Ai(r[i]),`MUI: Can't create \`palette.${i}Channel\` because \`palette.${i}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color(). +To suppress this warning, you need to explicitly provide the \`palette.${i}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function mv(r){return typeof r=="number"?`${r}px`:typeof r=="string"||typeof r=="function"||Array.isArray(r)?r:"8px"}const Qt=r=>{try{return r()}catch{}},gv=(r="mui")=>Iy(r);function Bs(r,i,l,u){if(!i)return;i=i===!0?{}:i;const c=u==="dark"?"dark":"light";if(!l){r[u]=cv({...i,palette:{mode:c,...i==null?void 0:i.palette}});return}const{palette:f,...p}=Gs({...l,palette:{mode:c,...i==null?void 0:i.palette}});return r[u]={...i,palette:f,opacity:{...$p(c),...i==null?void 0:i.opacity},overlays:(i==null?void 0:i.overlays)||Ap(c)},p}function yv(r={},...i){const{colorSchemes:l={light:!0},defaultColorScheme:u,disableCssColorScheme:c=!1,cssVarPrefix:f="mui",shouldSkipGeneratingVar:p=fv,colorSchemeSelector:g=l.light&&l.dark?"media":void 0,rootSelector:v=":root",...k}=r,P=Object.keys(l)[0],_=u||(l.light&&P!=="light"?"light":P),b=gv(f),{[_]:D,light:z,dark:O,...M}=l,H={...M};let Z=D;if((_==="dark"&&!("dark"in l)||_==="light"&&!("light"in l))&&(Z=!0),!Z)throw new Error(Jn(21,_));const j=Bs(H,Z,k,_);z&&!H.light&&Bs(H,z,void 0,"light"),O&&!H.dark&&Bs(H,O,void 0,"dark");let $={defaultColorScheme:_,...j,cssVarPrefix:f,colorSchemeSelector:g,rootSelector:v,getCssVar:b,colorSchemes:H,font:{...Qy(j.typography),...j.font},spacing:mv(k.spacing)};Object.keys($.colorSchemes).forEach(ve=>{const h=$.colorSchemes[ve].palette,V=ne=>{const oe=ne.split("-"),pe=oe[1],Te=oe[2];return b(ne,h[pe][Te])};if(h.mode==="light"&&(R(h.common,"background","#fff"),R(h.common,"onBackground","#000")),h.mode==="dark"&&(R(h.common,"background","#000"),R(h.common,"onBackground","#fff")),hv(h,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),h.mode==="light"){R(h.Alert,"errorColor",be(h.error.light,.6)),R(h.Alert,"infoColor",be(h.info.light,.6)),R(h.Alert,"successColor",be(h.success.light,.6)),R(h.Alert,"warningColor",be(h.warning.light,.6)),R(h.Alert,"errorFilledBg",V("palette-error-main")),R(h.Alert,"infoFilledBg",V("palette-info-main")),R(h.Alert,"successFilledBg",V("palette-success-main")),R(h.Alert,"warningFilledBg",V("palette-warning-main")),R(h.Alert,"errorFilledColor",Qt(()=>h.getContrastText(h.error.main))),R(h.Alert,"infoFilledColor",Qt(()=>h.getContrastText(h.info.main))),R(h.Alert,"successFilledColor",Qt(()=>h.getContrastText(h.success.main))),R(h.Alert,"warningFilledColor",Qt(()=>h.getContrastText(h.warning.main))),R(h.Alert,"errorStandardBg",Re(h.error.light,.9)),R(h.Alert,"infoStandardBg",Re(h.info.light,.9)),R(h.Alert,"successStandardBg",Re(h.success.light,.9)),R(h.Alert,"warningStandardBg",Re(h.warning.light,.9)),R(h.Alert,"errorIconColor",V("palette-error-main")),R(h.Alert,"infoIconColor",V("palette-info-main")),R(h.Alert,"successIconColor",V("palette-success-main")),R(h.Alert,"warningIconColor",V("palette-warning-main")),R(h.AppBar,"defaultBg",V("palette-grey-100")),R(h.Avatar,"defaultBg",V("palette-grey-400")),R(h.Button,"inheritContainedBg",V("palette-grey-300")),R(h.Button,"inheritContainedHoverBg",V("palette-grey-A100")),R(h.Chip,"defaultBorder",V("palette-grey-400")),R(h.Chip,"defaultAvatarColor",V("palette-grey-700")),R(h.Chip,"defaultIconColor",V("palette-grey-700")),R(h.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),R(h.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),R(h.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),R(h.LinearProgress,"primaryBg",Re(h.primary.main,.62)),R(h.LinearProgress,"secondaryBg",Re(h.secondary.main,.62)),R(h.LinearProgress,"errorBg",Re(h.error.main,.62)),R(h.LinearProgress,"infoBg",Re(h.info.main,.62)),R(h.LinearProgress,"successBg",Re(h.success.main,.62)),R(h.LinearProgress,"warningBg",Re(h.warning.main,.62)),R(h.Skeleton,"bg",`rgba(${V("palette-text-primaryChannel")} / 0.11)`),R(h.Slider,"primaryTrack",Re(h.primary.main,.62)),R(h.Slider,"secondaryTrack",Re(h.secondary.main,.62)),R(h.Slider,"errorTrack",Re(h.error.main,.62)),R(h.Slider,"infoTrack",Re(h.info.main,.62)),R(h.Slider,"successTrack",Re(h.success.main,.62)),R(h.Slider,"warningTrack",Re(h.warning.main,.62));const ne=ul(h.background.default,.8);R(h.SnackbarContent,"bg",ne),R(h.SnackbarContent,"color",Qt(()=>h.getContrastText(ne))),R(h.SpeedDialAction,"fabHoverBg",ul(h.background.paper,.15)),R(h.StepConnector,"border",V("palette-grey-400")),R(h.StepContent,"border",V("palette-grey-400")),R(h.Switch,"defaultColor",V("palette-common-white")),R(h.Switch,"defaultDisabledColor",V("palette-grey-100")),R(h.Switch,"primaryDisabledColor",Re(h.primary.main,.62)),R(h.Switch,"secondaryDisabledColor",Re(h.secondary.main,.62)),R(h.Switch,"errorDisabledColor",Re(h.error.main,.62)),R(h.Switch,"infoDisabledColor",Re(h.info.main,.62)),R(h.Switch,"successDisabledColor",Re(h.success.main,.62)),R(h.Switch,"warningDisabledColor",Re(h.warning.main,.62)),R(h.TableCell,"border",Re(sl(h.divider,1),.88)),R(h.Tooltip,"bg",sl(h.grey[700],.92))}if(h.mode==="dark"){R(h.Alert,"errorColor",Re(h.error.light,.6)),R(h.Alert,"infoColor",Re(h.info.light,.6)),R(h.Alert,"successColor",Re(h.success.light,.6)),R(h.Alert,"warningColor",Re(h.warning.light,.6)),R(h.Alert,"errorFilledBg",V("palette-error-dark")),R(h.Alert,"infoFilledBg",V("palette-info-dark")),R(h.Alert,"successFilledBg",V("palette-success-dark")),R(h.Alert,"warningFilledBg",V("palette-warning-dark")),R(h.Alert,"errorFilledColor",Qt(()=>h.getContrastText(h.error.dark))),R(h.Alert,"infoFilledColor",Qt(()=>h.getContrastText(h.info.dark))),R(h.Alert,"successFilledColor",Qt(()=>h.getContrastText(h.success.dark))),R(h.Alert,"warningFilledColor",Qt(()=>h.getContrastText(h.warning.dark))),R(h.Alert,"errorStandardBg",be(h.error.light,.9)),R(h.Alert,"infoStandardBg",be(h.info.light,.9)),R(h.Alert,"successStandardBg",be(h.success.light,.9)),R(h.Alert,"warningStandardBg",be(h.warning.light,.9)),R(h.Alert,"errorIconColor",V("palette-error-main")),R(h.Alert,"infoIconColor",V("palette-info-main")),R(h.Alert,"successIconColor",V("palette-success-main")),R(h.Alert,"warningIconColor",V("palette-warning-main")),R(h.AppBar,"defaultBg",V("palette-grey-900")),R(h.AppBar,"darkBg",V("palette-background-paper")),R(h.AppBar,"darkColor",V("palette-text-primary")),R(h.Avatar,"defaultBg",V("palette-grey-600")),R(h.Button,"inheritContainedBg",V("palette-grey-800")),R(h.Button,"inheritContainedHoverBg",V("palette-grey-700")),R(h.Chip,"defaultBorder",V("palette-grey-700")),R(h.Chip,"defaultAvatarColor",V("palette-grey-300")),R(h.Chip,"defaultIconColor",V("palette-grey-300")),R(h.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),R(h.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),R(h.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),R(h.LinearProgress,"primaryBg",be(h.primary.main,.5)),R(h.LinearProgress,"secondaryBg",be(h.secondary.main,.5)),R(h.LinearProgress,"errorBg",be(h.error.main,.5)),R(h.LinearProgress,"infoBg",be(h.info.main,.5)),R(h.LinearProgress,"successBg",be(h.success.main,.5)),R(h.LinearProgress,"warningBg",be(h.warning.main,.5)),R(h.Skeleton,"bg",`rgba(${V("palette-text-primaryChannel")} / 0.13)`),R(h.Slider,"primaryTrack",be(h.primary.main,.5)),R(h.Slider,"secondaryTrack",be(h.secondary.main,.5)),R(h.Slider,"errorTrack",be(h.error.main,.5)),R(h.Slider,"infoTrack",be(h.info.main,.5)),R(h.Slider,"successTrack",be(h.success.main,.5)),R(h.Slider,"warningTrack",be(h.warning.main,.5));const ne=ul(h.background.default,.98);R(h.SnackbarContent,"bg",ne),R(h.SnackbarContent,"color",Qt(()=>h.getContrastText(ne))),R(h.SpeedDialAction,"fabHoverBg",ul(h.background.paper,.15)),R(h.StepConnector,"border",V("palette-grey-600")),R(h.StepContent,"border",V("palette-grey-600")),R(h.Switch,"defaultColor",V("palette-grey-300")),R(h.Switch,"defaultDisabledColor",V("palette-grey-600")),R(h.Switch,"primaryDisabledColor",be(h.primary.main,.55)),R(h.Switch,"secondaryDisabledColor",be(h.secondary.main,.55)),R(h.Switch,"errorDisabledColor",be(h.error.main,.55)),R(h.Switch,"infoDisabledColor",be(h.info.main,.55)),R(h.Switch,"successDisabledColor",be(h.success.main,.55)),R(h.Switch,"warningDisabledColor",be(h.warning.main,.55)),R(h.TableCell,"border",be(sl(h.divider,1),.68)),R(h.Tooltip,"bg",sl(h.grey[700],.92))}sn(h.background,"default"),sn(h.background,"paper"),sn(h.common,"background"),sn(h.common,"onBackground"),sn(h,"divider"),Object.keys(h).forEach(ne=>{const oe=h[ne];ne!=="tonalOffset"&&oe&&typeof oe=="object"&&(oe.main&&R(h[ne],"mainChannel",$i(Ai(oe.main))),oe.light&&R(h[ne],"lightChannel",$i(Ai(oe.light))),oe.dark&&R(h[ne],"darkChannel",$i(Ai(oe.dark))),oe.contrastText&&R(h[ne],"contrastTextChannel",$i(Ai(oe.contrastText))),ne==="text"&&(sn(h[ne],"primary"),sn(h[ne],"secondary")),ne==="action"&&(oe.active&&sn(h[ne],"active"),oe.selected&&sn(h[ne],"selected")))})}),$=i.reduce((ve,h)=>_t(ve,h),$);const T={prefix:f,disableCssColorScheme:c,shouldSkipGeneratingVar:p,getSelector:pv($)},{vars:F,generateThemeVars:G,generateStyleSheets:ce}=By($,T);return $.vars=F,Object.entries($.colorSchemes[$.defaultColorScheme]).forEach(([ve,h])=>{$[ve]=h}),$.generateThemeVars=G,$.generateStyleSheets=ce,$.generateSpacing=function(){return xp(k.spacing,hu(this))},$.getColorSchemeSelector=jy(g),$.spacing=$.generateSpacing(),$.shouldSkipGeneratingVar=p,$.unstable_sxConfig={...Ki,...k==null?void 0:k.unstable_sxConfig},$.unstable_sx=function(h){return Zn({sx:h,theme:this})},$.toRuntimeSource=Np,$}function Zd(r,i,l){r.colorSchemes&&l&&(r.colorSchemes[i]={...l!==!0&&l,palette:wu({...l===!0?{}:l.palette,mode:i})})}function Lp(r={},...i){const{palette:l,cssVariables:u=!1,colorSchemes:c=l?void 0:{light:!0},defaultColorScheme:f=l==null?void 0:l.mode,...p}=r,g=f||"light",v=c==null?void 0:c[g],k={...c,...l?{[g]:{...typeof v!="boolean"&&v,palette:l}}:void 0};if(u===!1){if(!("colorSchemes"in r))return Gs(r,...i);let P=l;"palette"in r||k[g]&&(k[g]!==!0?P=k[g].palette:g==="dark"&&(P={mode:"dark"}));const _=Gs({...r,palette:P},...i);return _.defaultColorScheme=g,_.colorSchemes=k,_.palette.mode==="light"&&(_.colorSchemes.light={...k.light!==!0&&k.light,palette:_.palette},Zd(_,"dark",k.dark)),_.palette.mode==="dark"&&(_.colorSchemes.dark={...k.dark!==!0&&k.dark,palette:_.palette},Zd(_,"light",k.light)),_}return!l&&!("light"in k)&&g==="light"&&(k.light=!0),yv({...p,colorSchemes:k,defaultColorScheme:g,...typeof u!="boolean"&&u},...i)}const Ip=Lp();function vv(r){return r!=="ownerState"&&r!=="theme"&&r!=="sx"&&r!=="as"}const Mp=r=>vv(r)&&r!=="classes",Wt=my({themeId:iu,defaultTheme:Ip,rootShouldForwardProp:Mp});function wv(r){return le.jsx(ay,{...r,defaultTheme:Ip,themeId:iu})}function Dp(r){return function(l){return le.jsx(wv,{styles:typeof r=="function"?u=>r({theme:u,...l}):r})}}function Sv(){return Cp}const Wr=Ly;function Ur(r){return Ay(r)}function xv(r,i){if(r==null)return{};var l={};for(var u in r)if({}.hasOwnProperty.call(r,u)){if(i.includes(u))continue;l[u]=r[u]}return l}function Qs(r,i){return Qs=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(l,u){return l.__proto__=u,l},Qs(r,i)}function kv(r,i){r.prototype=Object.create(i.prototype),r.prototype.constructor=r,Qs(r,i)}const ep=Lr.createContext(null);function Cv(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}function Su(r,i){var l=function(f){return i&&U.isValidElement(f)?i(f):f},u=Object.create(null);return r&&U.Children.map(r,function(c){return c}).forEach(function(c){u[c.key]=l(c)}),u}function _v(r,i){r=r||{},i=i||{};function l(P){return P in i?i[P]:r[P]}var u=Object.create(null),c=[];for(var f in r)f in i?c.length&&(u[f]=c,c=[]):c.push(f);var p,g={};for(var v in i){if(u[v])for(p=0;p{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())});this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}static create(){return new Cl}static use(){const i=Rp(Cl.create).current,[l,u]=U.useState(!1);return i.shouldMount=l,i.setShouldMount=u,U.useEffect(i.mountEffect,[l]),i}mount(){return this.mounted||(this.mounted=Ov(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(...i){this.mount().then(()=>{var l;return(l=this.ref.current)==null?void 0:l.start(...i)})}stop(...i){this.mount().then(()=>{var l;return(l=this.ref.current)==null?void 0:l.stop(...i)})}pulsate(...i){this.mount().then(()=>{var l;return(l=this.ref.current)==null?void 0:l.pulsate(...i)})}}function Rv(){return Cl.use()}function Ov(){let r,i;const l=new Promise((u,c)=>{r=u,i=c});return l.resolve=r,l.reject=i,l}function zv(r){const{className:i,classes:l,pulsate:u=!1,rippleX:c,rippleY:f,rippleSize:p,in:g,onExited:v,timeout:k}=r,[P,_]=U.useState(!1),b=ut(i,l.ripple,l.rippleVisible,u&&l.ripplePulsate),D={width:p,height:p,top:-(p/2)+f,left:-(p/2)+c},z=ut(l.child,P&&l.childLeaving,u&&l.childPulsate);return!g&&!P&&_(!0),U.useEffect(()=>{if(!g&&v!=null){const O=setTimeout(v,k);return()=>{clearTimeout(O)}}},[v,g,k]),le.jsx("span",{className:b,style:D,children:le.jsx("span",{className:z})})}const zt=Fr("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Ys=550,Nv=80,$v=jr` + 0% { + transform: scale(0); + opacity: 0.1; + } + + 100% { + transform: scale(1); + opacity: 0.3; + } +`,Av=jr` + 0% { + opacity: 1; + } + + 100% { + opacity: 0; + } +`,Lv=jr` + 0% { + transform: scale(1); + } + + 50% { + transform: scale(0.92); + } + + 100% { + transform: scale(1); + } +`,Iv=Wt("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Mv=Wt(zv,{name:"MuiTouchRipple",slot:"Ripple"})` + opacity: 0; + position: absolute; + + &.${zt.rippleVisible} { + opacity: 0.3; + transform: scale(1); + animation-name: ${$v}; + animation-duration: ${Ys}ms; + animation-timing-function: ${({theme:r})=>r.transitions.easing.easeInOut}; + } + + &.${zt.ripplePulsate} { + animation-duration: ${({theme:r})=>r.transitions.duration.shorter}ms; + } + + & .${zt.child} { + opacity: 1; + display: block; + width: 100%; + height: 100%; + border-radius: 50%; + background-color: currentColor; + } + + & .${zt.childLeaving} { + opacity: 0; + animation-name: ${Av}; + animation-duration: ${Ys}ms; + animation-timing-function: ${({theme:r})=>r.transitions.easing.easeInOut}; + } + + & .${zt.childPulsate} { + position: absolute; + /* @noflip */ + left: 0px; + top: 0; + animation-name: ${Lv}; + animation-duration: 2500ms; + animation-timing-function: ${({theme:r})=>r.transitions.easing.easeInOut}; + animation-iteration-count: infinite; + animation-delay: 200ms; + } +`,Dv=U.forwardRef(function(i,l){const u=Ur({props:i,name:"MuiTouchRipple"}),{center:c=!1,classes:f={},className:p,...g}=u,[v,k]=U.useState([]),P=U.useRef(0),_=U.useRef(null);U.useEffect(()=>{_.current&&(_.current(),_.current=null)},[v]);const b=U.useRef(!1),D=Ry(),z=U.useRef(null),O=U.useRef(null),M=U.useCallback($=>{const{pulsate:T,rippleX:F,rippleY:G,rippleSize:ce,cb:ve}=$;k(h=>[...h,le.jsx(Mv,{classes:{ripple:ut(f.ripple,zt.ripple),rippleVisible:ut(f.rippleVisible,zt.rippleVisible),ripplePulsate:ut(f.ripplePulsate,zt.ripplePulsate),child:ut(f.child,zt.child),childLeaving:ut(f.childLeaving,zt.childLeaving),childPulsate:ut(f.childPulsate,zt.childPulsate)},timeout:Ys,pulsate:T,rippleX:F,rippleY:G,rippleSize:ce},P.current)]),P.current+=1,_.current=ve},[f]),H=U.useCallback(($={},T={},F=()=>{})=>{const{pulsate:G=!1,center:ce=c||T.pulsate,fakeElement:ve=!1}=T;if(($==null?void 0:$.type)==="mousedown"&&b.current){b.current=!1;return}($==null?void 0:$.type)==="touchstart"&&(b.current=!0);const h=ve?null:O.current,V=h?h.getBoundingClientRect():{width:0,height:0,left:0,top:0};let ne,oe,pe;if(ce||$===void 0||$.clientX===0&&$.clientY===0||!$.clientX&&!$.touches)ne=Math.round(V.width/2),oe=Math.round(V.height/2);else{const{clientX:Te,clientY:Ee}=$.touches&&$.touches.length>0?$.touches[0]:$;ne=Math.round(Te-V.left),oe=Math.round(Ee-V.top)}if(ce)pe=Math.sqrt((2*V.width**2+V.height**2)/3),pe%2===0&&(pe+=1);else{const Te=Math.max(Math.abs((h?h.clientWidth:0)-ne),ne)*2+2,Ee=Math.max(Math.abs((h?h.clientHeight:0)-oe),oe)*2+2;pe=Math.sqrt(Te**2+Ee**2)}$!=null&&$.touches?z.current===null&&(z.current=()=>{M({pulsate:G,rippleX:ne,rippleY:oe,rippleSize:pe,cb:F})},D.start(Nv,()=>{z.current&&(z.current(),z.current=null)})):M({pulsate:G,rippleX:ne,rippleY:oe,rippleSize:pe,cb:F})},[c,M,D]),Z=U.useCallback(()=>{H({},{pulsate:!0})},[H]),j=U.useCallback(($,T)=>{if(D.clear(),($==null?void 0:$.type)==="touchend"&&z.current){z.current(),z.current=null,D.start(0,()=>{j($,T)});return}z.current=null,k(F=>F.length>0?F.slice(1):F),_.current=T},[D]);return U.useImperativeHandle(l,()=>({pulsate:Z,start:H,stop:j}),[Z,H,j]),le.jsx(Iv,{className:ut(zt.root,f.root,p),ref:O,...g,children:le.jsx(xu,{component:null,exit:!0,children:v})})});function Bv(r){return Gi("MuiButtonBase",r)}const jv=Fr("MuiButtonBase",["root","disabled","focusVisible"]),Fv=r=>{const{disabled:i,focusVisible:l,focusVisibleClassName:u,classes:c}=r,p=Bl({root:["root",i&&"disabled",l&&"focusVisible"]},Bv,c);return l&&u&&(p.root+=` ${u}`),p},Wv=Wt("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(r,i)=>i.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${jv.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Uv=U.forwardRef(function(i,l){const u=Ur({props:i,name:"MuiButtonBase"}),{action:c,centerRipple:f=!1,children:p,className:g,component:v="button",disabled:k=!1,disableRipple:P=!1,disableTouchRipple:_=!1,focusRipple:b=!1,focusVisibleClassName:D,LinkComponent:z="a",onBlur:O,onClick:M,onContextMenu:H,onDragLeave:Z,onFocus:j,onFocusVisible:$,onKeyDown:T,onKeyUp:F,onMouseDown:G,onMouseLeave:ce,onMouseUp:ve,onTouchEnd:h,onTouchMove:V,onTouchStart:ne,tabIndex:oe=0,TouchRippleProps:pe,touchRippleRef:Te,type:Ee,...we}=u,W=U.useRef(null),Y=Rv(),X=Ud(Y.ref,Te),[S,N]=U.useState(!1);k&&S&&N(!1),U.useImperativeHandle(c,()=>({focusVisible:()=>{N(!0),W.current.focus()}}),[]);const ue=Y.shouldMount&&!P&&!k;U.useEffect(()=>{S&&b&&!P&&Y.pulsate()},[P,b,S,Y]);const fe=un(Y,"start",G,_),he=un(Y,"stop",H,_),me=un(Y,"stop",Z,_),Pe=un(Y,"stop",ve,_),Se=un(Y,"stop",se=>{S&&se.preventDefault(),ce&&ce(se)},_),Oe=un(Y,"start",ne,_),lt=un(Y,"stop",h,_),tr=un(Y,"stop",V,_),Qi=un(Y,"stop",se=>{Hd(se.target)||N(!1),O&&O(se)},!1),nr=ml(se=>{W.current||(W.current=se.currentTarget),Hd(se.target)&&(N(!0),$&&$(se)),j&&j(se)}),Mn=()=>{const se=W.current;return v&&v!=="button"&&!(se.tagName==="A"&&se.href)},Yi=ml(se=>{b&&!se.repeat&&S&&se.key===" "&&Y.stop(se,()=>{Y.start(se)}),se.target===se.currentTarget&&Mn()&&se.key===" "&&se.preventDefault(),T&&T(se),se.target===se.currentTarget&&Mn()&&se.key==="Enter"&&!k&&(se.preventDefault(),M&&M(se))}),Xi=ml(se=>{b&&se.key===" "&&S&&!se.defaultPrevented&&Y.stop(se,()=>{Y.pulsate(se)}),F&&F(se),M&&se.target===se.currentTarget&&Mn()&&se.key===" "&&!se.defaultPrevented&&M(se)});let dn=v;dn==="button"&&(we.href||we.to)&&(dn=z);const pn={};dn==="button"?(pn.type=Ee===void 0?"button":Ee,pn.disabled=k):(!we.href&&!we.to&&(pn.role="button"),k&&(pn["aria-disabled"]=k));const Vr=Ud(l,W),hn={...u,centerRipple:f,component:v,disabled:k,disableRipple:P,disableTouchRipple:_,focusRipple:b,tabIndex:oe,focusVisible:S},mn=Fv(hn);return le.jsxs(Wv,{as:dn,className:ut(mn.root,g),ownerState:hn,onBlur:Qi,onClick:M,onContextMenu:he,onFocus:nr,onKeyDown:Yi,onKeyUp:Xi,onMouseDown:fe,onMouseLeave:Se,onMouseUp:Pe,onDragLeave:me,onTouchEnd:lt,onTouchMove:tr,onTouchStart:Oe,ref:Vr,tabIndex:k?-1:oe,type:Ee,...pn,...we,children:[p,ue?le.jsx(Dv,{ref:X,center:f,...pe}):null]})});function un(r,i,l,u=!1){return ml(c=>(l&&l(c),u||r[i](c),!0))}function Vv(r){return typeof r.main=="string"}function Hv(r,i=[]){if(!Vv(r))return!1;for(const l of i)if(!r.hasOwnProperty(l)||typeof r[l]!="string")return!1;return!0}function er(r=[]){return([,i])=>i&&Hv(i,r)}function Kv(r){return Gi("MuiTypography",r)}Fr("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const Gv={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},Qv=Sv(),Yv=r=>{const{align:i,gutterBottom:l,noWrap:u,paragraph:c,variant:f,classes:p}=r,g={root:["root",f,r.align!=="inherit"&&`align${Ae(i)}`,l&&"gutterBottom",u&&"noWrap",c&&"paragraph"]};return Bl(g,Kv,p)},Xv=Wt("span",{name:"MuiTypography",slot:"Root",overridesResolver:(r,i)=>{const{ownerState:l}=r;return[i.root,l.variant&&i[l.variant],l.align!=="inherit"&&i[`align${Ae(l.align)}`],l.noWrap&&i.noWrap,l.gutterBottom&&i.gutterBottom,l.paragraph&&i.paragraph]}})(Wr(({theme:r})=>{var i;return{margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(r.typography).filter(([l,u])=>l!=="inherit"&&u&&typeof u=="object").map(([l,u])=>({props:{variant:l},style:u})),...Object.entries(r.palette).filter(er()).map(([l])=>({props:{color:l},style:{color:(r.vars||r).palette[l].main}})),...Object.entries(((i=r.palette)==null?void 0:i.text)||{}).filter(([,l])=>typeof l=="string").map(([l])=>({props:{color:`text${Ae(l)}`},style:{color:(r.vars||r).palette.text[l]}})),{props:({ownerState:l})=>l.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:l})=>l.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:l})=>l.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:l})=>l.paragraph,style:{marginBottom:16}}]}})),tp={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},ku=U.forwardRef(function(i,l){const{color:u,...c}=Ur({props:i,name:"MuiTypography"}),f=!Gv[u],p=Qv({...c,...f&&{color:u}}),{align:g="inherit",className:v,component:k,gutterBottom:P=!1,noWrap:_=!1,paragraph:b=!1,variant:D="body1",variantMapping:z=tp,...O}=p,M={...p,align:g,color:u,className:v,component:k,gutterBottom:P,noWrap:_,paragraph:b,variant:D,variantMapping:z},H=k||(b?"p":z[D]||tp[D])||"span",Z=Yv(M);return le.jsx(Xv,{as:H,ref:l,className:ut(Z.root,v),...O,ownerState:M,style:{...g!=="inherit"&&{"--Typography-textAlign":g},...O.style}})}),qv=Fr("MuiBox",["root"]),Jv=Lp(),cn=cy({themeId:iu,defaultTheme:Jv,defaultClassName:qv.root,generateClassName:_p.generate});function Zv(r){return Gi("MuiButton",r)}const Nr=Fr("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),e1=U.createContext({}),t1=U.createContext(void 0),n1=r=>{const{color:i,disableElevation:l,fullWidth:u,size:c,variant:f,classes:p}=r,g={root:["root",f,`${f}${Ae(i)}`,`size${Ae(c)}`,`${f}Size${Ae(c)}`,`color${Ae(i)}`,l&&"disableElevation",u&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${Ae(c)}`],endIcon:["icon","endIcon",`iconSize${Ae(c)}`]},v=Bl(g,Zv,p);return{...p,...v}},Bp=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],r1=Wt(Uv,{shouldForwardProp:r=>Mp(r)||r==="classes",name:"MuiButton",slot:"Root",overridesResolver:(r,i)=>{const{ownerState:l}=r;return[i.root,i[l.variant],i[`${l.variant}${Ae(l.color)}`],i[`size${Ae(l.size)}`],i[`${l.variant}Size${Ae(l.size)}`],l.color==="inherit"&&i.colorInherit,l.disableElevation&&i.disableElevation,l.fullWidth&&i.fullWidth]}})(Wr(({theme:r})=>{const i=r.palette.mode==="light"?r.palette.grey[300]:r.palette.grey[800],l=r.palette.mode==="light"?r.palette.grey.A100:r.palette.grey[700];return{...r.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(r.vars||r).shape.borderRadius,transition:r.transitions.create(["background-color","box-shadow","border-color","color"],{duration:r.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${Nr.disabled}`]:{color:(r.vars||r).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(r.vars||r).shadows[2],"&:hover":{boxShadow:(r.vars||r).shadows[4],"@media (hover: none)":{boxShadow:(r.vars||r).shadows[2]}},"&:active":{boxShadow:(r.vars||r).shadows[8]},[`&.${Nr.focusVisible}`]:{boxShadow:(r.vars||r).shadows[6]},[`&.${Nr.disabled}`]:{color:(r.vars||r).palette.action.disabled,boxShadow:(r.vars||r).shadows[0],backgroundColor:(r.vars||r).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${Nr.disabled}`]:{border:`1px solid ${(r.vars||r).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(r.palette).filter(er()).map(([u])=>({props:{color:u},style:{"--variant-textColor":(r.vars||r).palette[u].main,"--variant-outlinedColor":(r.vars||r).palette[u].main,"--variant-outlinedBorder":r.vars?`rgba(${r.vars.palette[u].mainChannel} / 0.5)`:Ar(r.palette[u].main,.5),"--variant-containedColor":(r.vars||r).palette[u].contrastText,"--variant-containedBg":(r.vars||r).palette[u].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(r.vars||r).palette[u].dark,"--variant-textBg":r.vars?`rgba(${r.vars.palette[u].mainChannel} / ${r.vars.palette.action.hoverOpacity})`:Ar(r.palette[u].main,r.palette.action.hoverOpacity),"--variant-outlinedBorder":(r.vars||r).palette[u].main,"--variant-outlinedBg":r.vars?`rgba(${r.vars.palette[u].mainChannel} / ${r.vars.palette.action.hoverOpacity})`:Ar(r.palette[u].main,r.palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":r.vars?r.vars.palette.Button.inheritContainedBg:i,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":r.vars?r.vars.palette.Button.inheritContainedHoverBg:l,"--variant-textBg":r.vars?`rgba(${r.vars.palette.text.primaryChannel} / ${r.vars.palette.action.hoverOpacity})`:Ar(r.palette.text.primary,r.palette.action.hoverOpacity),"--variant-outlinedBg":r.vars?`rgba(${r.vars.palette.text.primaryChannel} / ${r.vars.palette.action.hoverOpacity})`:Ar(r.palette.text.primary,r.palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:r.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:r.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:r.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:r.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:r.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:r.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Nr.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Nr.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}}]}})),i1=Wt("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(r,i)=>{const{ownerState:l}=r;return[i.startIcon,i[`iconSize${Ae(l.size)}`]]}})({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},...Bp]}),o1=Wt("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(r,i)=>{const{ownerState:l}=r;return[i.endIcon,i[`iconSize${Ae(l.size)}`]]}})({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},...Bp]}),l1=U.forwardRef(function(i,l){const u=U.useContext(e1),c=U.useContext(t1),f=kl(u,i),p=Ur({props:f,name:"MuiButton"}),{children:g,color:v="primary",component:k="button",className:P,disabled:_=!1,disableElevation:b=!1,disableFocusRipple:D=!1,endIcon:z,focusVisibleClassName:O,fullWidth:M=!1,size:H="medium",startIcon:Z,type:j,variant:$="text",...T}=p,F={...p,color:v,component:k,disabled:_,disableElevation:b,disableFocusRipple:D,fullWidth:M,size:H,type:j,variant:$},G=n1(F),ce=Z&&le.jsx(i1,{className:G.startIcon,ownerState:F,children:Z}),ve=z&&le.jsx(o1,{className:G.endIcon,ownerState:F,children:z}),h=c||"";return le.jsxs(r1,{ownerState:F,className:ut(u.className,G.root,P,h),component:k,disabled:_,focusRipple:!D,focusVisibleClassName:ut(G.focusVisible,O),ref:l,type:j,...T,classes:G,children:[ce,g,ve]})}),Xs=typeof Dp({})=="function",a1=(r,i)=>({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%",...i&&!r.vars&&{colorScheme:r.palette.mode}}),s1=r=>({color:(r.vars||r).palette.text.primary,...r.typography.body1,backgroundColor:(r.vars||r).palette.background.default,"@media print":{backgroundColor:(r.vars||r).palette.common.white}}),jp=(r,i=!1)=>{var f,p;const l={};i&&r.colorSchemes&&typeof r.getColorSchemeSelector=="function"&&Object.entries(r.colorSchemes).forEach(([g,v])=>{var P,_;const k=r.getColorSchemeSelector(g);k.startsWith("@")?l[k]={":root":{colorScheme:(P=v.palette)==null?void 0:P.mode}}:l[k.replace(/\s*&/,"")]={colorScheme:(_=v.palette)==null?void 0:_.mode}});let u={html:a1(r,i),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:r.typography.fontWeightBold},body:{margin:0,...s1(r),"&::backdrop":{backgroundColor:(r.vars||r).palette.background.default}},...l};const c=(p=(f=r.components)==null?void 0:f.MuiCssBaseline)==null?void 0:p.styleOverrides;return c&&(u=[u,c]),u},gl="mui-ecs",u1=r=>{const i=jp(r,!1),l=Array.isArray(i)?i[0]:i;return!r.vars&&l&&(l.html[`:root:has(${gl})`]={colorScheme:r.palette.mode}),r.colorSchemes&&Object.entries(r.colorSchemes).forEach(([u,c])=>{var p,g;const f=r.getColorSchemeSelector(u);f.startsWith("@")?l[f]={[`:root:not(:has(.${gl}))`]:{colorScheme:(p=c.palette)==null?void 0:p.mode}}:l[f.replace(/\s*&/,"")]={[`&:not(:has(.${gl}))`]:{colorScheme:(g=c.palette)==null?void 0:g.mode}}}),i},c1=Dp(Xs?({theme:r,enableColorScheme:i})=>jp(r,i):({theme:r})=>u1(r));function f1(r){const i=Ur({props:r,name:"MuiCssBaseline"}),{children:l,enableColorScheme:u=!1}=i;return le.jsxs(U.Fragment,{children:[Xs&&le.jsx(c1,{enableColorScheme:u}),!Xs&&!u&&le.jsx("span",{className:gl,style:{display:"none"}}),l]})}function d1(r){return Gi("MuiLinearProgress",r)}Fr("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const qs=4,Js=jr` + 0% { + left: -35%; + right: 100%; + } + + 60% { + left: 100%; + right: -90%; + } + + 100% { + left: 100%; + right: -90%; + } +`,p1=typeof Js!="string"?bl` + animation: ${Js} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite; + `:null,Zs=jr` + 0% { + left: -200%; + right: 100%; + } + + 60% { + left: 107%; + right: -8%; + } + + 100% { + left: 107%; + right: -8%; + } +`,h1=typeof Zs!="string"?bl` + animation: ${Zs} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite; + `:null,eu=jr` + 0% { + opacity: 1; + background-position: 0 -23px; + } + + 60% { + opacity: 0; + background-position: 0 -23px; + } + + 100% { + opacity: 1; + background-position: -200px -23px; + } +`,m1=typeof eu!="string"?bl` + animation: ${eu} 3s infinite linear; + `:null,g1=r=>{const{classes:i,variant:l,color:u}=r,c={root:["root",`color${Ae(u)}`,l],dashed:["dashed",`dashedColor${Ae(u)}`],bar1:["bar",`barColor${Ae(u)}`,(l==="indeterminate"||l==="query")&&"bar1Indeterminate",l==="determinate"&&"bar1Determinate",l==="buffer"&&"bar1Buffer"],bar2:["bar",l!=="buffer"&&`barColor${Ae(u)}`,l==="buffer"&&`color${Ae(u)}`,(l==="indeterminate"||l==="query")&&"bar2Indeterminate",l==="buffer"&&"bar2Buffer"]};return Bl(c,d1,i)},Cu=(r,i)=>r.vars?r.vars.palette.LinearProgress[`${i}Bg`]:r.palette.mode==="light"?Dl(r.palette[i].main,.62):Ml(r.palette[i].main,.5),y1=Wt("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(r,i)=>{const{ownerState:l}=r;return[i.root,i[`color${Ae(l.color)}`],i[l.variant]]}})(Wr(({theme:r})=>({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},variants:[...Object.entries(r.palette).filter(er()).map(([i])=>({props:{color:i},style:{backgroundColor:Cu(r,i)}})),{props:({ownerState:i})=>i.color==="inherit"&&i.variant!=="buffer",style:{"&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}}},{props:{variant:"buffer"},style:{backgroundColor:"transparent"}},{props:{variant:"query"},style:{transform:"rotate(180deg)"}}]}))),v1=Wt("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(r,i)=>{const{ownerState:l}=r;return[i.dashed,i[`dashedColor${Ae(l.color)}`]]}})(Wr(({theme:r})=>({position:"absolute",marginTop:0,height:"100%",width:"100%",backgroundSize:"10px 10px",backgroundPosition:"0 -23px",variants:[{props:{color:"inherit"},style:{opacity:.3,backgroundImage:"radial-gradient(currentColor 0%, currentColor 16%, transparent 42%)"}},...Object.entries(r.palette).filter(er()).map(([i])=>{const l=Cu(r,i);return{props:{color:i},style:{backgroundImage:`radial-gradient(${l} 0%, ${l} 16%, transparent 42%)`}}})]})),m1||{animation:`${eu} 3s infinite linear`}),w1=Wt("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(r,i)=>{const{ownerState:l}=r;return[i.bar,i[`barColor${Ae(l.color)}`],(l.variant==="indeterminate"||l.variant==="query")&&i.bar1Indeterminate,l.variant==="determinate"&&i.bar1Determinate,l.variant==="buffer"&&i.bar1Buffer]}})(Wr(({theme:r})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[{props:{color:"inherit"},style:{backgroundColor:"currentColor"}},...Object.entries(r.palette).filter(er()).map(([i])=>({props:{color:i},style:{backgroundColor:(r.vars||r).palette[i].main}})),{props:{variant:"determinate"},style:{transition:`transform .${qs}s linear`}},{props:{variant:"buffer"},style:{zIndex:1,transition:`transform .${qs}s linear`}},{props:({ownerState:i})=>i.variant==="indeterminate"||i.variant==="query",style:{width:"auto"}},{props:({ownerState:i})=>i.variant==="indeterminate"||i.variant==="query",style:p1||{animation:`${Js} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite`}}]}))),S1=Wt("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(r,i)=>{const{ownerState:l}=r;return[i.bar,i[`barColor${Ae(l.color)}`],(l.variant==="indeterminate"||l.variant==="query")&&i.bar2Indeterminate,l.variant==="buffer"&&i.bar2Buffer]}})(Wr(({theme:r})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[...Object.entries(r.palette).filter(er()).map(([i])=>({props:{color:i},style:{"--LinearProgressBar2-barColor":(r.vars||r).palette[i].main}})),{props:({ownerState:i})=>i.variant!=="buffer"&&i.color!=="inherit",style:{backgroundColor:"var(--LinearProgressBar2-barColor, currentColor)"}},{props:({ownerState:i})=>i.variant!=="buffer"&&i.color==="inherit",style:{backgroundColor:"currentColor"}},{props:{color:"inherit"},style:{opacity:.3}},...Object.entries(r.palette).filter(er()).map(([i])=>({props:{color:i,variant:"buffer"},style:{backgroundColor:Cu(r,i),transition:`transform .${qs}s linear`}})),{props:({ownerState:i})=>i.variant==="indeterminate"||i.variant==="query",style:{width:"auto"}},{props:({ownerState:i})=>i.variant==="indeterminate"||i.variant==="query",style:h1||{animation:`${Zs} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite`}}]}))),x1=U.forwardRef(function(i,l){const u=Ur({props:i,name:"MuiLinearProgress"}),{className:c,color:f="primary",value:p,valueBuffer:g,variant:v="indeterminate",...k}=u,P={...u,color:f,variant:v},_=g1(P),b=zy(),D={},z={bar1:{},bar2:{}};if((v==="determinate"||v==="buffer")&&p!==void 0){D["aria-valuenow"]=Math.round(p),D["aria-valuemin"]=0,D["aria-valuemax"]=100;let O=p-100;b&&(O=-O),z.bar1.transform=`translateX(${O}%)`}if(v==="buffer"&&g!==void 0){let O=(g||0)-100;b&&(O=-O),z.bar2.transform=`translateX(${O}%)`}return le.jsxs(y1,{className:ut(_.root,c),ownerState:P,role:"progressbar",...D,ref:l,...k,children:[v==="buffer"?le.jsx(v1,{className:_.dashed,ownerState:P}):null,le.jsx(w1,{className:_.bar1,ownerState:P,style:z.bar1}),v==="determinate"?null:le.jsx(S1,{className:_.bar2,ownerState:P,style:z.bar2})]})});function k1(r,i,l,u){if(l==="a"&&!u)throw new TypeError("Private accessor was defined without a getter");if(typeof i=="function"?r!==i||!u:!i.has(r))throw new TypeError("Cannot read private member from an object whose class did not declare it");return l==="m"?u:l==="a"?u.call(r):u?u.value:i.get(r)}function C1(r,i,l,u,c){if(typeof i=="function"?r!==i||!c:!i.has(r))throw new TypeError("Cannot write private member to an object whose class did not declare it");return i.set(r,l),l}var yl;const $t="__TAURI_TO_IPC_KEY__";function _1(r,i=!1){return window.__TAURI_INTERNALS__.transformCallback(r,i)}async function K(r,i={},l){return window.__TAURI_INTERNALS__.invoke(r,i,l)}class E1{get rid(){return k1(this,yl,"f")}constructor(i){yl.set(this,void 0),C1(this,yl,i)}async close(){return K("plugin:resources|close",{rid:this.rid})}}yl=new WeakMap;class Fp{constructor(...i){this.type="Logical",i.length===1?"Logical"in i[0]?(this.width=i[0].Logical.width,this.height=i[0].Logical.height):(this.width=i[0].width,this.height=i[0].height):(this.width=i[0],this.height=i[1])}toPhysical(i){return new Ii(this.width*i,this.height*i)}[$t](){return{width:this.width,height:this.height}}toJSON(){return this[$t]()}}class Ii{constructor(...i){this.type="Physical",i.length===1?"Physical"in i[0]?(this.width=i[0].Physical.width,this.height=i[0].Physical.height):(this.width=i[0].width,this.height=i[0].height):(this.width=i[0],this.height=i[1])}toLogical(i){return new Fp(this.width/i,this.height/i)}[$t](){return{width:this.width,height:this.height}}toJSON(){return this[$t]()}}class $r{constructor(i){this.size=i}toLogical(i){return this.size instanceof Fp?this.size:this.size.toLogical(i)}toPhysical(i){return this.size instanceof Ii?this.size:this.size.toPhysical(i)}[$t](){return{[`${this.size.type}`]:{width:this.size.width,height:this.size.height}}}toJSON(){return this[$t]()}}class Wp{constructor(...i){this.type="Logical",i.length===1?"Logical"in i[0]?(this.x=i[0].Logical.x,this.y=i[0].Logical.y):(this.x=i[0].x,this.y=i[0].y):(this.x=i[0],this.y=i[1])}toPhysical(i){return new Ln(this.x*i,this.y*i)}[$t](){return{x:this.x,y:this.y}}toJSON(){return this[$t]()}}class Ln{constructor(...i){this.type="Physical",i.length===1?"Physical"in i[0]?(this.x=i[0].Physical.x,this.y=i[0].Physical.y):(this.x=i[0].x,this.y=i[0].y):(this.x=i[0],this.y=i[1])}toLogical(i){return new Wp(this.x/i,this.y/i)}[$t](){return{x:this.x,y:this.y}}toJSON(){return this[$t]()}}class cl{constructor(i){this.position=i}toLogical(i){return this.position instanceof Wp?this.position:this.position.toLogical(i)}toPhysical(i){return this.position instanceof Ln?this.position:this.position.toPhysical(i)}[$t](){return{[`${this.position.type}`]:{x:this.position.x,y:this.position.y}}}toJSON(){return this[$t]()}}var xt;(function(r){r.WINDOW_RESIZED="tauri://resize",r.WINDOW_MOVED="tauri://move",r.WINDOW_CLOSE_REQUESTED="tauri://close-requested",r.WINDOW_DESTROYED="tauri://destroyed",r.WINDOW_FOCUS="tauri://focus",r.WINDOW_BLUR="tauri://blur",r.WINDOW_SCALE_FACTOR_CHANGED="tauri://scale-change",r.WINDOW_THEME_CHANGED="tauri://theme-changed",r.WINDOW_CREATED="tauri://window-created",r.WEBVIEW_CREATED="tauri://webview-created",r.DRAG_ENTER="tauri://drag-enter",r.DRAG_OVER="tauri://drag-over",r.DRAG_DROP="tauri://drag-drop",r.DRAG_LEAVE="tauri://drag-leave"})(xt||(xt={}));async function Up(r,i){await K("plugin:event|unlisten",{event:r,eventId:i})}async function Vp(r,i,l){var u;const c=typeof(l==null?void 0:l.target)=="string"?{kind:"AnyLabel",label:l.target}:(u=l==null?void 0:l.target)!==null&&u!==void 0?u:{kind:"Any"};return K("plugin:event|listen",{event:r,target:c,handler:_1(i)}).then(f=>async()=>Up(r,f))}async function P1(r,i,l){return Vp(r,u=>{Up(r,u.id),i(u)},l)}async function T1(r,i){await K("plugin:event|emit",{event:r,payload:i})}async function b1(r,i,l){await K("plugin:event|emit_to",{target:typeof r=="string"?{kind:"AnyLabel",label:r}:r,event:i,payload:l})}class Mi extends E1{constructor(i){super(i)}static async new(i,l,u){return K("plugin:image|new",{rgba:tu(i),width:l,height:u}).then(c=>new Mi(c))}static async fromBytes(i){return K("plugin:image|from_bytes",{bytes:tu(i)}).then(l=>new Mi(l))}static async fromPath(i){return K("plugin:image|from_path",{path:i}).then(l=>new Mi(l))}async rgba(){return K("plugin:image|rgba",{rid:this.rid}).then(i=>new Uint8Array(i))}async size(){return K("plugin:image|size",{rid:this.rid})}}function tu(r){return r==null?null:typeof r=="string"?r:r instanceof Mi?r.rid:r}var nu;(function(r){r[r.Critical=1]="Critical",r[r.Informational=2]="Informational"})(nu||(nu={}));class R1{constructor(i){this._preventDefault=!1,this.event=i.event,this.id=i.id}preventDefault(){this._preventDefault=!0}isPreventDefault(){return this._preventDefault}}var np;(function(r){r.None="none",r.Normal="normal",r.Indeterminate="indeterminate",r.Paused="paused",r.Error="error"})(np||(np={}));function Hp(){return new Kp(window.__TAURI_INTERNALS__.metadata.currentWindow.label,{skip:!0})}async function js(){return K("plugin:window|get_all_windows").then(r=>r.map(i=>new Kp(i,{skip:!0})))}const Fs=["tauri://created","tauri://error"];class Kp{constructor(i,l={}){var u;this.label=i,this.listeners=Object.create(null),l!=null&&l.skip||K("plugin:window|create",{options:{...l,parent:typeof l.parent=="string"?l.parent:(u=l.parent)===null||u===void 0?void 0:u.label,label:i}}).then(async()=>this.emit("tauri://created")).catch(async c=>this.emit("tauri://error",c))}static async getByLabel(i){var l;return(l=(await js()).find(u=>u.label===i))!==null&&l!==void 0?l:null}static getCurrent(){return Hp()}static async getAll(){return js()}static async getFocusedWindow(){for(const i of await js())if(await i.isFocused())return i;return null}async listen(i,l){return this._handleTauriEvent(i,l)?()=>{const u=this.listeners[i];u.splice(u.indexOf(l),1)}:Vp(i,l,{target:{kind:"Window",label:this.label}})}async once(i,l){return this._handleTauriEvent(i,l)?()=>{const u=this.listeners[i];u.splice(u.indexOf(l),1)}:P1(i,l,{target:{kind:"Window",label:this.label}})}async emit(i,l){if(Fs.includes(i)){for(const u of this.listeners[i]||[])u({event:i,id:-1,payload:l});return}return T1(i,l)}async emitTo(i,l,u){if(Fs.includes(l)){for(const c of this.listeners[l]||[])c({event:l,id:-1,payload:u});return}return b1(i,l,u)}_handleTauriEvent(i,l){return Fs.includes(i)?(i in this.listeners?this.listeners[i].push(l):this.listeners[i]=[l],!0):!1}async scaleFactor(){return K("plugin:window|scale_factor",{label:this.label})}async innerPosition(){return K("plugin:window|inner_position",{label:this.label}).then(i=>new Ln(i))}async outerPosition(){return K("plugin:window|outer_position",{label:this.label}).then(i=>new Ln(i))}async innerSize(){return K("plugin:window|inner_size",{label:this.label}).then(i=>new Ii(i))}async outerSize(){return K("plugin:window|outer_size",{label:this.label}).then(i=>new Ii(i))}async isFullscreen(){return K("plugin:window|is_fullscreen",{label:this.label})}async isMinimized(){return K("plugin:window|is_minimized",{label:this.label})}async isMaximized(){return K("plugin:window|is_maximized",{label:this.label})}async isFocused(){return K("plugin:window|is_focused",{label:this.label})}async isDecorated(){return K("plugin:window|is_decorated",{label:this.label})}async isResizable(){return K("plugin:window|is_resizable",{label:this.label})}async isMaximizable(){return K("plugin:window|is_maximizable",{label:this.label})}async isMinimizable(){return K("plugin:window|is_minimizable",{label:this.label})}async isClosable(){return K("plugin:window|is_closable",{label:this.label})}async isVisible(){return K("plugin:window|is_visible",{label:this.label})}async title(){return K("plugin:window|title",{label:this.label})}async theme(){return K("plugin:window|theme",{label:this.label})}async center(){return K("plugin:window|center",{label:this.label})}async requestUserAttention(i){let l=null;return i&&(i===nu.Critical?l={type:"Critical"}:l={type:"Informational"}),K("plugin:window|request_user_attention",{label:this.label,value:l})}async setResizable(i){return K("plugin:window|set_resizable",{label:this.label,value:i})}async setEnabled(i){return K("plugin:window|set_enabled",{label:this.label,value:i})}async isEnabled(){return K("plugin:window|is_enabled",{label:this.label})}async setMaximizable(i){return K("plugin:window|set_maximizable",{label:this.label,value:i})}async setMinimizable(i){return K("plugin:window|set_minimizable",{label:this.label,value:i})}async setClosable(i){return K("plugin:window|set_closable",{label:this.label,value:i})}async setTitle(i){return K("plugin:window|set_title",{label:this.label,value:i})}async maximize(){return K("plugin:window|maximize",{label:this.label})}async unmaximize(){return K("plugin:window|unmaximize",{label:this.label})}async toggleMaximize(){return K("plugin:window|toggle_maximize",{label:this.label})}async minimize(){return K("plugin:window|minimize",{label:this.label})}async unminimize(){return K("plugin:window|unminimize",{label:this.label})}async show(){return K("plugin:window|show",{label:this.label})}async hide(){return K("plugin:window|hide",{label:this.label})}async close(){return K("plugin:window|close",{label:this.label})}async destroy(){return K("plugin:window|destroy",{label:this.label})}async setDecorations(i){return K("plugin:window|set_decorations",{label:this.label,value:i})}async setShadow(i){return K("plugin:window|set_shadow",{label:this.label,value:i})}async setEffects(i){return K("plugin:window|set_effects",{label:this.label,value:i})}async clearEffects(){return K("plugin:window|set_effects",{label:this.label,value:null})}async setAlwaysOnTop(i){return K("plugin:window|set_always_on_top",{label:this.label,value:i})}async setAlwaysOnBottom(i){return K("plugin:window|set_always_on_bottom",{label:this.label,value:i})}async setContentProtected(i){return K("plugin:window|set_content_protected",{label:this.label,value:i})}async setSize(i){return K("plugin:window|set_size",{label:this.label,value:i instanceof $r?i:new $r(i)})}async setMinSize(i){return K("plugin:window|set_min_size",{label:this.label,value:i instanceof $r?i:i?new $r(i):null})}async setMaxSize(i){return K("plugin:window|set_max_size",{label:this.label,value:i instanceof $r?i:i?new $r(i):null})}async setSizeConstraints(i){function l(u){return u?{Logical:u}:null}return K("plugin:window|set_size_constraints",{label:this.label,value:{minWidth:l(i==null?void 0:i.minWidth),minHeight:l(i==null?void 0:i.minHeight),maxWidth:l(i==null?void 0:i.maxWidth),maxHeight:l(i==null?void 0:i.maxHeight)}})}async setPosition(i){return K("plugin:window|set_position",{label:this.label,value:i instanceof cl?i:new cl(i)})}async setFullscreen(i){return K("plugin:window|set_fullscreen",{label:this.label,value:i})}async setFocus(){return K("plugin:window|set_focus",{label:this.label})}async setIcon(i){return K("plugin:window|set_icon",{label:this.label,value:tu(i)})}async setSkipTaskbar(i){return K("plugin:window|set_skip_taskbar",{label:this.label,value:i})}async setCursorGrab(i){return K("plugin:window|set_cursor_grab",{label:this.label,value:i})}async setCursorVisible(i){return K("plugin:window|set_cursor_visible",{label:this.label,value:i})}async setCursorIcon(i){return K("plugin:window|set_cursor_icon",{label:this.label,value:i})}async setBackgroundColor(i){return K("plugin:window|set_background_color",{color:i})}async setCursorPosition(i){return K("plugin:window|set_cursor_position",{label:this.label,value:i instanceof cl?i:new cl(i)})}async setIgnoreCursorEvents(i){return K("plugin:window|set_ignore_cursor_events",{label:this.label,value:i})}async startDragging(){return K("plugin:window|start_dragging",{label:this.label})}async startResizeDragging(i){return K("plugin:window|start_resize_dragging",{label:this.label,value:i})}async setProgressBar(i){return K("plugin:window|set_progress_bar",{label:this.label,value:i})}async setVisibleOnAllWorkspaces(i){return K("plugin:window|set_visible_on_all_workspaces",{label:this.label,value:i})}async setTitleBarStyle(i){return K("plugin:window|set_title_bar_style",{label:this.label,value:i})}async setTheme(i){return K("plugin:window|set_theme",{label:this.label,value:i})}async onResized(i){return this.listen(xt.WINDOW_RESIZED,l=>{l.payload=new Ii(l.payload),i(l)})}async onMoved(i){return this.listen(xt.WINDOW_MOVED,l=>{l.payload=new Ln(l.payload),i(l)})}async onCloseRequested(i){return this.listen(xt.WINDOW_CLOSE_REQUESTED,async l=>{const u=new R1(l);await i(u),u.isPreventDefault()||await this.destroy()})}async onDragDropEvent(i){const l=await this.listen(xt.DRAG_ENTER,p=>{i({...p,payload:{type:"enter",paths:p.payload.paths,position:new Ln(p.payload.position)}})}),u=await this.listen(xt.DRAG_OVER,p=>{i({...p,payload:{type:"over",position:new Ln(p.payload.position)}})}),c=await this.listen(xt.DRAG_DROP,p=>{i({...p,payload:{type:"drop",paths:p.payload.paths,position:new Ln(p.payload.position)}})}),f=await this.listen(xt.DRAG_LEAVE,p=>{i({...p,payload:{type:"leave"}})});return()=>{l(),c(),u(),f()}}async onFocusChanged(i){const l=await this.listen(xt.WINDOW_FOCUS,c=>{i({...c,payload:!0})}),u=await this.listen(xt.WINDOW_BLUR,c=>{i({...c,payload:!1})});return()=>{l(),u()}}async onScaleChanged(i){return this.listen(xt.WINDOW_SCALE_FACTOR_CHANGED,i)}async onThemeChanged(i){return this.listen(xt.WINDOW_THEME_CHANGED,i)}}var rp;(function(r){r.AppearanceBased="appearanceBased",r.Light="light",r.Dark="dark",r.MediumLight="mediumLight",r.UltraDark="ultraDark",r.Titlebar="titlebar",r.Selection="selection",r.Menu="menu",r.Popover="popover",r.Sidebar="sidebar",r.HeaderView="headerView",r.Sheet="sheet",r.WindowBackground="windowBackground",r.HudWindow="hudWindow",r.FullScreenUI="fullScreenUI",r.Tooltip="tooltip",r.ContentBackground="contentBackground",r.UnderWindowBackground="underWindowBackground",r.UnderPageBackground="underPageBackground",r.Mica="mica",r.Blur="blur",r.Acrylic="acrylic",r.Tabbed="tabbed",r.TabbedDark="tabbedDark",r.TabbedLight="tabbedLight"})(rp||(rp={}));var ip;(function(r){r.FollowsWindowActiveState="followsWindowActiveState",r.Active="active",r.Inactive="inactive"})(ip||(ip={}));const O1="/assets/icon-BlfaAlWe.svg",vl=Hp();function z1(){const[r,i]=U.useState(null);return U.useEffect(()=>{const l=vl.listen("app://update-progress",u=>{i(u.payload)});return()=>{l.then(u=>u())}},[]),r}function N1(){const[r,i]=U.useState(!1);U.useEffect(()=>{vl.emit("app://update");const u=vl.listen("app://update-error",()=>{i(!0)});return()=>{u.then(c=>c())}},[]);const l=()=>{i(!1),vl.emit("app://update")};return le.jsxs(le.Fragment,{children:[le.jsx(f1,{}),le.jsx(cn,{sx:{position:"absolute",inset:0},display:"flex",alignItems:"center",px:2,"data-tauri-drag-region":!0,children:le.jsxs(cn,{display:"flex",alignItems:"center",flex:"1","data-tauri-drag-region":!0,children:[le.jsx(cn,{component:"img",src:O1,alt:"logo",sx:{width:"4rem",height:"4rem"},"data-tauri-drag-region":!0}),le.jsx(cn,{flex:1,ml:2,children:r?le.jsx(A1,{onRetry:l}):le.jsx($1,{})})]})})]})}function $1(){const r=z1();return le.jsxs(le.Fragment,{children:[le.jsx(ku,{variant:"h1",fontSize:"1rem","data-tauri-drag-region":!0,children:"Updating the GUI components..."}),le.jsx(cn,{mt:1,children:le.jsx(L1,{value:r})})]})}function A1({onRetry:r}){return le.jsxs(le.Fragment,{children:[le.jsx(ku,{variant:"h1",fontSize:"1rem","data-tauri-drag-region":!0,children:"Failed to update the GUI components."}),le.jsx(cn,{mt:1,"data-tauri-drag-region":!0,children:le.jsx(l1,{variant:"contained",color:"primary",size:"small",onClick:r,sx:{textTransform:"none"},children:"Retry"})})]})}function L1(r){const{value:i}=r;return le.jsxs(cn,{sx:{display:"flex",alignItems:"center"},children:[le.jsx(cn,{flex:"1",children:le.jsx(x1,{variant:i===null?"indeterminate":"determinate",value:i??0,sx:{py:1.2,".MuiLinearProgress-bar":{transition:"none"}}})}),i!==null&&le.jsx(cn,{sx:{minWidth:35,textAlign:"right",ml:1},children:le.jsx(ku,{variant:"body2",color:"text.secondary",children:`${Math.round(i)}%`})})]})}const I1=t0.createRoot(document.getElementById("root"));I1.render(le.jsx(N1,{})); diff --git a/apps/gpgui-helper/dist/assets/main-c159dd55.js b/apps/gpgui-helper/dist/assets/main-c159dd55.js deleted file mode 100644 index d34e949f..00000000 --- a/apps/gpgui-helper/dist/assets/main-c159dd55.js +++ /dev/null @@ -1,188 +0,0 @@ -function dh(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const l of i.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();function ph(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function sn(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var jf={exports:{}},Bi={},Ff={exports:{}},D={};/** - * @license React - * react.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var yo=Symbol.for("react.element"),mh=Symbol.for("react.portal"),hh=Symbol.for("react.fragment"),yh=Symbol.for("react.strict_mode"),gh=Symbol.for("react.profiler"),vh=Symbol.for("react.provider"),wh=Symbol.for("react.context"),xh=Symbol.for("react.forward_ref"),Sh=Symbol.for("react.suspense"),kh=Symbol.for("react.memo"),_h=Symbol.for("react.lazy"),Uu=Symbol.iterator;function Ch(e){return e===null||typeof e!="object"?null:(e=Uu&&e[Uu]||e["@@iterator"],typeof e=="function"?e:null)}var Wf={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Bf=Object.assign,Uf={};function fr(e,t,n){this.props=e,this.context=t,this.refs=Uf,this.updater=n||Wf}fr.prototype.isReactComponent={};fr.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};fr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Vf(){}Vf.prototype=fr.prototype;function _s(e,t,n){this.props=e,this.context=t,this.refs=Uf,this.updater=n||Wf}var Cs=_s.prototype=new Vf;Cs.constructor=_s;Bf(Cs,fr.prototype);Cs.isPureReactComponent=!0;var Vu=Array.isArray,Hf=Object.prototype.hasOwnProperty,Es={current:null},Kf={key:!0,ref:!0,__self:!0,__source:!0};function Qf(e,t,n){var r,o={},i=null,l=null;if(t!=null)for(r in t.ref!==void 0&&(l=t.ref),t.key!==void 0&&(i=""+t.key),t)Hf.call(t,r)&&!Kf.hasOwnProperty(r)&&(o[r]=t[r]);var a=arguments.length-2;if(a===1)o.children=n;else if(1>>1,ue=E[Z];if(0>>1;Zo(Bt,N))cto(Rn,Bt)?(E[Z]=Rn,E[ct]=N,Z=ct):(E[Z]=Bt,E[Te]=N,Z=Te);else if(cto(Rn,N))E[Z]=Rn,E[ct]=N,Z=ct;else break e}}return z}function o(E,z){var N=E.sortIndex-z.sortIndex;return N!==0?N:E.id-z.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var l=Date,a=l.now();e.unstable_now=function(){return l.now()-a}}var s=[],u=[],p=1,m=null,d=3,v=!1,g=!1,y=!1,$=typeof setTimeout=="function"?setTimeout:null,f=typeof clearTimeout=="function"?clearTimeout:null,c=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function h(E){for(var z=n(u);z!==null;){if(z.callback===null)r(u);else if(z.startTime<=E)r(u),z.sortIndex=z.expirationTime,t(s,z);else break;z=n(u)}}function w(E){if(y=!1,h(E),!g)if(n(s)!==null)g=!0,$e(x);else{var z=n(u);z!==null&&Tt(w,z.startTime-E)}}function x(E,z){g=!1,y&&(y=!1,f(P),P=-1),v=!0;var N=d;try{for(h(z),m=n(s);m!==null&&(!(m.expirationTime>z)||E&&!W());){var Z=m.callback;if(typeof Z=="function"){m.callback=null,d=m.priorityLevel;var ue=Z(m.expirationTime<=z);z=e.unstable_now(),typeof ue=="function"?m.callback=ue:m===n(s)&&r(s),h(z)}else r(s);m=n(s)}if(m!==null)var Tn=!0;else{var Te=n(u);Te!==null&&Tt(w,Te.startTime-z),Tn=!1}return Tn}finally{m=null,d=N,v=!1}}var k=!1,S=null,P=-1,I=5,O=-1;function W(){return!(e.unstable_now()-OE||125Z?(E.sortIndex=N,t(u,E),n(s)===null&&E===n(u)&&(y?(f(P),P=-1):y=!0,Tt(w,N-Z))):(E.sortIndex=ue,t(s,E),g||v||(g=!0,$e(x))),E},e.unstable_shouldYield=W,e.unstable_wrapCallback=function(E){var z=d;return function(){var N=d;d=z;try{return E.apply(this,arguments)}finally{d=N}}}})(Zf);qf.exports=Zf;var Lh=qf.exports;/** - * @license React - * react-dom.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var Ih=C,Qe=Lh;function _(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),va=Object.prototype.hasOwnProperty,Dh=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Qu={},Gu={};function Ah(e){return va.call(Gu,e)?!0:va.call(Qu,e)?!1:Dh.test(e)?Gu[e]=!0:(Qu[e]=!0,!1)}function jh(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Fh(e,t,n,r){if(t===null||typeof t>"u"||jh(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function ze(e,t,n,r,o,i,l){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=l}var xe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){xe[e]=new ze(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];xe[t]=new ze(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){xe[e]=new ze(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){xe[e]=new ze(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){xe[e]=new ze(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){xe[e]=new ze(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){xe[e]=new ze(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){xe[e]=new ze(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){xe[e]=new ze(e,5,!1,e.toLowerCase(),null,!1,!1)});var $s=/[\-:]([a-z])/g;function Ts(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace($s,Ts);xe[t]=new ze(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace($s,Ts);xe[t]=new ze(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace($s,Ts);xe[t]=new ze(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){xe[e]=new ze(e,1,!1,e.toLowerCase(),null,!1,!1)});xe.xlinkHref=new ze("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){xe[e]=new ze(e,1,!1,e.toLowerCase(),null,!0,!0)});function Rs(e,t,n,r){var o=xe.hasOwnProperty(t)?xe[t]:null;(o!==null?o.type!==0:r||!(2a||o[l]!==i[a]){var s=` -`+o[l].replace(" at new "," at ");return e.displayName&&s.includes("")&&(s=s.replace("",e.displayName)),s}while(1<=l&&0<=a);break}}}finally{Ul=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Mr(e):""}function Wh(e){switch(e.tag){case 5:return Mr(e.type);case 16:return Mr("Lazy");case 13:return Mr("Suspense");case 19:return Mr("SuspenseList");case 0:case 2:case 15:return e=Vl(e.type,!1),e;case 11:return e=Vl(e.type.render,!1),e;case 1:return e=Vl(e.type,!0),e;default:return""}}function ka(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case An:return"Fragment";case Dn:return"Portal";case wa:return"Profiler";case Os:return"StrictMode";case xa:return"Suspense";case Sa:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case td:return(e.displayName||"Context")+".Consumer";case ed:return(e._context.displayName||"Context")+".Provider";case Ms:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case bs:return t=e.displayName||null,t!==null?t:ka(e.type)||"Memo";case Vt:t=e._payload,e=e._init;try{return ka(e(t))}catch{}}return null}function Bh(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ka(t);case 8:return t===Os?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function ln(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function rd(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Uh(e){var t=rd(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(l){r=""+l,i.call(this,l)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(l){r=""+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Mo(e){e._valueTracker||(e._valueTracker=Uh(e))}function od(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=rd(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function mi(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function _a(e,t){var n=t.checked;return te({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Xu(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=ln(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function id(e,t){t=t.checked,t!=null&&Rs(e,"checked",t,!1)}function Ca(e,t){id(e,t);var n=ln(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Ea(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ea(e,t.type,ln(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function qu(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Ea(e,t,n){(t!=="number"||mi(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var br=Array.isArray;function Yn(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=bo.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Kr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Lr={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Vh=["Webkit","ms","Moz","O"];Object.keys(Lr).forEach(function(e){Vh.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Lr[t]=Lr[e]})});function ud(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Lr.hasOwnProperty(e)&&Lr[e]?(""+t).trim():t+"px"}function cd(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=ud(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var Hh=te({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Ta(e,t){if(t){if(Hh[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(_(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(_(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(_(61))}if(t.style!=null&&typeof t.style!="object")throw Error(_(62))}}function Ra(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Oa=null;function zs(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ma=null,Xn=null,qn=null;function ec(e){if(e=wo(e)){if(typeof Ma!="function")throw Error(_(280));var t=e.stateNode;t&&(t=Qi(t),Ma(e.stateNode,e.type,t))}}function fd(e){Xn?qn?qn.push(e):qn=[e]:Xn=e}function dd(){if(Xn){var e=Xn,t=qn;if(qn=Xn=null,ec(e),t)for(e=0;e>>=0,e===0?32:31-(n0(e)/r0|0)|0}var zo=64,No=4194304;function zr(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function vi(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,l=n&268435455;if(l!==0){var a=l&~o;a!==0?r=zr(a):(i&=l,i!==0&&(r=zr(i)))}else l=n&~o,l!==0?r=zr(l):i!==0&&(r=zr(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function go(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-ht(t),e[t]=n}function a0(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Dr),uc=String.fromCharCode(32),cc=!1;function bd(e,t){switch(e){case"keyup":return L0.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function zd(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var jn=!1;function D0(e,t){switch(e){case"compositionend":return zd(t);case"keypress":return t.which!==32?null:(cc=!0,uc);case"textInput":return e=t.data,e===uc&&cc?null:e;default:return null}}function A0(e,t){if(jn)return e==="compositionend"||!Ws&&bd(e,t)?(e=Od(),ei=As=Yt=null,jn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=mc(n)}}function Dd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Dd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Ad(){for(var e=window,t=mi();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=mi(e.document)}return t}function Bs(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Q0(e){var t=Ad(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Dd(n.ownerDocument.documentElement,n)){if(r!==null&&Bs(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=hc(n,i);var l=hc(n,r);o&&l&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==l.node||e.focusOffset!==l.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(l.node,l.offset)):(t.setEnd(l.node,l.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Fn=null,Da=null,jr=null,Aa=!1;function yc(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Aa||Fn==null||Fn!==mi(r)||(r=Fn,"selectionStart"in r&&Bs(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),jr&&Zr(jr,r)||(jr=r,r=Si(Da,"onSelect"),0Un||(e.current=Va[Un],Va[Un]=null,Un--)}function K(e,t){Un++,Va[Un]=e.current,e.current=t}var an={},Pe=cn(an),Ie=cn(!1),xn=an;function or(e,t){var n=e.type.contextTypes;if(!n)return an;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function De(e){return e=e.childContextTypes,e!=null}function _i(){Y(Ie),Y(Pe)}function _c(e,t,n){if(Pe.current!==an)throw Error(_(168));K(Pe,t),K(Ie,n)}function Qd(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(_(108,Bh(e)||"Unknown",o));return te({},n,r)}function Ci(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||an,xn=Pe.current,K(Pe,e),K(Ie,Ie.current),!0}function Cc(e,t,n){var r=e.stateNode;if(!r)throw Error(_(169));n?(e=Qd(e,t,xn),r.__reactInternalMemoizedMergedChildContext=e,Y(Ie),Y(Pe),K(Pe,e)):Y(Ie),K(Ie,n)}var Mt=null,Gi=!1,oa=!1;function Gd(e){Mt===null?Mt=[e]:Mt.push(e)}function iy(e){Gi=!0,Gd(e)}function fn(){if(!oa&&Mt!==null){oa=!0;var e=0,t=B;try{var n=Mt;for(B=1;e>=l,o-=l,bt=1<<32-ht(t)+o|n<P?(I=S,S=null):I=S.sibling;var O=d(f,S,h[P],w);if(O===null){S===null&&(S=I);break}e&&S&&O.alternate===null&&t(f,S),c=i(O,c,P),k===null?x=O:k.sibling=O,k=O,S=I}if(P===h.length)return n(f,S),q&&dn(f,P),x;if(S===null){for(;PP?(I=S,S=null):I=S.sibling;var W=d(f,S,O.value,w);if(W===null){S===null&&(S=I);break}e&&S&&W.alternate===null&&t(f,S),c=i(W,c,P),k===null?x=W:k.sibling=W,k=W,S=I}if(O.done)return n(f,S),q&&dn(f,P),x;if(S===null){for(;!O.done;P++,O=h.next())O=m(f,O.value,w),O!==null&&(c=i(O,c,P),k===null?x=O:k.sibling=O,k=O);return q&&dn(f,P),x}for(S=r(f,S);!O.done;P++,O=h.next())O=v(S,f,P,O.value,w),O!==null&&(e&&O.alternate!==null&&S.delete(O.key===null?P:O.key),c=i(O,c,P),k===null?x=O:k.sibling=O,k=O);return e&&S.forEach(function(H){return t(f,H)}),q&&dn(f,P),x}function $(f,c,h,w){if(typeof h=="object"&&h!==null&&h.type===An&&h.key===null&&(h=h.props.children),typeof h=="object"&&h!==null){switch(h.$$typeof){case Oo:e:{for(var x=h.key,k=c;k!==null;){if(k.key===x){if(x=h.type,x===An){if(k.tag===7){n(f,k.sibling),c=o(k,h.props.children),c.return=f,f=c;break e}}else if(k.elementType===x||typeof x=="object"&&x!==null&&x.$$typeof===Vt&&$c(x)===k.type){n(f,k.sibling),c=o(k,h.props),c.ref=Pr(f,k,h),c.return=f,f=c;break e}n(f,k);break}else t(f,k);k=k.sibling}h.type===An?(c=wn(h.props.children,f.mode,w,h.key),c.return=f,f=c):(w=si(h.type,h.key,h.props,null,f.mode,w),w.ref=Pr(f,c,h),w.return=f,f=w)}return l(f);case Dn:e:{for(k=h.key;c!==null;){if(c.key===k)if(c.tag===4&&c.stateNode.containerInfo===h.containerInfo&&c.stateNode.implementation===h.implementation){n(f,c.sibling),c=o(c,h.children||[]),c.return=f,f=c;break e}else{n(f,c);break}else t(f,c);c=c.sibling}c=da(h,f.mode,w),c.return=f,f=c}return l(f);case Vt:return k=h._init,$(f,c,k(h._payload),w)}if(br(h))return g(f,c,h,w);if(Sr(h))return y(f,c,h,w);Wo(f,h)}return typeof h=="string"&&h!==""||typeof h=="number"?(h=""+h,c!==null&&c.tag===6?(n(f,c.sibling),c=o(c,h),c.return=f,f=c):(n(f,c),c=fa(h,f.mode,w),c.return=f,f=c),l(f)):n(f,c)}return $}var lr=Zd(!0),Jd=Zd(!1),$i=cn(null),Ti=null,Kn=null,Ks=null;function Qs(){Ks=Kn=Ti=null}function Gs(e){var t=$i.current;Y($i),e._currentValue=t}function Qa(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Jn(e,t){Ti=e,Ks=Kn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Le=!0),e.firstContext=null)}function ot(e){var t=e._currentValue;if(Ks!==e)if(e={context:e,memoizedValue:t,next:null},Kn===null){if(Ti===null)throw Error(_(308));Kn=e,Ti.dependencies={lanes:0,firstContext:e}}else Kn=Kn.next=e;return t}var hn=null;function Ys(e){hn===null?hn=[e]:hn.push(e)}function ep(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,Ys(t)):(n.next=o.next,o.next=n),t.interleaved=n,At(e,r)}function At(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Ht=!1;function Xs(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function tp(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Lt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function tn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,A&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,At(e,n)}return o=r.interleaved,o===null?(t.next=t,Ys(r)):(t.next=o.next,o.next=t),r.interleaved=t,At(e,n)}function ni(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ls(e,n)}}function Tc(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var l={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=l:i=i.next=l,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Ri(e,t,n,r){var o=e.updateQueue;Ht=!1;var i=o.firstBaseUpdate,l=o.lastBaseUpdate,a=o.shared.pending;if(a!==null){o.shared.pending=null;var s=a,u=s.next;s.next=null,l===null?i=u:l.next=u,l=s;var p=e.alternate;p!==null&&(p=p.updateQueue,a=p.lastBaseUpdate,a!==l&&(a===null?p.firstBaseUpdate=u:a.next=u,p.lastBaseUpdate=s))}if(i!==null){var m=o.baseState;l=0,p=u=s=null,a=i;do{var d=a.lane,v=a.eventTime;if((r&d)===d){p!==null&&(p=p.next={eventTime:v,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var g=e,y=a;switch(d=t,v=n,y.tag){case 1:if(g=y.payload,typeof g=="function"){m=g.call(v,m,d);break e}m=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=y.payload,d=typeof g=="function"?g.call(v,m,d):g,d==null)break e;m=te({},m,d);break e;case 2:Ht=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,d=o.effects,d===null?o.effects=[a]:d.push(a))}else v={eventTime:v,lane:d,tag:a.tag,payload:a.payload,callback:a.callback,next:null},p===null?(u=p=v,s=m):p=p.next=v,l|=d;if(a=a.next,a===null){if(a=o.shared.pending,a===null)break;d=a,a=d.next,d.next=null,o.lastBaseUpdate=d,o.shared.pending=null}}while(1);if(p===null&&(s=m),o.baseState=s,o.firstBaseUpdate=u,o.lastBaseUpdate=p,t=o.shared.interleaved,t!==null){o=t;do l|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);_n|=l,e.lanes=l,e.memoizedState=m}}function Rc(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=la.transition;la.transition={};try{e(!1),t()}finally{B=n,la.transition=r}}function vp(){return it().memoizedState}function uy(e,t,n){var r=rn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},wp(e))xp(t,n);else if(n=ep(e,t,n,r),n!==null){var o=Me();yt(n,e,r,o),Sp(n,t,r)}}function cy(e,t,n){var r=rn(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(wp(e))xp(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var l=t.lastRenderedState,a=i(l,n);if(o.hasEagerState=!0,o.eagerState=a,gt(a,l)){var s=t.interleaved;s===null?(o.next=o,Ys(t)):(o.next=s.next,s.next=o),t.interleaved=o;return}}catch{}finally{}n=ep(e,t,o,r),n!==null&&(o=Me(),yt(n,e,r,o),Sp(n,t,r))}}function wp(e){var t=e.alternate;return e===ee||t!==null&&t===ee}function xp(e,t){Fr=Mi=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Sp(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ls(e,n)}}var bi={readContext:ot,useCallback:ke,useContext:ke,useEffect:ke,useImperativeHandle:ke,useInsertionEffect:ke,useLayoutEffect:ke,useMemo:ke,useReducer:ke,useRef:ke,useState:ke,useDebugValue:ke,useDeferredValue:ke,useTransition:ke,useMutableSource:ke,useSyncExternalStore:ke,useId:ke,unstable_isNewReconciler:!1},fy={readContext:ot,useCallback:function(e,t){return xt().memoizedState=[e,t===void 0?null:t],e},useContext:ot,useEffect:Mc,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,oi(4194308,4,pp.bind(null,t,e),n)},useLayoutEffect:function(e,t){return oi(4194308,4,e,t)},useInsertionEffect:function(e,t){return oi(4,2,e,t)},useMemo:function(e,t){var n=xt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=xt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=uy.bind(null,ee,e),[r.memoizedState,e]},useRef:function(e){var t=xt();return e={current:e},t.memoizedState=e},useState:Oc,useDebugValue:ou,useDeferredValue:function(e){return xt().memoizedState=e},useTransition:function(){var e=Oc(!1),t=e[0];return e=sy.bind(null,e[1]),xt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ee,o=xt();if(q){if(n===void 0)throw Error(_(407));n=n()}else{if(n=t(),he===null)throw Error(_(349));kn&30||ip(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,Mc(ap.bind(null,r,i,e),[e]),r.flags|=2048,lo(9,lp.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=xt(),t=he.identifierPrefix;if(q){var n=zt,r=bt;n=(r&~(1<<32-ht(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=oo++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),n==="select"&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[_t]=t,e[to]=r,Mp(e,t,!1,!1),t.stateNode=e;e:{switch(l=Ra(n,r),n){case"dialog":Q("cancel",e),Q("close",e),o=r;break;case"iframe":case"object":case"embed":Q("load",e),o=r;break;case"video":case"audio":for(o=0;our&&(t.flags|=128,r=!0,$r(i,!1),t.lanes=4194304)}else{if(!r)if(e=Oi(l),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),$r(i,!0),i.tail===null&&i.tailMode==="hidden"&&!l.alternate&&!q)return _e(t),null}else 2*ie()-i.renderingStartTime>ur&&n!==1073741824&&(t.flags|=128,r=!0,$r(i,!1),t.lanes=4194304);i.isBackwards?(l.sibling=t.child,t.child=l):(n=i.last,n!==null?n.sibling=l:t.child=l,i.last=l)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=ie(),t.sibling=null,n=J.current,K(J,r?n&1|2:n&1),t):(_e(t),null);case 22:case 23:return cu(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Be&1073741824&&(_e(t),t.subtreeFlags&6&&(t.flags|=8192)):_e(t),null;case 24:return null;case 25:return null}throw Error(_(156,t.tag))}function wy(e,t){switch(Vs(t),t.tag){case 1:return De(t.type)&&_i(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ar(),Y(Ie),Y(Pe),Js(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Zs(t),null;case 13:if(Y(J),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(_(340));ir()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Y(J),null;case 4:return ar(),null;case 10:return Gs(t.type._context),null;case 22:case 23:return cu(),null;case 24:return null;default:return null}}var Uo=!1,Ee=!1,xy=typeof WeakSet=="function"?WeakSet:Set,T=null;function Qn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){oe(e,t,r)}else n.current=null}function ns(e,t,n){try{n()}catch(r){oe(e,t,r)}}var Bc=!1;function Sy(e,t){if(ja=wi,e=Ad(),Bs(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var l=0,a=-1,s=-1,u=0,p=0,m=e,d=null;t:for(;;){for(var v;m!==n||o!==0&&m.nodeType!==3||(a=l+o),m!==i||r!==0&&m.nodeType!==3||(s=l+r),m.nodeType===3&&(l+=m.nodeValue.length),(v=m.firstChild)!==null;)d=m,m=v;for(;;){if(m===e)break t;if(d===n&&++u===o&&(a=l),d===i&&++p===r&&(s=l),(v=m.nextSibling)!==null)break;m=d,d=m.parentNode}m=v}n=a===-1||s===-1?null:{start:a,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(Fa={focusedElem:e,selectionRange:n},wi=!1,T=t;T!==null;)if(t=T,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,T=e;else for(;T!==null;){t=T;try{var g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var y=g.memoizedProps,$=g.memoizedState,f=t.stateNode,c=f.getSnapshotBeforeUpdate(t.elementType===t.type?y:dt(t.type,y),$);f.__reactInternalSnapshotBeforeUpdate=c}break;case 3:var h=t.stateNode.containerInfo;h.nodeType===1?h.textContent="":h.nodeType===9&&h.documentElement&&h.removeChild(h.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(_(163))}}catch(w){oe(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,T=e;break}T=t.return}return g=Bc,Bc=!1,g}function Wr(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&ns(t,n,i)}o=o.next}while(o!==r)}}function qi(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function rs(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Np(e){var t=e.alternate;t!==null&&(e.alternate=null,Np(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[_t],delete t[to],delete t[Ua],delete t[ry],delete t[oy])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Lp(e){return e.tag===5||e.tag===3||e.tag===4}function Uc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Lp(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function os(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=ki));else if(r!==4&&(e=e.child,e!==null))for(os(e,t,n),e=e.sibling;e!==null;)os(e,t,n),e=e.sibling}function is(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(is(e,t,n),e=e.sibling;e!==null;)is(e,t,n),e=e.sibling}var ge=null,pt=!1;function Ut(e,t,n){for(n=n.child;n!==null;)Ip(e,t,n),n=n.sibling}function Ip(e,t,n){if(Ct&&typeof Ct.onCommitFiberUnmount=="function")try{Ct.onCommitFiberUnmount(Ui,n)}catch{}switch(n.tag){case 5:Ee||Qn(n,t);case 6:var r=ge,o=pt;ge=null,Ut(e,t,n),ge=r,pt=o,ge!==null&&(pt?(e=ge,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ge.removeChild(n.stateNode));break;case 18:ge!==null&&(pt?(e=ge,n=n.stateNode,e.nodeType===8?ra(e.parentNode,n):e.nodeType===1&&ra(e,n),Xr(e)):ra(ge,n.stateNode));break;case 4:r=ge,o=pt,ge=n.stateNode.containerInfo,pt=!0,Ut(e,t,n),ge=r,pt=o;break;case 0:case 11:case 14:case 15:if(!Ee&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,l=i.destroy;i=i.tag,l!==void 0&&(i&2||i&4)&&ns(n,t,l),o=o.next}while(o!==r)}Ut(e,t,n);break;case 1:if(!Ee&&(Qn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){oe(n,t,a)}Ut(e,t,n);break;case 21:Ut(e,t,n);break;case 22:n.mode&1?(Ee=(r=Ee)||n.memoizedState!==null,Ut(e,t,n),Ee=r):Ut(e,t,n);break;default:Ut(e,t,n)}}function Vc(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new xy),t.forEach(function(r){var o=Oy.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function ft(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=l),r&=~i}if(r=o,r=ie()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*_y(r/1960))-r,10e?16:e,Xt===null)var r=!1;else{if(e=Xt,Xt=null,Li=0,A&6)throw Error(_(331));var o=A;for(A|=4,T=e.current;T!==null;){var i=T,l=i.child;if(T.flags&16){var a=i.deletions;if(a!==null){for(var s=0;sie()-su?vn(e,0):au|=n),Ae(e,t)}function Vp(e,t){t===0&&(e.mode&1?(t=No,No<<=1,!(No&130023424)&&(No=4194304)):t=1);var n=Me();e=At(e,t),e!==null&&(go(e,t,n),Ae(e,n))}function Ry(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Vp(e,n)}function Oy(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(_(314))}r!==null&&r.delete(t),Vp(e,n)}var Hp;Hp=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ie.current)Le=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Le=!1,gy(e,t,n);Le=!!(e.flags&131072)}else Le=!1,q&&t.flags&1048576&&Yd(t,Pi,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;ii(e,t),e=t.pendingProps;var o=or(t,Pe.current);Jn(t,n),o=tu(null,t,r,e,o,n);var i=nu();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,De(r)?(i=!0,Ci(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Xs(t),o.updater=Xi,t.stateNode=o,o._reactInternals=t,Ya(t,r,e,n),t=Za(null,t,r,!0,i,n)):(t.tag=0,q&&i&&Us(t),Re(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(ii(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=by(r),e=dt(r,e),o){case 0:t=qa(null,t,r,e,n);break e;case 1:t=jc(null,t,r,e,n);break e;case 11:t=Dc(null,t,r,e,n);break e;case 14:t=Ac(null,t,r,dt(r.type,e),n);break e}throw Error(_(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:dt(r,o),qa(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:dt(r,o),jc(e,t,r,o,n);case 3:e:{if(Tp(t),e===null)throw Error(_(387));r=t.pendingProps,i=t.memoizedState,o=i.element,tp(e,t),Ri(t,r,null,n);var l=t.memoizedState;if(r=l.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=sr(Error(_(423)),t),t=Fc(e,t,r,n,o);break e}else if(r!==o){o=sr(Error(_(424)),t),t=Fc(e,t,r,n,o);break e}else for(Ve=en(t.stateNode.containerInfo.firstChild),He=t,q=!0,mt=null,n=Jd(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ir(),r===o){t=jt(e,t,n);break e}Re(e,t,r,n)}t=t.child}return t;case 5:return np(t),e===null&&Ka(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,l=o.children,Wa(r,o)?l=null:i!==null&&Wa(r,i)&&(t.flags|=32),$p(e,t),Re(e,t,l,n),t.child;case 6:return e===null&&Ka(t),null;case 13:return Rp(e,t,n);case 4:return qs(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=lr(t,null,r,n):Re(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:dt(r,o),Dc(e,t,r,o,n);case 7:return Re(e,t,t.pendingProps,n),t.child;case 8:return Re(e,t,t.pendingProps.children,n),t.child;case 12:return Re(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,l=o.value,K($i,r._currentValue),r._currentValue=l,i!==null)if(gt(i.value,l)){if(i.children===o.children&&!Ie.current){t=jt(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){l=i.child;for(var s=a.firstContext;s!==null;){if(s.context===r){if(i.tag===1){s=Lt(-1,n&-n),s.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var p=u.pending;p===null?s.next=s:(s.next=p.next,p.next=s),u.pending=s}}i.lanes|=n,s=i.alternate,s!==null&&(s.lanes|=n),Qa(i.return,n,t),a.lanes|=n;break}s=s.next}}else if(i.tag===10)l=i.type===t.type?null:i.child;else if(i.tag===18){if(l=i.return,l===null)throw Error(_(341));l.lanes|=n,a=l.alternate,a!==null&&(a.lanes|=n),Qa(l,n,t),l=i.sibling}else l=i.child;if(l!==null)l.return=i;else for(l=i;l!==null;){if(l===t){l=null;break}if(i=l.sibling,i!==null){i.return=l.return,l=i;break}l=l.return}i=l}Re(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Jn(t,n),o=ot(o),r=r(o),t.flags|=1,Re(e,t,r,n),t.child;case 14:return r=t.type,o=dt(r,t.pendingProps),o=dt(r.type,o),Ac(e,t,r,o,n);case 15:return Ep(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:dt(r,o),ii(e,t),t.tag=1,De(r)?(e=!0,Ci(t)):e=!1,Jn(t,n),kp(t,r,o),Ya(t,r,o,n),Za(null,t,r,!0,e,n);case 19:return Op(e,t,n);case 22:return Pp(e,t,n)}throw Error(_(156,t.tag))};function Kp(e,t){return wd(e,t)}function My(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function nt(e,t,n,r){return new My(e,t,n,r)}function du(e){return e=e.prototype,!(!e||!e.isReactComponent)}function by(e){if(typeof e=="function")return du(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Ms)return 11;if(e===bs)return 14}return 2}function on(e,t){var n=e.alternate;return n===null?(n=nt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function si(e,t,n,r,o,i){var l=2;if(r=e,typeof e=="function")du(e)&&(l=1);else if(typeof e=="string")l=5;else e:switch(e){case An:return wn(n.children,o,i,t);case Os:l=8,o|=8;break;case wa:return e=nt(12,n,t,o|2),e.elementType=wa,e.lanes=i,e;case xa:return e=nt(13,n,t,o),e.elementType=xa,e.lanes=i,e;case Sa:return e=nt(19,n,t,o),e.elementType=Sa,e.lanes=i,e;case nd:return Ji(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ed:l=10;break e;case td:l=9;break e;case Ms:l=11;break e;case bs:l=14;break e;case Vt:l=16,r=null;break e}throw Error(_(130,e==null?e:typeof e,""))}return t=nt(l,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function wn(e,t,n,r){return e=nt(7,e,r,t),e.lanes=n,e}function Ji(e,t,n,r){return e=nt(22,e,r,t),e.elementType=nd,e.lanes=n,e.stateNode={isHidden:!1},e}function fa(e,t,n){return e=nt(6,e,null,t),e.lanes=n,e}function da(e,t,n){return t=nt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function zy(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Kl(0),this.expirationTimes=Kl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Kl(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function pu(e,t,n,r,o,i,l,a,s){return e=new zy(e,t,n,a,s),t===1?(t=1,i===!0&&(t|=8)):t=0,i=nt(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Xs(i),e}function Ny(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Xp)}catch(e){console.error(e)}}Xp(),Xf.exports=Ge;var jy=Xf.exports,qp,Zc=jy;qp=Zc.createRoot,Zc.hydrateRoot;const Fy={black:"#000",white:"#fff"},so=Fy,Wy={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},Mn=Wy,By={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},bn=By,Uy={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},zn=Uy,Vy={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},Nn=Vy,Hy={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},Ln=Hy,Ky={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},Rr=Ky,Qy={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},Gy=Qy;function uo(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n0?ve(mr,--je):0,cr--,ce===10&&(cr=1,il--),ce}function Ke(){return ce=je2||fo(ce)>3?"":" "}function dg(e,t){for(;--t&&Ke()&&!(ce<48||ce>102||ce>57&&ce<65||ce>70&&ce<97););return So(e,ui()+(t<6&&Pt()==32&&Ke()==32))}function fs(e){for(;Ke();)switch(ce){case e:return je;case 34:case 39:e!==34&&e!==39&&fs(ce);break;case 40:e===41&&fs(e);break;case 92:Ke();break}return je}function pg(e,t){for(;Ke()&&e+ce!==47+10;)if(e+ce===42+42&&Pt()===47)break;return"/*"+So(t,je-1)+"*"+ol(e===47?e:Ke())}function mg(e){for(;!fo(Pt());)Ke();return So(e,je)}function hg(e){return om(fi("",null,null,null,[""],e=rm(e),0,[0],e))}function fi(e,t,n,r,o,i,l,a,s){for(var u=0,p=0,m=l,d=0,v=0,g=0,y=1,$=1,f=1,c=0,h="",w=o,x=i,k=r,S=h;$;)switch(g=c,c=Ke()){case 40:if(g!=108&&ve(S,m-1)==58){cs(S+=F(ci(c),"&","&\f"),"&\f")!=-1&&(f=-1);break}case 34:case 39:case 91:S+=ci(c);break;case 9:case 10:case 13:case 32:S+=fg(g);break;case 92:S+=dg(ui()-1,7);continue;case 47:switch(Pt()){case 42:case 47:Ko(yg(pg(Ke(),ui()),t,n),s);break;default:S+="/"}break;case 123*y:a[u++]=St(S)*f;case 125*y:case 59:case 0:switch(c){case 0:case 125:$=0;case 59+p:f==-1&&(S=F(S,/\f/g,"")),v>0&&St(S)-m&&Ko(v>32?ef(S+";",r,n,m-1):ef(F(S," ","")+";",r,n,m-2),s);break;case 59:S+=";";default:if(Ko(k=Jc(S,t,n,u,p,o,a,h,w=[],x=[],m),i),c===123)if(p===0)fi(S,t,k,k,w,i,m,a,x);else switch(d===99&&ve(S,3)===110?100:d){case 100:case 108:case 109:case 115:fi(e,k,k,r&&Ko(Jc(e,k,k,0,0,o,a,h,o,w=[],m),x),o,x,m,a,r?w:x);break;default:fi(S,k,k,k,[""],x,0,a,x)}}u=p=v=0,y=f=1,h=S="",m=l;break;case 58:m=1+St(S),v=g;default:if(y<1){if(c==123)--y;else if(c==125&&y++==0&&cg()==125)continue}switch(S+=ol(c),c*y){case 38:f=p>0?1:(S+="\f",-1);break;case 44:a[u++]=(St(S)-1)*f,f=1;break;case 64:Pt()===45&&(S+=ci(Ke())),d=Pt(),p=m=St(h=S+=mg(ui())),c++;break;case 45:g===45&&St(S)==2&&(y=0)}}return i}function Jc(e,t,n,r,o,i,l,a,s,u,p){for(var m=o-1,d=o===0?i:[""],v=xu(d),g=0,y=0,$=0;g0?d[f]+" "+c:F(c,/&\f/g,d[f])))&&(s[$++]=h);return ll(e,t,n,o===0?vu:a,s,u,p)}function yg(e,t,n){return ll(e,t,n,Jp,ol(ug()),co(e,2,-2),0)}function ef(e,t,n,r){return ll(e,t,n,wu,co(e,0,r),co(e,r+1,-1),r)}function tr(e,t){for(var n="",r=xu(e),o=0;o6)switch(ve(e,t+1)){case 109:if(ve(e,t+4)!==45)break;case 102:return F(e,/(.+:)(.+)-([^]+)/,"$1"+j+"$2-$3$1"+Ai+(ve(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~cs(e,"stretch")?im(F(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(ve(e,t+1)!==115)break;case 6444:switch(ve(e,St(e)-3-(~cs(e,"!important")&&10))){case 107:return F(e,":",":"+j)+e;case 101:return F(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+j+(ve(e,14)===45?"inline-":"")+"box$3$1"+j+"$2$3$1"+Ce+"$2box$3")+e}break;case 5936:switch(ve(e,t+11)){case 114:return j+e+Ce+F(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return j+e+Ce+F(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return j+e+Ce+F(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return j+e+Ce+e+e}return e}var Eg=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case wu:t.return=im(t.value,t.length);break;case em:return tr([Or(t,{value:F(t.value,"@","@"+j)})],o);case vu:if(t.length)return sg(t.props,function(i){switch(ag(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return tr([Or(t,{props:[F(i,/:(read-\w+)/,":"+Ai+"$1")]})],o);case"::placeholder":return tr([Or(t,{props:[F(i,/:(plac\w+)/,":"+j+"input-$1")]}),Or(t,{props:[F(i,/:(plac\w+)/,":"+Ai+"$1")]}),Or(t,{props:[F(i,/:(plac\w+)/,Ce+"input-$1")]})],o)}return""})}},Pg=[Eg],lm=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(y){var $=y.getAttribute("data-emotion");$.indexOf(" ")!==-1&&(document.head.appendChild(y),y.setAttribute("data-s",""))})}var o=t.stylisPlugins||Pg,i={},l,a=[];l=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(y){for(var $=y.getAttribute("data-emotion").split(" "),f=1;f<$.length;f++)i[$[f]]=!0;a.push(y)});var s,u=[_g,Cg];{var p,m=[gg,wg(function(y){p.insert(y)})],d=vg(u.concat(o,m)),v=function($){return tr(hg($),d)};s=function($,f,c,h){p=c,v($?$+"{"+f.styles+"}":f.styles),h&&(g.inserted[f.name]=!0)}}var g={key:n,sheet:new tg({key:n,container:l,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:i,registered:{},insert:s};return g.sheet.hydrate(a),g},am={exports:{}},U={};/** @license React v16.13.1 - * react-is.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var ye=typeof Symbol=="function"&&Symbol.for,Su=ye?Symbol.for("react.element"):60103,ku=ye?Symbol.for("react.portal"):60106,al=ye?Symbol.for("react.fragment"):60107,sl=ye?Symbol.for("react.strict_mode"):60108,ul=ye?Symbol.for("react.profiler"):60114,cl=ye?Symbol.for("react.provider"):60109,fl=ye?Symbol.for("react.context"):60110,_u=ye?Symbol.for("react.async_mode"):60111,dl=ye?Symbol.for("react.concurrent_mode"):60111,pl=ye?Symbol.for("react.forward_ref"):60112,ml=ye?Symbol.for("react.suspense"):60113,$g=ye?Symbol.for("react.suspense_list"):60120,hl=ye?Symbol.for("react.memo"):60115,yl=ye?Symbol.for("react.lazy"):60116,Tg=ye?Symbol.for("react.block"):60121,Rg=ye?Symbol.for("react.fundamental"):60117,Og=ye?Symbol.for("react.responder"):60118,Mg=ye?Symbol.for("react.scope"):60119;function Xe(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Su:switch(e=e.type,e){case _u:case dl:case al:case ul:case sl:case ml:return e;default:switch(e=e&&e.$$typeof,e){case fl:case pl:case yl:case hl:case cl:return e;default:return t}}case ku:return t}}}function sm(e){return Xe(e)===dl}U.AsyncMode=_u;U.ConcurrentMode=dl;U.ContextConsumer=fl;U.ContextProvider=cl;U.Element=Su;U.ForwardRef=pl;U.Fragment=al;U.Lazy=yl;U.Memo=hl;U.Portal=ku;U.Profiler=ul;U.StrictMode=sl;U.Suspense=ml;U.isAsyncMode=function(e){return sm(e)||Xe(e)===_u};U.isConcurrentMode=sm;U.isContextConsumer=function(e){return Xe(e)===fl};U.isContextProvider=function(e){return Xe(e)===cl};U.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Su};U.isForwardRef=function(e){return Xe(e)===pl};U.isFragment=function(e){return Xe(e)===al};U.isLazy=function(e){return Xe(e)===yl};U.isMemo=function(e){return Xe(e)===hl};U.isPortal=function(e){return Xe(e)===ku};U.isProfiler=function(e){return Xe(e)===ul};U.isStrictMode=function(e){return Xe(e)===sl};U.isSuspense=function(e){return Xe(e)===ml};U.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===al||e===dl||e===ul||e===sl||e===ml||e===$g||typeof e=="object"&&e!==null&&(e.$$typeof===yl||e.$$typeof===hl||e.$$typeof===cl||e.$$typeof===fl||e.$$typeof===pl||e.$$typeof===Rg||e.$$typeof===Og||e.$$typeof===Mg||e.$$typeof===Tg)};U.typeOf=Xe;am.exports=U;var bg=am.exports,um=bg,zg={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Ng={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},cm={};cm[um.ForwardRef]=zg;cm[um.Memo]=Ng;var Lg=!0;function Ig(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):r+=o+" "}),r}var fm=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||Lg===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},dm=function(t,n,r){fm(t,n,r);var o=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var i=n;do t.insert(n===i?"."+o:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function Dg(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Ag={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},jg=!1,Fg=/[A-Z]|^ms/g,Wg=/_EMO_([^_]+?)_([^]*?)_EMO_/g,pm=function(t){return t.charCodeAt(1)===45},nf=function(t){return t!=null&&typeof t!="boolean"},pa=Zp(function(e){return pm(e)?e:e.replace(Fg,"-$&").toLowerCase()}),rf=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(Wg,function(r,o,i){return kt={name:o,styles:i,next:kt},o})}return Ag[t]!==1&&!pm(t)&&typeof n=="number"&&n!==0?n+"px":n},Bg="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function po(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var o=n;if(o.anim===1)return kt={name:o.name,styles:o.styles,next:kt},o.name;var i=n;if(i.styles!==void 0){var l=i.next;if(l!==void 0)for(;l!==void 0;)kt={name:l.name,styles:l.styles,next:kt},l=l.next;var a=i.styles+";";return a}return Ug(e,t,n)}case"function":{if(e!==void 0){var s=kt,u=n(e);return kt=s,po(e,t,u)}break}}var p=n;if(t==null)return p;var m=t[p];return m!==void 0?m:p}function Ug(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o96?Gg:Yg},sf=function(t,n,r){var o;if(n){var i=n.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(l){return t.__emotion_forwardProp(l)&&i(l)}:i}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},Xg=!1,qg=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return fm(n,r,o),Hg(function(){return dm(n,r,o)}),null},Zg=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,i,l;n!==void 0&&(i=n.label,l=n.target);var a=sf(t,n,r),s=a||af(o),u=!s("as");return function(){var p=arguments,m=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&m.push("label:"+i+";"),p[0]==null||p[0].raw===void 0)m.push.apply(m,p);else{m.push(p[0][0]);for(var d=p.length,v=1;vt(t1(o)?n:o):t;return b.jsx(Qg,{styles:r})}/** - * @mui/styled-engine v5.16.6 - * - * @license MIT - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */function vm(e,t){return ds(e,t)}const n1=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},r1=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:gm,StyledEngineProvider:e1,ThemeContext:gl,css:ko,default:vm,internal_processStyles:n1,keyframes:$n},Symbol.toStringTag,{value:"Module"}));function Gt(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function wm(e){if(!Gt(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=wm(e[n])}),t}function $t(e,t,n={clone:!0}){const r=n.clone?R({},e):e;return Gt(e)&&Gt(t)&&Object.keys(t).forEach(o=>{Gt(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Gt(e[o])?r[o]=$t(e[o],t[o],n):n.clone?r[o]=Gt(t[o])?wm(t[o]):t[o]:r[o]=t[o]}),r}const o1=Object.freeze(Object.defineProperty({__proto__:null,default:$t,isPlainObject:Gt},Symbol.toStringTag,{value:"Module"})),i1=["values","unit","step"],l1=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>R({},n,{[r.key]:r.val}),{})};function xm(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=Fe(e,i1),i=l1(t),l=Object.keys(i);function a(d){return`@media (min-width:${typeof t[d]=="number"?t[d]:d}${n})`}function s(d){return`@media (max-width:${(typeof t[d]=="number"?t[d]:d)-r/100}${n})`}function u(d,v){const g=l.indexOf(v);return`@media (min-width:${typeof t[d]=="number"?t[d]:d}${n}) and (max-width:${(g!==-1&&typeof t[l[g]]=="number"?t[l[g]]:v)-r/100}${n})`}function p(d){return l.indexOf(d)+1`@media (min-width:${Eu[e]}px)`};function Ft(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||uf;return t.reduce((l,a,s)=>(l[i.up(i.keys[s])]=n(t[s]),l),{})}if(typeof t=="object"){const i=r.breakpoints||uf;return Object.keys(t).reduce((l,a)=>{if(Object.keys(i.values||Eu).indexOf(a)!==-1){const s=i.up(a);l[s]=n(t[a],a)}else{const s=a;l[s]=t[s]}return l},{})}return n(t)}function u1(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,o)=>{const i=e.up(o);return r[i]={},r},{}))||{}}function c1(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function G(e){if(typeof e!="string")throw new Error(uo(7));return e.charAt(0).toUpperCase()+e.slice(1)}const f1=Object.freeze(Object.defineProperty({__proto__:null,default:G},Symbol.toStringTag,{value:"Module"}));function vl(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function ji(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=vl(e,n)||r,t&&(o=t(o,r,e)),o}function le(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=l=>{if(l[t]==null)return null;const a=l[t],s=l.theme,u=vl(s,r)||{};return Ft(l,a,m=>{let d=ji(u,o,m);return m===d&&typeof m=="string"&&(d=ji(u,o,`${t}${m==="default"?"":G(m)}`,m)),n===!1?d:{[n]:d}})};return i.propTypes={},i.filterProps=[t],i}function d1(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const p1={m:"margin",p:"padding"},m1={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},cf={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},h1=d1(e=>{if(e.length>2)if(cf[e])e=cf[e];else return[e];const[t,n]=e.split(""),r=p1[t],o=m1[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),Pu=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],$u=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Pu,...$u];function _o(e,t,n,r){var o;const i=(o=vl(e,t,!1))!=null?o:n;return typeof i=="number"?l=>typeof l=="string"?l:i*l:Array.isArray(i)?l=>typeof l=="string"?l:i[l]:typeof i=="function"?i:()=>{}}function Sm(e){return _o(e,"spacing",8)}function Co(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),r=e(n);return t>=0?r:typeof r=="number"?-r:`-${r}`}function y1(e,t){return n=>e.reduce((r,o)=>(r[o]=Co(t,n),r),{})}function g1(e,t,n,r){if(t.indexOf(n)===-1)return null;const o=h1(n),i=y1(o,r),l=e[n];return Ft(e,l,i)}function km(e,t){const n=Sm(e.theme);return Object.keys(e).map(r=>g1(e,t,r,n)).reduce(Vr,{})}function ne(e){return km(e,Pu)}ne.propTypes={};ne.filterProps=Pu;function re(e){return km(e,$u)}re.propTypes={};re.filterProps=$u;function v1(e=8){if(e.mui)return e;const t=Sm({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(i=>{const l=t(i);return typeof l=="number"?`${l}px`:l}).join(" ");return n.mui=!0,n}function wl(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(i=>{r[i]=o}),r),{}),n=r=>Object.keys(r).reduce((o,i)=>t[i]?Vr(o,t[i](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function tt(e){return typeof e!="number"?e:`${e}px solid`}function at(e,t){return le({prop:e,themeKey:"borders",transform:t})}const w1=at("border",tt),x1=at("borderTop",tt),S1=at("borderRight",tt),k1=at("borderBottom",tt),_1=at("borderLeft",tt),C1=at("borderColor"),E1=at("borderTopColor"),P1=at("borderRightColor"),$1=at("borderBottomColor"),T1=at("borderLeftColor"),R1=at("outline",tt),O1=at("outlineColor"),xl=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=_o(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:Co(t,r)});return Ft(e,e.borderRadius,n)}return null};xl.propTypes={};xl.filterProps=["borderRadius"];wl(w1,x1,S1,k1,_1,C1,E1,P1,$1,T1,xl,R1,O1);const Sl=e=>{if(e.gap!==void 0&&e.gap!==null){const t=_o(e.theme,"spacing",8),n=r=>({gap:Co(t,r)});return Ft(e,e.gap,n)}return null};Sl.propTypes={};Sl.filterProps=["gap"];const kl=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=_o(e.theme,"spacing",8),n=r=>({columnGap:Co(t,r)});return Ft(e,e.columnGap,n)}return null};kl.propTypes={};kl.filterProps=["columnGap"];const _l=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=_o(e.theme,"spacing",8),n=r=>({rowGap:Co(t,r)});return Ft(e,e.rowGap,n)}return null};_l.propTypes={};_l.filterProps=["rowGap"];const M1=le({prop:"gridColumn"}),b1=le({prop:"gridRow"}),z1=le({prop:"gridAutoFlow"}),N1=le({prop:"gridAutoColumns"}),L1=le({prop:"gridAutoRows"}),I1=le({prop:"gridTemplateColumns"}),D1=le({prop:"gridTemplateRows"}),A1=le({prop:"gridTemplateAreas"}),j1=le({prop:"gridArea"});wl(Sl,kl,_l,M1,b1,z1,N1,L1,I1,D1,A1,j1);function nr(e,t){return t==="grey"?t:e}const F1=le({prop:"color",themeKey:"palette",transform:nr}),W1=le({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:nr}),B1=le({prop:"backgroundColor",themeKey:"palette",transform:nr});wl(F1,W1,B1);function Ue(e){return e<=1&&e!==0?`${e*100}%`:e}const U1=le({prop:"width",transform:Ue}),Tu=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,o;const i=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||Eu[n];return i?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:Ue(n)}};return Ft(e,e.maxWidth,t)}return null};Tu.filterProps=["maxWidth"];const V1=le({prop:"minWidth",transform:Ue}),H1=le({prop:"height",transform:Ue}),K1=le({prop:"maxHeight",transform:Ue}),Q1=le({prop:"minHeight",transform:Ue});le({prop:"size",cssProperty:"width",transform:Ue});le({prop:"size",cssProperty:"height",transform:Ue});const G1=le({prop:"boxSizing"});wl(U1,Tu,V1,H1,K1,Q1,G1);const Y1={border:{themeKey:"borders",transform:tt},borderTop:{themeKey:"borders",transform:tt},borderRight:{themeKey:"borders",transform:tt},borderBottom:{themeKey:"borders",transform:tt},borderLeft:{themeKey:"borders",transform:tt},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:tt},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:xl},color:{themeKey:"palette",transform:nr},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:nr},backgroundColor:{themeKey:"palette",transform:nr},p:{style:re},pt:{style:re},pr:{style:re},pb:{style:re},pl:{style:re},px:{style:re},py:{style:re},padding:{style:re},paddingTop:{style:re},paddingRight:{style:re},paddingBottom:{style:re},paddingLeft:{style:re},paddingX:{style:re},paddingY:{style:re},paddingInline:{style:re},paddingInlineStart:{style:re},paddingInlineEnd:{style:re},paddingBlock:{style:re},paddingBlockStart:{style:re},paddingBlockEnd:{style:re},m:{style:ne},mt:{style:ne},mr:{style:ne},mb:{style:ne},ml:{style:ne},mx:{style:ne},my:{style:ne},margin:{style:ne},marginTop:{style:ne},marginRight:{style:ne},marginBottom:{style:ne},marginLeft:{style:ne},marginX:{style:ne},marginY:{style:ne},marginInline:{style:ne},marginInlineStart:{style:ne},marginInlineEnd:{style:ne},marginBlock:{style:ne},marginBlockStart:{style:ne},marginBlockEnd:{style:ne},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Sl},rowGap:{style:_l},columnGap:{style:kl},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Ue},maxWidth:{style:Tu},minWidth:{transform:Ue},height:{transform:Ue},maxHeight:{transform:Ue},minHeight:{transform:Ue},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},Eo=Y1;function X1(...e){const t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function q1(e,t){return typeof e=="function"?e(t):e}function _m(){function e(n,r,o,i){const l={[n]:r,theme:o},a=i[n];if(!a)return{[n]:r};const{cssProperty:s=n,themeKey:u,transform:p,style:m}=a;if(r==null)return null;if(u==="typography"&&r==="inherit")return{[n]:r};const d=vl(o,u)||{};return m?m(l):Ft(l,r,g=>{let y=ji(d,p,g);return g===y&&typeof g=="string"&&(y=ji(d,p,`${n}${g==="default"?"":G(g)}`,g)),s===!1?y:{[s]:y}})}function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const l=(r=i.unstable_sxConfig)!=null?r:Eo;function a(s){let u=s;if(typeof s=="function")u=s(i);else if(typeof s!="object")return s;if(!u)return null;const p=u1(i.breakpoints),m=Object.keys(p);let d=p;return Object.keys(u).forEach(v=>{const g=q1(u[v],i);if(g!=null)if(typeof g=="object")if(l[v])d=Vr(d,e(v,g,i,l));else{const y=Ft({theme:i},g,$=>({[v]:$}));X1(y,g)?d[v]=t({sx:g,theme:i}):d=Vr(d,y)}else d=Vr(d,e(v,g,i,l))}),c1(m,d)}return Array.isArray(o)?o.map(a):a(o)}return t}const Cm=_m();Cm.filterProps=["sx"];const Cl=Cm;function Em(e,t){const n=this;return n.vars&&typeof n.getColorSchemeSelector=="function"?{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:n.palette.mode===e?t:{}}const Z1=["breakpoints","palette","spacing","shape"];function Ru(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,l=Fe(e,Z1),a=xm(n),s=v1(o);let u=$t({breakpoints:a,direction:"ltr",components:{},palette:R({mode:"light"},r),spacing:s,shape:R({},s1,i)},l);return u.applyStyles=Em,u=t.reduce((p,m)=>$t(p,m),u),u.unstable_sxConfig=R({},Eo,l==null?void 0:l.unstable_sxConfig),u.unstable_sx=function(m){return Cl({sx:m,theme:this})},u}const J1=Object.freeze(Object.defineProperty({__proto__:null,default:Ru,private_createBreakpoints:xm,unstable_applyStyles:Em},Symbol.toStringTag,{value:"Module"}));function ev(e){return Object.keys(e).length===0}function tv(e=null){const t=C.useContext(gl);return!t||ev(t)?e:t}const nv=Ru();function Pm(e=nv){return tv(e)}function rv({styles:e,themeId:t,defaultTheme:n={}}){const r=Pm(n),o=typeof e=="function"?e(t&&r[t]||r):e;return b.jsx(gm,{styles:o})}const ov=["sx"],iv=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:Eo;return Object.keys(e).forEach(i=>{o[i]?r.systemProps[i]=e[i]:r.otherProps[i]=e[i]}),r};function Ou(e){const{sx:t}=e,n=Fe(e,ov),{systemProps:r,otherProps:o}=iv(n);let i;return Array.isArray(t)?i=[r,...t]:typeof t=="function"?i=(...l)=>{const a=t(...l);return Gt(a)?R({},r,a):r}:i=R({},r,t),R({},o,{sx:i})}const lv=Object.freeze(Object.defineProperty({__proto__:null,default:Cl,extendSxProp:Ou,unstable_createStyleFunctionSx:_m,unstable_defaultSxConfig:Eo},Symbol.toStringTag,{value:"Module"})),ff=e=>e,av=()=>{let e=ff;return{configure(t){e=t},generate(t){return e(t)},reset(){e=ff}}},sv=av(),$m=sv;function Tm(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;ta!=="theme"&&a!=="sx"&&a!=="as"})(Cl);return C.forwardRef(function(s,u){const p=Pm(n),m=Ou(s),{className:d,component:v="div"}=m,g=Fe(m,uv);return b.jsx(i,R({as:v,ref:u,className:Oe(d,o?o(r):r),theme:t&&p[t]||p},g))})}const fv={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Po(e,t,n="Mui"){const r=fv[t];return r?`${n}-${r}`:`${$m.generate(e)}-${t}`}function hr(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=Po(e,o,n)}),r}var Rm={exports:{}},V={};/** - * @license React - * react-is.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var Mu=Symbol.for("react.element"),bu=Symbol.for("react.portal"),El=Symbol.for("react.fragment"),Pl=Symbol.for("react.strict_mode"),$l=Symbol.for("react.profiler"),Tl=Symbol.for("react.provider"),Rl=Symbol.for("react.context"),dv=Symbol.for("react.server_context"),Ol=Symbol.for("react.forward_ref"),Ml=Symbol.for("react.suspense"),bl=Symbol.for("react.suspense_list"),zl=Symbol.for("react.memo"),Nl=Symbol.for("react.lazy"),pv=Symbol.for("react.offscreen"),Om;Om=Symbol.for("react.module.reference");function st(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Mu:switch(e=e.type,e){case El:case $l:case Pl:case Ml:case bl:return e;default:switch(e=e&&e.$$typeof,e){case dv:case Rl:case Ol:case Nl:case zl:case Tl:return e;default:return t}}case bu:return t}}}V.ContextConsumer=Rl;V.ContextProvider=Tl;V.Element=Mu;V.ForwardRef=Ol;V.Fragment=El;V.Lazy=Nl;V.Memo=zl;V.Portal=bu;V.Profiler=$l;V.StrictMode=Pl;V.Suspense=Ml;V.SuspenseList=bl;V.isAsyncMode=function(){return!1};V.isConcurrentMode=function(){return!1};V.isContextConsumer=function(e){return st(e)===Rl};V.isContextProvider=function(e){return st(e)===Tl};V.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Mu};V.isForwardRef=function(e){return st(e)===Ol};V.isFragment=function(e){return st(e)===El};V.isLazy=function(e){return st(e)===Nl};V.isMemo=function(e){return st(e)===zl};V.isPortal=function(e){return st(e)===bu};V.isProfiler=function(e){return st(e)===$l};V.isStrictMode=function(e){return st(e)===Pl};V.isSuspense=function(e){return st(e)===Ml};V.isSuspenseList=function(e){return st(e)===bl};V.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===El||e===$l||e===Pl||e===Ml||e===bl||e===pv||typeof e=="object"&&e!==null&&(e.$$typeof===Nl||e.$$typeof===zl||e.$$typeof===Tl||e.$$typeof===Rl||e.$$typeof===Ol||e.$$typeof===Om||e.getModuleId!==void 0)};V.typeOf=st;Rm.exports=V;var df=Rm.exports;const mv=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Mm(e){const t=`${e}`.match(mv);return t&&t[1]||""}function bm(e,t=""){return e.displayName||e.name||Mm(e)||t}function pf(e,t,n){const r=bm(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function hv(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return bm(e,"Component");if(typeof e=="object")switch(e.$$typeof){case df.ForwardRef:return pf(e,e.render,"ForwardRef");case df.Memo:return pf(e,e.type,"memo");default:return}}}const yv=Object.freeze(Object.defineProperty({__proto__:null,default:hv,getFunctionName:Mm},Symbol.toStringTag,{value:"Module"}));function Fi(e,t){const n=R({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=R({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},i=t[r];n[r]={},!i||!Object.keys(i)?n[r]=o:!o||!Object.keys(o)?n[r]=i:(n[r]=R({},i),Object.keys(o).forEach(l=>{n[r][l]=Fi(o[l],i[l])}))}else n[r]===void 0&&(n[r]=e[r])}),n}const gv=typeof window<"u"?C.useLayoutEffect:C.useEffect,vv=gv;function wv(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}const xv=Object.freeze(Object.defineProperty({__proto__:null,default:wv},Symbol.toStringTag,{value:"Module"}));function Sv(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function Qo(e){const t=C.useRef(e);return vv(()=>{t.current=e}),C.useRef((...n)=>(0,t.current)(...n)).current}function mf(...e){return C.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{Sv(n,t)})},e)}const hf={};function kv(e,t){const n=C.useRef(hf);return n.current===hf&&(n.current=e(t)),n}const _v=[];function Cv(e){C.useEffect(e,_v)}class Ll{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Ll}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function Ev(){const e=kv(Ll.create).current;return Cv(e.disposeEffect),e}let Il=!0,ms=!1;const Pv=new Ll,$v={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function Tv(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&$v[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function Rv(e){e.metaKey||e.altKey||e.ctrlKey||(Il=!0)}function ma(){Il=!1}function Ov(){this.visibilityState==="hidden"&&ms&&(Il=!0)}function Mv(e){e.addEventListener("keydown",Rv,!0),e.addEventListener("mousedown",ma,!0),e.addEventListener("pointerdown",ma,!0),e.addEventListener("touchstart",ma,!0),e.addEventListener("visibilitychange",Ov,!0)}function bv(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return Il||Tv(t)}function zv(){const e=C.useCallback(o=>{o!=null&&Mv(o.ownerDocument)},[]),t=C.useRef(!1);function n(){return t.current?(ms=!0,Pv.start(100,()=>{ms=!1}),t.current=!1,!0):!1}function r(o){return bv(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function Dl(e,t,n=void 0){const r={};return Object.keys(e).forEach(o=>{r[o]=e[o].reduce((i,l)=>{if(l){const a=t(l);a!==""&&i.push(a),n&&n[l]&&i.push(n[l])}return i},[]).join(" ")}),r}const Nv=C.createContext(),Lv=()=>{const e=C.useContext(Nv);return e??!1},Iv=C.createContext(void 0);function Dv(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?Fi(o.defaultProps,r):!o.styleOverrides&&!o.variants?Fi(o,r):r}function Av({props:e,name:t}){const n=C.useContext(Iv);return Dv({props:e,name:t,theme:{components:n}})}function jv(e,t){return R({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var ae={},zm={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(zm);var Nm=zm.exports;const Fv=sn(Yy),Wv=sn(xv);var Lm=Nm;Object.defineProperty(ae,"__esModule",{value:!0});var Go=ae.alpha=Wm;ae.blend=Zv;ae.colorChannel=void 0;var Im=ae.darken=Nu;ae.decomposeColor=lt;ae.emphasize=Bm;var Bv=ae.getContrastRatio=Qv;ae.getLuminance=Wi;ae.hexToRgb=Am;ae.hslToRgb=Fm;var Dm=ae.lighten=Lu;ae.private_safeAlpha=Gv;ae.private_safeColorChannel=void 0;ae.private_safeDarken=Yv;ae.private_safeEmphasize=qv;ae.private_safeLighten=Xv;ae.recomposeColor=yr;ae.rgbToHex=Kv;var yf=Lm(Fv),Uv=Lm(Wv);function zu(e,t=0,n=1){return(0,Uv.default)(e,t,n)}function Am(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function Vv(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function lt(e){if(e.type)return e;if(e.charAt(0)==="#")return lt(Am(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error((0,yf.default)(9,e));let r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o)===-1)throw new Error((0,yf.default)(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}const jm=e=>{const t=lt(e);return t.values.slice(0,3).map((n,r)=>t.type.indexOf("hsl")!==-1&&r!==0?`${n}%`:n).join(" ")};ae.colorChannel=jm;const Hv=(e,t)=>{try{return jm(e)}catch{return e}};ae.private_safeColorChannel=Hv;function yr(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((o,i)=>i<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function Kv(e){if(e.indexOf("#")===0)return e;const{values:t}=lt(e);return`#${t.map((n,r)=>Vv(r===3?Math.round(255*n):n)).join("")}`}function Fm(e){e=lt(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),l=(u,p=(u+n/30)%12)=>o-i*Math.max(Math.min(p-3,9-p,1),-1);let a="rgb";const s=[Math.round(l(0)*255),Math.round(l(8)*255),Math.round(l(4)*255)];return e.type==="hsla"&&(a+="a",s.push(t[3])),yr({type:a,values:s})}function Wi(e){e=lt(e);let t=e.type==="hsl"||e.type==="hsla"?lt(Fm(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Qv(e,t){const n=Wi(e),r=Wi(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Wm(e,t){return e=lt(e),t=zu(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,yr(e)}function Gv(e,t,n){try{return Wm(e,t)}catch{return e}}function Nu(e,t){if(e=lt(e),t=zu(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]*=1-t;return yr(e)}function Yv(e,t,n){try{return Nu(e,t)}catch{return e}}function Lu(e,t){if(e=lt(e),t=zu(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return yr(e)}function Xv(e,t,n){try{return Lu(e,t)}catch{return e}}function Bm(e,t=.15){return Wi(e)>.5?Nu(e,t):Lu(e,t)}function qv(e,t,n){try{return Bm(e,t)}catch{return e}}function Zv(e,t,n,r=1){const o=(s,u)=>Math.round((s**(1/r)*(1-n)+u**(1/r)*n)**r),i=lt(e),l=lt(t),a=[o(i.values[0],l.values[0]),o(i.values[1],l.values[1]),o(i.values[2],l.values[2])];return yr({type:"rgb",values:a})}const Jv=["mode","contrastThreshold","tonalOffset"],gf={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:so.white,default:so.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},ha={text:{primary:so.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:so.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function vf(e,t,n,r){const o=r.light||r,i=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=Dm(e.main,o):t==="dark"&&(e.dark=Im(e.main,i)))}function ew(e="light"){return e==="dark"?{main:zn[200],light:zn[50],dark:zn[400]}:{main:zn[700],light:zn[400],dark:zn[800]}}function tw(e="light"){return e==="dark"?{main:bn[200],light:bn[50],dark:bn[400]}:{main:bn[500],light:bn[300],dark:bn[700]}}function nw(e="light"){return e==="dark"?{main:Mn[500],light:Mn[300],dark:Mn[700]}:{main:Mn[700],light:Mn[400],dark:Mn[800]}}function rw(e="light"){return e==="dark"?{main:Nn[400],light:Nn[300],dark:Nn[700]}:{main:Nn[700],light:Nn[500],dark:Nn[900]}}function ow(e="light"){return e==="dark"?{main:Ln[400],light:Ln[300],dark:Ln[700]}:{main:Ln[800],light:Ln[500],dark:Ln[900]}}function iw(e="light"){return e==="dark"?{main:Rr[400],light:Rr[300],dark:Rr[700]}:{main:"#ed6c02",light:Rr[500],dark:Rr[900]}}function lw(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=Fe(e,Jv),i=e.primary||ew(t),l=e.secondary||tw(t),a=e.error||nw(t),s=e.info||rw(t),u=e.success||ow(t),p=e.warning||iw(t);function m(y){return Bv(y,ha.text.primary)>=n?ha.text.primary:gf.text.primary}const d=({color:y,name:$,mainShade:f=500,lightShade:c=300,darkShade:h=700})=>{if(y=R({},y),!y.main&&y[f]&&(y.main=y[f]),!y.hasOwnProperty("main"))throw new Error(uo(11,$?` (${$})`:"",f));if(typeof y.main!="string")throw new Error(uo(12,$?` (${$})`:"",JSON.stringify(y.main)));return vf(y,"light",c,r),vf(y,"dark",h,r),y.contrastText||(y.contrastText=m(y.main)),y},v={dark:ha,light:gf};return $t(R({common:R({},so),mode:t,primary:d({color:i,name:"primary"}),secondary:d({color:l,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:d({color:a,name:"error"}),warning:d({color:p,name:"warning"}),info:d({color:s,name:"info"}),success:d({color:u,name:"success"}),grey:Gy,contrastThreshold:n,getContrastText:m,augmentColor:d,tonalOffset:r},v[t]),o)}const aw=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function sw(e){return Math.round(e*1e5)/1e5}const wf={textTransform:"uppercase"},xf='"Roboto", "Helvetica", "Arial", sans-serif';function uw(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=xf,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:l=400,fontWeightMedium:a=500,fontWeightBold:s=700,htmlFontSize:u=16,allVariants:p,pxToRem:m}=n,d=Fe(n,aw),v=o/14,g=m||(f=>`${f/u*v}rem`),y=(f,c,h,w,x)=>R({fontFamily:r,fontWeight:f,fontSize:g(c),lineHeight:h},r===xf?{letterSpacing:`${sw(w/c)}em`}:{},x,p),$={h1:y(i,96,1.167,-1.5),h2:y(i,60,1.2,-.5),h3:y(l,48,1.167,0),h4:y(l,34,1.235,.25),h5:y(l,24,1.334,0),h6:y(a,20,1.6,.15),subtitle1:y(l,16,1.75,.15),subtitle2:y(a,14,1.57,.1),body1:y(l,16,1.5,.15),body2:y(l,14,1.43,.15),button:y(a,14,1.75,.4,wf),caption:y(l,12,1.66,.4),overline:y(l,12,2.66,1,wf),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return $t(R({htmlFontSize:u,pxToRem:g,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:l,fontWeightMedium:a,fontWeightBold:s},$),d,{clone:!1})}const cw=.2,fw=.14,dw=.12;function X(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${cw})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${fw})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${dw})`].join(",")}const pw=["none",X(0,2,1,-1,0,1,1,0,0,1,3,0),X(0,3,1,-2,0,2,2,0,0,1,5,0),X(0,3,3,-2,0,3,4,0,0,1,8,0),X(0,2,4,-1,0,4,5,0,0,1,10,0),X(0,3,5,-1,0,5,8,0,0,1,14,0),X(0,3,5,-1,0,6,10,0,0,1,18,0),X(0,4,5,-2,0,7,10,1,0,2,16,1),X(0,5,5,-3,0,8,10,1,0,3,14,2),X(0,5,6,-3,0,9,12,1,0,3,16,2),X(0,6,6,-3,0,10,14,1,0,4,18,3),X(0,6,7,-4,0,11,15,1,0,4,20,3),X(0,7,8,-4,0,12,17,2,0,5,22,4),X(0,7,8,-4,0,13,19,2,0,5,24,4),X(0,7,9,-4,0,14,21,2,0,5,26,4),X(0,8,9,-5,0,15,22,2,0,6,28,5),X(0,8,10,-5,0,16,24,2,0,6,30,5),X(0,8,11,-5,0,17,26,2,0,6,32,5),X(0,9,11,-5,0,18,28,2,0,7,34,6),X(0,9,12,-6,0,19,29,2,0,7,36,6),X(0,10,13,-6,0,20,31,3,0,8,38,7),X(0,10,13,-6,0,21,33,3,0,8,40,7),X(0,10,14,-6,0,22,35,3,0,8,42,7),X(0,11,14,-7,0,23,36,3,0,9,44,8),X(0,11,15,-7,0,24,38,3,0,9,46,8)],mw=pw,hw=["duration","easing","delay"],yw={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},gw={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Sf(e){return`${Math.round(e)}ms`}function vw(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function ww(e){const t=R({},yw,e.easing),n=R({},gw,e.duration);return R({getAutoHeightDuration:vw,create:(o=["all"],i={})=>{const{duration:l=n.standard,easing:a=t.easeInOut,delay:s=0}=i;return Fe(i,hw),(Array.isArray(o)?o:[o]).map(u=>`${u} ${typeof l=="string"?l:Sf(l)} ${a} ${typeof s=="string"?s:Sf(s)}`).join(",")}},e,{easing:t,duration:n})}const xw={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Sw=xw,kw=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Um(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,l=Fe(e,kw);if(e.vars)throw new Error(uo(18));const a=lw(r),s=Ru(e);let u=$t(s,{mixins:jv(s.breakpoints,n),palette:a,shadows:mw.slice(),typography:uw(a,i),transitions:ww(o),zIndex:R({},Sw)});return u=$t(u,l),u=t.reduce((p,m)=>$t(p,m),u),u.unstable_sxConfig=R({},Eo,l==null?void 0:l.unstable_sxConfig),u.unstable_sx=function(m){return Cl({sx:m,theme:this})},u}const _w=Um(),Vm=_w;var $o={},ya={exports:{}},kf;function Cw(){return kf||(kf=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(n){for(var r=1;r96}function di(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Bw=$o.systemDefaultTheme=(0,Nw.default)(),Uw=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Yo({defaultTheme:e,theme:t,themeId:n}){return Fw(t)?e:t[n]||t}function Vw(e){return e?(t,n)=>n[e]:null}function pi(e,t){let{ownerState:n}=t,r=(0,hs.default)(t,Iw);const o=typeof e=="function"?e((0,qe.default)({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap(i=>pi(i,(0,qe.default)({ownerState:n},r)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:i=[]}=o;let a=(0,hs.default)(o,Dw);return i.forEach(s=>{let u=!0;typeof s.props=="function"?u=s.props((0,qe.default)({ownerState:n},r,n)):Object.keys(s.props).forEach(p=>{(n==null?void 0:n[p])!==s.props[p]&&r[p]!==s.props[p]&&(u=!1)}),u&&(Array.isArray(a)||(a=[a]),a.push(typeof s.style=="function"?s.style((0,qe.default)({ownerState:n},r,n)):s.style))}),a}return o}function Hw(e={}){const{themeId:t,defaultTheme:n=Bw,rootShouldForwardProp:r=di,slotShouldForwardProp:o=di}=e,i=l=>(0,Lw.default)((0,qe.default)({},l,{theme:Yo((0,qe.default)({},l,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(l,a={})=>{(0,Cf.internal_processStyles)(l,x=>x.filter(k=>!(k!=null&&k.__mui_systemSx)));const{name:s,slot:u,skipVariantsResolver:p,skipSx:m,overridesResolver:d=Vw(Uw(u))}=a,v=(0,hs.default)(a,Aw),g=p!==void 0?p:u&&u!=="Root"&&u!=="root"||!1,y=m||!1;let $,f=di;u==="Root"||u==="root"?f=r:u?f=o:Ww(l)&&(f=void 0);const c=(0,Cf.default)(l,(0,qe.default)({shouldForwardProp:f,label:$},v)),h=x=>typeof x=="function"&&x.__emotion_real!==x||(0,zw.isPlainObject)(x)?k=>pi(x,(0,qe.default)({},k,{theme:Yo({theme:k.theme,defaultTheme:n,themeId:t})})):x,w=(x,...k)=>{let S=h(x);const P=k?k.map(h):[];s&&d&&P.push(W=>{const H=Yo((0,qe.default)({},W,{defaultTheme:n,themeId:t}));if(!H.components||!H.components[s]||!H.components[s].styleOverrides)return null;const se=H.components[s].styleOverrides,Se={};return Object.entries(se).forEach(([ut,$e])=>{Se[ut]=pi($e,(0,qe.default)({},W,{theme:H}))}),d(W,Se)}),s&&!g&&P.push(W=>{var H;const se=Yo((0,qe.default)({},W,{defaultTheme:n,themeId:t})),Se=se==null||(H=se.components)==null||(H=H[s])==null?void 0:H.variants;return pi({variants:Se},(0,qe.default)({},W,{theme:se}))}),y||P.push(i);const I=P.length-k.length;if(Array.isArray(x)&&I>0){const W=new Array(I).fill("");S=[...x,...W],S.raw=[...x.raw,...W]}const O=c(S,...P);return l.muiName&&(O.muiName=l.muiName),O};return c.withConfig&&(w.withConfig=c.withConfig),w}}function Kw(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Qw=e=>Kw(e)&&e!=="classes",Km=Qw,Gw=bw({themeId:gu,defaultTheme:Vm,rootShouldForwardProp:Km}),vt=Gw;function vr(e){return Av(e)}function ys(e,t){return ys=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},ys(e,t)}function Yw(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ys(e,t)}const Ef=In.createContext(null);function Xw(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Iu(e,t){var n=function(i){return t&&C.isValidElement(i)?t(i):i},r=Object.create(null);return e&&C.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function qw(e,t){e=e||{},t=t||{};function n(p){return p in t?t[p]:e[p]}var r=Object.create(null),o=[];for(var i in e)i in t?o.length&&(r[i]=o,o=[]):o.push(i);var l,a={};for(var s in t){if(r[s])for(l=0;l{if(!a&&s!=null){const y=setTimeout(s,u);return()=>{clearTimeout(y)}}},[s,a,u]),b.jsx("span",{className:d,style:v,children:b.jsx("span",{className:g})})}const ox=hr("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Ze=ox,ix=["center","classes","className"];let Al=e=>e,Pf,$f,Tf,Rf;const gs=550,lx=80,ax=$n(Pf||(Pf=Al` - 0% { - transform: scale(0); - opacity: 0.1; - } - - 100% { - transform: scale(1); - opacity: 0.3; - } -`)),sx=$n($f||($f=Al` - 0% { - opacity: 1; - } - - 100% { - opacity: 0; - } -`)),ux=$n(Tf||(Tf=Al` - 0% { - transform: scale(1); - } - - 50% { - transform: scale(0.92); - } - - 100% { - transform: scale(1); - } -`)),cx=vt("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),fx=vt(rx,{name:"MuiTouchRipple",slot:"Ripple"})(Rf||(Rf=Al` - opacity: 0; - position: absolute; - - &.${0} { - opacity: 0.3; - transform: scale(1); - animation-name: ${0}; - animation-duration: ${0}ms; - animation-timing-function: ${0}; - } - - &.${0} { - animation-duration: ${0}ms; - } - - & .${0} { - opacity: 1; - display: block; - width: 100%; - height: 100%; - border-radius: 50%; - background-color: currentColor; - } - - & .${0} { - opacity: 0; - animation-name: ${0}; - animation-duration: ${0}ms; - animation-timing-function: ${0}; - } - - & .${0} { - position: absolute; - /* @noflip */ - left: 0px; - top: 0; - animation-name: ${0}; - animation-duration: 2500ms; - animation-timing-function: ${0}; - animation-iteration-count: infinite; - animation-delay: 200ms; - } -`),Ze.rippleVisible,ax,gs,({theme:e})=>e.transitions.easing.easeInOut,Ze.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,Ze.child,Ze.childLeaving,sx,gs,({theme:e})=>e.transitions.easing.easeInOut,Ze.childPulsate,ux,({theme:e})=>e.transitions.easing.easeInOut),dx=C.forwardRef(function(t,n){const r=vr({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:l}=r,a=Fe(r,ix),[s,u]=C.useState([]),p=C.useRef(0),m=C.useRef(null);C.useEffect(()=>{m.current&&(m.current(),m.current=null)},[s]);const d=C.useRef(!1),v=Ev(),g=C.useRef(null),y=C.useRef(null),$=C.useCallback(w=>{const{pulsate:x,rippleX:k,rippleY:S,rippleSize:P,cb:I}=w;u(O=>[...O,b.jsx(fx,{classes:{ripple:Oe(i.ripple,Ze.ripple),rippleVisible:Oe(i.rippleVisible,Ze.rippleVisible),ripplePulsate:Oe(i.ripplePulsate,Ze.ripplePulsate),child:Oe(i.child,Ze.child),childLeaving:Oe(i.childLeaving,Ze.childLeaving),childPulsate:Oe(i.childPulsate,Ze.childPulsate)},timeout:gs,pulsate:x,rippleX:k,rippleY:S,rippleSize:P},p.current)]),p.current+=1,m.current=I},[i]),f=C.useCallback((w={},x={},k=()=>{})=>{const{pulsate:S=!1,center:P=o||x.pulsate,fakeElement:I=!1}=x;if((w==null?void 0:w.type)==="mousedown"&&d.current){d.current=!1;return}(w==null?void 0:w.type)==="touchstart"&&(d.current=!0);const O=I?null:y.current,W=O?O.getBoundingClientRect():{width:0,height:0,left:0,top:0};let H,se,Se;if(P||w===void 0||w.clientX===0&&w.clientY===0||!w.clientX&&!w.touches)H=Math.round(W.width/2),se=Math.round(W.height/2);else{const{clientX:ut,clientY:$e}=w.touches&&w.touches.length>0?w.touches[0]:w;H=Math.round(ut-W.left),se=Math.round($e-W.top)}if(P)Se=Math.sqrt((2*W.width**2+W.height**2)/3),Se%2===0&&(Se+=1);else{const ut=Math.max(Math.abs((O?O.clientWidth:0)-H),H)*2+2,$e=Math.max(Math.abs((O?O.clientHeight:0)-se),se)*2+2;Se=Math.sqrt(ut**2+$e**2)}w!=null&&w.touches?g.current===null&&(g.current=()=>{$({pulsate:S,rippleX:H,rippleY:se,rippleSize:Se,cb:k})},v.start(lx,()=>{g.current&&(g.current(),g.current=null)})):$({pulsate:S,rippleX:H,rippleY:se,rippleSize:Se,cb:k})},[o,$,v]),c=C.useCallback(()=>{f({},{pulsate:!0})},[f]),h=C.useCallback((w,x)=>{if(v.clear(),(w==null?void 0:w.type)==="touchend"&&g.current){g.current(),g.current=null,v.start(0,()=>{h(w,x)});return}g.current=null,u(k=>k.length>0?k.slice(1):k),m.current=x},[v]);return C.useImperativeHandle(n,()=>({pulsate:c,start:f,stop:h}),[c,f,h]),b.jsx(cx,R({className:Oe(Ze.root,i.root,l),ref:y},a,{children:b.jsx(nx,{component:null,exit:!0,children:s})}))}),px=dx;function mx(e){return Po("MuiButtonBase",e)}const hx=hr("MuiButtonBase",["root","disabled","focusVisible"]),yx=hx,gx=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],vx=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,l=Dl({root:["root",t&&"disabled",n&&"focusVisible"]},mx,o);return n&&r&&(l.root+=` ${r}`),l},wx=vt("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${yx.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),xx=C.forwardRef(function(t,n){const r=vr({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:l,className:a,component:s="button",disabled:u=!1,disableRipple:p=!1,disableTouchRipple:m=!1,focusRipple:d=!1,LinkComponent:v="a",onBlur:g,onClick:y,onContextMenu:$,onDragLeave:f,onFocus:c,onFocusVisible:h,onKeyDown:w,onKeyUp:x,onMouseDown:k,onMouseLeave:S,onMouseUp:P,onTouchEnd:I,onTouchMove:O,onTouchStart:W,tabIndex:H=0,TouchRippleProps:se,touchRippleRef:Se,type:ut}=r,$e=Fe(r,gx),Tt=C.useRef(null),E=C.useRef(null),z=mf(E,Se),{isFocusVisibleRef:N,onFocus:Z,onBlur:ue,ref:Tn}=zv(),[Te,Bt]=C.useState(!1);u&&Te&&Bt(!1),C.useImperativeHandle(o,()=>({focusVisible:()=>{Bt(!0),Tt.current.focus()}}),[]);const[ct,Rn]=C.useState(!1);C.useEffect(()=>{Rn(!0)},[]);const Xm=ct&&!p&&!u;C.useEffect(()=>{Te&&d&&!p&&ct&&E.current.pulsate()},[p,d,Te,ct]);function Rt(L,Wu,fh=m){return Qo(Bu=>(Wu&&Wu(Bu),!fh&&E.current&&E.current[L](Bu),!0))}const qm=Rt("start",k),Zm=Rt("stop",$),Jm=Rt("stop",f),eh=Rt("stop",P),th=Rt("stop",L=>{Te&&L.preventDefault(),S&&S(L)}),nh=Rt("start",W),rh=Rt("stop",I),oh=Rt("stop",O),ih=Rt("stop",L=>{ue(L),N.current===!1&&Bt(!1),g&&g(L)},!1),lh=Qo(L=>{Tt.current||(Tt.current=L.currentTarget),Z(L),N.current===!0&&(Bt(!0),h&&h(L)),c&&c(L)}),jl=()=>{const L=Tt.current;return s&&s!=="button"&&!(L.tagName==="A"&&L.href)},Fl=C.useRef(!1),ah=Qo(L=>{d&&!Fl.current&&Te&&E.current&&L.key===" "&&(Fl.current=!0,E.current.stop(L,()=>{E.current.start(L)})),L.target===L.currentTarget&&jl()&&L.key===" "&&L.preventDefault(),w&&w(L),L.target===L.currentTarget&&jl()&&L.key==="Enter"&&!u&&(L.preventDefault(),y&&y(L))}),sh=Qo(L=>{d&&L.key===" "&&E.current&&Te&&!L.defaultPrevented&&(Fl.current=!1,E.current.stop(L,()=>{E.current.pulsate(L)})),x&&x(L),y&&L.target===L.currentTarget&&jl()&&L.key===" "&&!L.defaultPrevented&&y(L)});let To=s;To==="button"&&($e.href||$e.to)&&(To=v);const xr={};To==="button"?(xr.type=ut===void 0?"button":ut,xr.disabled=u):(!$e.href&&!$e.to&&(xr.role="button"),u&&(xr["aria-disabled"]=u));const uh=mf(n,Tn,Tt),Fu=R({},r,{centerRipple:i,component:s,disabled:u,disableRipple:p,disableTouchRipple:m,focusRipple:d,tabIndex:H,focusVisible:Te}),ch=vx(Fu);return b.jsxs(wx,R({as:To,className:Oe(ch.root,a),ownerState:Fu,onBlur:ih,onClick:y,onContextMenu:Zm,onFocus:lh,onKeyDown:ah,onKeyUp:sh,onMouseDown:qm,onMouseLeave:th,onMouseUp:eh,onDragLeave:Jm,onTouchEnd:rh,onTouchMove:oh,onTouchStart:nh,ref:uh,tabIndex:u?-1:H,type:ut},xr,$e,{children:[l,Xm?b.jsx(px,R({ref:z,center:i},se)):null]}))}),Sx=xx;function kx(e){return Po("MuiTypography",e)}hr("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const _x=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],Cx=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:l}=e,a={root:["root",i,e.align!=="inherit"&&`align${G(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return Dl(a,kx,l)},Ex=vt("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${G(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>R({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),Of={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Px={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},$x=e=>Px[e]||e,Tx=C.forwardRef(function(t,n){const r=vr({props:t,name:"MuiTypography"}),o=$x(r.color),i=Ou(R({},r,{color:o})),{align:l="inherit",className:a,component:s,gutterBottom:u=!1,noWrap:p=!1,paragraph:m=!1,variant:d="body1",variantMapping:v=Of}=i,g=Fe(i,_x),y=R({},i,{align:l,color:o,className:a,component:s,gutterBottom:u,noWrap:p,paragraph:m,variant:d,variantMapping:v}),$=s||(m?"p":v[d]||Of[d])||"span",f=Cx(y);return b.jsx(Ex,R({as:$,ref:n,ownerState:y,className:Oe(f.root,a)},g))}),Au=Tx;function Rx(e){return b.jsx(rv,R({},e,{defaultTheme:Vm,themeId:gu}))}const Ox=hr("MuiBox",["root"]),Mx=Ox,bx=Um(),zx=cv({themeId:gu,defaultTheme:bx,defaultClassName:Mx.root,generateClassName:$m.generate}),Nt=zx;function Nx(e){return Po("MuiButton",e)}const Lx=hr("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),Xo=Lx,Ix=C.createContext({}),Dx=Ix,Ax=C.createContext(void 0),jx=Ax,Fx=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Wx=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:l}=e,a={root:["root",i,`${i}${G(t)}`,`size${G(o)}`,`${i}Size${G(o)}`,`color${G(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${G(o)}`],endIcon:["icon","endIcon",`iconSize${G(o)}`]},s=Dl(a,Nx,l);return R({},l,s)},Qm=e=>R({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),Bx=vt(Sx,{shouldForwardProp:e=>Km(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${G(n.color)}`],t[`size${G(n.size)}`],t[`${n.variant}Size${G(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var n,r;const o=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],i=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return R({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":R({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Go(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Go(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Go(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:i,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":R({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Xo.focusVisible}`]:R({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Xo.disabled}`]:R({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${Go(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(n=(r=e.palette).getContrastText)==null?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Xo.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Xo.disabled}`]:{boxShadow:"none"}}),Ux=vt("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${G(n.size)}`]]}})(({ownerState:e})=>R({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},Qm(e))),Vx=vt("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${G(n.size)}`]]}})(({ownerState:e})=>R({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},Qm(e))),Hx=C.forwardRef(function(t,n){const r=C.useContext(Dx),o=C.useContext(jx),i=Fi(r,t),l=vr({props:i,name:"MuiButton"}),{children:a,color:s="primary",component:u="button",className:p,disabled:m=!1,disableElevation:d=!1,disableFocusRipple:v=!1,endIcon:g,focusVisibleClassName:y,fullWidth:$=!1,size:f="medium",startIcon:c,type:h,variant:w="text"}=l,x=Fe(l,Fx),k=R({},l,{color:s,component:u,disabled:m,disableElevation:d,disableFocusRipple:v,fullWidth:$,size:f,type:h,variant:w}),S=Wx(k),P=c&&b.jsx(Ux,{className:S.startIcon,ownerState:k,children:c}),I=g&&b.jsx(Vx,{className:S.endIcon,ownerState:k,children:g}),O=o||"";return b.jsxs(Bx,R({ownerState:k,className:Oe(r.className,S.root,p,O),component:u,disabled:m,focusRipple:!v,focusVisibleClassName:Oe(S.focusVisible,y),ref:n,type:h},x,{classes:S,children:[P,a,I]}))}),Kx=Hx,Qx=(e,t)=>R({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),Gx=e=>R({color:(e.vars||e).palette.text.primary},e.typography.body1,{backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),Yx=(e,t=!1)=>{var n;const r={};t&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([l,a])=>{var s;r[e.getColorSchemeSelector(l).replace(/\s*&/,"")]={colorScheme:(s=a.palette)==null?void 0:s.mode}});let o=R({html:Qx(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:R({margin:0},Gx(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},r);const i=(n=e.components)==null||(n=n.MuiCssBaseline)==null?void 0:n.styleOverrides;return i&&(o=[o,i]),o};function Xx(e){const t=vr({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return b.jsxs(C.Fragment,{children:[b.jsx(Rx,{styles:o=>Yx(o,r)}),n]})}function qx(e){return Po("MuiLinearProgress",e)}hr("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const Zx=["className","color","value","valueBuffer","variant"];let wr=e=>e,Mf,bf,zf,Nf,Lf,If;const vs=4,Jx=$n(Mf||(Mf=wr` - 0% { - left: -35%; - right: 100%; - } - - 60% { - left: 100%; - right: -90%; - } - - 100% { - left: 100%; - right: -90%; - } -`)),eS=$n(bf||(bf=wr` - 0% { - left: -200%; - right: 100%; - } - - 60% { - left: 107%; - right: -8%; - } - - 100% { - left: 107%; - right: -8%; - } -`)),tS=$n(zf||(zf=wr` - 0% { - opacity: 1; - background-position: 0 -23px; - } - - 60% { - opacity: 0; - background-position: 0 -23px; - } - - 100% { - opacity: 1; - background-position: -200px -23px; - } -`)),nS=e=>{const{classes:t,variant:n,color:r}=e,o={root:["root",`color${G(r)}`,n],dashed:["dashed",`dashedColor${G(r)}`],bar1:["bar",`barColor${G(r)}`,(n==="indeterminate"||n==="query")&&"bar1Indeterminate",n==="determinate"&&"bar1Determinate",n==="buffer"&&"bar1Buffer"],bar2:["bar",n!=="buffer"&&`barColor${G(r)}`,n==="buffer"&&`color${G(r)}`,(n==="indeterminate"||n==="query")&&"bar2Indeterminate",n==="buffer"&&"bar2Buffer"]};return Dl(o,qx,t)},ju=(e,t)=>t==="inherit"?"currentColor":e.vars?e.vars.palette.LinearProgress[`${t}Bg`]:e.palette.mode==="light"?Dm(e.palette[t].main,.62):Im(e.palette[t].main,.5),rS=vt("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${G(n.color)}`],t[n.variant]]}})(({ownerState:e,theme:t})=>R({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},backgroundColor:ju(t,e.color)},e.color==="inherit"&&e.variant!=="buffer"&&{backgroundColor:"none","&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}},e.variant==="buffer"&&{backgroundColor:"transparent"},e.variant==="query"&&{transform:"rotate(180deg)"})),oS=vt("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.dashed,t[`dashedColor${G(n.color)}`]]}})(({ownerState:e,theme:t})=>{const n=ju(t,e.color);return R({position:"absolute",marginTop:0,height:"100%",width:"100%"},e.color==="inherit"&&{opacity:.3},{backgroundImage:`radial-gradient(${n} 0%, ${n} 16%, transparent 42%)`,backgroundSize:"10px 10px",backgroundPosition:"0 -23px"})},ko(Nf||(Nf=wr` - animation: ${0} 3s infinite linear; - `),tS)),iS=vt("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t[`barColor${G(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar1Indeterminate,n.variant==="determinate"&&t.bar1Determinate,n.variant==="buffer"&&t.bar1Buffer]}})(({ownerState:e,theme:t})=>R({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",backgroundColor:e.color==="inherit"?"currentColor":(t.vars||t).palette[e.color].main},e.variant==="determinate"&&{transition:`transform .${vs}s linear`},e.variant==="buffer"&&{zIndex:1,transition:`transform .${vs}s linear`}),({ownerState:e})=>(e.variant==="indeterminate"||e.variant==="query")&&ko(Lf||(Lf=wr` - width: auto; - animation: ${0} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite; - `),Jx)),lS=vt("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t[`barColor${G(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar2Indeterminate,n.variant==="buffer"&&t.bar2Buffer]}})(({ownerState:e,theme:t})=>R({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left"},e.variant!=="buffer"&&{backgroundColor:e.color==="inherit"?"currentColor":(t.vars||t).palette[e.color].main},e.color==="inherit"&&{opacity:.3},e.variant==="buffer"&&{backgroundColor:ju(t,e.color),transition:`transform .${vs}s linear`}),({ownerState:e})=>(e.variant==="indeterminate"||e.variant==="query")&&ko(If||(If=wr` - width: auto; - animation: ${0} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite; - `),eS)),aS=C.forwardRef(function(t,n){const r=vr({props:t,name:"MuiLinearProgress"}),{className:o,color:i="primary",value:l,valueBuffer:a,variant:s="indeterminate"}=r,u=Fe(r,Zx),p=R({},r,{color:i,variant:s}),m=nS(p),d=Lv(),v={},g={bar1:{},bar2:{}};if((s==="determinate"||s==="buffer")&&l!==void 0){v["aria-valuenow"]=Math.round(l),v["aria-valuemin"]=0,v["aria-valuemax"]=100;let y=l-100;d&&(y=-y),g.bar1.transform=`translateX(${y}%)`}if(s==="buffer"&&a!==void 0){let y=(a||0)-100;d&&(y=-y),g.bar2.transform=`translateX(${y}%)`}return b.jsxs(rS,R({className:Oe(m.root,o),ownerState:p,role:"progressbar"},v,{ref:n},u,{children:[s==="buffer"?b.jsx(oS,{className:m.dashed,ownerState:p}):null,b.jsx(iS,{className:m.bar1,ownerState:p,style:g.bar1}),s==="determinate"?null:b.jsx(lS,{className:m.bar2,ownerState:p,style:g.bar2})]}))}),sS=aS;function uS(){return window.crypto.getRandomValues(new Uint32Array(1))[0]}function ws(e,t=!1){const n=uS(),r=`_${n}`;return Object.defineProperty(window,r,{value:o=>(t&&Reflect.deleteProperty(window,r),e==null?void 0:e(o)),writable:!1,configurable:!0}),n}async function cS(e,t={}){return new Promise((n,r)=>{const o=ws(l=>{n(l),Reflect.deleteProperty(window,`_${i}`)},!0),i=ws(l=>{r(l),Reflect.deleteProperty(window,`_${o}`)},!0);window.__TAURI_IPC__({cmd:e,callback:o,error:i,...t})})}async function M(e){return cS("tauri",e)}async function Gm(e,t){return M({__tauriModule:"Event",message:{cmd:"unlisten",event:e,eventId:t}})}async function fS(e,t,n){await M({__tauriModule:"Event",message:{cmd:"emit",event:e,windowLabel:t,payload:n}})}async function Ym(e,t,n){return M({__tauriModule:"Event",message:{cmd:"listen",event:e,windowLabel:t,handler:ws(n)}}).then(r=>async()=>Gm(e,r))}async function dS(e,t,n){return Ym(e,t,r=>{n(r),Gm(e,r.id).catch(()=>{})})}var We;(function(e){e.WINDOW_RESIZED="tauri://resize",e.WINDOW_MOVED="tauri://move",e.WINDOW_CLOSE_REQUESTED="tauri://close-requested",e.WINDOW_CREATED="tauri://window-created",e.WINDOW_DESTROYED="tauri://destroyed",e.WINDOW_FOCUS="tauri://focus",e.WINDOW_BLUR="tauri://blur",e.WINDOW_SCALE_FACTOR_CHANGED="tauri://scale-change",e.WINDOW_THEME_CHANGED="tauri://theme-changed",e.WINDOW_FILE_DROP="tauri://file-drop",e.WINDOW_FILE_DROP_HOVER="tauri://file-drop-hover",e.WINDOW_FILE_DROP_CANCELLED="tauri://file-drop-cancelled",e.MENU="tauri://menu",e.CHECK_UPDATE="tauri://update",e.UPDATE_AVAILABLE="tauri://update-available",e.INSTALL_UPDATE="tauri://update-install",e.STATUS_UPDATE="tauri://update-status",e.DOWNLOAD_PROGRESS="tauri://update-download-progress"})(We||(We={}));class pS{constructor(t,n){this.type="Logical",this.width=t,this.height=n}}class xs{constructor(t,n){this.type="Physical",this.width=t,this.height=n}toLogical(t){return new pS(this.width/t,this.height/t)}}class mS{constructor(t,n){this.type="Logical",this.x=t,this.y=n}}class Ss{constructor(t,n){this.type="Physical",this.x=t,this.y=n}toLogical(t){return new mS(this.x/t,this.y/t)}}var ks;(function(e){e[e.Critical=1]="Critical",e[e.Informational=2]="Informational"})(ks||(ks={}));function Df(){return window.__TAURI_METADATA__.__windows.map(e=>new mo(e.label,{skip:!0}))}const Af=["tauri://created","tauri://error"];class hS{constructor(t){this.label=t,this.listeners=Object.create(null)}async listen(t,n){return this._handleTauriEvent(t,n)?Promise.resolve(()=>{const r=this.listeners[t];r.splice(r.indexOf(n),1)}):Ym(t,this.label,n)}async once(t,n){return this._handleTauriEvent(t,n)?Promise.resolve(()=>{const r=this.listeners[t];r.splice(r.indexOf(n),1)}):dS(t,this.label,n)}async emit(t,n){if(Af.includes(t)){for(const r of this.listeners[t]||[])r({event:t,id:-1,windowLabel:this.label,payload:n});return Promise.resolve()}return fS(t,this.label,n)}_handleTauriEvent(t,n){return Af.includes(t)?(t in this.listeners?this.listeners[t].push(n):this.listeners[t]=[n],!0):!1}}class yS extends hS{async scaleFactor(){return M({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"scaleFactor"}}}})}async innerPosition(){return M({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"innerPosition"}}}}).then(({x:t,y:n})=>new Ss(t,n))}async outerPosition(){return M({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"outerPosition"}}}}).then(({x:t,y:n})=>new Ss(t,n))}async innerSize(){return M({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"innerSize"}}}}).then(({width:t,height:n})=>new xs(t,n))}async outerSize(){return M({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"outerSize"}}}}).then(({width:t,height:n})=>new xs(t,n))}async isFullscreen(){return M({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isFullscreen"}}}})}async isMinimized(){return M({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isMinimized"}}}})}async isMaximized(){return M({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isMaximized"}}}})}async isFocused(){return M({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isFocused"}}}})}async isDecorated(){return M({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isDecorated"}}}})}async isResizable(){return M({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isResizable"}}}})}async isMaximizable(){return M({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isMaximizable"}}}})}async isMinimizable(){return M({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isMinimizable"}}}})}async isClosable(){return M({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isClosable"}}}})}async isVisible(){return M({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isVisible"}}}})}async title(){return M({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"title"}}}})}async theme(){return M({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"theme"}}}})}async center(){return M({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"center"}}}})}async requestUserAttention(t){let n=null;return t&&(t===ks.Critical?n={type:"Critical"}:n={type:"Informational"}),M({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"requestUserAttention",payload:n}}}})}async setResizable(t){return M({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setResizable",payload:t}}}})}async setMaximizable(t){return M({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setMaximizable",payload:t}}}})}async setMinimizable(t){return M({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setMinimizable",payload:t}}}})}async setClosable(t){return M({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setClosable",payload:t}}}})}async setTitle(t){return M({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setTitle",payload:t}}}})}async maximize(){return M({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"maximize"}}}})}async unmaximize(){return M({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"unmaximize"}}}})}async toggleMaximize(){return M({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"toggleMaximize"}}}})}async minimize(){return M({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"minimize"}}}})}async unminimize(){return M({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"unminimize"}}}})}async show(){return M({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"show"}}}})}async hide(){return M({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"hide"}}}})}async close(){return M({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"close"}}}})}async setDecorations(t){return M({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setDecorations",payload:t}}}})}async setAlwaysOnTop(t){return M({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setAlwaysOnTop",payload:t}}}})}async setContentProtected(t){return M({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setContentProtected",payload:t}}}})}async setSize(t){if(!t||t.type!=="Logical"&&t.type!=="Physical")throw new Error("the `size` argument must be either a LogicalSize or a PhysicalSize instance");return M({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setSize",payload:{type:t.type,data:{width:t.width,height:t.height}}}}}})}async setMinSize(t){if(t&&t.type!=="Logical"&&t.type!=="Physical")throw new Error("the `size` argument must be either a LogicalSize or a PhysicalSize instance");return M({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setMinSize",payload:t?{type:t.type,data:{width:t.width,height:t.height}}:null}}}})}async setMaxSize(t){if(t&&t.type!=="Logical"&&t.type!=="Physical")throw new Error("the `size` argument must be either a LogicalSize or a PhysicalSize instance");return M({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setMaxSize",payload:t?{type:t.type,data:{width:t.width,height:t.height}}:null}}}})}async setPosition(t){if(!t||t.type!=="Logical"&&t.type!=="Physical")throw new Error("the `position` argument must be either a LogicalPosition or a PhysicalPosition instance");return M({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setPosition",payload:{type:t.type,data:{x:t.x,y:t.y}}}}}})}async setFullscreen(t){return M({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setFullscreen",payload:t}}}})}async setFocus(){return M({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setFocus"}}}})}async setIcon(t){return M({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setIcon",payload:{icon:typeof t=="string"?t:Array.from(t)}}}}})}async setSkipTaskbar(t){return M({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setSkipTaskbar",payload:t}}}})}async setCursorGrab(t){return M({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setCursorGrab",payload:t}}}})}async setCursorVisible(t){return M({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setCursorVisible",payload:t}}}})}async setCursorIcon(t){return M({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setCursorIcon",payload:t}}}})}async setCursorPosition(t){if(!t||t.type!=="Logical"&&t.type!=="Physical")throw new Error("the `position` argument must be either a LogicalPosition or a PhysicalPosition instance");return M({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setCursorPosition",payload:{type:t.type,data:{x:t.x,y:t.y}}}}}})}async setIgnoreCursorEvents(t){return M({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setIgnoreCursorEvents",payload:t}}}})}async startDragging(){return M({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"startDragging"}}}})}async onResized(t){return this.listen(We.WINDOW_RESIZED,n=>{n.payload=wS(n.payload),t(n)})}async onMoved(t){return this.listen(We.WINDOW_MOVED,n=>{n.payload=vS(n.payload),t(n)})}async onCloseRequested(t){return this.listen(We.WINDOW_CLOSE_REQUESTED,n=>{const r=new gS(n);Promise.resolve(t(r)).then(()=>{if(!r.isPreventDefault())return this.close()})})}async onFocusChanged(t){const n=await this.listen(We.WINDOW_FOCUS,o=>{t({...o,payload:!0})}),r=await this.listen(We.WINDOW_BLUR,o=>{t({...o,payload:!1})});return()=>{n(),r()}}async onScaleChanged(t){return this.listen(We.WINDOW_SCALE_FACTOR_CHANGED,t)}async onMenuClicked(t){return this.listen(We.MENU,t)}async onFileDropEvent(t){const n=await this.listen(We.WINDOW_FILE_DROP,i=>{t({...i,payload:{type:"drop",paths:i.payload}})}),r=await this.listen(We.WINDOW_FILE_DROP_HOVER,i=>{t({...i,payload:{type:"hover",paths:i.payload}})}),o=await this.listen(We.WINDOW_FILE_DROP_CANCELLED,i=>{t({...i,payload:{type:"cancel"}})});return()=>{n(),r(),o()}}async onThemeChanged(t){return this.listen(We.WINDOW_THEME_CHANGED,t)}}class gS{constructor(t){this._preventDefault=!1,this.event=t.event,this.windowLabel=t.windowLabel,this.id=t.id}preventDefault(){this._preventDefault=!0}isPreventDefault(){return this._preventDefault}}class mo extends yS{constructor(t,n={}){super(t),n!=null&&n.skip||M({__tauriModule:"Window",message:{cmd:"createWebview",data:{options:{label:t,...n}}}}).then(async()=>this.emit("tauri://created")).catch(async r=>this.emit("tauri://error",r))}static getByLabel(t){return Df().some(n=>n.label===t)?new mo(t,{skip:!0}):null}static async getFocusedWindow(){for(const t of Df())if(await t.isFocused())return t;return null}}let ho;"__TAURI_METADATA__"in window?ho=new mo(window.__TAURI_METADATA__.__currentWindow.label,{skip:!0}):(console.warn(`Could not find "window.__TAURI_METADATA__". The "appWindow" value will reference the "main" window label. -Note that this is not an issue if running this frontend on a browser instead of a Tauri window.`),ho=new mo("main",{skip:!0}));function vS(e){return new Ss(e.x,e.y)}function wS(e){return new xs(e.width,e.height)}const xS="/assets/icon-674efcbe.svg";function SS(){const[e,t]=C.useState(null);return C.useEffect(()=>{const n=ho.listen("app://update-progress",r=>{t(r.payload)});return()=>{n.then(r=>r())}},[]),e}function kS(){const[e,t]=C.useState(!1);C.useEffect(()=>{const r=ho.listen("app://update-error",()=>{t(!0)});return()=>{r.then(o=>o())}},[]);const n=()=>{t(!1),ho.emit("app://update")};return b.jsxs(b.Fragment,{children:[b.jsx(Xx,{}),b.jsx(Nt,{sx:{position:"absolute",inset:0},display:"flex",alignItems:"center",px:2,"data-tauri-drag-region":!0,children:b.jsxs(Nt,{display:"flex",alignItems:"center",flex:"1","data-tauri-drag-region":!0,children:[b.jsx(Nt,{component:"img",src:xS,alt:"logo",sx:{width:"4rem",height:"4rem"},"data-tauri-drag-region":!0}),b.jsx(Nt,{flex:1,ml:2,children:e?b.jsx(CS,{onRetry:n}):b.jsx(_S,{})})]})})]})}function _S(){const e=SS();return b.jsxs(b.Fragment,{children:[b.jsx(Au,{variant:"h1",fontSize:"1rem","data-tauri-drag-region":!0,children:"Updating the GUI components..."}),b.jsx(Nt,{mt:1,children:b.jsx(ES,{value:e})})]})}function CS({onRetry:e}){return b.jsxs(b.Fragment,{children:[b.jsx(Au,{variant:"h1",fontSize:"1rem","data-tauri-drag-region":!0,children:"Failed to update the GUI components."}),b.jsx(Nt,{mt:1,"data-tauri-drag-region":!0,children:b.jsx(Kx,{variant:"contained",color:"primary",size:"small",onClick:e,sx:{textTransform:"none"},children:"Retry"})})]})}function ES(e){const{value:t}=e;return b.jsxs(Nt,{sx:{display:"flex",alignItems:"center"},children:[b.jsx(Nt,{flex:"1",children:b.jsx(sS,{variant:t===null?"indeterminate":"determinate",value:t??0,sx:{py:1.2,".MuiLinearProgress-bar":{transition:"none"}}})}),t!==null&&b.jsx(Nt,{sx:{minWidth:35,textAlign:"right",ml:1},children:b.jsx(Au,{variant:"body2",color:"text.secondary",children:`${Math.round(t)}%`})})]})}const PS=qp(document.getElementById("root"));PS.render(b.jsx(kS,{})); diff --git a/apps/gpgui-helper/dist/index.html b/apps/gpgui-helper/dist/index.html index c5ce425c..9fcac50d 100644 --- a/apps/gpgui-helper/dist/index.html +++ b/apps/gpgui-helper/dist/index.html @@ -5,8 +5,8 @@ GlobalProtect - - + +
- diff --git a/apps/gpgui-helper/src-tauri/Cargo.toml b/apps/gpgui-helper/src-tauri/Cargo.toml index 444a21d9..363d9287 100644 --- a/apps/gpgui-helper/src-tauri/Cargo.toml +++ b/apps/gpgui-helper/src-tauri/Cargo.toml @@ -1,5 +1,6 @@ [package] name = "gpgui-helper" +rust-version.workspace = true authors.workspace = true version.workspace = true edition.workspace = true diff --git a/apps/gpgui-helper/src-tauri/gen/schemas/acl-manifests.json b/apps/gpgui-helper/src-tauri/gen/schemas/acl-manifests.json deleted file mode 100644 index 6cd367a5..00000000 --- a/apps/gpgui-helper/src-tauri/gen/schemas/acl-manifests.json +++ /dev/null @@ -1 +0,0 @@ -{"core":{"default_permission":{"identifier":"default","description":"Default core plugins set which includes:\n- 'core:path:default'\n- 'core:event:default'\n- 'core:window:default'\n- 'core:webview:default'\n- 'core:app:default'\n- 'core:image:default'\n- 'core:resources:default'\n- 'core:menu:default'\n- 'core:tray:default'\n","permissions":["core:path:default","core:event:default","core:window:default","core:webview:default","core:app:default","core:image:default","core:resources:default","core:menu:default","core:tray:default"]},"permissions":{},"permission_sets":{},"global_scope_schema":null},"core:app":{"default_permission":{"identifier":"default","description":"Default permissions for the plugin.","permissions":["allow-version","allow-name","allow-tauri-version"]},"permissions":{"allow-app-hide":{"identifier":"allow-app-hide","description":"Enables the app_hide command without any pre-configured scope.","commands":{"allow":["app_hide"],"deny":[]}},"allow-app-show":{"identifier":"allow-app-show","description":"Enables the app_show command without any pre-configured scope.","commands":{"allow":["app_show"],"deny":[]}},"allow-default-window-icon":{"identifier":"allow-default-window-icon","description":"Enables the default_window_icon command without any pre-configured scope.","commands":{"allow":["default_window_icon"],"deny":[]}},"allow-name":{"identifier":"allow-name","description":"Enables the name command without any pre-configured scope.","commands":{"allow":["name"],"deny":[]}},"allow-set-app-theme":{"identifier":"allow-set-app-theme","description":"Enables the set_app_theme command without any pre-configured scope.","commands":{"allow":["set_app_theme"],"deny":[]}},"allow-tauri-version":{"identifier":"allow-tauri-version","description":"Enables the tauri_version command without any pre-configured scope.","commands":{"allow":["tauri_version"],"deny":[]}},"allow-version":{"identifier":"allow-version","description":"Enables the version command without any pre-configured scope.","commands":{"allow":["version"],"deny":[]}},"deny-app-hide":{"identifier":"deny-app-hide","description":"Denies the app_hide command without any pre-configured scope.","commands":{"allow":[],"deny":["app_hide"]}},"deny-app-show":{"identifier":"deny-app-show","description":"Denies the app_show command without any pre-configured scope.","commands":{"allow":[],"deny":["app_show"]}},"deny-default-window-icon":{"identifier":"deny-default-window-icon","description":"Denies the default_window_icon command without any pre-configured scope.","commands":{"allow":[],"deny":["default_window_icon"]}},"deny-name":{"identifier":"deny-name","description":"Denies the name command without any pre-configured scope.","commands":{"allow":[],"deny":["name"]}},"deny-set-app-theme":{"identifier":"deny-set-app-theme","description":"Denies the set_app_theme command without any pre-configured scope.","commands":{"allow":[],"deny":["set_app_theme"]}},"deny-tauri-version":{"identifier":"deny-tauri-version","description":"Denies the tauri_version command without any pre-configured scope.","commands":{"allow":[],"deny":["tauri_version"]}},"deny-version":{"identifier":"deny-version","description":"Denies the version command without any pre-configured scope.","commands":{"allow":[],"deny":["version"]}}},"permission_sets":{},"global_scope_schema":null},"core:event":{"default_permission":{"identifier":"default","description":"Default permissions for the plugin.","permissions":["allow-listen","allow-unlisten","allow-emit","allow-emit-to"]},"permissions":{"allow-emit":{"identifier":"allow-emit","description":"Enables the emit command without any pre-configured scope.","commands":{"allow":["emit"],"deny":[]}},"allow-emit-to":{"identifier":"allow-emit-to","description":"Enables the emit_to command without any pre-configured scope.","commands":{"allow":["emit_to"],"deny":[]}},"allow-listen":{"identifier":"allow-listen","description":"Enables the listen command without any pre-configured scope.","commands":{"allow":["listen"],"deny":[]}},"allow-unlisten":{"identifier":"allow-unlisten","description":"Enables the unlisten command without any pre-configured scope.","commands":{"allow":["unlisten"],"deny":[]}},"deny-emit":{"identifier":"deny-emit","description":"Denies the emit command without any pre-configured scope.","commands":{"allow":[],"deny":["emit"]}},"deny-emit-to":{"identifier":"deny-emit-to","description":"Denies the emit_to command without any pre-configured scope.","commands":{"allow":[],"deny":["emit_to"]}},"deny-listen":{"identifier":"deny-listen","description":"Denies the listen command without any pre-configured scope.","commands":{"allow":[],"deny":["listen"]}},"deny-unlisten":{"identifier":"deny-unlisten","description":"Denies the unlisten command without any pre-configured scope.","commands":{"allow":[],"deny":["unlisten"]}}},"permission_sets":{},"global_scope_schema":null},"core:image":{"default_permission":{"identifier":"default","description":"Default permissions for the plugin.","permissions":["allow-new","allow-from-bytes","allow-from-path","allow-rgba","allow-size"]},"permissions":{"allow-from-bytes":{"identifier":"allow-from-bytes","description":"Enables the from_bytes command without any pre-configured scope.","commands":{"allow":["from_bytes"],"deny":[]}},"allow-from-path":{"identifier":"allow-from-path","description":"Enables the from_path command without any pre-configured scope.","commands":{"allow":["from_path"],"deny":[]}},"allow-new":{"identifier":"allow-new","description":"Enables the new command without any pre-configured scope.","commands":{"allow":["new"],"deny":[]}},"allow-rgba":{"identifier":"allow-rgba","description":"Enables the rgba command without any pre-configured scope.","commands":{"allow":["rgba"],"deny":[]}},"allow-size":{"identifier":"allow-size","description":"Enables the size command without any pre-configured scope.","commands":{"allow":["size"],"deny":[]}},"deny-from-bytes":{"identifier":"deny-from-bytes","description":"Denies the from_bytes command without any pre-configured scope.","commands":{"allow":[],"deny":["from_bytes"]}},"deny-from-path":{"identifier":"deny-from-path","description":"Denies the from_path command without any pre-configured scope.","commands":{"allow":[],"deny":["from_path"]}},"deny-new":{"identifier":"deny-new","description":"Denies the new command without any pre-configured scope.","commands":{"allow":[],"deny":["new"]}},"deny-rgba":{"identifier":"deny-rgba","description":"Denies the rgba command without any pre-configured scope.","commands":{"allow":[],"deny":["rgba"]}},"deny-size":{"identifier":"deny-size","description":"Denies the size command without any pre-configured scope.","commands":{"allow":[],"deny":["size"]}}},"permission_sets":{},"global_scope_schema":null},"core:menu":{"default_permission":{"identifier":"default","description":"Default permissions for the plugin.","permissions":["allow-new","allow-append","allow-prepend","allow-insert","allow-remove","allow-remove-at","allow-items","allow-get","allow-popup","allow-create-default","allow-set-as-app-menu","allow-set-as-window-menu","allow-text","allow-set-text","allow-is-enabled","allow-set-enabled","allow-set-accelerator","allow-set-as-windows-menu-for-nsapp","allow-set-as-help-menu-for-nsapp","allow-is-checked","allow-set-checked","allow-set-icon"]},"permissions":{"allow-append":{"identifier":"allow-append","description":"Enables the append command without any pre-configured scope.","commands":{"allow":["append"],"deny":[]}},"allow-create-default":{"identifier":"allow-create-default","description":"Enables the create_default command without any pre-configured scope.","commands":{"allow":["create_default"],"deny":[]}},"allow-get":{"identifier":"allow-get","description":"Enables the get command without any pre-configured scope.","commands":{"allow":["get"],"deny":[]}},"allow-insert":{"identifier":"allow-insert","description":"Enables the insert command without any pre-configured scope.","commands":{"allow":["insert"],"deny":[]}},"allow-is-checked":{"identifier":"allow-is-checked","description":"Enables the is_checked command without any pre-configured scope.","commands":{"allow":["is_checked"],"deny":[]}},"allow-is-enabled":{"identifier":"allow-is-enabled","description":"Enables the is_enabled command without any pre-configured scope.","commands":{"allow":["is_enabled"],"deny":[]}},"allow-items":{"identifier":"allow-items","description":"Enables the items command without any pre-configured scope.","commands":{"allow":["items"],"deny":[]}},"allow-new":{"identifier":"allow-new","description":"Enables the new command without any pre-configured scope.","commands":{"allow":["new"],"deny":[]}},"allow-popup":{"identifier":"allow-popup","description":"Enables the popup command without any pre-configured scope.","commands":{"allow":["popup"],"deny":[]}},"allow-prepend":{"identifier":"allow-prepend","description":"Enables the prepend command without any pre-configured scope.","commands":{"allow":["prepend"],"deny":[]}},"allow-remove":{"identifier":"allow-remove","description":"Enables the remove command without any pre-configured scope.","commands":{"allow":["remove"],"deny":[]}},"allow-remove-at":{"identifier":"allow-remove-at","description":"Enables the remove_at command without any pre-configured scope.","commands":{"allow":["remove_at"],"deny":[]}},"allow-set-accelerator":{"identifier":"allow-set-accelerator","description":"Enables the set_accelerator command without any pre-configured scope.","commands":{"allow":["set_accelerator"],"deny":[]}},"allow-set-as-app-menu":{"identifier":"allow-set-as-app-menu","description":"Enables the set_as_app_menu command without any pre-configured scope.","commands":{"allow":["set_as_app_menu"],"deny":[]}},"allow-set-as-help-menu-for-nsapp":{"identifier":"allow-set-as-help-menu-for-nsapp","description":"Enables the set_as_help_menu_for_nsapp command without any pre-configured scope.","commands":{"allow":["set_as_help_menu_for_nsapp"],"deny":[]}},"allow-set-as-window-menu":{"identifier":"allow-set-as-window-menu","description":"Enables the set_as_window_menu command without any pre-configured scope.","commands":{"allow":["set_as_window_menu"],"deny":[]}},"allow-set-as-windows-menu-for-nsapp":{"identifier":"allow-set-as-windows-menu-for-nsapp","description":"Enables the set_as_windows_menu_for_nsapp command without any pre-configured scope.","commands":{"allow":["set_as_windows_menu_for_nsapp"],"deny":[]}},"allow-set-checked":{"identifier":"allow-set-checked","description":"Enables the set_checked command without any pre-configured scope.","commands":{"allow":["set_checked"],"deny":[]}},"allow-set-enabled":{"identifier":"allow-set-enabled","description":"Enables the set_enabled command without any pre-configured scope.","commands":{"allow":["set_enabled"],"deny":[]}},"allow-set-icon":{"identifier":"allow-set-icon","description":"Enables the set_icon command without any pre-configured scope.","commands":{"allow":["set_icon"],"deny":[]}},"allow-set-text":{"identifier":"allow-set-text","description":"Enables the set_text command without any pre-configured scope.","commands":{"allow":["set_text"],"deny":[]}},"allow-text":{"identifier":"allow-text","description":"Enables the text command without any pre-configured scope.","commands":{"allow":["text"],"deny":[]}},"deny-append":{"identifier":"deny-append","description":"Denies the append command without any pre-configured scope.","commands":{"allow":[],"deny":["append"]}},"deny-create-default":{"identifier":"deny-create-default","description":"Denies the create_default command without any pre-configured scope.","commands":{"allow":[],"deny":["create_default"]}},"deny-get":{"identifier":"deny-get","description":"Denies the get command without any pre-configured scope.","commands":{"allow":[],"deny":["get"]}},"deny-insert":{"identifier":"deny-insert","description":"Denies the insert command without any pre-configured scope.","commands":{"allow":[],"deny":["insert"]}},"deny-is-checked":{"identifier":"deny-is-checked","description":"Denies the is_checked command without any pre-configured scope.","commands":{"allow":[],"deny":["is_checked"]}},"deny-is-enabled":{"identifier":"deny-is-enabled","description":"Denies the is_enabled command without any pre-configured scope.","commands":{"allow":[],"deny":["is_enabled"]}},"deny-items":{"identifier":"deny-items","description":"Denies the items command without any pre-configured scope.","commands":{"allow":[],"deny":["items"]}},"deny-new":{"identifier":"deny-new","description":"Denies the new command without any pre-configured scope.","commands":{"allow":[],"deny":["new"]}},"deny-popup":{"identifier":"deny-popup","description":"Denies the popup command without any pre-configured scope.","commands":{"allow":[],"deny":["popup"]}},"deny-prepend":{"identifier":"deny-prepend","description":"Denies the prepend command without any pre-configured scope.","commands":{"allow":[],"deny":["prepend"]}},"deny-remove":{"identifier":"deny-remove","description":"Denies the remove command without any pre-configured scope.","commands":{"allow":[],"deny":["remove"]}},"deny-remove-at":{"identifier":"deny-remove-at","description":"Denies the remove_at command without any pre-configured scope.","commands":{"allow":[],"deny":["remove_at"]}},"deny-set-accelerator":{"identifier":"deny-set-accelerator","description":"Denies the set_accelerator command without any pre-configured scope.","commands":{"allow":[],"deny":["set_accelerator"]}},"deny-set-as-app-menu":{"identifier":"deny-set-as-app-menu","description":"Denies the set_as_app_menu command without any pre-configured scope.","commands":{"allow":[],"deny":["set_as_app_menu"]}},"deny-set-as-help-menu-for-nsapp":{"identifier":"deny-set-as-help-menu-for-nsapp","description":"Denies the set_as_help_menu_for_nsapp command without any pre-configured scope.","commands":{"allow":[],"deny":["set_as_help_menu_for_nsapp"]}},"deny-set-as-window-menu":{"identifier":"deny-set-as-window-menu","description":"Denies the set_as_window_menu command without any pre-configured scope.","commands":{"allow":[],"deny":["set_as_window_menu"]}},"deny-set-as-windows-menu-for-nsapp":{"identifier":"deny-set-as-windows-menu-for-nsapp","description":"Denies the set_as_windows_menu_for_nsapp command without any pre-configured scope.","commands":{"allow":[],"deny":["set_as_windows_menu_for_nsapp"]}},"deny-set-checked":{"identifier":"deny-set-checked","description":"Denies the set_checked command without any pre-configured scope.","commands":{"allow":[],"deny":["set_checked"]}},"deny-set-enabled":{"identifier":"deny-set-enabled","description":"Denies the set_enabled command without any pre-configured scope.","commands":{"allow":[],"deny":["set_enabled"]}},"deny-set-icon":{"identifier":"deny-set-icon","description":"Denies the set_icon command without any pre-configured scope.","commands":{"allow":[],"deny":["set_icon"]}},"deny-set-text":{"identifier":"deny-set-text","description":"Denies the set_text command without any pre-configured scope.","commands":{"allow":[],"deny":["set_text"]}},"deny-text":{"identifier":"deny-text","description":"Denies the text command without any pre-configured scope.","commands":{"allow":[],"deny":["text"]}}},"permission_sets":{},"global_scope_schema":null},"core:path":{"default_permission":{"identifier":"default","description":"Default permissions for the plugin.","permissions":["allow-resolve-directory","allow-resolve","allow-normalize","allow-join","allow-dirname","allow-extname","allow-basename","allow-is-absolute"]},"permissions":{"allow-basename":{"identifier":"allow-basename","description":"Enables the basename command without any pre-configured scope.","commands":{"allow":["basename"],"deny":[]}},"allow-dirname":{"identifier":"allow-dirname","description":"Enables the dirname command without any pre-configured scope.","commands":{"allow":["dirname"],"deny":[]}},"allow-extname":{"identifier":"allow-extname","description":"Enables the extname command without any pre-configured scope.","commands":{"allow":["extname"],"deny":[]}},"allow-is-absolute":{"identifier":"allow-is-absolute","description":"Enables the is_absolute command without any pre-configured scope.","commands":{"allow":["is_absolute"],"deny":[]}},"allow-join":{"identifier":"allow-join","description":"Enables the join command without any pre-configured scope.","commands":{"allow":["join"],"deny":[]}},"allow-normalize":{"identifier":"allow-normalize","description":"Enables the normalize command without any pre-configured scope.","commands":{"allow":["normalize"],"deny":[]}},"allow-resolve":{"identifier":"allow-resolve","description":"Enables the resolve command without any pre-configured scope.","commands":{"allow":["resolve"],"deny":[]}},"allow-resolve-directory":{"identifier":"allow-resolve-directory","description":"Enables the resolve_directory command without any pre-configured scope.","commands":{"allow":["resolve_directory"],"deny":[]}},"deny-basename":{"identifier":"deny-basename","description":"Denies the basename command without any pre-configured scope.","commands":{"allow":[],"deny":["basename"]}},"deny-dirname":{"identifier":"deny-dirname","description":"Denies the dirname command without any pre-configured scope.","commands":{"allow":[],"deny":["dirname"]}},"deny-extname":{"identifier":"deny-extname","description":"Denies the extname command without any pre-configured scope.","commands":{"allow":[],"deny":["extname"]}},"deny-is-absolute":{"identifier":"deny-is-absolute","description":"Denies the is_absolute command without any pre-configured scope.","commands":{"allow":[],"deny":["is_absolute"]}},"deny-join":{"identifier":"deny-join","description":"Denies the join command without any pre-configured scope.","commands":{"allow":[],"deny":["join"]}},"deny-normalize":{"identifier":"deny-normalize","description":"Denies the normalize command without any pre-configured scope.","commands":{"allow":[],"deny":["normalize"]}},"deny-resolve":{"identifier":"deny-resolve","description":"Denies the resolve command without any pre-configured scope.","commands":{"allow":[],"deny":["resolve"]}},"deny-resolve-directory":{"identifier":"deny-resolve-directory","description":"Denies the resolve_directory command without any pre-configured scope.","commands":{"allow":[],"deny":["resolve_directory"]}}},"permission_sets":{},"global_scope_schema":null},"core:resources":{"default_permission":{"identifier":"default","description":"Default permissions for the plugin.","permissions":["allow-close"]},"permissions":{"allow-close":{"identifier":"allow-close","description":"Enables the close command without any pre-configured scope.","commands":{"allow":["close"],"deny":[]}},"deny-close":{"identifier":"deny-close","description":"Denies the close command without any pre-configured scope.","commands":{"allow":[],"deny":["close"]}}},"permission_sets":{},"global_scope_schema":null},"core:tray":{"default_permission":{"identifier":"default","description":"Default permissions for the plugin.","permissions":["allow-new","allow-get-by-id","allow-remove-by-id","allow-set-icon","allow-set-menu","allow-set-tooltip","allow-set-title","allow-set-visible","allow-set-temp-dir-path","allow-set-icon-as-template","allow-set-show-menu-on-left-click"]},"permissions":{"allow-get-by-id":{"identifier":"allow-get-by-id","description":"Enables the get_by_id command without any pre-configured scope.","commands":{"allow":["get_by_id"],"deny":[]}},"allow-new":{"identifier":"allow-new","description":"Enables the new command without any pre-configured scope.","commands":{"allow":["new"],"deny":[]}},"allow-remove-by-id":{"identifier":"allow-remove-by-id","description":"Enables the remove_by_id command without any pre-configured scope.","commands":{"allow":["remove_by_id"],"deny":[]}},"allow-set-icon":{"identifier":"allow-set-icon","description":"Enables the set_icon command without any pre-configured scope.","commands":{"allow":["set_icon"],"deny":[]}},"allow-set-icon-as-template":{"identifier":"allow-set-icon-as-template","description":"Enables the set_icon_as_template command without any pre-configured scope.","commands":{"allow":["set_icon_as_template"],"deny":[]}},"allow-set-menu":{"identifier":"allow-set-menu","description":"Enables the set_menu command without any pre-configured scope.","commands":{"allow":["set_menu"],"deny":[]}},"allow-set-show-menu-on-left-click":{"identifier":"allow-set-show-menu-on-left-click","description":"Enables the set_show_menu_on_left_click command without any pre-configured scope.","commands":{"allow":["set_show_menu_on_left_click"],"deny":[]}},"allow-set-temp-dir-path":{"identifier":"allow-set-temp-dir-path","description":"Enables the set_temp_dir_path command without any pre-configured scope.","commands":{"allow":["set_temp_dir_path"],"deny":[]}},"allow-set-title":{"identifier":"allow-set-title","description":"Enables the set_title command without any pre-configured scope.","commands":{"allow":["set_title"],"deny":[]}},"allow-set-tooltip":{"identifier":"allow-set-tooltip","description":"Enables the set_tooltip command without any pre-configured scope.","commands":{"allow":["set_tooltip"],"deny":[]}},"allow-set-visible":{"identifier":"allow-set-visible","description":"Enables the set_visible command without any pre-configured scope.","commands":{"allow":["set_visible"],"deny":[]}},"deny-get-by-id":{"identifier":"deny-get-by-id","description":"Denies the get_by_id command without any pre-configured scope.","commands":{"allow":[],"deny":["get_by_id"]}},"deny-new":{"identifier":"deny-new","description":"Denies the new command without any pre-configured scope.","commands":{"allow":[],"deny":["new"]}},"deny-remove-by-id":{"identifier":"deny-remove-by-id","description":"Denies the remove_by_id command without any pre-configured scope.","commands":{"allow":[],"deny":["remove_by_id"]}},"deny-set-icon":{"identifier":"deny-set-icon","description":"Denies the set_icon command without any pre-configured scope.","commands":{"allow":[],"deny":["set_icon"]}},"deny-set-icon-as-template":{"identifier":"deny-set-icon-as-template","description":"Denies the set_icon_as_template command without any pre-configured scope.","commands":{"allow":[],"deny":["set_icon_as_template"]}},"deny-set-menu":{"identifier":"deny-set-menu","description":"Denies the set_menu command without any pre-configured scope.","commands":{"allow":[],"deny":["set_menu"]}},"deny-set-show-menu-on-left-click":{"identifier":"deny-set-show-menu-on-left-click","description":"Denies the set_show_menu_on_left_click command without any pre-configured scope.","commands":{"allow":[],"deny":["set_show_menu_on_left_click"]}},"deny-set-temp-dir-path":{"identifier":"deny-set-temp-dir-path","description":"Denies the set_temp_dir_path command without any pre-configured scope.","commands":{"allow":[],"deny":["set_temp_dir_path"]}},"deny-set-title":{"identifier":"deny-set-title","description":"Denies the set_title command without any pre-configured scope.","commands":{"allow":[],"deny":["set_title"]}},"deny-set-tooltip":{"identifier":"deny-set-tooltip","description":"Denies the set_tooltip command without any pre-configured scope.","commands":{"allow":[],"deny":["set_tooltip"]}},"deny-set-visible":{"identifier":"deny-set-visible","description":"Denies the set_visible command without any pre-configured scope.","commands":{"allow":[],"deny":["set_visible"]}}},"permission_sets":{},"global_scope_schema":null},"core:webview":{"default_permission":{"identifier":"default","description":"Default permissions for the plugin.","permissions":["allow-get-all-webviews","allow-webview-position","allow-webview-size","allow-internal-toggle-devtools"]},"permissions":{"allow-clear-all-browsing-data":{"identifier":"allow-clear-all-browsing-data","description":"Enables the clear_all_browsing_data command without any pre-configured scope.","commands":{"allow":["clear_all_browsing_data"],"deny":[]}},"allow-create-webview":{"identifier":"allow-create-webview","description":"Enables the create_webview command without any pre-configured scope.","commands":{"allow":["create_webview"],"deny":[]}},"allow-create-webview-window":{"identifier":"allow-create-webview-window","description":"Enables the create_webview_window command without any pre-configured scope.","commands":{"allow":["create_webview_window"],"deny":[]}},"allow-get-all-webviews":{"identifier":"allow-get-all-webviews","description":"Enables the get_all_webviews command without any pre-configured scope.","commands":{"allow":["get_all_webviews"],"deny":[]}},"allow-internal-toggle-devtools":{"identifier":"allow-internal-toggle-devtools","description":"Enables the internal_toggle_devtools command without any pre-configured scope.","commands":{"allow":["internal_toggle_devtools"],"deny":[]}},"allow-print":{"identifier":"allow-print","description":"Enables the print command without any pre-configured scope.","commands":{"allow":["print"],"deny":[]}},"allow-reparent":{"identifier":"allow-reparent","description":"Enables the reparent command without any pre-configured scope.","commands":{"allow":["reparent"],"deny":[]}},"allow-set-webview-focus":{"identifier":"allow-set-webview-focus","description":"Enables the set_webview_focus command without any pre-configured scope.","commands":{"allow":["set_webview_focus"],"deny":[]}},"allow-set-webview-position":{"identifier":"allow-set-webview-position","description":"Enables the set_webview_position command without any pre-configured scope.","commands":{"allow":["set_webview_position"],"deny":[]}},"allow-set-webview-size":{"identifier":"allow-set-webview-size","description":"Enables the set_webview_size command without any pre-configured scope.","commands":{"allow":["set_webview_size"],"deny":[]}},"allow-set-webview-zoom":{"identifier":"allow-set-webview-zoom","description":"Enables the set_webview_zoom command without any pre-configured scope.","commands":{"allow":["set_webview_zoom"],"deny":[]}},"allow-webview-close":{"identifier":"allow-webview-close","description":"Enables the webview_close command without any pre-configured scope.","commands":{"allow":["webview_close"],"deny":[]}},"allow-webview-hide":{"identifier":"allow-webview-hide","description":"Enables the webview_hide command without any pre-configured scope.","commands":{"allow":["webview_hide"],"deny":[]}},"allow-webview-position":{"identifier":"allow-webview-position","description":"Enables the webview_position command without any pre-configured scope.","commands":{"allow":["webview_position"],"deny":[]}},"allow-webview-show":{"identifier":"allow-webview-show","description":"Enables the webview_show command without any pre-configured scope.","commands":{"allow":["webview_show"],"deny":[]}},"allow-webview-size":{"identifier":"allow-webview-size","description":"Enables the webview_size command without any pre-configured scope.","commands":{"allow":["webview_size"],"deny":[]}},"deny-clear-all-browsing-data":{"identifier":"deny-clear-all-browsing-data","description":"Denies the clear_all_browsing_data command without any pre-configured scope.","commands":{"allow":[],"deny":["clear_all_browsing_data"]}},"deny-create-webview":{"identifier":"deny-create-webview","description":"Denies the create_webview command without any pre-configured scope.","commands":{"allow":[],"deny":["create_webview"]}},"deny-create-webview-window":{"identifier":"deny-create-webview-window","description":"Denies the create_webview_window command without any pre-configured scope.","commands":{"allow":[],"deny":["create_webview_window"]}},"deny-get-all-webviews":{"identifier":"deny-get-all-webviews","description":"Denies the get_all_webviews command without any pre-configured scope.","commands":{"allow":[],"deny":["get_all_webviews"]}},"deny-internal-toggle-devtools":{"identifier":"deny-internal-toggle-devtools","description":"Denies the internal_toggle_devtools command without any pre-configured scope.","commands":{"allow":[],"deny":["internal_toggle_devtools"]}},"deny-print":{"identifier":"deny-print","description":"Denies the print command without any pre-configured scope.","commands":{"allow":[],"deny":["print"]}},"deny-reparent":{"identifier":"deny-reparent","description":"Denies the reparent command without any pre-configured scope.","commands":{"allow":[],"deny":["reparent"]}},"deny-set-webview-focus":{"identifier":"deny-set-webview-focus","description":"Denies the set_webview_focus command without any pre-configured scope.","commands":{"allow":[],"deny":["set_webview_focus"]}},"deny-set-webview-position":{"identifier":"deny-set-webview-position","description":"Denies the set_webview_position command without any pre-configured scope.","commands":{"allow":[],"deny":["set_webview_position"]}},"deny-set-webview-size":{"identifier":"deny-set-webview-size","description":"Denies the set_webview_size command without any pre-configured scope.","commands":{"allow":[],"deny":["set_webview_size"]}},"deny-set-webview-zoom":{"identifier":"deny-set-webview-zoom","description":"Denies the set_webview_zoom command without any pre-configured scope.","commands":{"allow":[],"deny":["set_webview_zoom"]}},"deny-webview-close":{"identifier":"deny-webview-close","description":"Denies the webview_close command without any pre-configured scope.","commands":{"allow":[],"deny":["webview_close"]}},"deny-webview-hide":{"identifier":"deny-webview-hide","description":"Denies the webview_hide command without any pre-configured scope.","commands":{"allow":[],"deny":["webview_hide"]}},"deny-webview-position":{"identifier":"deny-webview-position","description":"Denies the webview_position command without any pre-configured scope.","commands":{"allow":[],"deny":["webview_position"]}},"deny-webview-show":{"identifier":"deny-webview-show","description":"Denies the webview_show command without any pre-configured scope.","commands":{"allow":[],"deny":["webview_show"]}},"deny-webview-size":{"identifier":"deny-webview-size","description":"Denies the webview_size command without any pre-configured scope.","commands":{"allow":[],"deny":["webview_size"]}}},"permission_sets":{},"global_scope_schema":null},"core:window":{"default_permission":{"identifier":"default","description":"Default permissions for the plugin.","permissions":["allow-get-all-windows","allow-scale-factor","allow-inner-position","allow-outer-position","allow-inner-size","allow-outer-size","allow-is-fullscreen","allow-is-minimized","allow-is-maximized","allow-is-focused","allow-is-decorated","allow-is-resizable","allow-is-maximizable","allow-is-minimizable","allow-is-closable","allow-is-visible","allow-is-enabled","allow-title","allow-current-monitor","allow-primary-monitor","allow-monitor-from-point","allow-available-monitors","allow-cursor-position","allow-theme","allow-internal-toggle-maximize"]},"permissions":{"allow-available-monitors":{"identifier":"allow-available-monitors","description":"Enables the available_monitors command without any pre-configured scope.","commands":{"allow":["available_monitors"],"deny":[]}},"allow-center":{"identifier":"allow-center","description":"Enables the center command without any pre-configured scope.","commands":{"allow":["center"],"deny":[]}},"allow-close":{"identifier":"allow-close","description":"Enables the close command without any pre-configured scope.","commands":{"allow":["close"],"deny":[]}},"allow-create":{"identifier":"allow-create","description":"Enables the create command without any pre-configured scope.","commands":{"allow":["create"],"deny":[]}},"allow-current-monitor":{"identifier":"allow-current-monitor","description":"Enables the current_monitor command without any pre-configured scope.","commands":{"allow":["current_monitor"],"deny":[]}},"allow-cursor-position":{"identifier":"allow-cursor-position","description":"Enables the cursor_position command without any pre-configured scope.","commands":{"allow":["cursor_position"],"deny":[]}},"allow-destroy":{"identifier":"allow-destroy","description":"Enables the destroy command without any pre-configured scope.","commands":{"allow":["destroy"],"deny":[]}},"allow-get-all-windows":{"identifier":"allow-get-all-windows","description":"Enables the get_all_windows command without any pre-configured scope.","commands":{"allow":["get_all_windows"],"deny":[]}},"allow-hide":{"identifier":"allow-hide","description":"Enables the hide command without any pre-configured scope.","commands":{"allow":["hide"],"deny":[]}},"allow-inner-position":{"identifier":"allow-inner-position","description":"Enables the inner_position command without any pre-configured scope.","commands":{"allow":["inner_position"],"deny":[]}},"allow-inner-size":{"identifier":"allow-inner-size","description":"Enables the inner_size command without any pre-configured scope.","commands":{"allow":["inner_size"],"deny":[]}},"allow-internal-toggle-maximize":{"identifier":"allow-internal-toggle-maximize","description":"Enables the internal_toggle_maximize command without any pre-configured scope.","commands":{"allow":["internal_toggle_maximize"],"deny":[]}},"allow-is-closable":{"identifier":"allow-is-closable","description":"Enables the is_closable command without any pre-configured scope.","commands":{"allow":["is_closable"],"deny":[]}},"allow-is-decorated":{"identifier":"allow-is-decorated","description":"Enables the is_decorated command without any pre-configured scope.","commands":{"allow":["is_decorated"],"deny":[]}},"allow-is-enabled":{"identifier":"allow-is-enabled","description":"Enables the is_enabled command without any pre-configured scope.","commands":{"allow":["is_enabled"],"deny":[]}},"allow-is-focused":{"identifier":"allow-is-focused","description":"Enables the is_focused command without any pre-configured scope.","commands":{"allow":["is_focused"],"deny":[]}},"allow-is-fullscreen":{"identifier":"allow-is-fullscreen","description":"Enables the is_fullscreen command without any pre-configured scope.","commands":{"allow":["is_fullscreen"],"deny":[]}},"allow-is-maximizable":{"identifier":"allow-is-maximizable","description":"Enables the is_maximizable command without any pre-configured scope.","commands":{"allow":["is_maximizable"],"deny":[]}},"allow-is-maximized":{"identifier":"allow-is-maximized","description":"Enables the is_maximized command without any pre-configured scope.","commands":{"allow":["is_maximized"],"deny":[]}},"allow-is-minimizable":{"identifier":"allow-is-minimizable","description":"Enables the is_minimizable command without any pre-configured scope.","commands":{"allow":["is_minimizable"],"deny":[]}},"allow-is-minimized":{"identifier":"allow-is-minimized","description":"Enables the is_minimized command without any pre-configured scope.","commands":{"allow":["is_minimized"],"deny":[]}},"allow-is-resizable":{"identifier":"allow-is-resizable","description":"Enables the is_resizable command without any pre-configured scope.","commands":{"allow":["is_resizable"],"deny":[]}},"allow-is-visible":{"identifier":"allow-is-visible","description":"Enables the is_visible command without any pre-configured scope.","commands":{"allow":["is_visible"],"deny":[]}},"allow-maximize":{"identifier":"allow-maximize","description":"Enables the maximize command without any pre-configured scope.","commands":{"allow":["maximize"],"deny":[]}},"allow-minimize":{"identifier":"allow-minimize","description":"Enables the minimize command without any pre-configured scope.","commands":{"allow":["minimize"],"deny":[]}},"allow-monitor-from-point":{"identifier":"allow-monitor-from-point","description":"Enables the monitor_from_point command without any pre-configured scope.","commands":{"allow":["monitor_from_point"],"deny":[]}},"allow-outer-position":{"identifier":"allow-outer-position","description":"Enables the outer_position command without any pre-configured scope.","commands":{"allow":["outer_position"],"deny":[]}},"allow-outer-size":{"identifier":"allow-outer-size","description":"Enables the outer_size command without any pre-configured scope.","commands":{"allow":["outer_size"],"deny":[]}},"allow-primary-monitor":{"identifier":"allow-primary-monitor","description":"Enables the primary_monitor command without any pre-configured scope.","commands":{"allow":["primary_monitor"],"deny":[]}},"allow-request-user-attention":{"identifier":"allow-request-user-attention","description":"Enables the request_user_attention command without any pre-configured scope.","commands":{"allow":["request_user_attention"],"deny":[]}},"allow-scale-factor":{"identifier":"allow-scale-factor","description":"Enables the scale_factor command without any pre-configured scope.","commands":{"allow":["scale_factor"],"deny":[]}},"allow-set-always-on-bottom":{"identifier":"allow-set-always-on-bottom","description":"Enables the set_always_on_bottom command without any pre-configured scope.","commands":{"allow":["set_always_on_bottom"],"deny":[]}},"allow-set-always-on-top":{"identifier":"allow-set-always-on-top","description":"Enables the set_always_on_top command without any pre-configured scope.","commands":{"allow":["set_always_on_top"],"deny":[]}},"allow-set-closable":{"identifier":"allow-set-closable","description":"Enables the set_closable command without any pre-configured scope.","commands":{"allow":["set_closable"],"deny":[]}},"allow-set-content-protected":{"identifier":"allow-set-content-protected","description":"Enables the set_content_protected command without any pre-configured scope.","commands":{"allow":["set_content_protected"],"deny":[]}},"allow-set-cursor-grab":{"identifier":"allow-set-cursor-grab","description":"Enables the set_cursor_grab command without any pre-configured scope.","commands":{"allow":["set_cursor_grab"],"deny":[]}},"allow-set-cursor-icon":{"identifier":"allow-set-cursor-icon","description":"Enables the set_cursor_icon command without any pre-configured scope.","commands":{"allow":["set_cursor_icon"],"deny":[]}},"allow-set-cursor-position":{"identifier":"allow-set-cursor-position","description":"Enables the set_cursor_position command without any pre-configured scope.","commands":{"allow":["set_cursor_position"],"deny":[]}},"allow-set-cursor-visible":{"identifier":"allow-set-cursor-visible","description":"Enables the set_cursor_visible command without any pre-configured scope.","commands":{"allow":["set_cursor_visible"],"deny":[]}},"allow-set-decorations":{"identifier":"allow-set-decorations","description":"Enables the set_decorations command without any pre-configured scope.","commands":{"allow":["set_decorations"],"deny":[]}},"allow-set-effects":{"identifier":"allow-set-effects","description":"Enables the set_effects command without any pre-configured scope.","commands":{"allow":["set_effects"],"deny":[]}},"allow-set-enabled":{"identifier":"allow-set-enabled","description":"Enables the set_enabled command without any pre-configured scope.","commands":{"allow":["set_enabled"],"deny":[]}},"allow-set-focus":{"identifier":"allow-set-focus","description":"Enables the set_focus command without any pre-configured scope.","commands":{"allow":["set_focus"],"deny":[]}},"allow-set-fullscreen":{"identifier":"allow-set-fullscreen","description":"Enables the set_fullscreen command without any pre-configured scope.","commands":{"allow":["set_fullscreen"],"deny":[]}},"allow-set-icon":{"identifier":"allow-set-icon","description":"Enables the set_icon command without any pre-configured scope.","commands":{"allow":["set_icon"],"deny":[]}},"allow-set-ignore-cursor-events":{"identifier":"allow-set-ignore-cursor-events","description":"Enables the set_ignore_cursor_events command without any pre-configured scope.","commands":{"allow":["set_ignore_cursor_events"],"deny":[]}},"allow-set-max-size":{"identifier":"allow-set-max-size","description":"Enables the set_max_size command without any pre-configured scope.","commands":{"allow":["set_max_size"],"deny":[]}},"allow-set-maximizable":{"identifier":"allow-set-maximizable","description":"Enables the set_maximizable command without any pre-configured scope.","commands":{"allow":["set_maximizable"],"deny":[]}},"allow-set-min-size":{"identifier":"allow-set-min-size","description":"Enables the set_min_size command without any pre-configured scope.","commands":{"allow":["set_min_size"],"deny":[]}},"allow-set-minimizable":{"identifier":"allow-set-minimizable","description":"Enables the set_minimizable command without any pre-configured scope.","commands":{"allow":["set_minimizable"],"deny":[]}},"allow-set-position":{"identifier":"allow-set-position","description":"Enables the set_position command without any pre-configured scope.","commands":{"allow":["set_position"],"deny":[]}},"allow-set-progress-bar":{"identifier":"allow-set-progress-bar","description":"Enables the set_progress_bar command without any pre-configured scope.","commands":{"allow":["set_progress_bar"],"deny":[]}},"allow-set-resizable":{"identifier":"allow-set-resizable","description":"Enables the set_resizable command without any pre-configured scope.","commands":{"allow":["set_resizable"],"deny":[]}},"allow-set-shadow":{"identifier":"allow-set-shadow","description":"Enables the set_shadow command without any pre-configured scope.","commands":{"allow":["set_shadow"],"deny":[]}},"allow-set-size":{"identifier":"allow-set-size","description":"Enables the set_size command without any pre-configured scope.","commands":{"allow":["set_size"],"deny":[]}},"allow-set-size-constraints":{"identifier":"allow-set-size-constraints","description":"Enables the set_size_constraints command without any pre-configured scope.","commands":{"allow":["set_size_constraints"],"deny":[]}},"allow-set-skip-taskbar":{"identifier":"allow-set-skip-taskbar","description":"Enables the set_skip_taskbar command without any pre-configured scope.","commands":{"allow":["set_skip_taskbar"],"deny":[]}},"allow-set-theme":{"identifier":"allow-set-theme","description":"Enables the set_theme command without any pre-configured scope.","commands":{"allow":["set_theme"],"deny":[]}},"allow-set-title":{"identifier":"allow-set-title","description":"Enables the set_title command without any pre-configured scope.","commands":{"allow":["set_title"],"deny":[]}},"allow-set-title-bar-style":{"identifier":"allow-set-title-bar-style","description":"Enables the set_title_bar_style command without any pre-configured scope.","commands":{"allow":["set_title_bar_style"],"deny":[]}},"allow-set-visible-on-all-workspaces":{"identifier":"allow-set-visible-on-all-workspaces","description":"Enables the set_visible_on_all_workspaces command without any pre-configured scope.","commands":{"allow":["set_visible_on_all_workspaces"],"deny":[]}},"allow-show":{"identifier":"allow-show","description":"Enables the show command without any pre-configured scope.","commands":{"allow":["show"],"deny":[]}},"allow-start-dragging":{"identifier":"allow-start-dragging","description":"Enables the start_dragging command without any pre-configured scope.","commands":{"allow":["start_dragging"],"deny":[]}},"allow-start-resize-dragging":{"identifier":"allow-start-resize-dragging","description":"Enables the start_resize_dragging command without any pre-configured scope.","commands":{"allow":["start_resize_dragging"],"deny":[]}},"allow-theme":{"identifier":"allow-theme","description":"Enables the theme command without any pre-configured scope.","commands":{"allow":["theme"],"deny":[]}},"allow-title":{"identifier":"allow-title","description":"Enables the title command without any pre-configured scope.","commands":{"allow":["title"],"deny":[]}},"allow-toggle-maximize":{"identifier":"allow-toggle-maximize","description":"Enables the toggle_maximize command without any pre-configured scope.","commands":{"allow":["toggle_maximize"],"deny":[]}},"allow-unmaximize":{"identifier":"allow-unmaximize","description":"Enables the unmaximize command without any pre-configured scope.","commands":{"allow":["unmaximize"],"deny":[]}},"allow-unminimize":{"identifier":"allow-unminimize","description":"Enables the unminimize command without any pre-configured scope.","commands":{"allow":["unminimize"],"deny":[]}},"deny-available-monitors":{"identifier":"deny-available-monitors","description":"Denies the available_monitors command without any pre-configured scope.","commands":{"allow":[],"deny":["available_monitors"]}},"deny-center":{"identifier":"deny-center","description":"Denies the center command without any pre-configured scope.","commands":{"allow":[],"deny":["center"]}},"deny-close":{"identifier":"deny-close","description":"Denies the close command without any pre-configured scope.","commands":{"allow":[],"deny":["close"]}},"deny-create":{"identifier":"deny-create","description":"Denies the create command without any pre-configured scope.","commands":{"allow":[],"deny":["create"]}},"deny-current-monitor":{"identifier":"deny-current-monitor","description":"Denies the current_monitor command without any pre-configured scope.","commands":{"allow":[],"deny":["current_monitor"]}},"deny-cursor-position":{"identifier":"deny-cursor-position","description":"Denies the cursor_position command without any pre-configured scope.","commands":{"allow":[],"deny":["cursor_position"]}},"deny-destroy":{"identifier":"deny-destroy","description":"Denies the destroy command without any pre-configured scope.","commands":{"allow":[],"deny":["destroy"]}},"deny-get-all-windows":{"identifier":"deny-get-all-windows","description":"Denies the get_all_windows command without any pre-configured scope.","commands":{"allow":[],"deny":["get_all_windows"]}},"deny-hide":{"identifier":"deny-hide","description":"Denies the hide command without any pre-configured scope.","commands":{"allow":[],"deny":["hide"]}},"deny-inner-position":{"identifier":"deny-inner-position","description":"Denies the inner_position command without any pre-configured scope.","commands":{"allow":[],"deny":["inner_position"]}},"deny-inner-size":{"identifier":"deny-inner-size","description":"Denies the inner_size command without any pre-configured scope.","commands":{"allow":[],"deny":["inner_size"]}},"deny-internal-toggle-maximize":{"identifier":"deny-internal-toggle-maximize","description":"Denies the internal_toggle_maximize command without any pre-configured scope.","commands":{"allow":[],"deny":["internal_toggle_maximize"]}},"deny-is-closable":{"identifier":"deny-is-closable","description":"Denies the is_closable command without any pre-configured scope.","commands":{"allow":[],"deny":["is_closable"]}},"deny-is-decorated":{"identifier":"deny-is-decorated","description":"Denies the is_decorated command without any pre-configured scope.","commands":{"allow":[],"deny":["is_decorated"]}},"deny-is-enabled":{"identifier":"deny-is-enabled","description":"Denies the is_enabled command without any pre-configured scope.","commands":{"allow":[],"deny":["is_enabled"]}},"deny-is-focused":{"identifier":"deny-is-focused","description":"Denies the is_focused command without any pre-configured scope.","commands":{"allow":[],"deny":["is_focused"]}},"deny-is-fullscreen":{"identifier":"deny-is-fullscreen","description":"Denies the is_fullscreen command without any pre-configured scope.","commands":{"allow":[],"deny":["is_fullscreen"]}},"deny-is-maximizable":{"identifier":"deny-is-maximizable","description":"Denies the is_maximizable command without any pre-configured scope.","commands":{"allow":[],"deny":["is_maximizable"]}},"deny-is-maximized":{"identifier":"deny-is-maximized","description":"Denies the is_maximized command without any pre-configured scope.","commands":{"allow":[],"deny":["is_maximized"]}},"deny-is-minimizable":{"identifier":"deny-is-minimizable","description":"Denies the is_minimizable command without any pre-configured scope.","commands":{"allow":[],"deny":["is_minimizable"]}},"deny-is-minimized":{"identifier":"deny-is-minimized","description":"Denies the is_minimized command without any pre-configured scope.","commands":{"allow":[],"deny":["is_minimized"]}},"deny-is-resizable":{"identifier":"deny-is-resizable","description":"Denies the is_resizable command without any pre-configured scope.","commands":{"allow":[],"deny":["is_resizable"]}},"deny-is-visible":{"identifier":"deny-is-visible","description":"Denies the is_visible command without any pre-configured scope.","commands":{"allow":[],"deny":["is_visible"]}},"deny-maximize":{"identifier":"deny-maximize","description":"Denies the maximize command without any pre-configured scope.","commands":{"allow":[],"deny":["maximize"]}},"deny-minimize":{"identifier":"deny-minimize","description":"Denies the minimize command without any pre-configured scope.","commands":{"allow":[],"deny":["minimize"]}},"deny-monitor-from-point":{"identifier":"deny-monitor-from-point","description":"Denies the monitor_from_point command without any pre-configured scope.","commands":{"allow":[],"deny":["monitor_from_point"]}},"deny-outer-position":{"identifier":"deny-outer-position","description":"Denies the outer_position command without any pre-configured scope.","commands":{"allow":[],"deny":["outer_position"]}},"deny-outer-size":{"identifier":"deny-outer-size","description":"Denies the outer_size command without any pre-configured scope.","commands":{"allow":[],"deny":["outer_size"]}},"deny-primary-monitor":{"identifier":"deny-primary-monitor","description":"Denies the primary_monitor command without any pre-configured scope.","commands":{"allow":[],"deny":["primary_monitor"]}},"deny-request-user-attention":{"identifier":"deny-request-user-attention","description":"Denies the request_user_attention command without any pre-configured scope.","commands":{"allow":[],"deny":["request_user_attention"]}},"deny-scale-factor":{"identifier":"deny-scale-factor","description":"Denies the scale_factor command without any pre-configured scope.","commands":{"allow":[],"deny":["scale_factor"]}},"deny-set-always-on-bottom":{"identifier":"deny-set-always-on-bottom","description":"Denies the set_always_on_bottom command without any pre-configured scope.","commands":{"allow":[],"deny":["set_always_on_bottom"]}},"deny-set-always-on-top":{"identifier":"deny-set-always-on-top","description":"Denies the set_always_on_top command without any pre-configured scope.","commands":{"allow":[],"deny":["set_always_on_top"]}},"deny-set-closable":{"identifier":"deny-set-closable","description":"Denies the set_closable command without any pre-configured scope.","commands":{"allow":[],"deny":["set_closable"]}},"deny-set-content-protected":{"identifier":"deny-set-content-protected","description":"Denies the set_content_protected command without any pre-configured scope.","commands":{"allow":[],"deny":["set_content_protected"]}},"deny-set-cursor-grab":{"identifier":"deny-set-cursor-grab","description":"Denies the set_cursor_grab command without any pre-configured scope.","commands":{"allow":[],"deny":["set_cursor_grab"]}},"deny-set-cursor-icon":{"identifier":"deny-set-cursor-icon","description":"Denies the set_cursor_icon command without any pre-configured scope.","commands":{"allow":[],"deny":["set_cursor_icon"]}},"deny-set-cursor-position":{"identifier":"deny-set-cursor-position","description":"Denies the set_cursor_position command without any pre-configured scope.","commands":{"allow":[],"deny":["set_cursor_position"]}},"deny-set-cursor-visible":{"identifier":"deny-set-cursor-visible","description":"Denies the set_cursor_visible command without any pre-configured scope.","commands":{"allow":[],"deny":["set_cursor_visible"]}},"deny-set-decorations":{"identifier":"deny-set-decorations","description":"Denies the set_decorations command without any pre-configured scope.","commands":{"allow":[],"deny":["set_decorations"]}},"deny-set-effects":{"identifier":"deny-set-effects","description":"Denies the set_effects command without any pre-configured scope.","commands":{"allow":[],"deny":["set_effects"]}},"deny-set-enabled":{"identifier":"deny-set-enabled","description":"Denies the set_enabled command without any pre-configured scope.","commands":{"allow":[],"deny":["set_enabled"]}},"deny-set-focus":{"identifier":"deny-set-focus","description":"Denies the set_focus command without any pre-configured scope.","commands":{"allow":[],"deny":["set_focus"]}},"deny-set-fullscreen":{"identifier":"deny-set-fullscreen","description":"Denies the set_fullscreen command without any pre-configured scope.","commands":{"allow":[],"deny":["set_fullscreen"]}},"deny-set-icon":{"identifier":"deny-set-icon","description":"Denies the set_icon command without any pre-configured scope.","commands":{"allow":[],"deny":["set_icon"]}},"deny-set-ignore-cursor-events":{"identifier":"deny-set-ignore-cursor-events","description":"Denies the set_ignore_cursor_events command without any pre-configured scope.","commands":{"allow":[],"deny":["set_ignore_cursor_events"]}},"deny-set-max-size":{"identifier":"deny-set-max-size","description":"Denies the set_max_size command without any pre-configured scope.","commands":{"allow":[],"deny":["set_max_size"]}},"deny-set-maximizable":{"identifier":"deny-set-maximizable","description":"Denies the set_maximizable command without any pre-configured scope.","commands":{"allow":[],"deny":["set_maximizable"]}},"deny-set-min-size":{"identifier":"deny-set-min-size","description":"Denies the set_min_size command without any pre-configured scope.","commands":{"allow":[],"deny":["set_min_size"]}},"deny-set-minimizable":{"identifier":"deny-set-minimizable","description":"Denies the set_minimizable command without any pre-configured scope.","commands":{"allow":[],"deny":["set_minimizable"]}},"deny-set-position":{"identifier":"deny-set-position","description":"Denies the set_position command without any pre-configured scope.","commands":{"allow":[],"deny":["set_position"]}},"deny-set-progress-bar":{"identifier":"deny-set-progress-bar","description":"Denies the set_progress_bar command without any pre-configured scope.","commands":{"allow":[],"deny":["set_progress_bar"]}},"deny-set-resizable":{"identifier":"deny-set-resizable","description":"Denies the set_resizable command without any pre-configured scope.","commands":{"allow":[],"deny":["set_resizable"]}},"deny-set-shadow":{"identifier":"deny-set-shadow","description":"Denies the set_shadow command without any pre-configured scope.","commands":{"allow":[],"deny":["set_shadow"]}},"deny-set-size":{"identifier":"deny-set-size","description":"Denies the set_size command without any pre-configured scope.","commands":{"allow":[],"deny":["set_size"]}},"deny-set-size-constraints":{"identifier":"deny-set-size-constraints","description":"Denies the set_size_constraints command without any pre-configured scope.","commands":{"allow":[],"deny":["set_size_constraints"]}},"deny-set-skip-taskbar":{"identifier":"deny-set-skip-taskbar","description":"Denies the set_skip_taskbar command without any pre-configured scope.","commands":{"allow":[],"deny":["set_skip_taskbar"]}},"deny-set-theme":{"identifier":"deny-set-theme","description":"Denies the set_theme command without any pre-configured scope.","commands":{"allow":[],"deny":["set_theme"]}},"deny-set-title":{"identifier":"deny-set-title","description":"Denies the set_title command without any pre-configured scope.","commands":{"allow":[],"deny":["set_title"]}},"deny-set-title-bar-style":{"identifier":"deny-set-title-bar-style","description":"Denies the set_title_bar_style command without any pre-configured scope.","commands":{"allow":[],"deny":["set_title_bar_style"]}},"deny-set-visible-on-all-workspaces":{"identifier":"deny-set-visible-on-all-workspaces","description":"Denies the set_visible_on_all_workspaces command without any pre-configured scope.","commands":{"allow":[],"deny":["set_visible_on_all_workspaces"]}},"deny-show":{"identifier":"deny-show","description":"Denies the show command without any pre-configured scope.","commands":{"allow":[],"deny":["show"]}},"deny-start-dragging":{"identifier":"deny-start-dragging","description":"Denies the start_dragging command without any pre-configured scope.","commands":{"allow":[],"deny":["start_dragging"]}},"deny-start-resize-dragging":{"identifier":"deny-start-resize-dragging","description":"Denies the start_resize_dragging command without any pre-configured scope.","commands":{"allow":[],"deny":["start_resize_dragging"]}},"deny-theme":{"identifier":"deny-theme","description":"Denies the theme command without any pre-configured scope.","commands":{"allow":[],"deny":["theme"]}},"deny-title":{"identifier":"deny-title","description":"Denies the title command without any pre-configured scope.","commands":{"allow":[],"deny":["title"]}},"deny-toggle-maximize":{"identifier":"deny-toggle-maximize","description":"Denies the toggle_maximize command without any pre-configured scope.","commands":{"allow":[],"deny":["toggle_maximize"]}},"deny-unmaximize":{"identifier":"deny-unmaximize","description":"Denies the unmaximize command without any pre-configured scope.","commands":{"allow":[],"deny":["unmaximize"]}},"deny-unminimize":{"identifier":"deny-unminimize","description":"Denies the unminimize command without any pre-configured scope.","commands":{"allow":[],"deny":["unminimize"]}}},"permission_sets":{},"global_scope_schema":null}} \ No newline at end of file diff --git a/apps/gpgui-helper/src-tauri/gen/schemas/capabilities.json b/apps/gpgui-helper/src-tauri/gen/schemas/capabilities.json deleted file mode 100644 index 4893e3a8..00000000 --- a/apps/gpgui-helper/src-tauri/gen/schemas/capabilities.json +++ /dev/null @@ -1 +0,0 @@ -{"default":{"identifier":"default","description":"Capability for the main window","local":true,"windows":["main"],"permissions":["core:window:allow-start-dragging","core:event:allow-listen","core:event:allow-emit","core:event:allow-unlisten"]}} \ No newline at end of file diff --git a/apps/gpgui-helper/src-tauri/gen/schemas/desktop-schema.json b/apps/gpgui-helper/src-tauri/gen/schemas/desktop-schema.json deleted file mode 100644 index f1cad267..00000000 --- a/apps/gpgui-helper/src-tauri/gen/schemas/desktop-schema.json +++ /dev/null @@ -1,1756 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema#", - "title": "CapabilityFile", - "description": "Capability formats accepted in a capability file.", - "anyOf": [ - { - "description": "A single capability.", - "allOf": [ - { - "$ref": "#/definitions/Capability" - } - ] - }, - { - "description": "A list of capabilities.", - "type": "array", - "items": { - "$ref": "#/definitions/Capability" - } - }, - { - "description": "A list of capabilities.", - "type": "object", - "required": [ - "capabilities" - ], - "properties": { - "capabilities": { - "description": "The list of capabilities.", - "type": "array", - "items": { - "$ref": "#/definitions/Capability" - } - } - } - } - ], - "definitions": { - "Capability": { - "description": "A grouping and boundary mechanism developers can use to isolate access to the IPC layer.\n\nIt controls application windows fine grained access to the Tauri core, application, or plugin commands. If a window is not matching any capability then it has no access to the IPC layer at all.\n\nThis can be done to create groups of windows, based on their required system access, which can reduce impact of frontend vulnerabilities in less privileged windows. Windows can be added to a capability by exact name (e.g. `main-window`) or glob patterns like `*` or `admin-*`. A Window can have none, one, or multiple associated capabilities.\n\n## Example\n\n```json { \"identifier\": \"main-user-files-write\", \"description\": \"This capability allows the `main` window on macOS and Windows access to `filesystem` write related commands and `dialog` commands to enable programatic access to files selected by the user.\", \"windows\": [ \"main\" ], \"permissions\": [ \"core:default\", \"dialog:open\", { \"identifier\": \"fs:allow-write-text-file\", \"allow\": [{ \"path\": \"$HOME/test.txt\" }] }, ], \"platforms\": [\"macOS\",\"windows\"] } ```", - "type": "object", - "required": [ - "identifier", - "permissions" - ], - "properties": { - "identifier": { - "description": "Identifier of the capability.\n\n## Example\n\n`main-user-files-write`", - "type": "string" - }, - "description": { - "description": "Description of what the capability is intended to allow on associated windows.\n\nIt should contain a description of what the grouped permissions should allow.\n\n## Example\n\nThis capability allows the `main` window access to `filesystem` write related commands and `dialog` commands to enable programatic access to files selected by the user.", - "default": "", - "type": "string" - }, - "remote": { - "description": "Configure remote URLs that can use the capability permissions.\n\nThis setting is optional and defaults to not being set, as our default use case is that the content is served from our local application.\n\n:::caution Make sure you understand the security implications of providing remote sources with local system access. :::\n\n## Example\n\n```json { \"urls\": [\"https://*.mydomain.dev\"] } ```", - "anyOf": [ - { - "$ref": "#/definitions/CapabilityRemote" - }, - { - "type": "null" - } - ] - }, - "local": { - "description": "Whether this capability is enabled for local app URLs or not. Defaults to `true`.", - "default": true, - "type": "boolean" - }, - "windows": { - "description": "List of windows that are affected by this capability. Can be a glob pattern.\n\nOn multiwebview windows, prefer [`Self::webviews`] for a fine grained access control.\n\n## Example\n\n`[\"main\"]`", - "type": "array", - "items": { - "type": "string" - } - }, - "webviews": { - "description": "List of webviews that are affected by this capability. Can be a glob pattern.\n\nThis is only required when using on multiwebview contexts, by default all child webviews of a window that matches [`Self::windows`] are linked.\n\n## Example\n\n`[\"sub-webview-one\", \"sub-webview-two\"]`", - "type": "array", - "items": { - "type": "string" - } - }, - "permissions": { - "description": "List of permissions attached to this capability.\n\nMust include the plugin name as prefix in the form of `${plugin-name}:${permission-name}`. For commands directly implemented in the application itself only `${permission-name}` is required.\n\n## Example\n\n```json [ \"core:default\", \"shell:allow-open\", \"dialog:open\", { \"identifier\": \"fs:allow-write-text-file\", \"allow\": [{ \"path\": \"$HOME/test.txt\" }] } ] ```", - "type": "array", - "items": { - "$ref": "#/definitions/PermissionEntry" - }, - "uniqueItems": true - }, - "platforms": { - "description": "Limit which target platforms this capability applies to.\n\nBy default all platforms are targeted.\n\n## Example\n\n`[\"macOS\",\"windows\"]`", - "type": [ - "array", - "null" - ], - "items": { - "$ref": "#/definitions/Target" - } - } - } - }, - "CapabilityRemote": { - "description": "Configuration for remote URLs that are associated with the capability.", - "type": "object", - "required": [ - "urls" - ], - "properties": { - "urls": { - "description": "Remote domains this capability refers to using the [URLPattern standard](https://urlpattern.spec.whatwg.org/).\n\n## Examples\n\n- \"https://*.mydomain.dev\": allows subdomains of mydomain.dev - \"https://mydomain.dev/api/*\": allows any subpath of mydomain.dev/api", - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "PermissionEntry": { - "description": "An entry for a permission value in a [`Capability`] can be either a raw permission [`Identifier`] or an object that references a permission and extends its scope.", - "anyOf": [ - { - "description": "Reference a permission or permission set by identifier.", - "allOf": [ - { - "$ref": "#/definitions/Identifier" - } - ] - }, - { - "description": "Reference a permission or permission set by identifier and extends its scope.", - "type": "object", - "allOf": [ - { - "properties": { - "identifier": { - "description": "Identifier of the permission or permission set.", - "allOf": [ - { - "$ref": "#/definitions/Identifier" - } - ] - }, - "allow": { - "description": "Data that defines what is allowed by the scope.", - "type": [ - "array", - "null" - ], - "items": { - "$ref": "#/definitions/Value" - } - }, - "deny": { - "description": "Data that defines what is denied by the scope. This should be prioritized by validation logic.", - "type": [ - "array", - "null" - ], - "items": { - "$ref": "#/definitions/Value" - } - } - } - } - ], - "required": [ - "identifier" - ] - } - ] - }, - "Identifier": { - "description": "Permission identifier", - "oneOf": [ - { - "description": "Default core plugins set which includes:\n- 'core:path:default'\n- 'core:event:default'\n- 'core:window:default'\n- 'core:webview:default'\n- 'core:app:default'\n- 'core:image:default'\n- 'core:resources:default'\n- 'core:menu:default'\n- 'core:tray:default'\n", - "type": "string", - "const": "core:default" - }, - { - "description": "Default permissions for the plugin.", - "type": "string", - "const": "core:app:default" - }, - { - "description": "Enables the app_hide command without any pre-configured scope.", - "type": "string", - "const": "core:app:allow-app-hide" - }, - { - "description": "Enables the app_show command without any pre-configured scope.", - "type": "string", - "const": "core:app:allow-app-show" - }, - { - "description": "Enables the default_window_icon command without any pre-configured scope.", - "type": "string", - "const": "core:app:allow-default-window-icon" - }, - { - "description": "Enables the name command without any pre-configured scope.", - "type": "string", - "const": "core:app:allow-name" - }, - { - "description": "Enables the set_app_theme command without any pre-configured scope.", - "type": "string", - "const": "core:app:allow-set-app-theme" - }, - { - "description": "Enables the tauri_version command without any pre-configured scope.", - "type": "string", - "const": "core:app:allow-tauri-version" - }, - { - "description": "Enables the version command without any pre-configured scope.", - "type": "string", - "const": "core:app:allow-version" - }, - { - "description": "Denies the app_hide command without any pre-configured scope.", - "type": "string", - "const": "core:app:deny-app-hide" - }, - { - "description": "Denies the app_show command without any pre-configured scope.", - "type": "string", - "const": "core:app:deny-app-show" - }, - { - "description": "Denies the default_window_icon command without any pre-configured scope.", - "type": "string", - "const": "core:app:deny-default-window-icon" - }, - { - "description": "Denies the name command without any pre-configured scope.", - "type": "string", - "const": "core:app:deny-name" - }, - { - "description": "Denies the set_app_theme command without any pre-configured scope.", - "type": "string", - "const": "core:app:deny-set-app-theme" - }, - { - "description": "Denies the tauri_version command without any pre-configured scope.", - "type": "string", - "const": "core:app:deny-tauri-version" - }, - { - "description": "Denies the version command without any pre-configured scope.", - "type": "string", - "const": "core:app:deny-version" - }, - { - "description": "Default permissions for the plugin.", - "type": "string", - "const": "core:event:default" - }, - { - "description": "Enables the emit command without any pre-configured scope.", - "type": "string", - "const": "core:event:allow-emit" - }, - { - "description": "Enables the emit_to command without any pre-configured scope.", - "type": "string", - "const": "core:event:allow-emit-to" - }, - { - "description": "Enables the listen command without any pre-configured scope.", - "type": "string", - "const": "core:event:allow-listen" - }, - { - "description": "Enables the unlisten command without any pre-configured scope.", - "type": "string", - "const": "core:event:allow-unlisten" - }, - { - "description": "Denies the emit command without any pre-configured scope.", - "type": "string", - "const": "core:event:deny-emit" - }, - { - "description": "Denies the emit_to command without any pre-configured scope.", - "type": "string", - "const": "core:event:deny-emit-to" - }, - { - "description": "Denies the listen command without any pre-configured scope.", - "type": "string", - "const": "core:event:deny-listen" - }, - { - "description": "Denies the unlisten command without any pre-configured scope.", - "type": "string", - "const": "core:event:deny-unlisten" - }, - { - "description": "Default permissions for the plugin.", - "type": "string", - "const": "core:image:default" - }, - { - "description": "Enables the from_bytes command without any pre-configured scope.", - "type": "string", - "const": "core:image:allow-from-bytes" - }, - { - "description": "Enables the from_path command without any pre-configured scope.", - "type": "string", - "const": "core:image:allow-from-path" - }, - { - "description": "Enables the new command without any pre-configured scope.", - "type": "string", - "const": "core:image:allow-new" - }, - { - "description": "Enables the rgba command without any pre-configured scope.", - "type": "string", - "const": "core:image:allow-rgba" - }, - { - "description": "Enables the size command without any pre-configured scope.", - "type": "string", - "const": "core:image:allow-size" - }, - { - "description": "Denies the from_bytes command without any pre-configured scope.", - "type": "string", - "const": "core:image:deny-from-bytes" - }, - { - "description": "Denies the from_path command without any pre-configured scope.", - "type": "string", - "const": "core:image:deny-from-path" - }, - { - "description": "Denies the new command without any pre-configured scope.", - "type": "string", - "const": "core:image:deny-new" - }, - { - "description": "Denies the rgba command without any pre-configured scope.", - "type": "string", - "const": "core:image:deny-rgba" - }, - { - "description": "Denies the size command without any pre-configured scope.", - "type": "string", - "const": "core:image:deny-size" - }, - { - "description": "Default permissions for the plugin.", - "type": "string", - "const": "core:menu:default" - }, - { - "description": "Enables the append command without any pre-configured scope.", - "type": "string", - "const": "core:menu:allow-append" - }, - { - "description": "Enables the create_default command without any pre-configured scope.", - "type": "string", - "const": "core:menu:allow-create-default" - }, - { - "description": "Enables the get command without any pre-configured scope.", - "type": "string", - "const": "core:menu:allow-get" - }, - { - "description": "Enables the insert command without any pre-configured scope.", - "type": "string", - "const": "core:menu:allow-insert" - }, - { - "description": "Enables the is_checked command without any pre-configured scope.", - "type": "string", - "const": "core:menu:allow-is-checked" - }, - { - "description": "Enables the is_enabled command without any pre-configured scope.", - "type": "string", - "const": "core:menu:allow-is-enabled" - }, - { - "description": "Enables the items command without any pre-configured scope.", - "type": "string", - "const": "core:menu:allow-items" - }, - { - "description": "Enables the new command without any pre-configured scope.", - "type": "string", - "const": "core:menu:allow-new" - }, - { - "description": "Enables the popup command without any pre-configured scope.", - "type": "string", - "const": "core:menu:allow-popup" - }, - { - "description": "Enables the prepend command without any pre-configured scope.", - "type": "string", - "const": "core:menu:allow-prepend" - }, - { - "description": "Enables the remove command without any pre-configured scope.", - "type": "string", - "const": "core:menu:allow-remove" - }, - { - "description": "Enables the remove_at command without any pre-configured scope.", - "type": "string", - "const": "core:menu:allow-remove-at" - }, - { - "description": "Enables the set_accelerator command without any pre-configured scope.", - "type": "string", - "const": "core:menu:allow-set-accelerator" - }, - { - "description": "Enables the set_as_app_menu command without any pre-configured scope.", - "type": "string", - "const": "core:menu:allow-set-as-app-menu" - }, - { - "description": "Enables the set_as_help_menu_for_nsapp command without any pre-configured scope.", - "type": "string", - "const": "core:menu:allow-set-as-help-menu-for-nsapp" - }, - { - "description": "Enables the set_as_window_menu command without any pre-configured scope.", - "type": "string", - "const": "core:menu:allow-set-as-window-menu" - }, - { - "description": "Enables the set_as_windows_menu_for_nsapp command without any pre-configured scope.", - "type": "string", - "const": "core:menu:allow-set-as-windows-menu-for-nsapp" - }, - { - "description": "Enables the set_checked command without any pre-configured scope.", - "type": "string", - "const": "core:menu:allow-set-checked" - }, - { - "description": "Enables the set_enabled command without any pre-configured scope.", - "type": "string", - "const": "core:menu:allow-set-enabled" - }, - { - "description": "Enables the set_icon command without any pre-configured scope.", - "type": "string", - "const": "core:menu:allow-set-icon" - }, - { - "description": "Enables the set_text command without any pre-configured scope.", - "type": "string", - "const": "core:menu:allow-set-text" - }, - { - "description": "Enables the text command without any pre-configured scope.", - "type": "string", - "const": "core:menu:allow-text" - }, - { - "description": "Denies the append command without any pre-configured scope.", - "type": "string", - "const": "core:menu:deny-append" - }, - { - "description": "Denies the create_default command without any pre-configured scope.", - "type": "string", - "const": "core:menu:deny-create-default" - }, - { - "description": "Denies the get command without any pre-configured scope.", - "type": "string", - "const": "core:menu:deny-get" - }, - { - "description": "Denies the insert command without any pre-configured scope.", - "type": "string", - "const": "core:menu:deny-insert" - }, - { - "description": "Denies the is_checked command without any pre-configured scope.", - "type": "string", - "const": "core:menu:deny-is-checked" - }, - { - "description": "Denies the is_enabled command without any pre-configured scope.", - "type": "string", - "const": "core:menu:deny-is-enabled" - }, - { - "description": "Denies the items command without any pre-configured scope.", - "type": "string", - "const": "core:menu:deny-items" - }, - { - "description": "Denies the new command without any pre-configured scope.", - "type": "string", - "const": "core:menu:deny-new" - }, - { - "description": "Denies the popup command without any pre-configured scope.", - "type": "string", - "const": "core:menu:deny-popup" - }, - { - "description": "Denies the prepend command without any pre-configured scope.", - "type": "string", - "const": "core:menu:deny-prepend" - }, - { - "description": "Denies the remove command without any pre-configured scope.", - "type": "string", - "const": "core:menu:deny-remove" - }, - { - "description": "Denies the remove_at command without any pre-configured scope.", - "type": "string", - "const": "core:menu:deny-remove-at" - }, - { - "description": "Denies the set_accelerator command without any pre-configured scope.", - "type": "string", - "const": "core:menu:deny-set-accelerator" - }, - { - "description": "Denies the set_as_app_menu command without any pre-configured scope.", - "type": "string", - "const": "core:menu:deny-set-as-app-menu" - }, - { - "description": "Denies the set_as_help_menu_for_nsapp command without any pre-configured scope.", - "type": "string", - "const": "core:menu:deny-set-as-help-menu-for-nsapp" - }, - { - "description": "Denies the set_as_window_menu command without any pre-configured scope.", - "type": "string", - "const": "core:menu:deny-set-as-window-menu" - }, - { - "description": "Denies the set_as_windows_menu_for_nsapp command without any pre-configured scope.", - "type": "string", - "const": "core:menu:deny-set-as-windows-menu-for-nsapp" - }, - { - "description": "Denies the set_checked command without any pre-configured scope.", - "type": "string", - "const": "core:menu:deny-set-checked" - }, - { - "description": "Denies the set_enabled command without any pre-configured scope.", - "type": "string", - "const": "core:menu:deny-set-enabled" - }, - { - "description": "Denies the set_icon command without any pre-configured scope.", - "type": "string", - "const": "core:menu:deny-set-icon" - }, - { - "description": "Denies the set_text command without any pre-configured scope.", - "type": "string", - "const": "core:menu:deny-set-text" - }, - { - "description": "Denies the text command without any pre-configured scope.", - "type": "string", - "const": "core:menu:deny-text" - }, - { - "description": "Default permissions for the plugin.", - "type": "string", - "const": "core:path:default" - }, - { - "description": "Enables the basename command without any pre-configured scope.", - "type": "string", - "const": "core:path:allow-basename" - }, - { - "description": "Enables the dirname command without any pre-configured scope.", - "type": "string", - "const": "core:path:allow-dirname" - }, - { - "description": "Enables the extname command without any pre-configured scope.", - "type": "string", - "const": "core:path:allow-extname" - }, - { - "description": "Enables the is_absolute command without any pre-configured scope.", - "type": "string", - "const": "core:path:allow-is-absolute" - }, - { - "description": "Enables the join command without any pre-configured scope.", - "type": "string", - "const": "core:path:allow-join" - }, - { - "description": "Enables the normalize command without any pre-configured scope.", - "type": "string", - "const": "core:path:allow-normalize" - }, - { - "description": "Enables the resolve command without any pre-configured scope.", - "type": "string", - "const": "core:path:allow-resolve" - }, - { - "description": "Enables the resolve_directory command without any pre-configured scope.", - "type": "string", - "const": "core:path:allow-resolve-directory" - }, - { - "description": "Denies the basename command without any pre-configured scope.", - "type": "string", - "const": "core:path:deny-basename" - }, - { - "description": "Denies the dirname command without any pre-configured scope.", - "type": "string", - "const": "core:path:deny-dirname" - }, - { - "description": "Denies the extname command without any pre-configured scope.", - "type": "string", - "const": "core:path:deny-extname" - }, - { - "description": "Denies the is_absolute command without any pre-configured scope.", - "type": "string", - "const": "core:path:deny-is-absolute" - }, - { - "description": "Denies the join command without any pre-configured scope.", - "type": "string", - "const": "core:path:deny-join" - }, - { - "description": "Denies the normalize command without any pre-configured scope.", - "type": "string", - "const": "core:path:deny-normalize" - }, - { - "description": "Denies the resolve command without any pre-configured scope.", - "type": "string", - "const": "core:path:deny-resolve" - }, - { - "description": "Denies the resolve_directory command without any pre-configured scope.", - "type": "string", - "const": "core:path:deny-resolve-directory" - }, - { - "description": "Default permissions for the plugin.", - "type": "string", - "const": "core:resources:default" - }, - { - "description": "Enables the close command without any pre-configured scope.", - "type": "string", - "const": "core:resources:allow-close" - }, - { - "description": "Denies the close command without any pre-configured scope.", - "type": "string", - "const": "core:resources:deny-close" - }, - { - "description": "Default permissions for the plugin.", - "type": "string", - "const": "core:tray:default" - }, - { - "description": "Enables the get_by_id command without any pre-configured scope.", - "type": "string", - "const": "core:tray:allow-get-by-id" - }, - { - "description": "Enables the new command without any pre-configured scope.", - "type": "string", - "const": "core:tray:allow-new" - }, - { - "description": "Enables the remove_by_id command without any pre-configured scope.", - "type": "string", - "const": "core:tray:allow-remove-by-id" - }, - { - "description": "Enables the set_icon command without any pre-configured scope.", - "type": "string", - "const": "core:tray:allow-set-icon" - }, - { - "description": "Enables the set_icon_as_template command without any pre-configured scope.", - "type": "string", - "const": "core:tray:allow-set-icon-as-template" - }, - { - "description": "Enables the set_menu command without any pre-configured scope.", - "type": "string", - "const": "core:tray:allow-set-menu" - }, - { - "description": "Enables the set_show_menu_on_left_click command without any pre-configured scope.", - "type": "string", - "const": "core:tray:allow-set-show-menu-on-left-click" - }, - { - "description": "Enables the set_temp_dir_path command without any pre-configured scope.", - "type": "string", - "const": "core:tray:allow-set-temp-dir-path" - }, - { - "description": "Enables the set_title command without any pre-configured scope.", - "type": "string", - "const": "core:tray:allow-set-title" - }, - { - "description": "Enables the set_tooltip command without any pre-configured scope.", - "type": "string", - "const": "core:tray:allow-set-tooltip" - }, - { - "description": "Enables the set_visible command without any pre-configured scope.", - "type": "string", - "const": "core:tray:allow-set-visible" - }, - { - "description": "Denies the get_by_id command without any pre-configured scope.", - "type": "string", - "const": "core:tray:deny-get-by-id" - }, - { - "description": "Denies the new command without any pre-configured scope.", - "type": "string", - "const": "core:tray:deny-new" - }, - { - "description": "Denies the remove_by_id command without any pre-configured scope.", - "type": "string", - "const": "core:tray:deny-remove-by-id" - }, - { - "description": "Denies the set_icon command without any pre-configured scope.", - "type": "string", - "const": "core:tray:deny-set-icon" - }, - { - "description": "Denies the set_icon_as_template command without any pre-configured scope.", - "type": "string", - "const": "core:tray:deny-set-icon-as-template" - }, - { - "description": "Denies the set_menu command without any pre-configured scope.", - "type": "string", - "const": "core:tray:deny-set-menu" - }, - { - "description": "Denies the set_show_menu_on_left_click command without any pre-configured scope.", - "type": "string", - "const": "core:tray:deny-set-show-menu-on-left-click" - }, - { - "description": "Denies the set_temp_dir_path command without any pre-configured scope.", - "type": "string", - "const": "core:tray:deny-set-temp-dir-path" - }, - { - "description": "Denies the set_title command without any pre-configured scope.", - "type": "string", - "const": "core:tray:deny-set-title" - }, - { - "description": "Denies the set_tooltip command without any pre-configured scope.", - "type": "string", - "const": "core:tray:deny-set-tooltip" - }, - { - "description": "Denies the set_visible command without any pre-configured scope.", - "type": "string", - "const": "core:tray:deny-set-visible" - }, - { - "description": "Default permissions for the plugin.", - "type": "string", - "const": "core:webview:default" - }, - { - "description": "Enables the clear_all_browsing_data command without any pre-configured scope.", - "type": "string", - "const": "core:webview:allow-clear-all-browsing-data" - }, - { - "description": "Enables the create_webview command without any pre-configured scope.", - "type": "string", - "const": "core:webview:allow-create-webview" - }, - { - "description": "Enables the create_webview_window command without any pre-configured scope.", - "type": "string", - "const": "core:webview:allow-create-webview-window" - }, - { - "description": "Enables the get_all_webviews command without any pre-configured scope.", - "type": "string", - "const": "core:webview:allow-get-all-webviews" - }, - { - "description": "Enables the internal_toggle_devtools command without any pre-configured scope.", - "type": "string", - "const": "core:webview:allow-internal-toggle-devtools" - }, - { - "description": "Enables the print command without any pre-configured scope.", - "type": "string", - "const": "core:webview:allow-print" - }, - { - "description": "Enables the reparent command without any pre-configured scope.", - "type": "string", - "const": "core:webview:allow-reparent" - }, - { - "description": "Enables the set_webview_focus command without any pre-configured scope.", - "type": "string", - "const": "core:webview:allow-set-webview-focus" - }, - { - "description": "Enables the set_webview_position command without any pre-configured scope.", - "type": "string", - "const": "core:webview:allow-set-webview-position" - }, - { - "description": "Enables the set_webview_size command without any pre-configured scope.", - "type": "string", - "const": "core:webview:allow-set-webview-size" - }, - { - "description": "Enables the set_webview_zoom command without any pre-configured scope.", - "type": "string", - "const": "core:webview:allow-set-webview-zoom" - }, - { - "description": "Enables the webview_close command without any pre-configured scope.", - "type": "string", - "const": "core:webview:allow-webview-close" - }, - { - "description": "Enables the webview_hide command without any pre-configured scope.", - "type": "string", - "const": "core:webview:allow-webview-hide" - }, - { - "description": "Enables the webview_position command without any pre-configured scope.", - "type": "string", - "const": "core:webview:allow-webview-position" - }, - { - "description": "Enables the webview_show command without any pre-configured scope.", - "type": "string", - "const": "core:webview:allow-webview-show" - }, - { - "description": "Enables the webview_size command without any pre-configured scope.", - "type": "string", - "const": "core:webview:allow-webview-size" - }, - { - "description": "Denies the clear_all_browsing_data command without any pre-configured scope.", - "type": "string", - "const": "core:webview:deny-clear-all-browsing-data" - }, - { - "description": "Denies the create_webview command without any pre-configured scope.", - "type": "string", - "const": "core:webview:deny-create-webview" - }, - { - "description": "Denies the create_webview_window command without any pre-configured scope.", - "type": "string", - "const": "core:webview:deny-create-webview-window" - }, - { - "description": "Denies the get_all_webviews command without any pre-configured scope.", - "type": "string", - "const": "core:webview:deny-get-all-webviews" - }, - { - "description": "Denies the internal_toggle_devtools command without any pre-configured scope.", - "type": "string", - "const": "core:webview:deny-internal-toggle-devtools" - }, - { - "description": "Denies the print command without any pre-configured scope.", - "type": "string", - "const": "core:webview:deny-print" - }, - { - "description": "Denies the reparent command without any pre-configured scope.", - "type": "string", - "const": "core:webview:deny-reparent" - }, - { - "description": "Denies the set_webview_focus command without any pre-configured scope.", - "type": "string", - "const": "core:webview:deny-set-webview-focus" - }, - { - "description": "Denies the set_webview_position command without any pre-configured scope.", - "type": "string", - "const": "core:webview:deny-set-webview-position" - }, - { - "description": "Denies the set_webview_size command without any pre-configured scope.", - "type": "string", - "const": "core:webview:deny-set-webview-size" - }, - { - "description": "Denies the set_webview_zoom command without any pre-configured scope.", - "type": "string", - "const": "core:webview:deny-set-webview-zoom" - }, - { - "description": "Denies the webview_close command without any pre-configured scope.", - "type": "string", - "const": "core:webview:deny-webview-close" - }, - { - "description": "Denies the webview_hide command without any pre-configured scope.", - "type": "string", - "const": "core:webview:deny-webview-hide" - }, - { - "description": "Denies the webview_position command without any pre-configured scope.", - "type": "string", - "const": "core:webview:deny-webview-position" - }, - { - "description": "Denies the webview_show command without any pre-configured scope.", - "type": "string", - "const": "core:webview:deny-webview-show" - }, - { - "description": "Denies the webview_size command without any pre-configured scope.", - "type": "string", - "const": "core:webview:deny-webview-size" - }, - { - "description": "Default permissions for the plugin.", - "type": "string", - "const": "core:window:default" - }, - { - "description": "Enables the available_monitors command without any pre-configured scope.", - "type": "string", - "const": "core:window:allow-available-monitors" - }, - { - "description": "Enables the center command without any pre-configured scope.", - "type": "string", - "const": "core:window:allow-center" - }, - { - "description": "Enables the close command without any pre-configured scope.", - "type": "string", - "const": "core:window:allow-close" - }, - { - "description": "Enables the create command without any pre-configured scope.", - "type": "string", - "const": "core:window:allow-create" - }, - { - "description": "Enables the current_monitor command without any pre-configured scope.", - "type": "string", - "const": "core:window:allow-current-monitor" - }, - { - "description": "Enables the cursor_position command without any pre-configured scope.", - "type": "string", - "const": "core:window:allow-cursor-position" - }, - { - "description": "Enables the destroy command without any pre-configured scope.", - "type": "string", - "const": "core:window:allow-destroy" - }, - { - "description": "Enables the get_all_windows command without any pre-configured scope.", - "type": "string", - "const": "core:window:allow-get-all-windows" - }, - { - "description": "Enables the hide command without any pre-configured scope.", - "type": "string", - "const": "core:window:allow-hide" - }, - { - "description": "Enables the inner_position command without any pre-configured scope.", - "type": "string", - "const": "core:window:allow-inner-position" - }, - { - "description": "Enables the inner_size command without any pre-configured scope.", - "type": "string", - "const": "core:window:allow-inner-size" - }, - { - "description": "Enables the internal_toggle_maximize command without any pre-configured scope.", - "type": "string", - "const": "core:window:allow-internal-toggle-maximize" - }, - { - "description": "Enables the is_closable command without any pre-configured scope.", - "type": "string", - "const": "core:window:allow-is-closable" - }, - { - "description": "Enables the is_decorated command without any pre-configured scope.", - "type": "string", - "const": "core:window:allow-is-decorated" - }, - { - "description": "Enables the is_enabled command without any pre-configured scope.", - "type": "string", - "const": "core:window:allow-is-enabled" - }, - { - "description": "Enables the is_focused command without any pre-configured scope.", - "type": "string", - "const": "core:window:allow-is-focused" - }, - { - "description": "Enables the is_fullscreen command without any pre-configured scope.", - "type": "string", - "const": "core:window:allow-is-fullscreen" - }, - { - "description": "Enables the is_maximizable command without any pre-configured scope.", - "type": "string", - "const": "core:window:allow-is-maximizable" - }, - { - "description": "Enables the is_maximized command without any pre-configured scope.", - "type": "string", - "const": "core:window:allow-is-maximized" - }, - { - "description": "Enables the is_minimizable command without any pre-configured scope.", - "type": "string", - "const": "core:window:allow-is-minimizable" - }, - { - "description": "Enables the is_minimized command without any pre-configured scope.", - "type": "string", - "const": "core:window:allow-is-minimized" - }, - { - "description": "Enables the is_resizable command without any pre-configured scope.", - "type": "string", - "const": "core:window:allow-is-resizable" - }, - { - "description": "Enables the is_visible command without any pre-configured scope.", - "type": "string", - "const": "core:window:allow-is-visible" - }, - { - "description": "Enables the maximize command without any pre-configured scope.", - "type": "string", - "const": "core:window:allow-maximize" - }, - { - "description": "Enables the minimize command without any pre-configured scope.", - "type": "string", - "const": "core:window:allow-minimize" - }, - { - "description": "Enables the monitor_from_point command without any pre-configured scope.", - "type": "string", - "const": "core:window:allow-monitor-from-point" - }, - { - "description": "Enables the outer_position command without any pre-configured scope.", - "type": "string", - "const": "core:window:allow-outer-position" - }, - { - "description": "Enables the outer_size command without any pre-configured scope.", - "type": "string", - "const": "core:window:allow-outer-size" - }, - { - "description": "Enables the primary_monitor command without any pre-configured scope.", - "type": "string", - "const": "core:window:allow-primary-monitor" - }, - { - "description": "Enables the request_user_attention command without any pre-configured scope.", - "type": "string", - "const": "core:window:allow-request-user-attention" - }, - { - "description": "Enables the scale_factor command without any pre-configured scope.", - "type": "string", - "const": "core:window:allow-scale-factor" - }, - { - "description": "Enables the set_always_on_bottom command without any pre-configured scope.", - "type": "string", - "const": "core:window:allow-set-always-on-bottom" - }, - { - "description": "Enables the set_always_on_top command without any pre-configured scope.", - "type": "string", - "const": "core:window:allow-set-always-on-top" - }, - { - "description": "Enables the set_closable command without any pre-configured scope.", - "type": "string", - "const": "core:window:allow-set-closable" - }, - { - "description": "Enables the set_content_protected command without any pre-configured scope.", - "type": "string", - "const": "core:window:allow-set-content-protected" - }, - { - "description": "Enables the set_cursor_grab command without any pre-configured scope.", - "type": "string", - "const": "core:window:allow-set-cursor-grab" - }, - { - "description": "Enables the set_cursor_icon command without any pre-configured scope.", - "type": "string", - "const": "core:window:allow-set-cursor-icon" - }, - { - "description": "Enables the set_cursor_position command without any pre-configured scope.", - "type": "string", - "const": "core:window:allow-set-cursor-position" - }, - { - "description": "Enables the set_cursor_visible command without any pre-configured scope.", - "type": "string", - "const": "core:window:allow-set-cursor-visible" - }, - { - "description": "Enables the set_decorations command without any pre-configured scope.", - "type": "string", - "const": "core:window:allow-set-decorations" - }, - { - "description": "Enables the set_effects command without any pre-configured scope.", - "type": "string", - "const": "core:window:allow-set-effects" - }, - { - "description": "Enables the set_enabled command without any pre-configured scope.", - "type": "string", - "const": "core:window:allow-set-enabled" - }, - { - "description": "Enables the set_focus command without any pre-configured scope.", - "type": "string", - "const": "core:window:allow-set-focus" - }, - { - "description": "Enables the set_fullscreen command without any pre-configured scope.", - "type": "string", - "const": "core:window:allow-set-fullscreen" - }, - { - "description": "Enables the set_icon command without any pre-configured scope.", - "type": "string", - "const": "core:window:allow-set-icon" - }, - { - "description": "Enables the set_ignore_cursor_events command without any pre-configured scope.", - "type": "string", - "const": "core:window:allow-set-ignore-cursor-events" - }, - { - "description": "Enables the set_max_size command without any pre-configured scope.", - "type": "string", - "const": "core:window:allow-set-max-size" - }, - { - "description": "Enables the set_maximizable command without any pre-configured scope.", - "type": "string", - "const": "core:window:allow-set-maximizable" - }, - { - "description": "Enables the set_min_size command without any pre-configured scope.", - "type": "string", - "const": "core:window:allow-set-min-size" - }, - { - "description": "Enables the set_minimizable command without any pre-configured scope.", - "type": "string", - "const": "core:window:allow-set-minimizable" - }, - { - "description": "Enables the set_position command without any pre-configured scope.", - "type": "string", - "const": "core:window:allow-set-position" - }, - { - "description": "Enables the set_progress_bar command without any pre-configured scope.", - "type": "string", - "const": "core:window:allow-set-progress-bar" - }, - { - "description": "Enables the set_resizable command without any pre-configured scope.", - "type": "string", - "const": "core:window:allow-set-resizable" - }, - { - "description": "Enables the set_shadow command without any pre-configured scope.", - "type": "string", - "const": "core:window:allow-set-shadow" - }, - { - "description": "Enables the set_size command without any pre-configured scope.", - "type": "string", - "const": "core:window:allow-set-size" - }, - { - "description": "Enables the set_size_constraints command without any pre-configured scope.", - "type": "string", - "const": "core:window:allow-set-size-constraints" - }, - { - "description": "Enables the set_skip_taskbar command without any pre-configured scope.", - "type": "string", - "const": "core:window:allow-set-skip-taskbar" - }, - { - "description": "Enables the set_theme command without any pre-configured scope.", - "type": "string", - "const": "core:window:allow-set-theme" - }, - { - "description": "Enables the set_title command without any pre-configured scope.", - "type": "string", - "const": "core:window:allow-set-title" - }, - { - "description": "Enables the set_title_bar_style command without any pre-configured scope.", - "type": "string", - "const": "core:window:allow-set-title-bar-style" - }, - { - "description": "Enables the set_visible_on_all_workspaces command without any pre-configured scope.", - "type": "string", - "const": "core:window:allow-set-visible-on-all-workspaces" - }, - { - "description": "Enables the show command without any pre-configured scope.", - "type": "string", - "const": "core:window:allow-show" - }, - { - "description": "Enables the start_dragging command without any pre-configured scope.", - "type": "string", - "const": "core:window:allow-start-dragging" - }, - { - "description": "Enables the start_resize_dragging command without any pre-configured scope.", - "type": "string", - "const": "core:window:allow-start-resize-dragging" - }, - { - "description": "Enables the theme command without any pre-configured scope.", - "type": "string", - "const": "core:window:allow-theme" - }, - { - "description": "Enables the title command without any pre-configured scope.", - "type": "string", - "const": "core:window:allow-title" - }, - { - "description": "Enables the toggle_maximize command without any pre-configured scope.", - "type": "string", - "const": "core:window:allow-toggle-maximize" - }, - { - "description": "Enables the unmaximize command without any pre-configured scope.", - "type": "string", - "const": "core:window:allow-unmaximize" - }, - { - "description": "Enables the unminimize command without any pre-configured scope.", - "type": "string", - "const": "core:window:allow-unminimize" - }, - { - "description": "Denies the available_monitors command without any pre-configured scope.", - "type": "string", - "const": "core:window:deny-available-monitors" - }, - { - "description": "Denies the center command without any pre-configured scope.", - "type": "string", - "const": "core:window:deny-center" - }, - { - "description": "Denies the close command without any pre-configured scope.", - "type": "string", - "const": "core:window:deny-close" - }, - { - "description": "Denies the create command without any pre-configured scope.", - "type": "string", - "const": "core:window:deny-create" - }, - { - "description": "Denies the current_monitor command without any pre-configured scope.", - "type": "string", - "const": "core:window:deny-current-monitor" - }, - { - "description": "Denies the cursor_position command without any pre-configured scope.", - "type": "string", - "const": "core:window:deny-cursor-position" - }, - { - "description": "Denies the destroy command without any pre-configured scope.", - "type": "string", - "const": "core:window:deny-destroy" - }, - { - "description": "Denies the get_all_windows command without any pre-configured scope.", - "type": "string", - "const": "core:window:deny-get-all-windows" - }, - { - "description": "Denies the hide command without any pre-configured scope.", - "type": "string", - "const": "core:window:deny-hide" - }, - { - "description": "Denies the inner_position command without any pre-configured scope.", - "type": "string", - "const": "core:window:deny-inner-position" - }, - { - "description": "Denies the inner_size command without any pre-configured scope.", - "type": "string", - "const": "core:window:deny-inner-size" - }, - { - "description": "Denies the internal_toggle_maximize command without any pre-configured scope.", - "type": "string", - "const": "core:window:deny-internal-toggle-maximize" - }, - { - "description": "Denies the is_closable command without any pre-configured scope.", - "type": "string", - "const": "core:window:deny-is-closable" - }, - { - "description": "Denies the is_decorated command without any pre-configured scope.", - "type": "string", - "const": "core:window:deny-is-decorated" - }, - { - "description": "Denies the is_enabled command without any pre-configured scope.", - "type": "string", - "const": "core:window:deny-is-enabled" - }, - { - "description": "Denies the is_focused command without any pre-configured scope.", - "type": "string", - "const": "core:window:deny-is-focused" - }, - { - "description": "Denies the is_fullscreen command without any pre-configured scope.", - "type": "string", - "const": "core:window:deny-is-fullscreen" - }, - { - "description": "Denies the is_maximizable command without any pre-configured scope.", - "type": "string", - "const": "core:window:deny-is-maximizable" - }, - { - "description": "Denies the is_maximized command without any pre-configured scope.", - "type": "string", - "const": "core:window:deny-is-maximized" - }, - { - "description": "Denies the is_minimizable command without any pre-configured scope.", - "type": "string", - "const": "core:window:deny-is-minimizable" - }, - { - "description": "Denies the is_minimized command without any pre-configured scope.", - "type": "string", - "const": "core:window:deny-is-minimized" - }, - { - "description": "Denies the is_resizable command without any pre-configured scope.", - "type": "string", - "const": "core:window:deny-is-resizable" - }, - { - "description": "Denies the is_visible command without any pre-configured scope.", - "type": "string", - "const": "core:window:deny-is-visible" - }, - { - "description": "Denies the maximize command without any pre-configured scope.", - "type": "string", - "const": "core:window:deny-maximize" - }, - { - "description": "Denies the minimize command without any pre-configured scope.", - "type": "string", - "const": "core:window:deny-minimize" - }, - { - "description": "Denies the monitor_from_point command without any pre-configured scope.", - "type": "string", - "const": "core:window:deny-monitor-from-point" - }, - { - "description": "Denies the outer_position command without any pre-configured scope.", - "type": "string", - "const": "core:window:deny-outer-position" - }, - { - "description": "Denies the outer_size command without any pre-configured scope.", - "type": "string", - "const": "core:window:deny-outer-size" - }, - { - "description": "Denies the primary_monitor command without any pre-configured scope.", - "type": "string", - "const": "core:window:deny-primary-monitor" - }, - { - "description": "Denies the request_user_attention command without any pre-configured scope.", - "type": "string", - "const": "core:window:deny-request-user-attention" - }, - { - "description": "Denies the scale_factor command without any pre-configured scope.", - "type": "string", - "const": "core:window:deny-scale-factor" - }, - { - "description": "Denies the set_always_on_bottom command without any pre-configured scope.", - "type": "string", - "const": "core:window:deny-set-always-on-bottom" - }, - { - "description": "Denies the set_always_on_top command without any pre-configured scope.", - "type": "string", - "const": "core:window:deny-set-always-on-top" - }, - { - "description": "Denies the set_closable command without any pre-configured scope.", - "type": "string", - "const": "core:window:deny-set-closable" - }, - { - "description": "Denies the set_content_protected command without any pre-configured scope.", - "type": "string", - "const": "core:window:deny-set-content-protected" - }, - { - "description": "Denies the set_cursor_grab command without any pre-configured scope.", - "type": "string", - "const": "core:window:deny-set-cursor-grab" - }, - { - "description": "Denies the set_cursor_icon command without any pre-configured scope.", - "type": "string", - "const": "core:window:deny-set-cursor-icon" - }, - { - "description": "Denies the set_cursor_position command without any pre-configured scope.", - "type": "string", - "const": "core:window:deny-set-cursor-position" - }, - { - "description": "Denies the set_cursor_visible command without any pre-configured scope.", - "type": "string", - "const": "core:window:deny-set-cursor-visible" - }, - { - "description": "Denies the set_decorations command without any pre-configured scope.", - "type": "string", - "const": "core:window:deny-set-decorations" - }, - { - "description": "Denies the set_effects command without any pre-configured scope.", - "type": "string", - "const": "core:window:deny-set-effects" - }, - { - "description": "Denies the set_enabled command without any pre-configured scope.", - "type": "string", - "const": "core:window:deny-set-enabled" - }, - { - "description": "Denies the set_focus command without any pre-configured scope.", - "type": "string", - "const": "core:window:deny-set-focus" - }, - { - "description": "Denies the set_fullscreen command without any pre-configured scope.", - "type": "string", - "const": "core:window:deny-set-fullscreen" - }, - { - "description": "Denies the set_icon command without any pre-configured scope.", - "type": "string", - "const": "core:window:deny-set-icon" - }, - { - "description": "Denies the set_ignore_cursor_events command without any pre-configured scope.", - "type": "string", - "const": "core:window:deny-set-ignore-cursor-events" - }, - { - "description": "Denies the set_max_size command without any pre-configured scope.", - "type": "string", - "const": "core:window:deny-set-max-size" - }, - { - "description": "Denies the set_maximizable command without any pre-configured scope.", - "type": "string", - "const": "core:window:deny-set-maximizable" - }, - { - "description": "Denies the set_min_size command without any pre-configured scope.", - "type": "string", - "const": "core:window:deny-set-min-size" - }, - { - "description": "Denies the set_minimizable command without any pre-configured scope.", - "type": "string", - "const": "core:window:deny-set-minimizable" - }, - { - "description": "Denies the set_position command without any pre-configured scope.", - "type": "string", - "const": "core:window:deny-set-position" - }, - { - "description": "Denies the set_progress_bar command without any pre-configured scope.", - "type": "string", - "const": "core:window:deny-set-progress-bar" - }, - { - "description": "Denies the set_resizable command without any pre-configured scope.", - "type": "string", - "const": "core:window:deny-set-resizable" - }, - { - "description": "Denies the set_shadow command without any pre-configured scope.", - "type": "string", - "const": "core:window:deny-set-shadow" - }, - { - "description": "Denies the set_size command without any pre-configured scope.", - "type": "string", - "const": "core:window:deny-set-size" - }, - { - "description": "Denies the set_size_constraints command without any pre-configured scope.", - "type": "string", - "const": "core:window:deny-set-size-constraints" - }, - { - "description": "Denies the set_skip_taskbar command without any pre-configured scope.", - "type": "string", - "const": "core:window:deny-set-skip-taskbar" - }, - { - "description": "Denies the set_theme command without any pre-configured scope.", - "type": "string", - "const": "core:window:deny-set-theme" - }, - { - "description": "Denies the set_title command without any pre-configured scope.", - "type": "string", - "const": "core:window:deny-set-title" - }, - { - "description": "Denies the set_title_bar_style command without any pre-configured scope.", - "type": "string", - "const": "core:window:deny-set-title-bar-style" - }, - { - "description": "Denies the set_visible_on_all_workspaces command without any pre-configured scope.", - "type": "string", - "const": "core:window:deny-set-visible-on-all-workspaces" - }, - { - "description": "Denies the show command without any pre-configured scope.", - "type": "string", - "const": "core:window:deny-show" - }, - { - "description": "Denies the start_dragging command without any pre-configured scope.", - "type": "string", - "const": "core:window:deny-start-dragging" - }, - { - "description": "Denies the start_resize_dragging command without any pre-configured scope.", - "type": "string", - "const": "core:window:deny-start-resize-dragging" - }, - { - "description": "Denies the theme command without any pre-configured scope.", - "type": "string", - "const": "core:window:deny-theme" - }, - { - "description": "Denies the title command without any pre-configured scope.", - "type": "string", - "const": "core:window:deny-title" - }, - { - "description": "Denies the toggle_maximize command without any pre-configured scope.", - "type": "string", - "const": "core:window:deny-toggle-maximize" - }, - { - "description": "Denies the unmaximize command without any pre-configured scope.", - "type": "string", - "const": "core:window:deny-unmaximize" - }, - { - "description": "Denies the unminimize command without any pre-configured scope.", - "type": "string", - "const": "core:window:deny-unminimize" - } - ] - }, - "Value": { - "description": "All supported ACL values.", - "anyOf": [ - { - "description": "Represents a null JSON value.", - "type": "null" - }, - { - "description": "Represents a [`bool`].", - "type": "boolean" - }, - { - "description": "Represents a valid ACL [`Number`].", - "allOf": [ - { - "$ref": "#/definitions/Number" - } - ] - }, - { - "description": "Represents a [`String`].", - "type": "string" - }, - { - "description": "Represents a list of other [`Value`]s.", - "type": "array", - "items": { - "$ref": "#/definitions/Value" - } - }, - { - "description": "Represents a map of [`String`] keys to [`Value`]s.", - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/Value" - } - } - ] - }, - "Number": { - "description": "A valid ACL number.", - "anyOf": [ - { - "description": "Represents an [`i64`].", - "type": "integer", - "format": "int64" - }, - { - "description": "Represents a [`f64`].", - "type": "number", - "format": "double" - } - ] - }, - "Target": { - "description": "Platform target.", - "oneOf": [ - { - "description": "MacOS.", - "type": "string", - "enum": [ - "macOS" - ] - }, - { - "description": "Windows.", - "type": "string", - "enum": [ - "windows" - ] - }, - { - "description": "Linux.", - "type": "string", - "enum": [ - "linux" - ] - }, - { - "description": "Android.", - "type": "string", - "enum": [ - "android" - ] - }, - { - "description": "iOS.", - "type": "string", - "enum": [ - "iOS" - ] - } - ] - } - } -} \ No newline at end of file diff --git a/apps/gpgui-helper/src-tauri/gen/schemas/linux-schema.json b/apps/gpgui-helper/src-tauri/gen/schemas/linux-schema.json deleted file mode 100644 index f1cad267..00000000 --- a/apps/gpgui-helper/src-tauri/gen/schemas/linux-schema.json +++ /dev/null @@ -1,1756 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema#", - "title": "CapabilityFile", - "description": "Capability formats accepted in a capability file.", - "anyOf": [ - { - "description": "A single capability.", - "allOf": [ - { - "$ref": "#/definitions/Capability" - } - ] - }, - { - "description": "A list of capabilities.", - "type": "array", - "items": { - "$ref": "#/definitions/Capability" - } - }, - { - "description": "A list of capabilities.", - "type": "object", - "required": [ - "capabilities" - ], - "properties": { - "capabilities": { - "description": "The list of capabilities.", - "type": "array", - "items": { - "$ref": "#/definitions/Capability" - } - } - } - } - ], - "definitions": { - "Capability": { - "description": "A grouping and boundary mechanism developers can use to isolate access to the IPC layer.\n\nIt controls application windows fine grained access to the Tauri core, application, or plugin commands. If a window is not matching any capability then it has no access to the IPC layer at all.\n\nThis can be done to create groups of windows, based on their required system access, which can reduce impact of frontend vulnerabilities in less privileged windows. Windows can be added to a capability by exact name (e.g. `main-window`) or glob patterns like `*` or `admin-*`. A Window can have none, one, or multiple associated capabilities.\n\n## Example\n\n```json { \"identifier\": \"main-user-files-write\", \"description\": \"This capability allows the `main` window on macOS and Windows access to `filesystem` write related commands and `dialog` commands to enable programatic access to files selected by the user.\", \"windows\": [ \"main\" ], \"permissions\": [ \"core:default\", \"dialog:open\", { \"identifier\": \"fs:allow-write-text-file\", \"allow\": [{ \"path\": \"$HOME/test.txt\" }] }, ], \"platforms\": [\"macOS\",\"windows\"] } ```", - "type": "object", - "required": [ - "identifier", - "permissions" - ], - "properties": { - "identifier": { - "description": "Identifier of the capability.\n\n## Example\n\n`main-user-files-write`", - "type": "string" - }, - "description": { - "description": "Description of what the capability is intended to allow on associated windows.\n\nIt should contain a description of what the grouped permissions should allow.\n\n## Example\n\nThis capability allows the `main` window access to `filesystem` write related commands and `dialog` commands to enable programatic access to files selected by the user.", - "default": "", - "type": "string" - }, - "remote": { - "description": "Configure remote URLs that can use the capability permissions.\n\nThis setting is optional and defaults to not being set, as our default use case is that the content is served from our local application.\n\n:::caution Make sure you understand the security implications of providing remote sources with local system access. :::\n\n## Example\n\n```json { \"urls\": [\"https://*.mydomain.dev\"] } ```", - "anyOf": [ - { - "$ref": "#/definitions/CapabilityRemote" - }, - { - "type": "null" - } - ] - }, - "local": { - "description": "Whether this capability is enabled for local app URLs or not. Defaults to `true`.", - "default": true, - "type": "boolean" - }, - "windows": { - "description": "List of windows that are affected by this capability. Can be a glob pattern.\n\nOn multiwebview windows, prefer [`Self::webviews`] for a fine grained access control.\n\n## Example\n\n`[\"main\"]`", - "type": "array", - "items": { - "type": "string" - } - }, - "webviews": { - "description": "List of webviews that are affected by this capability. Can be a glob pattern.\n\nThis is only required when using on multiwebview contexts, by default all child webviews of a window that matches [`Self::windows`] are linked.\n\n## Example\n\n`[\"sub-webview-one\", \"sub-webview-two\"]`", - "type": "array", - "items": { - "type": "string" - } - }, - "permissions": { - "description": "List of permissions attached to this capability.\n\nMust include the plugin name as prefix in the form of `${plugin-name}:${permission-name}`. For commands directly implemented in the application itself only `${permission-name}` is required.\n\n## Example\n\n```json [ \"core:default\", \"shell:allow-open\", \"dialog:open\", { \"identifier\": \"fs:allow-write-text-file\", \"allow\": [{ \"path\": \"$HOME/test.txt\" }] } ] ```", - "type": "array", - "items": { - "$ref": "#/definitions/PermissionEntry" - }, - "uniqueItems": true - }, - "platforms": { - "description": "Limit which target platforms this capability applies to.\n\nBy default all platforms are targeted.\n\n## Example\n\n`[\"macOS\",\"windows\"]`", - "type": [ - "array", - "null" - ], - "items": { - "$ref": "#/definitions/Target" - } - } - } - }, - "CapabilityRemote": { - "description": "Configuration for remote URLs that are associated with the capability.", - "type": "object", - "required": [ - "urls" - ], - "properties": { - "urls": { - "description": "Remote domains this capability refers to using the [URLPattern standard](https://urlpattern.spec.whatwg.org/).\n\n## Examples\n\n- \"https://*.mydomain.dev\": allows subdomains of mydomain.dev - \"https://mydomain.dev/api/*\": allows any subpath of mydomain.dev/api", - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "PermissionEntry": { - "description": "An entry for a permission value in a [`Capability`] can be either a raw permission [`Identifier`] or an object that references a permission and extends its scope.", - "anyOf": [ - { - "description": "Reference a permission or permission set by identifier.", - "allOf": [ - { - "$ref": "#/definitions/Identifier" - } - ] - }, - { - "description": "Reference a permission or permission set by identifier and extends its scope.", - "type": "object", - "allOf": [ - { - "properties": { - "identifier": { - "description": "Identifier of the permission or permission set.", - "allOf": [ - { - "$ref": "#/definitions/Identifier" - } - ] - }, - "allow": { - "description": "Data that defines what is allowed by the scope.", - "type": [ - "array", - "null" - ], - "items": { - "$ref": "#/definitions/Value" - } - }, - "deny": { - "description": "Data that defines what is denied by the scope. This should be prioritized by validation logic.", - "type": [ - "array", - "null" - ], - "items": { - "$ref": "#/definitions/Value" - } - } - } - } - ], - "required": [ - "identifier" - ] - } - ] - }, - "Identifier": { - "description": "Permission identifier", - "oneOf": [ - { - "description": "Default core plugins set which includes:\n- 'core:path:default'\n- 'core:event:default'\n- 'core:window:default'\n- 'core:webview:default'\n- 'core:app:default'\n- 'core:image:default'\n- 'core:resources:default'\n- 'core:menu:default'\n- 'core:tray:default'\n", - "type": "string", - "const": "core:default" - }, - { - "description": "Default permissions for the plugin.", - "type": "string", - "const": "core:app:default" - }, - { - "description": "Enables the app_hide command without any pre-configured scope.", - "type": "string", - "const": "core:app:allow-app-hide" - }, - { - "description": "Enables the app_show command without any pre-configured scope.", - "type": "string", - "const": "core:app:allow-app-show" - }, - { - "description": "Enables the default_window_icon command without any pre-configured scope.", - "type": "string", - "const": "core:app:allow-default-window-icon" - }, - { - "description": "Enables the name command without any pre-configured scope.", - "type": "string", - "const": "core:app:allow-name" - }, - { - "description": "Enables the set_app_theme command without any pre-configured scope.", - "type": "string", - "const": "core:app:allow-set-app-theme" - }, - { - "description": "Enables the tauri_version command without any pre-configured scope.", - "type": "string", - "const": "core:app:allow-tauri-version" - }, - { - "description": "Enables the version command without any pre-configured scope.", - "type": "string", - "const": "core:app:allow-version" - }, - { - "description": "Denies the app_hide command without any pre-configured scope.", - "type": "string", - "const": "core:app:deny-app-hide" - }, - { - "description": "Denies the app_show command without any pre-configured scope.", - "type": "string", - "const": "core:app:deny-app-show" - }, - { - "description": "Denies the default_window_icon command without any pre-configured scope.", - "type": "string", - "const": "core:app:deny-default-window-icon" - }, - { - "description": "Denies the name command without any pre-configured scope.", - "type": "string", - "const": "core:app:deny-name" - }, - { - "description": "Denies the set_app_theme command without any pre-configured scope.", - "type": "string", - "const": "core:app:deny-set-app-theme" - }, - { - "description": "Denies the tauri_version command without any pre-configured scope.", - "type": "string", - "const": "core:app:deny-tauri-version" - }, - { - "description": "Denies the version command without any pre-configured scope.", - "type": "string", - "const": "core:app:deny-version" - }, - { - "description": "Default permissions for the plugin.", - "type": "string", - "const": "core:event:default" - }, - { - "description": "Enables the emit command without any pre-configured scope.", - "type": "string", - "const": "core:event:allow-emit" - }, - { - "description": "Enables the emit_to command without any pre-configured scope.", - "type": "string", - "const": "core:event:allow-emit-to" - }, - { - "description": "Enables the listen command without any pre-configured scope.", - "type": "string", - "const": "core:event:allow-listen" - }, - { - "description": "Enables the unlisten command without any pre-configured scope.", - "type": "string", - "const": "core:event:allow-unlisten" - }, - { - "description": "Denies the emit command without any pre-configured scope.", - "type": "string", - "const": "core:event:deny-emit" - }, - { - "description": "Denies the emit_to command without any pre-configured scope.", - "type": "string", - "const": "core:event:deny-emit-to" - }, - { - "description": "Denies the listen command without any pre-configured scope.", - "type": "string", - "const": "core:event:deny-listen" - }, - { - "description": "Denies the unlisten command without any pre-configured scope.", - "type": "string", - "const": "core:event:deny-unlisten" - }, - { - "description": "Default permissions for the plugin.", - "type": "string", - "const": "core:image:default" - }, - { - "description": "Enables the from_bytes command without any pre-configured scope.", - "type": "string", - "const": "core:image:allow-from-bytes" - }, - { - "description": "Enables the from_path command without any pre-configured scope.", - "type": "string", - "const": "core:image:allow-from-path" - }, - { - "description": "Enables the new command without any pre-configured scope.", - "type": "string", - "const": "core:image:allow-new" - }, - { - "description": "Enables the rgba command without any pre-configured scope.", - "type": "string", - "const": "core:image:allow-rgba" - }, - { - "description": "Enables the size command without any pre-configured scope.", - "type": "string", - "const": "core:image:allow-size" - }, - { - "description": "Denies the from_bytes command without any pre-configured scope.", - "type": "string", - "const": "core:image:deny-from-bytes" - }, - { - "description": "Denies the from_path command without any pre-configured scope.", - "type": "string", - "const": "core:image:deny-from-path" - }, - { - "description": "Denies the new command without any pre-configured scope.", - "type": "string", - "const": "core:image:deny-new" - }, - { - "description": "Denies the rgba command without any pre-configured scope.", - "type": "string", - "const": "core:image:deny-rgba" - }, - { - "description": "Denies the size command without any pre-configured scope.", - "type": "string", - "const": "core:image:deny-size" - }, - { - "description": "Default permissions for the plugin.", - "type": "string", - "const": "core:menu:default" - }, - { - "description": "Enables the append command without any pre-configured scope.", - "type": "string", - "const": "core:menu:allow-append" - }, - { - "description": "Enables the create_default command without any pre-configured scope.", - "type": "string", - "const": "core:menu:allow-create-default" - }, - { - "description": "Enables the get command without any pre-configured scope.", - "type": "string", - "const": "core:menu:allow-get" - }, - { - "description": "Enables the insert command without any pre-configured scope.", - "type": "string", - "const": "core:menu:allow-insert" - }, - { - "description": "Enables the is_checked command without any pre-configured scope.", - "type": "string", - "const": "core:menu:allow-is-checked" - }, - { - "description": "Enables the is_enabled command without any pre-configured scope.", - "type": "string", - "const": "core:menu:allow-is-enabled" - }, - { - "description": "Enables the items command without any pre-configured scope.", - "type": "string", - "const": "core:menu:allow-items" - }, - { - "description": "Enables the new command without any pre-configured scope.", - "type": "string", - "const": "core:menu:allow-new" - }, - { - "description": "Enables the popup command without any pre-configured scope.", - "type": "string", - "const": "core:menu:allow-popup" - }, - { - "description": "Enables the prepend command without any pre-configured scope.", - "type": "string", - "const": "core:menu:allow-prepend" - }, - { - "description": "Enables the remove command without any pre-configured scope.", - "type": "string", - "const": "core:menu:allow-remove" - }, - { - "description": "Enables the remove_at command without any pre-configured scope.", - "type": "string", - "const": "core:menu:allow-remove-at" - }, - { - "description": "Enables the set_accelerator command without any pre-configured scope.", - "type": "string", - "const": "core:menu:allow-set-accelerator" - }, - { - "description": "Enables the set_as_app_menu command without any pre-configured scope.", - "type": "string", - "const": "core:menu:allow-set-as-app-menu" - }, - { - "description": "Enables the set_as_help_menu_for_nsapp command without any pre-configured scope.", - "type": "string", - "const": "core:menu:allow-set-as-help-menu-for-nsapp" - }, - { - "description": "Enables the set_as_window_menu command without any pre-configured scope.", - "type": "string", - "const": "core:menu:allow-set-as-window-menu" - }, - { - "description": "Enables the set_as_windows_menu_for_nsapp command without any pre-configured scope.", - "type": "string", - "const": "core:menu:allow-set-as-windows-menu-for-nsapp" - }, - { - "description": "Enables the set_checked command without any pre-configured scope.", - "type": "string", - "const": "core:menu:allow-set-checked" - }, - { - "description": "Enables the set_enabled command without any pre-configured scope.", - "type": "string", - "const": "core:menu:allow-set-enabled" - }, - { - "description": "Enables the set_icon command without any pre-configured scope.", - "type": "string", - "const": "core:menu:allow-set-icon" - }, - { - "description": "Enables the set_text command without any pre-configured scope.", - "type": "string", - "const": "core:menu:allow-set-text" - }, - { - "description": "Enables the text command without any pre-configured scope.", - "type": "string", - "const": "core:menu:allow-text" - }, - { - "description": "Denies the append command without any pre-configured scope.", - "type": "string", - "const": "core:menu:deny-append" - }, - { - "description": "Denies the create_default command without any pre-configured scope.", - "type": "string", - "const": "core:menu:deny-create-default" - }, - { - "description": "Denies the get command without any pre-configured scope.", - "type": "string", - "const": "core:menu:deny-get" - }, - { - "description": "Denies the insert command without any pre-configured scope.", - "type": "string", - "const": "core:menu:deny-insert" - }, - { - "description": "Denies the is_checked command without any pre-configured scope.", - "type": "string", - "const": "core:menu:deny-is-checked" - }, - { - "description": "Denies the is_enabled command without any pre-configured scope.", - "type": "string", - "const": "core:menu:deny-is-enabled" - }, - { - "description": "Denies the items command without any pre-configured scope.", - "type": "string", - "const": "core:menu:deny-items" - }, - { - "description": "Denies the new command without any pre-configured scope.", - "type": "string", - "const": "core:menu:deny-new" - }, - { - "description": "Denies the popup command without any pre-configured scope.", - "type": "string", - "const": "core:menu:deny-popup" - }, - { - "description": "Denies the prepend command without any pre-configured scope.", - "type": "string", - "const": "core:menu:deny-prepend" - }, - { - "description": "Denies the remove command without any pre-configured scope.", - "type": "string", - "const": "core:menu:deny-remove" - }, - { - "description": "Denies the remove_at command without any pre-configured scope.", - "type": "string", - "const": "core:menu:deny-remove-at" - }, - { - "description": "Denies the set_accelerator command without any pre-configured scope.", - "type": "string", - "const": "core:menu:deny-set-accelerator" - }, - { - "description": "Denies the set_as_app_menu command without any pre-configured scope.", - "type": "string", - "const": "core:menu:deny-set-as-app-menu" - }, - { - "description": "Denies the set_as_help_menu_for_nsapp command without any pre-configured scope.", - "type": "string", - "const": "core:menu:deny-set-as-help-menu-for-nsapp" - }, - { - "description": "Denies the set_as_window_menu command without any pre-configured scope.", - "type": "string", - "const": "core:menu:deny-set-as-window-menu" - }, - { - "description": "Denies the set_as_windows_menu_for_nsapp command without any pre-configured scope.", - "type": "string", - "const": "core:menu:deny-set-as-windows-menu-for-nsapp" - }, - { - "description": "Denies the set_checked command without any pre-configured scope.", - "type": "string", - "const": "core:menu:deny-set-checked" - }, - { - "description": "Denies the set_enabled command without any pre-configured scope.", - "type": "string", - "const": "core:menu:deny-set-enabled" - }, - { - "description": "Denies the set_icon command without any pre-configured scope.", - "type": "string", - "const": "core:menu:deny-set-icon" - }, - { - "description": "Denies the set_text command without any pre-configured scope.", - "type": "string", - "const": "core:menu:deny-set-text" - }, - { - "description": "Denies the text command without any pre-configured scope.", - "type": "string", - "const": "core:menu:deny-text" - }, - { - "description": "Default permissions for the plugin.", - "type": "string", - "const": "core:path:default" - }, - { - "description": "Enables the basename command without any pre-configured scope.", - "type": "string", - "const": "core:path:allow-basename" - }, - { - "description": "Enables the dirname command without any pre-configured scope.", - "type": "string", - "const": "core:path:allow-dirname" - }, - { - "description": "Enables the extname command without any pre-configured scope.", - "type": "string", - "const": "core:path:allow-extname" - }, - { - "description": "Enables the is_absolute command without any pre-configured scope.", - "type": "string", - "const": "core:path:allow-is-absolute" - }, - { - "description": "Enables the join command without any pre-configured scope.", - "type": "string", - "const": "core:path:allow-join" - }, - { - "description": "Enables the normalize command without any pre-configured scope.", - "type": "string", - "const": "core:path:allow-normalize" - }, - { - "description": "Enables the resolve command without any pre-configured scope.", - "type": "string", - "const": "core:path:allow-resolve" - }, - { - "description": "Enables the resolve_directory command without any pre-configured scope.", - "type": "string", - "const": "core:path:allow-resolve-directory" - }, - { - "description": "Denies the basename command without any pre-configured scope.", - "type": "string", - "const": "core:path:deny-basename" - }, - { - "description": "Denies the dirname command without any pre-configured scope.", - "type": "string", - "const": "core:path:deny-dirname" - }, - { - "description": "Denies the extname command without any pre-configured scope.", - "type": "string", - "const": "core:path:deny-extname" - }, - { - "description": "Denies the is_absolute command without any pre-configured scope.", - "type": "string", - "const": "core:path:deny-is-absolute" - }, - { - "description": "Denies the join command without any pre-configured scope.", - "type": "string", - "const": "core:path:deny-join" - }, - { - "description": "Denies the normalize command without any pre-configured scope.", - "type": "string", - "const": "core:path:deny-normalize" - }, - { - "description": "Denies the resolve command without any pre-configured scope.", - "type": "string", - "const": "core:path:deny-resolve" - }, - { - "description": "Denies the resolve_directory command without any pre-configured scope.", - "type": "string", - "const": "core:path:deny-resolve-directory" - }, - { - "description": "Default permissions for the plugin.", - "type": "string", - "const": "core:resources:default" - }, - { - "description": "Enables the close command without any pre-configured scope.", - "type": "string", - "const": "core:resources:allow-close" - }, - { - "description": "Denies the close command without any pre-configured scope.", - "type": "string", - "const": "core:resources:deny-close" - }, - { - "description": "Default permissions for the plugin.", - "type": "string", - "const": "core:tray:default" - }, - { - "description": "Enables the get_by_id command without any pre-configured scope.", - "type": "string", - "const": "core:tray:allow-get-by-id" - }, - { - "description": "Enables the new command without any pre-configured scope.", - "type": "string", - "const": "core:tray:allow-new" - }, - { - "description": "Enables the remove_by_id command without any pre-configured scope.", - "type": "string", - "const": "core:tray:allow-remove-by-id" - }, - { - "description": "Enables the set_icon command without any pre-configured scope.", - "type": "string", - "const": "core:tray:allow-set-icon" - }, - { - "description": "Enables the set_icon_as_template command without any pre-configured scope.", - "type": "string", - "const": "core:tray:allow-set-icon-as-template" - }, - { - "description": "Enables the set_menu command without any pre-configured scope.", - "type": "string", - "const": "core:tray:allow-set-menu" - }, - { - "description": "Enables the set_show_menu_on_left_click command without any pre-configured scope.", - "type": "string", - "const": "core:tray:allow-set-show-menu-on-left-click" - }, - { - "description": "Enables the set_temp_dir_path command without any pre-configured scope.", - "type": "string", - "const": "core:tray:allow-set-temp-dir-path" - }, - { - "description": "Enables the set_title command without any pre-configured scope.", - "type": "string", - "const": "core:tray:allow-set-title" - }, - { - "description": "Enables the set_tooltip command without any pre-configured scope.", - "type": "string", - "const": "core:tray:allow-set-tooltip" - }, - { - "description": "Enables the set_visible command without any pre-configured scope.", - "type": "string", - "const": "core:tray:allow-set-visible" - }, - { - "description": "Denies the get_by_id command without any pre-configured scope.", - "type": "string", - "const": "core:tray:deny-get-by-id" - }, - { - "description": "Denies the new command without any pre-configured scope.", - "type": "string", - "const": "core:tray:deny-new" - }, - { - "description": "Denies the remove_by_id command without any pre-configured scope.", - "type": "string", - "const": "core:tray:deny-remove-by-id" - }, - { - "description": "Denies the set_icon command without any pre-configured scope.", - "type": "string", - "const": "core:tray:deny-set-icon" - }, - { - "description": "Denies the set_icon_as_template command without any pre-configured scope.", - "type": "string", - "const": "core:tray:deny-set-icon-as-template" - }, - { - "description": "Denies the set_menu command without any pre-configured scope.", - "type": "string", - "const": "core:tray:deny-set-menu" - }, - { - "description": "Denies the set_show_menu_on_left_click command without any pre-configured scope.", - "type": "string", - "const": "core:tray:deny-set-show-menu-on-left-click" - }, - { - "description": "Denies the set_temp_dir_path command without any pre-configured scope.", - "type": "string", - "const": "core:tray:deny-set-temp-dir-path" - }, - { - "description": "Denies the set_title command without any pre-configured scope.", - "type": "string", - "const": "core:tray:deny-set-title" - }, - { - "description": "Denies the set_tooltip command without any pre-configured scope.", - "type": "string", - "const": "core:tray:deny-set-tooltip" - }, - { - "description": "Denies the set_visible command without any pre-configured scope.", - "type": "string", - "const": "core:tray:deny-set-visible" - }, - { - "description": "Default permissions for the plugin.", - "type": "string", - "const": "core:webview:default" - }, - { - "description": "Enables the clear_all_browsing_data command without any pre-configured scope.", - "type": "string", - "const": "core:webview:allow-clear-all-browsing-data" - }, - { - "description": "Enables the create_webview command without any pre-configured scope.", - "type": "string", - "const": "core:webview:allow-create-webview" - }, - { - "description": "Enables the create_webview_window command without any pre-configured scope.", - "type": "string", - "const": "core:webview:allow-create-webview-window" - }, - { - "description": "Enables the get_all_webviews command without any pre-configured scope.", - "type": "string", - "const": "core:webview:allow-get-all-webviews" - }, - { - "description": "Enables the internal_toggle_devtools command without any pre-configured scope.", - "type": "string", - "const": "core:webview:allow-internal-toggle-devtools" - }, - { - "description": "Enables the print command without any pre-configured scope.", - "type": "string", - "const": "core:webview:allow-print" - }, - { - "description": "Enables the reparent command without any pre-configured scope.", - "type": "string", - "const": "core:webview:allow-reparent" - }, - { - "description": "Enables the set_webview_focus command without any pre-configured scope.", - "type": "string", - "const": "core:webview:allow-set-webview-focus" - }, - { - "description": "Enables the set_webview_position command without any pre-configured scope.", - "type": "string", - "const": "core:webview:allow-set-webview-position" - }, - { - "description": "Enables the set_webview_size command without any pre-configured scope.", - "type": "string", - "const": "core:webview:allow-set-webview-size" - }, - { - "description": "Enables the set_webview_zoom command without any pre-configured scope.", - "type": "string", - "const": "core:webview:allow-set-webview-zoom" - }, - { - "description": "Enables the webview_close command without any pre-configured scope.", - "type": "string", - "const": "core:webview:allow-webview-close" - }, - { - "description": "Enables the webview_hide command without any pre-configured scope.", - "type": "string", - "const": "core:webview:allow-webview-hide" - }, - { - "description": "Enables the webview_position command without any pre-configured scope.", - "type": "string", - "const": "core:webview:allow-webview-position" - }, - { - "description": "Enables the webview_show command without any pre-configured scope.", - "type": "string", - "const": "core:webview:allow-webview-show" - }, - { - "description": "Enables the webview_size command without any pre-configured scope.", - "type": "string", - "const": "core:webview:allow-webview-size" - }, - { - "description": "Denies the clear_all_browsing_data command without any pre-configured scope.", - "type": "string", - "const": "core:webview:deny-clear-all-browsing-data" - }, - { - "description": "Denies the create_webview command without any pre-configured scope.", - "type": "string", - "const": "core:webview:deny-create-webview" - }, - { - "description": "Denies the create_webview_window command without any pre-configured scope.", - "type": "string", - "const": "core:webview:deny-create-webview-window" - }, - { - "description": "Denies the get_all_webviews command without any pre-configured scope.", - "type": "string", - "const": "core:webview:deny-get-all-webviews" - }, - { - "description": "Denies the internal_toggle_devtools command without any pre-configured scope.", - "type": "string", - "const": "core:webview:deny-internal-toggle-devtools" - }, - { - "description": "Denies the print command without any pre-configured scope.", - "type": "string", - "const": "core:webview:deny-print" - }, - { - "description": "Denies the reparent command without any pre-configured scope.", - "type": "string", - "const": "core:webview:deny-reparent" - }, - { - "description": "Denies the set_webview_focus command without any pre-configured scope.", - "type": "string", - "const": "core:webview:deny-set-webview-focus" - }, - { - "description": "Denies the set_webview_position command without any pre-configured scope.", - "type": "string", - "const": "core:webview:deny-set-webview-position" - }, - { - "description": "Denies the set_webview_size command without any pre-configured scope.", - "type": "string", - "const": "core:webview:deny-set-webview-size" - }, - { - "description": "Denies the set_webview_zoom command without any pre-configured scope.", - "type": "string", - "const": "core:webview:deny-set-webview-zoom" - }, - { - "description": "Denies the webview_close command without any pre-configured scope.", - "type": "string", - "const": "core:webview:deny-webview-close" - }, - { - "description": "Denies the webview_hide command without any pre-configured scope.", - "type": "string", - "const": "core:webview:deny-webview-hide" - }, - { - "description": "Denies the webview_position command without any pre-configured scope.", - "type": "string", - "const": "core:webview:deny-webview-position" - }, - { - "description": "Denies the webview_show command without any pre-configured scope.", - "type": "string", - "const": "core:webview:deny-webview-show" - }, - { - "description": "Denies the webview_size command without any pre-configured scope.", - "type": "string", - "const": "core:webview:deny-webview-size" - }, - { - "description": "Default permissions for the plugin.", - "type": "string", - "const": "core:window:default" - }, - { - "description": "Enables the available_monitors command without any pre-configured scope.", - "type": "string", - "const": "core:window:allow-available-monitors" - }, - { - "description": "Enables the center command without any pre-configured scope.", - "type": "string", - "const": "core:window:allow-center" - }, - { - "description": "Enables the close command without any pre-configured scope.", - "type": "string", - "const": "core:window:allow-close" - }, - { - "description": "Enables the create command without any pre-configured scope.", - "type": "string", - "const": "core:window:allow-create" - }, - { - "description": "Enables the current_monitor command without any pre-configured scope.", - "type": "string", - "const": "core:window:allow-current-monitor" - }, - { - "description": "Enables the cursor_position command without any pre-configured scope.", - "type": "string", - "const": "core:window:allow-cursor-position" - }, - { - "description": "Enables the destroy command without any pre-configured scope.", - "type": "string", - "const": "core:window:allow-destroy" - }, - { - "description": "Enables the get_all_windows command without any pre-configured scope.", - "type": "string", - "const": "core:window:allow-get-all-windows" - }, - { - "description": "Enables the hide command without any pre-configured scope.", - "type": "string", - "const": "core:window:allow-hide" - }, - { - "description": "Enables the inner_position command without any pre-configured scope.", - "type": "string", - "const": "core:window:allow-inner-position" - }, - { - "description": "Enables the inner_size command without any pre-configured scope.", - "type": "string", - "const": "core:window:allow-inner-size" - }, - { - "description": "Enables the internal_toggle_maximize command without any pre-configured scope.", - "type": "string", - "const": "core:window:allow-internal-toggle-maximize" - }, - { - "description": "Enables the is_closable command without any pre-configured scope.", - "type": "string", - "const": "core:window:allow-is-closable" - }, - { - "description": "Enables the is_decorated command without any pre-configured scope.", - "type": "string", - "const": "core:window:allow-is-decorated" - }, - { - "description": "Enables the is_enabled command without any pre-configured scope.", - "type": "string", - "const": "core:window:allow-is-enabled" - }, - { - "description": "Enables the is_focused command without any pre-configured scope.", - "type": "string", - "const": "core:window:allow-is-focused" - }, - { - "description": "Enables the is_fullscreen command without any pre-configured scope.", - "type": "string", - "const": "core:window:allow-is-fullscreen" - }, - { - "description": "Enables the is_maximizable command without any pre-configured scope.", - "type": "string", - "const": "core:window:allow-is-maximizable" - }, - { - "description": "Enables the is_maximized command without any pre-configured scope.", - "type": "string", - "const": "core:window:allow-is-maximized" - }, - { - "description": "Enables the is_minimizable command without any pre-configured scope.", - "type": "string", - "const": "core:window:allow-is-minimizable" - }, - { - "description": "Enables the is_minimized command without any pre-configured scope.", - "type": "string", - "const": "core:window:allow-is-minimized" - }, - { - "description": "Enables the is_resizable command without any pre-configured scope.", - "type": "string", - "const": "core:window:allow-is-resizable" - }, - { - "description": "Enables the is_visible command without any pre-configured scope.", - "type": "string", - "const": "core:window:allow-is-visible" - }, - { - "description": "Enables the maximize command without any pre-configured scope.", - "type": "string", - "const": "core:window:allow-maximize" - }, - { - "description": "Enables the minimize command without any pre-configured scope.", - "type": "string", - "const": "core:window:allow-minimize" - }, - { - "description": "Enables the monitor_from_point command without any pre-configured scope.", - "type": "string", - "const": "core:window:allow-monitor-from-point" - }, - { - "description": "Enables the outer_position command without any pre-configured scope.", - "type": "string", - "const": "core:window:allow-outer-position" - }, - { - "description": "Enables the outer_size command without any pre-configured scope.", - "type": "string", - "const": "core:window:allow-outer-size" - }, - { - "description": "Enables the primary_monitor command without any pre-configured scope.", - "type": "string", - "const": "core:window:allow-primary-monitor" - }, - { - "description": "Enables the request_user_attention command without any pre-configured scope.", - "type": "string", - "const": "core:window:allow-request-user-attention" - }, - { - "description": "Enables the scale_factor command without any pre-configured scope.", - "type": "string", - "const": "core:window:allow-scale-factor" - }, - { - "description": "Enables the set_always_on_bottom command without any pre-configured scope.", - "type": "string", - "const": "core:window:allow-set-always-on-bottom" - }, - { - "description": "Enables the set_always_on_top command without any pre-configured scope.", - "type": "string", - "const": "core:window:allow-set-always-on-top" - }, - { - "description": "Enables the set_closable command without any pre-configured scope.", - "type": "string", - "const": "core:window:allow-set-closable" - }, - { - "description": "Enables the set_content_protected command without any pre-configured scope.", - "type": "string", - "const": "core:window:allow-set-content-protected" - }, - { - "description": "Enables the set_cursor_grab command without any pre-configured scope.", - "type": "string", - "const": "core:window:allow-set-cursor-grab" - }, - { - "description": "Enables the set_cursor_icon command without any pre-configured scope.", - "type": "string", - "const": "core:window:allow-set-cursor-icon" - }, - { - "description": "Enables the set_cursor_position command without any pre-configured scope.", - "type": "string", - "const": "core:window:allow-set-cursor-position" - }, - { - "description": "Enables the set_cursor_visible command without any pre-configured scope.", - "type": "string", - "const": "core:window:allow-set-cursor-visible" - }, - { - "description": "Enables the set_decorations command without any pre-configured scope.", - "type": "string", - "const": "core:window:allow-set-decorations" - }, - { - "description": "Enables the set_effects command without any pre-configured scope.", - "type": "string", - "const": "core:window:allow-set-effects" - }, - { - "description": "Enables the set_enabled command without any pre-configured scope.", - "type": "string", - "const": "core:window:allow-set-enabled" - }, - { - "description": "Enables the set_focus command without any pre-configured scope.", - "type": "string", - "const": "core:window:allow-set-focus" - }, - { - "description": "Enables the set_fullscreen command without any pre-configured scope.", - "type": "string", - "const": "core:window:allow-set-fullscreen" - }, - { - "description": "Enables the set_icon command without any pre-configured scope.", - "type": "string", - "const": "core:window:allow-set-icon" - }, - { - "description": "Enables the set_ignore_cursor_events command without any pre-configured scope.", - "type": "string", - "const": "core:window:allow-set-ignore-cursor-events" - }, - { - "description": "Enables the set_max_size command without any pre-configured scope.", - "type": "string", - "const": "core:window:allow-set-max-size" - }, - { - "description": "Enables the set_maximizable command without any pre-configured scope.", - "type": "string", - "const": "core:window:allow-set-maximizable" - }, - { - "description": "Enables the set_min_size command without any pre-configured scope.", - "type": "string", - "const": "core:window:allow-set-min-size" - }, - { - "description": "Enables the set_minimizable command without any pre-configured scope.", - "type": "string", - "const": "core:window:allow-set-minimizable" - }, - { - "description": "Enables the set_position command without any pre-configured scope.", - "type": "string", - "const": "core:window:allow-set-position" - }, - { - "description": "Enables the set_progress_bar command without any pre-configured scope.", - "type": "string", - "const": "core:window:allow-set-progress-bar" - }, - { - "description": "Enables the set_resizable command without any pre-configured scope.", - "type": "string", - "const": "core:window:allow-set-resizable" - }, - { - "description": "Enables the set_shadow command without any pre-configured scope.", - "type": "string", - "const": "core:window:allow-set-shadow" - }, - { - "description": "Enables the set_size command without any pre-configured scope.", - "type": "string", - "const": "core:window:allow-set-size" - }, - { - "description": "Enables the set_size_constraints command without any pre-configured scope.", - "type": "string", - "const": "core:window:allow-set-size-constraints" - }, - { - "description": "Enables the set_skip_taskbar command without any pre-configured scope.", - "type": "string", - "const": "core:window:allow-set-skip-taskbar" - }, - { - "description": "Enables the set_theme command without any pre-configured scope.", - "type": "string", - "const": "core:window:allow-set-theme" - }, - { - "description": "Enables the set_title command without any pre-configured scope.", - "type": "string", - "const": "core:window:allow-set-title" - }, - { - "description": "Enables the set_title_bar_style command without any pre-configured scope.", - "type": "string", - "const": "core:window:allow-set-title-bar-style" - }, - { - "description": "Enables the set_visible_on_all_workspaces command without any pre-configured scope.", - "type": "string", - "const": "core:window:allow-set-visible-on-all-workspaces" - }, - { - "description": "Enables the show command without any pre-configured scope.", - "type": "string", - "const": "core:window:allow-show" - }, - { - "description": "Enables the start_dragging command without any pre-configured scope.", - "type": "string", - "const": "core:window:allow-start-dragging" - }, - { - "description": "Enables the start_resize_dragging command without any pre-configured scope.", - "type": "string", - "const": "core:window:allow-start-resize-dragging" - }, - { - "description": "Enables the theme command without any pre-configured scope.", - "type": "string", - "const": "core:window:allow-theme" - }, - { - "description": "Enables the title command without any pre-configured scope.", - "type": "string", - "const": "core:window:allow-title" - }, - { - "description": "Enables the toggle_maximize command without any pre-configured scope.", - "type": "string", - "const": "core:window:allow-toggle-maximize" - }, - { - "description": "Enables the unmaximize command without any pre-configured scope.", - "type": "string", - "const": "core:window:allow-unmaximize" - }, - { - "description": "Enables the unminimize command without any pre-configured scope.", - "type": "string", - "const": "core:window:allow-unminimize" - }, - { - "description": "Denies the available_monitors command without any pre-configured scope.", - "type": "string", - "const": "core:window:deny-available-monitors" - }, - { - "description": "Denies the center command without any pre-configured scope.", - "type": "string", - "const": "core:window:deny-center" - }, - { - "description": "Denies the close command without any pre-configured scope.", - "type": "string", - "const": "core:window:deny-close" - }, - { - "description": "Denies the create command without any pre-configured scope.", - "type": "string", - "const": "core:window:deny-create" - }, - { - "description": "Denies the current_monitor command without any pre-configured scope.", - "type": "string", - "const": "core:window:deny-current-monitor" - }, - { - "description": "Denies the cursor_position command without any pre-configured scope.", - "type": "string", - "const": "core:window:deny-cursor-position" - }, - { - "description": "Denies the destroy command without any pre-configured scope.", - "type": "string", - "const": "core:window:deny-destroy" - }, - { - "description": "Denies the get_all_windows command without any pre-configured scope.", - "type": "string", - "const": "core:window:deny-get-all-windows" - }, - { - "description": "Denies the hide command without any pre-configured scope.", - "type": "string", - "const": "core:window:deny-hide" - }, - { - "description": "Denies the inner_position command without any pre-configured scope.", - "type": "string", - "const": "core:window:deny-inner-position" - }, - { - "description": "Denies the inner_size command without any pre-configured scope.", - "type": "string", - "const": "core:window:deny-inner-size" - }, - { - "description": "Denies the internal_toggle_maximize command without any pre-configured scope.", - "type": "string", - "const": "core:window:deny-internal-toggle-maximize" - }, - { - "description": "Denies the is_closable command without any pre-configured scope.", - "type": "string", - "const": "core:window:deny-is-closable" - }, - { - "description": "Denies the is_decorated command without any pre-configured scope.", - "type": "string", - "const": "core:window:deny-is-decorated" - }, - { - "description": "Denies the is_enabled command without any pre-configured scope.", - "type": "string", - "const": "core:window:deny-is-enabled" - }, - { - "description": "Denies the is_focused command without any pre-configured scope.", - "type": "string", - "const": "core:window:deny-is-focused" - }, - { - "description": "Denies the is_fullscreen command without any pre-configured scope.", - "type": "string", - "const": "core:window:deny-is-fullscreen" - }, - { - "description": "Denies the is_maximizable command without any pre-configured scope.", - "type": "string", - "const": "core:window:deny-is-maximizable" - }, - { - "description": "Denies the is_maximized command without any pre-configured scope.", - "type": "string", - "const": "core:window:deny-is-maximized" - }, - { - "description": "Denies the is_minimizable command without any pre-configured scope.", - "type": "string", - "const": "core:window:deny-is-minimizable" - }, - { - "description": "Denies the is_minimized command without any pre-configured scope.", - "type": "string", - "const": "core:window:deny-is-minimized" - }, - { - "description": "Denies the is_resizable command without any pre-configured scope.", - "type": "string", - "const": "core:window:deny-is-resizable" - }, - { - "description": "Denies the is_visible command without any pre-configured scope.", - "type": "string", - "const": "core:window:deny-is-visible" - }, - { - "description": "Denies the maximize command without any pre-configured scope.", - "type": "string", - "const": "core:window:deny-maximize" - }, - { - "description": "Denies the minimize command without any pre-configured scope.", - "type": "string", - "const": "core:window:deny-minimize" - }, - { - "description": "Denies the monitor_from_point command without any pre-configured scope.", - "type": "string", - "const": "core:window:deny-monitor-from-point" - }, - { - "description": "Denies the outer_position command without any pre-configured scope.", - "type": "string", - "const": "core:window:deny-outer-position" - }, - { - "description": "Denies the outer_size command without any pre-configured scope.", - "type": "string", - "const": "core:window:deny-outer-size" - }, - { - "description": "Denies the primary_monitor command without any pre-configured scope.", - "type": "string", - "const": "core:window:deny-primary-monitor" - }, - { - "description": "Denies the request_user_attention command without any pre-configured scope.", - "type": "string", - "const": "core:window:deny-request-user-attention" - }, - { - "description": "Denies the scale_factor command without any pre-configured scope.", - "type": "string", - "const": "core:window:deny-scale-factor" - }, - { - "description": "Denies the set_always_on_bottom command without any pre-configured scope.", - "type": "string", - "const": "core:window:deny-set-always-on-bottom" - }, - { - "description": "Denies the set_always_on_top command without any pre-configured scope.", - "type": "string", - "const": "core:window:deny-set-always-on-top" - }, - { - "description": "Denies the set_closable command without any pre-configured scope.", - "type": "string", - "const": "core:window:deny-set-closable" - }, - { - "description": "Denies the set_content_protected command without any pre-configured scope.", - "type": "string", - "const": "core:window:deny-set-content-protected" - }, - { - "description": "Denies the set_cursor_grab command without any pre-configured scope.", - "type": "string", - "const": "core:window:deny-set-cursor-grab" - }, - { - "description": "Denies the set_cursor_icon command without any pre-configured scope.", - "type": "string", - "const": "core:window:deny-set-cursor-icon" - }, - { - "description": "Denies the set_cursor_position command without any pre-configured scope.", - "type": "string", - "const": "core:window:deny-set-cursor-position" - }, - { - "description": "Denies the set_cursor_visible command without any pre-configured scope.", - "type": "string", - "const": "core:window:deny-set-cursor-visible" - }, - { - "description": "Denies the set_decorations command without any pre-configured scope.", - "type": "string", - "const": "core:window:deny-set-decorations" - }, - { - "description": "Denies the set_effects command without any pre-configured scope.", - "type": "string", - "const": "core:window:deny-set-effects" - }, - { - "description": "Denies the set_enabled command without any pre-configured scope.", - "type": "string", - "const": "core:window:deny-set-enabled" - }, - { - "description": "Denies the set_focus command without any pre-configured scope.", - "type": "string", - "const": "core:window:deny-set-focus" - }, - { - "description": "Denies the set_fullscreen command without any pre-configured scope.", - "type": "string", - "const": "core:window:deny-set-fullscreen" - }, - { - "description": "Denies the set_icon command without any pre-configured scope.", - "type": "string", - "const": "core:window:deny-set-icon" - }, - { - "description": "Denies the set_ignore_cursor_events command without any pre-configured scope.", - "type": "string", - "const": "core:window:deny-set-ignore-cursor-events" - }, - { - "description": "Denies the set_max_size command without any pre-configured scope.", - "type": "string", - "const": "core:window:deny-set-max-size" - }, - { - "description": "Denies the set_maximizable command without any pre-configured scope.", - "type": "string", - "const": "core:window:deny-set-maximizable" - }, - { - "description": "Denies the set_min_size command without any pre-configured scope.", - "type": "string", - "const": "core:window:deny-set-min-size" - }, - { - "description": "Denies the set_minimizable command without any pre-configured scope.", - "type": "string", - "const": "core:window:deny-set-minimizable" - }, - { - "description": "Denies the set_position command without any pre-configured scope.", - "type": "string", - "const": "core:window:deny-set-position" - }, - { - "description": "Denies the set_progress_bar command without any pre-configured scope.", - "type": "string", - "const": "core:window:deny-set-progress-bar" - }, - { - "description": "Denies the set_resizable command without any pre-configured scope.", - "type": "string", - "const": "core:window:deny-set-resizable" - }, - { - "description": "Denies the set_shadow command without any pre-configured scope.", - "type": "string", - "const": "core:window:deny-set-shadow" - }, - { - "description": "Denies the set_size command without any pre-configured scope.", - "type": "string", - "const": "core:window:deny-set-size" - }, - { - "description": "Denies the set_size_constraints command without any pre-configured scope.", - "type": "string", - "const": "core:window:deny-set-size-constraints" - }, - { - "description": "Denies the set_skip_taskbar command without any pre-configured scope.", - "type": "string", - "const": "core:window:deny-set-skip-taskbar" - }, - { - "description": "Denies the set_theme command without any pre-configured scope.", - "type": "string", - "const": "core:window:deny-set-theme" - }, - { - "description": "Denies the set_title command without any pre-configured scope.", - "type": "string", - "const": "core:window:deny-set-title" - }, - { - "description": "Denies the set_title_bar_style command without any pre-configured scope.", - "type": "string", - "const": "core:window:deny-set-title-bar-style" - }, - { - "description": "Denies the set_visible_on_all_workspaces command without any pre-configured scope.", - "type": "string", - "const": "core:window:deny-set-visible-on-all-workspaces" - }, - { - "description": "Denies the show command without any pre-configured scope.", - "type": "string", - "const": "core:window:deny-show" - }, - { - "description": "Denies the start_dragging command without any pre-configured scope.", - "type": "string", - "const": "core:window:deny-start-dragging" - }, - { - "description": "Denies the start_resize_dragging command without any pre-configured scope.", - "type": "string", - "const": "core:window:deny-start-resize-dragging" - }, - { - "description": "Denies the theme command without any pre-configured scope.", - "type": "string", - "const": "core:window:deny-theme" - }, - { - "description": "Denies the title command without any pre-configured scope.", - "type": "string", - "const": "core:window:deny-title" - }, - { - "description": "Denies the toggle_maximize command without any pre-configured scope.", - "type": "string", - "const": "core:window:deny-toggle-maximize" - }, - { - "description": "Denies the unmaximize command without any pre-configured scope.", - "type": "string", - "const": "core:window:deny-unmaximize" - }, - { - "description": "Denies the unminimize command without any pre-configured scope.", - "type": "string", - "const": "core:window:deny-unminimize" - } - ] - }, - "Value": { - "description": "All supported ACL values.", - "anyOf": [ - { - "description": "Represents a null JSON value.", - "type": "null" - }, - { - "description": "Represents a [`bool`].", - "type": "boolean" - }, - { - "description": "Represents a valid ACL [`Number`].", - "allOf": [ - { - "$ref": "#/definitions/Number" - } - ] - }, - { - "description": "Represents a [`String`].", - "type": "string" - }, - { - "description": "Represents a list of other [`Value`]s.", - "type": "array", - "items": { - "$ref": "#/definitions/Value" - } - }, - { - "description": "Represents a map of [`String`] keys to [`Value`]s.", - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/Value" - } - } - ] - }, - "Number": { - "description": "A valid ACL number.", - "anyOf": [ - { - "description": "Represents an [`i64`].", - "type": "integer", - "format": "int64" - }, - { - "description": "Represents a [`f64`].", - "type": "number", - "format": "double" - } - ] - }, - "Target": { - "description": "Platform target.", - "oneOf": [ - { - "description": "MacOS.", - "type": "string", - "enum": [ - "macOS" - ] - }, - { - "description": "Windows.", - "type": "string", - "enum": [ - "windows" - ] - }, - { - "description": "Linux.", - "type": "string", - "enum": [ - "linux" - ] - }, - { - "description": "Android.", - "type": "string", - "enum": [ - "android" - ] - }, - { - "description": "iOS.", - "type": "string", - "enum": [ - "iOS" - ] - } - ] - } - } -} \ No newline at end of file diff --git a/crates/gpapi/Cargo.toml b/crates/gpapi/Cargo.toml index 5a779782..6d6a5a54 100644 --- a/crates/gpapi/Cargo.toml +++ b/crates/gpapi/Cargo.toml @@ -1,5 +1,6 @@ [package] name = "gpapi" +rust-version.workspace = true version.workspace = true edition.workspace = true license = "MIT" diff --git a/crates/gpapi/src/auth.rs b/crates/gpapi/src/auth.rs index 86ddcd4f..dcabde37 100644 --- a/crates/gpapi/src/auth.rs +++ b/crates/gpapi/src/auth.rs @@ -1,11 +1,14 @@ use std::borrow::{Borrow, Cow}; +use anyhow::bail; use log::{info, warn}; use regex::Regex; use serde::{Deserialize, Serialize}; use crate::{error::AuthDataParseError, utils::base64::decode_to_string}; +pub type AuthDataParseResult = anyhow::Result; + #[derive(Debug, Serialize, Deserialize)] #[serde(rename_all = "camelCase")] pub struct SamlAuthData { @@ -33,33 +36,51 @@ impl SamlAuthResult { } impl SamlAuthData { - pub fn new(username: String, prelogin_cookie: Option, portal_userauthcookie: Option) -> Self { - Self { + pub fn new( + username: Option, + prelogin_cookie: Option, + portal_userauthcookie: Option, + ) -> anyhow::Result { + let username = username.unwrap_or_default(); + if username.is_empty() { + bail!("Invalid username: "); + } + + let prelogin_cookie = prelogin_cookie.unwrap_or_default(); + let portal_userauthcookie = portal_userauthcookie.unwrap_or_default(); + + if prelogin_cookie.len() <= 5 && portal_userauthcookie.len() <= 5 { + bail!( + "Invalid prelogin-cookie: {}, portal-userauthcookie: {}", + prelogin_cookie, + portal_userauthcookie + ); + } + + Ok(Self { username, - prelogin_cookie, - portal_userauthcookie, + prelogin_cookie: Some(prelogin_cookie), + portal_userauthcookie: Some(portal_userauthcookie), token: None, - } + }) } - pub fn from_html(html: &str) -> anyhow::Result { + pub fn from_html(html: &str) -> AuthDataParseResult { match parse_xml_tag(html, "saml-auth-status") { - Some(saml_status) if saml_status == "1" => { + Some(status) if status == "1" => { let username = parse_xml_tag(html, "saml-username"); let prelogin_cookie = parse_xml_tag(html, "prelogin-cookie"); let portal_userauthcookie = parse_xml_tag(html, "portal-userauthcookie"); - if SamlAuthData::check(&username, &prelogin_cookie, &portal_userauthcookie) { - Ok(SamlAuthData::new( - username.unwrap(), - prelogin_cookie, - portal_userauthcookie, - )) - } else { - Err(AuthDataParseError::Invalid) - } + SamlAuthData::new(username, prelogin_cookie, portal_userauthcookie).map_err(|e| { + warn!("Failed to parse auth data: {}", e); + AuthDataParseError::Invalid + }) + } + Some(status) => { + warn!("Found invalid auth status: {}", status); + Err(AuthDataParseError::Invalid) } - Some(_) => Err(AuthDataParseError::Invalid), None => Err(AuthDataParseError::NotFound), } } @@ -105,27 +126,6 @@ impl SamlAuthData { pub fn token(&self) -> Option<&str> { self.token.as_deref() } - - pub fn check( - username: &Option, - prelogin_cookie: &Option, - portal_userauthcookie: &Option, - ) -> bool { - let username_valid = username.as_ref().is_some_and(|username| !username.is_empty()); - let prelogin_cookie_valid = prelogin_cookie.as_ref().is_some_and(|val| val.len() > 5); - let portal_userauthcookie_valid = portal_userauthcookie.as_ref().is_some_and(|val| val.len() > 5); - - let is_valid = username_valid && (prelogin_cookie_valid || portal_userauthcookie_valid); - - if !is_valid { - warn!( - "Invalid SAML auth data: username: {:?}, prelogin-cookie: {:?}, portal-userauthcookie: {:?}", - username, prelogin_cookie, portal_userauthcookie - ); - } - - is_valid - } } pub fn parse_xml_tag(html: &str, tag: &str) -> Option { diff --git a/crates/gpapi/src/clap/mod.rs b/crates/gpapi/src/clap/mod.rs index 6e10f4ad..74bc6e36 100644 --- a/crates/gpapi/src/clap/mod.rs +++ b/crates/gpapi/src/clap/mod.rs @@ -1 +1,28 @@ +use crate::error::PortalError; + pub mod args; + +pub trait Args { + fn fix_openssl(&self) -> bool; + fn ignore_tls_errors(&self) -> bool; +} + +pub fn handle_error(err: anyhow::Error, args: &impl Args) { + eprintln!("\nError: {}", err); + + let Some(err) = err.downcast_ref::() else { + return; + }; + + if err.is_legacy_openssl_error() && !args.fix_openssl() { + eprintln!("\nRe-run it with the `--fix-openssl` option to work around this issue, e.g.:\n"); + let args = std::env::args().collect::>(); + eprintln!("{} --fix-openssl {}\n", args[0], args[1..].join(" ")); + } + + if err.is_tls_error() && !args.ignore_tls_errors() { + eprintln!("\nRe-run it with the `--ignore-tls-errors` option to ignore the certificate error, e.g.:\n"); + let args = std::env::args().collect::>(); + eprintln!("{} --ignore-tls-errors {}\n", args[0], args[1..].join(" ")); + } +} diff --git a/crates/gpapi/src/error.rs b/crates/gpapi/src/error.rs index f46be52d..6af70850 100644 --- a/crates/gpapi/src/error.rs +++ b/crates/gpapi/src/error.rs @@ -7,7 +7,19 @@ pub enum PortalError { #[error("Portal config error: {0}")] ConfigError(String), #[error("Network error: {0}")] - NetworkError(String), + NetworkError(#[from] reqwest::Error), + #[error("TLS error")] + TlsError, +} + +impl PortalError { + pub fn is_legacy_openssl_error(&self) -> bool { + format!("{:?}", self).contains("unsafe legacy renegotiation") + } + + pub fn is_tls_error(&self) -> bool { + matches!(self, PortalError::TlsError) || format!("{:?}", self).contains("certificate verify failed") + } } #[derive(Error, Debug)] @@ -17,3 +29,9 @@ pub enum AuthDataParseError { #[error("Invalid auth data")] Invalid, } + +impl AuthDataParseError { + pub fn is_invalid(&self) -> bool { + matches!(self, AuthDataParseError::Invalid) + } +} diff --git a/crates/gpapi/src/gateway/login.rs b/crates/gpapi/src/gateway/login.rs index 0188e22b..d99c0e9e 100644 --- a/crates/gpapi/src/gateway/login.rs +++ b/crates/gpapi/src/gateway/login.rs @@ -36,7 +36,7 @@ pub async fn gateway_login(gateway: &str, cred: &Credential, gp_params: &GpParam .form(¶ms) .send() .await - .map_err(|e| anyhow::anyhow!(PortalError::NetworkError(e.to_string())))?; + .map_err(|e| anyhow::anyhow!(PortalError::NetworkError(e)))?; let res = parse_gp_response(res).await.map_err(|err| { warn!("{err}"); diff --git a/crates/gpapi/src/lib.rs b/crates/gpapi/src/lib.rs index 63bd13ba..663eb24e 100644 --- a/crates/gpapi/src/lib.rs +++ b/crates/gpapi/src/lib.rs @@ -16,6 +16,7 @@ pub const GP_API_KEY: &[u8; 32] = &[0; 32]; pub const GP_USER_AGENT: &str = "PAN GlobalProtect"; pub const GP_SERVICE_LOCK_FILE: &str = "/var/run/gpservice.lock"; +pub const GP_CALLBACK_PORT_FILENAME: &str = "gpcallback.port"; #[cfg(not(debug_assertions))] pub const GP_CLIENT_BINARY: &str = "/usr/bin/gpclient"; diff --git a/crates/gpapi/src/portal/config.rs b/crates/gpapi/src/portal/config.rs index 3db25d6b..9be4c765 100644 --- a/crates/gpapi/src/portal/config.rs +++ b/crates/gpapi/src/portal/config.rs @@ -116,7 +116,7 @@ pub async fn retrieve_config(portal: &str, cred: &Credential, gp_params: &GpPara .form(¶ms) .send() .await - .map_err(|e| anyhow::anyhow!(PortalError::NetworkError(e.to_string())))?; + .map_err(|e| anyhow::anyhow!(PortalError::NetworkError(e)))?; let res_xml = parse_gp_response(res).await.or_else(|err| { if err.status == StatusCode::NOT_FOUND { diff --git a/crates/gpapi/src/portal/prelogin.rs b/crates/gpapi/src/portal/prelogin.rs index 4c10d2ab..b4076d95 100644 --- a/crates/gpapi/src/portal/prelogin.rs +++ b/crates/gpapi/src/portal/prelogin.rs @@ -116,14 +116,12 @@ pub async fn prelogin(portal: &str, gp_params: &GpParams) -> anyhow::Result anyhow::Result<()>; - fn hide_menu(&self); } impl WindowExt for WebviewWindow { fn raise(&self) -> anyhow::Result<()> { raise_window(self) } - - fn hide_menu(&self) { - hide_menu(self); - } } pub fn raise_window(win: &WebviewWindow) -> anyhow::Result<()> { @@ -40,7 +35,7 @@ pub fn raise_window(win: &WebviewWindow) -> anyhow::Result<()> { // Calling window.show() on Windows will cause the menu to be shown. // We need to hide it again. - hide_menu(win); + win.hide_menu()?; Ok(()) } @@ -76,22 +71,3 @@ async fn wmctrl_try_raise_window(title: &str) -> anyhow::Result { Ok(exit_status) } - -fn hide_menu(win: &WebviewWindow) { - // let menu_handle = win.menu_handle(); - - // tokio::spawn(async move { - // loop { - // let menu_visible = menu_handle.is_visible().unwrap_or(false); - - // if !menu_visible { - // break; - // } - - // if menu_visible { - // let _ = menu_handle.hide(); - // tokio::time::sleep(Duration::from_millis(10)).await; - // } - // } - // }); -} diff --git a/packaging/deb/compat b/packaging/deb/compat new file mode 100644 index 00000000..f599e28b --- /dev/null +++ b/packaging/deb/compat @@ -0,0 +1 @@ +10 diff --git a/packaging/deb/control.in b/packaging/deb/control.in index 27d046d9..e2ac61a1 100644 --- a/packaging/deb/control.in +++ b/packaging/deb/control.in @@ -11,7 +11,7 @@ Build-Depends: debhelper (>= 9), libsecret-1-0, libayatana-appindicator3-1, gnome-keyring, - libwebkit2gtk-4.0-dev, + libwebkit2gtk-4.1-dev, libopenconnect-dev (>= 8.20),@RUST@ Homepage: https://github.com/yuezk/GlobalProtect-openconnect diff --git a/packaging/pkgbuild/PKGBUILD.in b/packaging/pkgbuild/PKGBUILD.in index a238afb3..ee762979 100644 --- a/packaging/pkgbuild/PKGBUILD.in +++ b/packaging/pkgbuild/PKGBUILD.in @@ -8,8 +8,8 @@ pkgdesc="A GUI for GlobalProtect VPN, based on OpenConnect, supports the SSO aut arch=('x86_64' 'aarch64') url="https://github.com/yuezk/GlobalProtect-openconnect" license=('GPL3') -makedepends=('make' 'pkg-config' 'rust' 'cargo' 'jq' 'webkit2gtk' 'curl' 'wget' 'file' 'openssl' 'appmenu-gtk-module' 'gtk3' 'libappindicator-gtk3' 'librsvg' 'libvips' 'libayatana-appindicator' 'openconnect' 'libsecret') -depends=('openconnect>=8.20' webkit2gtk libappindicator-gtk3 libayatana-appindicator libsecret libxml2) +makedepends=('make' 'pkg-config' 'rust' 'cargo' 'jq' 'webkit2gtk-4.1' 'curl' 'wget' 'file' 'openssl' 'appmenu-gtk-module' 'libappindicator-gtk3' 'librsvg' 'openconnect' 'libsecret') +depends=('openconnect>=8.20' webkit2gtk-4.1 libappindicator-gtk3 libsecret libxml2) optdepends=('wmctrl: for window management') provides=('globalprotect-openconnect' 'gpclient' 'gpservice' 'gpauth' 'gpgui') diff --git a/packaging/rpm/globalprotect-openconnect.spec.in b/packaging/rpm/globalprotect-openconnect.spec.in index 61f3023a..978796a2 100644 --- a/packaging/rpm/globalprotect-openconnect.spec.in +++ b/packaging/rpm/globalprotect-openconnect.spec.in @@ -19,11 +19,11 @@ BuildRequires: wget BuildRequires: file BuildRequires: perl -BuildRequires: (webkit2gtk4.0-devel or webkit2gtk3-soup2-devel) +BuildRequires: (webkit2gtk4.1-devel or webkit2gtk3-soup2-devel) BuildRequires: (libappindicator-gtk3-devel or libappindicator3-1) BuildRequires: (librsvg2-devel or librsvg-devel) -Requires: openconnect >= 8.20, (libayatana-appindicator or libappindicator-gtk3) +Requires: openconnect >= 8.20, (libappindicator-gtk3 or libayatana-appindicator) Conflicts: globalprotect-openconnect-snapshot %global debug_package %{nil}